1 2009-04-10 Tristan Gingold <gingold@adacore.com>
3 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
4 avoid compile time warnings.
5 Do not add gcc/config in include search list while compiling the RTS.
6 Pragma Thread_Local_Storage is available on any target.
8 2009-04-10 Bob Duff <duff@adacore.com>
10 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
12 2009-04-10 Tristan Gingold <gingold@adacore.com>
14 * init.c: Install signal handler on Darwin.
16 2009-04-10 Robert Dewar <dewar@adacore.com>
18 * sem_prag.adb: Minor reformatting
20 * exp_util.adb (Make_Non_Empty_Check): New function
21 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
22 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
24 2009-04-10 Arnaud Charlet <charlet@adacore.com>
26 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
28 2009-04-10 Jose Ruiz <ruiz@adacore.com>
30 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
31 tool prefix for AVR and PowerPC 55xx targets.
33 2009-04-10 Robert Dewar <dewar@adacore.com>
35 * sem_warn.adb (Within_Postcondition): New function
36 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
38 2009-04-10 Robert Dewar <dewar@adacore.com>
40 * sem_warn.adb: Minor reformatting
42 * make.adb: Minor reformatting.
44 2009-04-10 Gary Dismukes <dismukes@adacore.com>
46 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
47 entity and the scope is a subprogram, retrieve the Sloc of the
48 subprogram's body rather than using the sloc of the spec, for better
49 line-stepping behavior in gdb.
50 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
51 controller, use the Sloc of the first declaration of the containing list
52 rather than that of the node that triggered creation of the list
55 2009-04-10 Vincent Celier <celier@adacore.com>
57 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
60 2009-04-10 Robert Dewar <dewar@adacore.com>
62 * g-comlin.adb: Add ??? comment
64 2009-04-10 Ed Schonberg <schonberg@adacore.com>
66 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
67 unreferenced entities for a package with no visible declarations.
69 2009-04-10 Robert Dewar <dewar@adacore.com>
71 * exp_ch9.adb: Minor reformatting
73 2009-04-10 Thomas Quinot <quinot@adacore.com>
75 * sem_prag.adb: Minor reformatting
77 2009-04-10 Vincent Celier <celier@adacore.com>
80 (Check_Library_Attributes): For a project qualified as a library project
81 that is not a library project, indicate in the error message which
82 attributes are missing (Library_Dir and/or Library_Name).
84 2009-04-10 Bob Duff <duff@adacore.com>
86 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
87 generated nodes, because it might confuse various circuits in the FE.
89 2009-04-10 Ed Schonberg <schonberg@adacore.com>
91 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
92 of pragma. It will be recopied and analyzed when used in call to
95 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
96 initialization operations and recognize use of it in procedure calls
99 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
100 argument, because it may have side-effects.
102 * exp_ch2.adb: Remove obsolete comments on default functions
104 2009-04-10 Jose Ruiz <ruiz@adacore.com>
106 * adaint.c (RTX section): Do for RTX the same thing as we do for
107 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
109 2009-04-10 Robert Dewar <dewar@adacore.com>
111 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
113 * sem_res.adb (Resolve_Call): Fix test for
114 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
115 a non-dynamic scope).
117 2009-04-10 Robert Dewar <dewar@adacore.com>
119 * make.adb: Add comment.
122 2009-04-10 Nicolas Setton <setton@adacore.com>
124 * s-osprim-darwin.adb: New file.
126 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
128 2009-04-10 Thomas Quinot <quinot@adacore.com>
130 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
132 2009-04-09 Nick Clifton <nickc@redhat.com>
134 * adadecode.h: Change copyright header to refer to version
135 3 of the GNU General Public License with version 3.1 of the
136 GCC Runtime Library Exception and to point readers at the
137 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
139 * 9drpc.adb: Likewise.
140 * a-assert.adb: Likewise.
141 * a-astaco.adb: Likewise.
142 * a-calari.adb: Likewise.
143 * a-calcon.adb: Likewise.
144 * a-calcon.ads: Likewise.
145 * a-caldel.ads: Likewise.
146 * a-calend-vms.adb: Likewise.
147 * a-calend-vms.ads: Likewise.
148 * a-calend.adb: Likewise.
149 * a-calend.ads: Likewise.
150 * a-calfor.adb: Likewise.
151 * a-catizo.adb: Likewise.
152 * a-cdlili.adb: Likewise.
153 * a-cdlili.ads: Likewise.
154 * a-cgaaso.adb: Likewise.
155 * a-cgaaso.ads: Likewise.
156 * a-cgarso.adb: Likewise.
157 * a-cgcaso.adb: Likewise.
158 * a-chacon.adb: Likewise.
159 * a-chacon.ads: Likewise.
160 * a-chahan.adb: Likewise.
161 * a-chahan.ads: Likewise.
162 * a-chlat9.ads: Likewise.
163 * a-chtgke.adb: Likewise.
164 * a-chtgke.ads: Likewise.
165 * a-chtgop.adb: Likewise.
166 * a-chtgop.ads: Likewise.
167 * a-chzla1.ads: Likewise.
168 * a-chzla9.ads: Likewise.
169 * a-cidlli.adb: Likewise.
170 * a-cidlli.ads: Likewise.
171 * a-cihama.adb: Likewise.
172 * a-cihama.ads: Likewise.
173 * a-cihase.adb: Likewise.
174 * a-cihase.ads: Likewise.
175 * a-ciorma.adb: Likewise.
176 * a-ciorma.ads: Likewise.
177 * a-ciormu.adb: Likewise.
178 * a-ciormu.ads: Likewise.
179 * a-ciorse.adb: Likewise.
180 * a-ciorse.ads: Likewise.
181 * a-clrefi.adb: Likewise.
182 * a-clrefi.ads: Likewise.
183 * a-cohama.adb: Likewise.
184 * a-cohama.ads: Likewise.
185 * a-cohase.adb: Likewise.
186 * a-cohase.ads: Likewise.
187 * a-cohata.ads: Likewise.
188 * a-coinve.adb: Likewise.
189 * a-coinve.ads: Likewise.
190 * a-colien.adb: Likewise.
191 * a-colien.ads: Likewise.
192 * a-colire.adb: Likewise.
193 * a-colire.ads: Likewise.
194 * a-comlin.adb: Likewise.
195 * a-comlin.ads: Likewise.
196 * a-convec.adb: Likewise.
197 * a-convec.ads: Likewise.
198 * a-coorma.adb: Likewise.
199 * a-coorma.ads: Likewise.
200 * a-coormu.adb: Likewise.
201 * a-coormu.ads: Likewise.
202 * a-coorse.adb: Likewise.
203 * a-coorse.ads: Likewise.
204 * a-coprnu.adb: Likewise.
205 * a-coprnu.ads: Likewise.
206 * a-crbltr.ads: Likewise.
207 * a-crbtgk.adb: Likewise.
208 * a-crbtgk.ads: Likewise.
209 * a-crbtgo.adb: Likewise.
210 * a-crbtgo.ads: Likewise.
211 * a-crdlli.adb: Likewise.
212 * a-crdlli.ads: Likewise.
213 * a-cwila1.ads: Likewise.
214 * a-cwila9.ads: Likewise.
215 * a-decima.adb: Likewise.
216 * a-decima.ads: Likewise.
217 * a-diocst.adb: Likewise.
218 * a-diocst.ads: Likewise.
219 * a-direct.adb: Likewise.
220 * a-direct.ads: Likewise.
221 * a-direio.adb: Likewise.
222 * a-direio.ads: Likewise.
223 * a-dirval-mingw.adb: Likewise.
224 * a-dirval-vms.adb: Likewise.
225 * a-dirval.adb: Likewise.
226 * a-dirval.ads: Likewise.
227 * a-dynpri.adb: Likewise.
228 * a-einuoc.adb: Likewise.
229 * a-einuoc.ads: Likewise.
230 * a-elchha.adb: Likewise.
231 * a-elchha.ads: Likewise.
232 * a-envvar.adb: Likewise.
233 * a-excach.adb: Likewise.
234 * a-except-2005.adb: Likewise.
235 * a-except-2005.ads: Likewise.
236 * a-except.adb: Likewise.
237 * a-except.ads: Likewise.
238 * a-excpol-abort.adb: Likewise.
239 * a-excpol.adb: Likewise.
240 * a-exctra.adb: Likewise.
241 * a-exctra.ads: Likewise.
242 * a-exetim-mingw.adb: Likewise.
243 * a-exetim-mingw.ads: Likewise.
244 * a-exexda.adb: Likewise.
245 * a-exexpr-gcc.adb: Likewise.
246 * a-exexpr.adb: Likewise.
247 * a-exextr.adb: Likewise.
248 * a-exstat.adb: Likewise.
249 * a-filico.adb: Likewise.
250 * a-filico.ads: Likewise.
251 * a-finali.adb: Likewise.
252 * a-finali.ads: Likewise.
253 * a-interr.ads: Likewise.
254 * a-intnam-aix.ads: Likewise.
255 * a-intnam-darwin.ads: Likewise.
256 * a-intnam-dummy.ads: Likewise.
257 * a-intnam-freebsd.ads: Likewise.
258 * a-intnam-hpux.ads: Likewise.
259 * a-intnam-irix.ads: Likewise.
260 * a-intnam-linux.ads: Likewise.
261 * a-intnam-lynxos.ads: Likewise.
262 * a-intnam-mingw.ads: Likewise.
263 * a-intnam-rtems.ads: Likewise.
264 * a-intnam-solaris.ads: Likewise.
265 * a-intnam-tru64.ads: Likewise.
266 * a-intnam-vms.ads: Likewise.
267 * a-intnam-vxworks.ads: Likewise.
268 * a-intsig.adb: Likewise.
269 * a-intsig.ads: Likewise.
270 * a-ngcefu.adb: Likewise.
271 * a-ngcoar.adb: Likewise.
272 * a-ngcoty.adb: Likewise.
273 * a-ngcoty.ads: Likewise.
274 * a-ngelfu.adb: Likewise.
275 * a-ngrear.adb: Likewise.
276 * a-ngrear.ads: Likewise.
277 * a-nudira.adb: Likewise.
278 * a-nudira.ads: Likewise.
279 * a-nuflra.adb: Likewise.
280 * a-nuflra.ads: Likewise.
281 * a-numaux-darwin.adb: Likewise.
282 * a-numaux-darwin.ads: Likewise.
283 * a-numaux-libc-x86.ads: Likewise.
284 * a-numaux-vxworks.ads: Likewise.
285 * a-numaux-x86.adb: Likewise.
286 * a-numaux-x86.ads: Likewise.
287 * a-numaux.ads: Likewise.
288 * a-rbtgso.adb: Likewise.
289 * a-rbtgso.ads: Likewise.
290 * a-reatim.ads: Likewise.
291 * a-retide.adb: Likewise.
292 * a-retide.ads: Likewise.
293 * a-rttiev.adb: Likewise.
294 * a-rttiev.ads: Likewise.
295 * a-secain.adb: Likewise.
296 * a-secain.ads: Likewise.
297 * a-sequio.adb: Likewise.
298 * a-sequio.ads: Likewise.
299 * a-shcain.adb: Likewise.
300 * a-shcain.ads: Likewise.
301 * a-siocst.adb: Likewise.
302 * a-siocst.ads: Likewise.
303 * a-slcain.adb: Likewise.
304 * a-slcain.ads: Likewise.
305 * a-ssicst.adb: Likewise.
306 * a-ssicst.ads: Likewise.
307 * a-stboha.adb: Likewise.
308 * a-stmaco.ads: Likewise.
309 * a-storio.adb: Likewise.
310 * a-strbou.adb: Likewise.
311 * a-strbou.ads: Likewise.
312 * a-stream.ads: Likewise.
313 * a-strfix.adb: Likewise.
314 * a-strhas.adb: Likewise.
315 * a-strmap.adb: Likewise.
316 * a-strmap.ads: Likewise.
317 * a-strsea.adb: Likewise.
318 * a-strsea.ads: Likewise.
319 * a-strsup.adb: Likewise.
320 * a-strsup.ads: Likewise.
321 * a-strunb.adb: Likewise.
322 * a-strunb.ads: Likewise.
323 * a-ststio.adb: Likewise.
324 * a-ststio.ads: Likewise.
325 * a-stunau.adb: Likewise.
326 * a-stunau.ads: Likewise.
327 * a-stunha.adb: Likewise.
328 * a-stwibo.adb: Likewise.
329 * a-stwibo.ads: Likewise.
330 * a-stwifi.adb: Likewise.
331 * a-stwiha.adb: Likewise.
332 * a-stwima.adb: Likewise.
333 * a-stwima.ads: Likewise.
334 * a-stwise.adb: Likewise.
335 * a-stwise.ads: Likewise.
336 * a-stwisu.adb: Likewise.
337 * a-stwisu.ads: Likewise.
338 * a-stwiun.adb: Likewise.
339 * a-stwiun.ads: Likewise.
340 * a-stzbou.adb: Likewise.
341 * a-stzbou.ads: Likewise.
342 * a-stzfix.adb: Likewise.
343 * a-stzhas.adb: Likewise.
344 * a-stzmap.adb: Likewise.
345 * a-stzmap.ads: Likewise.
346 * a-stzsea.adb: Likewise.
347 * a-stzsea.ads: Likewise.
348 * a-stzsup.adb: Likewise.
349 * a-stzsup.ads: Likewise.
350 * a-stzunb.adb: Likewise.
351 * a-stzunb.ads: Likewise.
352 * a-suteio.adb: Likewise.
353 * a-suteio.ads: Likewise.
354 * a-swbwha.adb: Likewise.
355 * a-swmwco.ads: Likewise.
356 * a-swunau.adb: Likewise.
357 * a-swunau.ads: Likewise.
358 * a-swuwha.adb: Likewise.
359 * a-swuwti.adb: Likewise.
360 * a-swuwti.ads: Likewise.
361 * a-sytaco.adb: Likewise.
362 * a-sytaco.ads: Likewise.
363 * a-szbzha.adb: Likewise.
364 * a-szmzco.ads: Likewise.
365 * a-szunau.adb: Likewise.
366 * a-szunau.ads: Likewise.
367 * a-szuzha.adb: Likewise.
368 * a-szuzti.adb: Likewise.
369 * a-szuzti.ads: Likewise.
370 * a-tags.adb: Likewise.
371 * a-tags.ads: Likewise.
372 * a-tasatt.ads: Likewise.
373 * a-taside.adb: Likewise.
374 * a-taside.ads: Likewise.
375 * a-taster.adb: Likewise.
376 * a-teioed.adb: Likewise.
377 * a-teioed.ads: Likewise.
378 * a-textio.adb: Likewise.
379 * a-textio.ads: Likewise.
380 * a-tiboio.adb: Likewise.
381 * a-ticoau.adb: Likewise.
382 * a-ticoau.ads: Likewise.
383 * a-ticoio.adb: Likewise.
384 * a-ticoio.ads: Likewise.
385 * a-tideau.adb: Likewise.
386 * a-tideau.ads: Likewise.
387 * a-tideio.adb: Likewise.
388 * a-tideio.ads: Likewise.
389 * a-tienau.adb: Likewise.
390 * a-tienau.ads: Likewise.
391 * a-tienio.adb: Likewise.
392 * a-tienio.ads: Likewise.
393 * a-tifiio.adb: Likewise.
394 * a-tifiio.ads: Likewise.
395 * a-tiflau.adb: Likewise.
396 * a-tiflau.ads: Likewise.
397 * a-tiflio.adb: Likewise.
398 * a-tiflio.ads: Likewise.
399 * a-tigeau.adb: Likewise.
400 * a-tigeau.ads: Likewise.
401 * a-tiinau.adb: Likewise.
402 * a-tiinau.ads: Likewise.
403 * a-tiinio.adb: Likewise.
404 * a-tiinio.ads: Likewise.
405 * a-timoau.adb: Likewise.
406 * a-timoau.ads: Likewise.
407 * a-timoio.adb: Likewise.
408 * a-timoio.ads: Likewise.
409 * a-tiocst.adb: Likewise.
410 * a-tiocst.ads: Likewise.
411 * a-titest.adb: Likewise.
412 * a-wichun.adb: Likewise.
413 * a-wichun.ads: Likewise.
414 * a-witeio.adb: Likewise.
415 * a-witeio.ads: Likewise.
416 * a-wtcoau.adb: Likewise.
417 * a-wtcoau.ads: Likewise.
418 * a-wtcoio.adb: Likewise.
419 * a-wtcstr.adb: Likewise.
420 * a-wtcstr.ads: Likewise.
421 * a-wtdeau.adb: Likewise.
422 * a-wtdeau.ads: Likewise.
423 * a-wtdeio.adb: Likewise.
424 * a-wtdeio.ads: Likewise.
425 * a-wtedit.adb: Likewise.
426 * a-wtedit.ads: Likewise.
427 * a-wtenau.adb: Likewise.
428 * a-wtenau.ads: Likewise.
429 * a-wtenio.adb: Likewise.
430 * a-wtenio.ads: Likewise.
431 * a-wtfiio.adb: Likewise.
432 * a-wtfiio.ads: Likewise.
433 * a-wtflau.adb: Likewise.
434 * a-wtflau.ads: Likewise.
435 * a-wtflio.adb: Likewise.
436 * a-wtflio.ads: Likewise.
437 * a-wtgeau.adb: Likewise.
438 * a-wtgeau.ads: Likewise.
439 * a-wtinau.adb: Likewise.
440 * a-wtinau.ads: Likewise.
441 * a-wtinio.adb: Likewise.
442 * a-wtmoau.adb: Likewise.
443 * a-wtmoau.ads: Likewise.
444 * a-wtmoio.adb: Likewise.
445 * a-wtmoio.ads: Likewise.
446 * a-wttest.adb: Likewise.
447 * a-wwboio.adb: Likewise.
448 * a-zchuni.adb: Likewise.
449 * a-zchuni.ads: Likewise.
450 * a-ztcoau.adb: Likewise.
451 * a-ztcoau.ads: Likewise.
452 * a-ztcoio.adb: Likewise.
453 * a-ztcstr.adb: Likewise.
454 * a-ztcstr.ads: Likewise.
455 * a-ztdeau.adb: Likewise.
456 * a-ztdeau.ads: Likewise.
457 * a-ztdeio.adb: Likewise.
458 * a-ztdeio.ads: Likewise.
459 * a-ztedit.adb: Likewise.
460 * a-ztedit.ads: Likewise.
461 * a-ztenau.adb: Likewise.
462 * a-ztenau.ads: Likewise.
463 * a-ztenio.adb: Likewise.
464 * a-ztenio.ads: Likewise.
465 * a-ztexio.adb: Likewise.
466 * a-ztexio.ads: Likewise.
467 * a-ztfiio.adb: Likewise.
468 * a-ztfiio.ads: Likewise.
469 * a-ztflau.adb: Likewise.
470 * a-ztflau.ads: Likewise.
471 * a-ztflio.adb: Likewise.
472 * a-ztflio.ads: Likewise.
473 * a-ztgeau.adb: Likewise.
474 * a-ztgeau.ads: Likewise.
475 * a-ztinau.adb: Likewise.
476 * a-ztinau.ads: Likewise.
477 * a-ztinio.adb: Likewise.
478 * a-ztmoau.adb: Likewise.
479 * a-ztmoau.ads: Likewise.
480 * a-ztmoio.adb: Likewise.
481 * a-ztmoio.ads: Likewise.
482 * a-zttest.adb: Likewise.
483 * a-zzboio.adb: Likewise.
484 * adadecode.c: Likewise.
485 * adaint.c: Likewise.
486 * adaint.h: Likewise.
487 * alloc.ads: Likewise.
489 * arit64.c: Likewise.
490 * atree.adb: Likewise.
491 * atree.ads: Likewise.
492 * aux-io.c: Likewise.
494 * casing.adb: Likewise.
495 * casing.ads: Likewise.
497 * csets.adb: Likewise.
498 * csets.ads: Likewise.
499 * cstreams.c: Likewise.
500 * ctrl_c.c: Likewise.
501 * debug.adb: Likewise.
502 * debug.ads: Likewise.
504 * einfo.adb: Likewise.
505 * einfo.ads: Likewise.
506 * elists.adb: Likewise.
507 * elists.ads: Likewise.
514 * fname.adb: Likewise.
515 * fname.ads: Likewise.
516 * g-allein.ads: Likewise.
517 * g-alleve.adb: Likewise.
518 * g-alleve.ads: Likewise.
519 * g-altcon.adb: Likewise.
520 * g-altcon.ads: Likewise.
521 * g-altive.ads: Likewise.
522 * g-alveop.adb: Likewise.
523 * g-alveop.ads: Likewise.
524 * g-alvety.ads: Likewise.
525 * g-alvevi.ads: Likewise.
526 * g-arrspl.adb: Likewise.
527 * g-arrspl.ads: Likewise.
528 * g-calend.ads: Likewise.
529 * g-comlin.adb: Likewise.
530 * g-debpoo.adb: Likewise.
531 * g-debpoo.ads: Likewise.
532 * g-eacodu-vms.adb: Likewise.
533 * g-eacodu.adb: Likewise.
534 * g-excact.adb: Likewise.
535 * g-excact.ads: Likewise.
536 * g-locfil.adb: Likewise.
537 * g-os_lib.ads: Likewise.
538 * g-rannum.adb: Likewise.
539 * g-rannum.ads: Likewise.
540 * g-regist.adb: Likewise.
541 * g-regist.ads: Likewise.
542 * g-signal.adb: Likewise.
543 * g-signal.ads: Likewise.
544 * g-soccon.ads: Likewise.
545 * g-string.adb: Likewise.
546 * g-string.ads: Likewise.
547 * g-strspl.ads: Likewise.
548 * g-timsta.adb: Likewise.
549 * g-timsta.ads: Likewise.
550 * g-trasym-vms-alpha.adb: Likewise.
551 * g-trasym-vms-ia64.adb: Likewise.
552 * g-utf_32.adb: Likewise.
553 * g-utf_32.ads: Likewise.
554 * g-wistsp.ads: Likewise.
555 * g-zstspl.ads: Likewise.
557 * gnatvsn.adb: Likewise.
558 * gnatvsn.ads: Likewise.
559 * gsocket.h: Likewise.
560 * hostparm.ads: Likewise.
562 * i-cexten.ads: Likewise.
563 * i-cobol.adb: Likewise.
564 * i-cobol.ads: Likewise.
565 * i-cpoint.adb: Likewise.
566 * i-cpoint.ads: Likewise.
567 * i-cpp.adb: Likewise.
568 * i-cpp.ads: Likewise.
569 * i-cstrea-vms.adb: Likewise.
570 * i-cstrea.adb: Likewise.
571 * i-cstrea.ads: Likewise.
572 * i-cstrin.adb: Likewise.
573 * i-cstrin.ads: Likewise.
574 * i-forbla-darwin.adb: Likewise.
575 * i-forbla-unimplemented.ads: Likewise.
576 * i-forbla.adb: Likewise.
577 * i-forbla.ads: Likewise.
578 * i-forlap.ads: Likewise.
579 * i-fortra.adb: Likewise.
580 * i-pacdec.adb: Likewise.
581 * i-pacdec.ads: Likewise.
582 * i-vxwoio.adb: Likewise.
583 * i-vxwoio.ads: Likewise.
584 * indepsw-aix.adb: Likewise.
585 * indepsw-gnu.adb: Likewise.
586 * indepsw-mingw.adb: Likewise.
587 * indepsw.adb: Likewise.
588 * indepsw.ads: Likewise.
590 * initialize.c: Likewise.
591 * interfac.ads: Likewise.
592 * krunch.adb: Likewise.
593 * krunch.ads: Likewise.
594 * lib-list.adb: Likewise.
595 * lib-sort.adb: Likewise.
599 * math_lib.adb: Likewise.
600 * memtrack.adb: Likewise.
601 * mingw32.h: Likewise.
603 * namet-sp.adb: Likewise.
604 * namet-sp.ads: Likewise.
605 * namet.adb: Likewise.
606 * namet.ads: Likewise.
607 * nlists.adb: Likewise.
608 * nlists.ads: Likewise.
611 * output.adb: Likewise.
612 * output.ads: Likewise.
613 * raise-gcc.c: Likewise.
616 * repinfo.adb: Likewise.
617 * repinfo.ads: Likewise.
618 * repinfo.h: Likewise.
619 * rident.ads: Likewise.
620 * s-addima.adb: Likewise.
621 * s-addima.ads: Likewise.
622 * s-addope.adb: Likewise.
623 * s-addope.ads: Likewise.
624 * s-arit64.adb: Likewise.
625 * s-arit64.ads: Likewise.
626 * s-assert.adb: Likewise.
627 * s-assert.ads: Likewise.
628 * s-asthan-vms-alpha.adb: Likewise.
629 * s-asthan.adb: Likewise.
630 * s-asthan.ads: Likewise.
631 * s-atacco.adb: Likewise.
632 * s-atacco.ads: Likewise.
633 * s-auxdec-empty.adb: Likewise.
634 * s-auxdec-empty.ads: Likewise.
635 * s-auxdec-vms_64.ads: Likewise.
636 * s-auxdec.adb: Likewise.
637 * s-auxdec.ads: Likewise.
638 * s-bitops.adb: Likewise.
639 * s-bitops.ads: Likewise.
640 * s-boarop.ads: Likewise.
641 * s-carsi8.adb: Likewise.
642 * s-carsi8.ads: Likewise.
643 * s-carun8.adb: Likewise.
644 * s-carun8.ads: Likewise.
645 * s-casi16.adb: Likewise.
646 * s-casi16.ads: Likewise.
647 * s-casi32.adb: Likewise.
648 * s-casi32.ads: Likewise.
649 * s-casi64.adb: Likewise.
650 * s-casi64.ads: Likewise.
651 * s-casuti.ads: Likewise.
652 * s-caun16.adb: Likewise.
653 * s-caun16.ads: Likewise.
654 * s-caun32.adb: Likewise.
655 * s-caun32.ads: Likewise.
656 * s-caun64.adb: Likewise.
657 * s-caun64.ads: Likewise.
658 * s-chepoo.ads: Likewise.
659 * s-crc32.adb: Likewise.
660 * s-crc32.ads: Likewise.
661 * s-crtl.ads: Likewise.
662 * s-direio.adb: Likewise.
663 * s-direio.ads: Likewise.
664 * s-dsaser.ads: Likewise.
665 * s-except.adb: Likewise.
666 * s-except.ads: Likewise.
667 * s-exctab.adb: Likewise.
668 * s-exctab.ads: Likewise.
669 * s-exnint.adb: Likewise.
670 * s-exnint.ads: Likewise.
671 * s-exnllf.adb: Likewise.
672 * s-exnllf.ads: Likewise.
673 * s-exnlli.adb: Likewise.
674 * s-exnlli.ads: Likewise.
675 * s-expint.adb: Likewise.
676 * s-expint.ads: Likewise.
677 * s-explli.adb: Likewise.
678 * s-explli.ads: Likewise.
679 * s-expllu.adb: Likewise.
680 * s-expllu.ads: Likewise.
681 * s-expmod.adb: Likewise.
682 * s-expmod.ads: Likewise.
683 * s-expuns.adb: Likewise.
684 * s-expuns.ads: Likewise.
685 * s-fatflt.ads: Likewise.
686 * s-fatgen.adb: Likewise.
687 * s-fatgen.ads: Likewise.
688 * s-fatlfl.ads: Likewise.
689 * s-fatllf.ads: Likewise.
690 * s-fatsfl.ads: Likewise.
691 * s-ficobl.ads: Likewise.
692 * s-fileio.adb: Likewise.
693 * s-fileio.ads: Likewise.
694 * s-filofl.ads: Likewise.
695 * s-finimp.adb: Likewise.
696 * s-finimp.ads: Likewise.
697 * s-finroo.adb: Likewise.
698 * s-finroo.ads: Likewise.
699 * s-fishfl.ads: Likewise.
700 * s-fore.adb: Likewise.
701 * s-fore.ads: Likewise.
702 * s-fvadfl.ads: Likewise.
703 * s-fvaffl.ads: Likewise.
704 * s-fvagfl.ads: Likewise.
705 * s-gearop.adb: Likewise.
706 * s-gearop.ads: Likewise.
707 * s-gecobl.adb: Likewise.
708 * s-gecobl.ads: Likewise.
709 * s-gecola.adb: Likewise.
710 * s-gecola.ads: Likewise.
711 * s-gerebl.adb: Likewise.
712 * s-gerebl.ads: Likewise.
713 * s-gerela.adb: Likewise.
714 * s-gerela.ads: Likewise.
715 * s-geveop.adb: Likewise.
716 * s-geveop.ads: Likewise.
717 * s-gloloc.adb: Likewise.
718 * s-gloloc.ads: Likewise.
719 * s-hibaen.ads: Likewise.
720 * s-imenne.adb: Likewise.
721 * s-imenne.ads: Likewise.
722 * s-imgbiu.adb: Likewise.
723 * s-imgbiu.ads: Likewise.
724 * s-imgboo.adb: Likewise.
725 * s-imgboo.ads: Likewise.
726 * s-imgcha.adb: Likewise.
727 * s-imgcha.ads: Likewise.
728 * s-imgdec.adb: Likewise.
729 * s-imgdec.ads: Likewise.
730 * s-imgenu.adb: Likewise.
731 * s-imgenu.ads: Likewise.
732 * s-imgint.adb: Likewise.
733 * s-imgint.ads: Likewise.
734 * s-imgllb.adb: Likewise.
735 * s-imgllb.ads: Likewise.
736 * s-imglld.adb: Likewise.
737 * s-imglld.ads: Likewise.
738 * s-imglli.adb: Likewise.
739 * s-imglli.ads: Likewise.
740 * s-imgllu.adb: Likewise.
741 * s-imgllu.ads: Likewise.
742 * s-imgllw.adb: Likewise.
743 * s-imgllw.ads: Likewise.
744 * s-imgrea.adb: Likewise.
745 * s-imgrea.ads: Likewise.
746 * s-imguns.adb: Likewise.
747 * s-imguns.ads: Likewise.
748 * s-imgwch.adb: Likewise.
749 * s-imgwch.ads: Likewise.
750 * s-imgwiu.adb: Likewise.
751 * s-imgwiu.ads: Likewise.
752 * s-inmaop-dummy.adb: Likewise.
753 * s-inmaop-vms.adb: Likewise.
754 * s-inmaop.ads: Likewise.
755 * s-interr-hwint.adb: Likewise.
756 * s-interr-sigaction.adb: Likewise.
757 * s-interr-vms.adb: Likewise.
758 * s-interr.adb: Likewise.
759 * s-interr.ads: Likewise.
760 * s-intman-dummy.adb: Likewise.
761 * s-intman-mingw.adb: Likewise.
762 * s-intman-posix.adb: Likewise.
763 * s-intman-solaris.adb: Likewise.
764 * s-intman-vms.adb: Likewise.
765 * s-intman-vms.ads: Likewise.
766 * s-intman-vxworks.adb: Likewise.
767 * s-intman-vxworks.ads: Likewise.
768 * s-intman.ads: Likewise.
769 * s-io.adb: Likewise.
770 * s-io.ads: Likewise.
771 * s-linux-alpha.ads: Likewise.
772 * s-linux-hppa.ads: Likewise.
773 * s-linux.ads: Likewise.
774 * s-maccod.ads: Likewise.
775 * s-mantis.adb: Likewise.
776 * s-mantis.ads: Likewise.
777 * s-mastop-irix.adb: Likewise.
778 * s-mastop.adb: Likewise.
779 * s-mastop.ads: Likewise.
780 * s-memcop.ads: Likewise.
781 * s-memory-mingw.adb: Likewise.
782 * s-memory.adb: Likewise.
783 * s-memory.ads: Likewise.
784 * s-os_lib.ads: Likewise.
785 * s-oscons-tmplt.c: Likewise.
786 * s-osinte-aix.adb: Likewise.
787 * s-osinte-darwin.adb: Likewise.
788 * s-osinte-freebsd.adb: Likewise.
789 * s-osinte-irix.adb: Likewise.
790 * s-osinte-lynxos-3.adb: Likewise.
791 * s-osinte-rtems.ads: Likewise.
792 * s-osinte-tru64.adb: Likewise.
793 * s-osinte-vxworks-kernel.adb: Likewise.
794 * s-osinte-vxworks.adb: Likewise.
795 * s-osprim-mingw.adb: Likewise.
796 * s-osprim-posix.adb: Likewise.
797 * s-osprim-solaris.adb: Likewise.
798 * s-osprim-unix.adb: Likewise.
799 * s-osprim-vms.adb: Likewise.
800 * s-osprim-vms.ads: Likewise.
801 * s-osprim-vxworks.adb: Likewise.
802 * s-osprim.ads: Likewise.
803 * s-pack03.adb: Likewise.
804 * s-pack03.ads: Likewise.
805 * s-pack05.adb: Likewise.
806 * s-pack05.ads: Likewise.
807 * s-pack06.adb: Likewise.
808 * s-pack06.ads: Likewise.
809 * s-pack07.adb: Likewise.
810 * s-pack07.ads: Likewise.
811 * s-pack09.adb: Likewise.
812 * s-pack09.ads: Likewise.
813 * s-pack10.adb: Likewise.
814 * s-pack10.ads: Likewise.
815 * s-pack11.adb: Likewise.
816 * s-pack11.ads: Likewise.
817 * s-pack12.adb: Likewise.
818 * s-pack12.ads: Likewise.
819 * s-pack13.adb: Likewise.
820 * s-pack13.ads: Likewise.
821 * s-pack14.adb: Likewise.
822 * s-pack14.ads: Likewise.
823 * s-pack15.adb: Likewise.
824 * s-pack15.ads: Likewise.
825 * s-pack17.adb: Likewise.
826 * s-pack17.ads: Likewise.
827 * s-pack18.adb: Likewise.
828 * s-pack18.ads: Likewise.
829 * s-pack19.adb: Likewise.
830 * s-pack19.ads: Likewise.
831 * s-pack20.adb: Likewise.
832 * s-pack20.ads: Likewise.
833 * s-pack21.adb: Likewise.
834 * s-pack21.ads: Likewise.
835 * s-pack22.adb: Likewise.
836 * s-pack22.ads: Likewise.
837 * s-pack23.adb: Likewise.
838 * s-pack23.ads: Likewise.
839 * s-pack24.adb: Likewise.
840 * s-pack24.ads: Likewise.
841 * s-pack25.adb: Likewise.
842 * s-pack25.ads: Likewise.
843 * s-pack26.adb: Likewise.
844 * s-pack26.ads: Likewise.
845 * s-pack27.adb: Likewise.
846 * s-pack27.ads: Likewise.
847 * s-pack28.adb: Likewise.
848 * s-pack28.ads: Likewise.
849 * s-pack29.adb: Likewise.
850 * s-pack29.ads: Likewise.
851 * s-pack30.adb: Likewise.
852 * s-pack30.ads: Likewise.
853 * s-pack31.adb: Likewise.
854 * s-pack31.ads: Likewise.
855 * s-pack33.adb: Likewise.
856 * s-pack33.ads: Likewise.
857 * s-pack34.adb: Likewise.
858 * s-pack34.ads: Likewise.
859 * s-pack35.adb: Likewise.
860 * s-pack35.ads: Likewise.
861 * s-pack36.adb: Likewise.
862 * s-pack36.ads: Likewise.
863 * s-pack37.adb: Likewise.
864 * s-pack37.ads: Likewise.
865 * s-pack38.adb: Likewise.
866 * s-pack38.ads: Likewise.
867 * s-pack39.adb: Likewise.
868 * s-pack39.ads: Likewise.
869 * s-pack40.adb: Likewise.
870 * s-pack40.ads: Likewise.
871 * s-pack41.adb: Likewise.
872 * s-pack41.ads: Likewise.
873 * s-pack42.adb: Likewise.
874 * s-pack42.ads: Likewise.
875 * s-pack43.adb: Likewise.
876 * s-pack43.ads: Likewise.
877 * s-pack44.adb: Likewise.
878 * s-pack44.ads: Likewise.
879 * s-pack45.adb: Likewise.
880 * s-pack45.ads: Likewise.
881 * s-pack46.adb: Likewise.
882 * s-pack46.ads: Likewise.
883 * s-pack47.adb: Likewise.
884 * s-pack47.ads: Likewise.
885 * s-pack48.adb: Likewise.
886 * s-pack48.ads: Likewise.
887 * s-pack49.adb: Likewise.
888 * s-pack49.ads: Likewise.
889 * s-pack50.adb: Likewise.
890 * s-pack50.ads: Likewise.
891 * s-pack51.adb: Likewise.
892 * s-pack51.ads: Likewise.
893 * s-pack52.adb: Likewise.
894 * s-pack52.ads: Likewise.
895 * s-pack53.adb: Likewise.
896 * s-pack53.ads: Likewise.
897 * s-pack54.adb: Likewise.
898 * s-pack54.ads: Likewise.
899 * s-pack55.adb: Likewise.
900 * s-pack55.ads: Likewise.
901 * s-pack56.adb: Likewise.
902 * s-pack56.ads: Likewise.
903 * s-pack57.adb: Likewise.
904 * s-pack57.ads: Likewise.
905 * s-pack58.adb: Likewise.
906 * s-pack58.ads: Likewise.
907 * s-pack59.adb: Likewise.
908 * s-pack59.ads: Likewise.
909 * s-pack60.adb: Likewise.
910 * s-pack60.ads: Likewise.
911 * s-pack61.adb: Likewise.
912 * s-pack61.ads: Likewise.
913 * s-pack62.adb: Likewise.
914 * s-pack62.ads: Likewise.
915 * s-pack63.adb: Likewise.
916 * s-pack63.ads: Likewise.
917 * s-parame-ae653.ads: Likewise.
918 * s-parame-hpux.ads: Likewise.
919 * s-parame-rtems.adb: Likewise.
920 * s-parame-vms-alpha.ads: Likewise.
921 * s-parame-vms-ia64.ads: Likewise.
922 * s-parame-vms-restrict.ads: Likewise.
923 * s-parame-vxworks.adb: Likewise.
924 * s-parame-vxworks.ads: Likewise.
925 * s-parame.adb: Likewise.
926 * s-parame.ads: Likewise.
927 * s-parint.adb: Likewise.
928 * s-parint.ads: Likewise.
929 * s-pooglo.adb: Likewise.
930 * s-pooglo.ads: Likewise.
931 * s-pooloc.adb: Likewise.
932 * s-pooloc.ads: Likewise.
933 * s-poosiz.adb: Likewise.
934 * s-poosiz.ads: Likewise.
935 * s-powtab.ads: Likewise.
936 * s-proinf-irix-athread.adb: Likewise.
937 * s-proinf-irix-athread.ads: Likewise.
938 * s-proinf.adb: Likewise.
939 * s-proinf.ads: Likewise.
940 * s-purexc.ads: Likewise.
941 * s-rannum.adb: Likewise.
942 * s-rannum.ads: Likewise.
943 * s-restri.adb: Likewise.
944 * s-restri.ads: Likewise.
945 * s-rident.ads: Likewise.
946 * s-rpc.adb: Likewise.
947 * s-rpc.ads: Likewise.
948 * s-scaval.adb: Likewise.
949 * s-scaval.ads: Likewise.
950 * s-secsta.adb: Likewise.
951 * s-secsta.ads: Likewise.
952 * s-sequio.adb: Likewise.
953 * s-sequio.ads: Likewise.
954 * s-shasto.adb: Likewise.
955 * s-shasto.ads: Likewise.
956 * s-soflin.adb: Likewise.
957 * s-soflin.ads: Likewise.
958 * s-solita.adb: Likewise.
959 * s-solita.ads: Likewise.
960 * s-sopco3.adb: Likewise.
961 * s-sopco3.ads: Likewise.
962 * s-sopco4.adb: Likewise.
963 * s-sopco4.ads: Likewise.
964 * s-sopco5.adb: Likewise.
965 * s-sopco5.ads: Likewise.
966 * s-stache.adb: Likewise.
967 * s-stache.ads: Likewise.
968 * s-stalib.adb: Likewise.
969 * s-stalib.ads: Likewise.
970 * s-stausa.adb: Likewise.
971 * s-stausa.ads: Likewise.
972 * s-stchop-limit.ads: Likewise.
973 * s-stchop-rtems.adb: Likewise.
974 * s-stchop-vxworks.adb: Likewise.
975 * s-stchop.adb: Likewise.
976 * s-stchop.ads: Likewise.
977 * s-stoele.adb: Likewise.
978 * s-stoele.ads: Likewise.
979 * s-stopoo.adb: Likewise.
980 * s-stopoo.ads: Likewise.
981 * s-stratt.adb: Likewise.
982 * s-stratt.ads: Likewise.
983 * s-strcom.adb: Likewise.
984 * s-strcom.ads: Likewise.
985 * s-string.adb: Likewise.
986 * s-string.ads: Likewise.
987 * s-strops.adb: Likewise.
988 * s-strops.ads: Likewise.
989 * s-strxdr.adb: Likewise.
990 * s-ststop.adb: Likewise.
991 * s-ststop.ads: Likewise.
992 * s-taasde.adb: Likewise.
993 * s-taasde.ads: Likewise.
994 * s-tadeca.adb: Likewise.
995 * s-tadeca.ads: Likewise.
996 * s-tadert.adb: Likewise.
997 * s-tadert.ads: Likewise.
998 * s-taenca.adb: Likewise.
999 * s-taenca.ads: Likewise.
1000 * s-taprob.ads: Likewise.
1001 * s-taprop-dummy.adb: Likewise.
1002 * s-taprop-hpux-dce.adb: Likewise.
1003 * s-taprop-irix.adb: Likewise.
1004 * s-taprop-linux.adb: Likewise.
1005 * s-taprop-lynxos.adb: Likewise.
1006 * s-taprop-mingw.adb: Likewise.
1007 * s-taprop-posix.adb: Likewise.
1008 * s-taprop-solaris.adb: Likewise.
1009 * s-taprop-tru64.adb: Likewise.
1010 * s-taprop-vms.adb: Likewise.
1011 * s-taprop-vxworks.adb: Likewise.
1012 * s-taprop.ads: Likewise.
1013 * s-tarest.adb: Likewise.
1014 * s-tarest.ads: Likewise.
1015 * s-tasdeb.adb: Likewise.
1016 * s-tasdeb.ads: Likewise.
1017 * s-tasinf-irix.ads: Likewise.
1018 * s-tasinf-linux.adb: Likewise.
1019 * s-tasinf-linux.ads: Likewise.
1020 * s-tasinf-mingw.adb: Likewise.
1021 * s-tasinf-mingw.ads: Likewise.
1022 * s-tasinf-solaris.adb: Likewise.
1023 * s-tasinf-solaris.ads: Likewise.
1024 * s-tasinf-tru64.ads: Likewise.
1025 * s-tasinf.adb: Likewise.
1026 * s-tasinf.ads: Likewise.
1027 * s-tasini.adb: Likewise.
1028 * s-tasini.ads: Likewise.
1029 * s-taskin.adb: Likewise.
1030 * s-taskin.ads: Likewise.
1031 * s-taspri-dummy.ads: Likewise.
1032 * s-taspri-hpux-dce.ads: Likewise.
1033 * s-taspri-mingw.ads: Likewise.
1034 * s-taspri-solaris.ads: Likewise.
1035 * s-taspri-tru64.ads: Likewise.
1036 * s-taspri-vms.ads: Likewise.
1037 * s-taspri-vxworks.ads: Likewise.
1038 * s-tasque.adb: Likewise.
1039 * s-tasque.ads: Likewise.
1040 * s-tasren.adb: Likewise.
1041 * s-tasren.ads: Likewise.
1042 * s-tasres.ads: Likewise.
1043 * s-tassta.adb: Likewise.
1044 * s-tassta.ads: Likewise.
1045 * s-tasuti.adb: Likewise.
1046 * s-tasuti.ads: Likewise.
1047 * s-tfsetr-default.adb: Likewise.
1048 * s-tfsetr-vxworks.adb: Likewise.
1049 * s-tpinop.adb: Likewise.
1050 * s-tpinop.ads: Likewise.
1051 * s-tpoben.adb: Likewise.
1052 * s-tpoben.ads: Likewise.
1053 * s-tpobop.adb: Likewise.
1054 * s-tpobop.ads: Likewise.
1055 * s-tpopde-vms.adb: Likewise.
1056 * s-tpopde-vms.ads: Likewise.
1057 * s-tpopsp-lynxos.adb: Likewise.
1058 * s-tpopsp-posix-foreign.adb: Likewise.
1059 * s-tpopsp-posix.adb: Likewise.
1060 * s-tpopsp-solaris.adb: Likewise.
1061 * s-tpopsp-vxworks.adb: Likewise.
1062 * s-tporft.adb: Likewise.
1063 * s-tposen.adb: Likewise.
1064 * s-tposen.ads: Likewise.
1065 * s-traceb.adb: Likewise.
1066 * s-traceb.ads: Likewise.
1067 * s-traces-default.adb: Likewise.
1068 * s-traces.adb: Likewise.
1069 * s-traces.ads: Likewise.
1070 * s-traent-vms.adb: Likewise.
1071 * s-traent-vms.ads: Likewise.
1072 * s-traent.adb: Likewise.
1073 * s-traent.ads: Likewise.
1074 * s-trafor-default.adb: Likewise.
1075 * s-trafor-default.ads: Likewise.
1076 * s-tratas-default.adb: Likewise.
1077 * s-tratas.adb: Likewise.
1078 * s-tratas.ads: Likewise.
1079 * s-unstyp.ads: Likewise.
1080 * s-utf_32.adb: Likewise.
1081 * s-utf_32.ads: Likewise.
1082 * s-vaflop-vms-alpha.adb: Likewise.
1083 * s-vaflop.adb: Likewise.
1084 * s-vaflop.ads: Likewise.
1085 * s-valboo.adb: Likewise.
1086 * s-valboo.ads: Likewise.
1087 * s-valcha.adb: Likewise.
1088 * s-valcha.ads: Likewise.
1089 * s-valdec.adb: Likewise.
1090 * s-valdec.ads: Likewise.
1091 * s-valenu.adb: Likewise.
1092 * s-valenu.ads: Likewise.
1093 * s-valint.adb: Likewise.
1094 * s-valint.ads: Likewise.
1095 * s-vallld.adb: Likewise.
1096 * s-vallld.ads: Likewise.
1097 * s-vallli.adb: Likewise.
1098 * s-vallli.ads: Likewise.
1099 * s-valllu.adb: Likewise.
1100 * s-valllu.ads: Likewise.
1101 * s-valrea.adb: Likewise.
1102 * s-valrea.ads: Likewise.
1103 * s-valuns.adb: Likewise.
1104 * s-valuns.ads: Likewise.
1105 * s-valuti.adb: Likewise.
1106 * s-valuti.ads: Likewise.
1107 * s-valwch.adb: Likewise.
1108 * s-valwch.ads: Likewise.
1109 * s-veboop.adb: Likewise.
1110 * s-veboop.ads: Likewise.
1111 * s-vector.ads: Likewise.
1112 * s-vercon.adb: Likewise.
1113 * s-vercon.ads: Likewise.
1114 * s-vmexta.adb: Likewise.
1115 * s-vmexta.ads: Likewise.
1116 * s-vxwext-kernel.ads: Likewise.
1117 * s-vxwext-rtp.adb: Likewise.
1118 * s-vxwext-rtp.ads: Likewise.
1119 * s-vxwext.ads: Likewise.
1120 * s-vxwork-arm.ads: Likewise.
1121 * s-vxwork-m68k.ads: Likewise.
1122 * s-vxwork-mips.ads: Likewise.
1123 * s-vxwork-ppc.ads: Likewise.
1124 * s-vxwork-sparcv9.ads: Likewise.
1125 * s-vxwork-x86.ads: Likewise.
1126 * s-wchcnv.adb: Likewise.
1127 * s-wchcnv.ads: Likewise.
1128 * s-wchcon.adb: Likewise.
1129 * s-wchcon.ads: Likewise.
1130 * s-wchjis.adb: Likewise.
1131 * s-wchjis.ads: Likewise.
1132 * s-wchstw.adb: Likewise.
1133 * s-wchstw.ads: Likewise.
1134 * s-wchwts.adb: Likewise.
1135 * s-wchwts.ads: Likewise.
1136 * s-widboo.adb: Likewise.
1137 * s-widboo.ads: Likewise.
1138 * s-widcha.adb: Likewise.
1139 * s-widcha.ads: Likewise.
1140 * s-widenu.adb: Likewise.
1141 * s-widenu.ads: Likewise.
1142 * s-widlli.adb: Likewise.
1143 * s-widlli.ads: Likewise.
1144 * s-widllu.adb: Likewise.
1145 * s-widllu.ads: Likewise.
1146 * s-widwch.adb: Likewise.
1147 * s-widwch.ads: Likewise.
1148 * s-win32.ads: Likewise.
1149 * s-winext.ads: Likewise.
1150 * s-wwdcha.adb: Likewise.
1151 * s-wwdcha.ads: Likewise.
1152 * s-wwdenu.adb: Likewise.
1153 * s-wwdenu.ads: Likewise.
1154 * s-wwdwch.adb: Likewise.
1155 * s-wwdwch.ads: Likewise.
1156 * scans.adb: Likewise.
1157 * scans.ads: Likewise.
1158 * seh_init.c: Likewise.
1159 * sfn_scan.adb: Likewise.
1160 * sinfo.adb: Likewise.
1161 * sinfo.ads: Likewise.
1162 * sinput.adb: Likewise.
1163 * sinput.ads: Likewise.
1164 * snames.adb: Likewise.
1165 * snames.ads: Likewise.
1166 * socket.c: Likewise.
1167 * stand.adb: Likewise.
1168 * stand.ads: Likewise.
1169 * stringt.adb: Likewise.
1170 * stringt.ads: Likewise.
1171 * sysdep.c: Likewise.
1172 * system-aix.ads: Likewise.
1173 * system-darwin-ppc.ads: Likewise.
1174 * system-darwin-x86.ads: Likewise.
1175 * system-darwin-x86_64.ads: Likewise.
1176 * system-freebsd-x86.ads: Likewise.
1177 * system-hpux-ia64.ads: Likewise.
1178 * system-hpux.ads: Likewise.
1179 * system-irix-n32.ads: Likewise.
1180 * system-irix-n64.ads: Likewise.
1181 * system-irix-o32.ads: Likewise.
1182 * system-linux-alpha.ads: Likewise.
1183 * system-linux-hppa.ads: Likewise.
1184 * system-linux-ia64.ads: Likewise.
1185 * system-linux-mips.ads: Likewise.
1186 * system-linux-mipsel.ads: Likewise.
1187 * system-linux-ppc.ads: Likewise.
1188 * system-linux-ppc64.ads: Likewise.
1189 * system-linux-s390.ads: Likewise.
1190 * system-linux-s390x.ads: Likewise.
1191 * system-linux-sh4.ads: Likewise.
1192 * system-linux-sparc.ads: Likewise.
1193 * system-linux-sparcv9.ads: Likewise.
1194 * system-linux-x86.ads: Likewise.
1195 * system-linux-x86_64.ads: Likewise.
1196 * system-lynxos-ppc.ads: Likewise.
1197 * system-lynxos-x86.ads: Likewise.
1198 * system-mingw-x86_64.ads: Likewise.
1199 * system-mingw.ads: Likewise.
1200 * system-rtems.ads: Likewise.
1201 * system-solaris-sparc.ads: Likewise.
1202 * system-solaris-sparcv9.ads: Likewise.
1203 * system-solaris-x86.ads: Likewise.
1204 * system-solaris-x86_64.ads: Likewise.
1205 * system-tru64.ads: Likewise.
1206 * system-vms-ia64.ads: Likewise.
1207 * system-vms-zcx.ads: Likewise.
1208 * system-vms.ads: Likewise.
1209 * system-vms_64.ads: Likewise.
1210 * system-vxworks-arm.ads: Likewise.
1211 * system-vxworks-m68k.ads: Likewise.
1212 * system-vxworks-mips.ads: Likewise.
1213 * system-vxworks-ppc.ads: Likewise.
1214 * system-vxworks-sparcv9.ads: Likewise.
1215 * system-vxworks-x86.ads: Likewise.
1216 * system.ads: Likewise.
1217 * table.adb: Likewise.
1218 * table.ads: Likewise.
1219 * targext.c: Likewise.
1220 * targparm.ads: Likewise.
1221 * tree_in.adb: Likewise.
1222 * tree_in.ads: Likewise.
1223 * tree_io.adb: Likewise.
1224 * tree_io.ads: Likewise.
1225 * types.adb: Likewise.
1226 * types.ads: Likewise.
1227 * uintp.adb: Likewise.
1228 * uintp.ads: Likewise.
1229 * uname.adb: Likewise.
1230 * uname.ads: Likewise.
1231 * urealp.adb: Likewise.
1232 * urealp.ads: Likewise.
1233 * vx_stack_info.c: Likewise.
1234 * widechar.adb: Likewise.
1235 * widechar.ads: Likewise.
1236 * exp_attr.adb: Change copyright header to refer to version
1237 3 of the GNU General Public License and to point readers at the
1238 COPYING3 file and the FSF's license web page.
1239 * sem.adb: Likewise.
1240 * sem_attr.ads: Likewise.
1241 * freeze.adb: Likewise.
1242 * freeze.ads: Likewise.
1243 * errout.ads: Likewise.
1244 * erroutc.adb: Likewise.
1245 * exp_ch11.ads: Likewise.
1247 2009-04-09 Jakub Jelinek <jakub@redhat.com>
1249 * config-lang.in: Change copyright header to refer to version
1250 3 of the GNU General Public License and to point readers at the
1251 COPYING3 file and the FSF's license web page.
1252 * gcc-interface/trans.c: Likewise.
1253 * gnathtml.pl: Likewise.
1254 * gcc-interface/ada.h: Likewise. Remove runtime exception.
1255 * gcc-interface/gigi.h: Likewise.
1256 * gcc-interface/misc.c: Likewise.
1257 * gcc-interface/targtyps.c: Likewise.
1259 2009-04-09 Nicolas Setton <setton@adacore.com>
1261 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
1263 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
1266 2009-04-09 Bob Duff <duff@adacore.com>
1268 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
1269 internally-generated nodes related to select statements to avoid
1270 confusing the debugger.
1272 2009-04-09 Pascal Obry <obry@adacore.com>
1274 * make.adb: Ensure that all linker arguments are duplicated.
1276 2009-04-09 Robert Dewar <dewar@adacore.com>
1278 * sem_ch5.adb: Minor reformatting
1280 2009-04-09 Vincent Celier <celier@adacore.com>
1283 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
1284 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
1285 New qualifier /LXDEBUG=nnn for -gnatDnnn
1289 Update documentation for VMS qualifiers equivalent to -gnatGnn and
1292 2009-04-09 Nicolas Setton <setton@adacore.com>
1294 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
1295 to match layout of siginfo_t in sys/signal.h.
1297 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
1299 2009-04-09 Thomas Quinot <quinot@adacore.com>
1301 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
1303 2009-04-09 Nicolas Setton <setton@adacore.com>
1305 * s-oscons-tmplt.c: Allow long lines in the generated spec.
1306 Add generation of Darwin-specific constants needed when binding to the
1309 2009-04-09 Robert Dewar <dewar@adacore.com>
1312 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
1313 when no invalid values exist, Avoid duplicate read of atomic variable.
1315 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
1316 (Standard_Unsigned): Set Is_Known_Valid
1318 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
1319 subtype declaration if no constraint.
1320 (Set_Modular_Size): Set Is_Known_Valid if appropriate
1321 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
1323 2009-04-09 Robert Dewar <dewar@adacore.com>
1325 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
1326 switch.ads: for numeric switches, an optional equal sign is always
1329 2009-04-09 Vincent Celier <celier@adacore.com>
1331 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
1332 the case of file names is not significant.
1334 2009-04-09 Vincent Celier <celier@adacore.com>
1336 * errout.adb: Remove dependency on package Style
1338 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
1341 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
1344 * errutil.adb, par.adb: Import Stylesw
1346 2009-04-09 Arnaud Charlet <charlet@adacore.com>
1348 * opt.ads: Fix typos.
1350 2009-04-09 Robert Dewar <dewar@adacore.com>
1352 * einfo.adb: Minor reformatting
1354 2009-04-09 Robert Dewar <dewar@adacore.com>
1356 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
1359 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
1361 2009-04-09 Robert Dewar <dewar@adacore.com>
1363 * g-comver.adb: Minor reformatting.
1365 2009-04-09 Thomas Quinot <quinot@adacore.com>
1367 * lib-load.ads (Load_Unit): Update documentation.
1369 2009-04-09 Ed Schonberg <schonberg@adacore.com>
1371 * lib-load.adb (Load_Unit): When loading the parent of a child unit
1372 named in a with_clause, retain the with_clause to preserve a
1373 limited_with indication.
1375 2009-04-09 Robert Dewar <dewar@adacore.com>
1377 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
1378 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
1379 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
1380 possible to replace an OR of two separate tests.
1382 2009-04-09 Robert Dewar <dewar@adacore.com>
1384 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
1387 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
1388 warning status as well.
1390 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
1392 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
1395 * bindusg.adb, usage.adb: Update line for -gnatm switch
1397 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
1400 2009-04-09 Robert Dewar <dewar@adacore.com>
1402 * sem_ch10.adb: Minor reformatting.
1404 2009-04-09 Bob Duff <duff@adacore.com>
1406 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
1407 Set Sloc of generated nodes for calls to Undefer_Aborts and
1408 Save_Occurrence to No_Location, so the debugger ignores them and
1409 therefore does not jump back and forth when single stepping.
1411 2009-04-09 Robert Dewar <dewar@adacore.com>
1413 * switch-b.adb: Minor reformatting.
1415 2009-04-09 Robert Dewar <dewar@adacore.com>
1417 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
1418 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
1419 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
1420 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
1421 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
1422 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
1423 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
1424 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
1425 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
1426 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
1427 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
1429 2009-04-09 Robert Dewar <dewar@adacore.com>
1431 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
1433 * atree.h: Add Elist26
1435 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
1438 2009-04-09 Javier Miranda <miranda@adacore.com>
1440 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
1441 retrieve from the Dispatch_Table_Wrappers list the external name.
1442 Addition of documentation.
1443 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
1444 used to export secondary dispatch tables (in the previous version of
1445 the frontend only primary dispatch tables were exported). Addition of
1447 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
1448 dispatch table of a given tagged type.
1449 (Make_Tags): Modified to import secondary dispatch tables.
1451 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
1452 (Constant_Redeclaration): Code cleanup.
1454 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
1455 Dispatch_Table_Wrappers. Update documentation.
1457 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
1458 Renamed to Dispatch_Table_Wrappers.
1460 * sem_util.adb (Collect_Interface_Components): Improve handling of
1463 * atree.ads (Elist26, Set_Elist26): New subprograms
1465 * atree.adb (Elist26, Set_Elist26): New subprograms
1467 2009-04-09 Javier Miranda <miranda@adacore.com>
1469 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
1470 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
1473 2009-04-09 Robert Dewar <dewar@adacore.com>
1475 * s-direio.adb: Minor reformatting
1477 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
1479 2009-04-09 Robert Dewar <dewar@adacore.com>
1481 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
1483 2009-04-09 Pascal Obry <obry@adacore.com>
1485 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
1486 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
1487 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
1488 a-filico.ads: Add some missing overriding keywords.
1490 2009-04-09 Pascal Obry <obry@adacore.com>
1492 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
1493 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
1494 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
1497 2009-04-09 Ed Schonberg <schonberg@adacore.com>
1499 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
1500 missing overriding indicator if the new declaration is not seen as
1503 2009-04-09 Thomas Quinot <quinot@adacore.com>
1505 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
1506 overflows in computation of bounds.
1508 2009-04-09 Pascal Obry <obry@adacore.com>
1510 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
1513 2009-04-09 Robert Dewar <dewar@adacore.com>
1515 * sem_attr.adb (Check_Stream_Attribute): Check violation of
1516 restriction No_Streams
1518 * gnat_rm.texi: Clarify No_Streams restriction
1520 * g-socket.adb: Minor reformatting.
1522 2009-04-09 Thomas Quinot <quinot@adacore.com>
1524 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
1526 2009-04-09 Geert Bosch <bosch@adacore.com>
1528 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
1529 (Set_Result): Likewise.
1530 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
1531 conversion, as required by RM 4.6(31).
1533 2009-04-08 Robert Dewar <dewar@adacore.com>
1535 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
1538 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
1541 2009-04-08 Robert Dewar <dewar@adacore.com>
1543 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
1544 No_Local_Allocators restriction preventing local instantiation.
1546 2009-04-08 Thomas Quinot <quinot@adacore.com>
1548 * sem_eval.adb: Minor comment fix
1550 2009-04-08 Thomas Quinot <quinot@adacore.com>
1552 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
1553 New limited controlled type used to automate the initialization and
1554 finalization of the sockets implementation.
1555 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
1557 2009-04-08 Vincent Celier <celier@adacore.com>
1559 * prj-attr.adb: New read-only project-level attribute Project_Dir
1561 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
1562 read-only attribute of the same name.
1563 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
1564 (Recursive_Process): Ditto
1566 * snames.adb: Add new standard name Project_Dir
1568 * snames.ads: Add new standard name Project_Dir
1570 2009-04-08 Thomas Quinot <quinot@adacore.com>
1572 * checks.adb: Minor reformatting
1574 2009-04-08 Vincent Celier <celier@adacore.com>
1576 * vms_data.ads: Add documentation for new style keyword
1577 OVERRIDING_INDICATORS
1579 2009-04-08 Robert Dewar <dewar@adacore.com>
1581 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
1582 spec is in the current unit.
1584 2009-04-08 Ed Schonberg <schonberg@adacore.com>
1586 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
1589 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
1591 2009-04-08 Vincent Celier <celier@adacore.com>
1593 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
1595 2009-04-08 Thomas Quinot <quinot@adacore.com>
1597 * checks.ads: Minor reformatting
1599 2009-04-08 Robert Dewar <dewar@adacore.com>
1601 * gnat_rm.texi: Update documentation of pragma Obsolescent
1603 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
1604 be omitted, and allow Entity parameter to be omitted.
1606 2009-04-08 Thomas Quinot <quinot@adacore.com>
1608 * exp_util.adb: Minor comment fix
1610 2009-04-08 Robert Dewar <dewar@adacore.com>
1612 * g-socket.ads: Fix bad syntax in pragma Obsolescent
1614 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
1615 argument with no identifier following one that has an identifier. Was
1616 missed in some cases.
1618 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
1620 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
1622 * snames.adb: Add Name_Policy
1624 * snames.ads: Add Name_Policy
1626 2009-04-08 Robert Dewar <dewar@adacore.com>
1628 * gnat_rm.texi: Minor reformatting
1630 * par-ch2.adb: Minor reformatting
1632 2009-04-08 Robert Dewar <dewar@adacore.com>
1634 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
1636 2009-04-08 Robert Dewar <dewar@adacore.com>
1638 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
1639 properly in the presence of Remote_Types or Remote_Call_Interface.
1641 * sem_util.adb: Add comment.
1643 2009-04-08 Robert Dewar <dewar@adacore.com>
1645 * ug_words: Add /ASSUME_VALID for -gnatB
1647 * vms_data.ads: Add /ASSUME_VALID for -gnatB
1649 * sem_cat.adb: Add clarifying commment
1651 * a-direio.ads (Bytes): Make sure value is non-zero
1653 2009-04-08 Ed Schonberg <schonberg@adacore.com>
1655 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
1656 that does not come from source, check for a rewritten function call in
1657 prefixed notation before other forms of rewriting.
1659 2009-04-08 Robert Dewar <dewar@adacore.com>
1661 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
1662 these are now obsolescent units used only for bootrapping with an
1665 2009-04-08 Robert Dewar <dewar@adacore.com>
1667 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
1669 * sem_ch3.adb: Minor comment updates
1671 2009-04-08 Ed Schonberg <schonberg@adacore.com>
1673 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
1674 that come from source.
1676 2009-04-08 Tristan Gingold <gingold@adacore.com>
1678 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
1679 * gcc-interface/decl.c (prepend_attributes): New case
1680 Pragma_Thread_Local_Storage.
1681 * gcc-interface/utils.c (process_attributes): New case
1682 ATTR_THREAD_LOCAL_STORAGE.
1684 2009-04-08 Ed Schonberg <schonberg@adacore.com>
1686 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
1687 by the back-end if it contains a call to a subprogram without a
1688 previous spec that is declared in the same unit.
1690 * errout.ads: Update comments on uses of dirs
1692 2009-04-08 Robert Dewar <dewar@adacore.com>
1694 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
1696 2009-04-08 Tristan Gingold <gingold@adacore.com>
1698 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
1700 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
1702 2009-04-08 Vincent Celier <celier@adacore.com>
1705 (Add_Source): Add the mapping of the unit name to source file name in
1706 the Unit_Sources_HT hash table, if the unit name is not null.
1708 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
1710 * prj.ads (Unit_Sources_Htable): New hash table instantiation
1711 (Project_Tree_Data): New component Unit_Sources_HT
1713 2009-04-08 Thomas Quinot <quinot@adacore.com>
1715 * sem_ch8.adb: Minor reformatting.
1716 Minor code reorganization.
1718 2009-04-08 Robert Dewar <dewar@adacore.com>
1720 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
1721 snames.ads, freeze.adb, par-prag.adb: Add implementation of
1722 pragma Thread_Local_Storage, setting new flag
1723 Has_Pragma_Thread_Local_Storage in corresponding entities.
1725 2009-04-08 Emmanuel Briot <briot@adacore.com>
1727 * prj.ads: Update comment on switches file
1729 * prj-nmsc.adb: Code clean up. Use renaming clauses.
1731 2009-04-08 Robert Dewar <dewar@adacore.com>
1733 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
1735 2009-04-08 Thomas Quinot <quinot@adacore.com>
1737 * ali-util.adb: Minor comment fix
1739 2009-04-08 Ed Schonberg <schonberg@adacore.com>
1741 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
1742 appears in a context clause, and the enclosing package is mentioned in
1743 a limited_with_clause.
1744 (Use_One_Type): Reject clause if type is still incomplete.
1746 2009-04-08 Emmanuel Briot <briot@adacore.com>
1748 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
1749 avoid copies of Source_Data variables when possible, since these
1750 involve calls to memcpy() which are done too many times.
1752 2009-04-08 Robert Dewar <dewar@adacore.com>
1754 * exp_ch4.adb (Expand_Concatenate): Clean up code
1756 2009-04-07 Thomas Quinot <quinot@adacore.com>
1758 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
1759 type for the case of concatenating a constrained array indexed by an
1762 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1764 * sem_ch6.adb (Check_Conformance): when checking conformance of an
1765 operation that overrides an abstract operation inherited from an
1766 interface, return False if only one of the controlling formals is an
1769 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1771 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
1772 mandated by AI05-105.
1774 2009-04-07 Vincent Celier <celier@adacore.com>
1776 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
1778 2009-04-07 Thomas Quinot <quinot@adacore.com>
1780 * usage.adb: Minor fix in usage message.
1782 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
1783 match declaration; the correct subtype is Node_Id, not Entity_Id,
1784 because the expected node kind is an identifier, not a defining
1787 * switch-c.adb: Minor reformatting.
1789 * uintp.adb: Minor reformatting.
1791 2009-04-07 Robert Dewar <dewar@adacore.com>
1793 * exp_ch13.adb: Minor reformatting
1795 2009-04-07 Robert Dewar <dewar@adacore.com>
1797 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
1798 against missing parent.
1800 2009-04-07 Thomas Quinot <quinot@adacore.com>
1802 * xoscons.adb: Minor reformatting
1804 2009-04-07 Robert Dewar <dewar@adacore.com>
1806 * rtsfind.ads: Remove obsolete string concatenation entries
1808 2009-04-07 Robert Dewar <dewar@adacore.com>
1810 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
1812 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1814 * sem_ch10.adb (Check_Body_Required): Handle properly imported
1817 2009-04-07 Gary Dismukes <dismukes@adacore.com>
1819 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
1820 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
1821 is of a scalar or string type then suppress the setting of the
1822 expression to Empty.
1824 * freeze.adb (Warn_Overlay): Also emit the warnings about default
1825 initialization for the cases of scalar and string objects when
1826 Init_Or_Norm_Scalars is True.
1828 2009-04-07 Bob Duff <duff@adacore.com>
1830 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
1832 2009-04-07 Bob Duff <duff@adacore.com>
1834 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
1835 Form parameter of Text_Translation=No allows binary mode for Text_IO
1838 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
1840 2009-04-07 Javier Miranda <miranda@adacore.com>
1842 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
1843 processing the bounds for bit packed arrays or VM target machines.
1845 2009-04-07 Thomas Quinot <quinot@adacore.com>
1847 * g-sothco.ads (Int_Access): Remove extraneous access type (use
1848 anonymous access instead).
1849 (Get_Socket_From_Set): Fix incorrectly reverted formals
1850 Last and Socket to match the underlying C routine.
1852 * g-socket.adb, g-socket.ads
1853 (Get): Use named parameter associations instead of positional ones in
1854 call go Get_Socket_From_Set, since this routine has two formals of the
1856 (Image): New procedure.
1858 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
1859 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
1860 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
1861 for type of Arg formal.
1863 * sem_warn.adb: Minor reformatting
1865 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1867 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
1868 over record components.
1870 2009-04-07 Nicolas Roche <roche@adacore.com>
1873 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
1874 has disappeared between VxWorks 6.4 and VxWorks 6.5
1875 In RTP mode use time.h instead of times.h
1877 2009-04-07 Robert Dewar <dewar@adacore.com>
1879 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
1881 2009-04-07 Kevin Pouget <pouget@adacore.com>
1883 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
1884 expanded code for constrained types.
1886 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1888 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
1889 AI05-105: in an object renaming declaration, anonymousness is a name
1892 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1894 2009-04-07 Arnaud Charlet <charlet@adacore.com>
1896 * g-comlin.adb (Expansion): Fix old regression: also return directory
1897 names when matching.
1899 2009-04-07 Robert Dewar <dewar@adacore.com>
1902 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
1903 (Expand_Concatenate): New name for Expand_Concatenate_String which has
1904 been rewritten to handle all types.
1905 (Expand_Concatenate_Other): Remove
1907 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1909 * lib-xref.adb (Generate_Reference): A default subprogram in an
1910 instance appears within the tree for the instance, but generates an
1911 implicit reference in the ALI.
1913 2009-04-07 Javier Miranda <miranda@adacore.com>
1915 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
1916 derived type that has discriminants, propagate the list of interfaces
1917 to the corresponding new base type. In addition, propagate also
1918 attribute Limited_Present (found working in this patch).
1920 2009-04-07 Robert Dewar <dewar@adacore.com>
1922 * exp_ch4.adb: Rewrite concatenation expansion.
1924 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1926 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
1927 relevant to packages.
1929 2009-04-07 Robert Dewar <dewar@adacore.com>
1931 * sem_attr.adb: Minor reformatting
1933 * sem_ch6.adb: Minor reformatting
1935 2009-04-07 Tristan Gingold <gingold@adacore.com>
1937 * socket.c: Add more protections against S_resolvLib_ macros.
1939 2009-04-07 Thomas Quinot <quinot@adacore.com>
1941 * sem_attr.adb: Minor reformatting
1943 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1945 * sem_ch6.adb (New_Overloaded_Entity): New predicate
1946 Is_Overriding_Alias to handle properly types that inherit two homonym
1947 operations that have distinct dispatch table entries.
1949 2009-04-07 Emmanuel Briot <briot@adacore.com>
1951 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
1952 looking for the end of a parenthesis group
1954 2009-04-07 Tristan Gingold <gingold@adacore.com>
1956 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
1958 * socket.c Don't use resolvLib_ macros if not defined.
1960 2009-04-07 Robert Dewar <dewar@adacore.com>
1962 * g-socket.adb: Minor reformatting.
1964 * g-socthi-mingw.adb: Minor reformatting
1966 * g-sothco.ads: Minor reformatting
1969 (Expand_Concatenate_String): Complete rewrite to generate efficient code
1970 inline instead of relying on external library routines.
1972 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
1973 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
1976 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1979 (Eval_Attribute): for attributes of array objects that are not strings,
1980 attributes are not static if nominal subtype of object is unconstrained.
1982 2009-04-07 Ed Schonberg <schonberg@adacore.com>
1984 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
1985 operations for a type T in an instance do not override each other,
1986 when T is derived from a formal private type, the corresponding
1987 operations inherited by a type derived from T outside
1988 of the instance do not override each other either.
1990 2009-04-07 Robert Dewar <dewar@adacore.com>
1992 (Osint.Fail): Change calling sequence to have one string arg
1993 (Make.Make_Failed): Same change
1994 All callers are adjusted to use concatenation
1996 2009-04-07 Robert Dewar <dewar@adacore.com>
1998 * exp_ch4.adb: Fix documentation typo
2000 2009-04-07 Robert Dewar <dewar@adacore.com>
2002 * tbuild.ads: Minor reformatting
2004 2009-04-07 Javier Miranda <miranda@adacore.com>
2006 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
2007 when compiling under ZFP runtime.
2009 2009-04-07 Robert Dewar <dewar@adacore.com>
2011 * g-comlin.adb: Minor reformatting
2013 2009-04-07 Thomas Quinot <quinot@adacore.com>
2015 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
2016 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
2017 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
2018 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
2020 2009-04-07 Robert Dewar <dewar@adacore.com>
2022 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
2024 * opt.ads (Sprint_Line_Limit): New parameter
2026 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
2028 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
2030 * usage.adb: Output information for -gnatGnn -gnatDnn
2032 2009-04-07 Robert Dewar <dewar@adacore.com>
2034 * make.adb: Minor reformatting
2036 2009-04-07 Robert Dewar <dewar@adacore.com>
2038 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
2040 2009-04-07 Robert Dewar <dewar@adacore.com>
2042 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
2044 2009-04-07 Robert Dewar <dewar@adacore.com>
2047 Remove Assume_Valid parameter from In_Subrange_Of calls
2050 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2051 (Is_In_Range): Remove incorrect use of Assume_Valid
2052 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
2055 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
2056 (Is_In_Range): Documentation cleanup
2057 (Is_Out_Of_Range): Documentation cleanup
2060 Add documentation for Assume_No_Invalid_Values pragma
2062 * sem_ch12.adb: Minor reformatting
2064 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
2066 * sem_prag.adb: Improve error message.
2068 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
2069 LF/CR no longer recognized as line terminator
2071 * switch.ads: Minor documentation improvement
2073 * vms_data.ads: Minor reformatting
2075 2009-04-07 Robert Dewar <dewar@adacore.com>
2077 * checks.adb (Determine_Range): Add Assume_Valid parameter
2079 * checks.ads (Determine_Range): Add Assume_Valid parameter
2081 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
2082 Is_Null_Loop to suppress warnings in a loop body.
2085 (Rewrite_Comparison): Major rewrite to accomodate invalid values
2088 (Expand_N_Loop_Statement): Delete loop known not to execute
2091 (Assume_No_Invalid_Values): Now set to False, and as documented, this
2092 fully enables the proper handling of invalid values.
2095 New calling sequence for Is_In_Range
2098 (Analyze_Iteration_Scheme): Accomodate possible invalid values
2099 in determining if a loop range is null.
2102 (Is_In_Range): Add Assume_Valid parameter
2103 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2104 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
2105 also to do more accurate and complete range analysis, catching more
2109 (Is_In_Range): Add Assume_Valid parameter
2110 (Is_Out_Of_Range): Add Assume_Valid_Parameter
2113 New calling sequence for Is_In_Range
2116 (Suppress_Loop_Warnings): New flag
2119 (Is_Null_Loop): Update documentation
2120 (Suppress_Loop_Warnings): New flag
2122 * gnat_ugn.texi: Document -gnatB switch
2124 2009-04-07 Arnaud Charlet <charlet@adacore.com>
2126 * gnatvsn.ads: Bump version number.
2128 2009-04-07 Thomas Quinot <quinot@adacore.com>
2130 * exp_ch3.adb: Minor rewording (comments)
2132 2009-04-07 Robert Dewar <dewar@adacore.com>
2134 * exp_disp.adb: Minor reformatting
2136 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2138 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
2140 * gcc-interface/trans.c (lvalue_required_p): Likewise.
2142 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2144 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
2145 Do not convert the result. Remove obsolete comment.
2147 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2149 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
2151 (Subprogram_Body_to_gnu): Fix pasto.
2153 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2155 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
2156 (void_type_decl_node): Remove.
2157 (init_gigi_decls): Likewise.
2158 (gnat_install_builtins): Declare.
2159 (record_builtin_type): Likewise.
2160 (create_type_stub_decl): Likewise.
2161 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
2162 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
2164 <E_Array_Subtype>: Use the index types, not only their name, in the
2165 record giving the names of the bounds, if any.
2166 For a packed array type, make it artificial only if the base type
2167 was artificial as well. Remove redundant statement.
2168 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
2170 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
2171 (rest_of_type_decl_compilation_no_defer): Likewise.
2172 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
2173 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
2174 and use create_type_stub_decl to build it.
2175 (gnat_pushdecl): Rewrite condition.
2176 (gnat_install_builtins): Remove bogus declaration.
2177 (record_builtin_type): New function.
2178 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
2180 (create_type_stub_decl): New function.
2181 (create_type_decl): Assert that the type is not dummy. If the type
2182 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
2183 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
2184 (build_vms_descriptor): Likewise.
2185 (init_gigi_decls): Delete and move bulk of code to...
2186 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
2187 (emit_range_check): Add gnat_node parameter.
2188 (emit_index_check): Likewise.
2189 (emit_check): Likewise.
2190 (build_unary_op_trapv): Likewise.
2191 (build_binary_op_trapv): Likewise.
2192 (convert_with_check): Likewise.
2193 (Attribute_to_gnu): Adjust calls for above changes.
2194 (call_to_gnu): Likewise.
2195 (gnat_to_gnu): Likewise.
2196 (assoc_to_constructor): Likewise.
2197 (pos_to_constructor): Likewise.
2198 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
2199 (process_type): Do not create TYPE_DECL for dummy types.
2201 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2203 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
2204 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
2205 * gcc-interface/utils.c: Fix comments.
2207 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2209 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
2211 (gnat_to_gnu_type): Move around.
2212 (get_unpadded_type): Likewise.
2213 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
2216 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
2218 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
2219 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
2220 (call_to_gnu): Invoke it instead of manually checking.
2222 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
2224 * gcc-interface/utils.c (finish_record_type): Force structural equality
2225 checks if the record type is discriminated.
2227 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
2229 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
2230 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
2231 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
2232 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
2233 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
2234 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
2235 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
2237 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
2239 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
2240 of TREE_CONSTANT_OVERFLOW.
2242 2009-03-30 Joseph Myers <joseph@codesourcery.com>
2244 PR rtl-optimization/323
2245 * gcc-interface/misc.c (gnat_post_options): Set
2246 flag_excess_precision_cmdline. Give an error for
2247 -fexcess-precision=standard for processors where the option is
2250 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
2253 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
2256 2009-03-11 Olivier Hainque <hainque@adacore.com>
2258 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
2259 checks processing, remove unintended TREE_TYPE walk on index type.
2261 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
2264 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
2265 call make_packable_type on fat pointer types.
2266 <E_Array_Subtype>: Likewise.
2267 <E_Record_Subtype>: Call make_packable_type on all record types
2268 except for fat pointer types.
2269 (make_packable_type): Likewise.
2270 (gnat_to_gnu_field): Likewise.
2272 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
2274 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
2275 EH_MECHANISM change made on 2007-12-06.
2277 2009-02-26 Andreas Schwab <schwab@suse.de>
2280 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
2281 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
2282 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
2284 (target_cpu_default): Substitute.
2286 2009-02-25 Laurent GUERBY <laurent@guerby.net>
2289 * a-teioed.adb (Expand): Fix Result overflow.
2291 2009-02-25 Laurent GUERBY <laurent@guerby.net>
2293 * gcc-interface/Makefile.in: Fix multilib handling for
2296 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2298 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
2300 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
2302 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
2304 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
2306 * gcc-interface/deftarg.c: Remove.
2308 2009-02-10 Olivier Hainque <hainque@adacore.com>
2309 Eric Botcazou <ebotcazou@adacore.com>
2311 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
2312 (copy_alias_set): Rename into...
2313 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
2314 underlying array of unconstrained arrays for the new type as well.
2315 If the old and new alias sets don't conflict, make one a subset of
2316 the other as per the OP parameter.
2317 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
2318 <E_Record_Type>: Do not copy the alias set for derived types.
2319 For all types, make the alias set of derived types a superset of
2320 that of their parent type.
2321 (make_aligning_type): Adjust calls to copy_alias_set.
2322 (make_packable_type): Likewise.
2323 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
2324 Check for alias set conflict instead of strict equality to issue the
2327 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
2329 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2330 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
2331 (copy_alias_set): Assert that arrays have the same aliasing settings.
2332 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
2334 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
2336 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
2337 Set TYPE_NONALIASED_COMPONENT on the array type.
2339 2009-01-31 Laurent GUERBY <laurent@guerby.net>
2341 * gcc-interface/Makefile.in: Fix mipsel linux handling.
2343 2009-01-16 Jakub Jelinek <jakub@redhat.com>
2345 * gcc-interface/Makefile.in: Fix multilib handling for
2348 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
2350 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
2351 only useless conversions around renamed objects.
2353 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
2355 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
2356 the _Tag field before any discriminants in the field list.
2357 (components_to_record): Remove obsolete comment.
2359 2008-12-09 Jakub Jelinek <jakub@redhat.com>
2362 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
2363 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
2366 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
2369 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
2371 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
2374 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
2376 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
2378 * gcc-interface/decl.c: Fix various nits.
2380 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
2382 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
2384 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
2387 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
2388 special-case boolean types. Propagate the name.
2389 * gcc-interface/targtyps.c: Tweak comment.
2391 2008-11-15 Geert Bosch <bosch@adacore.com>
2393 * gcc-interface/trans.c (emit_check): Put back a final save_expr
2394 to prevent exponential expansion during gimplification.
2396 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
2398 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
2400 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
2402 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
2403 initialized to a static constant to be statically allocated even if
2404 they are of a padding type, provided the original type also has
2407 2008-11-15 Laurent Guerby <laurent@guerby.net>
2410 * gcc-interface/Makefile.in: Add multilib handling for x86_64
2412 * system-darwin-x86_64.ads: New file.
2414 2008-11-13 Olivier Hainque <hainque@adacore.com>
2416 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
2417 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
2418 are explicit to the middle-end. Tidy.
2420 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
2422 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
2423 (MINUS_NOMOD_EXPR): Likewise.
2424 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
2426 <PLUS_NOMOD_EXPR>: New case.
2427 <MINUS_NOMOD_EXPR>: Likewise.
2428 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
2429 assignment statement instead of using an increment operator.
2431 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2433 * system-irix-n64.ads: New file.
2434 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
2437 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2440 * system-solaris-x86_64.ads: New file.
2441 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
2443 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
2444 Eric Botcazou <ebotcazou@adacore.com>
2447 * lib.ads: (Enable_Switch_Storing): Declare.
2448 * lib.adb: (Enable_Switch_Storing): New procedure.
2449 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
2450 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
2451 (Display): Never display -gnatea
2452 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
2454 2008-11-07 Thomas Quinot <quinot@adacore.com>
2456 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
2457 for empty range in original base type, not converted result type.
2459 2008-11-07 Geert Bosch <bosch@adacore.com>
2461 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
2462 and result for call to __gnat_mulv64.
2464 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
2466 * gcc-interface/trans.c: Fix formatting nits.
2468 2008-11-07 Geert Bosch <bosch@adacore.com>
2470 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
2471 overflow check for constant result.
2473 2008-11-07 Geert Bosch <bosch@adacore.com>
2475 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
2476 overflow check for addition/subtraction if neither operand is constant.
2478 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
2480 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
2481 files for the target-dependent part of the runtime.
2482 (SPARC/Linux): Likewise.
2484 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
2486 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
2487 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
2490 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
2492 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
2495 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
2498 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
2499 Generate a call to memmove for an assignment between overlapping
2502 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2505 * gcc-interface/Makefile.in: Add multilib handling for
2506 s390-linux and s390x-linux.
2508 2008-10-24 Jakub Jelinek <jakub@redhat.com>
2510 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
2511 check-acats-subtargets and check-gnat-subtargets.
2512 (check_acats_targets): New variable.
2513 (check-acats-subtargets, check-acats%): New targets.
2514 (check-acats): If -j is used and CHAPTERS is empty, run the testing
2515 in multiple make goals, possibly parallel, and afterwards run
2516 dg-extract-results.sh to merge the sum and log files.
2518 2008-10-17 Geert Bosch <bosch@adacore.com>
2520 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
2521 to use only a single check instead of three, and avoid unnecessary
2523 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
2524 creating more opportunities for optimizations.
2526 2008-10-13 Jakub Jelinek <jakub@redhat.com>
2529 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
2532 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
2534 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
2535 dealing with volatileness to after code dealing with renaming.
2537 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
2539 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
2540 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
2542 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
2544 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
2545 (unchecked_convert): Use it to disable problematic folding with
2546 VIEW_CONVERT_EXPR in the general case. Always disable it for the
2547 special VIEW_CONVERT_EXPR built for integral types and cope with
2548 its addressability issues by preserving the first conversion.
2550 2008-10-01 Andreas Schwab <schwab@suse.de>
2552 * system-linux-ppc64.ads: New file.
2553 * gcc-interface/Makefile.in: Add multilib handling for
2556 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
2558 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
2559 to that of ptr_mode instead of word_mode.
2561 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
2564 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
2566 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
2569 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
2570 instead of deprecated FILE_WRITE_PROPERTIES.
2572 2008-09-22 Olivier Hainque <hainque@adacore.com>
2574 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
2575 are never assigned, volatile entities are not constant for code
2576 generation purposes.
2578 2008-09-21 Laurent Guerby <laurent@guerby.net>
2581 * gcc-interface/Makefile.in: Add multilib handling for x86_64
2583 * system-linux-sparcv9.ads: New file.
2585 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
2587 * exp_dbug.ads: Document new convention for the XVZ variable.
2588 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
2589 debug info if necessary for the type padding the component type.
2590 <E_Array_Subtype>: Likewise.
2591 (maybe_pad_type): Emit the XVZ variable in units.
2592 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
2593 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
2594 on statements generated to initialize the parameter attributes cache.
2595 Set the source line of the end label of the body on the special return
2596 statement built for a procedure with copy-in copy-out parameters.
2598 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
2601 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
2602 inlined external functions if they contain a nested function not
2605 2008-09-18 Jan Hubicka <jh@suse.cz>
2607 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
2608 (end_subprog_body): Do not set DECL_INLINE.
2610 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
2613 * gnat_ugn.texi: Use proper format in direntry.
2615 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
2617 * gcc-interface/trans.c (gigi): Declare the name of the compilation
2618 unit as the first global name.
2620 2008-09-14 Jan Hubicka <jh@suse.cz>
2622 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
2624 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2626 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
2627 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
2628 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
2629 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
2630 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
2631 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
2632 gcc-interface/gigi.h, gcc-interface/trans.c,
2633 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
2634 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
2635 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
2636 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
2637 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
2638 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
2639 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
2640 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
2642 * gnathtml.pl: Fix typos.
2644 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
2646 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
2647 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
2648 layer. RTEMS binds to OS provided adapter routines so there are
2649 no modifications to s-osinte-rtems.adb.
2651 2008-09-09 Arnaud Charlet <charlet@adacore.com>
2652 Joel Sherrill <joel.sherrill@oarcorp.com>
2654 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
2656 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
2658 * s-interr-hwint.adb: New file.
2660 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
2661 needed by s-interr-hwint.adb.
2663 * s-osinte-vxworks-kernel.adb: New file.
2665 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2667 * s-stchop-rtems.adb: Add file missed in early commit. Already
2668 referenced in gcc-interface/Makefile.in.
2670 2008-08-30 Thomas Quinot <quinot@adacore.com>
2672 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
2673 be built even without a separate libada directory.
2675 2008-08-22 Arnaud Charlet <charlet@adacore.com>
2677 * lib-xref.ads: Fix typo in subprogram reference definition.
2679 2008-08-22 Robert Dewar <dewar@adacore.com>
2681 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
2684 * g-trasym.adb: Ditto
2686 * s-utf_32.adb (Get_Category): Fix obvious typo
2688 * s-wwdcha.adb: Minor code reorganization
2691 2008-08-22 Robert Dewar <dewar@adacore.com>
2693 * checks.adb (Determine_Range): Deal with values that might be invalid
2695 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
2696 configuration switches.
2698 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
2700 * sem_prag.adb: Implement pragma Assume_No_Default_Values
2702 * snames.adb, snames.ads, snames.h:
2703 Add entries for pragma Assume_No_Invalid_Values
2705 * switch-c.adb: Add processing for -gnatB switch
2707 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
2709 2008-08-22 Javier Miranda <miranda@adacore.com>
2711 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
2712 init procedure all the expanded code associated with the spec of
2713 task types and protected types.
2715 2008-08-22 Gary Dismukes <dismukes@adacore.com>
2717 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
2718 component expression copies rather than directly setting Etype and
2719 Is_Static_Expression.
2721 2008-08-22 Gary Dismukes <dismukes@adacore.com>
2723 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
2724 private types to allow for types derived from a private type with
2725 preelaborable initialization, but return False for a private extension
2726 (unless it has the pragma).
2728 2008-08-22 Robert Dewar <dewar@adacore.com>
2730 * opt.ads: Minor code reorganization (put entries in alpha order)
2732 2008-08-22 Pascal Obry <obry@adacore.com>
2734 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
2737 2008-08-22 Geert Bosch <bosch@adacore.com>
2739 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
2740 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
2742 2008-08-22 Doug Rupp <rupp@adacore.com>
2744 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
2745 __gnat_set_features.
2748 (__gnat_set_features): New function.
2749 (__gnat_features_set): New tracking variable.
2750 (__gl_no_malloc_64): New feature global variable
2752 2008-08-22 Ed Schonberg <schonberg@adacore.com>
2754 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
2755 use_type_clause in an instance.
2757 2008-08-22 Bob Duff <duff@adacore.com>
2759 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
2761 2008-08-22 Robert Dewar <dewar@adacore.com>
2763 * exp_ch6.adb: Minor reformatting
2765 * exp_ch7.adb: Minor reformatting
2767 * exp_ch7.ads: Put routines in proper alpha order
2769 * exp_dist.adb: Minor reformatting
2771 2008-08-22 Vincent Celier <celier@adacore.com>
2773 * prj.ads: Minor comment update
2775 2008-08-22 Robert Dewar <dewar@adacore.com>
2777 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
2779 2008-08-22 Ed Schonberg <schonberg@adacore.com>
2782 (Base_Init_Proc): For a protected subtype, use the base type of the
2783 corresponding record to locate the propoer initialization procedure.
2785 2008-08-22 Robert Dewar <dewar@adacore.com>
2788 (In_Subrange_Of): New calling sequence
2789 (Determine_Range): Prepare for new processing using base type
2792 (Compile_Time_Compare): Use new calling sequence
2795 (Compile_Time_Compare): Use new calling sequence
2798 (Compile_Time_Compare): New calling sequence allows dealing with
2800 (In_Subrange_Of): Ditto
2803 (Compile_Time_Compare): New calling sequence allows dealing with
2805 (In_Subrange_Of): Ditto
2807 2008-08-22 Pascal Obry <obry@adacore.com>
2809 * adaint.c: Fix possible race condition on win32_wait().
2811 2008-08-22 Bob Duff <duff@adacore.com>
2813 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
2814 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2815 exp_intr.adb, exp_ch3.adb: Rename:
2816 Exp_Ch7.Controlled_Type => Needs_Finalization
2817 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
2818 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
2819 Has_Controlled_Parts
2820 (Has_Some_Controlled_Component): Fix bug in array case.
2822 2008-08-22 Robert Dewar <dewar@adacore.com>
2824 * sem_ch8.adb: Minor reformatting
2826 2008-08-22 Kevin Pouget <pouget@adacore.com>
2828 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
2829 Shared_Var_Close procedure specifications from package spec to package body.
2831 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
2832 RE_Shared_Var_WOpen entries.
2834 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
2835 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
2837 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
2839 * init.c: adjust EH support code on Alpha/Tru64 as well.
2841 * raise-gcc.c: Add back a couple of comments.
2843 2008-08-22 Ed Schonberg <schonberg@adacore.com>
2845 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
2846 involved and the return type is class-wide, use the type of the expression
2847 for the generated access type. Suppress useless discriminant checks on the
2850 2008-08-22 Bob Duff <duff@adacore.com>
2852 * exp_ch7.adb: Minor comment fix
2854 * exp_ch6.ads: Minor comment fix
2856 2008-08-22 Thomas Quinot <quinot@adacore.com>
2858 * sem_ch8.adb: Minor reformatting
2859 Minor code reorganization (introduce subprogram to factor duplicated
2862 2008-08-22 Sergey Rybin <rybin@adacore.com>
2864 * gnat_ugn.texi: Change the description of gnatcheck default rule
2867 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
2869 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
2870 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
2871 do not adjust the PC anymore.
2872 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
2873 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
2875 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
2876 instead of _Unwind_GetIP.
2878 2008-08-22 Gary Dismukes <dismukes@adacore.com>
2880 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
2881 with a range is transformed into a positional aggregate, any copied
2882 component literals should be marked Is_Static_Expression.
2884 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
2885 not being known at at compile time when Configurable_Run_Time_Mode is
2888 2008-08-22 Robert Dewar <dewar@adacore.com>
2891 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
2892 Read or Input attribute.
2894 2008-08-22 Ed Schonberg <schonberg@adacore.com>
2896 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
2897 clauses in related units is redundant, if one of the units is a package
2898 instantiation, use its instance_spec to determine which unit is the
2899 ancestor of the other.
2901 2008-08-22 Javier Miranda <miranda@adacore.com>
2903 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
2904 attributes add missing support to handle designated types that come
2905 from the limited view.
2907 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
2909 2008-08-22 Sergey Rybin <rybin@adacore.com>
2911 * vms_data.ads: Add entry for new gnatcheck -mNNN option
2913 * gnat_ugn.texi: Add description for gnatcheck option '-m'
2915 2008-08-22 Sergey Rybin <rybin@adacore.com>
2917 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
2918 acoording to the latest changes in the metric rule interface
2920 2008-08-22 Vincent Celier <celier@adacore.com>
2922 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
2923 (Check): Check if the file names registered in the ALI file for the
2924 spec, the body and each of the subunits are the ones expected.
2926 2008-08-22 Robert Dewar <dewar@adacore.com>
2928 * g-catiio.adb: Code cleanup.
2930 2008-08-20 Vincent Celier <celier@adacore.com>
2932 * make.adb (Gnatmake): Remove extra space in version line
2935 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
2936 as the name may already have been entered in the table by the Project
2939 2008-08-20 Jose Ruiz <ruiz@adacore.com>
2941 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
2942 weak symbols so we use the version provided by MaRTE when available.
2944 2008-08-20 Emmanuel Briot <briot@adacore.com>
2946 * g-catiio.ads, g-catiio.adb:
2947 (Value): Avoid an unnecessary system call to Clock in most cases.
2948 This call is only needed when only the time is provided in the string,
2949 and ignored in all other cases. This is more efficient.
2951 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
2953 * raise-gcc.c: Fix formatting nits.
2955 2008-08-20 Robert Dewar <dewar@adacore.com>
2958 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
2959 non-existing component clause.
2961 * exp_ch5.adb: Minor reformatting
2963 * g-comlin.adb: Minor reformatting
2965 * make.adb: Minor reformatting
2967 * prj-proc.adb: Minor reformatting
2969 * stylesw.ads: Minor reformatting
2971 2008-08-20 Vincent Celier <celier@adacore.com>
2973 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
2974 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
2975 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
2976 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
2977 and a switch is not recognized by gnatmake.
2978 (Gnatmake): Implement new scheme for gnatmake switches and global
2979 compilation switches.
2980 (Switches_Of): Try successively Switches (<file name>),
2981 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
2983 2008-08-20 Ed Schonberg <schonberg@adacore.com>
2985 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
2986 implement style check that overriding operations are explicitly marked
2989 * style.ads (Missing_Overriding): new procedure that provides interface
2992 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
2993 that the declaration or body of overriding operations carries an
2994 explicit overriding indicator.
2997 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
2998 explicit indicator should be present.
3000 * sem_ch6.adb (Verify_Overriding_Indicator,
3001 Check_Overriding_Indicator): If operation is overriding, check whether
3002 declaration and/or body of subprogram should be present
3004 2008-08-20 Vincent Celier <celier@adacore.com>
3006 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
3007 gprbuild when casing is MixedCase, whatever the casing of the letters
3010 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3012 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
3013 creating dummy init proc.
3014 (Requires_Init_Proc): Return False in the case No_Default_Initialization
3015 is in force and the type does not have associated default
3016 initialization. Move test of Is_Public (with tests of restrictions
3017 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
3018 for default initialization.
3020 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
3022 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
3023 of any alias or prefix but having attached parameters (as \"-O2\").
3025 2008-08-20 Robert Dewar <dewar@adacore.com>
3027 * s-fileio.adb: Minor reformatting
3029 2008-08-20 Thomas Quinot <quinot@adacore.com>
3031 * exp_strm.adb (Build_Elementary_Input_Call,
3032 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
3033 selects the stream attribute routines for long float types.
3035 2008-08-20 Vincent Celier <celier@adacore.com>
3037 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
3039 * prj.ads (Array_Data): Add a component Location
3041 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3044 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
3045 argument for ASIS and navigation use.
3047 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3049 * einfo.ads: Add comment.
3051 2008-08-20 Bob Duff <duff@adacore.com>
3053 * sem_eval.ads: Minor comment fix.
3055 2008-08-20 Bob Duff <duff@adacore.com>
3057 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
3058 folding. We were folding things like "False and then ...", but not
3059 "X and then ..." where X is a constant whose value is known at compile
3062 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
3064 * exp_ch5.adb (Controlled_Type): New routine.
3065 (Expand_N_Extended_Return_Statement): When generating a move of the
3066 final list in extended return statements, check the type of the
3067 function and in the case of double expanded return statements, the type
3068 of the returned object.
3069 (Expand_Simple_Function_Return): Perform an interface conversion when
3070 the type of the returned object is an interface and the context is an
3071 extended return statement.
3073 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3075 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
3076 and the full view is visible, set flag on full view as well.
3078 2008-08-20 Thomas Quinot <quinot@adacore.com>
3080 * g-comlin.adb: Minor reformatting
3081 Minor code reorganization.
3083 * freeze.adb: Minor reformatting
3085 2008-08-20 Vincent Celier <celier@adacore.com>
3087 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
3088 source of another project.
3090 2008-08-20 Pascal Obry <obry@adacore.com>
3092 * s-os_lib.ads: Minor reformatting.
3094 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3096 * gnatvsn.ads: Minor reformatting.
3098 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3100 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
3101 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
3102 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
3103 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
3104 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
3105 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
3106 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
3107 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
3108 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
3109 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
3110 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
3111 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
3112 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
3113 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
3114 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
3115 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
3116 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
3117 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
3118 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
3119 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
3120 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
3121 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
3122 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
3123 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
3124 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
3125 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
3126 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
3127 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
3128 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
3129 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
3130 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
3131 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
3132 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
3133 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
3134 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
3135 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
3136 s-poosiz.adb, link.c: Fix copyright notice.
3138 2008-08-20 Arnaud Charlet <charlet@adacore.com>
3140 * g-comlin.ads: Update comments.
3142 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3144 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
3146 2008-08-20 Gary Dismukes <dismukes@adacore.com>
3149 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
3150 Make_Implicit_Exception_Handler when rewriting an exception handler with
3151 a choice parameter, and pass the handler's Sloc instead of that of the
3152 handled sequence of statements. Make_Implicit_Exception_Handler sets the
3153 Sloc to No_Location (unless debugging generated code), which we don't
3154 want for the case of a user handler.
3156 2008-08-20 Robert Dewar <dewar@adacore.com>
3158 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
3161 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
3162 now labeled as info msgs, not warnings.
3164 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
3166 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
3168 * a-textio.adb: Remove redundant test.
3170 * a-witeio.adb: Minor code reorganization
3171 Remove redundant test found working on another issue
3173 * a-ztexio.adb: Minor code reorganization
3174 Remove redundant test found working on another issue
3176 2008-08-20 Thomas Quinot <quinot@adacore.com>
3178 * s-fileio.adb (Open) Use C helper function to determine whether a
3179 given errno value corresponds to a "file not found" error.
3181 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
3183 2008-08-20 Jose Ruiz <ruiz@adacore.com>
3185 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
3186 to get access to the per-task errno variable.
3187 (__set_errno for MaRTE): Do not redefine this function here since it is
3188 already defined in MaRTE.
3190 2008-08-20 Tristan Gingold <gingold@adacore.com>
3192 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
3194 2008-08-20 Robert Dewar <dewar@adacore.com>
3196 * freeze.adb: Minor reformatting
3198 * g-comlin.adb: Minor reformatting
3200 * g-socket.adb: Minor reformatting
3202 * g-socthi-mingw.adb: Minor reformatting
3204 * g-stheme.adb: Minor reformatting
3206 2008-08-20 Ed Schonberg <schonberg@adacore.com>
3208 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
3209 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
3210 confusion between partial and full views of an ancestor of the context
3211 type when the parent is a private extension declared in a parent unit,
3212 and full views are available for the context type.
3214 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3215 Robert Dewar <dewar@adacore.com>
3218 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
3220 Move comment in the right place.
3221 * g-comver.adb (Version): Look for a zero-termination in
3222 addition to a closing parenthesis.
3224 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3226 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
3227 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3228 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
3229 Is_Package_Or_Generic_Package instead of hand-crafted tests.
3231 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
3234 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
3237 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3239 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
3241 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
3243 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
3244 for back-copy statements in lieu of that of the actual.
3246 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
3249 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
3250 setjmp test consistently. Adjust for new behavior of flag_stack_check.
3251 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
3252 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
3254 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
3257 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
3258 * sem_attr.adb (Check_Type): The current instance of a protected
3259 object is not a type name.
3260 (Analyze_Access_Attribute): Accept instances of protected objects.
3261 (Analyze_Attribute, Attribute_Address clause): Ditto.
3262 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
3263 the prefix as being the current instance if needed.
3265 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
3267 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
3268 Remove duplicate s-win32.o. Add s-winext.o.
3270 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
3272 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
3273 with SOSC.SOCK__STREAM.
3274 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
3277 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
3279 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
3280 * gsocket.h, socket.c: Update to support RTEMS.
3281 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
3283 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
3284 Robert Dewar <dewar@adacore.com>
3286 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
3287 left argument even when right argument is 0.
3288 (Expand_N_Op_Mod): Ditto when right argument is 1.
3289 (Expand_N_Op_Multiply): Ditto when any argument is 0.
3290 (Expand_N_Op_Rem): Ditto when right argument is 1.
3292 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3294 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
3297 2008-08-08 Ed Schonberg <schonberg@adacore.com>
3299 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
3300 from Freeze_Entity. Used to generate cross-reference information for
3301 types declared in generic packages.
3303 2008-08-08 Thomas Quinot <quinot@adacore.com>
3305 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
3308 2008-08-08 Thomas Quinot <quinot@adacore.com>
3311 On Windows, include <errno.h> and redefine only selected errno values
3312 from their <winsock2.h> definitions.
3314 * s-osinte-freebsd.ads: Minor reformatting
3316 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
3318 * g-soccon.ads: New file.
3320 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
3321 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
3322 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
3323 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
3324 unit, to allow building software that depends on this internal unit
3325 with both older and newer compilers.
3327 2008-08-08 Robert Dewar <dewar@adacore.com>
3329 * s-strxdr.adb: Minor reformatting
3331 2008-08-08 Bob Duff <duff@adacore.com>
3333 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
3334 checking for integer operations (including division by zero)", which
3335 is wrong -- divide by zero is not part of overflow checking.
3336 Also added misc clarification about what check-suppression means.
3338 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
3340 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
3342 * g-comlin.adb (Add_Switch): Handle addition of switches at the
3343 begining of the command line.
3344 (Append, Add): Renaming of Append to Add as this now allows addition
3345 at the begining of the list.
3347 * g-comlin.ads (Add_Switch): Handle addition of switches at the
3348 begining of the command line.
3350 2008-08-08 Thomas Quinot <quinot@adacore.com>
3353 (Name): Document application scope (only legacy PC serial ports on
3356 2008-08-08 Thomas Quinot <quinot@adacore.com>
3358 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
3359 previous change, not needed after all.
3361 2008-08-08 Ed Schonberg <schonberg@adacore.com>
3363 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
3364 exclusion indicator is present
3366 2008-08-08 Robert Dewar <dewar@adacore.com>
3368 * g-comlin.adb: Minor code reorganization
3371 * g-comlin.ads: Minor reformatting
3373 * s-fileio.adb: Minor reformatting
3375 * sem_attr.adb: Minor code reorganization (use Nkind_In)
3378 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
3380 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
3381 with s-oscons-tmplt.i.
3383 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
3385 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
3387 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3389 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
3392 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
3393 of a formal parameter of an incomplete type. Improve error message for
3394 other improper uses of incomplete types.
3396 2008-08-06 Robert Dewar <dewar@adacore.com>
3398 * gnat_ugn.texi: Clarify -gnato documentation
3400 2008-08-06 Thomas Quinot <quinot@adacore.com>
3402 * gcc-interface/Makefile.in,
3403 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
3404 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
3405 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
3406 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
3407 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
3408 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
3409 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
3410 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
3411 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
3412 Remove GNAT.Sockets.Constants. This internal package is replaced by
3413 System.OS_Constants.
3415 2008-08-06 Thomas Quinot <quinot@adacore.com>
3417 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
3418 Remove obsolete targets referencing gen-soccon
3419 When generating s-oscons.ads, use a file name that includes the
3420 THREAD_KIND, to ensure that the (potentially different) version from a
3421 previous build with a different threads flavour does not get reused.
3423 2008-08-06 Thomas Quinot <quinot@adacore.com>
3425 * sem_res.adb: Minor reformatting
3427 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
3428 only when the operating system reports a non-existing file or directory
3429 (ENOENT), otherwise raise Name_Error.
3431 * exp_ch11.adb: Minor reformatting
3433 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3435 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
3436 incomplete, add the access_to_subprogram type to the list of private
3437 dependents only if the incomplete type will be completed in the current
3439 (Build_Discriminant_Constraints): If the type of the discriminant is
3440 access_to_variable, reject a constraint that is access_to_constant.
3442 2008-08-06 Thomas Quinot <quinot@adacore.com>
3444 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
3445 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
3446 g-sttsne-dummy.ads: New files.
3448 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
3449 with pragma Unimplemented_Unit for sockets packages on Nucleus.
3451 2008-08-06 Pascal Obry <obry@adacore.com>
3453 * adaint.c: Another fix for ACL support on Windows.
3455 2008-08-06 Javier Miranda <miranda@adacore.com>
3457 * exp_disp (Expand_Interface_Actuals): Adds missing support for
3458 expansion of calls to subprograms using selected components.
3460 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3462 * sem_res.adb (Resolve_Call): Use base type to determine whether a
3463 dereference is needed because a subtype of an access_to_subprogram is
3464 simply an access-subtype
3466 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
3468 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
3469 parameters, always specify the expected separator.
3471 2008-08-06 Thomas Quinot <quinot@adacore.com>
3473 * xnmake.adb: Use new XUtil package for platform independent text
3476 2008-08-06 Vincent Celier <celier@adacore.com>
3478 * gnat_ugn.texi: Document compiler switch -gnateG
3480 2008-08-06 Quentin Ochem <ochem@adacore.com>
3482 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
3483 in the case of an empty pattern size.
3484 (Compute_Result): Do not do any computation in the case of an empty
3486 (Report_Result): Fixed computation of the overflow guard.
3488 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3490 * g-awk.adb (Finalize): Do not use directly objects of the type in the
3491 finalization routine to prevent elaboration order anomalies in new
3492 finalization scheme.
3494 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3496 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
3497 declaration for the same type.
3499 2008-08-06 Thomas Quinot <quinot@adacore.com>
3501 * sem.adb: Minor rewording (comment)
3503 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
3505 * g-comlin.adb (Define_Switch, Get_Switches): New.
3506 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
3507 ungrouping switches.
3508 (For_Each_Simple_Switch): Allow more control over parameters handling.
3509 This generic method now allows ungrouping of switches with parameters
3510 and switches with more than one letter after the prefix.
3511 (Set_Command_Line): Take care of switches that are prefixed with a
3512 switch handling parameters without delimiter (-gnatya and -gnaty3 for
3514 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
3515 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
3517 (Start, Alias_Switches, Group_Switches): Take care of parameters
3518 possibly present inside a group.
3520 * g-comlin.ads (Define_Switch): New method used to define a list of
3521 expected switches, that are necessary for correctly ungrouping switches
3522 with more that one character after the prefix.
3523 (Get_Switches): Method that builds a getopt string from the list of
3524 switches as set previously by Define_Switch.
3525 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
3526 status of the operation. Also allow the removal of switches with
3528 (Command_Line_Configuration_Record): Maintain a list of expected
3531 2008-08-06 Doug Rupp <rupp@adacore.com>
3533 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
3534 TARGET_MALLOC64 clear.
3536 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
3537 if TARGET_MALLOC64 clear.
3539 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
3540 (TARGET_MALLC64): New macro. Default to clear.
3542 2008-08-06 Doug Rupp <rupp@adacore.com>
3544 * gcc-interface/utils2.c (snames.h) Include
3545 (TARGET_ABI_OPEN_VMS): Initialize.
3546 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
3549 2008-08-06 Ed Schonberg <schonberg@adacore.com>
3551 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
3552 null exclusion in a discriminant declaration
3554 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
3555 indicators when type is not an access type.
3557 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
3558 indicators when type is not an access type.
3560 2008-08-06 Javier Miranda <miranda@adacore.com>
3562 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
3563 with the target interface before expanding the code of the interface
3566 2008-08-05 Ed Schonberg <schonberg@adacore.com>
3569 (Freeze_Entity): A deferred constant does not violate the restriction
3570 No_Default_Initialization,
3572 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
3573 can carry a null exclusion indicator, and on which an error may be
3574 posted if the indicator is redundant.
3576 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
3577 does not apply to a subtype mark that already excludes null.
3579 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
3580 exclusion does not apply to a subtype mark that already excludes null.
3582 2008-08-05 Thomas Quinot <quinot@adacore.com>
3584 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
3586 2008-08-05 Doug Rupp <rupp@adacore.com>
3588 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
3590 2008-08-05 Thomas Quinot <quinot@adacore.com>
3592 * gsocket.h: Make this file includable in a Nucleus environment, which
3593 does not support sockets.
3595 * socket.c: Remove Nucleus-specific hack.
3597 2008-08-05 Pascal Obry <obry@adacore.com>
3599 * adaint.c: Remove support for readable attribute on vxworks and nucleus
3601 2008-08-05 Ed Schonberg <schonberg@adacore.com>
3604 (Analyze_Attribute, case 'Result): handle properly the case where some
3605 operand of the expression in a post-condition generates a transient
3608 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
3609 right-hand side when it is an anonymous access_to_subprogram, to force
3610 static accessibility check when needed.
3612 2008-08-05 Sergey Rybin <rybin@adacore.com>
3614 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
3615 rule according to the change in the rule option.
3616 Add documentation for -gnatw.b/-gnatw.B
3618 2008-08-05 Robert Dewar <dewar@adacore.com>
3620 * ug_words: Add entries for -gnatw.b/-gnatw.B
3622 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
3624 2008-08-05 Vincent Celier <celier@adacore.com>
3626 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
3629 * a-ztdeio.adb: Ditto.
3631 2008-08-05 Pascal Obry <obry@adacore.com>
3633 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
3636 2008-08-05 Vincent Celier <celier@adacore.com>
3639 (Wide_String_To_String): Returns a String with the same 'First as its
3641 (Wide_Wide_String_To_String): Ditto
3644 (Wide_String_To_String): Document that the lowest index of the returned
3645 String is equal to S'First.
3647 2008-08-05 Thomas Quinot <quinot@adacore.com>
3649 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
3651 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
3654 2008-08-05 Robert Dewar <dewar@adacore.com>
3656 * opt.ads (Warn_On_Biased_Representation): New flag
3659 (Analyze_Attribute_Definition_Clause): Issue warning when biased
3660 representation is required.
3661 (Minimum_Size): Don't allow biasing if enum rep clause case
3664 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
3665 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
3667 * usage.adb: Add lines for -gnatw.b/B switches
3669 2008-08-05 Pascal Obry <obry@adacore.com>
3671 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
3673 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
3675 2008-08-05 Thomas Quinot <quinot@adacore.com>
3677 * socket.c: Minor reformatting.
3679 2008-08-05 Robert Dewar <dewar@adacore.com>
3681 * sem_ch3.adb: Minor reformatting
3683 * prj-nmsc.adb: Minor reformatting
3685 2008-08-05 Ed Schonberg <schonberg@adacore.com>
3687 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
3688 visibility check on the component type if the simple test fails.
3690 2008-08-05 Jose Ruiz <ruiz@adacore.com>
3692 * init.c (__gnat_install_handler for linux): If we are building the
3693 Xenomai run time then we need to do two additional things: avoid
3694 memory swapping and transform the Linux environment task into a native
3697 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
3698 time): Use interface to Xenomai native skin and avoid linux-specific
3699 way of setting CPU affinity.
3700 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
3702 2008-08-05 Bob Duff <duff@adacore.com>
3704 * checks.ads: Minor comment fix
3706 2008-08-05 Thomas Quinot <quinot@adacore.com>
3708 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
3709 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
3712 2008-08-05 Robert Dewar <dewar@adacore.com>
3714 * mlib.adb: Minor code reorganization
3717 * make.adb: Minor reformatting
3719 * prj-attr.ads: Minor reformatting
3721 * s-os_lib.adb: Minor reformatting
3723 * s-fileio.adb: Minor code reorganization
3726 * prj.ads: Minor reformatting
3728 2008-08-05 Bob Duff <duff@adacore.com>
3730 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
3731 unresolved initial value of "null", because it causes implicitly
3732 generated "=" operators to be ambiguous, and because this type should
3733 not be passed to gigi.
3735 2008-08-05 Vincent Celier <celier@adacore.com>
3737 * mlib.adb: Update comments.
3739 * make.adb (Switches_Of): Check for Switches (others), before checking
3740 for Default_Switches ("Ada").
3741 (Gnatmake): Use Builder'Switches (others) in preference to
3742 Builder'Default_Switches ("Ada") if there are several mains.
3745 (Add_Attribute): Add component Others_Allowed in Attribute_Record
3749 Add markers to indicates that attributes Switches allow others as index
3750 (Others_Allowed_For): New Boolean function, returning True for
3751 attributes with the mark.
3752 (Initialize): Recognize optional letter 'O' as the marker for
3753 associative array attributes where others is allowed as the index.
3756 (Others_Allowed_For): New Boolean function
3757 (Attribute_Record): New Boolean component Others_Allowed
3760 (Parse_Attribute_Declaration): For associative array attribute where
3761 others is allowed as the index, allow others as an index.
3764 (Process_Binder): Skip associative array attributes with index others
3765 (Process_Compiler): Ditto
3768 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
3769 index is All_Other_Names.
3772 (All_Other_Names): New constant
3775 (Process_Declarative_Items): Skip associative array attribute when index
3776 is reserved word "others".
3778 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
3780 * gen-oscons.c: Adapt for VMS where termios.h is not available.
3782 2008-08-05 Thomas Quinot <quinot@adacore.com>
3784 * a-rttiev.adb: Minor reformatting (comments)
3786 * gen-soccon.c: Rename to gen-oscons.c
3788 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
3789 GNAT.Sockets.Constants.
3790 Add new constants for GNAT.Serial_Communications and System.File_IO.
3792 2008-08-05 Javier Miranda <miranda@adacore.com>
3794 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
3795 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
3796 implementation of this routine has been simplified.
3798 2008-08-05 Pascal Obry <obry@adacore.com>
3800 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
3801 Set_Read_Only Win32 implementation.
3803 2008-08-05 Thomas Quinot <quinot@adacore.com>
3805 * exp_strm.adb: Minor reformatting (comments)
3807 * sem_ch12.adb: Minor reformatting.
3809 2008-08-05 Robert Dewar <dewar@adacore.com>
3811 * sem_ch3.adb: Minor reformatting
3813 * checks.adb: Minor reformatting
3815 2008-08-05 Thomas Quinot <quinot@adacore.com>
3817 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
3818 restriction on Prefix.
3820 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
3822 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
3823 methods needed to handle switch sections when building a command line.
3824 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
3825 Current_Section): New public methods or methods modified to handle
3826 building command lines with sections.
3827 (Set_Command_Line): Take into account sections when analysing a switch
3829 (Start): Sort the switches by sections before iterating the command line
3832 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
3833 Is_New_Section, Current_Section): New methods or methods modified to
3834 handle building command lines with sections.
3836 2008-08-05 Ed Schonberg <schonberg@adacore.com>
3838 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
3839 discriminants, indicate that the corresponding object declaration has
3840 no initialization, to prevent spurious warnings when the access type is
3843 2008-08-05 Ed Schonberg <schonberg@adacore.com>
3845 * sem_res.adb (Resolve_Call): If this is a call to the predefined
3846 Abort_Task, warn if the call appears within a protected operation.
3848 2008-08-04 Robert Dewar <dewar@adacore.com>
3850 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
3852 2008-08-04 Ed Schonberg <schonberg@adacore.com>
3855 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
3856 anonymous access to protected subprogram that is the return type of the
3857 specification of a subprogram body.
3860 (Analyze_Subprogram_Body): if the return type is an anonymous access to
3861 subprogram, freeze it now to prevent access anomalies in the back-end.
3863 * exp_ch9.adb: Minor code cleanup.
3864 Make sure that new declarations are inserted into the tree before
3865 analysis (from code reading).
3867 2008-08-04 Robert Dewar <dewar@adacore.com>
3870 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
3873 2008-08-04 Thomas Quinot <quinot@adacore.com>
3875 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
3877 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
3879 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
3881 2008-08-04 Javier Miranda <miranda@adacore.com>
3883 * sem_prag.adb (Process_Convention): Add missing support for
3884 N_Private_Extension_Declaration nodes.
3886 2008-08-04 Robert Dewar <dewar@adacore.com>
3888 * exp_ch4.adb: Minor reformatting
3890 2008-08-04 Pascal Obry <obry@adacore.com>
3892 * adaint.h: Add missing prototype.
3894 * adaint.c: Refine support for Windows file attributes.
3896 2008-08-04 Robert Dewar <dewar@adacore.com>
3899 (Valid_Conversion): Catch case of designated types having different
3900 sizes, even though they statically match.
3902 2008-08-04 Javier Miranda <miranda@adacore.com>
3904 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
3905 added in previous patch to handle access to subprograms.
3907 2008-08-04 Robert Dewar <dewar@adacore.com>
3910 (Freeze_Entity): Only check No_Default_Initialization restriction for
3911 constructs that come from source
3913 2008-08-04 Thomas Quinot <quinot@adacore.com>
3915 * exp_ch6.adb: Minor comment fix.
3917 * sem_ch4.adb: Minor reformatting.
3919 2008-08-04 Robert Dewar <dewar@adacore.com>
3921 * sem_res.adb: (Large_Storage_Type): Improve previous change.
3923 2008-08-04 Pascal Obry <obry@adacore.com>
3925 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
3928 2008-08-04 Javier Miranda <miranda@adacore.com>
3930 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
3931 for N_Formal_Object_Declaration nodes. Adding kludge required by
3932 First_Formal to provide its functionality with access to functions.
3933 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
3934 for anonymous access types returned by functions.
3936 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
3937 conversion of null-excluding access types (required only once to force
3938 the generation of the required runtime check).
3940 * sem_type.adb (Covers): minor reformating
3942 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
3943 with internally generated nodes. Avoid generating the error inside init
3946 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
3947 (Resolve_Null): Generate the null-excluding check in case of assignment
3948 to a null-excluding object.
3949 (Valid_Conversion): Add missing support for anonymous access to
3952 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
3953 anonymous access types whose designated type is an itype. This case
3954 occurs with anonymous access to protected subprograms types.
3955 (Analyze_Return_Type): Add missing support for anonymous access to
3956 protected subprogram.
3958 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
3959 subprograms addition of missing check on matching convention. Required
3960 to properly handle access to protected subprogram types.
3962 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
3963 null excluding access types.
3965 2008-08-04 Ed Schonberg <schonberg@adacore.com>
3967 * sem_ch12.adb: Add comments
3969 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
3970 access type and the allocator is not initialized, warn rather than
3973 2008-08-04 Robert Dewar <dewar@adacore.com>
3975 * exp_ch4.adb: Minor reformatting
3977 * exp_dist.adb: Minor reformatting
3979 * g-comlin.adb: Minor reformatting
3981 2008-08-04 Gary Dismukes <dismukes@adacore.com>
3983 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
3984 target to the type of the aggregate in the case where the target object
3987 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
3988 result type is class-wide and inherently limited, and the expression
3989 has a specific type, create a return object of the specific type, for
3990 more efficient handling of returns of build-in-place aggregates (avoids
3991 conversions of the class-wide return object to the specific type on
3992 component assignments).
3994 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
3995 about a type mismatch for a class-wide function with a return object
3996 having a specific type when the object declaration doesn't come from
3997 source. Such an object can result from the expansion of a simple return.
3999 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
4001 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
4003 * gcc-interface/Makefile.in: Use 64bit-specific system files when
4004 compiling for 64bit windows.
4006 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
4008 * g-comlin.adb (Group_Switches): Preserve the switch order when
4009 grouping and allow switch grouping of switches with more than one
4010 character extension (e.g. gnatw.x).
4011 (Args_From_Expanded): Remove this now obsolete method.
4013 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4015 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
4016 chain at once, to ensure that type is properly decorated for back-end,
4017 when allocator appears within a loop.
4019 2008-08-04 Kevin Pouget <pouget@adacore.com>
4021 * snames.h, snames.adb, snames.ads:
4022 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
4024 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
4025 Build_To_Any_Call and Build_TypeCode_Call procedures.
4027 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
4029 * rtsfind.ads: Add corresponding names.
4031 * tbuild.adb: Update prefix restrictions to allow '_' character.
4033 2008-08-04 Doug Rupp <rupp@adacore.com>
4035 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
4036 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
4037 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
4038 use it. Calculate pointer range overflow using 64bit types.
4040 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4042 * sem_ch3.adb (Access_Definition): A formal object declaration is a
4043 legal context for an anonymous access to subprogram.
4045 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
4046 indirect call, report success to the caller to include possible
4049 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
4051 of the extended return is an anonymous access_to_subprogram type.
4054 (Resolve_Call): Insert a dereference if the type of the subprogram is an
4055 access_to_subprogram and the context requires its return type, and a
4056 dereference has not been introduced previously.
4058 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4060 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
4061 gnatcheck support in GPS.
4063 2008-08-04 Vincent Celier <celier@adacore.com>
4065 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
4068 2008-08-04 Vincent Celier <celier@adacore.com>
4070 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
4071 variable, but don't check the resulting value as it has no impact on
4075 (Generate_Processed_File): New Boolean flag, set to True in the compiler
4076 when switch -gnateG is used.
4079 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
4080 when the source is modified by the preprocessor and there is no
4081 preprocessing errors.
4083 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
4086 (Load_File): Output the result of preprocessing if the source text was
4089 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
4091 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
4093 * ug_words: Add VMS equivalent for -gnateG
4096 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
4098 2008-08-04 Doug Rupp <rupp@adacore.com>
4100 * gcc-interface/utils2.c:
4101 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
4102 in 32bit descriptor.
4104 2008-08-04 Robert Dewar <dewar@adacore.com>
4106 * par-ch10.adb: Minor reformatting
4108 * i-cobol.adb: Minor reformatting.
4110 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4112 * sem_ch3.adb (Access_Definition): Create an itype reference for an
4113 anonymous access return type of a regular function that is not a
4116 2008-08-04 Vincent Celier <celier@adacore.com>
4118 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
4120 * snames.adb: New standard name Global_Compilation_Switches
4122 * snames.ads: New standard name Global_Compilation_Switches
4124 * make.adb: Correct spelling error in comment
4126 2008-08-04 Arnaud Charlet <charlet@adacore.com>
4128 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
4131 2008-08-04 Thomas Quinot <quinot@adacore.com>
4133 * sem_ch10.adb: Minor comment fix.
4135 2008-08-04 Robert Dewar <dewar@adacore.com>
4137 * restrict.adb: Improved messages for restriction warnings
4139 * restrict.ads: Improved messages for restriction messages
4141 * s-rident.ads (Profile_Name): Add No_Profile
4143 2008-08-04 Robert Dewar <dewar@adacore.com>
4145 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
4147 2008-08-04 Robert Dewar <dewar@adacore.com>
4149 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
4151 2008-08-04 Vincent Celier <celier@adacore.com>
4154 (Copy_Package_Declarations): When inheriting package Naming from a
4155 project being extended, do not inherit source exception names.
4157 2008-08-04 Ed Schonberg <schonberg@adacore.com>
4159 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
4160 list of declaration to find previous subprogram, do not go to the
4161 original node of a generic unit.
4163 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
4165 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
4166 New case. Convert BOOLEAN_TYPE operation to the default integer type.
4168 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4170 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
4171 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
4172 and adjust for above renaming.
4173 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
4174 gnu_expr_alt_type parameter. Convert the expression to it instead
4175 of changing its type in place.
4176 (build_function_stub): Adjust call to above function.
4178 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
4180 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
4181 code. Do not get full definition of deferred constants with address
4182 clause for a use. Do not ignore deferred constant definitions with
4183 address clause. Ignore constant definitions already marked with the
4185 <object>: Remove obsolete comment. For a deferred constant with
4186 address clause, get the initializer from the full view.
4187 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
4188 Rework and remove obsolete comment.
4189 <N_Object_Declaration>: For a deferred constant with address clause,
4190 mark the full view with the error node.
4191 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
4194 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
4196 * rtsfind.ads: Add block IO versions of stream routines for Strings.
4198 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
4199 sem_prag.adb, snames.adb, snames.ads, snames.h,
4200 par-prag.adb: Undo previous stream related changes.
4202 * s-rident.ads: Add new restriction No_Stream_Optimizations.
4204 * s-ststop.ads, s-ststop.adb: Comment reformatting.
4205 Define enumeration type to designate different IO mechanisms.
4206 Enchance generic package Stream_Ops_Internal to include an
4207 implementation of Input and Output.
4209 * exp_attr.adb (Find_Stream_Subprogram): If restriction
4210 No_Stream_Optimization is active, choose the default byte IO
4211 implementations of stream attributes for Strings.
4212 Otherwise use the corresponding block IO version.
4214 2008-08-01 Olivier Hainque <hainque@adacore.com>
4216 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
4217 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
4219 2008-08-01 Robert Dewar <dewar@adacore.com>
4221 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
4222 convert plain identifier into defining identifier.
4224 2008-08-01 Robert Dewar <dewar@adacore.com>
4226 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
4229 * lib-xref.adb: Add error defense.
4231 2008-08-01 Bob Duff <duff@adacore.com>
4233 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
4235 2008-08-01 Gary Dismukes <dismukes@adacore.com>
4237 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
4238 correct accessibility levels. In the "when others" case, retrieve the
4239 access level of the Etype of Prev rather than Prev_Orig, because the
4240 original exression has not always been analyzed.
4242 2008-08-01 Robert Dewar <dewar@adacore.com>
4244 * prj-nmsc.adb: Minor reformatting
4246 * sem_ch4.adb: Minor reformatting
4247 Minor code reorganization
4249 * prj.ads: Minor reformatting
4251 * s-os_lib.adb: Minor reformatting
4253 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
4256 * scans.ads: Minor reformatting.
4258 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
4259 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
4262 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
4264 * sem_ch12.adb: Minor comment reformatting
4266 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
4269 2008-08-01 Robert Dewar <dewar@adacore.com>
4271 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
4274 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4276 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
4277 converted is a real literal and the target type has static bounds,
4278 perform the conversion exactly to prevent floating-point anomalies on
4281 2008-08-01 Vincent Celier <celier@adacore.com>
4283 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
4285 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
4287 * prj.adb (Object_Exist_For): Use Object_Generated, not
4288 Objects_Generated that is removed and was never modified anyway.
4291 (Path_Syntax_Kind): New enumeration type
4292 (Language_Config): New component Path_Syntax, defaulted to Host.
4293 Components PIC_Option and Objects_Generated removed, as they are not
4296 * snames.adb: New standard name Path_Syntax
4298 * snames.ads: New standard name Path_Syntax
4300 2008-08-01 Vincent Celier <celier@adacore.com>
4303 (Adalib_Path): New variable to store the path of the adalib directory
4304 when procedure Specify_Adalib_Dir is called.
4305 (Lib_Directory): If Adalib_Path is not null, return its value
4306 (Specify_Adalib_Dir): New procedure
4308 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
4310 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4313 (Check_Precondition_Postcondition): If not generating code, analyze the
4314 expression in a postcondition that appears in a subprogram body, so that
4315 it is properly decorated for ASIS use.
4317 2008-08-01 Gary Dismukes <dismukes@adacore.com>
4319 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
4320 Orig_Prev to Prev in the case where the actual is N_Function_Call or
4321 N_Identifier. This was interfering with other cases that are rewritten
4322 as N_Identifier, such as allocators, resulting in passing of the wrong
4323 accessibility level, and based on testing this code is apparently no
4324 longer needed at all.
4326 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4328 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
4329 procedure call whose prefix
4330 is a parameterless function call that returns an access_to_procedure.
4332 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4334 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
4335 for RTX. Adding a suffix that is incremented at each iteration.
4337 2008-08-01 Robert Dewar <dewar@adacore.com>
4339 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
4342 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
4344 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
4345 paths, which are authorized by Windows but can lead to errors when used
4348 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4350 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
4351 a pending instantiation for the body of a subprogram that is to be
4355 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
4357 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
4358 create a pending instance for its body, so that calls to the subprogram
4359 can be inlined by the back-end.
4361 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4363 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
4366 2008-08-01 Robert Dewar <dewar@adacore.com>
4368 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
4370 2008-08-01 Doug Rupp <rupp@adacore.com>
4372 * gnat_rm.texi: Document new mechanism Short_Descriptor.
4374 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
4377 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4378 mechanism and Short_Descriptor mechanism values.
4380 * snames.adb (preset_names): Add short_descriptor entry.
4382 * snames.ads: Add Name_Short_Descriptor.
4384 * types.h: Add new By_Short_Descriptor mechanism values.
4386 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
4387 mechanism and Short_Descriptor mechanism values.
4389 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
4391 (Descriptor_Codes): Modify range for new mechanism values.
4393 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
4396 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
4397 (gnat_to_gnu_param): Handle By_Short_Descriptor.
4399 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
4400 (build_vms_descriptor32): New prototype.
4401 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
4403 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
4404 argument in call fill_vms_descriptor.
4406 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
4407 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
4408 (build_vms_descriptor): Renamed from build_vms_descriptor64.
4409 (convert_vms_descriptor32): New function.
4410 (convert_vms_descriptor64): New function.
4411 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
4414 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
4417 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4419 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
4420 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
4423 2008-08-01 Jose Ruiz <ruiz@adacore.com>
4425 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
4426 current directory so only fully qualified names are allowed.
4428 2008-08-01 Robert Dewar <dewar@adacore.com>
4431 Minor editing, remove uncomfortable use of semicolon
4433 * s-ststop.adb: Add some ??? comments
4435 * sem_ch10.adb: Minor reformatting
4438 Minor comment fixes, some pragmas were not properly
4439 categorized in the comments, documentation change only
4441 * xref_lib.adb: Minor reformatting
4443 * sinput.adb: Minor reformatting
4445 * gnatchop.adb: Minor reformatting
4447 * sem_util.ads: Minor reformatting.
4449 * opt.ads: Minor documentation fix
4451 * scng.adb: Minor reformatting
4453 * prj-part.adb: Update comments
4455 2008-08-01 Ed Schonberg <schonberg@adacore.com>
4457 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
4458 tagged synchronized type, use corresponding record type.
4460 2008-08-01 Doug Rupp <rupp@adacore.com>
4462 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
4463 dummy transfer address for debugging.
4465 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
4467 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
4469 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
4471 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
4472 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
4474 2008-07-31 Pascal Obry <obry@adacore.com>
4476 * prj-nmsc.adb: Keep Object and Exec directory casing.
4478 2008-07-31 Jose Ruiz <ruiz@adacore.com>
4480 * system-rtx-rtss.ads
4481 Change the default stack size. It is important to set the commit part.
4484 (Initialize): Get the clock resolution.
4485 (RT_Resolution): Return the clock resolution that is indicated by the
4488 * s-parame-vxworks.adb
4489 Document that this body is used for RTX in RTSS (kernel) mode.
4491 * gcc-interface/Makefile.in
4492 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
4493 s-parame-vxworks.adb body in order to have reasonable stack sizes in
4494 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
4495 cannot ask for too big values.
4497 2008-07-31 Robert Dewar <dewar@adacore.com>
4499 * exp_aggr.adb: Minor reformatting
4501 * makeutl.adb: Minor reformatting
4503 * prj-env.adb: Minor reformatting
4505 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
4507 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
4508 tagged type is completed by a concurrent type.
4510 2008-07-31 Gary Dismukes <dismukes@adacore.com>
4513 (Resolve_Record_Aggregate): Bypass error that a type without
4514 components must have a "null record" aggregate when compiling for Ada
4515 2005, since it's legal to give an aggregate of form (others => <>)
4518 2008-07-31 Javier Miranda <miranda@adacore.com>
4520 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
4521 handle synchronized types. Required to handle well the object.operation
4522 notation applied to synchronized types.
4524 2008-07-31 Quentin Ochem <ochem@adacore.com>
4526 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
4527 anymore - just used internally.
4528 Added handling of very small tasks - when the theoretical size is
4529 already full at the point of the call.
4530 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
4531 not need to be added to the result.
4533 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
4535 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
4536 corresponding spec is a primitive wrapper. Update comment.
4538 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
4540 * bindgen.adb Comment reformatting. Update the list of run-time globals.
4541 (Gen_Adainit_Ada): Add the declaration, import and value set for
4542 configuration flag Canonical_Streams.
4543 (Gen_Adainit_C): Add the declaration and initial value of external
4544 symbol __gl_canonical_streams.
4546 * init.c: Update the list of global values computed by the binder.
4548 * opt.ads: Add flag Canonical_Streams.
4550 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
4551 semantically handled pragmas.
4553 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
4554 (Analyze_Pragma): Add case for pragma Canonical_Streams.
4556 * snames.adb: Add character value for name Canonical_Streams.
4559 Add Name_Canonical_Streams to the list of configuration pragmas.
4560 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
4562 * snames.h: Add a definition for Pragma_Canonical_Streams.
4565 Add a flag and import to seize the value of external symbol
4566 __gl_canonical_streams. Update comment and initial value of constant
4569 * gnat_rm.texi: Add section of pragma Canonical_Streams.
4572 Add pragma Canonical_Streams to the list of configuration pragmas.
4574 2008-07-31 Ed Schonberg <schonberg@adacore.com>
4576 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
4577 has the form A.B.C and B is a unit renaming, analyze its compilation
4578 unit and add a with_clause on A.b to the context.
4580 2008-07-31 Vincent Celier <celier@adacore.com>
4582 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
4583 return the empty string, instead of raising Constraint_Error.
4585 2008-07-31 Gary Dismukes <dismukes@adacore.com>
4587 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
4589 * checks.adb (Apply_Accessibility_Check): Insert the check on
4593 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
4594 to new parameter Insert_Node on call to Apply_Accessibility_Check.
4595 Necessary to distinguish the insertion node because the dereferenced
4596 formal may come from a rename, but the check must be inserted in
4597 front of the attribute.
4600 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
4601 call to Apply_Accessibility_Check.
4602 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
4603 on call to Apply_Accessibility_Check.
4606 2008-07-31 Javier Miranda <miranda@adacore.com>
4608 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
4609 types when the candidate type is a synchronized type.
4611 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
4612 types, and complete management of synchronized types adding missing
4613 code to handle formal that is a synchronized type.
4615 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
4616 are not available and cause the compiler to blowup. Found compiling
4617 test with switch -gnatc
4619 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
4620 Has_Correct_Formal_Mode plus code cleanup.
4622 2008-07-31 Bob Duff <duff@adacore.com>
4624 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
4625 recognized as two end-of-lines, but it should be just one.
4627 2008-07-31 Thomas Quinot <quinot@adacore.com>
4629 * exp_ch9.adb: Minor reformatting
4631 * tbuild.ads: Fix several occurrences of incorrectly referring to
4632 Name_Find as Find_Name.
4634 2008-07-31 Ed Schonberg <schonberg@adacore.com>
4636 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
4637 and the context is an object declaration with non-static bounds, treat
4638 the aggregate as non-static.
4640 2008-07-31 Vincent Celier <celier@adacore.com>
4642 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
4643 Move back spec of Parse_Single_Project to body, as it is not called
4644 outside of package Prj.Part.
4645 (Project_Data): Remove components Linker_Name, Linker_Path and
4646 Minimum_Linker_Options as they are no longer set.
4647 Remove function There_Are_Ada_Sources from package Prj and move code
4648 in the only place it was used, in Prj.Env.Set_Ada_Paths.
4650 2008-07-31 Arnaud Charlet <charlet@adacore.com>
4652 * mlib-utl.ads: Fix typo.
4654 2008-07-31 Robert Dewar <dewar@adacore.com>
4656 * sem_ch12.adb: Minor reformatting
4658 2008-07-31 Sergey Rybin <rybin@adacore.com>
4660 * gnat_ugn.texi: Change the description of the
4661 Overly_Nested_Control_Structures: now the rule always requires a
4662 positive parameter for '+R' option
4664 2008-07-31 Thomas Quinot <quinot@adacore.com>
4666 * g-pehage.adb: Minor reformatting
4668 2008-07-31 Pascal Obry <obry@adacore.com>
4670 * s-finimp.ads: Minor reformatting.
4672 2008-07-31 Vincent Celier <celier@adacore.com>
4674 * s-regexp.ads: Minor comment fix
4676 2008-07-31 Arnaud Charlet <charlet@adacore.com>
4678 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
4679 so that we can compile this file successfully with -gnatc.
4681 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
4683 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
4684 of the type when looking for stream subprograms for type String,
4685 Wide_String and Wide_Wide_String.
4687 * s-ststop.adb: Change the initialization expression of constant
4690 2008-07-31 Geert Bosch <bosch@adacore.com>
4693 New file implementing __gnat_mulv64 signed integer multiplication with
4696 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
4698 * gcc-interface/gigi.h:
4699 (standard_types): Add ADT_mulv64_decl
4700 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
4702 * gcc-interface/utils.c:
4703 (init_gigi_decls): Add initialization of mulv64_decl
4705 * gcc-interface/trans.c:
4706 (build_unary_op_trapv): New function
4707 (build_binary_op_trapv): New function
4708 (gnat_to_gnu): Use the above functions instead of
4709 build_{unary,binary}_op
4711 * gcc-interface/Makefile.in
4712 (LIBGNAT_SRCS): Add arit64.c
4713 (LIBGNAT_OBJS): Add arit64.o
4715 2008-07-31 Vincent Celier <celier@adacore.com>
4717 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
4718 Linker'Default_Switches are declared. Warn if they are declared.
4720 2008-07-31 Ed Schonberg <schonberg@adacore.com>
4722 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
4723 Insert_Actions to place the pointer declaration in the code, rather
4724 than Insert_Before_And_Analyze, so that insertions of temporaries are
4725 kept in the proper order when transient scopes are present.
4728 2008-07-31 Robert Dewar <dewar@adacore.com>
4730 * einfo.adb (Spec_PPC): Now defined for generic subprograms
4732 * einfo.ads (Spec_PPC): Now defined for generic subprograms
4734 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
4737 2008-07-31 Vincent Celier <celier@adacore.com>
4739 * s-os_lib.adb: Minor comment fix
4741 2008-07-31 Ed Schonberg <schonberg@adacore.com>
4743 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
4744 transfer pre/postconditions from generic copy to original tree, so that
4745 they will appear in each instance.
4746 (Process_PPCs): Do not transform postconditions into a procedure in a
4747 generic context, to prevent double expansion of check pragmas.
4749 * sem_attr.adb: In an instance, the prefix of the 'result attribute
4750 can be the renaming of the
4751 current instance, so check validity of the name accordingly.
4753 2008-07-31 Robert Dewar <dewar@adacore.com>
4755 * mlib-utl.ads: Minor reformatting
4757 2008-07-31 Ed Schonberg <schonberg@adacore.com>
4759 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
4760 from context. This attribute must be usable in Ada95 mode.
4761 The attribute can appear in the body of a function marked
4762 Inline_Always, but in this case the postocondition is not enforced.
4764 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
4765 of an inlined call pre- and postconditions are legal
4767 2008-07-31 Vincent Celier <celier@adacore.com>
4769 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
4770 were for gprmake only
4772 2008-07-31 Robert Dewar <dewar@adacore.com>
4774 * gnat_ugn.texi: Update -gnatN documentation.
4776 * gnat_rm.texi: Add note about pre/postcondition
4777 pragmas not checked in conjunction with front-end inlining.
4779 2008-07-31 Robert Dewar <dewar@adacore.com>
4781 * g-pehage.adb, g-pehage.ads: Minor reformatting
4783 2008-07-31 Arnaud Charlet <charlet@adacore.com>
4785 * mlib-utl.ads, prj-makr.ads: Add comments.
4787 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4789 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
4790 [WINDOWS]: Add s-winext.o.
4792 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
4795 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
4796 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
4797 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
4798 Set precision to 1 for subtype of BOOLEAN_TYPE.
4799 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
4800 (make_type_from_size): Deal with BOOLEAN_TYPE.
4801 * gcc-interface/misc.c (gnat_print_type): Likewise.
4802 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
4803 Set boolean_type_node as its translation in the table, as well
4804 as boolean_false_node for False and boolean_true_node for True.
4805 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
4806 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
4807 (create_param_decl): Deal with BOOLEAN_TYPE.
4808 (build_vms_descriptor): Likewise.
4809 (build_vms_descriptor64): Likewise.
4810 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
4812 2008-07-30 Robert Dewar <dewar@adacore.com>
4814 * exp_ch9.adb: Minor reformatting
4816 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
4817 if no primitive operation is found.
4819 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
4821 * sem_ch8.adb: Minor reformatting
4823 2008-07-30 Laurent Pautet <pautet@adacore.com>
4826 Remove a limitation on the length of the words handled by the minimal
4827 perfect hash function generator.
4830 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
4833 2008-07-30 Robert Dewar <dewar@adacore.com>
4835 * gnatlink.adb: Minor reformatting
4837 2008-07-30 Thomas Quinot <quinot@adacore.com>
4839 * rtsfind.adb (Check_RPC): Check version consistency even when not
4840 generating RCI stubs. Provide more detailed error message in case of
4843 2008-07-30 Ed Schonberg <schonberg@adacore.com>
4845 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
4846 as a actual in an instance, check for a missing attribute to prevent
4847 program_error on an illegal program.
4849 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
4850 error if primitive is not found, so that exception can be handled
4851 elsewhere on illegal programs.
4853 2008-07-30 Robert Dewar <dewar@adacore.com>
4855 * uintp.adb (UI_GCD): Fix potential overflow
4857 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
4859 * einfo.adb: Flag245 is now used.
4860 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
4861 check to include functions.
4862 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
4863 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
4865 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
4866 to the list of displayed flags.
4868 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
4869 Wrapped_Entity. These two flags are now present in functions.
4870 New flag Is_Private_Primitive.
4871 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
4874 (Build_Wrapper_Bodies): New subprogram.
4875 (Build_Wrapper_Body): The spec and body have been moved to in
4876 Build_Wrapper_ Bodies. Code cleanup.
4877 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
4878 Wrappers are now generated for primitives declared between the private
4879 and full view of a concurrent type that implements an interface.
4880 (Build_Wrapper_Specs): New subprogram.
4881 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
4882 creation mechanism with a call to Build_Wrapper_Bodies.
4883 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
4884 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
4885 (Expand_N_Task_Body): Replace the wrapper body creation
4886 mechanism with a call to Build_Wrapper_Bodies.
4887 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
4888 creation mechanism with a call to Build_Wrapper_Specs.
4889 (Is_Private_Primitive_Subprogram): New subprogram.
4890 (Overriding_Possible): Code cleanup.
4891 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
4893 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
4895 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
4896 (Process_Full_View): Build wrapper specs for all primitives
4897 that belong to a private view completed by a concurrent type
4898 implementing an interface.
4900 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
4902 concurrent type with a private view that implements an interface, try to
4903 find the proper spec.
4904 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
4905 primitive if the type of its first parameter is a non-generic tagged
4907 (Analyze_Subprogram_Specification): Code reformatting.
4908 (Disambiguate_Spec): New routine.
4909 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
4910 (Is_Private_Concurrent_Primitive): New routine.
4913 (Find_Corresponding_Spec): Add a formal to control the output of errors.
4915 2008-07-30 Doug Rupp <rupp@adacore.com>
4917 * gigi.h (build_vms_descriptor64): New function prototype.
4918 (fill_vms_descriptor): Modified function prototype.
4920 * utils.c (build_vms_descriptor64): New function.
4922 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
4924 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
4927 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
4928 64bit and 32bit descriptor and save the 64bit version as an alternate
4929 TREE_TYPE in the parameter.
4930 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
4933 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
4935 2008-07-30 Robert Dewar <dewar@adacore.com>
4937 * make.adb: Minor reformatting
4939 * mlib-utl.adb: Minor reformatting
4941 * osint.ads: Minor reformatting
4943 2008-07-30 Jose Ruiz <ruiz@adacore.com>
4946 (__gnat_file_exists): Do not use __gnat_stat for RTX.
4947 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
4948 avoid the use of this symbol from libgcc.a in RTX kernel mode.
4951 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
4952 the function RtPrintf for console output.
4954 * argv.c Do not use the environ variable for RTX.
4956 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
4957 been moved before the call to Osint.Add_Default_Search_Dirs in order
4958 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
4959 from the appropriate run time.
4962 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
4963 target is a RTSS module for RTX.
4965 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
4966 RTX_RTSS_Kernel_Module
4967 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
4969 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
4970 exception handling mechanism for Windows and RTX in Win32 mode, but
4971 not for RTX in kernel mode (RTSS).
4972 (LIBGNAT_SRCS): Remove ada.h
4974 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
4976 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
4977 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
4978 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
4979 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
4980 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
4981 ALL_ADA_CFLAGS): Remove.
4982 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
4983 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
4984 (GCC_CFLAGS): Remove X_CFLAGS.
4985 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
4986 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
4987 (ADA_CFLAGS): Substitute.
4989 2008-07-30 Laurent Guerby <laurent@guerby.net>
4992 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
4993 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
4994 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
4995 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
4996 by stamp-gnatlib2-rts.
4998 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5000 PR documentation/15479
5001 * gnat-style.texi: Remove AdaCore copyright statement and GPL
5002 statement for GNAT. Add @copying stanza, use it. Update to
5003 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
5004 title as Front-Cover Text.
5005 * gnat_rm.texi: Likewise.
5006 * gnat_ugn.texi: Likewise.
5008 2008-07-29 Jan Hubicka <jh@suse.cz>
5010 * trans.c (process_inlined_subprograms): Remove tree_really_inline
5013 2008-07-29 Arnaud Charlet <charlet@adacore.com>
5015 * gcc-interface: New directory.
5017 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
5018 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
5019 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
5020 to gcc-interface subdirectory.
5022 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5024 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
5026 2008-07-28 Jan Hubicka <jh@suse.cz>
5028 * misc.c (gnat_post_options): Do not set flag_no_inline.
5030 2008-07-28 Richard Guenther <rguenther@suse.de>
5032 Merge from gimple-tuples-branch.
5034 2008-07-22 Olivier Hainque <hainque@adacore.com>
5036 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
5037 this is called for an elab proc to be discarded if empty.
5038 * utils.c (end_subprog_body): Honor ELAB_P.
5039 (build_function_stub): Adjust call to end_subprog_body.
5040 * trans.c (Subprogram_Body_to_gnu): Likewise.
5041 (gigi): Reorganize processing of elab procs to prevent
5042 gimplifying twice, using the new end_subprog_body argument.
5044 2008-07-19 Richard Guenther <rguenther@suse.de>
5046 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
5047 (utils.o): Likewise.
5048 * trans.c: Include tree-iterator.h.
5049 (gnat_gimplify_expr): Adjust prototype. Fix typo.
5050 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
5051 (set_expr_location_from_node): Likewise.
5053 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
5055 * utils.c: Include tree-iterator.h.
5056 * gigi.h (gnat_gimplify_expr): Adjust prototype.
5058 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
5060 * trans.c: Include gimple.h instead of tree-gimple.h.
5063 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
5065 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
5067 2008-07-25 Jan Hubicka <jh@suse.cz>
5069 * utils.c (end_subprog_body): Remove inline trees check.
5070 * misc.c (gnat_post_options): Do not set flag_inline_trees.
5072 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5074 * raise-gcc.c: Move tsystem.h before tm.h.
5076 2008-07-20 Arnaud Charlet <charlet@adacore.com>
5078 * gnathtml.pl: New file.
5080 2008-07-19 Olivier Hainque <hainque@adacore.com>
5082 * targtyps.c (get_target_default_allocator_alignment): Use
5083 MALLOC_ABI_ALIGNMENT.
5085 2008-07-17 Olivier Hainque <hainque@adacore.com>
5087 * adaint.c (__MINGW32__ section): Include ctype.h and define
5088 a fallback ISALPHA if IN_RTS.
5089 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
5091 2008-07-17 Olivier Hainque <hainque@adacore.com>
5093 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
5094 argument, to apply to references in addition to definitions. Prevent
5095 setting TREE_STATIC on externals.
5096 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
5098 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5100 PR documentation/15479
5101 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
5102 Replace backets around optional parameters with @ovar
5103 where possible, use @r{[}, @r{]} otherwise.
5104 Replace some @r, @i, and @emph with @var where appropriate.
5106 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
5108 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
5110 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5112 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
5113 -Wc++-compat warnings.
5114 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
5115 __gnat_locate_exec_on_path): Likewise.
5116 * decl.c (annotate_value): Likewise.
5117 * misc.c (gnat_handle_option): Likewise.
5118 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
5119 post_error_ne_tree): Likewise.
5121 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
5123 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
5124 version of its type, attempt to first convert its elements.
5126 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
5128 * Makefile.in: Fix *86 kfreebsd target specific pairs.
5130 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
5132 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
5134 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
5136 * utils2.c (known_alignment): Derive the alignment from pointed-to
5137 types only if it is otherwise unknown.
5138 <INTEGER_CST>: Tidy.
5139 <MULT_EXPR>: Likewise.
5140 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
5143 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5146 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
5148 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5150 * gnat_rm.texi (Implementation Defined Characteristics)
5151 (Standard Library Routines): Use @smallexample for indented
5152 text. Drop Indentation outside examples.
5153 * gnat_ugn.texi: Likewise.
5155 2008-06-13 Olivier Hainque <hainque@adacore.com>
5157 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
5159 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
5160 realignment with force_align_arg_pointer attribute on foreign
5161 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5163 2008-06-13 Olivier Hainque <hainque@adacore.com>
5165 * utils.c (rest_of_record_type_compilation): When computing
5166 encodings for the components of a variable size type, early
5167 strip conversions on the current position expression to make
5168 sure it's shape is visible. Use remove_conversions for this
5171 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
5173 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
5174 constrained subtype of a discriminated type, discard the fields that
5175 are beyond its limits according to its size.
5177 2008-06-10 Olivier Hainque <hainque@adacore.com>
5179 * utils.c (create_subprog_decl): If this is for the 'main' entry
5180 point according to the asm name, redirect main_identifier_node.
5182 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
5184 * decl.c (components_to_record): Adjust the packedness for the
5185 qualified union as well.
5187 2008-06-09 Arnaud Charlet <charlet@adacore.com>
5189 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
5192 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
5194 * sem_res.adb (Large_Storage_Type): A type is large if it
5195 requires as many bits as Positive to store its values and its
5196 bounds are known at compile time.
5197 * sem_ch13.adb (Minimum_Size): Note that this function returns
5198 0 if the size is not known at compile time.
5200 2008-06-06 Nicolas Setton <setton@adacore.com>
5201 Olivier Hainque <hainque@adacore.com>
5203 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
5204 attribute, parallel descriptive type attached to another
5205 type for debug info generation purposes.
5206 * utils.c (add_parallel_type): New function, register
5207 parallel type to be attached to a type.
5208 (get_parallel_type): New function, fetch a registered
5209 parallel type, if any.
5210 (rest_of_record_type_compilation): Register the parallel
5211 type we make for variable size records.
5212 * gigi.h (add_parallel_type, get_parallel_type): Declare.
5213 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
5214 parallel debug types we make.
5215 * trans.c (extract_encoding, decode_name): New functions.
5216 (gigi): If the DWARF attribute extensions are available, setup
5218 * lang.opt: Register language specific processing request
5220 * misc.c (gnat_dwarf_extensions): New global variable. How much
5221 do we want of our DWARF extensions. 0 by default.
5222 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
5223 (gnat_post_options): Map gnat_dwarf_extensions to the
5224 commonuse_gnu_debug_info_extensions for later processing.
5226 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
5228 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
5230 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5232 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
5233 * gnat_ugn.texi (Style Checking)
5234 (Adding the Results of Compiler Checks to gnatcheck Output)
5235 (Example of Binder Output File): Fix typos.
5236 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
5237 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
5238 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
5239 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
5240 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
5241 sinfo.ads, utils.c: Fix typos in comments.
5242 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
5244 2008-05-29 Thomas Quinot <quinot@adacore.com>
5246 * sem_eval.adb: Minor reformatting
5248 2008-05-29 Ed Schonberg <schonberg@adacore.com>
5250 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
5251 is abstract, do not apply abstractness check on subprogram if this is
5252 a renaming declaration.
5254 2008-05-29 Arnaud Charlet <charlet@adacore.com>
5257 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
5258 allow recognition of program suffix in addition to prefix.
5260 * gnatchop.adb (Locate_Executable): Add support for prefix.
5262 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
5263 mlib-utl.adb: Adjust calls to Program_Name.
5265 2008-05-29 Robert Dewar <dewar@adacore.com>
5267 * sem_ch3.adb: Minor reformatting
5268 * sem_prag.adb: Minor reformatting
5269 * sem_res.adb: Minor reformatting
5270 * sinput-p.ads: Minor reformatting
5272 2008-05-29 Javier Miranda <miranda@adacore.com>
5275 (Abstract_Interface_List): Add missing support for full type-declaration
5276 associated with synchronized types.
5278 2008-05-29 Robert Dewar <dewar@adacore.com>
5280 * sem_eval.adb (Is_Same_Value): Take care of several more cases
5282 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5284 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
5285 access type, wrap the expression in a conversion to force an
5286 accessibility check.
5288 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
5289 accessibility checks even when expansion is disabled in order to
5290 generate messages in the presence of previous errors or in
5291 semantics-only mode.
5293 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
5295 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
5296 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
5298 2008-05-28 Vincent Celier <celier@adacore.com>
5301 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
5302 preprocessing expressions
5304 2008-05-28 Vincent Celier <celier@adacore.com>
5306 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
5309 * sinput-p.ads: Minor comment update and reformatting
5311 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5313 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
5314 type has a deeper level than any master only when it is the type of an
5317 2008-05-28 Javier Miranda <miranda@adacore.com>
5319 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
5321 2008-05-28 Javier Miranda <miranda@adacore.com>
5323 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
5324 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
5325 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
5326 Add code that was previously located in
5327 Find_Overridden_Synchronized_Primitive because it is only used here.
5329 2008-05-28 Sergey Rybin <rybin@adacore.com>
5331 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
5332 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
5334 2008-05-28 Robert Dewar <dewar@adacore.com>
5337 Add missing restrictions, and properly label all GNAT defined ones
5340 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
5341 Add entry for Ada.Task_Termination.Set_Specific_Handler
5342 Add entry for Ada.Task_Termination.Specific_Handler
5345 Add missing restrictions and properly mark all gnat defined ones
5348 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
5351 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5353 * gnat_rm.texi: Add missing restrictions, and properly label all
5356 2008-05-28 Robert Dewar <dewar@adacore.com>
5359 (Check_Restriction): violation of restriction No_Finalization is
5360 treated as a serious error to stop expansion
5362 2008-05-28 Robert Dewar <dewar@adacore.com>
5364 * exp_util.adb: Minor reformatting
5365 * exp_util.ads: Minor reformatting.
5367 2008-05-28 Arnaud Charlet <charlet@adacore.com>
5369 * Make-lang.in: Remove gprmake.
5371 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
5373 2008-05-28 Ed Schonberg <schonberg@adacore.com>
5375 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
5376 improper progenitor names, and avoid cascaded errors.
5378 2008-05-28 Robert Dewar <dewar@adacore.com>
5380 * gnat_rm.texi: Add note on Old giving warning when applied to constant
5382 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
5385 2008-05-28 Robert Dewar <dewar@adacore.com>
5387 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
5390 2008-05-28 Robert Dewar <dewar@adacore.com>
5393 (Expand_Simple_Function_Return): Copy unaligned result into temporary
5395 2008-05-28 Javier Miranda <miranda@adacore.com>
5397 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
5398 for user-defined predefined primitives.
5400 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
5401 (Find_Overridden_Synchronized_Primitive): Ditto.
5403 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
5405 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5407 * a-ststio.adb, s-direio.adb:
5408 Further code clean up of previous change.
5411 2008-05-27 Vincent Celier <celier@adacore.com>
5413 * prj-nmsc.adb: Minor reformatting
5415 2008-05-27 Bob Duff <duff@adacore.com>
5417 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
5418 untagged private type with a tagged full type, where the full type has
5419 a self reference, create the corresponding class-wide type early, in
5420 case the self reference is "access T'Class".
5422 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5424 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
5425 tasks and context is an object declaration. create master entity before
5428 2008-05-27 Robert Dewar <dewar@adacore.com>
5430 * mlib-prj.adb: Minor reformatting
5432 * prj-part.adb: Minor reformatting
5434 * prj.ads: Minor reformatting
5436 * exp_ch3.adb: Minor reformatting.
5438 * sem_ch3.ads: Minor reformatting
5440 * sem_eval.adb: Minor reformatting
5442 2008-05-27 Vincent Celier <celier@adacore.com>
5445 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
5447 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5449 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
5450 tasks, create an activation chain now, before the expansion into
5451 assignments and build-in-place calls that require the presence of an
5453 (Backend_Processing_Possible): If the component type is inherently
5454 limited, the aggregate must be expanded into individual built-in-place
5457 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
5458 determine whether an allocation extra parameter must be built, to
5459 handle case of a private type whose full type is a discriminated type
5462 2008-05-27 Bob Duff <duff@adacore.com>
5465 Document the new behavior regarding trampolines.
5467 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5469 * a-direio.adb, a-sequio.adb: Replace address clause by
5470 unrestricted_access, simpler and compatible with .NET.
5472 2008-05-27 Vincent Celier <celier@adacore.com>
5475 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
5476 a project file, so that symbolic links are not resolved.
5478 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5480 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
5481 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
5482 portable across GNAT targets, since this kind of address clause is not
5483 supported by VM back-ends (.NET/JGNAT).
5485 2008-05-27 Arnaud Charlet <charlet@adacore.com>
5487 * bindgen.adb: Update comments.
5489 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
5491 2008-05-27 Vincent Celier <celier@adacore.com>
5493 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
5494 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
5495 mlib-tgt.adb, prj-env.adb, prj-env.ads:
5496 (Path_Information): New record type
5497 Use component of type Path_Information when there are two paths, one in
5498 canonical format and one in display format.
5499 Update the project manager to these new components.
5501 2008-05-27 Robert Dewar <dewar@adacore.com>
5503 * makeutl.adb: Minor reformatting
5504 * prj-nmsc.adb: Minor reformatting
5505 * s-stausa.adb: Minor reformatting
5506 * s-stausa.ads: Minor reformatting
5507 * sem_ch6.adb: Minor reformatting
5509 2008-05-27 Thomas Quinot <quinot@adacore.com>
5511 * sem_res.adb: Minor comment fixes
5513 2008-05-27 Thomas Quinot <quinot@adacore.com>
5515 * makeutl.adb: Minor code reorganization
5517 * exp_aggr.adb: Add ??? comment
5520 * exp_ch6.adb: Minor reformatting
5522 2008-05-27 Quentin Ochem <ochem@adacore.com>
5524 * s-stausa.adb (Initialize): Updated result initialization, and
5525 initialization of environment stack.
5526 (Fill_Stack): Improved computation of the pattern zone, taking into
5527 account already filled at the calling point.
5528 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
5529 Measure and Overflow_Guard.
5530 (Report_Result): Fixed computation of the result using new fields of
5533 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
5534 params by more explicit Stack_Size / Max_Pattern_Size params.
5535 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
5536 Added Stack_Used_When_Filling field.
5537 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
5538 Min_Measure and Max_Measure fields.
5540 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
5542 2008-05-27 Vincent Celier <celier@adacore.com>
5545 (Check_File): Make sure that a unit that replaces the same unit in a
5546 project being extended is properly processed.
5548 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5551 (Get_Discr_Value): Remove obsolete code that failed to find the value
5552 of a discriminant for an inherited task component appearing in a type
5555 2008-05-27 Thomas Quinot <quinot@adacore.com>
5557 (System.File_IO.{Close, Delete, Reset}):
5558 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
5560 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
5561 Pass File parameter by reference.
5563 2008-05-27 Vincent Celier <celier@adacore.com>
5566 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
5567 sources of the same project that have the same object file name.
5568 (Find_Explicit_Sources): Always remove a source exception that was not
5571 2008-05-27 Thomas Quinot <quinot@adacore.com>
5573 * sem_ch3.adb: Minor reformatting
5575 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5578 (Is_Interface_Conformant): Handle properly a primitive operation that
5579 overrides an interface function with a controlling access result.
5580 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
5581 inherited and overriding operations, omit as well the conformance check
5582 on result types, to prevent spurious errors.
5584 2008-05-27 Vincent Celier <celier@adacore.com>
5586 * makeutl.ads, makeutl.adb:
5587 (Set_Location): New procedure
5588 (Get_Location): New function
5589 (Update_Main): New procedure
5591 2008-05-27 Vincent Celier <celier@adacore.com>
5594 (Check_Library): Allow standard project to be extended as a static
5596 (Get_Mains): Do not inherit attribute Main in an extending library
5599 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
5601 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
5602 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
5603 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
5604 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
5605 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
5606 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
5607 * system-mingw.ads (Always_Compatible_Rep): Likewise.
5608 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
5609 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
5610 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
5612 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5614 * sem_attr.adb: add guard to previous patch.
5616 2008-05-27 Ed Schonberg <schonberg@adacore.com>
5618 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
5619 a synchronized tagged type, do not attempt to build dispatch table for
5620 full view. The table is built for the corresponding record type, which
5621 has its own declaration.
5623 2008-05-27 Gary Dismukes <dismukes@adacore.com>
5625 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
5626 to the known type entity E, rather than setting it to Any_Type. Fixes
5627 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
5628 for objects whose type had an illegal constraint.
5630 2008-05-27 Vincent Celier <celier@adacore.com>
5633 Add succinct documentation for attribute Excluded_Source_List_File
5635 2008-05-27 Vincent Celier <celier@adacore.com>
5637 * prj-attr.adb: Add new project level attribute Map_File_Option
5639 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
5641 * prj.ads: Minor reformatting and comment update
5642 (Project_Configuration): New component Map_File_Option
5644 * snames.adb: New standard name Map_File_Option
5646 * snames.ads: New standard name Map_File_Option
5648 2008-05-27 Vincent Celier <celier@adacore.com>
5650 * xsnames.adb: Remove unused variable Oname
5652 2008-05-27 Doug Rupp <rupp@adacore.com>
5655 (Expand_N_Function_Call): Fix comments. Minor reformatting.
5658 (Expand_Vax_Foreign_Return): Fix comments.
5660 2008-05-27 Thomas Quinot <quinot@adacore.com>
5662 * exp_dist.adb: Minor reformating
5664 2008-05-26 Gary Dismukes <dismukes@adacore.com>
5666 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
5667 No_Default_Initialization, which is now delayed until the freeze point
5668 of the object. Add a comment about deferral of the check.
5670 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
5671 on objects is moved here.
5673 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5675 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
5676 (Compare_Array_S16): Adjust for above change.
5677 * s-casi32.adb (Uword): Likewise.
5678 (Compare_Array_S32): Likewise.
5679 * s-casi64.adb (Uword): Likewise.
5680 (Compare_Array_S64): Likewise.
5681 * s-caun16.adb (Uhalf): Likewise.
5682 (Compare_Array_U16): Likewise.
5683 * s-caun32.adb (Uword): Likewise.
5684 (Compare_Array_U32): Likewise.
5685 * s-caun64.adb (Uword): Likewise.
5686 (Compare_Array_U64): Likewise.
5688 2008-05-26 Robert Dewar <dewar@adacore.com>
5690 * exp_ch6.adb: Add ??? comment for previous change
5692 * exp_vfpt.adb: Minor reformatting
5694 * exp_vfpt.ads: Add ??? comment for last change
5696 * sem_attr.adb: Add some ??? comments for previous change
5698 * s-vaflop.ads: Add comments for previous change
5700 2008-05-26 Doug Rupp <rupp@adacore.com>
5702 * s-vaflop-vms-alpha.adb:
5703 Remove System.IO use clause, to prevent spurious ambiguities when
5704 package is access through rtsfind.
5706 2008-05-26 Sergey Rybin <rybin@adacore.com>
5708 * tree_io.ads (ASIS_Version_Number): Update because of the changes
5711 2008-05-26 Ed Schonberg <schonberg@adacore.com>
5714 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
5715 converted to S (A)'address only if A .. B is known to be a non-null
5718 2008-05-26 Doug Rupp <rupp@adacore.com>
5721 (Return_D, Return_F, Return_G): New functions.
5724 (Return_D, Return_F, Return_G): New functions.
5727 (Expand_Vax_Foreign_Return): New procedure
5730 (Expand_Vax_Foreign_Return): New procedure
5733 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
5734 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
5738 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
5740 * s-vaflop-vms-alpha.adb:
5741 (Return_D, Return_F, Return_G): New functions.
5743 2008-05-26 Gary Dismukes <dismukes@adacore.com>
5745 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
5746 init proc entity when there is actual default initialization associated
5747 with the component type, to avoid spurious errors on objects of scalar
5748 array types that are marked Is_Public when No_Default_Initialization
5751 2008-05-26 Thomas Quinot <quinot@adacore.com>
5753 * rtsfind.ads, rtsfind.adb:
5754 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
5755 (Check_RPC): Support per-PCS-kind API versioning.
5757 exp_dist.ads, exp_dist.adb:
5758 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
5759 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
5760 library function Get_RACW.
5761 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
5762 library function Get_Reference.
5763 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
5764 through an intermediate Any.
5765 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
5766 going through an intermediate Any.
5768 * sem_dist.adb: Minor reformatting.
5770 2008-05-26 Javier Miranda <miranda@adacore.com>
5772 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
5773 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
5774 (Is_Internal): Adding documentation on internal entities that have
5775 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
5777 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
5778 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
5779 Added assertion to force entities with this attribute to have
5780 attribute Is_Internal set to True.
5781 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
5783 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
5784 renamed as Derive_Progenitor_Subprograms. In addition, its code is
5785 a new implementation.
5786 (Add_Interface_Tag_Components): Remove special management of
5787 synchronized interfaces.
5788 (Analyze_Interface_Declaration): Minor reformating
5789 (Build_Derived_Record_Type): Minor reformating
5790 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
5791 predefined primitive inherited from interface type because the body of
5792 internally generated predefined primitives of tagged types are generated
5793 later by Freeze_Type
5794 (Derive_Subprogram): Avoid generating an internal name if the parent
5795 subprogram overrides an interface primitive.
5796 (Derive_Subprograms): New implementation that keeps separate the
5797 management of tagged types not implementing interfaces, from tagged
5798 types that implement interfaces.
5799 (Is_Progenitor): New implementation.
5800 (Process_Full_View): Add documentation
5801 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
5802 by call to Derive_Progenitor_Subprograms.
5804 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
5805 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
5806 Skip_Controlling_Formals.
5808 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
5809 (Check_Conventions): New implementation. Remove local subprogram
5810 Skip_Check. Remove formal Search_From of routine Check_Convention.
5811 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
5812 Skip_Controlling_Formals.
5813 (New_Overloaded_Entity): Enable addition of predefined dispatching
5817 (Find_Primitive_Covering_Interface): New subprogram.
5819 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
5820 the task body procedure as a primitive of the corresponding tagged
5822 (Check_Operation_From_Private_Type): Avoid adding twice an entity
5823 to the list of primitives.
5824 (Find_Primitive_Covering_Interface): New subprogram.
5825 (Override_Dispatching_Operation): Add documentation.
5827 * sem_type.adb (Covers): Minor reformatings
5829 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
5832 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
5833 (Implements_Interface): New subprogram.
5834 (Is_Parent): Removed.
5835 (Primitive_Names_Match): New subprogram.
5836 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
5837 (Ultimate_Alias): New subprogram.
5839 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
5841 Remove special management for synchronized types. Rename formal. Remove
5842 internal subprograms Interface_Present_In_Parent and Add_Interface.
5843 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
5844 on non-record types by code to return false in such case.
5845 (Implements_Interface): New subprogram.
5846 (Is_Parent): Removed. No special management is now required for
5847 synchronized types covering interfaces.
5848 (Primitive_Names_Match): New subprogram.
5849 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
5850 (Ultimate_Alias): New subprogram.
5852 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
5853 Add internal entities associated with secondary dispatch tables to
5854 the list of tagged type primitives that are not interfaces.
5855 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
5856 (Make_Predefined_Primitive_Specs): Code reorganization to improve
5857 the management of predefined equality operator. In addition, if
5858 the type has an equality function corresponding with a primitive
5859 defined in an interface type, the inherited equality is abstract
5860 as well, and no body can be created for it.
5862 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
5863 exp_util to exp_disp.
5864 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
5865 an entity corresponds with one of the predefined primitives required
5866 to implement interfaces.
5867 Update copyright notice.
5869 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
5870 final check on abstract subprograms all the primitives associated with
5871 interface primitives because they must be visible in the public and
5873 (Write_DT): Use Find_Dispatching_Type to locate the name of the
5874 interface type. This allows the use of this routine, for debugging
5875 purposes, when the tagged type is not fully decorated.
5876 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
5877 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
5878 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
5879 entity corresponds with one of the predefined primitives required to
5880 implement interfaces.
5882 * exp_util.adb (Find_Interface_ADT): New implementation
5883 (Find_Interface): Removed.
5885 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
5886 list of interfaces associated with nodes
5887 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
5889 2008-05-26 Thomas Quinot <quinot@adacore.com>
5891 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
5892 condition for assignment to temporary.
5894 2008-05-26 Ed Schonberg <schonberg@adacore.com>
5896 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
5897 checks on the upper bound if the index type is a modular type, to
5898 prevent wrap-around computations when size is close to upper bound of
5901 2008-05-26 Robert Dewar <dewar@adacore.com>
5903 * sem_ch3.adb: Minor reformatting
5905 2008-05-26 Ed Schonberg <schonberg@adacore.com>
5907 * sem_ch12.adb (Remove_Parent): Use specification of instance
5908 to retrieve generic parent,
5909 to handle properly the case where the instance is a child unit.
5910 Add guard to handle properly wrapper packages.
5913 2008-05-26 Thomas Quinot <quinot@adacore.com>
5915 * sinfo.ads: Minor reformatting
5917 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
5919 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
5920 Generate a tag check when the result subtype of a function, defined by
5921 an access definition, designates a specific tagged type.
5922 (Make_Tag_Check): New routine.
5924 2008-05-26 Arnaud Charlet <charlet@adacore.com>
5926 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
5928 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
5930 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
5931 (builtin_decl_for): Likewise.
5932 * trans.c (gigi): Likewise.
5933 * utils.c (def_builtin_1): Fix formatting.
5935 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
5937 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
5938 Create the statements which map a string name to protected or task
5941 * exp_ch9.adb: Add with and use clause for Stringt.
5942 Minor code reformatting.
5943 (Build_Entry_Names): New routine.
5944 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
5945 for flag Build_Entry_Names which controls the allocation of the data
5946 structure for the string names of entries.
5948 * exp_ch9.ads (Build_Entry_Names): New subprogram.
5950 * exp_util.adb (Entry_Names_OK): New function.
5952 * exp_util.ads (Entry_Names_OK): New function.
5954 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
5955 enumerations RE_Id and RE_Unit_Table.
5957 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
5958 (Free_Entry_Names_Array): New routine.
5960 * s-taskin.ads: Comment reformatting.
5961 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
5962 Add component Entry_Names to record Ada_Task_Control_Block.
5963 (Free_Entry_Names_Array): New routine.
5965 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
5966 dynamically allocate an array
5967 of string pointers. This structure holds string entry names.
5968 (Free_Entry_Names): New routine.
5969 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
5970 (Set_Entry_Names): New routine.
5973 (Create_Task): Add formal Build_Entry_Names. The flag is used to
5974 control the allocation of the data structure which stores entry names.
5975 (Set_Entry_Name): New routine.
5978 Add with and use clause for Ada.Unchecked_Conversion.
5979 (Finalize): Deallocate the entry names array.
5980 (Free_Entry_Names): New routine.
5981 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
5982 create an array of string pointers to hold the entry names.
5983 (Set_Entry_Name): New routine.
5986 Add field Entry_Names to record Protection_Entries.
5987 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
5988 (Set_Entry_Name): New routine.
5990 2008-05-26 Vincent Celier <celier@adacore.com>
5993 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
5996 (Project_Configuration): New component Shared_Lib_Driver
5998 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6001 (Cleanup_Scopes): For a protected operation, transfer finalization list
6002 to protected body subprogram, to force cleanup actions when needed.
6004 2008-05-26 Robert Dewar <dewar@adacore.com>
6006 * sem_cat.adb: Minor reformatting
6008 * gnatname.adb: Minor reformatting
6010 * osint.ads: Minor reformatting
6012 * s-carun8.ads: Minor reformatting
6014 * g-heasor.ads: Minor comment fix (unit is now pure)
6016 2008-05-26 Robert Dewar <dewar@adacore.com>
6019 (Expand_Current_Value): Properly type generated integer literal
6021 2008-05-26 Sergey Rybin <rybin@adacore.com>
6023 * gnat_ugn.texi: Add description for the new gnatcheck rule -
6024 Separate_Numeric_Error_Handlers.
6026 2008-05-26 Pascal Obry <obry@adacore.com>
6028 * sem_aggr.adb: Minor reformatting.
6030 2008-05-26 Jose Ruiz <ruiz@adacore.com>
6033 (To_Target_Priority): Setting the time slice value to 0 or greater sets
6034 the scheduling policy to FIFO within priorities or round-robin
6036 Hence, the priority must be set in this case to the one selected by the
6039 2008-05-26 Ed Schonberg <schonberg@adacore.com>
6042 (Remove_Parent): If the enclosing scope is an instance whose generic
6043 parent is declared within some parent scope of the just completed
6044 instance, make full views of the entities in that parent visible, when
6047 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
6049 * mingw32.h (STD_MINGW): Set to true for target w64.
6051 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
6053 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
6054 instead of TREE_STATIC on the ADDR_EXPR.
6056 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
6058 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
6059 (Sloc_to_locus): Do not overwrite known GCC locations when translating
6060 GNAT standard locations.
6062 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6064 * gigi.h (mark_visited): Declare.
6065 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
6066 only the topmost node of expressions.
6067 (elaborate_expression_1): Look deeper for read-only variables.
6068 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
6069 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
6070 (mark_visited_r): New function.
6072 2008-05-23 Vincent Celier <celier@adacore.com>
6074 * snames.adb: New standard name Excluded_Source_List_File.
6076 * snames.ads: New standard name Excluded_Source_List_File.
6078 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
6080 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
6081 Get excluded sources from
6082 file indicated by attribute Excluded_Source_List_File, when present and
6083 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
6085 2008-05-23 Robert Dewar <dewar@adacore.com>
6087 * exp_dist.adb: Minor reformatting
6089 2008-05-23 Ed Schonberg <schonberg@adacore.com>
6091 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
6092 slice, convert it to an indexed component, which is equivalent, more
6093 efficient, and usable even if the slice itself is not addressable.
6095 2008-05-23 Olivier Hainque <hainque@adacore.com>
6097 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
6098 convention also allows access to named compiler built-in subprograms
6099 such as the GCC __builtin family.
6101 2008-05-23 Vincent Celier <celier@adacore.com>
6103 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
6104 sep. If there are several possibilities, choose the one with the
6107 2008-05-23 Vincent Celier <celier@adacore.com>
6109 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
6110 back end switches when executable specified with --GCC= is same as
6111 default, even if there are additional options.
6114 Document when the back end switches from the ALI file are taken into
6115 account when gnatlink is invoked with --GCC=
6117 2008-05-23 Thomas Quinot <quinot@adacore.com>
6120 (copy_File): Do not open destination file if source file is unreadable.
6122 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
6124 * utils.c (handle_type_generic_attribute): Adjust to accept
6125 fixed arguments before an elipsis.
6127 2008-05-21 Thomas Quinot <quinot@adacore.com>
6129 * g-sothco.ads, g-sothco.adb: New files.
6131 2008-05-20 Thomas Quinot <quinot@adacore.com>
6133 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
6135 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
6136 Add missing "with" of Ada.Unchecked_Conversion
6138 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
6139 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
6140 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6141 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6142 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
6143 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
6144 Move common code out of GNAT.Sockets.Thin implementations and into
6146 New constant SIZEOF_fd_set
6147 New flag Has_Sockaddr_Len
6148 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6150 * g-stsifd-sockets.adb
6151 (Create): Remove call to Set_Length; use Set_Family to set the family
6152 and (on appropriate platforms) length fields in struct sockaddr.
6154 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
6155 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
6156 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
6157 Move common code out of GNAT.Sockets.Thin implementations and into
6160 * g-socket.ads, g-socket.adb:
6161 Move common code out of GNAT.Sockets.Thin implementations and into
6163 (Connect_Socket, Accept_Socket): Provide new versions of these two
6164 routines that operate with a user specified timeout.
6165 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
6166 this is now handled automatically by Set_Family on platforms that
6170 Move common code out of GNAT.Sockets.Thin implementations and into
6172 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
6173 this constant to 0 (not -1) because we use it to initialize an
6174 unsigned_char value.
6175 Align values for numeric constants only.
6176 Handle the case of systems that do not support AF_INET6.
6177 New constant SIZEOF_fd_set
6178 New flag Has_Sockaddr_Len
6179 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6181 * gsocket.h: New flag Has_Sockaddr_Len
6182 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
6184 2008-05-20 Santiago Uruena <uruena@adacore.com>
6186 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
6188 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6190 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
6191 the underlying issue with malloc/free has been fixed. Remove associated
6194 Related to PR ada/24533
6196 2008-05-20 Robert Dewar <dewar@adacore.com>
6198 * ali.adb: Correct casing of ASCII.NUL
6200 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
6203 2008-05-20 Robert Dewar <dewar@adacore.com>
6204 Gary Dismukes <dismukes@adacore.com>
6206 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
6207 overflow if result converted to wider integer type.
6208 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
6209 discriminated types when discriminant checks are suppressed.
6211 2008-05-20 Vincent Celier <celier@adacore.com>
6213 * cstand.adb (Print_Standard): Issue the correct Size clause for type
6214 Wide_Wide_Character.
6216 2008-05-20 Tristan Gingold <gingold@adacore.com>
6218 * decl.c: Do not emit a variable for a object that has an address
6219 representation clause whose value is known at compile time.
6220 When a variable has an address clause whose value is known at compile
6221 time, refer to this variable by using directly the address instead of
6222 dereferencing a pointer.
6224 2008-05-20 Robert Dewar <dewar@adacore.com>
6227 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
6228 subtypes, always False for non-modular types.
6229 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
6230 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
6231 for Shared_Storage package.
6232 (Is_RACW_Stub_Type): New entity flag.
6235 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
6236 case where we have a modular type with a non-binary modules.
6237 Comments reformattings.
6239 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
6242 2008-05-20 Javier Miranda <miranda@adacore.com>
6245 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
6246 tests did not covered the case in which the type of the aggregate has
6247 no progenitors but some its parents has progenitors.
6249 2008-05-20 Gary Dismukes <dismukes@adacore.com>
6250 Hristian Kirtchev <kirtchev@adacore.com>
6253 (Expand_N_Object_Declaration): Correct the condition which triggers the
6254 generation of a call to Displace when initializing a class-wide object.
6255 (Build_Dcheck_Functions): Build discriminant-checking for null variants
6256 when Frontend_Layout_On_Target is true to ensure that they're available
6257 for calling when a record variant size function is built in Layout.
6259 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6261 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
6262 procedure for a derived type retrieve the discriminant values from the
6263 parent using the corresponding discriminant.
6264 (Expand_N_Assignment_Statement): Skip generation of implicit
6265 if-statement associated with controlled types if we are
6266 compiling with restriction No_Finalization.
6268 2008-05-20 Vincent Celier <celier@adacore.com>
6270 * prj.adb (Hash (Project_Id)): New function
6271 (Project_Empty): Add new component Interfaces_Defined
6273 * prj.ads (Source_Data): New component Object_Linked
6274 (Language_Config): New components Object_Generated and Objects_Linked
6275 (Hash (Project_Id)): New function
6276 (Source_Data): New Boolean components In_Interfaces and
6277 Declared_In_Interfaces.
6278 (Project_Data): New Boolean component Interfaces_Defined
6281 New project level attribute Object_Generated and Objects_Linked
6282 Add new project level attribute Interfaces
6284 * prj-dect.adb: Use functions Present and No throughout
6285 (Parse_Variable_Declaration): If a string type is specified as a simple
6286 name and is not found in the current project, look for it also in the
6287 ancestors of the project.
6290 Replace procedure Make with procedures Initialize, Process and Finalize
6291 to implement H414-023: process different directories with different
6293 Use functions Present and No throughout
6296 Replace procedure Make with procedures Initialize, Process and Finalize
6299 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
6300 the language configuration.
6301 (Process_Project_Level_Array_Attributes): Process new attributes
6302 Object_Generated and Object_Linked.
6303 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
6304 False, to indicate that the erreor/warning is a continuation.
6305 (Check): Call Report_No_Sources with Contnuation = True after the first
6307 (Error_Msg): Process successively contnuation character and warning
6309 (Find_Explicit_Sources): Check that all declared sources have been found
6310 (Check_File): Indicate in hash table Source_Names when a declared source
6312 (Check_File): Set Other_Part when found
6313 (Find_Explicit_Sources): In multi language mode, check if all exceptions
6314 to the naming scheme have been found. For Ada, report an error if an
6315 exception has not been found. Otherwise, disregard the exception.
6316 (Check_Interfaces): New procedure
6317 (Add_Source): When Other_Part is defined, set mutual pointers in spec
6319 (Check): In multi-language mode, call Check_Interfaces
6320 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
6321 for an excluded source.
6322 (Remove_Source): A source replacing a source in the interfaces is also
6325 * prj-pars.adb: Use function Present
6327 * prj-part.adb: Use functions Present and No throughout
6328 (Parse_Single_Project): Set the parent project for child projects
6329 (Create_Virtual_Extending_Project): Register project with no qualifier
6330 (Parse_Single_Project): Allow an abstract project to be extend several
6331 times. Do not allow an abstract project to extend a non abstract
6334 * prj-pp.adb: Use functions Present and No throughout
6335 (Print): Take into account the full associative array attribute
6338 * prj-proc.adb: Use functions Present and No throughout
6339 (Expression): Call itself with the same From_Project_Node for the
6340 default value of an external reference.
6342 * prj-strt.adb: Use functions Present and No throughout
6343 (Parse_Variable_Reference): If a variable is specified as a simple name
6344 and is not found in the current project, look for it also in the
6345 ancestors of the project.
6347 * prj-tree.ads, prj-tree.adb (Present): New function
6349 Use functions Present and No throughout
6350 (Parent_Project_Of): New function
6351 (Set_Parent_Project_Of): New procedure
6353 * snames.ads, snames.adb:
6354 Add new standard names Object_Generated and Objects_Linked
6356 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6358 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
6359 and the derived type are of the same kind.
6360 (Expand_Call): Generate type conversions for actuals of
6361 record or array types when the parent and the derived types differ in
6362 size and/or packed status.
6364 2008-05-20 Javier Miranda <miranda@adacore.com>
6365 Ed Schonberg <schonberg@adacore.com>
6367 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
6368 generating dispatch tables of locally defined tagged types statically.
6369 Remove implicit if-statement that is no longer required.
6370 (Expand_Dispatching_Call): If this is a call to an instance of the
6371 generic dispatching constructor, the type of the first argument may be
6372 a subtype of Tag, so always use the base type to recognize this case.
6374 2008-05-20 Thomas Quinot <quinot@adacore.com>
6377 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
6378 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
6379 assigning NULL into the result, to avoid a spurious warning.
6380 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
6382 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
6384 (Build_From_Any_Function, Build_To_Any_Function,
6385 Build_TypeCode_Function): For a type that has user-specified stream
6386 attributes, use an opaque sequence of octets as the representation.
6388 2008-05-20 Kevin Pouget <pouget@adacore.com>
6390 * exp_smem.ads, exp_smem.adb: Construction of access and assign
6391 routines has been replaced by an instantiation of
6392 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
6393 shared variable declaration.
6394 Calls to access and assign routines have been replaced by calls to
6395 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
6396 instantiated package.
6398 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
6399 It identifies the new generic package added in s-shasto.
6401 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
6402 is instantiated for each shared passive variable. It provides
6403 supporting procedures called upon each read or write access by the
6407 For this runtime unit (always compiled in GNAT mode), we allow
6408 stream attributes references for limited types for the case where
6409 shared passive objects are implemented using stream attributes,
6410 which is the default in GNAT's persistent storage implementation.
6412 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6415 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
6416 convention from its base type, do not set the type to that of integer,
6417 because it may inherit a size clause.
6418 Warn on a size clause with a size different
6419 from that of Integer, if the type has convention C.
6421 2008-05-20 Vincent Celier <celier@adacore.com>
6424 (Scan_Args): Rewrite to take into account new switch --and to separate
6425 arguments into sections.
6426 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
6427 section, then Finalize.
6429 2008-05-20 Tristan Gingold <gingold@adacore.com>
6431 * init.c: Enable stack probing on ppc-linux.
6433 * tracebak.c: Add symbolic traceback for ppc-linux.
6435 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
6437 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6440 (common-tools): New rule, to avoid parallel build failure on gnat tools.
6441 Reenable parallel builds on this Makefile.
6443 * Make-lang.in: Update dependencies.
6445 2008-05-20 Robert Dewar <dewar@adacore.com>
6447 * opt.ads (Treat_Restrictions_As_Warnings): New switch
6449 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
6450 Treat_Restrictions_As_Warnings.
6452 * switch-c.adb: Recognize new switch -gnatr
6454 * usage.adb: Add line for -gnatr
6456 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6459 (P_Access_Definition): Change the error message when parsing "access
6460 all" in Ada 95 mode. The message no longer forces the user to recompile
6461 in 05 mode only to discover that anonymous access types are not allowed
6464 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
6467 (P_Protected): Update the error message on missing "-gnat05" switch when
6468 using interfaces in conjunction with protected types. Remove the
6469 incorrect error message associated with the presence of "private" after
6472 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6474 * sem_aggr.adb: Update comments.
6475 Improve previous change for PR ada/17985
6477 2008-05-20 Thomas Quinot <quinot@adacore.com>
6480 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
6481 the visible part of the spec of a remote types unit.
6482 (Validate_Remote_Access_Object_Type_Declaration):
6483 New local subprogram Is_Valid_Remote_Object_Type, replaces
6484 Is_Recursively_Limited_Private.
6485 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
6486 non-controlling formals (and the return type, even though this is not
6487 explicit in the standard) must support external streaming.
6488 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
6489 as above for of RAS types and RCI subprograms. (The return type is not
6491 Update comments related to RACWs designating limited interfaces per
6492 ARG ruling on AI05-060.
6494 * sem_util.ads, sem_util.adb
6495 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
6496 Is_Remote_Call_Interface to identify RACW types in a stable and
6497 consistent way. We used to rely in this predicate on the privateness of
6498 the designated type and its ancestors, but depending on the currently
6499 visible private parts, this caused false negatives. We now uniformly
6500 rely on checks made at the point where the RACW type is declared.
6501 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
6503 2008-05-20 Javier Miranda <miranda@adacore.com>
6504 Ed Schonberg <schonberg@adacore.com>
6505 Hristian Kirtchev <kirtchev@adacore.com>
6508 (Analyze_Object_Declaration): Fix over-conservative condition
6509 restricting use of predefined assignment with tagged types that have
6511 (Analyze_Object_Declaration): Relax the check regarding deferred
6512 constants declared in scopes other than packages since they can be
6513 completed with pragma Import.
6514 Add missing escaping of all-caps word 'CPP' in error messages.
6515 (Build_Discriminated_Subtype): Do not inherit representation clauses
6516 from parent type if subtype already carries them, because they are
6517 inherited earlier during derivation and already include those that may
6518 come from a partial view.
6520 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
6521 Check the declarations of a subprogram body for proper deferred
6522 constant completion.
6524 * sem_ch7.ads, sem_ch7.adb
6525 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
6527 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6528 Thomas Quinot <quinot@adacore.com>
6531 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
6532 F is a parameterless function that returns an array, and S is a subtype
6534 (Analyze_Call): Insert dereference when the prefix is a parameterless
6535 function that returns an access to subprogram and the call has
6537 Reject a non-overloaded call whose name resolves to denote
6538 a primitive operation of the stub type generated to support a remote
6539 access-to-class-wide type.
6541 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6544 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
6545 when there is a use clause for the same entity in the context.
6546 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
6547 created for a stream attribute of an abstract type or interface type.
6549 2008-05-20 Thomas Quinot <quinot@adacore.com>
6551 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
6555 (Add_One_Interp): Ignore any interpretation that is a primitive
6556 operation of an RACW stub type (these primitives are only executed
6557 through dispatching, never through static calls).
6558 (Collect_Interps): When only one interpretation has been found, set N's
6559 Entity and Etype to that interpretation, otherwise Entity and Etype may
6560 still refer to an interpretation that was ignored by Add_One_Interp,
6561 in which case would end up with being marked as not overloaded but with
6562 an Entity attribute not pointing to its (unique) correct interpretation.
6564 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6567 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
6568 denotes the whole array of its prefix.
6570 2008-05-20 Robert Dewar <dewar@adacore.com>
6572 * sem_res.adb (Resolve_Op_Not): Warn on double negation
6574 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6577 (Print_Itype): Do not modify the sloc of the component type of a
6578 (packed) array itype, because it is an unrelated type whose source
6579 location is independent of the point of creation of the itype itself.
6581 2008-05-20 Thomas Quinot <quinot@adacore.com>
6583 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
6586 2008-05-20 Robert Dewar <dewar@adacore.com>
6587 Vincent Celier <celier@adacore.com>
6589 * vms_data.ads: Add entry for -gnatr
6590 Put GNAT SYNC section in proper alpha order
6591 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
6593 * gnat_ugn.texi: Add documentation for new gnatname switch --and
6594 Update the style checks section
6595 Add documentation of -gnatr
6596 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
6597 subsection the explanation how compiler checks should be disabled for
6599 Update the list of Ada 95 reserved words used by in the project language
6600 Add documentation for project qualifiers.
6601 Document that abstract projects may be extended by different projects in
6602 the same project tree.
6603 Add documentation for gnatmake switch -d
6605 * ug_words: Add -gnatyy VMS equivalence string.
6606 Add entry for -gnatr
6608 2008-05-20 Bob Duff <duff@adacore.com>
6611 (Set_Handler): Remove code from both of these that implements
6612 RM-D.15(15/2), because it causes a race condition and potential
6614 (Process_Queued_Events): Add comment explaining "exception when others
6615 => null". Add clarifying ".all", even though implicit .all is legal
6618 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6620 * s-winext.ads: Replace representation clause by pragma Pack. Gives
6621 equivalent representation, but has the advantage of allowing
6622 compilation of this file under 64 bits platforms.
6624 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
6626 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
6629 Don't define dummy implementation of convert_addresses on ppc-linux.
6631 2008-05-20 Ed Schonberg <schonberg@adacore.com>
6634 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
6635 if expression is aggregate component.
6637 2008-05-20 Robert Dewar <dewar@adacore.com>
6639 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
6640 sem_ch12.adb: Update comments. Minor reformatting.
6644 * s-unstyp.ads: Fixed some typos in comments.
6646 2008-05-20 Arnaud Charlet <charlet@adacore.com>
6648 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
6651 * g-socthi-vxworks.ads: Update to latest socket changes.
6653 * a-caldel-vms.adb: Resync with a-caldel spec.
6655 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
6658 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
6660 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
6661 for dummy types pointed to by the converted pointer types.
6663 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
6665 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
6666 of records and unions.
6667 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
6669 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
6670 Robert Dewar <dewar@adacore.com>
6672 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
6673 restrictions to the prefix of 'Old.
6674 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
6675 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
6678 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
6682 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
6683 expression to an integral type with lower precision, use NOP_EXPR
6684 directly in a couple of special cases.
6686 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
6687 Ed Schonberg <schonberg@adacore.com>
6689 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
6690 constraint expressions.
6692 2008-05-12 Tomas Bily <tbily@suse.cz>
6694 * utils2.c (known_alignment, contains_save_expr_p)
6695 (gnat_mark_addressable): Use CASE_CONVERT.
6696 * decl.c (annotate_value): Likewise.
6697 * trans.c (maybe_stabilize_reference): Likewise.
6698 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
6699 * utils.c (rest_of_record_type_compilation): Likewise.
6700 * trans.c (protect_multiple_eval, Attribute_to_gnu)
6701 (protect_multiple_eval): Likewise.
6703 2008-05-08 Andreas Schwab <schwab@suse.de>
6705 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
6706 DECL_IS_PURE to DECL_PURE_P.
6708 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
6710 * decl.c (maybe_pad_type): Add ??? comment.
6712 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
6714 * decl.c (components_to_record): Zero the alignment of the qualified
6715 union built for the variant part upon creating it.
6717 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
6719 * decl.c (maybe_pad_type): Try to get a form of the type with integral
6720 mode even if the alignment is not a factor of the original size. But
6721 make sure to create the inner field with the original size. Reorder.
6722 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
6723 record as always addressable.
6724 * utils.c (convert): Deal specially with conversions between original
6725 and packable versions of a record type.
6726 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
6727 recognizing an assignment between padded objects.
6729 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
6731 * decl.c (make_packable_type): Resize the last component to its RM size
6732 only if it is of an aggregate type.
6733 * trans.c (call_to_gnu): Fix nit in comment.
6734 (gnat_to_gnu): Likewise.
6736 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
6738 * Makefile.in: Adapt sh4-linux target.
6740 2008-04-29 Ed Schonberg <schonberg@adacore.com>
6743 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
6744 tagged type by an untagged protected or task type.
6746 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
6747 Tristan Gingold <gingold@adacore.com>
6750 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
6751 of aliased objects with an unconstrained nominal subtype.
6752 Cap the promotion to the effective alignment of the word mode.
6754 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6756 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
6757 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
6758 Use '&&' instead of ';'.
6760 2008-04-24 Olivier Hainque <hainque@adacore.com>
6762 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
6763 doesn't require signed arithmetic anymore.
6765 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
6767 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
6768 (call_to_gnu): Don't set TREE_INVARIANT.
6769 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
6771 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
6773 * s-osinte-rtems.adb: Add sigalstack function.
6774 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
6775 function. Add Alternate_Stack and Alternate_Stack_Size.
6776 Add missing process_shared field to pthread_condattr_t
6777 and change ss_low_priority to int from timespec.
6779 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
6781 * i-forbla.adb: Link against -llapack and -lblas by default
6782 instead of the private -lgnalasup.
6784 2008-04-21 Olivier Hainque <hainque@adacore.com>
6786 Access to most C builtins from Ada
6787 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
6788 (handle_pure_attribute, handle_novops_attribute,
6789 handle_nonnull_attribute, handle_sentinel_attribute,
6790 handle_noreturn_attribute, handle_malloc_attribute,
6791 handle_type_generic_attribute): New attribute handlers, from C fe.
6792 (gnat_internal_attribute_table): Map the new handlers.
6793 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
6794 (init_gigi_decls): ... here.
6795 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
6796 Move to a section dedicated to builtins processing.
6797 (build_void_list_node, builtin_type_for_size): New functions.
6798 (def_fn_type, get_nonnull_operand): Likewise.
6799 (install_builtin_elementary_type, install_builtin_function_types,
6800 install_builtin_attributes): Likewise.
6801 (fake_attribute_handler): Fake handler for attributes we don't
6803 (def_builtin_1): New function, worker for DEF_BUILTIN.
6804 (install_builtin_functions): New function.
6805 (gnat_install_builtins): Move to the builtins processing section.
6806 Now calling the newly introduced installers.
6808 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
6810 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
6811 constant objects, but not exceptions.
6812 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
6814 * utils.c (create_var_decl_1): Likewise.
6815 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
6816 the type when copying to padded object and the source is a constructor.
6818 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
6820 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
6821 alignment, reset it to zero if it would end up not being greater
6822 than that of the type.
6824 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
6826 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
6827 the padded type has a variable size.
6829 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
6831 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
6832 target pointer mechanism as soon as the size is not constant.
6834 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
6836 * gigi.h (create_var_decl_1): Declare.
6837 (create_var_decl): Turn into a macro invoking create_var_decl_1.
6838 (create_true_var_decl): Likewise.
6839 * utils.c (create_var_decl_1): Make global and reorder parameters.
6840 (create_var_decl): Delete.
6841 (create_true_var_decl): Likewise.
6843 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
6845 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
6847 * fe.h (Debug_Flag_Dot_A): Delete.
6848 * debug.adb (-gnatd.a): Update documentation.
6850 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
6852 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
6853 "not null" parameter.
6855 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
6857 * g-socket.adb: Add a message "IPv6 not supported" to the
6858 Socket_Error exception.
6860 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
6863 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
6864 the type is known instead of the underlying type.
6866 2008-04-15 Ed Schonberg <schonberg@adacore.com>
6869 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
6870 procedure for a derived type retrieve the discriminant values from
6871 the parent using the corresponding discriminant.
6873 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
6874 Gary Dismukes <dismukes@adacore.com>
6877 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
6878 which is not an entity (and hence not a package).
6879 (End_Use_Package): Ditto.
6881 2008-04-15 Ed Schonberg <schonberg@adacore.com>
6884 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
6885 protected operation that matches the signature, not only an entry, a
6886 regular subprogram or a literal.
6888 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
6890 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
6891 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
6892 if a size or alignment is specified. Do not take into account
6893 alignment promotions for the computation of the object's size.
6894 <type>: Call maybe_pad_type only if a size or alignment is specified.
6895 (maybe_pad_type): Really reuse the RM_Size of the original type if
6897 * trans.c (Attribute_to_gnu): Fix a couple of nits.
6898 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
6899 statements. Use the padded view of the type when copying between
6900 padded objects of the same underlying type.
6902 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6904 * vms_data.ads: Fix typo in constant.
6905 * gen-soccon.c: Fix typo in error string.
6906 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
6908 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
6909 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
6910 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
6911 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
6912 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
6913 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
6914 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
6915 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
6916 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
6917 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
6918 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
6919 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
6920 sinfo.ads: Fix typos in comments.
6922 2008-04-14 Robert Dewar <dewar@adacore.com>
6924 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
6925 to every non-object and change error message.
6927 2008-04-14 Robert Dewar <dewar@adacore.com>
6929 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
6930 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
6933 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
6936 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
6937 apply pragma Linker_Section on type.
6939 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
6942 * sem_prag.adb (Error_Pragma_Ref): New.
6943 (Process_Convention): Specialized message for non-local
6944 subprogram renaming. Detect the problem in homonyms as well.
6946 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
6949 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
6950 * sem_ch12.adb (Instantiate_Object): Use it.
6951 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
6952 storage pool denotes a variable as per RM 13.11(15).
6954 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
6956 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
6957 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
6959 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
6962 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
6963 line endings even on non-Unix platforms.
6965 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
6968 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
6969 renaming information.
6971 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
6974 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
6977 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6979 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
6980 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
6981 snames.ads, sprint.adb, stand.ads, stringt.ads,
6982 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
6983 switch.ads, sysdep.c, table.adb, table.ads,
6984 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
6985 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
6986 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
6987 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
6988 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
6989 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
6992 * sem_ch10.adb, sem_ch10.ads,
6993 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
6994 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
6995 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
6996 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
6997 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
6998 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
6999 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
7000 sem_warn.ads: Fix comment typos.
7002 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
7003 s-soflin.ads, s-stalib.ads, s-stausa.adb,
7004 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
7005 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
7006 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
7007 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7008 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
7009 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
7010 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
7011 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
7012 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
7013 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
7014 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
7015 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
7016 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
7017 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
7018 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7019 sem_cat.adb, sem_cat.ads: Fix comment typos.
7021 2008-04-12 Joel Sherrill <joel@oarcorp.com>
7024 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
7026 2008-04-12 Arnaud Charlet <charlet@adacore.com>
7028 * s-linux-hppa.ads: Fix syntax errors.
7030 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7032 * gnat_ugn.texi: Fix typos.
7033 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
7034 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
7035 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
7036 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
7037 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
7038 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
7039 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
7040 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
7041 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
7042 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
7043 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
7044 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
7045 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
7046 s-osinte-darwin.ads, s-osinte-freebsd.ads,
7047 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
7048 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
7049 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
7050 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
7051 s-parame-hpux.ads, s-parame-vms-alpha.ads,
7052 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
7053 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
7054 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
7055 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
7056 s-rident.ads: Fix comment typos.
7058 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
7061 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
7062 environment if generic instance is a top-level one.
7064 2008-04-09 Doug Rupp <rupp@adacore.com>
7066 * decl.c (validate_size): Set minimum size for fat pointers same as
7067 access types. Code clean ups.
7069 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
7070 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
7072 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
7074 * s-crtl.ads (malloc32) New function, alias for malloc
7075 (realloc32) New function, alias for realloc
7077 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
7079 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
7080 allocator size is 32 and default pointer size is 64.
7081 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
7082 lhs type if smaller, whatever the modes.
7084 * gigi.h (malloc32_decl): New macro definition
7086 * utils.c (init_gigi_decls): New malloc32_decl
7087 Various code clean ups.
7089 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7090 Task_Address vice System.Address.
7092 * s-taspri-vms.ads: Import System.Aux_DEC
7093 (Task_Address): New subtype of System.Aux_DEC.Short_Address
7094 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
7096 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
7097 Task_Address vice System.Address.
7099 * s-inmaop-vms.adb: Import System.Task_Primitives
7100 (To_Address): Unchecked convert to Task_Address vice System.Address
7102 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
7104 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
7105 (To_Address) Unchecked convert to Task_Address vice System.Address
7107 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
7109 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
7111 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7113 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
7114 (fdesc_type_node): Define.
7115 (null_fdesc_node): Likewise.
7116 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
7117 uses descriptors for vtables and the type comes from a dispatch table,
7118 return the descriptor type.
7119 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
7120 uses descriptors for vtables and the type comes from a dispatch table,
7121 build a descriptor in the static case and copy the existing one in the
7123 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
7124 the type is a pointer-to-subprogram coming from a dispatch table,
7125 return the null descriptor.
7126 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
7127 vtables, the source type is the descriptor type and the target type
7128 is a pointer type, first build the pointer.
7129 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
7130 build the descriptor type and the null descriptor.
7132 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7134 * decl.c (prepend_attributes): Fix typo.
7135 * trans.c (Pragma_to_gnu): Likewise.
7136 * utils.c (gnat_genericize): Likewise.
7138 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7139 Richard Kenner <kenner@adacore.com>
7141 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
7142 * decl.c (gnat_to_gnu_entity): Adjust for above change.
7143 <E_Record_Type>: Try to get a better form of the component for
7144 packing, even if it has an integral mode.
7145 <E_Record_Subtype>: Likewise.
7146 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
7147 exception suppressing the final conversion between record types.
7149 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7151 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
7152 alignment for space, promote the alignment of non-scalar variables with
7153 no size and alignment.
7154 * gigi.h (gnat_types_compatible_p): Declare.
7155 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
7156 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
7157 * utils.c (gnat_types_compatible_p) : New predicate.
7158 (convert): Use it throughout to test for cases where a mere view
7159 conversion is sufficient.
7160 * utils2.c (build_binary_op): Minor tweaks.
7161 (build_unary_op): Likewise.
7163 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7165 * decl.c (adjust_packed): Expand comment.
7167 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7169 * s-tasuti.ads: Use Task_Address instead of System.Address.
7171 * makeutl.adb (Path_Or_File_Name): New function
7173 * nlists.ads, itypes.ads: Update comments.
7175 * s-crtl.ads (malloc32, realloc32): New functions.
7177 * s-auxdec.ads (Short_Address_Size): New constant.
7179 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
7181 * s-ststop.ads, s-ststop.adb: New file.
7183 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
7186 2008-04-08 Pascal Obry <obry@adacore.com>
7188 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
7189 (Stop_Bits_Number): New type.
7190 (Parity_Check): Likewise.
7191 (Set): Add parameter to set the number of stop bits and
7192 the parity. Parameter timeout is now a duration instead
7195 * g-sercom-linux.adb:
7196 Implement the stop bits and parity support for GNU/Linux.
7197 Fix handling of timeout, it must be given in tenth of seconds.
7199 * g-sercom-mingw.adb:
7200 Implement the stop bits and parity support for Windows.
7201 Use new s-win32.ads unit instead of declaring Win32 services
7202 directly into this body.
7203 Update handling of timeout as now a duration.
7205 * s-win32.ads, s-winext.ads: New files.
7207 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
7208 Arnaud Charlet <charlet@adacore.com>
7210 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
7212 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
7213 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
7215 * s-osinte-lynxos-3.ads,
7216 (Alternate_Stack): Remove when not needed. Simplify declaration
7218 (Alternate_Stack_Size): New constant.
7220 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
7221 'Unrestricted_Access.
7223 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
7224 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
7225 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
7226 s-osinte-solaris.ads, s-osinte-vms.ads
7227 (SA_ONSTACK): New constant.
7228 (stack_t): New record type.
7229 (sigaltstack): New imported function.
7230 (Alternate_Stack): New imported variable.
7231 (Alternate_Stack_Size): New constant.
7233 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
7235 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
7236 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
7237 s-taspri-vms.ads (Task_Address): New subtype of System.Address
7238 (Task_Address_Size): New constant size of System.Address
7239 (Alternate_Stack_Size): New constant.
7241 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
7242 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
7243 Establish the alternate stack if the platform makes use of n alternate
7244 signal stack for stack overflows.
7245 (Create_Task): Take into account the alternate stack in the stack size.
7246 (Initialize): Save the address of the alternate stack into the ATCB for
7247 the environment task.
7248 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
7250 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
7252 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
7254 * s-intman-posix.adb:
7255 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
7256 alternate signal stack for stack overflows.
7258 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
7259 x86-64, adjust the saved value of the stack pointer if the signal was
7260 raised by a stack checking probe.
7261 (HP-UX section): Use global __gnat_alternate_stack as signal handler
7262 stack and only for SIGSEGV.
7263 (Linux section): Likewise on x86 and x86-64.
7265 (__gnat_map_signal): Now static.
7266 (__gnat_error_handler): Not static any more.
7267 (__gnat_adjust_context_for_raise): New function. Signal context
7268 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
7269 propagation circuitry.
7270 (__gnat_error_handler): Second argument of a sigaction handler is a
7271 pointer, not an int, and is unused.
7272 Adjust signal context before mapping to exception.
7273 Install signal handlers for LynxOS case.
7275 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
7276 (Task_Id): Set size to Task_Address_Size
7277 (To_Task_id): Unchecked convert from Task_Address vice System.Address
7278 (To_Address): Unchecked convert to Task_Address vice System.Address
7280 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
7281 address into the ATCB if the platform makes use of an alternate signal
7282 stack for stack overflows.
7283 (Free_Task): Add call to Finalize_Attributes_Link.
7284 Add argument Relative_Deadline to pass the value specified for
7285 the task. This is not yet used for any target.
7287 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
7288 the value specified for the task.
7290 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7292 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
7293 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
7294 s-vxwext-rtp.adb): New files.
7296 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
7297 Minor updates to accomodate changes above.
7299 2008-04-08 Pascal Obry <obry@adacore.com>
7301 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
7302 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
7303 Use new s-win32.ads unit instead of declaration
7304 from s-osinte-mingw.ads.
7306 * s-osinte-mingw.ads:
7307 Move all non tasking based interface to s-win32.ads.
7309 * s-osprim-mingw.adb:
7310 Remove duplicated declarations and use s-win32.ads
7313 2008-04-08 Vincent Celier <celier@adacore.com>
7314 Arnaud Charlet <charlet@adacore.com>
7316 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
7317 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
7318 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
7319 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
7320 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
7322 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
7323 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
7324 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
7325 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
7326 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
7327 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
7328 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
7329 mlib-tgt-specific-mingw.adb: New names.
7332 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
7334 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
7335 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
7336 Minor updates for VMS
7338 * gnatbl.c: Removed.
7340 2008-04-08 Thomas Quinot <quinot@adacore.com>
7342 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
7343 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
7344 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
7345 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
7346 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
7347 ASCII.NUL throughout.
7349 2008-04-08 Arnaud Charlet <charlet@adacore.com>
7350 Matthew Heaney <heaney@adacore.com>
7352 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
7355 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
7356 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
7357 to convention for non-RM specs.
7358 Add descriptive header, and documented each operation
7359 document each operation
7361 2008-04-08 Robert Dewar <dewar@adacore.com>
7362 Bob Duff <duff@adacore.com>
7363 Gary Dismukes <dismukes@adacore.com>
7364 Ed Schonberg <schonberg@adacore.com>
7366 * alloc.ads: Add entries for Obsolescent_Warnings table
7368 * einfo.ads, einfo.adb: Minor reformatting.
7369 (Is_Discriminal): New subprogram.
7370 (Is_Prival): New subprogram.
7371 (Is_Protected_Component): New subprogram.
7372 (Is_Protected_Private): Removed.
7373 (Object_Ref, Set_Object_Ref): Removed.
7374 (Prival, Set_Prival): Change assertion.
7375 (Privals_Chain, Set_Privals_Chain): Removed.
7376 (Prival_Link, Set_Prival_Link): New subprogram.
7377 (Protected_Operation, Set_Protected_Operation): Removed.
7378 (Protection_Object, Set_Protection_Object): New subprogram.
7379 (Write_Field17_Name): Remove case for Object_Ref.
7380 (Write_Field20_Name): Add case for Prival_Link.
7381 (Write_Field22_Name): Remove case for Protected_Operation,
7383 Add case for Protection_Object.
7384 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
7386 (Overlays_Constant): New flag
7387 (Is_Constant_Object): New predicate
7388 (Is_Standard_Character_Type): New predicate
7389 (Optimize_Alignment_Space): New flag
7390 (Optimize_Alignment_Time): New flag
7391 (Has_Postconditions): New flag
7392 (Obsolescent_Warrning): Field removed
7393 (Spec_PPC_List): New field
7394 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
7395 subprograms to get and set the relative deadline associated to a task.
7397 * exp_attr.adb (May_Be_External_Call): Account for the case where the
7398 Access attribute is part of a named parameter association.
7399 (Expand_Access_To_Protected_Op): Test for the attribute occurring
7400 within an init proc and use that directly as the scope rather than
7401 traversing up to the protected operation's enclosing scope. Only apply
7402 assertion on Is_Open_Scopes in the case the scope traversal is done.
7403 For the init proc case use the address of the first formal (_init) as
7404 the protected object reference.
7405 Implement Invalid_Value attribute
7406 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
7407 contents of the dispatch table there is no need to duplicate the
7408 itypes associated with record types (i.e. the implicit full view
7410 Implement Enum_Val attribute
7411 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
7412 within _Postconditions procedure
7413 (Expand_N_Attribute_Reference, case Result): Implement new attribute
7415 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
7416 a return statement calls a function that is not available in
7417 configurable runtime.
7418 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
7419 (Expand_Non_Function_Return): Generate call to _Postconditions proc
7420 (Expand_Simple_Function_Return): Ditto
7422 * frontend.adb: Add call to Sem_Aux.Initialize
7424 * sem_aux.ads, sem_aux.adb: New file.
7426 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
7427 Add new Pragma_Relative_Deadline.
7428 Add support for pragmas Check and Check_Policy
7430 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
7431 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
7432 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
7433 missing check because they are not allowed in CPP tagged types.
7434 Add Sure parameter to Note_Possible_Modification calls
7435 Add implementation of Invalid_Value attribute
7436 Implement new attribute Has_Tagged_Values
7437 Implement Enum_Val attribute
7438 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
7439 generated attributes.
7440 (Analyze_Attribute, case Result): If prefix of the attribute is
7441 overloaded, it always resolves to the enclosing function.
7442 (Analyze_Attribute, case Result): Properly deal with analysis when
7443 Postconditions are not active.
7444 (Resolve_Attribute, case Result): Properly deal with appearence during
7445 preanalysis in spec.
7446 Add processing for attribute Result
7448 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
7450 (Analyze_Subprogram_Body): Install private_with_clauses when the body
7452 (Check_Inline_Pragma): recognize an inline pragma that appears within
7453 the subprogram body to which it applies.
7454 (Analyze_Function_Return): Check that type of the expression of a return
7455 statement in a function with a class-wide result is not declared at a
7456 deeper level than the function.
7457 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
7458 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
7459 user- defined operators.
7460 (Install_Formals): Moved to spec to allow use from Sem_Prag for
7461 analysis of precondition/postcondition pragmas.
7462 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
7463 Last_Formal, along with lots of comments on what this is about
7464 (Analyze_Subprogram_Body): Fix case where we move entities from the
7465 spec to the body when there are no body entities (now possible with
7466 precondition and postcondition pragmas).
7467 (Process_PPCs): New procedure
7468 (Analyze_Subprogram_Body): Add call to Process_PPCs
7470 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
7472 (Pop_Scope): Restore Check_Policy_List on scope exit
7473 (Push_Scope): Save Check_Policy_List on scope entry
7474 Change name In_Default_Expression => In_Spec_Expression
7475 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7476 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
7477 (Analyze_Object_Renaming): Allow 'Reference as object
7478 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
7479 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
7480 of restriction identifier.
7481 Add Sure parameter to Note_Possible_Modication calls
7483 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
7484 Don't check for primitive operations when calling Rep_Item_Too_Late.
7485 (Process_Import_Or_Interface): Do not place flag on formal
7487 (Analyze_Pragma, case Export): If the entity is a deferred constant,
7488 propagate information to full view, which is the one elaborated by the
7490 (Make_Inline): the pragma is effective if it applies to an internally
7491 generated subprogram declaration for a body that carries the pragma.
7492 (Analyze_Pragma, case Optimize_Alignment): Set new flag
7493 Optimize_Alignment_Local.
7494 (Analyze_PPC_In_Decl_Part): New procedure
7495 (Get_Pragma_Arg): Moved to outer level
7496 (Check_Precondition_Postcondition): Change to allow new visibility
7497 rules for package spec
7498 (Analyze_Pragma, case Check_Policy): Change placement rules to be
7499 same as pragma Suppress/Unsuppress.
7500 Change name In_Default_Expression => In_Spec_Expression
7501 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7502 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
7503 (Check_Precondition_Postcondition): Do proper visibility preanalysis
7504 for the case of these pragmas appearing in the spec.
7505 (Check_Enabled): New function
7506 (Initialize): New procedure
7507 (Tree_Read): New procedure
7508 (Tree_Write): New procedure
7509 (Check_Precondition_Postcondition): New procedure
7510 Implement pragmas Check and Check_Policy
7511 Merge Assert processing with Check
7513 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
7514 New warning flag -gnatw.e
7516 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
7517 returning whether a task (or main procedure) has a pragma
7519 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
7520 (or main procedure) has a pragma Relative_Deadline.
7521 Add Next_Pragma field to N_Pragma node
7522 (PPC_Enabled): New flag
7523 (Next_Pragma): Now used for Pre/Postcondition processing
7525 * snames.h, snames.ads, snames.adb: New standard name
7527 Add entry for 'Invalid_Value attribute
7528 Add entry for new attribute Has_Tagged_Values
7529 Add entry for Enum_Val attribute
7530 Add new standard names Aggregate, Configuration and Library.
7533 Add Pragma_Precondition
7534 Add Pragma_Postcondition
7535 Add Attribute_Result
7536 New standard name Archive_Builder_Append_Option
7537 (Preset_Names): Add _relative_deadline and relative_deadline definitions
7538 There was also a missing non_preemptive_within_priorities.
7539 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
7541 Add support for pragmas Check and Check_Policy
7543 * tree_gen.adb: Call Sem_Aux.Tree_Write
7545 * tree_in.adb: Call Sem_Aux.Tree_Read
7547 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
7550 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
7553 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
7554 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
7556 (Expand_Pragma_Check): New procedure
7558 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
7561 * sinfo.adb (PPC_Enabled): New flag
7563 2008-04-08 Robert Dewar <dewar@adacore.com>
7564 Gary Dismukes <dismukes@adacore.com>
7565 Javier Miranda <miranda@adacore.com>
7566 Ed Schonberg <schonberg@adacore.com>
7568 * fe.h: Remove global Optimize_Alignment flag, no longer used
7570 * layout.adb: Test Optimize_Alignment flags rather than global switch
7572 * lib.ads, lib.adb: New OA_Setting field in library record
7574 * lib-load.adb: New OA_Setting field in library record
7576 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
7577 units mentioned in limited_with_ clauses in the ali file, with an
7579 New Ox fields in U line
7581 * opt.adb: New flag Optimize_Alignment_Local
7582 (Check_Policy_List[_Config]): New flags
7584 * opt.ads (Invalid_Value_Used): New flag
7585 New switch Optimize_Alignment_Local
7586 (Warn_On_Parameter_Order): New flag
7587 (Check_Policy_List[_Config]): New flags
7589 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
7590 limited_with clauses.
7591 New data structures for Optimize_Alignment
7593 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
7595 (Check_Consistent_Optimize_Alignment): Rework for new structure
7596 (Check_Consistent_Restrictions): Fix incorrect error message
7598 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
7599 created class-wide type (to the Parent field of the specific type).
7600 (Install_Siblings): Handle properly private_with_clauses on subprogram
7601 bodies and on generic units.
7602 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
7603 illegal limited_with_clause that names a non-existent package.
7604 (Check_Body_Required): Determine whether a unit named a limited_with
7605 clause needs a body.
7606 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
7607 Capture Optimize_Alignment settings to set new OA_Setting field in
7609 (Build_Limited_Views): Include task and protected type declarations.
7611 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
7612 case of a possible constant redeclaration where the current object is
7613 an entry index constant.
7614 (Analyze_Object_Declaration): Generate an error in case of CPP
7615 class-wide object initialization.
7616 (Analyze_Object_Declaration): Add extra information on warnings for
7617 declaration of unconstrained objects.
7618 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
7619 conflicts with the setting of Stored_Constraint in the case where the
7620 access type entity has already been created as an E_Incomplete_Type due
7621 to a limited with clause.
7622 Use new Is_Standard_Character_Type predicate
7623 (Analyze_Object_Declaration): Apply access_constant check only after
7624 expression has been resolved, given that it may be overloaded with
7625 several access types.
7626 (Constant_Redeclaration): Additional legality checks for deferred
7627 constant declarations tha involve anonymous access types and/or null
7628 exclusion indicators.
7629 (Analyze_Type_Declaration): Set Optimize_Alignment flags
7630 (Analyze_Subtype_Declaration): Ditto
7631 (Analyze_Object_Declaration): Ditto
7632 (Analyze_Object_Declaration): Don't count tasks in generics
7633 Change name In_Default_Expression => In_Spec_Expression
7634 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7635 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
7636 (Process_Discriminants): Additional check for illegal use of default
7637 expressions in access discriminant specifications in a type that is not
7639 (Check_Abstract_Overriding): If an inherited function dispaches on an
7640 access result, it must be overridden, even if the type is a null
7642 (Derive_Subprogram): The formals of the derived subprogram have the
7643 names and defaults of the parent subprogram, even if the type is
7644 obtained from the actual subprogram.
7645 (Derive_Subprogram): In the presence of interfaces, a formal of an
7646 inherited operation has the derived type not only if it descends from
7647 the type of the formal of the parent operation, but also if it
7648 implements it. This is relevant for the renamings created for the
7649 primitive operations of the actual for a formal derived type.
7650 (Is_Progenitor): New predicate, to determine whether the type of a
7651 formal in the parent operation must be replaced by the derived type.
7653 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
7654 predicate recursive to handle components that have a user-defined
7655 Initialize procedure. Handle controlled derived types whose ancestor
7656 has a user-defined Initialize procedured.
7657 (Note_Possible_Modification): Add Sure parameter, generate warning if
7658 sure modification of constant
7659 Use new Is_Standard_Character_Type predicate
7660 (Find_Parameter_Type): when determining whether a protected operation
7661 implements an interface operation, retrieve the type of the formal from
7662 the entity when the formal is an access parameter or an
7663 anonymous-access-to-subprogram.
7664 Move Copy_Parameter_List to sem_util, for use when building stubbed
7666 (Has_Access_Values): Tagged types now return False
7667 (Within_HSS_Or_If): New procedure
7668 (Set_Optimize_Alignment_Flags): New procedure
7669 Change name In_Default_Expression => In_Spec_Expression
7670 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
7671 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
7673 2008-04-08 Tristan Gingold <gingold@adacore.com>
7675 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
7677 2008-04-08 Tristan Gingold <gingold@adacore.com>
7681 * cuintp.c: Fix 16 bits issue for AVR.
7682 On AVR, integer is 16 bits, so it can't be used to do math with
7684 So use long_integer instead.
7686 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
7688 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
7689 System.OS_Primitives.
7690 Change type of various constants, parameters and local variables from
7691 Time to representation type OS_Time.
7692 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
7693 Remove the declaration of constant Mili_F from several routines. New
7694 body for internal package Conversions_Operations.
7695 (Time_Of): Add default parameters for several formals.
7697 * a-caldel.adb: Minor reformatting
7699 * a-calend.ads, a-calend.adb: New body for internal package
7700 Conversions_Operations.
7701 (Time_Of): Add default parameters for several formals.
7703 * Makefile.rtl: Add a-ststop
7704 Add Ada.Calendar.Conversions to the list of runtime files.
7707 * a-calcon.adb, a-calcon.ads: New files.
7709 2008-04-08 Jose Ruiz <ruiz@adacore.com>
7710 Tristan Gingold <gingold@adacore.com>
7712 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
7713 (Install_Restricted_Handlers): New procedure
7714 which is a simplified version of Install_Handlers that does not store
7715 previously installed.
7717 * s-interr-vxworks.adb: Fix ACATS cxc3001
7718 On VxWorks interrupts can't be detached.
7719 (Install_Restricted_Handlers): New procedure.
7721 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
7724 2008-04-08 Olivier Hainque <hainque@adacore.com>
7726 * s-intman-vxworks.ads, s-intman-vxworks.adb
7727 (Map_And_Raise_Exception): Remove. Was an import of only part of the
7728 required services already implemented elsewhere.
7729 (Notify_Exception): Delete body, import __gnat_error_handler instead.
7730 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
7731 argument passed to the handler, which we need for ZCX propagation
7734 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
7736 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
7738 * g-timsta.adb, g-timsta.ads: New files.
7740 2008-04-08 Robert Dewar <dewar@adacore.com>
7742 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
7743 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
7744 (Raise_Exception_Always): Fix documentation accordingly
7746 2008-04-08 Robert Dewar <dewar@adacore.com>
7748 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
7751 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
7754 2008-04-08 Javier Miranda <miranda@adacore.com>
7755 Robert Dewar <dewar@adacore.com>
7756 Ed Schonberg <schonberg@adacore.com>
7758 * a-tags.adb (Register_Interface_Offset): New subprogram.
7759 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
7760 (To_Predef_Prims_Table_Ptr): Removed.
7761 (Acc_Size): Removed.
7762 (To_Acc_Size): Removed.
7763 (Parent_Size): Modified to the call the subprogram returning the size of
7764 the parent by means of the new TSD component Size_Func.
7766 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
7767 (DT_Offset_To_Top_Offset): New constant value that is used to generate
7768 code referencing the Offset_To_Top component of the dispatch table's
7770 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
7771 use of 'address to initialize dispatch table slots.
7772 (Size_Func): New component of the TSD. Used by the run-time to call the
7773 size primitive of the tagged type.
7775 * checks.adb (Apply_Access_Check): Avoid check when accessing the
7776 Offset_To_Top component of a dispatch table.
7777 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
7778 deferred constant declaration. do not add a null expression, to prevent
7779 spurious errors when full declaration is analyzed.
7780 (Apply_Discriminant_Check): If both discriminant constraints share a
7781 node which is not static but has no side effects, do not generate a
7782 check for that discriminant.
7783 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
7784 subexpr, since the prefix of an attribute is a name.
7786 * checks.ads: Fix nit in comment.
7788 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
7789 and body of predefined primitives in case of CPP tagged type
7791 (Freeze_Type): Deal properly with no storage pool case
7792 (Make_Predefined_Primitive_Specs): Generate specification of abstract
7793 primitive Deep_Adjust if a nonlimited interface is derived from a
7795 (Build_Dcheck_Functions): Create discriminant-checking functions only
7796 for variants that have some component(s).
7797 (Build_Slice_Assignment): In expanded code for slice assignment, handle
7798 properly the case where the slice bounds extend to the last value of the
7799 underlying representation.
7800 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
7801 (Is_Variable_Size_Record): An array component has a static size if
7802 index bounds are enumeration literals.
7804 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
7805 an external tag has been specified for the type.
7806 (Building_Static_DT): Add missing support for private types.
7807 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
7808 to the entity associated with the parent of Typ. This is done to
7809 avoid wrong access when the parent is a private type.
7810 (Expand_Interface_Conversion): Improve error message when the
7811 configurable runtime has no support for dynamic interface conversion.
7812 (Expand_Interface_Thunk): Add missing support to interface types in
7813 configurable runtime.
7814 (Expand_Dispatching_Call): remove obsolete code.
7815 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
7816 ensure that all subtypes and aggregates associated with dispatch
7817 tables have the attribute Is_Dispatch_Table_Entity set to true.
7818 (Register_Primitive): Rename one variable to improve code reading.
7819 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
7820 of the pointer to the 'size primitive in the TSD.
7822 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
7823 (RE_Offset_To_Top_Ptr): New entity.
7824 (RE_Register_Interface_Offset): New entity.
7825 (RE_Set_Dynamic_Offset_To_Top): New entity.
7826 (RE_Set_Offset_To_Top): Removed entity.
7827 (RE_Prim_Ptr): New entity
7828 (RE_Size_Func): New entity
7829 (RE_Size_Ptr): New entity
7830 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
7831 (Ada_Dispatching_Child): Define this new subrange.
7832 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
7833 RE_Time_Span, and RE_Time_Span_Zero).
7834 (RE_Unit_Table): Add new required run-time calls
7836 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
7839 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
7840 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
7841 initializes the Offset_To_Top component of a dispatch table.
7842 (Build_Predef_Prims): Removed.
7843 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
7845 (Build_Set_Size_Function): New subprogram.
7847 * exp_ch13.adb: Do not generate storage variable for storage_size zero
7848 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
7850 2008-04-08 Robert Dewar <dewar@adacore.com>
7852 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
7853 computing Fore when Exp > 0
7855 2008-04-08 Robert Dewar <dewar@adacore.com>
7857 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
7859 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
7860 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
7862 * fmap.adb: Remove Big_String declarations (now in Types)
7863 (No_Mapping_File): New Boolean global variable
7864 (Initialize): When mapping file cannot be read, set No_Mapping_File to
7866 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
7867 tables were empty before adding entries, open the mapping file
7868 with Truncate = True, instead of delete/re-create.
7870 * fname-sf.adb: Remove Big_String declarations (now in Types)
7872 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
7873 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
7876 * table.ads: Add for Table_Ptr'Storage_Size use 0
7878 * types.ads: Add Big_String declarations
7879 Add Size_Clause of zero for big pointer types
7881 2008-04-08 Vincent Celier <celier@adacore.com>
7883 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
7884 (Usage): Add line for switch --subdirs=
7885 Add new switch -eL, to follow symbolic links when processing project
7888 * gnatcmd.adb: Process switches -eL and --subdirs=
7889 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
7890 Program_Name to get proper tool names when AAMP_On_Target is set.
7891 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
7892 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
7893 Osint.Program_Name).
7895 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
7896 (Usage): Add lines for switches -eL and --subdirs=
7898 * makeusg.adb: Add line for switch --subdirs=
7901 (Source_Data): New Boolean component Compiled, defaulted to True
7902 (Empty_File_Name: New global variable in private part, initialized in
7903 procedure Initialize.
7904 (Subdirs_Option): New constant string
7905 (Subdirs): New String_Ptr global variable
7906 (Language_Config): New component Include_Compatible_Languages
7907 (Project_Qualifier): New type for project qualifiers
7908 (Project_Data): New component Qualifier
7909 (Project_Configuration): New component Archive_Builder_Append_Option
7911 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
7912 another imported project indicate the name of this imported project.
7913 (Check_File): When a unit is in two project files, indicate the project
7914 names and the paths of the source files for each project.
7915 (Add_Source): Set Compiled to False if compiler driver is empty. Only
7916 set object, dependency and switches file names if Compiled is True.
7917 (Process_Compiler): Allow the empty string for value of attribute Driver
7918 (Get_Directories): When Subdirs is not null and Object_Dir is not
7919 specified, locate and create if necessary the actual object dir.
7920 (Locate_Directory): When Subdirs is not empty and Create is not the
7921 empty string, locate and create if necessary the actual directory
7922 as a subdirectory of directory Name.
7923 (Check_Library_Attributes.Check_Library): Allow a project where the only
7924 "sources" are header files of file based languages to be imported by
7925 library projects, in multi-language mode (gprbuild).
7926 (Check_Library_Attributes.Check_Library): In multi-language mode
7927 (gprbuild), allow a library project to import a project with no
7928 sources, even when this is not declared explicitly.
7929 (Check_If_Externally_Built): A virtual project extending an externally
7930 built project is also externally built.
7931 (Check_Library_Attributes): For a virtual project extending a library
7932 project, inherit the library directory.
7933 (Process_Project_Level_Array_Attributes): Process new attribute
7934 Inherit_Source_Path.
7935 For projects with specified qualifiers "standard", "library" or
7936 "abstract", check that the project conforms to the qualifier.
7937 (Process_Project_Level_Simple_Attributes): Process new attribute
7938 Archive_Builder_Append_Option.
7940 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
7941 (Normalize_Compiler_Switches): Only keep compiler switches that are
7942 passed to gnat1 by the gcc driver and that are stored in the ALI file
7944 Do not take into account switc -save-temps
7946 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
7947 gprmake is called with -eL.
7948 (Scan_Arg): Recognize switch -eL
7949 (Usage): Add line for switch -eL
7951 * prj.adb (Initialize): Initialize Empty_File_Name
7952 (Project_Empty): New component Qualifier
7954 * prj-attr.ads, prj-attr.adb: New project level attribute
7955 Inherit_Source_Path.
7956 New project level attribute Archive_Builder_Append_Option
7958 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
7960 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
7961 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
7962 upward compatibility.
7964 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
7965 each Trying ..." on different lines.
7966 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
7967 is "configuration" when not in configuration. Fail when in configuration
7968 when a specified qualifier is other than "configuration".
7970 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
7971 full associative array together.
7972 (Recursive_Process): Put the project qualifier in the project data
7974 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
7975 (Set_Project_Qualifier_Of): New procedure
7977 2008-04-08 Robert Dewar <dewar@adacore.com>
7979 * errout.ads: Update comments for new handling of info: messages
7981 * erroutc.adb (Matches): New procedure
7982 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
7983 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
7984 info messages as well as style messages.
7986 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
7988 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
7990 (Check_A_Call): Special "info: " warnings now have ? in the text
7991 (Elab_Warning): Use info message in static case
7993 2008-04-08 Ed Schonberg <schonberg@adacore.com>
7995 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
7996 whether an array aggregate with static bounds and scalar components
7997 should be expanded into a static constant.
7999 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8000 Ed Schonberg <schonberg@adacore.com>
8001 Robert Dewar <dewar@adacore.com>
8003 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
8004 Has_Stream_Attribute_ Definition when checking for available stream
8005 attributes on parameters of a limited type in Ada 2005. Necessary for
8006 proper recognition of visible stream attribute clauses.
8007 (Has_Stream_Attribute_Definition): If the type is derived from a
8008 private type, then use the derived type's underlying type for checking
8009 whether it has stream attributes.
8010 (Validate_Object_Declaration): The check for a user-defined Initialize
8011 procedure applies also to types with controlled components or a
8012 controlled ancestor.
8013 Reject an object declaration in a preelaborated unit if the type is a
8014 controlled type with an overriding Initialize procedure.
8015 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
8016 checking when the parent of a dereference is a selected component and
8017 the name has not been analyzed.
8019 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
8020 prefixes that are invalid explicit dereferences of remote
8021 access-to-class-wide values, first checking whether the selected
8022 component is a prefixed form of call to a tagged operation.
8023 (Analyze_Call): Remove code that issues an error for limited function
8024 calls in illegal contexts, as we now support all of the contexts that
8025 were forbidden here.
8026 Allow a function call that returns a task.and appears as the
8027 prefix of a selected component.
8028 (Analyze_Reference): Give error message if we try to make a 'Reference
8029 for an object that is atomic/aliased without its type having the
8030 corresponding attribute.
8031 (Analyze_Call): Remove condition checking for attributes to allow
8032 calls to functions with inherently limited results as prefixes of
8033 attributes. Remove related comment about Class attributes.
8034 (Analyze_Selected_Component): If the prefix is a remote type, check
8035 whether this is a prefixed call before reporting an error.
8036 (Complete_Object_Operation): If the controlling formal is an access to
8037 variable reject an actual that is a constant or an access to one.
8038 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8039 primitive operations from base type.
8041 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
8043 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8044 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
8045 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
8046 (Expand_N_Slice): Test for prefix that is a build-in-place function call
8047 and call Make_Build_In_Place_Call_In_Anonymous_Context.
8048 (Analyze_Call): Remove code that issues an error for limited function
8049 calls in illegal contexts, as we now support all of the contexts that
8050 were forbidden here.
8051 New calling sequence for Get_Simple_Init_Val
8052 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
8053 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
8055 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8056 Ed Schonberg <schonberg@adacore.com>
8057 Robert Dewar <dewar@adacore.com>
8059 * exp_ch2.adb: Minor reformatting.
8060 (Expand_Entry_Index_Parameter): Set the type of the identifier.
8061 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
8062 (Expand_Protected_Component): New routine.
8063 (Expand_Protected_Private): Removed.
8064 Add Sure parameter to Note_Possible_Modification calls
8066 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
8067 generated subprogram declaration must inherit the overriding indicator
8068 from the instantiation node.
8069 (Validate_Access_Type_Instance): If the designated type of the actual is
8070 a limited view, use the available view in all cases, not only if the
8071 type is an incomplete type.
8072 (Instantiate_Object): Actual is illegal if the formal is null-excluding
8073 and the actual subtype does not exclude null.
8074 (Process_Default): Handle properly abstract formal subprograms.
8075 (Check_Formal_Package_Instance): Handle properly defaulted formal
8076 subprograms in a partially parameterized formal package.
8077 Add Sure parameter to Note_Possible_Modification calls
8078 (Validate_Derived_Type_Instance): if the formal is non-limited, the
8079 actual cannot be limited.
8080 (Collect_Previous_Instances): Generate instance bodies for subprograms
8083 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
8085 Add Sure parameter to Note_Possible_Modification calls
8086 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
8087 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
8088 constant overlaid by variable and issue warning.
8089 Use new Is_Standard_Character_Type predicate
8090 (Analyze_Record_Representation_Clause): Check that the specified
8091 Last_Bit is not less than First_Bit - 1.
8092 (Analyze_Attribute_Definition_Clause, case Address): Check for
8093 self-referential address clause
8095 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
8096 detection mechanism when the lhs is a prival.
8097 (Analyze_Assignment): Call Check_Unprotected_Access to detect
8098 assignment of a pointer to protected data, to an object declared
8099 outside of the protected object.
8100 (Analyze_Loop_Statement): Check for unreachable code after loop
8101 Add Sure parameter to Note_Possible_Modication calls
8102 Protect analysis from previous syntax error such as a scope mismatch
8104 (Analyze_Assignment_Statement): The assignment is illegal if the
8105 left-hand is an interface.
8107 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
8108 violation of restriction No_Implicit_Conditionals
8109 Add Sure parameter to Note_Possible_Modication calls
8110 Use new Is_Standard_Character_Type predicate
8111 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
8112 call as operator. Fixes problems (e.g. validity checking) which
8113 come from the result looking as though it does not come from source).
8114 (Resolve_Call): Check case of name in named parameter if style checks
8116 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
8117 from the checking that such calls should not occur from an entry body.
8118 (Resolve_Call): If the return type of an Inline_Always function
8119 requires the secondary stack, create a transient scope for the call
8120 if the body of the function is not available for inlining.
8121 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
8122 that are actuals for in-out formals.
8123 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
8124 primitive operations from base type.
8125 (Analyze_Selected_Component): If the context is a call to a protected
8126 operation the parent may be an indexed component prior to expansion.
8127 (Resolve_Actuals): If an actual is of a protected subtype, use its
8128 base type to determine whether a conversion to the corresponding record
8130 (Resolve_Short_Circuit): Handle pragma Check
8132 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
8133 Use new Is_Standard_Character_Type predicate
8134 (Eval_Relational_Op): Catch more cases of string comparison
8136 2008-04-08 Robert Dewar <dewar@adacore.com>
8137 Gary Dismukes <dismukes@adacore.com>
8139 * s-rident.ads: Add No_Default_Initialization restriction
8142 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
8143 (Set_TSS): Handle No_Default_Initialization case
8145 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
8146 No_Default_Initialization
8147 (Expand_N_Subprogram_Body): Remove redundant initialization of out
8148 parameters when Normalize_Scalars is active.
8149 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
8150 Fix casing error in formal parameter name in call
8151 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
8152 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8153 dispatching call on VM targets.
8155 2008-04-08 Gary Dismukes <dismukes@adacore.com>
8156 Thomas Quinot <quinot@adacore.com>
8158 * exp_ch7.adb (Find_Final_List): Change the test for generating a
8159 selected component from an access type's Associated_Final_Chain to
8160 check for the presence of that field, rather than assuming it exists
8161 for all named access types.
8162 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
8163 procedure to call at the end of the generated cleanup procedure.
8164 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
8165 and an At_End_Proc already exists in the handled sequence of statements
8166 for which cleanup actions are being expanded, the original cleanup
8167 action must be preserved.
8169 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8170 Ed Schonberg <schonberg@adacore.com>
8171 Robert Dewar <dewar@adacore.com>
8172 Gary Dismukes <dismukes@adacore.com>
8174 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
8175 Build_Unprotected_Subprogram_Body): Generate debug info for
8176 declarations related to the handling of private data in task and
8178 (Debug_Private_Data_Declarations): New subprogram.
8179 (Install_Private_Data_Declarations): Remove all debug info flagging.
8180 This is now done by Debug_Private_Data_Declarations at the correct
8182 (Build_Simple_Entry_Call): If the task name is a function call, expand
8183 the prefix into an object declaration, and make the surrounding block a
8185 (Build_Master_Entity): An internal block is a master if it wraps a call.
8186 Code reformatting, update comments. Code clean up.
8187 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
8188 (Replicate_Entry_Formals): If the formal is an access parameter or
8189 anonymous access to subprogram, copy the original tree to create new
8190 entities for the formals of the subprogram.
8191 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
8192 for tasks to store the value passed using pragma Relative_Deadline.
8193 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
8194 run-time call to create a task.
8195 (Build_Wrapper_Spec): If the controlling argument of the interface
8196 operation is an access parameter with a non-null indicator, use the
8197 non-null indicator on the wrapper.
8199 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
8200 present, which it may not be in the case where the type entity is an
8201 incomplete view brought in by a limited with.
8202 (Analyze_Task_Type): Only retrieve the full view when present, which it
8203 may not be in the case where the type entity is an incomplete view brought
8204 in by a limited with.
8205 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
8206 private components of a protected type, to prevent the generation of freeze
8207 nodes for which there is no proper scope of elaboration.
8209 * exp_util.ads, exp_util.adb
8210 (Remove_Side_Effects): If the expression is a function call that returns a
8211 task, expand into a declaration to invoke the build_in_place machinery.
8212 (Find_Protection_Object): New routine.
8213 (Remove_Side_Effects): Also make a copy of the value
8214 for attributes whose result is of an elementary type.
8215 (Silly_Boolean_Array_Not_Test): New procedure
8216 (Silly_Boolean_Array_Xor_Test): New procedure
8217 (Is_Volatile_Reference): New function
8218 (Remove_Side_Effects): Use Is_Volatile_Reference
8219 (Possible_Bit_Aligned_Component): Handle slice case properly
8221 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
8222 case test to Exp_Util
8223 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
8225 2008-04-08 Thomas Quinot <quinot@adacore.com>
8227 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
8229 (Add_RACW_Features): When processing an RACW in another unit than the
8230 main unit, set Body_Decls to No_List to indicate that the bodies of
8231 the type's TSS must not be generated.
8232 (GARLIC_Support.Add_RACW_Read_Attribute,
8233 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
8234 Body_Decls is No_List.
8235 (PolyORB_Support.Add_RACW_Read_Attribute,
8236 PolyORB_Support.Add_RACW_Write_Attribute,
8237 PolyORB_Support.Add_RACW_From_Any,
8238 PolyORB_Support.Add_RACW_To_Any,
8239 PolyORB_Support.Add_RACW_TypeCode): Same.
8240 (Transmit_As_Unconstrained): New function.
8241 (Build_Ordered_Parameters_List): Use the above to order parameters.
8242 (GARLIC_Support.Build_General_Calling_Stubs):
8243 Use the above to determine which parameters to unmarshall using 'Input
8244 at the point where their temporary is declared (as opposed to later on
8246 (PolyORB_Support.Build_General_Calling_Stubs):
8247 Use the above to determine which parameters to unmarshall using From_Any
8248 at the point where their temporary is declared (as opposed to later on
8249 with an assignment).
8251 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8253 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
8254 an Input function for an access type, do not perform default
8255 initialization on the local variable that receives the value, to
8256 prevent spurious warnings when the type is null-excluding.
8258 2008-04-08 Robert Dewar <dewar@adacore.com>
8259 Ed Schonberg <schonberg@adacore.com>
8261 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
8263 (Size_Known): Generic formal scalar types have known at compile
8264 time size, so remove check.
8265 Fix casing error in formal parameter name in call
8266 (Freeze_Subprogram): If the subprogram is a user-defined operator,
8267 recheck its overriding indication.
8269 2008-04-08 Vincent Celier <celier@adacore.com>
8271 * gnat1drv.adb: Send all messages indicating an error to standard error
8273 2008-04-08 Robert Dewar <dewar@adacore.com>
8275 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
8276 (List_Applicable_Restrictions): Do not list existing restrictions
8278 2008-04-08 Thomas Quinot <quinot@adacore.com>
8280 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
8281 add a pointer to generic sockets literature
8282 do not mention that the given example is "typical" usage.
8283 Remove obsolete comment about multicast not being supported on Windows.
8284 (Connect_Socket): Make Server mode IN rather than IN OUT
8285 since this formal is never modified.
8287 2008-04-08 Robert Dewar <dewar@adacore.com>
8289 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
8290 the declaration for some different entity.
8291 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
8292 list is precent (following the parent subtype indication), display
8293 appropriate "and" keyword.
8295 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
8296 Remove unnecessary calls to Init_Size_Align and Init_Esize.
8297 Add notes on use of Parent field of an Itype
8299 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8300 Robert Dewar <dewar@adacore.com>
8301 Gary Dismukes <dismukes@adacore.com>
8303 * lib-xref.adb (Is_On_LHS): Remove dead code
8304 (Output_Overriden_Op): If the overridden operation is itself inherited,
8305 list the ancestor operation, which is the one whose body or absstract
8306 specification is actually being overridden. For source navigation
8309 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
8310 operation is primitive for the type.
8311 (Declare_Inherited_Private_Subprograms): If the new operation overrides
8312 an inherited private subprogram, set properly the Overridden_Operation
8313 attribute, for better cross-reference information.
8314 (Analyze_Package_Specification): Do late analysis of spec PPCs
8315 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
8316 properly the full view and underlying full views of a private type in a
8317 child unit, whose full view is derived from a private type in a parent
8318 unit, and whose own full view becomes visible in the child body.
8320 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
8321 primitive operation after the type has been frozen, add an explicit
8322 reference to the type and the operation, because other primitive
8323 references have been emitted already.
8324 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
8325 dispatching call on VM targets.
8327 2008-04-08 Vincent Celier <celier@adacore.com>
8328 Thomas Quinot <quinot@adacore.com>
8330 * make.adb: (Gnatmake_Called): Remove, no longer necessary
8331 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
8332 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
8333 (Insert_Project_Sources): Take into account index in multi-unit source
8335 After building a library project, delete all temporary files.
8336 (Initialize): Reset current output after parsing project file.
8337 (Collect_Arguments_And_Compile): Never insert in the queue the sources
8338 of library projects that are externally built.
8339 Put file name in error and inform messages if -df is used
8340 (Display): If invoked with -d7, do not display path names, but only
8343 * makeutl.ads (Path_Or_File_Name): New function
8344 (Path_Or_File_Name): New function
8346 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8348 * Make-lang.in: Disable warnings during first stage of bootstrap
8350 Update dependencies.
8352 2008-04-08 Vincent Celier <celier@adacore.com>
8354 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
8355 case to decide if ALI object file is included in library.
8356 (Build_Library): Never attempt to build a library if the project is
8359 2008-04-08 Thomas Quinot <quinot@adacore.com>
8361 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
8362 (No_List) is defined to return Empty.
8364 2008-04-08 Jose Ruiz <ruiz@adacore.com>
8366 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
8369 (Read_Default_Search_Dirs): Do not consider spaces as path separators
8370 because spaces may be part of legal paths.
8372 2008-04-08 Robert Dewar <dewar@adacore.com>
8374 * par-ch11.adb (P_Exception_Handler): Check indentation level for
8377 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8379 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
8380 in a type declaration, if this is not an interface declaration or
8381 private type extension.
8383 2008-04-08 Vincent Celier <celier@adacore.com>
8385 * prj-util.adb (Executable_Of): New String parameter Language. When
8386 Ada_Main is False and Language is not empty, attempt to remove the body
8387 suffix or the spec suffix of the language to get the base of the
8388 executable file name.
8389 (Put): New Boolean parameter Lower_Case, defauilted to False. When
8390 Lower_Case is True, put the value in lower case in the name list.
8391 (Executable_Of): If there is no executable suffix in the configuration,
8392 then do not modify Executable_Extension_On_Target.
8394 * prj-util.ads (Executable_Of): New String parameter Language,
8395 defaulted to the empty string.
8396 (Put): New Boolean parameter Lower_Case, defauilted to False
8398 2008-04-08 Robert Dewar <dewar@adacore.com>
8400 * scng.adb (Scan_Identifier): Handle case of identifier starting with
8401 wide character using UTF-8 encoding.
8403 2008-04-08 Javier Miranda <miranda@adacore.com>
8405 * sem.adb (Analyze): Consider case in which we analyze an empty node
8406 that was generated by a call to a runtime function that is not
8407 available under the configurable runtime.
8409 * sem.ads (Inside_Freezing_Actions): New flag.
8410 (Save_Check_Policy_List): New field in scope stack entry
8412 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8413 Robert Dewar <dewar@adacore.com>
8415 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
8416 the ancestor part of an extension aggregate for a limited type.
8417 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
8418 enumeration index bounds.
8419 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
8420 when array is too short.
8421 (Check_Expr_OK_In_Limited_Aggregate): Move function
8422 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
8424 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
8425 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
8426 component associations.
8427 (Check_Non_Limited_Type): Moved to outer level and renamed.
8428 (Resolve_Record_Aggregate): In an extension aggregate, an association
8429 with a box initialization can only designate a component of the
8430 extension, not a component inherited from the given ancestor
8432 * sem_case.adb: Use new Is_Standard_Character_Type predicate
8434 2008-04-08 Robert Dewar <dewar@adacore.com>
8436 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
8438 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
8439 Properly handle case where Aft > Scale and input number is less than
8442 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8444 * s-stoele.ads, s-soflin.ads: Move the location of
8445 Dummy_Communication_Block from System.Storage_Elements to
8448 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
8449 emulate Communication_Block in certain scenarios.
8451 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
8453 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
8455 Add new subtype S_WWC, unchecked conversion routines From_WWC and
8457 (I_WWC, O_WWC): New routines for input and output of
8458 Wide_Wide_Character.
8460 2008-04-08 Robert Dewar <dewar@adacore.com>
8462 * stringt.adb (Write_String_Table_Entry): Handle wide characters
8465 2008-04-08 Robert Dewar <dewar@adacore.com>
8467 * styleg.adb (Check_Comment): Allow special char after -- in
8468 non-end-of-line case
8470 2008-04-08 Robert Dewar <dewar@adacore.com>
8472 * stylesw.adb: Implement -gnaty + - y options
8473 (Set_GNAT_Style_Check_Options): Includ I in style check string
8475 * stylesw.ads: Add comments for new style switch options
8477 2008-04-08 Sergey Rybin <rybin@adacore.com>
8479 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
8480 to the set of the GNAT components needed by ASIS.
8482 2008-04-08 Bob Duff <duff@adacore.com>
8484 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
8486 2008-04-08 Tristan Gingold <gingold@adacore.com>
8488 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
8489 Improve error message generation.
8491 2008-04-08 Vincent Celier <celier@adacore.com>
8493 * a-direct.adb (Start_Search): Check for Name_Error before checking for
8494 Use_Error, as specified in the RM. Check if directory is open and raise
8495 Use_Error if it is not.
8497 2008-04-08 Vincent Celier <celier@adacore.com>
8498 Robert Dewar <dewar@adacore.com>
8500 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
8501 AAMP_On_Target is set.
8503 * vms_data.ads: Add NOxxx to style check switch list
8504 Add entry COMPONENTS for -gnatVe
8505 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
8507 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
8508 Add qualifiers for gnatmetric coupling options
8509 Add note that -gnata enables all checks
8510 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
8511 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
8512 New warning flag -gnatw.e
8514 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
8515 Add entry for -gnatyN (forgotten before)
8516 Line for new warning switch -gnatw.p
8517 New warning flag -gnatw.e
8519 * gnat_ugn.texi: Add documentation fpr project file switch -aP
8520 Document -gnaty - + y
8521 Replace occurences of "package specification" with "package spec"
8522 Define preprocessing symbols in documentation of gnatprep
8523 Clarify reason for distinguishing overflow checking
8524 Add documentation for project-aware tool switches -eL and --subdirs=
8525 Complete list of configuration pragmas
8526 Specify that, even when gnatmake switch -x is used, mains on the command
8527 line need to be sources of project files.
8528 Editing of gnatcheck/gnatmetric doc.
8529 Add documentation for -gnatw.p/-gnatw.P
8530 Add missing documentation for -fno-inline-functions.
8531 Add documentation for -gnatw.e
8533 * gnat_rm.texi: Add documentation for No_Default_Initialization
8534 Replace occurences of "package specification" with "package spec"
8535 Document use of * in Warnings Off string
8536 Update documentation of alignment/component clauses.
8537 Add documentation for Invalid_Value
8538 Document new consistency rule for Optimize_Alignment
8539 Add documentation for Precondition and Postcondition pragmas
8540 Add documentation for Check and Check_Policy pragmas
8541 Document new Enum_Val attribute
8542 Remove requirement for static string in pragma Assert
8543 Add documentation on GNAT.Time_Stamp
8545 * ug_words: add entry for -gnatVe
8546 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
8547 Add entry for -gnatw.e
8549 * debug.adb: Add missing documentation for d.a flag
8550 Document new -gnatd.a switch.
8551 Add documentation for new gnatmake debug switch -df
8553 2008-04-08 Thomas Quinot <quinot@adacore.com>
8555 * gen-soccon.c: Bump year in copyright notices.
8557 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
8559 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8561 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
8564 2008-04-08 Robert Dewar <dewar@adacore.com>
8565 Bob Duff <duff@adacore.com>
8567 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
8568 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
8570 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
8572 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
8574 * g-trasym.ads: Minor comment improvements
8576 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
8578 * a-sequio.ads, a-direio.ads: improve message for tagged type
8580 * a-strunb.ads: Minor reformatting
8582 * a-tifiio.adb: Minor reformatting
8584 * atree.adb (Fix_Parents): Use clearer names for formals
8585 Cleanup and simplify code
8586 Use named notation in calls
8588 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
8591 * uintp.adb: Used named notation for some confusing calls
8593 * bindusg.adb: Minor change in one line of output
8595 * cstand.adb: Minor reformatting of src representation of Standard
8597 * a-assert.ads: Add comment.
8599 * g-decstr.adb: Fix bad indentation
8601 * expander.ads, expander.adb: Code clean up.
8603 * sem_dist.ads: Minor comment improvement
8605 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
8606 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
8608 * i-cstrin.adb: Fix casing error in formal parameter name in call
8610 2008-04-08 Ed Schonberg <schonberg@adacore.com>
8612 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
8613 mentioned in limited_with_clauses to do create semantic dependencies
8614 even though they appear in the ali file.
8616 2008-04-08 Emmanuel Briot <briot@adacore.com>
8618 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
8620 (Get_Configuration): New subprogram.
8622 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
8623 These optional parameters help preserve the casing of the project's name
8624 when pretty-printing.
8626 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
8627 Arnaud Charlet <charlet@adacore.com>
8629 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
8630 then use __gnat_set_exit_status to report the returned status code.
8632 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
8633 messages on .NET, since some constructs of the language are not
8636 * gnatlink.adb (Gnatlink): In case the command line is too long for the
8637 .NET linker, gnatlink now concatenate all .il files and pass this to
8640 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
8641 Xavier Grave <grave@ipno.in2p3.fr>
8643 * Makefile.in: Add make ifeq define for mips/mipsel support.
8644 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
8645 system-linux-mips.ads: New files.
8647 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
8649 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
8650 detect systems using GNU libc.
8656 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
8658 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
8659 constant constant for sysconf call.
8660 (bit_field): New packed boolean type used by cpu_set_t.
8661 (cpu_set_t): New type corresponding to the C type with
8662 the same name. Note that on the Ada side we use a bit
8663 field array for the affinity mask. There is not need
8664 for the C macro for setting individual bit.
8665 (pthread_setaffinity_np): New imported routine.
8666 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
8669 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
8671 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
8673 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
8675 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
8676 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
8677 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
8678 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
8679 Return by Depressed Stack Pointer.
8681 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
8683 * decl.c (is_variable_size): Do not unconditionally return false
8684 on non-strict alignment platforms.
8686 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
8688 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
8689 used to process all the variants of the specified type.
8690 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
8691 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
8692 (rest_of_type_decl_compilation): Likewise.
8693 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
8695 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
8697 * gigi.h (insert_block): Kill.
8698 * utils.c (insert_block): Kill.
8700 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
8702 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
8703 type has self-referential size, get the size from the initializing
8704 expression directly if it is also a constant whose nominal type
8705 has self-referential size.
8707 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8710 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
8713 * env.c: Always include crt_externs.h if __APPLE__ is defined.
8714 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
8716 2008-04-01 Andreas Jaeger <aj@suse.de>
8718 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
8721 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8723 * g-table.adb, g-tasloc.adb, g-traceb.ads,
8724 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
8725 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
8726 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
8727 gnatlink.adb, gnatmem.adb, gprep.adb,
8728 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
8729 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
8730 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
8731 lib-xref.ads, lib.adb, link.c, live.ads,
8732 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
8733 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
8734 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
8735 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
8736 namet.adb, namet.h, nlists.adb, nlists.ads,
8737 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
8738 osint-c.ads, osint.adb, osint.ads, output.ads,
8739 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
8740 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
8741 par-endh.adb, par-labl.adb, par-prag.adb,
8742 par-sync.adb, par-tchk.adb, par-util.adb,
8743 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
8744 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
8745 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
8746 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
8748 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
8750 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
8751 size if it has overflowed.
8753 2008-03-31 Olivier Hainque <hainque@adacore.com>
8754 Eric Botcazou <ebotcazou@adacore.com>
8756 * utils2.c (find_common_type): Document assumption on t1/t2 vs
8757 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
8759 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8761 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
8762 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
8763 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
8764 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
8765 exp_tss.ads, exp_util.adb, exp_util.ads,
8766 exp_vfpt.adb, freeze.adb, freeze.ads,
8767 frontend.adb, g-alleve.adb, g-altcon.adb,
8768 g-altive.ads, g-alveop.ads, g-alvevi.ads,
8769 g-arrspl.adb, g-busorg.ads, g-calend.adb,
8770 g-calend.ads, g-casuti.ads, g-cgideb.adb,
8771 g-comlin.adb, g-comlin.ads, g-curexc.ads,
8772 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
8773 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
8774 g-dyntab.adb, g-encstr.ads, g-excact.ads,
8775 g-except.ads, g-expect.ads, g-heasor.adb,
8776 g-hesora.adb, g-hesorg.adb, g-htable.ads,
8777 g-locfil.ads, g-md5.adb, g-md5.ads,
8778 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
8779 g-pehage.adb, g-pehage.ads, g-regexp.adb,
8780 g-regexp.ads, g-regpat.adb, g-regpat.ads,
8781 g-soccon-aix.ads, g-soccon-darwin.ads,
8782 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
8783 g-soccon-hpux.ads, g-soccon-irix.ads,
8784 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
8785 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
8786 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
8787 g-soccon-solaris.ads, g-soccon-tru64.ads,
8788 g-soccon-vms.ads, g-soccon-vxworks.ads,
8789 g-soccon.ads, g-socket.adb, g-socket.ads,
8790 g-socthi-mingw.adb, g-socthi-vms.adb,
8791 g-socthi-vxworks.adb, g-soliop-mingw.ads,
8792 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
8793 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
8796 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
8798 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
8799 if the procedure is imported.
8801 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8803 * adaint.c: Fix warnings.
8805 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8807 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
8809 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8811 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
8812 Fix problem of status check for null file
8814 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8816 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
8817 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
8818 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
8819 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
8820 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
8823 2008-03-26 Thomas Quinot <quinot@adacore.com>
8826 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
8827 Get_Socket_Option): Add support for Receive_Packet_Info.
8829 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
8830 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
8831 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
8832 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
8833 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
8834 new constants SO_REUSEPORT and IP_PKTINFO
8836 2008-03-26 Robert Dewar <dewar@adacore.com>
8838 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
8839 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
8840 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
8841 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
8842 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
8843 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
8844 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
8845 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
8846 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
8847 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
8848 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
8849 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
8850 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
8851 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
8852 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
8853 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
8854 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
8855 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
8856 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
8857 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
8858 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
8859 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
8860 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
8861 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
8862 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
8863 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
8864 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
8865 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
8866 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
8867 s-tasloc.adb: Minor reformatting.
8869 Remove "used for" sections from comments.
8871 2008-03-26 Robert Dewar <dewar@adacore.com>
8873 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
8874 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
8875 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
8876 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
8877 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
8878 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
8879 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
8880 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
8881 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
8882 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
8883 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
8884 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
8885 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
8886 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
8887 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
8888 double spaced if it fits on one line and otherwise single spaced.
8890 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8892 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
8893 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
8894 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
8895 or task info if the thread could not be created.
8897 2008-03-26 Arnaud Charlet <charlet@adacore.com>
8899 * gnatvsn.ads (Library_Version): Bump to 4.4.
8900 (Current_Year): Bump to 2008.
8902 2008-03-26 Robert Dewar <dewar@adacore.com>
8904 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
8906 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
8908 * debug.adb: Add debug flags d.r and d.v
8909 Add debug flag .T (Optimize_Alignment (Time))
8910 Add debug flag .S (Optimize_Alignment (Space))
8912 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
8913 depending on setting of relevant debug flags.
8914 Replace use of Warnings_Off by Has_Warnings_Off
8915 (Freeze_Entity): In circuit for warning on suspicious convention
8916 actuals, do not give warning if subprogram has same entity as formal
8917 type, or if subprogram does not come from source.
8918 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
8919 if Optimize_Alignment set to Space.
8921 * frontend.adb: Add call to Sem_Warn.Initialize
8922 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
8923 Reset Optimize_Alignment mode from debug switches .S and .T
8925 * layout.adb (Layout_Composite_Object): Rewritten for
8926 Optimize_Aligment pragma.
8928 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
8931 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
8933 * par-prag.adb (N_Pragma): Chars field removed, use Chars
8934 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
8935 this change. Add entry for pragma Optimize_Alignment
8937 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
8938 (Pragma_Identifier (..
8939 instead, adjustments throughout to accomodate this change.
8940 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
8941 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
8942 Add implementation of pragma Optimize_Alignment
8944 2008-03-26 Vincent Celier <celier@adacore.com>
8946 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
8947 Improve memory usage to avoid use of stack.
8949 2008-03-26 Robert Dewar <dewar@adacore.com>
8951 * a-teioed.ads: Correct value of Default_Fill
8953 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
8955 2008-03-26 Robert Dewar <dewar@adacore.com>
8957 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
8958 with Current_Output (introduce Self).
8960 2008-03-26 Robert Dewar <dewar@adacore.com>
8962 * checks.adb (Ensure_Valid): Capture valid status if possible
8965 2008-03-26 Robert Dewar <dewar@adacore.com>
8967 * stand.ads: Deal with reordering of package standard declarations
8969 * cstand.adb: Put package Standard declarations in proper order
8971 2008-03-26 Robert Dewar <dewar@adacore.com>
8973 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
8974 (Pragma_Identifier (.. instead.
8975 (OK_To_Reorder_Components): New flag
8976 (Has_Entries): Code cleanup.
8977 (Warnings_Off_Used): New flag
8978 (Warnings_Off_Used_Unmodified): New flag
8979 (Warnings_Off_Used_Unreferenced): New flag
8980 (Has_Warnings_Off): New function
8981 (Has_Unmodified): New function
8982 (Has_Unreferenced): New function
8983 (Is_Trivial_Subprogram): New flag
8984 (Is_Static_Dispatch_Table_Entity): New attribute.
8985 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
8986 (more consistent with other similar names)
8987 (Access_Subprogram_Type): New classification function
8989 2008-03-26 Robert Dewar <dewar@adacore.com>
8991 * errout.ads: Document new !! insertion sequence
8993 * errout.adb (N_Pragma): Chars field removed, use Chars
8994 (Pragma_Identifier (.. instead.
8995 Replace use of Warnings_Off by Has_Warnings_Off
8996 (Error_Msg_Internal): Don't delete warning ending in !!
8998 2008-03-26 Robert Dewar <dewar@adacore.com>
9000 * par.adb (Check_No_Right_Paren): Removed no longer used
9002 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
9003 (Pragma_Identifier (.. instead.
9005 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
9007 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
9008 par-ch4.adb: Minor improvements in error recovery and messages.
9010 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
9013 * par-ch9.adb: Minor improvements in error recovery and messages
9014 (P_Protected): Better error recovery for "protected type x;"
9016 * par-util.adb: Minor improvements in error recovery and messages
9017 (Check_No_Right_Paren): Removed no longer used
9019 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9021 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
9022 that the prefix of an attribute is the type of the aggregate being
9025 2008-03-26 Javier Miranda <miranda@adacore.com>
9026 Robert Dewar <dewar@adacore.com>
9028 * exp_attr.adb (N_Pragma): Chars field removed.
9029 (Expand_N_Attribute_Reference): If the designated type associated with
9030 attribute 'Unrestricted_Access is a subprogram entity then replace it
9031 by an E_Subprogram_Type itype.
9032 Implement attribute Old
9034 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
9036 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
9038 New_Internal_Entity by call to Create_Itype to centralize calls
9039 building itypes, ad propagate the convention of the designated
9040 subprogram. In addition, disable the machinery cleaning constant
9041 indications from all entities in current scope when 'Unrestricted_Access
9042 corresponds with a node initializing a dispatch table slot.
9043 (Analyze_Attribute): Parameterless attributes returning a string or a
9044 type will not be called with improper arguments, so we can remove junk
9045 code that was dealing with this case.
9046 Implement attribute Old
9048 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
9049 Add entry for pragma Optimize_Alignment
9050 New standard names Sync and Synchronize
9052 2008-03-26 Robert Dewar <dewar@adacore.com>
9053 Arnaud Charlet <charlet@adacore.com>
9055 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
9057 (No_Exception_Propagation_Active): New function.
9058 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9059 Update comments, and review all uses of No_Exception_Propagation, which
9060 are now correct and in sync with what gigi expects.
9062 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
9064 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
9065 Update comments, and review all uses of No_Exception_Propagation, which
9066 are now correct and in sync with what gigi expects.
9068 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9070 * sem_ch3.adb (Access_Definition): If the access type is the return
9071 result of a protected function, create an itype reference for it
9072 because usage will be in an inner scope from the point of declaration.
9073 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
9074 OK_To_Reorder_Components.
9075 (Make_Index): If an overloaded range includes a universal integer
9076 interpretation, resolve to Standard.Integer.
9077 (Analyze_Subtype_Indication): Copy Convention to subtype
9078 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
9079 limited an synchronized progenitors in type declaration and private
9080 extension declarations.
9082 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
9083 protected subprogram body, determine proper scope from subprogram
9086 2008-03-26 Robert Dewar <dewar@adacore.com>
9088 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
9091 2008-03-26 Gary Dismukes <dismukes@adacore.com>
9093 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
9094 of a heap allocator for a limited unconstrained function return when
9095 resstriction No_Allocators is active.
9096 (Analyze_Allocator): The restriction No_Allocators is now only checked
9097 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9099 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
9100 of a heap allocator for a limited unconstrained function return when
9101 resstriction No_Allocators is active.
9102 (Analyze_Allocator): The restriction No_Allocators is now only checked
9103 on allocators that have Comes_From_Source set, as per RM-H.4(7).
9104 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
9105 operands are fixed-point types, the universal_fixed predefined operation
9106 is used, regardless of whether the operand type (s) have a primitive
9107 operation of the same name.
9109 2008-03-26 Javier Miranda <miranda@adacore.com>
9111 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
9112 Is_Static_Dispatch_Table
9113 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
9114 to Exchange_Declarations to exchange the private and full-view. Bug
9115 found working in this issue.
9116 (Expand_Dispatching_Call): Propagate the convention of the subprogram
9117 to the subprogram pointer type.
9118 (Make_Secondary_DT): Replace generation of Prim'Address by
9119 Address (Prim'Unrestricted_Access)
9120 (Make_DT): Replace generation of Prim'Address by
9121 Address (Prim'Unrestricted_Access)
9122 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
9123 simple call form for single entry.
9124 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
9125 tables of predefined primitives).
9126 (Make_Secondary_DT): Add support to handle access to dispatch tables of
9127 predefined primitives.
9128 (Make_Tags): Add entities to Access_Dispatch_Table associated with
9129 access to dispatch tables containing predefined primitives.
9131 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
9132 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
9134 (Register_Predefined_DT_Entry): Updated to handle the new contents
9135 of attribute Access_Disp_Table (pointers to dispatch tables containing
9136 predefined primitives).
9138 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
9140 (Find_Interface_ADT): Updated to skip the new contents of attribute
9141 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9144 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
9146 (Set_Convention): Use new function Is_Access_Subprogram_Type
9147 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
9148 Access_Dispatch_Table (pointers to dispatch tables containing predefined
9151 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
9152 expanded code avoiding calls to Build_Predef_Prims.
9153 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
9154 call to Build_Get_Predefined_Prim_Op_Address.
9156 2008-03-26 Javier Miranda <miranda@adacore.com>
9158 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
9159 subprogram Corresponding_Runtime_Package to know the runtime package
9160 that will provide support to a given protected type.
9162 * exp_ch9.adb (Add_Private_Declarations,
9163 Build_Protected_Subprogram_Call,
9164 Build_Protected_Entry, Build_Simple_Entry_Call,
9165 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9166 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
9167 cleanup using the new centralized subprogram Corresponding_Runtime
9168 Package to know the runtime package that provides support to
9169 a given protected type.
9171 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9173 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
9174 assignment is within the initialization procedure for a packed array,
9175 and Initialize_Scalars is enabled, compile right-hand side with checks
9176 off, because the value is purposely out of range.
9178 2008-03-26 Vincent Celier <celier@adacore.com>
9180 * gnatcmd.adb: Add processing for GNAT SYNC
9182 * vms_conv.ads: (Command_Type): Add command Sync
9184 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
9186 * vms_data.ads: Add entries for -gnatw.w
9187 Add qualifier for gnatstub --header-file option
9188 Add switches for GNAT SYNC
9190 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
9191 (Add_Package_Name): New procedure
9192 (Package_Name_List): New function
9193 (Initialize): Add known package names to the list
9194 (Register_New_Package): Add the new package name to the list
9196 2008-03-26 Robert Dewar <dewar@adacore.com>
9198 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
9199 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
9200 Raise_Exception by "raise with" construct.
9202 2008-03-26 Pascal Obry <obry@adacore.com>
9204 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
9205 supported platforms.
9207 * Makefile.rtl: Add g-sercom.o.
9209 * impunit.adb: Add g-sercom.adb.
9211 * s-crtl.ads (open): New routine.
9215 * s-osinte-mingw.ads (BYTE): New type.
9217 (OVERLAPPED): Likewise.
9218 (GENERIC_READ): New constant.
9219 (GENERIC_WRITE): Likewise.
9220 (OPEN_EXISTING): Likewise.
9221 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
9223 (CreateFile): New routine.
9224 (WriteFile): Likewise.
9225 (ReadFile): Likewise.
9226 (CloseHandle): Move next to the other file oriented routines.
9228 * g-sercom.ads: New unit.
9230 * g-sercom.adb: Default implementation, calls to this unit will raise
9231 a program error exception.
9233 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
9234 GNU/Linux implementations.
9236 2008-03-26 Robert Dewar <dewar@adacore.com>
9238 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
9240 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
9241 unchecked conversion for different conventions only for subprogram
9244 2008-03-26 Vincent Celier <celier@adacore.com>
9246 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
9247 to check if the specified object file is correct.
9249 2008-03-26 Thomas Quinot <quinot@adacore.com>
9251 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
9252 Comes_From_Source to exclude primitives from being checked. We want to
9253 exclude predefined primitives only, so use the appropriate specific
9254 predicate. Also, flag a formal parameter of an anonymous
9255 access-to-subprogram type as illegal for a primitive operation of a
9256 remote access to class-wide type.
9258 2008-03-26 Vincent Celier <celier@adacore.com>
9260 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
9261 known, check if it may be a missspelling of a known package name. In
9262 not verbose, not mode, issue warnings only if the package name is a
9263 possible misspelling.
9264 In verbose mode, always issue a warning for a not known package name,
9265 plus a warning if the name is a misspelling of a known package name.
9267 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
9268 limited withs or limited withs are parse during one call.
9269 (Parse_Single_Project): Post parse context clause in two passes: non
9270 limited withs before current project and limited withs after current
9273 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
9274 project with the name With_Name, even if it is only extended indirectly.
9275 (Recursive_Process): Process projects in order: first single withs, then
9276 current project, then limited withs.
9278 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
9279 project with the name With_Name, even if it is only extended indirectly.
9281 2008-03-26 Robert Dewar <dewar@adacore.com>
9283 * scn.adb (Initialize_Scanner): Format messages belong on standard error
9285 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9287 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
9288 a generic subprogram that is imported, do not attempt to compile
9291 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
9292 imported, do not generate a raise_program_error for the non-existent
9294 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
9295 perform minimal name resolution on the generic to avoid spurious
9297 (Find_Actual_Type): the designated type of the actual in a child unit
9298 may be declared in a parent unit without being an actual.
9300 2008-03-26 Robert Dewar <dewar@adacore.com>
9302 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
9303 * sinfo.ads, sinfo.adb (From_At_End): New flag
9305 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9307 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
9308 operations that have an interface parameter.
9309 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
9310 Don't treat No_Return call as raise.
9312 * sem_disp.adb (Check_Dispatching_Operations): apply check for
9313 non-primitive interface primitives to access parameters, not to all
9314 parameters of an access type.
9316 2008-03-26 Ed Schonberg <schonberg@adacore.com>
9318 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
9319 declarations of a parent unit are made visible when compiling a child
9320 instance, the parent is not a hidden open scope, even though it may
9321 contain other pending instance.
9323 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
9324 hidden open scope for some child instance, it does affect the
9325 visibility status of other stach entries.
9326 (Analyze_Object_Renaming): Check that a class-wide object cannot be
9327 renamed as an object of a specific type.
9329 2008-03-26 Robert Dewar <dewar@adacore.com>
9331 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
9332 recursion and raise SE directly.
9333 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
9334 set for formal type for IN mode parameter.
9336 2008-03-26 Robert Dewar <dewar@adacore.com>
9338 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
9339 (Initialize): New procedure
9340 (Output_Warnings_Off_Warnings): New procedure
9341 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
9342 (Output_Non_Modifed_In_Out_Warnings): Ditto
9343 (Warn_On_Unreferenced_Entity): Ditto
9345 2008-03-26 Vincent Celier <celier@adacore.com>
9347 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
9350 2008-03-26 Matthew Heaney <heaney@adacore.com>
9352 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
9353 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
9354 Marked with clauses as private, and controlled operations as overriding
9356 2008-03-26 Robert Dewar <dewar@adacore.com>
9358 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
9360 2008-03-26 Robert Dewar <dewar@adacore.com>
9362 * back_end.adb, back_end.ads: Minor reformatting
9364 * bindgen.adb: Minor clarification of comments
9366 * fname.ads: Minor comment fixes
9368 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
9369 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
9371 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
9372 xsnames.adb: Remove warnings off pragma no longer needed
9374 * a-catizo.ads, a-calari.ads, a-calfor.adb,
9375 a-calfor.ads: Fix header.
9377 2008-03-26 Tristan Gingold <gingold@adacore.com>
9379 * init.c: Do not adjust pc for HPARITH on alpha/vms.
9381 2008-03-26 Robert Dewar <dewar@adacore.com>
9383 * lib-xref.adb: (OK_To_Set_Reference): New function
9384 (Generate_Reference): Don't set referenced from occurrence in Warnings,
9385 Unmodified, or Unreferenced pragma
9387 2008-03-26 Robert Dewar <dewar@adacore.com>
9389 * alloc.ads: Add entries for Warnings_Off_Pragmas table
9391 2008-03-26 GNAT Script <nobody@adacore.com>
9393 * Make-lang.in: Makefile automatically updated
9395 2008-03-26 Robert Dewar <dewar@adacore.com>
9397 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
9398 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
9399 removed, use Chars (Pragma_Identifier (.. instead, adjustments
9400 throughout to accomodate this change.
9402 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
9404 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
9405 Einfo.Set_Needs_Debug_Info)
9407 2008-03-26 Robert Dewar <dewar@adacore.com>
9409 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
9410 Add description for the new gnatstub option '--header-file'
9411 clarification of -gnatwz/-gnatwZ
9412 Add a "Irix-Specific Considerations" section to document the need to
9413 set LD_LIBRARY_PATH when using the default shared runtime library.
9414 Added documentation for both gcov and gprof.
9416 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
9417 messages that are not suppressed when clients are compiled.
9418 Add documentation of s-pooglo s-pooloc
9419 Document the new GNAT.Serial_Communications API.
9420 Add documentation for 'Old attribute
9421 Add description of pragma Optimize_Alignment
9423 * ug_words: Add entries for -gnatw.w -gnatw.W
9425 * usage.adb: Add line for -gnatw.w (warn on warnings off)
9427 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
9430 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
9432 * decl.c (maybe_pad_type): Avoid padding an integral type when
9433 bumping its alignment is sufficient.
9435 2008-03-25 Arnaud Charlet <charlet@adacore.com>
9437 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
9438 Fix wrong formatting (lines too long)
9440 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9442 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
9443 a-calend-vms.adb, a-calend.adb, a-calend.ads,
9444 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
9445 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
9446 a-cohama.ads, a-comlin.ads, a-coorse.adb,
9447 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
9448 a-except-2005.ads, a-except.adb, a-except.ads,
9449 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
9450 a-exextr.adb, a-filico.ads, a-finali.ads,
9451 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
9452 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
9453 a-sequio.ads, a-strbou.ads, a-strfix.adb,
9454 checks.adb, exp_ch3.adb, exp_ch4.adb,
9455 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
9456 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
9457 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
9458 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
9459 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
9461 2008-03-24 Robert Dewar <dewar@adacore.com>
9463 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
9464 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
9465 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
9466 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
9467 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
9468 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9469 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
9470 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
9471 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
9472 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
9473 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
9474 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
9475 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
9476 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
9477 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
9478 double spaced if it fits on one line and otherwise single spaced.
9480 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9482 PR documentation/15479
9483 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
9484 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
9485 (doc/gnat_ugn.info): Renamed from ...
9486 (doc/gnat_ugn_unw.info): ... this.
9487 (doc/gnat_ugn.dvi): Renamed from ...
9488 (doc/gnat_ugn_unw.dvi): ... this.
9489 (doc/gnat_ugn.pdf): Renamed from ...
9490 (doc/gnat_ugn_unw.pdf): ... this.
9491 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
9493 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
9494 unconditionally to gnat_ugn.info. Fix cross references to the
9495 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
9496 and GNU make manuals to be proper texinfo links.
9497 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
9499 2008-03-21 Olivier Hainque <hainque@adacore.com>
9501 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
9502 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
9504 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
9506 * trans.c (addressable_p): Add notes on addressability issues.
9508 2008-03-21 Olivier Hainque <hainque@adacore.com>
9509 Ed Schonberg <schonberg@adacore.com>
9511 * trans.c (addressable_p): Accept COND_EXPR when both arms
9513 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
9514 (call_to_gnu): Do not use name reference in the error message
9515 for a misaligned by_reference_parameter. The actual may be a
9518 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
9520 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
9522 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9524 * gnat_rm.texi (Implementation Defined Characteristics)
9525 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
9527 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
9528 (Switches for gnatchop, Installing a library): Likewise.
9530 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
9532 * trans.c (emit_range_check): Do not emit the check if the base type
9533 of the expression is the type against which its range must be checked.
9535 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9537 * decl.c (maybe_pad_type): Use value_factor_p.
9539 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9541 * lang.opt (nostdlib): Move around.
9542 * misc.c (gnat_handle_option): Fix formatting.
9543 (gnat_dwarf_name): Move around.
9544 * trans.c (Case_Statement_to_gnu): Fix formatting.
9545 (gnat_to_gnu): Likewise.
9546 * utils.c (aggregate_type_contains_array_p): Likewise.
9547 (create_subprog_decl): Likewise.
9549 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9551 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
9552 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
9554 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9556 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
9557 BIGGEST_ALIGNMENT when capping the alignment of records with
9558 strict alignment and size clause.
9560 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9562 * lang-specs.h: Pass -gnatwa if -Wall is passed.
9563 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
9564 and -Wuninitialized.
9565 (gnat_post_options): Clear warn_unused_parameter.
9567 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9569 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
9570 aligned bit-fields, bumping the alignment of the record type if deemed
9572 (value_factor_p): Return false instead of 0.
9574 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9576 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
9577 for scalar types with small alignment.
9579 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
9581 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
9582 from that of the front-end's end label.
9583 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
9584 from that of the loop label.
9586 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
9588 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
9589 comment for the packed array type case.
9590 * utils.c (build_template): Use a loop to strip padding or
9591 containing records for justified modular types.
9593 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
9595 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
9596 large alignments specified for types.
9597 (validate_alignment): Minor cleanup.
9599 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
9601 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
9602 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
9603 the component for packing, if possible, as well as if a component
9604 size clause is specified.
9605 <E_Record_Subtype>: For an array type used to implement a packed
9606 array, get the component type from the original array type.
9607 Try to get a smaller form of the component for packing, if possible,
9608 as well as if a component size clause is specified.
9609 (round_up_to_align): New function.
9610 (make_packable_type): Add in_record parameter.
9611 For a padding record, preserve the size. If not in_record and the
9612 size is too large for an integral mode, attempt to shrink the size
9613 by lowering the alignment.
9614 Ditch the padding bits of the last component.
9615 Compute sizes and mode manually, and propagate the RM size.
9616 Return a BLKmode record type if its size has shrunk.
9617 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
9618 Use Original_Array_Type to retrieve the type in case of an error.
9619 Adjust call to make_packable_type.
9620 (gnat_to_gnu_field): Likewise.
9621 (concat_id_with_name): Minor tweak.
9622 * trans.c (larger_record_type_p): New predicate.
9623 (call_to_gnu): Compute the nominal type of the object only if the
9624 parameter is by-reference. Do the conversion actual type -> nominal
9625 type if the nominal type is a larger record.
9626 (gnat_to_gnu): Do not require integral modes on the source type to
9627 avoid the conversion for types with identical names.
9628 (addressable_p): Add gnu_type parameter. If it is specified, do not
9629 return true if the expression is not addressable in gnu_type.
9630 Adjust recursive calls.
9631 * utils.c (finish_record_type): Remove dead code.
9633 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
9636 * decl.c (maybe_pad_type): Avoid padding an integral type when
9637 bumping its alignment is sufficient.
9639 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9641 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
9642 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
9644 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
9645 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
9646 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
9647 code output strings.
9648 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
9649 system-vms_64.ads: Fix typos in ada source code comments.
9650 * sinfo-cn.adb: Remove incomplete sentence.
9652 PR documentation/15479
9653 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
9655 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
9658 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
9660 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
9663 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
9664 that underlying type is present.
9666 2008-02-26 Tom Tromey <tromey@redhat.com>
9668 * misc.c (internal_error_function): Remove test of
9669 USE_MAPPED_LOCATION.
9670 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
9671 (Sloc_to_locus): Remove old location code.
9673 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9675 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
9676 `i.e.' by adding comma or `@:' as appropriate.
9677 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
9678 plain characters `C', use `@samp{C}'.
9679 * gnat_ugn.texi (File Naming Rules, About gnatkr)
9680 (Krunching Method): Likewise.
9682 * gnat_ugn.texi (Conventions): List environment variables and
9683 metasyntactic variables.
9684 (Compiling Programs): Fix notation of metasyntactic variables.
9685 Add @file where appropriate. Use @file for file extensions,
9687 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
9688 instead of @file, @env instead of @code.
9690 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9692 PR documentation/15479
9693 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
9694 and `...' with `@dots{}' or `@enddots{}'.
9696 PR documentation/15479
9697 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
9698 use @command instead of @code, @option instead of @samp or @code,
9699 @code instead of @var, @samp instead of @file.
9701 PR documentation/15479
9702 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
9703 in Makefile rules, by using `&&' rather than `;'.
9705 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9707 PR documentation/15479
9708 * gnat_ugn.texi: In non-code, avoid space before colon.
9709 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
9710 (Examples of gnatxref Usage): Use @command{vi} instead of
9712 (Character Set Control): Do not use @code for UTF-8.
9713 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
9715 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
9717 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
9719 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
9722 * env.c: Add __rtems__ to if defined.
9723 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
9724 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
9725 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
9726 pragma Convention as required.
9727 * gsocket.h: Make compile in and out of RTS.
9728 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
9729 Use g-soccon-rtems.ads.
9730 * g-soccon-rtems.ads, system-rtems.ads: New files.
9732 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9735 * Make-lang.in (gnat1): Add $(GMPLIBS).
9737 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
9739 * decl.c (components_to_record): Improve comment.
9741 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
9743 * decl.c (components_to_record): Do not reuse the empty union type
9744 if there is a representation clause on the record.
9745 * trans.c (addressable_p): Return true for INTEGER_CST.
9747 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
9749 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
9750 in pointer arithmetics.
9751 * utils2.c (build_allocator): Likewise.
9753 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
9755 * utils.c (build_function_stub): Properly build the call expression.
9757 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
9759 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
9760 before converting the expression to the type of the object.
9761 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
9762 Stabilize constructors for special wrapping types.
9764 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
9766 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
9767 when necessary. Merge some conditional statements. Update comments.
9768 Rename unchecked_convert_p local variable to suppress_type_conversion.
9769 Do not suppress conversions in the In case.
9770 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
9771 into account on non strict-alignment platforms.
9773 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
9775 * utils.c (aggregate_type_contains_array_p): New predicate.
9776 (create_field_decl): In a packed record, force byte alignment
9777 for fields without specified position that contain an array.
9779 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
9781 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
9783 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
9786 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
9788 (bit_field): New packed boolean type used by cpu_set_t.
9789 (cpu_set_t): New type corresponding to the C type with
9790 the same name. Note that on the Ada side we use a bit
9791 field array for the affinity mask. There is not need
9792 for the C macro for setting individual bit.
9793 (pthread_setaffinity_np): New imported routine.
9795 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
9798 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
9799 on OpenBSD as is done on other BSD systems.
9802 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
9803 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
9807 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
9811 * init.c (__gnat_error_handler, __gnat_install_handler,
9812 __gnat_init_float): Define for OpenBSD.
9814 * initialize.c (__gnat_initialize): Define for OpenBSD.
9816 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
9819 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
9820 instead of mktemp() or tmpnam() on NetBSD.
9822 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
9824 * trans.c (call_to_gnu): Make the temporary for non-addressable
9825 In parameters passed by reference.
9826 (addressable_p): Return true for STRING_CST and CALL_EXPR.
9828 2007-12-19 Robert Dewar <dewar@adacore.com>
9830 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
9831 Add pragma Warnings (Off) for unassigned IN OUT arguments
9833 * sem_warn.adb (Output_Reference): Suppress messages for internal names
9834 (Check_References): Extensive changes to tune up warnings
9835 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
9836 (Has_Pragma_Unmodifed_Check_Spec): New function
9837 (Check_References): Implement pragma Unmodified
9838 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
9840 * par-prag.adb: Dummy entry for pragma Unmodified
9842 * sem_prag.adb: Implement pragma Unmodified
9844 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
9845 (Proc_Next_Component_Or_Discriminant): Fix typo.
9848 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
9850 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
9851 because the former already takes care of discarding the result.
9852 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
9855 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
9857 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
9859 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
9860 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
9861 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
9862 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
9863 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
9864 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
9865 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
9866 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
9867 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
9868 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
9869 (Dynamic_Trampolines_Used): Delete.
9871 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
9872 Turn on stack probing mechanism on LynxOS.
9874 2007-12-19 Bob Duff <duff@adacore.com>
9876 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
9877 the resulting tail recursion by hand. This prevents running out of
9878 memory on deeply nested concatenations, since Field2 is where the left
9879 operand of concatenations is stored.
9880 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
9881 clarify that it can only return OK or Abandon.
9883 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
9884 operand by iteration, in order to avoid running out of memory on
9885 deeply-nested concatenations. Use the Parent pointer to get back up the
9887 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
9888 Resolve_Op_Concat_Rest): New procedures split out of
9889 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
9892 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
9893 Traverse_Func, because the former already takes care of discarding the
9896 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
9897 because the former already takes care of discarding the result.
9898 (Remove_Warning_Messages): Use appropriate subtype for Status and
9901 2007-12-19 Ed Schonberg <schonberg@adacore.com>
9903 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
9904 discriminants forces expansion of the aggregate into assignments.
9905 (Init_Record_Controller): If the type of the aggregate is untagged and
9906 is not inherently limited, the record controller is not limited either.
9908 2007-12-19 Robert Dewar <dewar@adacore.com>
9910 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
9911 handling compile time known size of record or array (case of front end
9912 layout active, e.g. in GNAAMP).
9914 2007-12-19 Javier Miranda <miranda@adacore.com>
9916 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
9917 that forces the construction of static dispatch tables in case of
9920 2007-12-19 Robert Dewar <dewar@adacore.com>
9922 * exp_ch9.adb (Null_Statements): Moved to library level
9923 (Trivial_Accept_OK): New function
9924 (Expand_Accept_Declaration): Use Trivial_Accept_OK
9925 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
9927 2007-12-19 Robert Dewar <dewar@adacore.com>
9929 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
9930 in complex case where array is Volatile.
9932 2007-12-19 Ed Schonberg <schonberg@adacore.com>
9934 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
9935 properly the Ada2005 rules concerning when the current instance of a
9936 record type is aliased.
9938 2007-12-19 Ed Schonberg <schonberg@adacore.com>
9940 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
9942 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
9944 (P_Variant_Part): Cleaner patch for parenthesized discriminant
9946 2007-12-19 Vincent Celier <celier@adacore.com>
9948 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
9949 package is not known
9951 * prj-attr.ads (Unknown_Package): New constant
9952 Do not crash when an unknown package is in several projects
9954 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
9957 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
9958 existing package Language_Processing.
9960 2007-12-19 Ed Schonberg <schonberg@adacore.com>
9961 Gary Dismukes <dismukes@adacore.com>
9962 Samuel Tardieu <sam@rfc1149.net>
9964 PR ada/15803, ada/15805
9965 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
9966 illegal access subtypes when there is a constrained partial view.
9967 (Check_For_Premature_Usage): New procedure inside
9968 Access_Subprogram_Declaration for checking that an access-to-subprogram
9969 type doesn't reference its own name within any formal parameters or
9970 result type (including within nested anonymous access types).
9971 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
9972 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
9973 context is an access_to_variable, the expression cannot be an
9976 2007-12-19 Bob Duff <duff@adacore.com>
9978 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
9979 (Analyze_Concatenation): Use iteration instead of recursion in order
9980 to avoid running out of stack space for deeply nested concatenations.
9982 2007-12-19 Ed Schonberg <schonberg@adacore.com>
9983 Gary Dismukes <dismukes@adacore.com>
9985 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
9986 whose renamed entity is a subprogram that requires overriding.
9987 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
9988 issuing an error for premature usage and issue a message that says
9989 'type' rather than 'object'.
9991 2007-12-19 Gary Dismukes <dismukes@adacore.com>
9994 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
9995 presence of a statically tagged operand (Present (Static_Tag)) with
9996 test for Indeterm_Ancestor_Call when determining whether to propagate
9997 the static tag to tag-indeterminate operands (which forces dispatching
9999 (Check_Controlling_Formals): Ada2005, access parameters can have
10001 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
10002 not insert subprogram in list of primitive operations if already there.
10004 2007-12-19 Tristan Gingold <gingold@adacore.com>
10006 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
10009 2007-12-19 Thomas Quinot <quinot@adacore.com>
10011 Part of PR ada/33688
10012 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
10013 datagram info on Linux.
10015 2007-12-19 Vincent Celier <celier@adacore.com>
10017 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
10018 that the source path name is always found in the dependencies.
10020 2007-12-19 Robert Dewar <dewar@adacore.com>
10022 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
10023 Fix name of Wide_Wide_Latin_1/9 file names
10024 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
10025 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
10026 Add missing documentation for Ada.Command_Line.Response_File
10027 Update list of warning letters for Warnings pragma
10028 Add documentation for pragma Unmodified
10030 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
10032 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
10034 2007-12-17 Arnaud Charlet <charlet@adacore.com>
10036 * s-vxwork-alpha.ads: Removed, no longer used.
10038 2007-12-15 Jakub Jelinek <jakub@redhat.com>
10040 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
10042 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
10045 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
10046 mlib-tgt-specific.adb.
10048 2007-12-13 Bob Duff <duff@adacore.com>
10050 * trans.c (Attribute_to_gnu): Check for violations of the
10051 No_Implicit_Dynamic_Code restriction. This checking used to be done in
10052 the front end, but is moved here so we can make it more accurate.
10054 2007-12-13 Pascal Obry <obry@adacore.com>
10056 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
10057 version is provided for older GNU/Linux distribution not
10058 supporting thread affinity sets.
10060 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
10062 (bit_field): New packed boolean type used by cpu_set_t.
10063 (cpu_set_t): New type corresponding to the C type with
10064 the same name. Note that on the Ada side we use a bit
10065 field array for the affinity mask. There is not need
10066 for the C macro for setting individual bit.
10067 (pthread_setaffinity_np): New imported routine.
10069 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
10071 (Create_Task): Set the processor affinity mask if information
10074 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
10076 2007-12-13 Robert Dewar <dewar@adacore.com>
10078 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10079 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
10080 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
10081 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
10082 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
10083 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
10084 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
10085 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
10086 for subprogram pointers.
10088 * g-ctrl_c.adb: New file.
10090 * g-ctrl_c.ads (Install_Handler): New body.
10092 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
10093 instead of obsolete function Is_Always_Inlined.
10094 (Freeze_Entity): check for tagged type in imported C subprogram
10095 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
10096 (Freeze_Entity): check for convention Ada subprogram pointer in
10097 imported C subprogram.
10098 (Freeze_Fixed_Point_Type): In the case of a base type where the low
10099 bound would be chopped off and go from negative to zero, force
10100 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
10101 bound) so that the size computation for the base type will take
10102 negative values into account.
10104 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
10105 Bob Duff <duff@adacore.com>
10106 Tristan Gingold <gingold@adacore.com>
10108 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10109 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10110 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
10111 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
10112 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
10113 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10114 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10115 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
10116 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10117 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
10118 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
10119 (Always_Compatible_Rep): New flag to control trampolines globally.
10120 (Dynamic_Trampolines_Used): New flag for implementing the
10121 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
10122 and not yet set correctly for some targets).
10124 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
10125 Simply indirectly call s-stchop when a task is created.
10128 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
10129 appears as an argument (entries A) in an ALI file.
10131 * fe.h (Stack_Check_Limits): Declare new target parameter.
10132 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
10134 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
10135 This variable is declared in C to be sure not subject to elaboration
10137 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
10140 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
10141 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
10143 * s-stchop.ads: Add comments.
10145 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
10146 limit method of stack checking.
10148 * s-stchop-limit.ads: New file.
10150 2007-12-13 Robert Dewar <dewar@adacore.com>
10152 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
10153 a-cihama.adb, g-awk.adb,
10154 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
10157 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
10159 * sem.adb: Update handling of assigned value/unreferenced warnings
10161 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
10163 * lib-xref.ads: Improve documentation for k xref type
10166 Update handling of assigned value/unreferenced warnings
10167 (Generate_Reference): Warning for reference to entity for which a
10168 pragma Unreferenced has been given should be unconditional.
10169 If the entity is a discriminal, mark the original
10170 discriminant as referenced.
10172 * sem_warn.ads, sem_warn.adb
10173 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
10174 no entities referenced in package
10175 (Check_One_Unit): Don't give message about no entities referenced in
10176 a package if a pragma Unreferenced has appeared.
10177 Handle new warning flag -gnatw.a/-gnatw.A
10178 Update handling of assigned value/unreferenced warnings
10180 * atree.h: Add flags up to Flag247
10181 (Flag231): New macro.
10183 2007-12-13 Jose Ruiz <ruiz@adacore.com>
10185 * adaint.h: (__gnat_plist_init): Not defined for RTX.
10187 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
10190 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
10191 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
10192 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
10193 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
10196 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
10198 * sysdep.c (winflush_function for RTX): Procedure that does nothing
10199 since we only have problems with Windows 95/98, which are not
10201 (__gnat_ttyname): Return the empty string on Nucleus, just as
10204 2007-12-13 Robert Dewar <dewar@adacore.com>
10206 * a-textio.adb, a-textio.ads:
10207 Extensive changes to private part for wide character encoding
10209 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
10210 (Look_Ahead): Fix mishandling of encoded sequences
10211 Move declaration of Wch_Con to private part (should not be visible)
10213 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
10214 UTF-8. Probably this is never used, but if it is, brackets is
10217 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
10218 setting wide character encoding for no main program case and when
10219 encoding is specified using -W?
10220 Initialize stack limit of environment task if stack limit method of
10221 stack checking is enabled.
10222 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
10223 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
10224 (Get_Main_Unit_Name): New function.
10225 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
10226 (Gen_Output_File): Set Bind_Main_Program to True for .NET
10228 * bindusg.adb: Add line for -Wx switch
10230 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
10232 Add new useful constant WC_Longest_Sequences
10234 * switch-b.adb: Clean up handling of -Wx switch
10235 For -gnatWx, set Wide_Character_Encoding_Method_Specified
10237 * switch-c.adb: -gnatg activates warning on assertion errors
10238 For -gnatWx, set Wide_Character_Encoding_Method_Specified
10240 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
10242 2007-12-13 Robert Dewar <dewar@adacore.com>
10243 Ed Schonberg <schonberg@adacore.com>
10245 * a-ngcoty.adb: New pragma Fast_Math
10247 * opt.adb: New pragma Fast_Math
10250 Add Implemented_By_Entry to the list of pragmas which do not require any
10251 special processing.
10252 (Favor_Top_Level): New pragma.
10253 New pragma Fast_Math
10255 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
10256 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
10257 Expand_Allocator_Expression): Take into account VM_Target
10258 (Expand_Attribute, case 'Identity): Handle properly the case where
10259 the prefix is a task interface.
10260 New pragma Fast_Math
10262 * par.adb (Next_Token_Is): New function
10263 (P_Pragma): Add Skipping parameter
10264 (U_Left_Paren): New procedure
10265 (U_Right_Paren): New procedure
10266 New pragma Fast_Math
10268 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
10270 New pragma Fast_Math
10272 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
10273 Implemented_By_Entry.
10274 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
10275 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
10276 items, since it can apply to more than one overloadable entity. Set
10277 new flag Has_Pragma_Inline_Always for Inline_Always case.
10278 (Analyze_Pragma, case Complex_Representation): Improve error message.
10279 (Analyze_Pragma, case Assert): When assertions are disabled build the
10280 rewritten code with Sloc of expression rather than pragma, so new
10281 warning about failing is not deleted.
10282 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
10283 protected types and update error message to reflect that. Test whether
10284 the protected type is allowed for the pragma (an error is issued if the
10285 type has any entries, or components that do not have preelaborable
10287 New pragma Fast_Math
10288 (Analyze_Pragma, case No_Return): Handle generic instance
10290 * snames.h, snames.ads, snames.adb:
10291 Add new predefined name for interface primitive _Disp_Requeue.
10292 New pragma Fast_Math
10294 * a-tags.ads, a-tags.adb: New calling sequence for
10295 String_To_Wide_[Wide_]String
10296 (Secondary_Tag): New subprogram.
10298 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
10300 New calling sequence for String_To_Wide_[Wide_]String
10301 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
10302 the use of the secondary stack for image routines.
10304 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
10305 calling sequence for String_To_Wide_[Wide_]String
10307 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
10309 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
10310 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10312 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
10313 (P_Formal_Part): Use Skipping parameter in P_Pragma call
10314 to improve error recovery
10316 * par-util.adb (Next_Token_Is): New function
10317 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
10319 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
10320 semicolon if missing
10321 (P_Pragma): Implement new Skipping parameter
10322 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10323 Fix location of flag for unrecognized pragma message
10325 * par-tchk.adb (U_Left_Paren): New procedure
10326 (U_Right_Paren): New procedure
10328 2007-12-13 Geert Bosch <bosch@adacore.com>
10331 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
10332 the second or later Scaled_Divide would omit leading zeroes,
10333 resulting in too few digits produced and a Layout_Error as result.
10334 (Put): Initialize Pos.
10336 2007-12-13 Robert Dewar <dewar@adacore.com>
10338 atree.ads, atree.adb (Flag231..Flag247): New functions
10339 (Set_Flag231..Set_Flag247): New procedures
10340 (Basic_Set_Convention): Rename Set_Convention to be
10341 Basic_Set_Convention
10342 (Nkind_In): New functions
10343 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10345 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
10347 of obsolete function Is_Always_Inlined
10348 (Register_Predefined_DT_Entry): Initialize slots of the second
10349 secondary dispatch table.
10350 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10351 (Expand_N_Function_Call): Remove special provision for stack checking.
10353 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
10354 Include _Disp_Requeue in the list of predefined operations.
10355 (Find_Interface_ADT): Modified to fulfill the new specification.
10356 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10358 * par-ch4.adb, nlists.ads, nlists.adb:
10359 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
10361 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
10362 Fix location of flag for unrecognized pragma message
10364 * sem_ch7.adb: Use Nkind_In
10366 2007-12-13 Vincent Celier <celier@adacore.com>
10369 Indicate what flags are used by the Project Manager, gprbuild and
10371 (Opt.Follow_Links_For_Dirs): New flag
10372 (Warn_On_Assertion_Failure): New flag
10373 (Wide_Character_Encoding_Method_Specified): New flag
10374 (Suppress_All_Inlining): New switch set by -fno-inline
10375 (Real_VMS_Target): New flag
10376 New pragma Fast_Math
10378 2007-12-13 Robert Dewar <dewar@adacore.com>
10380 * back_end.adb: Recognize -fno-inline
10382 2007-12-13 Robert Dewar <dewar@adacore.com>
10384 * checks.adb: Fix optimization problem with short-circuited form
10386 2007-12-13 Bob Duff <duff@adacore.com>
10388 * clean.adb (Usage): Add line for -aP
10389 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
10390 with a parameter "procedure Usage", instead of passing a pointer to a
10391 procedure. This is to eliminate trampolines (since the Usage procedure
10392 is often nested in a main procedure, and it would be inconvenient to
10395 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
10396 to be generic, with a parameter "procedure Callback (...)", instead of
10397 passing a pointer to a procedure. This is to eliminate trampolines
10398 (since the Callback procedure is usually nested).
10400 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
10401 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
10402 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
10404 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
10405 Use the generic Heap_Sort_G instead of Heap_Sort_A.
10407 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10409 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
10410 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
10411 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
10412 (Renamed_In_Spec): New flag
10413 (Has_Pragma_Inline_Always): New flag
10414 Add missing doc for pragma Obsolescent_Warning
10415 Add missing doc for 17 additional unused flags (230-247)
10416 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
10417 Alphabetize with clauses.
10418 Separate Is_Thunk and Has_Thunks flags
10419 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
10420 (Related_Interface): Renamed to Related_Type.
10421 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
10422 (Set_Is_Flag): Restrict the assertion.
10424 2007-12-13 Vincent Celier <celier@adacore.com>
10426 * errout.adb (Output_Source_Line): Do not keep a trailing space after
10427 the source line number if the source line is empty.
10429 2007-12-13 Geert Bosch <bosch@adacore.com>
10431 * eval_fat.adb (Decompose_Int): Handle argument of zero.
10432 (Compose): Remove special casing of zero.
10433 (Exponent): Likewise.
10434 (Fraction): Likewise.
10435 (Machine): Likewise.
10436 (Decompose): Update comment.
10438 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10440 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
10441 limited ancestor part, initialize controllers of enclosing record
10442 before expanding ancestor aggregate.
10443 (Gen_Assign): If a component of the aggregate is box-initialized, add
10444 code to call Initialize if the component is controlled, and explicit
10445 assignment of null if the component is an access type.
10447 Handle properly aggregates for limited types that appear in object
10448 declarations when the aggregate contains controlled values such as
10450 When expanding limited aggregates into individual components, do not
10451 call Adjust on controlled components that are limited.
10453 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10455 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
10457 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10459 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
10460 predefined primitive _Disp_Requeue.
10461 (Make_Predefined_Primitive_Specs): Create the spec for predefined
10462 primitive _Disp_Requeue.
10463 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
10464 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
10465 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
10466 an interface type. In case of limited interfaces we now declare all the
10467 predefined primitives associated with synchronized interfaces as
10469 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
10471 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
10472 tagged type is an interface type and there is no user-defined equality
10474 Add also bodies of predefined primitives associated with synchronized
10476 (Freeze_Record_Type): Do not build bodies of predefined primitives of
10477 interface types because they are now defined abstract.
10478 Add missing documentation.
10479 (Expand_Record_Controller): Update occurrence of Related_Interface
10481 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
10482 (Expand_N_Object_Declaration): Take into account VM_Target when handling
10483 class wide interface object declaration.
10484 (Expand_Previous_Access_Type): Do not create a duplicate master entity
10485 if the access type already has one.
10486 (Expand_N_Object_Declaration): Defend against attempt to validity check
10487 generic types. Noticed for -gnatVcf specified with previous errors.
10489 2007-12-13 Arnaud Charlet <charlet@adacore.com>
10491 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
10492 Expand_Allocator_Expression): Take into account VM_Target
10494 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
10495 secondary stack when VM_Target /= No_VM
10497 2007-12-13 Javier Miranda <miranda@adacore.com>
10498 Ed Schonberg <schonberg@adacore.com>
10500 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
10501 Is_Complation_Unit by Is_Library_Level_Entity in the code
10502 that decides if the static dispatch tables need to be built.
10503 (Wrap_Transient_Declaration): Do not generate a finalization call if
10504 this is a renaming declaration and the renamed object is a component
10505 of a controlled type.
10507 2007-12-13 Gary Dismukes <dismukes@adacore.com>
10509 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
10510 In the case where the renamed subprogram is a dereference, call
10511 Force_Evaluation on the prefix.
10513 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10514 Ed Schonberg <schonberg@adacore.com>
10516 * exp_ch9.adb (Expand_N_Asynchronous_Select,
10517 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
10518 comment reformatting.
10519 (Set_Privals): Inherit aliased flag from formal. From code reading.
10520 (Build_Simple_Entry_Call): Out parameters of an access type are passed
10521 by copy and initialized from the actual. This includes entry parameters.
10522 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
10523 and Ada 2005 models of requeue.
10524 (Null_Statements): Still connsider do-end block null if it contains
10525 Unreferenced and Warnings pragmas.
10526 (Expand_N_Accept_Statement): Do not optimize away null do end if
10527 dispatching policy is other than defaulted.
10528 (Expand_N_Timed_Entry_Call): When the triggering statement is a
10529 dispatching call, manually analyze the delay statement.
10530 (Find_Parameter_Type): Move subprogram to Sem_Util.
10532 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10533 Javier Miranda <miranda@adacore.com>
10535 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
10536 _Disp_Requeue occupies dispatch table slot number 15. Move
10537 _Disp_Timed_Select to slot 16.
10538 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
10539 generate the spec and body of _Disp_Reqeueue.
10540 (Make_DT): Build and initialize the second dispatch table.
10541 Handle initialization of RC_Offset when the parent
10542 is a private type with variable size components.
10543 (Make_Secondary_DT): Complete documentation. Add support to
10544 initialize the second dispatch table.
10545 (Make_Tags): Generate the tag of the second dispatch table.
10546 (Register_Primitive): Add support to register primitives in the
10547 second dispatch table.
10549 2007-12-13 Pascal Obry <obry@adacore.com>
10551 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
10552 Windows. This signal is used by gnatmake to kill child processes for
10555 2007-12-13 Javier Miranda <miranda@adacore.com>
10557 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
10558 support for generic dispatching constructor calls in which we need to
10559 locate the tag of a secondary dispatch table associated with an
10560 interface type to properly dispatch the call.
10561 (Expand_N_Attribute_Reference [case Address],
10562 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
10563 handling of VM targets.
10565 2007-12-13 Robert Dewar <dewar@adacore.com>
10566 Ed Schonberg <schonberg@adacore.com>
10568 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
10571 * ug_words: Add entries for -gnatw.a -gnatw.A
10573 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
10574 literal is a subtype with non-static constraints, use the base type of
10575 the context as the base of the string subtype, to prevent type
10576 mismatches in gigi.
10577 (Resolve_Actuals): If the actual is an entity name, generate a
10578 reference before the actual is resolved and expanded, to prevent
10579 spurious warnings on formals of enclosing protected operations.
10580 (Analyze_Overloaded_Selected_Component): If type of prefix if
10581 class-wide, use visible components of base type.
10582 (Resolve_Selected_Component): Ditto.
10583 (Resolve_Short_Circuit): Detect case of pragma Assert argument
10584 evaluating to False, and issue warning message.
10586 * usage.adb: Add lines for -gnatw.a and -gnatw.A
10588 2007-12-13 Emmanuel Briot <briot@adacore.com>
10590 * g-calend.ads (No_Time): New constant, to represent an uninitialized
10593 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
10595 (Month_Name_To_Number): New subprogram
10597 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
10598 letter to upper-case.
10600 2007-12-13 Robert Dewar <dewar@adacore.com>
10601 Ed Schonberg <schonberg@adacore.com>
10603 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
10605 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
10606 context is a limited view, use non-limited view when available. If the
10607 non-limited view is an unconstrained array, this enforces consistency
10608 requirements in 3.10.2 (27).
10609 (Layout_Type): For an access type whose designated type is a limited
10610 view, examine its declaration to determine if it is an unconstrained
10611 array, and size the access type accordingly.
10612 (Layout_Type): Do not force 32-bits for convention c subprogram
10613 pointers in -gnatdm mode, only if real vms target.
10615 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
10616 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
10617 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
10618 violations of the No_Implicit_Dynamic_Code restriction.
10619 (Resolve_Attribute, case 'Access): If designated type of context is a
10620 limited view, use non-limited view when available. If the non-limited
10621 view is an unconstrained array, this enforces consistency requirements
10623 (Layout_Type): For an access type whose designated type is a limited
10624 view, examine its declaration to determine if it is an unconstrained
10625 array, and size the access type accordingly.
10627 2007-12-13 Vincent Celier <celier@adacore.com>
10629 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
10630 object directory of main project does not exist.
10631 On VMS, correctly set then environment variable for the source
10634 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
10636 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
10637 set to True this procedure will create the value of type REG_EXPAND_SZ.
10638 It was only possible to create REG_SZ values before.
10640 2007-12-13 Robert Dewar <dewar@adacore.com>
10642 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
10643 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
10644 namet-sp.adb, namet-sp.ads: New files.
10646 * g-speche.adb: Use generic routine in g-spchge
10648 * s-wchcnv.ads, s-wchcnv.adb:
10649 Minor code cleanup (make formal type consistent with spec)
10651 * namet.adb: Update comments.
10653 * par-endh.adb (Evaluate_End_Entry): Use new
10654 Namet.Sp.Is_Bad_Spelling_Of function
10656 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
10658 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
10659 ancestor is an access type initialized with a box, set its type
10660 explicitly, for use in subsequent expansion.
10661 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
10664 2007-12-13 Robert Dewar <dewar@adacore.com>
10666 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
10669 2007-12-13 Robert Dewar <dewar@adacore.com>
10671 * inline.adb (Back_End_Cannot_Inline): Use new flag
10672 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
10674 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
10675 Has_Pragma_Inline_Always instead.
10676 of obsolete function Is_Always_Inlined
10677 (Build_Body_To_Inline): Same change
10678 (Cannot_Inline): Same change
10679 Do not give warning on exception raise in No_Return function
10681 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
10682 component has two inconsistent component clauses in the same record
10683 representation clause, favor the message that complains about
10684 duplication rather than inconsistency.
10686 (Record_Representation_Clause): Do not warn on missing component
10687 clauses for inherited components of a type extension.
10688 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
10689 an overloadable item if it is a pragma that can apply to multiple
10690 overloadable entities (e.g. Inline) because a pragma cannot be on
10691 more than one chain at a time.
10692 (Validate_Unchecked_Conversion): Add code to warn on unchecked
10693 conversion where one of the operands is Ada.Calendar.Time.
10694 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
10695 For now, ignore Component_Size clause on VM targets, as done for
10698 2007-12-13 Emmanuel Briot <briot@adacore.com>
10699 Vincent Celier <celier@adacore.com>
10701 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
10703 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
10705 (Hash): Move instantiation of System.HTable.Hash from spec to body
10706 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
10707 systems, since we do not need to recompute the Name_Id for the canonical
10709 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
10710 as a parameter. This parameter is in fact always "ada" in all calls, and
10711 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
10712 while loading a project with 40000 files
10714 * prj-attr.adb: Fix name of attribute Dependency_Driver
10715 Change the kind of indexing for attribute Root
10717 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
10718 variables already declared, in case constructions.
10720 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
10721 Current_Object_Path_File to No_Path.
10723 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
10724 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
10726 * prj-makr.adb: new parameter Current_Dir
10728 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
10729 Ada sources when language is not Ada.
10730 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
10731 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
10732 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
10733 (Locate_Directory): Always resolve links when computing Canonical_Path
10734 (Look_For_Sources): Make sure that Name_Buffer contains the file name
10735 in Source_Files before checking for the presence of a directory
10737 Optimize calls to Name_Find when on case sensitive systems.
10738 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
10740 (Prj.Nmsc.Check): new parameter Current_Dir
10741 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
10742 cannot be empty and the spec suffix cannot be the same as the body or
10744 (Get_Unit): When a file name can be of several unit kinds (spec, body or
10745 subunit), always consider the longest suffix.
10746 (Check_Configuration): Do not issue an error if there is no compiler
10747 for a language. Just issue a warning and ignore the sources for the
10749 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
10751 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
10752 (Unit_Exceptions): New hash table
10753 (Check_Naming_Schemes): Check if a file that could be a unit because of
10754 the naming scheme is not in fact a source because there is an exception
10756 (Look_For_Sources): Put the unit exceptions in hash table
10758 (Get_Unit_Exceptions): Give initial value No_Source to local variable
10759 Other_Part to avoid exception when code is compiled with validity
10761 (Get_Sources_From_File): Check that there is no directory information
10763 (Look_For_Sources): Check that there is no directory information in the
10764 list of file names in Source_Files.
10765 (Look_For_Sources): In multi-language mode, do not allow exception file
10766 names that are excluded.
10767 (Excluded_Sources_Htable): New hash table
10768 (Search_Directories.Check_File): New procedure to simplify
10769 Search_Directories.
10770 (Search_Directories): Do not consider excluded sources
10771 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
10772 Search_Directories.
10773 (Get_Exceptions): Set component Lang_Kind of Source_Data
10774 (Get_Unit_Exceptions): Ditto
10775 (Search_Directories): Ditto
10777 * prj-pars.adb: new parameter Current_Dir
10779 * prj-part.ads, prj-part.adb:
10780 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
10781 (Opt.Follow_Links_For_Dirs): New flag
10782 (Project_Path_Name_Of): Cache information returned by this routine as
10783 Locate_Regular_File is a costly routine. The code to output a log
10784 information and the effective call to Locate_Regular_File is now
10785 factorized into a routine (code clean-up).
10786 (Parse, Parse_Single_Project): new parameter Current_Dir
10787 When main project file cannot be found, indicate in the error
10788 message the project path that was used to do the search.
10790 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
10791 (Prj.Proc.Process*): new parameter Current_Dir
10793 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
10795 2007-12-13 Bob Duff <duff@adacore.com>
10797 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
10798 procedure to be called from the back end to check the
10799 No_Implicit_Dynamic_Code restriction.
10801 2007-12-13 Arnaud Charlet <charlet@adacore.com>
10803 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
10804 Fixes another case where RTE_Available_Call was ignored instead of being
10805 taken into account.
10806 (Load_Fail): Ditto.
10808 * rtsfind.ads: Add new entries.
10810 2007-12-13 Robert Dewar <dewar@adacore.com>
10812 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
10813 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
10815 * scn.adb: Implement BOM recognition
10817 2007-12-13 Thomas Quinot <quinot@adacore.com>
10818 Ed Schonberg <schonberg@adacore.com>
10820 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
10821 subprogram body that acts as its own spec may not have a non-private
10822 WITH clause on a private sibling.
10823 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
10824 child unit is a renaming, create an implicit with_clause on that
10825 parent, and not on the unit it renames, to prevent visibility errors
10826 in the current unit.
10828 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10830 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
10831 renaming declaration, use the Slocs of the formal parameters from the
10832 declaration of the formal subprogram when creating the formal parameter
10833 entities in the renaming declaration.
10834 (Analyze_Formal_Type_Declaration): Change the placement of the error
10835 message concerning illegal known discriminants. It is now posted on the
10836 type rather than on the first discriminant. This change ensures early
10838 (Freeze_Subprogram_Body): If the generic subprogram is nested within
10839 the package body that contains the instance, do not generate an
10840 out-of-place freeze node for the enclosing package.
10841 (Collect_Previous_Instantiations): Ignore internal instantiations
10842 generated for formal packages.
10843 (Validate_Derived_Type_Instance): Add a check that when a formal
10844 derived type is Known_To_Have_Preelab_Init then the actual type must
10845 have preelaborable initialization, and issue an error when this
10846 condition is violated.
10848 2007-12-13 Robert Dewar <dewar@adacore.com>
10850 * s-imenne.adb, s-imenne.ads: New files.
10852 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
10853 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
10854 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
10855 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
10856 s-imgwch.ads: New calling sequence for Image routines to avoid sec
10859 2007-12-13 Javier Miranda <miranda@adacore.com>
10860 Ed Schonberg <schonberg@adacore.com>
10862 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
10863 generation of spurious error if parent is an interface type; caused
10864 because predefined primitive bodies will be generated later by
10865 Freeze_Record_Type.
10866 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
10868 (Derive_Subprograms): Handle derivations of predefined primitives
10869 after all the user-defined primitives to ensure that they are
10870 found in proper order in instantiations.
10871 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
10872 of Related_Interface to Related_Type.
10873 (Record_Type_Declaration): Minor reordering of calls to decorate the
10874 Tag component because the entity must have set its Ekind attribute
10875 before setting its Is_Tag attribute.
10876 (Analyze_Subtype_Declaration): In the case of subtypes with
10877 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
10879 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10880 Ed Schonberg <schonberg@adacore.com>
10882 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
10883 statement to the list of contexts where a selected component with a
10884 concurrent tagged type prefix should yield a primitive operation.
10885 (Find_Primitive_Operation): Handle case of class-wide types.
10886 (Analyze_Overloaded_Selected_Component): If type of prefix is
10887 class-wide, use visible components of base type.
10888 (Resolve_Selected_Component): Ditto.
10889 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
10890 formal of a generic subprogram. find candidate interpretations by
10891 scanning the list of generic formal declarations.:
10892 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
10893 type from a limited_with_clause, and the full view is available, use it
10894 for subsequent semantic checks.
10895 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
10896 (Find_Primitive_Operation): New function.
10897 (Analyze_Overloaded_Selected_Component): insert explicit dereference
10898 only once if several interpretations of the prefix yield an access type.
10899 (Try_Object_Operation): Code and comment cleanup.
10900 (Analyze_Selected_Component): Reorder local variables. Minot comment and
10901 code reformatting. When the type of the prefix is tagged concurrent, a
10902 correct interpretation might be available in the primitive and
10903 class-wide operations of the type.
10905 2007-12-13 Robert Dewar <dewar@adacore.com>
10906 Ed Schonberg <schonberg@adacore.com>
10908 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
10909 renaming entry as subprogram using rename-as-body if subprogram spec
10911 (Use_One_Type): The clause is legal on an access type whose designated
10912 type has a limited view.
10913 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
10914 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
10915 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
10916 operation denoted by a selected component.
10917 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
10918 it can be an expression, possibly overloaded, that returns a task or
10921 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10922 Gary Dismukes <dismukes@adacore.com>
10924 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
10925 requeue statement is dispatching. Do not emit an error when the name is
10926 not an entry and the context is a dispatching select. Add code to
10927 perform subtype conformance between the formals of the current entry
10928 and those of the target interface primitive.
10929 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
10930 Timed_Entry_Call): Analyze the triggering statement as the first step of
10931 the processing. If this is a dispatching select, postpone the analysis
10932 of all select statements until the Expander transforms the select. This
10933 approach avoids generating duplicate identifiers after the Expander has
10934 replicated some of the select statements. In case the Expander is
10935 disabled, perform regular analysis.
10936 (Check_Triggering_Statement): New routine.
10937 (Analyze_Requeue): Exclude any interpretations that are not entries when
10938 checking overloaded names in a requeue. Also test type conformance for
10939 matching interpretations rather than requiring subtype conformance at
10940 that point to conform with the RM's resolution rule for requeues.
10942 2007-12-13 Ed Schonberg <schonberg@adacore.com>
10944 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
10945 inherited operation is a defaulted tag-indeterminate call, and there is
10946 a statically tagged actual, use the static tag as a controlling actual
10947 for the defaulted actual.
10949 2007-12-13 Geert Bosch <bosch@adacore.com>
10951 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
10952 context, so do not call Check_Non_Static_Context.
10954 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
10956 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
10957 whether formal E is an entity which may have parameters.
10959 2007-12-13 Bob Duff <duff@adacore.com>
10960 Javier Miranda <miranda@adacore.com>
10961 Robert Dewar <dewar@adacore.com>
10963 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
10964 (Set_Convention): New procedure to set the Convention flag, and in
10965 addition make sure the Favor_Top_Level flag is kept in sync (all
10966 foreign-language conventions require Favor_Top_Level = True).
10967 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
10969 (Collect_Interfaces_Info): Minor update to handle the two secondary
10970 dispatch tables. Update occurrence of Related_Interface to Related_Type.
10971 (Generate_Parent_Ref): Add parameter to specify entity to check
10972 (Is_Preelaborable_Expression): Allow the name of a discriminant to
10973 initialize a component of a type with preelaborable initialization.
10974 This includes the case of a discriminal used in such a context.
10975 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
10976 latest Ada 2005 rules about renaming and 'Access of
10977 discriminant-dependent components.
10978 (Check_Nested_Access): Add handling when there are no enclosing
10979 subprograms (e.g. case of a package body).
10980 (Find_Parameter_Type): Factor routine from several other compiler files.
10981 Remove routine from Find_Overridden_Synchronized_Primitive.
10983 2007-12-13 Thomas Quinot <quinot@adacore.com>
10985 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
10986 an invalid access to an uninitialized slot in the
10987 Source_File_Index_Table.
10989 2007-12-13 Thomas Quinot <quinot@adacore.com>
10991 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
10993 2007-12-13 Bob Duff <duff@adacore.com>
10995 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
10996 access-to-subprogram types in this package.
10998 2007-12-13 Olivier Hainque <hainque@adacore.com>
11000 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
11001 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
11002 Stack_Overlay_Address and document that we are using an internal
11004 (Byte_Size, Unsigned_32_Size): Remove, now useless.
11005 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
11006 consistently throughout the various implementation pieces.
11008 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
11009 overlay we are using to fill the stack area with patterns.
11010 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
11011 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
11012 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
11014 2007-12-13 Robert Dewar <dewar@adacore.com>
11016 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
11018 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11021 (Create_Task): Take into account tasks created by foreign threads.
11022 Code clean up: use constants instead of hard coded values.
11024 2007-12-13 Robert Dewar <dewar@adacore.com>
11026 * styleg.adb (Check_Comment): More liberal rules for comment placement
11028 2007-12-13 Olivier Hainque <hainque@adacore.com>
11030 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
11031 of Procedure Value instead of Frame Pointer as the invocation
11032 identifier associated with the instruction pointer in each traceback
11035 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
11036 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
11037 Pointer as the invocation identifier passed to tbk$symbolize.
11039 * s-traent-vms.ads, s-traent-vms.adb
11040 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
11041 Procedure Value instead of Frame Pointer as the invocation identifier
11042 passed to tbk$symbolize.
11044 2007-12-13 Robert Dewar <dewar@adacore.com>
11046 * tbuild.ads, tbuild.adb:
11047 Fix location of flag for unrecognized pragma message
11049 2007-12-13 Robert Dewar <dewar@adacore.com>
11051 * treepr.ads, treepr.adb: (pl): implement use of positive value
11054 2007-12-13 Robert Dewar <dewar@adacore.com>
11056 * xeinfo.adb: Remove warnings
11057 * xnmake.adb: Remove warnings
11058 * xsinfo.adb: Remove warnings
11059 * xtreeprs.adb: Remove warnings
11060 * xsnames.adb: Remove warnings
11062 * a-ngcoar.adb: Fix typo.
11063 * s-interr.adb: Minor reformatting
11064 * env.c: Minor reformatting.
11065 * g-bytswa.adb: Minor reformatting.
11066 * g-rannum.ads: Minor documentation improvements
11067 * s-tasinf-mingw.adb: Minor header fix
11068 * a-clrefi.adb: Minor reformatting
11069 * g-sttsne.ads: Minor documentation improvement
11070 * g-sttsne-locking.ads: Minor documentation improvement
11071 * g-soliop-solaris.ads: Minor documentation improvement
11072 * g-soliop-mingw.ads: Minor documentation improvement
11073 * g-soliop.ads: Minor documentation improvement
11074 * exp_aggr.ads: Minor reformatting
11075 * debug.adb: Add documentation for the gprbuild debug flags
11076 * exp_ch2.adb: Use Nkind_In to simplify code throughout
11077 * exp_pakd.adb: Minor reformatting
11079 * g-altive.ads, g-alleve.adb: Remove assertions.
11080 Add comment about minor differences between targets regarding
11081 floating-point operations.
11083 * g-thread.adb: Remove pragma unreferenced.
11084 * lib.ads: Minor reformatting
11085 * par-ch9.adb: Minor reformatting of error messages
11086 * sem_case.adb: Minor reformatting
11087 * s-fileio.adb: Minor reformattinng
11088 * s-vmexta.ads: Minor typo
11090 Take into account 'Success' value as per new GNAT warning.
11092 2007-12-13 Vincent Celier <celier@adacore.com>
11094 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
11097 2007-12-13 Robert Dewar <dewar@adacore.com>
11098 Bob Duff <duff@adacore.com>
11100 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
11101 Document that suffixes may be terminations of each others
11102 Add doc for -gnatw.a and -gnatw.A
11103 Document gnatbind -Wx switch
11104 Document BOM recognition
11105 Document pragma Implemented_By_Entry.
11106 Document new units.
11108 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
11109 Add doc for pragma Unreferenced suppressing no entities referenced msg
11110 Add documentation of GNAT.Directory_Operations.Iteration
11111 Add documentation of GNAT.Random_Numbers
11112 Add documentation for pragma Shared.
11113 Correct documentation for Bit_Order
11114 Add documentation for the Pool_Address attribute.
11115 Fix and improve documentation of pragma machine_attribute.
11116 New pragma Fast_Math
11117 Document BOM recognition
11119 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
11120 Add /Wide_Character_Encoding for binder
11121 Add qualifier for the new gnatpp option --no-separate-loop-then
11123 2007-12-13 Matthew Heaney <heaney@adacore.com>
11125 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
11126 which generic formal operations are called for each operation.
11128 2007-12-13 Olivier Hainque <hainque@adacore.com>
11130 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
11131 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
11133 2007-12-13 Emmanuel Briot <briot@adacore.com>
11135 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
11136 Reference_Dir unless we actually need it.
11138 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11139 Tristan Gingold <gingold@adacore.com>
11141 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
11143 * s-osprim-vms.adb,
11144 a-calend-vms.adb: Remove pragma warning off and add pragma
11147 2007-12-13 Robert Dewar <dewar@adacore.com>
11149 * impunit.adb: Add entries for missing units
11151 * Makefile.rtl: Add new run-time units.
11153 * Make-lang.in: Update dependencies.
11155 2007-12-13 Bob Duff <duff@adacore.com>
11157 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
11158 types, set Can_Use_Internal_Rep appropriately, based on
11159 Always_Compatible_Rep_On_Target.
11161 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11162 Arnaud Charlet <charlet@adacore.com>
11164 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
11165 it to the front end and setting the aamp_target environment variable
11166 to the switch's argument to ensure that gnaampbind and gnaamplink will
11167 take the specified library into account.
11168 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
11169 target, since the CIL compiler supports an "object" file (.il files).
11171 2007-12-13 Vincent Celier <celier@adacore.com>
11173 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
11174 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
11176 2007-12-13 Geert Bosch <bosch@adacore.com>
11178 * s-parame-vxworks.adb:
11179 Update comments to reflect usage of this package by Nucleus.
11181 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11183 * i-vxwork.ads: Kill new warning on Convention C, since changing the
11184 spec would break code.
11186 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
11188 * system-vxworks-alpha.ads: Removed.
11190 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
11192 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
11194 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
11197 * sem_ch3.adb (Designates_T): New function.
11198 (Mentions_T): Factor reusable part of the logic into Designates_T.
11199 Consider non-access parameters and access and non-access result.
11200 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
11201 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
11203 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
11205 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
11208 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
11209 the new implementation of target-specific calls.
11211 2007-12-07 Olivier Hainque <hainque@adacore.com>
11213 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
11214 the designated full view, only follow a second level Full_View link
11215 for Non_Limited_Views of from_limited_with references.
11217 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
11220 * sem_ch6.adb (Process_Formals): Prevent an access type formal
11221 to be initialized with an access to constant object.
11223 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
11224 when an access to constant is used to initialize an access
11228 * a-direct.adb (Compose): Containing_Directory can be an empty string.
11230 2007-12-07 Olivier Hainque <hainque@adacore.com>
11233 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
11234 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
11235 this is from an alignment clause on the GNAT entity.
11236 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
11237 to distinguish the case where we set it from the type's alignment.
11238 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
11239 whether this alignment was set from an explicit alignment clause.
11241 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
11243 * decl.c (make_packable_type): Revert last change.
11244 (gnat_to_gnu_field): Avoid setting size and position multiple times.
11245 * utils.c (finish_record_type): Retrieve the real name of the type.
11247 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
11249 * trans.c (lvalue_required_p): Take base node directly instead
11250 of its parent. Rename second parameter to 'gnu_type'.
11251 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
11252 <N_Slice>: Likewise.
11253 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
11254 Adjust calls to lvalue_required_p.
11256 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
11259 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
11260 parameters of an entry call.
11262 2007-12-03 Robert Dewar <dewar@adacore.com>
11263 Samuel Tardieu <sam@rfc1149.net>
11266 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
11267 of variables declared in a library-level package.
11269 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
11271 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
11272 of Empty_String'Unchecked_Access.
11274 * Makefile.in: Add support for sh4-linux.
11276 * system-linux-sh4.ads: New file.
11278 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
11281 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
11282 and its argument must not be free()ed.
11284 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
11286 * decl.c (make_packable_type): Retrieve the real name of the type.
11287 (maybe_pad_type): Simplify similar code.
11289 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
11292 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
11293 than an identifier is used after "case" in a variant_part.
11296 * par-ch4.adb (Is_Parameterless_Attribute): New map.
11297 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
11298 attribute name or not depending on the new map.
11300 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
11301 returning a string or a type will not be called with improper
11304 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
11306 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
11309 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
11310 Signal an error when attribute argument is a fixed-point value of
11314 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
11315 a derived ordinary fixed point type.
11317 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
11318 RM_Size when a Small clause is found.
11320 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
11323 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
11324 Pass 'false' for the new allocate_struct_function parameter.
11325 * utils.c (build_function_stub): Likewise.
11327 2007-11-25 Richard Guenther <rguenther@suse.de>
11329 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
11330 (gnat_poplevel): Likewise.
11332 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
11334 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
11335 strict alignment, no alignment clause and a known static size, cap
11336 the type alignment to the greatest power of 2 factor of the size.
11337 (gnat_to_gnu_field): If the field has a component clause, is aliased
11338 or of a type with strict alignment, require that its size be equal to
11340 (validate_size): Use the type size as the minimum size for a type with
11343 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
11345 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
11346 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
11347 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
11348 Use 'Access instead of 'Unchecked_Access in second and third
11349 arguments of pthread_sigmask.
11351 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
11353 * decl.c (ceil_alignment): New function.
11354 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
11355 (make_packable_type): Likewise.
11357 2007-11-22 Olivier Hainque <hainque@adacore.com>
11359 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
11360 to fit in 80 columns.
11362 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
11364 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
11365 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
11367 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
11370 * misc.c (gnat_adjust_rli): Delete.
11371 (gnat_init): Do not initialize the translation code here.
11372 Do not call set_lang_adjust_rli.
11373 * trans.c (init_code_table): Make static.
11374 (gnat_init_stmt_group): Delete.
11375 (gigi): Initialize the translation code entirely here.
11376 Emit debug info for the common types here instead of...
11377 * utils.c (gnat_init_decl_processing): ...here.
11378 * gigi.h (init_code_table): Delete.
11379 (gnat_init_stmt_group): Likewise.
11381 2007-11-16 Olivier Hainque <hainque@adacore.com>
11383 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
11384 retrieving an allocator return value from a super-aligned address from
11386 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
11387 expect a super-aligned address for a fat or thin pointer.
11389 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
11391 * trans.c (call_to_gnu): Always set the source location on the call
11392 expression. If the function returns-by-target, also set it on the
11393 address expression.
11395 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
11397 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
11398 sections of non-supported Interix target.
11400 * s-osinte-interix.ads: Removed.
11402 * i-cstrin.ads (chars_ptr): Make it a C convention type.
11404 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
11406 * a-tasatt.adb: Add a comment at the beginning of the package
11407 explaining why in general 'Unchecked_Access must be used instead
11410 * sem_prag.adb (Process_Convention): Move the test for the
11411 entity on which the Convention pragma applies down to also
11412 forbid pragma Convention on enumeration literals reached
11415 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
11417 * a-tasatt.adb: Revert previous change for this file as it will
11418 generate an error when this package is instantiated from a
11421 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
11423 * a-tasatt.adb: Type Wrapper should be declared in comment instead
11424 of already declared type Node_Access.
11425 Use 'Access instead of 'Unchecked_Access when applicable. Local
11426 lifetime is the one of the package.
11427 (Set_Value): W is allocated on the heap.
11429 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
11431 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
11433 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
11436 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
11438 (elaboration code): Timer_Queue lifetime is the one of the
11441 * tracebak.c (i386 alternative): Remove useless comparaison
11442 which is always false; LOWEST_ADDRESS is 0 and is never greater
11443 than an unsigned integer.
11445 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
11446 embedded check for "Ada_Version >= Ada_05".
11448 2007-11-07 Olivier Hainque <hainque@adacore.com>
11450 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
11451 craft and expand comment.
11453 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
11455 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
11457 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
11459 * misc.c (gnat_handle_option): Replace call to abort with
11460 call to gcc_unreachable.
11461 (gnat_init): Likewise.
11462 (gnat_expand_expr): Likewise.
11463 (fp_prec_to_size): Likewise.
11464 (fp_size_to_prec): Likewise.
11466 2007-10-23 Richard Guenther <rguenther@suse.de>
11469 * tracebak.c: #undef abort after including system.h.
11471 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
11473 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
11474 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
11476 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
11478 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
11480 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
11481 Set the protection status of the guard page based on the value of On.
11483 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
11485 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
11486 (Exit_Task): Pass False to Hide_Yellow_Zone.
11488 2007-10-15 Robert Dewar <dewar@adacore.com>
11490 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
11491 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
11492 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
11493 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
11494 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
11495 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
11496 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
11497 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
11498 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
11499 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
11500 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
11501 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
11502 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
11503 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
11504 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
11505 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
11506 Minor reformatting.
11507 Add Unreferenced and Warnings (Off) pragmas for cases of
11508 variables modified calls where they are IN OUT or OUT parameters and
11509 the resulting values are not subsequently referenced. In a few cases,
11510 we also remove redundant code found by the new warnings.
11512 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
11513 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
11514 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
11515 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
11516 warning controlled by -gnatw.o that warns on cases of out parameter
11517 values being ignored.
11519 2007-10-15 Geert Bosch <bosch@adacore.com>
11521 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
11523 * expect.c: Initial port to arm-mentor-nucleus.
11524 Use kill for __gnat_kill() on VMS.
11526 2007-10-15 Emmanuel Briot <briot@adacore.com>
11528 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
11530 (Xref_Record): Change type for Line, since in the case of a reference to
11531 a predefined entity (as happens for array index types), the line is set
11533 Add support for parsing multiple array index types info, or
11534 multiple inherited interfaces info. This information cannot be stored
11535 in Xref_Entity_Record, which only supports a single instance of Tref_*,
11536 and is therefore stored in the list of references instead. It has a
11537 special treatement later on in tools that use this information.
11539 2007-10-15 Tristan Gingold <gingold@adacore.com>
11541 * debug.adb: Document use of -gnatd.a and -gnatd.I
11543 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
11545 2007-10-15 Javier Miranda <miranda@adacore.com>
11547 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
11548 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
11549 care of access to class-wide interface types plus removal of bizarre
11550 conversion of tagged object to access type (reported by Gary
11551 Dismukes). After this patch there is no need to perform any
11552 additional management on these nodes in Expand_Interface_Actuals.
11554 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
11555 that handles use of 'Access and 'Unchecked_Access applied to
11556 actuals covering interface types. Such code is now
11557 centralized in Expand_N_Attribute_Reference.
11559 2007-10-15 Ed Schonberg <schonberg@adacore.com>
11561 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
11562 of tagged types whose ultimate ancestor is a CPP type.
11563 (Freeze_Array_Type): For a packed array type, generate an initialization
11564 procedure if the type is public, to handle properly a client that
11565 specifies Normalize_Scalars.
11567 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
11569 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
11570 inside a generic body, retrieve the full view of the entry family
11571 discrete subtype if available.
11573 2007-10-15 Thomas Quinot <quinot@adacore.com>
11575 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
11576 attempt to generate stubs for hidden primitive operations.
11578 2007-10-15 Vincent Celier <celier@adacore.com>
11580 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
11581 returning None, used when there is no platform specific body for
11584 2007-10-15 Bob Duff <duff@adacore.com>
11586 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
11587 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
11588 the generic Heap_Sort_G, in order to avoid trampolines.
11590 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
11591 Jose Ruiz <ruiz@adacore.com>
11593 * vx_stack_info.c: New file.
11595 * i-forbla-unimplemented.ads: New file.
11597 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
11598 for unsupported configurations; use it on VMS targets instead of the
11600 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
11601 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
11602 used by VxWorks targets to have access to task-specific data and be
11603 able to extract the stack boundaries for stack checking.
11604 Use system-vms-ia64.ads on ivms.
11606 * Make-lang.in: Update dependencies.
11608 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
11611 2007-10-15 Vincent Celier <celier@adacore.com>
11613 * snames.adb, snames.ads: Add new standard name runtime_library_dir
11615 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
11617 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
11619 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
11620 the source is unknown.
11622 * prj-ext.adb: Spelling error fix
11624 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
11625 95 reserved word in its name.
11626 (Process_Project_Level_Array_Attributes): Process new attribute
11627 Runtime_Library_Dir.
11629 * prj-part.adb (Parse_Single_Project): Do not check the name of the
11630 config project against the user project names.
11632 * prj-proc.adb (Expression): In multi-language mode, indexes that do
11633 not include a dot are always case insensitive.
11634 (Process_Declarative_Items): Ditto
11635 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
11638 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
11639 True, compare both indexes in lower case.
11641 2007-10-15 Robert Dewar <dewar@adacore.com>
11643 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
11645 2007-10-15 Gary Dismukes <dismukes@adacore.com>
11647 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
11648 association for an access component, add an association with null as
11649 the expression. Remove testing for array subtypes and the setting in
11650 that case of Ctyp to the array component type, which prevented proper
11651 inclusion of an association for null-initialized arrays. Collapse
11652 condition that tests for array subtypes into just a test of
11653 Is_Partially_Initialized_Type (which already covers arrays anyway).
11655 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
11657 * sem_ch12.adb: Minor code reformatting.
11658 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
11659 find the parent package which may have been hidden by local
11662 2007-10-15 Gary Dismukes <dismukes@adacore.com>
11664 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
11665 flag of derived concurrent types, taking into account the flag setting
11666 on the parent subtype and any new set of discriminants.
11668 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
11670 * sem_ch4.adb: Minor code and comment reformatting.
11671 (Analyze_Allocator): When the designated type of an unconstrained
11672 allocator is a record with unknown discriminants or an array with
11673 unknown range bounds, emit a detailed error message depending on the
11674 compilation mode and whether the designated type is limited.
11676 2007-10-15 Tristan Gingold <gingold@adacore.com>
11678 * system-vms-ia64.ads: New file.
11680 * system-vms_64.ads: Minor comment fix.
11682 2007-10-15 Ed Schonberg <schonberg@adacore.com>
11684 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
11685 body generated for a function with a controlling result that is a null
11686 extension, discard the generated body in favor of the current explicit
11689 2007-10-15 Ed Schonberg <schonberg@adacore.com>
11691 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
11692 examining its original form, to handle properly operator calls that
11693 have been rewritten.
11695 2007-10-15 Olivier Hainque <hainque@adacore.com>
11697 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
11698 instead of a procedure value in each traceback entry.
11700 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
11701 instead of procedure value to TBK$SYMBOLIZE.
11703 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
11705 (TB_Entry_For): Account for the PV/FP renaming.
11707 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
11709 (Null_TB_Entry): Account for change of component name.
11710 (PV_For): Rename as FP_For.
11712 2007-10-15 Tristan Gingold <gingold@adacore.com>
11714 * trans.c (gnat_to_gnu): Remove the padding structure more often.
11715 This optimize assignment to over-aligned record.
11717 2007-10-15 Emmanuel Briot <briot@adacore.com>
11719 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
11722 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
11723 type, for dispatching calls.
11725 2007-10-15 Vincent Celier <celier@adacore.com>
11726 Robert Dewar <dewar@adacore.com>
11728 * gnat_ugn.texi: Add documentation for switches --version and --help
11729 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
11730 gnatxref, gnatfind, gnatls, and gnatclean.
11732 Mention attribute Excluded_Source_Dirs
11733 Replace obsolescent attribute Locally_Removed_Files with attribute
11734 Excluded_Source_Files.
11735 Improve documentation of -u (gnatbind)
11736 Document how to do reliable stack checking for the environmental task
11739 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
11740 Document attribute Excluded_Source_Files and indicate that attribute
11741 Locally_Removed_Files is obsolescent.
11743 2007-10-15 Thomas Quinot <quinot@adacore.com>
11745 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
11748 Update documentation to note that OpenVMS 8.3 or later must be used
11749 to generate g-soccon-vms.ads.
11751 * atree.adb: Add ??? comment
11753 * exp_util.adb: Minor reformatting.
11754 Add ??? comment in Kill_Dead_Code.
11756 2007-10-15 Robert Dewar <dewar@adacore.com>
11758 * errout.ads: Comment clarification
11760 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
11761 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
11763 * lib.ads: Comment update
11765 * init.c: Minor reformatting.
11767 * sem_attr.adb: Minor formatting
11769 * osint-b.ads: Minor reformatting
11771 * sem_ch9.adb: Implement -gnatd.I switch
11773 * g-comlin.adb: (Start): Fix handling of empty command line.
11775 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
11776 even when -rules follows the -cargs section.
11778 2007-10-08 Ollie Wild <aaw@google.com>
11780 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
11782 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
11784 (gnat_eh_runtime_type): Removed.
11785 (gnat_return_tree): New function.
11787 2007-10-08 Ben Elliston <bje@au.ibm.com>
11791 2007-08-31 Ben Elliston <bje@au.ibm.com>
11793 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
11794 when compiling for powerpc64-*-linux.
11795 * system-linux-ppc64.ads: New file.
11797 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
11799 Mapped location support
11800 * back_end.adb (Call_Back_End): Pass information about source
11801 files instead of units to gigi.
11802 * gigi.h (struct File_Info_Type): New.
11803 (gigi): Rename and change type of number_units parameter, change
11804 type of file_info_ptr parameter.
11805 * trans.c (number_files): New global variable.
11806 (gigi): Rename and change type of number_units parameter, change
11807 type of file_info_ptr parameter.
11808 If mapped location support is enabled, create the isomorphic mapping
11809 between source files and line maps.
11810 (Sloc_to_locus): If mapped location support is enabled, translate
11811 source location into mapped location.
11812 (annotate_with_node): Rename into set_expr_location_from_node.
11813 Call set_expr_location instead of annotate_with_locus.
11814 (Pragma_to_gnu): Adjust for above change.
11815 (Loop_Statement_to_gnu): Likewise.
11816 (call_to_gnu): Likewise.
11817 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
11818 (gnat_to_gnu): Likewise.
11819 (add_stmt_with_node): Likewise.
11820 (add_cleanup): Likewise.
11821 * utils.c (gnat_init_decl_processing): Do not set input_line.
11823 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
11825 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
11826 (Applicable_Use): Emit a warning when a package tries to use itself.
11827 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
11828 is already in use or the package where it is declared is in use or is
11829 declared in the current package.
11830 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
11832 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
11833 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
11834 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
11836 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
11838 * a-calend-vms.adb, a-calend.adb:
11839 Add a section on leap seconds control along with two entities used to
11840 enable and disable leap seconds support. The array Leap_Second_Times is
11841 now constant and contains hard time values pre-generated. Remove
11842 all elaboration code used to populate the table of leap seconds.
11845 Add entity Leap_Seconds_Support to the list of global run-time variables
11846 along with a comment on its usage and values.
11847 (Gen_Adainit_Ada): Add code to generate the declaration and import of
11848 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
11849 or one (enabled) depending on the presence of binder switch "-y".
11850 (Gen_Adainit_C): Add code to generate the declaration of external int
11851 __gl_leap_seconds_support. Set is value to zero (disabled) or one
11852 (enabled) depending on the presence of binder switch "-y".
11854 * init.c: Add __gl_leap_seconds_support to the list of global values
11855 computed by the binder.
11857 2007-09-26 Jerome Guitton <guitton@adacore.com>
11859 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11860 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
11861 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
11862 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
11864 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
11866 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
11867 function which can be called by the debugger to interrupt the tasks of
11868 an Ada application asynchronously, as needed on VxWorks.
11869 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
11871 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
11872 renamed from Stop_All_Tasks. Update comments.
11873 (Stop_All_tasks): New function declaration.
11875 2007-09-26 Olivier Hainque <hainque@adacore.com>
11877 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
11878 #include <utime.h> and #define GCC_RESOURCE_H before
11879 #include <sys/wait.h>.
11880 Add more protections in __gnat_translate_vms.
11882 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
11883 #include <sys/wait.h>.
11885 2007-09-26 Thomas Quinot <quinot@adacore.com>
11886 Sergey Rybin <rybin@adacore.com>
11888 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
11890 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
11893 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
11895 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
11898 * sem_dist.ads: Minor comment fix
11900 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
11902 2007-09-26 Javier Miranda <miranda@adacore.com>
11903 Eric Botcazou <ebotcazou@adacore.com>
11906 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
11907 indirection added to the HT_Link component of the TSD. This is required
11908 to statically allocate the TSD.
11911 Minor reordering of the declarations in the private part. Required to
11912 add a level of indirection to the contents of the TSD component HT_Link.
11913 This is required to statically allocate the TSD.
11915 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
11916 Is_Statically_Allocated set from constant objects.
11917 Do not make exported constants created by the compiler volatile.
11918 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
11921 * trans.c (Identifier_to_gnu): For constants, unshare initializers
11922 before returning them.
11924 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
11925 public part of the package.
11926 (Make_DT): Move HT_Link component out of the TSD record. For this
11927 purpose Make_DT now declares a separate object that stores the
11928 HT_Link value, and initializes the TSD component with the address
11929 of this new object. The addition of this level of indirection is
11930 required to statically allocate the TSD because the TSD cannot
11931 have variable components.
11932 (Expand_Interface_Conversion): Improve the expanded code.
11933 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
11935 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
11936 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
11937 if we are building static dispatch tables then we must not generate
11938 extra code to register the primitive because the dispatch table will
11939 be built at the end of the library package; otherwise we notify that
11940 we cannot build the static dispatch table.
11942 2007-09-26 Robert Dewar <dewar@adacore.com>
11944 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
11947 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
11948 (Analyze_Record_Representation_Clause): Suppress junk warning for
11949 missing component clause.
11950 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
11951 tests for controlled type overlay to composites with controlled
11953 (Analyze_Record_Representation_Clause): Add reference for component name
11955 2007-09-26 Javier Miranda <miranda@adacore.com>
11956 Gary Dismukes <dismukes@adacore.com>
11958 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
11959 for thunks associated with interface types.
11961 * einfo.ads: Improve documentatation of Is_Internal
11962 (Is_Thunk): New attribute applicable to subprograms. True for thunks
11963 associated with interface types.
11964 Extensive comment fixes regarding flags that appear in all entities. The
11965 documentation is now consistent for all such flags (there were a number
11966 of errors in the documentation in this regard).
11968 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
11970 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
11971 of these procedures are passed a function call that already has
11972 build-in-place actuals (testing new flag
11973 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
11974 the case where processing continues.
11975 (Expand_Call): If the call is generated from a thunk body then we
11976 propagate the extra actuals associated with the accessibility
11977 level of the access type actuals.
11979 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
11980 of each extra formal of a protected operation to reference the
11981 corresponding extra formal of the subprogram denoted by the
11982 operation's Protected_Body_Subprogram.
11984 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
11985 N_Function_Call nodes.
11987 2007-09-26 Robert Dewar <dewar@adacore.com>
11989 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
11991 * debug.adb: Add d.s flag.
11993 2007-09-26 Gary Dismukes <dismukes@adacore.com>
11995 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
11996 debug variable so that it won't be initialized when pragma
11997 Initialize_Scalars is in effect.
11999 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12001 * freeze.adb (Freeze_Entity): Remove check for preelaborable
12002 initialization of a full view. This is moved to
12003 Analyze_Package_Specification.
12005 * sem_ch7.adb (Analyze_Package_Specification): Add check for
12006 preelaborable initialization of a full view in entity loop.
12007 (Uninstall_Declarations): If entity is a use-visible compilation unit,
12008 its child units are use-visible only if they are visible child units.
12010 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
12011 whether an expression can be used within a type declaration that
12012 requires preelaborable init.
12013 (Check_Components): Replace inline code that does partial checking for
12014 preelaborable default expressions with call to
12015 Is_Preelaborable_Expression.
12016 (Has_Preelaborable_Initialization): In the case of a generic actual
12017 subtype, (that is, Is_Generic_Actual is True), return the result of
12018 applying Has_Preelaborable_Initialization to the generic actual's base
12021 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
12023 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
12024 call to Jan_1_Day _Of_Week to optimize its performance.
12025 (Is_Leap): Move the routine to the scope of Week_In_Year.
12026 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
12027 weekday on which January 1 falls of Year - 1 and Year + 1. This function
12028 avoids calling Time_Of and Split, thus making it more efficent.
12029 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
12031 * g-calend.ads (Week_In_Year): Change comment to reflect new
12034 2007-09-26 Emmanuel Briot <briot@adacore.com>
12036 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
12037 Command_Line): New types
12038 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
12039 support for defining how switches can be grouped on a command line (as
12040 is the case for -gnatw... for GNAT), and how simple switches can be
12041 used as aliases for more complex switches (-gnatwa is same as
12043 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
12044 (Start, Current_*): New subprograms
12045 Added support for parsing an array of strings in addition to the real
12047 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
12048 be moved from the body to the private part of the spec.
12049 (*): All subprograms now have an extra parameter with default value to
12050 specify which parser should be used. For backward compatibility, it
12051 defaults to parsing the command line of the application. They were also
12052 modified to properly handle cases where each of the argument does not
12053 start at index 1 (which is always true for Ada.Command_Line, but not
12054 when processing any Argument_List).
12055 (Free): New subprogram
12056 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
12057 Argument): New subprograms
12058 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
12059 special characters like ':', '=',... are now handled in a single place,
12060 which makes the code more extensible eventually.
12061 (Getopt, Full_Switch): When the switch was returned as part of the
12062 special character '*', make sure it is prepended by the switch character
12063 ('-' in general), so that the application knows whether "foo" or "-foo"
12064 was specified on the command line.
12066 2007-09-26 Florian Villoing <villoing@adacore.com>
12068 * g-dirope.adb (Remove_Dir): In case we are removing directories
12069 recursively, make sure that if an exception is raised during the
12070 processing, the current working directory is reset to its initial
12071 value before propagating the exception.
12073 2007-09-26 Vincent Celier <celier@adacore.com>
12075 * gnatbind.adb: If there are several ALI files specified and there is
12076 a main program to bind, the first ALI is expected to contain the main
12077 subprogram and the names of the binder generated files will be derived
12078 from the first ALI file name.
12079 (Gnatbind): Fix insertion character in invocation of Error_Msg
12081 2007-09-26 Vincent Celier <celier@adacore.com>
12083 * gnatcmd.adb (Check_Files): Do not include sources that have been
12084 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
12086 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12088 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
12089 information about each of its index types, following the type
12090 reference for its component type.
12092 2007-09-26 Vincent Celier <celier@adacore.com>
12094 * make.adb: (Kill): New procedure (__gnat_kill imported)
12095 (Running_Compile, Outstanding_Compiles): Global variables that
12096 were previously local to procedure Compile_Sources.
12097 (Sigint_Intercepted): Send signal SIGINT to all outstanding
12098 compilation processes.
12100 (Gnatmake): If project files are used, create the mapping of all the
12101 sources, so that the correct paths will be found.
12103 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
12105 2007-09-26 Vincent Celier <celier@adacore.com>
12107 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
12109 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
12110 Replace components Compiler_Min_Options and Binder_Min_Options with
12111 Compiler_Required_Switches and Binder_Required_Switches in record
12113 Remove components Default_Language and Config in Project_Tree_Data,
12116 * prj-attr.adb: New attributes Required_Switches (<language>) in
12117 packages Compiler and Binder.
12119 * prj-nmsc.adb: Major rewrite of the processing of configuration
12120 attributes for gprbuild. No impact on GNAT tools.
12122 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
12123 process configuration attributes: this is done in Prj.Nmsc.Check.
12124 (Recursive_Process): Make a full copy of packages inherited from project
12125 being extended, instead of a shallow copy.
12126 (Process_Project_Tree_Phase_1): New procedure
12127 (Process_Project_Tree_Phase_1): New procedure
12128 (Process): Implementation now uses the two new procedures
12130 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
12131 from the project config, not the tree config that no longer exists.
12133 2007-09-26 Vincent Celier <celier@adacore.com>
12135 * Make-lang.in: Update dependencies..
12137 2007-09-26 Vincent Celier <celier@adacore.com>
12139 * osint.adb, osint.ads: Minor reformatting
12141 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
12143 2007-09-26 Gary Dismukes <dismukes@adacore.com>
12145 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
12146 message to cite use of <> in aggregate component associations rather
12147 than wrongly indicating use of limited aggregates.
12149 2007-09-26 Robert Dewar <dewar@adacore.com>
12151 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
12154 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12156 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
12157 ancestor of the derived type, the operations are inherited from the
12158 primary dispatch table of the parent.
12159 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
12160 when the context is an explicit type conversion.
12162 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12164 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
12165 rule for qualified expressions properly, to detect improper conversions
12166 and resolve some cases of overloading.
12168 2007-09-26 Ed Schonberg <schonberg@adacore.com>
12170 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
12171 proper kind of reference to the primitive operation, for better source
12173 (Valid_Conversion): A tagged conversion is legal if both operands are
12176 2007-09-26 Robert Dewar <dewar@adacore.com>
12178 * sem_warn.adb (Check_References): Catch more cases of unreferenced
12181 2007-09-26 Vincent Celier <celier@adacore.com>
12183 * snames.adb, snames.ads: Change Include_Option to Include_Switches
12185 2007-09-26 Robert Dewar <dewar@adacore.com>
12187 * s-wchstw.adb: provide messages for run time unit exceptions
12189 * a-witeio.adb: Minor reformatting
12191 * exp_ch13.adb: Minor reformatting
12193 2007-09-26 Sergey Rybin <rybin@adacore.com>
12195 * vms_data.ads: Revise gnatmetric qualifiers.
12196 Add qualified for the new gnatbind option '-y'
12198 * gnat_ugn.texi: Revise the gnatmetric section.
12199 Add entry for new gnatbind option '-y'.
12201 * gnat_rm.texi: Minor spelling correction.
12202 Document restriction on overlaying controlled types
12204 2007-09-26 Vincent Celier <celier@adacore.com>
12206 * makegpr.adb (Link_Executables): Do not fail when the root project has
12207 no sources, but is an extending project.
12209 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
12211 * trans.c: Fix misplaced #define.
12213 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
12215 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
12216 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
12218 2007-09-21 Olivier Hainque <hainque@adacore.com>
12220 * utils.c (type_for_nonaliased_component_p): Return false for
12221 all AGGREGATE_TYPEs.
12223 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
12225 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
12226 object covered by 13.3(19) volatile.
12228 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
12232 * utils.c (unchecked_convert): Use a subtype as the intermediate type
12233 in the special VIEW_CONVERT_EXPR case.
12235 2007-09-12 Robert Dewar <dewar@adacore.com>
12237 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
12239 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
12240 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
12241 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
12242 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
12243 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
12244 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
12245 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
12246 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
12247 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
12248 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
12249 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
12250 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
12251 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
12252 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
12253 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
12254 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
12255 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
12256 pragma Compiler_Unit and adds it to relevant library units.
12258 2007-09-12 Ed Schonberg <schonberg@adacore.com>
12260 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
12261 a box need not correspond to any component.
12263 2007-09-12 Robert Dewar <dewar@adacore.com>
12265 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
12266 the tasking version of the Ada run time when foreign threads are
12267 present and there are no explicit Ada tasks or tasking constructs.
12269 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
12271 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
12273 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
12274 the usage of switch -y.
12276 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
12277 when switch -y is present.
12279 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
12280 leap seconds in Ada.Calendar and its children.
12282 2007-09-12 Jose Ruiz <ruiz@adacore.com>
12284 * a-extiti.ads (Timer): The discriminant is a "not null access
12285 constant" in the Reference Manual.
12286 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
12288 2007-09-12 Robert Dewar <dewar@adacore.com>
12290 * a-swuwha.adb: Remove junk RM header
12292 2007-09-12 Vincent Celier <celier@adacore.com>
12294 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
12297 * g-bytswa.ads: Minor reformatting
12299 2007-09-12 Thomas Quinot <quinot@adacore.com>
12301 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
12302 Add new constant Thread_Blocking_IO, always True by default, set False
12303 on a per-runtime basis.
12304 (Need_Netdb_Buffer): New constant.
12306 2007-09-12 Arnaud Charlet <charlet@adacore.com>
12308 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
12309 Added renames for corresponding functions in System.Partition_Interface.
12311 2007-09-12 Doug Rupp <rupp@adacore.com>
12313 * Makefile.in: Remove VMS specific System.CRTL packages which are no
12316 * s-crtl-vms64.ads: Removed.
12318 2007-09-12 Olivier Hainque <hainque@adacore.com>
12320 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
12321 with discriminant constraints, generalize the code for BIT_FIELDs
12322 to PACKED fields of constant size and propagate DECL_PACKED.
12324 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
12326 * decl.c (array_type_has_nonaliased_component): New predicate.
12327 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
12328 set the TYPE_NONALIASED_COMPONENT flag on the type.
12329 <E_Array_Subtype>: Likewise.
12330 * gigi.h (type_for_nonaliased_component_p): Declare.
12331 * utils.c (type_for_nonaliased_component_p): New predicate.
12332 (create_field_decl): Invoke the above predicate to set the
12333 DECL_NONADDRESSABLE_P flag on the field.
12335 2007-09-11 Javier Miranda <miranda@adacore.com>
12337 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
12338 in library level record type entities if we are generating statically
12339 allocated dispatch tables.
12341 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
12342 importing/exporting the _tag declaration by new code
12343 importing/exporting the dispatch table wrapper. This change allows us
12344 to statically allocate of the TSD.
12345 (Make_DT.Export_DT): New procedure.
12346 (Build_Static_DT): New function.
12347 (Has_DT): New function.
12349 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
12350 True_Constant and Current_Value. Required to statically
12351 allocate the dispatch tables.
12352 (Check_Allocator): Make function iterative instead of recursive.
12353 Also return inner allocator node, when present, so that we do not have
12354 to look for that node again in the caller.
12356 2007-09-11 Jan Hubicka <jh@suse.cz>
12358 * misc.c (gnat_expand_body): Kill.
12359 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
12361 2007-09-10 Robert Dewar <dewar@adacore.com>
12363 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
12364 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
12365 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
12366 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
12367 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
12368 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
12369 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
12370 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
12371 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
12372 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
12373 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
12374 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
12375 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
12376 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
12377 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
12378 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
12379 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
12380 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
12381 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
12382 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
12383 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
12384 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
12385 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
12386 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
12387 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
12388 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
12389 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
12390 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
12391 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
12392 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
12393 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
12394 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
12395 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
12396 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
12397 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
12398 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
12399 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
12400 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
12401 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
12402 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
12403 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
12404 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
12405 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
12406 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
12407 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
12408 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
12409 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
12410 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
12411 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
12412 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
12413 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
12414 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
12415 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
12416 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
12417 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
12418 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
12419 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
12420 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
12421 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
12422 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
12423 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12424 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
12425 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
12426 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
12427 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
12428 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
12429 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
12430 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
12431 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
12432 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
12433 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
12434 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
12435 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
12436 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
12437 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
12438 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
12439 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
12440 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
12441 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
12442 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
12443 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
12444 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
12445 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
12447 2007-09-10 Emmanuel Briot <briot@adacore.com>
12449 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
12452 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
12454 * adaint.c (__gnat_translate_vms): new function.
12456 2007-09-10 Gary Dismukes <dismukes@adacore.com>
12457 Thomas Quinot <quinot@adacore.com>
12459 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
12460 create an abstract subprogram in the case of 'Input. For 'Output we now
12461 create a real spec/body when the type is abstract, since it can
12462 potentially be called.
12463 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
12464 body for 'Output when the type is abstract (only the creation of the
12465 body for 'Input is excluded when the type is abstract).
12466 (Stream_Operation_OK): Add an additional condition in the return
12467 statement, so that False will be returned for TTS_Stream_Input if the
12468 associated tagged type is an abstract extension. Add comments for
12470 (Expand_N_Object_Declaration): For the case of a shared passive
12471 variable, insert init proc call only after the shared variable
12472 procedures have been processed, because the IP call needs to undergo
12473 shared passive variable reference expansion, which requires these
12474 procedures to be available (and elaborated).
12476 2007-09-10 Vincent Celier <celier@adacore.com>
12478 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
12479 parameter Runtime_Project.
12481 2007-09-10 Ed Schonberg <schonberg@adacore.com>
12483 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
12484 given a box association, the type of the component is discriminated,
12485 and the value of the discriminant is the discriminant of the enclosing
12486 type, retrieve its value from the aggregate itself, where it must have
12489 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
12490 to remove other spurious ambiguities on arithmetic operations involving
12491 literals and addresses, on systems where Address is a visible integer
12492 type, when the operator is called in functional notation.
12493 (Try_Primitive_Operation): Within an instance, a call in prefixed form
12494 is legal when the types match, even if the operation is currently
12497 2007-09-10 Ed Schonberg <schonberg@adacore.com>
12499 * sem_ch12.adb (Build_Local_Package): A formal package with no
12500 associations is legal if all formals have defaults. It is not
12501 equivalent to a formal declared with a box.
12503 2007-09-10 Sergey Rybin <rybin@adacore.com>
12505 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
12507 2007-09-10 Sergey Rybin <rybin@adacore.com>
12509 * gnat_ugn.texi: Add description of the new '-lratio' option
12510 Update 7.3.1 section about availability of the feature.
12512 2007-09-10 Thomas Quinot <quinot@adacore.com>
12514 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
12517 2007-09-10 Olivier Hainque <hainque@adacore.com>
12519 * Makefile.in: (mips-irix section): Activate build of libgmem.
12521 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
12523 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
12526 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
12528 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
12529 a debug renaming declaration specially.
12531 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
12533 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
12534 which a constant renaming is treated as a normal object declaration.
12535 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
12536 the N_Indexed_Component case.
12537 <N_Indexed_Component>: Fall through to above case.
12538 <N_Object_Renaming_Declaration>: Return true for all composite types.
12540 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
12542 * decl.c (make_packable_type): If the new type has been given BLKmode,
12543 try again to get an integral mode for it.
12545 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
12547 Re-apply accidentally reverted change:
12549 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
12551 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
12552 get_action_description_for): Replace _Unwind_Word with _uleb128_t
12553 and _Unwind_SWord with _sleb128_t.
12555 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
12557 * trans.c (convert_with_check): Update call to real_2expN.
12559 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
12561 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
12562 * utils.c (end_subprog_body): Likewise.
12564 2007-09-03 Nick Clifton <nickc@redhat.com>
12566 * Make-lang.in: Change copyright header to refer to version 3 of
12567 the GNU General Public License and to point readers at the
12568 COPYING3 file and the FSF's license web page.
12569 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
12570 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
12571 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
12572 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
12575 2007-08-31 Vincent Celier <celier@adacore.com>
12579 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
12580 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
12581 (Check_Version_And_Help): New procedure in package Switch to process
12582 switches --version and --help.
12583 Use Check_Version_And_Help in GNAT tools
12586 (Compile_Sources): Make sure that sources that are "excluded" are not
12588 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
12589 project file is used.
12590 (Version_Switch): Remove, moved to Switch
12591 (Help_Switch): Remove, moved to Switch
12592 (Display_Version): Remove, moved to Switch
12594 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
12595 package Switch to process switches --version and --help.
12596 (Display_Version): New procedure
12598 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
12600 2007-08-31 Javier Miranda <miranda@adacore.com>
12602 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
12605 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
12607 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
12608 (Mark_Non_Null): If the node for which we just generated an access check
12609 is a reference to an *in* parameter and the reference appears in the
12610 declarative part of a subprogram body, mark the node as known non null.
12612 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
12614 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
12615 structure of E_Exception to reflect the new flag.
12616 (Is_Raised, Set_Is_Raised): New inlined routines.
12617 Update the usage of available flag to reflect the addition of Is_Raised.
12618 (Is_Raised, Set_Is_Raised): Bodies of new routines.
12619 (Write_Entity_Flags): Write the status of flag Is_Raised.
12620 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
12621 spurious ambiguities when integer literals appear in the context of an
12622 address type that is a visible integer type.
12624 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
12625 exceptions never being raised.
12626 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
12629 2007-08-31 Javier Miranda <miranda@adacore.com>
12631 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
12632 statement when compiling under restriction No_Exceptions_Proparation.
12634 2007-08-31 Ed Schonberg <schonberg@adacore.com>
12636 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
12637 initialization aggregate for the type, generate itype references for
12638 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
12640 2007-08-31 Gary Dismukes <dismukes@adacore.com>
12642 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
12643 library-level package renaming, pass the declaration associated with
12644 the renaming's special debug variable to Qualify_Entity_Names to ensure
12645 that its encoded name is properly qualified.
12647 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
12648 occurring in the list of entities to qualify, and do not attempt to
12649 traverse an entity list in that case. Variables associated with
12650 ` library-level package renamings can now occur in the table.
12652 * exp_dbug.ads: Revise documentation of the encoding for renaming
12655 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12657 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
12658 access type points to an unconstrained array.
12660 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
12662 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
12665 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
12666 simple redundant qualifications. The check is performed whenever the
12667 expression is a non-overloaded identifier.
12668 (Resolve_Type_Conversion): Enchance the redundant type conversion check
12669 to include loop parameters.
12670 (Valid_Conversion): Avoid generation of spurious error message.
12672 2007-08-31 Bob Duff <duff@adacore.com>
12674 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
12675 concatenations of string literals into a single literal, in order to
12676 avoid very deep recursion in the front end, which was causing stack
12679 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
12680 string, and the right operand is a string literal (the case of "" &
12681 "..."), optimize by avoiding copying the right operand -- just use the
12682 value of the right operand directly.
12684 * stringt.adb (Store_String_Chars): Optimize by growing the
12685 String_Chars table all at once, rather than appending characters one by
12687 (Write_String_Table_Entry): If the string to be printed is very long,
12688 just print the first few characters, followed by the length. Otherwise,
12689 doing "pn(n)" in the debugger can take an extremely long time.
12691 * sem_prag.adb (Process_Interface_Name): Replace loop doing
12692 Store_String_Char with Store_String_Chars.
12694 2007-08-31 Vincent Celier <celier@adacore.com>
12696 * prj-attr.adb: Add new attribute Excluded_Source_Files
12698 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
12699 Locally_Removed_Files.
12701 * snames.ads, snames.adb: New standard name Excluded_Source_Files
12703 2007-08-31 Ed Schonberg <schonberg@adacore.com>
12705 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
12706 clauses of subunits, ignore limited_with_clauses that are illegal and
12707 have not been fully analyzed.
12709 2007-08-31 Ed Schonberg <schonberg@adacore.com>
12711 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
12712 flag, for effiency. It is called when analyzing arithmetic operators
12713 and also for actuals in calls that are universal_integers. The flag is
12714 set for the predefined type address, and for any type or subtype
12717 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
12718 Universal_Integer, when the formal is a descendent of address and the
12719 call appears in user code.
12720 (Analyze_Selected_Component): if the prefix is a private extension, the
12721 tag component is visible.
12723 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
12726 2007-08-31 Robert Dewar <dewar@adacore.com>
12728 * s-fileio.adb (Open): Normalize file name to lower case in non-case
12729 sensitive file name systems to avoid unexpected mismatch in Vista.
12731 2007-08-31 Vincent Celier <celier@adacore.com>
12733 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
12735 2007-08-31 Vincent Celier <celier@adacore.com>
12737 * symbols-vms.adb (Initialize): Read symbol files with continuation
12739 (Finalize): If symbol is long, split the line
12741 2007-08-31 Vincent Celier <celier@adacore.com>
12743 * fmap.ads: Minor comment updates
12745 2007-08-31 GNAT Script <nobody@adacore.com>
12747 * Make-lang.in: Makefile automatically updated
12749 2007-08-31 Bob Duff <duff@adacore.com>
12751 * sinfo.ads: Minor comment fix.
12753 2007-08-31 Thomas Quinot <quinot@adacore.com>
12755 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
12756 with implementation.
12757 Documentation cleanup only.
12759 2007-08-31 Sergey Rybin <rybin@adacore.com>
12761 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
12762 gnatpp '--separate-stmt-name' option.
12763 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
12766 * gnat_ugn.texi: Add description for the new gnatpp
12767 '--separate-stmt-name' and '--use-on-new-line' options.
12769 2007-08-31 Ben Elliston <bje@au.ibm.com>
12771 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
12772 when compiling for powerpc64-*-linux.
12773 * system-linux-ppc64.ads: New file.
12775 2007-08-22 Krister Walfridsson <cato@df.lth.se>
12777 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
12780 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12782 * misc.c (gnat_type_max_size): Constify.
12784 2007-08-16 Gary Dismukes <dismukes@adacore.com>
12786 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
12787 associated with Standard_Debug_Renaming_Type, to be used as the type of
12788 the special variables whose names provide debugger encodings for
12789 renaming declarations.
12791 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
12792 (Set_Debug_Renaming_Link): Change to set Node25.
12793 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
12794 (Write_Field25_Name): Add case for E_Variable to output
12795 "Debug_Renaming_Link".
12796 (Write_Field23_Name): Correct the output string for "Limited_View".
12798 * exp_dbug.adb: Add with and use of Tbuild.
12799 (Debug_Renaming_Declaration): Replace creation of an enumeration type
12800 and literal with creation of a variable of type
12801 Standard_Debug_Renaming_Type whose name encodes both the renamed object
12802 and the entity of the renaming declaration.
12803 (Qualify_Entity_Name): Add the delayed qualification of the entity name
12804 part of the name of a variable that has a Debug_Renaming_Link.
12806 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
12807 special type to be associated with variables that provide debugger
12808 encodings for renaming declarations.
12810 2007-08-16 Gary Dismukes <dismukes@adacore.com>
12811 Ed Schonberg <schonberg@adacore.com>
12812 Javier Miranda <miranda@adacore.com>
12814 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
12815 ancestor part given by an aggregate to test for an unchecked conversion,
12816 since this can occur in some cases when the ancestor part is a function
12817 call, and we don't want to fall into the recursive call to this
12818 procedure in that case.
12820 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
12821 stream attributes on limited types to account for user-specified
12822 attributes as well as whether Input (resp. Output) becomes available
12823 due to Read (resp. Write) being available for the type. Change Boolean
12824 variable to the more accurate name
12825 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
12826 double-"not" predicate at beginning of return statement to more
12827 understandable form.
12829 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
12830 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
12831 in a block statement and use that as the first statement of the
12832 expanded return rather than incorrectly using the handled sequence as
12833 the first statement.
12835 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
12836 operation, generate an explicit freeze node for it rather than
12837 generating extra formals, to ensure that gigi has the proper order of
12838 elaboration for anonymous subtypes in the signature of the subprograms.
12839 (Build_In_Place_Formal): Move assertion to beginning of loop.
12840 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
12841 applied to a function call (occurs for some cases of 'Input).
12842 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
12843 applied to a function call (occurs for some cases of 'Input).
12845 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
12846 2005, generate an extended return statement enclosing the result object
12849 * freeze.adb (Freeze_Record_Type): Extend the current management of
12850 components that are access type with an allocator as default value: add
12851 missing support to the use of qualified expressions of the
12852 allocator (which also cause freezing of the designated type!)
12853 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
12854 dispatching operation, since extra formals may be needed by calls to
12855 build-in-place functions (such as stream 'Input).
12857 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
12858 formals for 'Constrained and accessibility level in the case of a
12859 predefined dispatching operation.
12861 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
12862 point, no need to find the parent node.
12864 2007-08-16 Javier Miranda <miranda@adacore.com>
12866 * exp_attr.adb (Attribute_Priority): Add missing support for entries
12867 and entry barriers.
12869 2007-08-16 Javier Miranda <miranda@adacore.com>
12871 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
12872 is not really required and can introduce regression with the debugger.
12873 The original problem is fixed with the patch written for checks.adb.
12875 2007-08-16 Thomas Quinot <quinot@adacore.com>
12877 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
12878 Range_Check on Allocated_Table.
12880 2007-08-16 Vincent Celier <celier@adacore.com>
12882 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
12883 Including_Non_Switch set to False.
12884 (Gnatmake): For the compiler, call Test_If_Relative_Path with
12885 Including_Non_Switch set to False.
12887 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
12888 parameter Including_Non_Switch, defaulted to True. When
12889 Including_Non_Switch is False, options that are not switches and
12890 appear as relative path are not converted to absolute paths.
12892 2007-08-16 Nicolas Roche <roche@adacore.com>
12894 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
12897 * Make-lang.in: Update dependencies
12899 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
12901 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
12902 currently inspected is a selected component, retrieve the entity of
12904 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
12905 from the immediate ancestor of Main_Unit_Entity.
12906 (Install_Limited_Withed_Unit): Do not install the limited view of
12907 package P if P is reachable through an ancestor chain from package C
12908 and C also has a with clause for P in its body.
12909 (Has_Limited_With_Clause): New routine.
12910 (Has_With_Clause): New routine.
12912 2007-08-16 Ed Schonberg <schonberg@adacore.com>
12914 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
12915 generic for an enclosing instance is a global reference, even though
12916 its scope is the enclosing instance.
12918 2007-08-16 Gary Dismukes <dismukes@adacore.com>
12919 Javier Miranda <miranda@adacore.com>
12921 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
12922 initialize a limited object.
12923 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
12925 Make sure Has_Complex_Representation is inherited by derived type.
12927 2007-08-16 Robert Dewar <dewar@adacore.com>
12929 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
12932 2007-08-16 Ed Schonberg <schonberg@adacore.com>
12934 * sem_disp.adb (Check_Dispatching_Operation): If the operation
12935 implements an operation inherited from a progenitor interface, verify
12936 that they are subtype-conformant.
12938 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
12939 Bob Duff <duff@adacore.com>
12940 Nicolas Setton <setton@adacore.com>
12942 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
12943 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
12944 the statement which is being resolved comes from a predefined library
12945 unit, all non-predefined library interpretations are skipped.
12946 (Resolve_Op_Concat): If string concatenation was folded in the parser,
12947 but the "&" is user defined, give an error, because the folding would
12950 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
12951 the parser has folded a long sequence of concatenations of string
12954 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
12955 and "JMP_BUF" variables as artificial.
12956 (N_String_Literal): Do not use alloca for very long string literals. Use
12957 xmalloc/free instead. Otherwise the stack might overflow.
12959 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
12962 2007-08-16 Vincent Celier <celier@adacore.com>
12964 * vms_conv.adb (Process_Argument): Ensure that project related options
12965 are not put in the -cargs section when using GNAT COMPILE.
12967 2007-08-16 Robert Dewar <dewar@adacore.com>
12969 * gnat_ugn.texi: Add note on preprocessing (output file not written)
12971 2007-08-16 Thomas Quinot <quinot@adacore.com>
12973 * a-tags.adb: Minor reformatting.
12975 2007-08-16 Bob Duff <duff@adacore.com>
12977 * sem_type.ads, sem_ch4.adb: Minor reformatting.
12979 2007-08-14 Thomas Quinot <quinot@adacore.com>
12981 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
12982 s-osinte-interix.ads, system-interix.ads: Removed.
12984 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
12986 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
12987 calls to Check_Within_Time_Bounds.
12988 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
12989 (Difference): Account for possible rounding of the resulting difference
12991 2007-08-14 Robert Dewar <dewar@adacore.com>
12993 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
12994 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
12995 s-osinte-solaris.adb, s-osinte-solaris.ads,
12996 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
12998 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
12999 switch -gnatyS. Enable -gnatyS in GNAT style check mode
13001 2007-08-14 Robert Dewar <dewar@adacore.com>
13002 Ed Schonberg <schonberg@adacore.com>
13004 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
13005 Suppress unmodified in-out parameter warning in some cases
13006 This patch is a also fairly significant change to the way suppressible
13007 checks are handled.
13009 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
13010 needed for access to concurrent record types generated by the expander.
13011 (Generate_Range_Check): When generating a temporary to capture the
13012 value of a conversion that requires a range check, set the type of the
13013 temporary before rewriting the node, so that the type is always
13014 properly placed for back-end use.
13015 (Apply_Float_Conversion_Check): Handle case where the conversion is
13017 (Get_Discriminal): Code reformatting. Climb the scope stack looking
13018 for a protected type in order to examine its discriminants.
13020 2007-08-14 Robert Dewar <dewar@adacore.com>
13021 Gary Dismukes <dismukes@adacore.com>
13022 Ed Schonberg <schonberg@adacore.com>
13023 Thomas Quinot <quinot@adacore.com>
13025 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
13026 a-stwisu.adb, a-strsup.adb: Fix warnings for range
13027 tests optimized out.
13029 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
13030 (Get_Allocator_Final_List): For the case of an anonymous access type
13031 that has a specified Associated_Final_Chain, do not go up to the
13033 (Expand_N_Type_Conversion): Test for the case of renamings of access
13034 parameters when deciding whether to apply a run-time accessibility
13036 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
13037 aggregate code before allocator, and ahead of declaration for
13038 temporary, to prevent access before elaboration when the allocator is
13039 an actual for an access parameter.
13040 (Expand_N_Type_Conversion): On an access type conversion involving an
13041 access parameter, do not apply an accessibility check when the
13042 operand's original node was an attribute other than 'Access. We now
13043 create access conversions for the expansion of 'Unchecked_Access and
13044 'Unrestricted_Access in certain cases and clearly accessibility should
13045 not be checked for those.
13047 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
13048 includes a type conversion of a packed component that has been expanded,
13049 recover the original expression for the object, and use this expression
13050 in the post-call assignment statement, so that the assignment is made
13051 to the object and not to a back-end temporary.
13052 (Freeze_Subprogram): In case of primitives of tagged types not defined
13053 at the library level force generation of code to register the primitive
13054 in the dispatch table. In addition some code reorganization has been
13055 done to leave the implementation clear.
13056 (Expand_Call): When expanding an inherited implicit conversion,
13057 preserve the type of the inherited function after the intrinsic
13058 operation has been expanded.
13060 * exp_ch2.ads, exp_ch2.adb
13061 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
13062 of an entry formal appearing in an assignment statement does not assign
13064 (Expand_Current_Value): Instead of calling a routine to determine
13065 whether the prefix of an attribute reference should be optimized or
13066 not, prevent the optimization of such prefixes all together.
13068 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
13069 component whose prefix is known to be of an access type is an implicit
13070 dereference and does not assign to the prefix.
13072 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13073 Robert Dewar <dewar@adacore.com>
13075 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
13076 itype is visited, make an entry into table to link associated node and
13078 Add comments and correct harmless error in Build_NCT_Hash_Tables
13079 (Array_Aggr_Subtype): Associate each itype created for an index type to
13080 the corresponding range construct, and not to the aggregate itself. to
13081 maintain a one-to-one correspondence between itype and its associated
13082 node, to prevent errors when complex expression is copied.
13083 Fix mishandling of multiple levels of parens
13085 * sem_aggr.adb: Create a limited view of an incomplete type, to make
13086 treatment of limited views uniform for all visible declarations in a
13087 limited_withed package.
13088 (New_Copy_Tree): If hash table is being used and itype is visited,
13089 make an entry into table to link associated node and new itype.
13090 (Resolve_Record_Aggregate): Do not add an others box association for a
13091 discriminated record component that has only discriminants, when there
13092 is a box association for the component itself.
13094 * par-ch4.adb: Fix mishandling of multiple levels of parens
13096 2007-08-14 Robert Dewar <dewar@adacore.com>
13098 * comperr.adb: Fix problem with suppressing warning messages from gigi
13100 * erroutc.ads, erroutc.adb, errout.ads,
13101 errout.adb (Write_Eol): Remove trailing spaces before writing the line
13102 (Write_Eol_Keep_Blanks): New procedure to write a line, including
13103 possible trailing spaces.
13104 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
13105 Fix problem with suppressing warning messages from back end
13106 Improve handling of deleted warnings
13109 Fix problem with suppressing warning messages from back end
13110 Handle setting of Static_Dispatch_Tables flag.
13113 Fix problem with suppressing warning messages from back end
13115 * exp_intr.adb: Improve handling of deleted warnings
13117 2007-08-14 Robert Dewar <dewar@adacore.com>
13119 * debug.adb: Improve -gnatdI to cover all cases of serialization
13120 Add documentation of dZ, d.t
13122 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
13124 (Sprint_Node_Actual): Generate new output associated with implicit
13125 importation and implicit exportation of object declarations.
13127 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13128 Robert Dewar <dewar@adacore.com>
13129 Javier Miranda <miranda@adacore.com>
13130 Gary Dismukes <dismukes@adacore.com>
13132 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
13133 to make treatment of limited views uniform for all visible declarations
13134 in a limited_withed package.
13135 Improve warnings for in out parameters
13136 (Set_Related_Interaface/Related_Interface): Allow the use of this
13137 attribute with constants.
13138 (Write_Field26_Name): Handle attribute Related_Interface in constants.
13139 Warn on duplicate pragma Preelaborable_Initialialization
13141 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
13142 generation of a freezing node to ensure proper management of null
13143 excluding access types in the backend.
13144 (Create_Extra_Formals): Test base type of the formal when checking for
13145 the need to add an extra accessibility-level formal. Pass the entity E
13146 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
13147 originally being done in a couple of cases), to ensure that the
13148 Extra_Formals list gets set on the entity E when the first entity is
13150 (Conforming_Types): Add missing calls to Base_Type to the code that
13151 handles anonymous access types. This is required to handle the
13152 general case because Process_Formals builds internal subtype entities
13153 to handle null-excluding access types.
13154 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13155 functions that need it, even when not marked Requires_Overriding.
13156 Improve warnings for in out parameters
13157 (Analyze_Function_Return): Warn for disallowed null return
13158 Warn on return from procedure with unset out parameter
13159 Ensure consistent use of # in error messages
13160 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
13161 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
13162 the implicit conversion of the expression done for anonymous access
13163 types. This is required to generate the code of the null excluding
13164 check (if required).
13166 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
13167 A formal parameter is never publicly referenceable outside of its body.
13168 (Check_References): For an unreferenced formal parameter in an accept
13169 statement, use the same warning circuitry as for subprogram formal
13171 (Warn_On_Unreferenced_Entity): New subprogram, taken from
13172 Output_Unreferenced_Messages, containing the part of that routine that
13173 is now reused for entry formals as described above.
13174 (Goto_Spec_Entity): New function
13175 (Check_References): Do not give IN OUT warning for dispatching operation
13176 Improve warnings for in out parameters
13177 (Test_Ref): Check that the entity is not undefinite before calling
13178 Scope_Within, in order to avoid infinite loops.
13179 Warn on return from procedure with unset out parameter
13180 Improved warnings for unused variables
13182 2007-08-14 Robert Dewar <dewar@adacore.com>
13183 Javier Miranda <miranda@adacore.com>
13184 Gary Dismukes <dismukes@adacore.com>
13186 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
13187 (Expand_N_Attribute_Reference): Further unify the handling of the
13188 three forms of access attributes, using common code now for all three
13189 cases. Add a test for the case of applying an access attribute to
13190 an explicit dereference when the context is an access-to-interface
13191 type. In that case we need to apply the conversion to the prefix
13192 of the explicit dereference rather than the prefix of the attribute.
13193 (Attribute_Version, UET_Address): Set entity as internal to ensure
13194 proper dg output of implicit importation.
13195 (Expand_Access_To_Type): Removed.
13196 (Expand_N_Attribute_Reference): Merge the code from the three cases
13197 of access attributes, since the processing is largely identical for
13198 these cases. The substantive fix here is to process the case of a
13199 type name prefix (current instance case) before handling the case
13200 of interface prefixes.
13202 2007-08-14 Thomas Quinot <quinot@adacore.com>
13203 Ed Schonberg <schonberg@adacore.com>
13204 Javier Miranda <miranda@adacore.com>
13205 Robert Dewar <dewar@adacore.com>
13207 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
13208 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
13209 type that is an anonymous access to controlled object, establish
13210 an associated finalization chain to avoid corrupting the global
13211 finalization list when a dynamically allocated object designated
13212 by such a component is deallocated.
13213 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
13214 functions that need it, even when not marked Requires_Overriding.
13215 (Initialize_Tag): Replace call to has_discriminants by call to
13216 Is_Variable_Size_Record in the circuitry that handles the
13217 initialization of secondary tags.
13218 (Is_Variable_Size_Record): New implementation.
13219 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
13220 Suppress_Initialization pragma for a derived type.
13221 (Is_Variable_Size_Record): New subprogram.
13222 (Build_Offset_To_Top_Functions): New implementation that simplifies the
13223 initial version of this routine and also fixes problems causing
13224 incomplete initialization of the table of interfaces.
13225 (Build_Init_Procedure): Improve the generation of code to initialize the
13226 the tag components of secondary dispatch tables.
13227 (Init_Secondary_Tags): New implementation that simplifies the previous
13228 version of this routine.
13229 (Make_DT): Add parameter to indicate when type has been frozen by an
13230 object declaration, for diagnostic purposes.
13231 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
13232 diagnose attemps to freeze a subprogram when some untagged type of its
13233 profile is a private type whose full view has not been analyzed yet.
13234 (Freeze_Array_Type): Generate init proc for packed array if either
13235 Initialize or Normalize_Scalars is set.
13236 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
13237 constructing the new profile, copy the null_exclusion indicator for each
13238 parameter, to ensure full conformance of the new body with the spec.
13240 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
13241 Create wrappers for constructor functions that need it, even when not
13242 marked Requires_Overriding.
13243 (Covers): Handle properly designated types of anonymous access types,
13244 whose non-limited views are themselves incomplete types.
13245 (Add_Entry): Use an entity to store the abstract operation which hides
13247 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
13248 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
13249 initialization aggregate.
13250 (Function_Interp_May_Be_Hidden): Rename to
13251 Function_Interp_Has_Abstract_Op.
13252 (Has_Compatible_Type): Remove machinery that skips interpretations if
13253 they are labeled as potentially hidden by an abstract operator.
13254 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
13255 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
13256 (Write_Overloads): Output the abstract operator if present.
13257 (Add_Entry): Before inserting a new entry into the interpretation table
13258 for a node, determine whether the entry will be disabled by an abstract
13260 (Binary_Op_Interp_May_Be_Hidden): New routine.
13261 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
13263 (Function_Interp_May_Be_Hidden): New routine.
13264 (Has_Compatible_Type): Do not consider interpretations hidden by
13265 abstract operators when trying to determine whether two types are
13267 (Has_Hidden_Interp): New routine.
13268 (Set_May_Be_Hidden_Interp): New routine.
13269 (Write_Overloads): Write the status of flag May_Be_Hidden.
13271 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13272 Javier Miranda <miranda@adacore.com>
13274 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
13275 types declared in the declarative part of a nested package body or in
13276 the proper body of a stub.
13277 (Set_All_DT_Position): Add missing check to avoid wrong assignation
13278 of the same dispatch table slot to renamed primitives.
13279 (Make_Select_Specific_Data_Table): Handle private types.
13280 (Tagged_Kind): Handle private types.
13281 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
13282 output of implicit importation and exportation.
13283 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
13284 first formal of the thunk is always associated with the controlling
13285 type. In addition perform the following code cleanup: remove formal
13286 Thunk_Alias which is no longer required, cleanup evaluation of the
13287 the controlling type, and update the documentation.
13288 Replace occurrence of Default_Prim_Op_Count by
13289 Max_Predef_Prims. Addition of compile-time check to verify
13290 that the value of Max_Predef_Prims is correct.
13291 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
13292 (Make_DT): Add parameter to indicate when type has been frozen by an
13293 object declaration, for diagnostic purposes.
13294 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
13295 construction of statically allocated dispatch tables.
13296 (Make_DT): In case of library-level tagged types export the declaration
13297 of the primary tag. Remove generation of tags (now done by Make_Tags).
13298 Additional modifications to handle non-static generation of dispatch
13299 tables. Take care of building tables for asynchronous interface types
13300 (Make_Tags): New subprogram that generates the entities associated with
13301 the primary and secondary tags of Typ and fills the contents of Access_
13302 Disp_Table. In case of library-level tagged types imports the forward
13303 declaration of the primary tag that will be declared later by Make_DT.
13304 (Expand_Interface_Conversion): In case of access types to interfaces
13305 replace an itype declaration by an explicit type declaration to avoid
13306 problems associated with the scope of such itype in transient blocks.
13308 2007-08-14 Robert Dewar <dewar@adacore.com>
13309 Ed Schonberg <schonberg@adacore.com>
13310 Javier Miranda <miranda@adacore.com>
13312 * exp_util.ads, exp_util.adb:
13313 This patch replaces a number of occurrences of explicit tests for N_Null
13314 with calls to Known_Null. This improves tracking of null values, since
13315 Known_Null also catches null constants, and variables currently known to
13316 be null, so we get better tracking.
13317 (Ensure_Defined): create an itype reference only in the scope of the
13319 (Side_Effect_Free): A selected component of an access type that
13320 denotes a component with a rep clause must be treated as not
13321 side-effect free, because if it is part of a linked structure its
13322 value may be affected by a renaming.
13323 (Expand_Subtype_From_Expr): For limited objects initialized with build
13324 in place function calls, do nothing; otherwise we prematurely introduce
13325 an N_Reference node in the expression initializing the object, which
13326 breaks the circuitry that detects and adds the additional arguments to
13327 the called function. Bug found working in the new patch for statically
13328 allocated dispatch tables.
13329 (Is_Library_Level_Tagged_Type): New subprogram.
13330 (Remove_Side_Effects): If the expression of an elementary type is an
13331 operator treat as a function call.
13332 (Make_Literal_Range): If the index type of the array is not integer, use
13333 attributes properly to compute the constraint on the resulting aggregate
13336 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
13337 class-wide type whose base type is an incomplete private type, leave
13338 class-wide type unfrozen so that freeze nodes can be generated
13339 properly at a later point.
13340 (Freeze_Entity, array case): Handle case of pragma Pack and component
13341 size attributre clause for same array.
13343 2007-08-14 Vincent Celier <celier@adacore.com>
13345 * prj.ads, prj.adb: Update Project Manager to new attribute names for
13347 Allow all valid declarations in configuration project files
13348 (Reset): Initialize all tables and hash tables in the project tree data
13349 Major update of the Project Manager and of the project aware tools,
13350 including gprmake, so that the same sources in the GNAT repository
13351 can be used by gprbuild.
13352 (Slash_Id): Change type to be Path_Name_Type
13353 (Slash): Return a Path_Name_Type instead of a File_Name_Type
13355 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
13357 Update Project Manager to new attribute names for ghprbuild
13358 Allow all valid declarations in configuration project files
13359 Major update of the Project Manager and of the project aware tools,
13360 including gprmake, so that the same sources in the GNAT repository
13361 can be used by gprbuild.
13364 Major update of the Project Manager and of the project aware tools,
13365 including gprmake, so that the same sources in the GNAT repository
13366 can be used by gprbuild.
13368 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13369 insensitive flag for attributes with optional index.
13370 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13371 array attribute, put the index in lower case.
13372 Update Project Manager to new attribute names for ghprbuild
13373 Allow all valid declarations in configuration project files
13374 Major update of the Project Manager and of the project aware tools,
13375 including gprmake, so that the same sources in the GNAT repository
13376 can be used by gprbuild.
13378 * prj-env.ads, prj-env.adb:
13379 Major update of the Project Manager and of the project aware tools,
13380 including gprmake, so that the same sources in the GNAT repository
13381 can be used by gprbuild.
13382 (Get_Reference): Change type of parameter Path to Path_Name_Type
13384 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
13385 removing '-' from the path to start with the first character of the
13387 Major update of the Project Manager and of the project aware tools,
13388 including gprmake, so that the same sources in the GNAT repository
13389 can be used by gprbuild.
13390 Major update of the Project Manager and of the project aware tools,
13391 including gprmake, so that the same sources in the GNAT repository
13392 can be used by gprbuild.
13394 * prj-nmsc.ads, prj-nmsc.adb:
13395 Update Project Manager to new attribute names for ghprbuild
13396 Allow all valid declarations in configuration project files
13397 (Search_Directories): Detect subunits that are specified with an
13398 attribute Body in package Naming. Do not replace a source/unit in the
13399 same project when the order of the source dirs are known. Detect
13400 duplicate sources/units in the same project when the order of the
13401 source dirs are not known.
13402 (Check_Ada_Name): Allow all identifiers that are not reserved words
13404 Major update of the Project Manager and of the project aware tools,
13405 including gprmake, so that the same sources in the GNAT repository
13406 can be used by gprbuild.
13407 (Look_For_Sources): If the list of sources is empty, set the object
13408 directory of non extending project to nil.
13409 Change type of path name variables to be Path_Name_Type
13410 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
13411 otherwise creating missing directories will fail.
13413 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
13414 prj-part.ads, prj-part.adb:
13415 Major update of the Project Manager and of the project aware tools,
13416 including gprmake, so that the same sources in the GNAT repository
13417 can be used by gprbuild.
13419 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
13420 insensitive flag for attributes with optional index.
13421 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
13422 array attribute, put the index in lower case.
13423 (Parse_Variable_Reference): Allow the current project name to be used in
13424 the prefix of an attribute reference.
13426 * prj-util.ads, prj-util.adb
13427 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
13428 defaulted to False. When True, always check against indexes in lower
13431 * snames.ads, snames.h, snames.adb:
13432 Update Project Manager to new attribute names for gprbuild
13433 Allow all valid declarations in configuration project files
13435 2007-08-14 Robert Dewar <dewar@adacore.com>
13436 Ed Schonberg <schonberg@adacore.com>
13438 * opt.ads: Warning for non-local exception propagation now off by
13440 New switch -gnatI to disable representation clauses
13441 Implement new pragma Implicit_Packing
13444 Warning for non-local exception propagation now off by default
13445 Add warning for unchecked conversion of pointers wi different
13447 New switch -gnatI to disable representation clauses
13449 * usage.adb: new switch -gnatyS
13451 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
13452 note that aggregates of anonymous array types are not flagged.
13453 -gnatwc now includes membership tests optimized away
13454 -gnatw.x warnings are now off by default
13455 Added conditional compilation Appendix
13456 Add documentation of -gnatI
13457 Add documentation for new -gnatyS style check
13458 Update documentation about SAL and auto-init on Windows.
13461 Add documentation for pragma Check_Name and 'Enabled attribute
13462 Document that Eliminate on dispatching operation is ignored
13463 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
13464 Document pragma Main
13465 Document pragma Implicit_Packing
13467 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
13468 different conventions
13469 New switch -gnatI to disable representation clauses
13471 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
13472 recognized, report the invalid characters including "-gnat" instead of
13473 just the first character in the switch.
13474 New switch -gnatI to disable representation clauses
13475 Set Warn_On_Object_Renames_Function true for -gnatg
13477 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
13478 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
13479 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
13480 to switch -aP (add directory to project search dir).
13482 * par-prag.adb: Implement new pragma Implicit_Packing
13484 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
13485 type as having a non-standard representation, to force expansion on
13486 conversion to related types.
13487 (Analyze_Pragma): Warn on misspelled pragma
13488 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
13489 Ensure consistent use of # in error messages
13490 Implement pragma Implicit_Packing
13492 2007-08-14 Olivier Hainque <hainque@adacore.com>
13493 Eric Botcazou <ebotcazou@adacore.com>
13495 * targtyps.c (get_target_maximum_default_alignment): New function.
13497 that the compiler might choose by default for a type or object.
13498 (get_target_default_allocator_alignment): New function. Alignment known
13499 to be honored by the target default allocator.
13500 (get_target_maximum_allowed_alignment): New function. Maximum alignment
13501 we might accept for any type or object on the target.
13502 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
13504 * gigi.h (get_target_maximum_default_alignment): Declare new function.
13505 (get_target_default_allocator_alignment): Likewise.
13506 (get_target_maximum_allowed_alignment): Likewise.
13509 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
13510 result of a function call, first try to use a stabilized reference for
13511 a constant renaming too.
13512 (validate_alignment): Use target_maximum_allowed_alignment instead of
13513 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
13514 (gnat_to_gnu_entity): Use common nodes directly.
13515 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
13516 alignment and size for the object.
13517 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
13518 and N_Procedure_Call_Statement.
13519 (takes_address): Rename to lvalue_required_p, add third parameter
13520 'aliased' and adjust recursive calls.
13521 <N_Indexed_Component>: Update 'aliased' from the array type.
13522 <N_Selected_Component>: New case.
13523 <N_Object_Renaming_Declaration>: New Likewise.
13524 (Identifier_to_gnu): Adjust for above changes.
13525 (maybe_stabilize_reference) <CONST_DECL>: New case.
13527 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
13528 between type variants.
13529 (build_simple_component_ref): Likewise.
13530 (build_call_alloc_dealloc): Use target_default_allocator_alignment
13531 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
13532 aligning type circuitry for allocations from the default storage pool.
13533 (build_allocator): Likewise.
13534 (build_simple_component_ref): Manually fold the reference for a
13535 constructor if the record type contains a template.
13537 * utils.c (value_zerop): Delete.
13538 (gnat_init_decl_processing): Emit debug info for common types.
13539 (rest_of_record_type_compilation): If a union contains a field
13540 with a non-constant qualifier, treat it as variable-sized.
13541 (finish_record_type): Give the stub TYPE_DECL a name.
13542 (rest_of_record_type_compilation): Likewise.
13543 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
13544 types are equivalent array types.
13545 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
13546 even if the type is not passed by reference.
13547 (static_ctors, static_dtors): Delete.
13548 (end_subprog_body): Do not record constructors and destructors.
13549 (build_global_cdtor): Delete.
13550 (gnat_write_global_declarations): Do not call build_global_cdtor.
13552 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
13553 -fRTS=rtp is specified.
13554 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
13557 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
13558 of the personality function with SJLJ exceptions.
13560 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
13561 the name of the personality function with SJLJ exceptions.
13563 2007-08-14 Robert Dewar <dewar@adacore.com>
13564 Ed Schonberg <schonberg@adacore.com>
13566 * par.ads, par.adb: Improve handling of extra right parens.
13567 (Par): Remove flag From_Limited_With_Clause.
13569 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
13570 Improve handling of extra right parens.
13572 2007-08-14 Robert Dewar <dewar@adacore.com>
13574 * par-tchk.adb (TF_Semicolon): Improve error recovery
13576 2007-08-14 Robert Dewar <dewar@adacore.com>
13577 Ed Schonberg <schonberg@adacore.com>
13579 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
13580 enumeration type, mark all literals as referenced.
13581 (Eval_Attribute, case 'Image): If the argument is an enumeration
13582 literal and names are available, constant-fold but mark nevertheless as
13584 Clean up function names.
13585 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
13587 (Requires_Simple_Name_Prefix): Removed.
13589 2007-08-14 Robert Dewar <dewar@adacore.com>
13590 Ed Schonberg <schonberg@adacore.com>
13592 * sem_ch11.adb: Improved warnings for unused variables
13594 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
13595 is a synchronized interface, the derived type is limited.
13596 (Analyze_Object_Declaration): Mark the potential coextensions in the
13597 definition and expression of an object declaration node.
13598 (Build_Derived_Type): For the completion of a private type declaration
13599 with a derived type declaration, chain the parent type's representation
13600 items to the last representation item of the derived type (not the
13601 first one) if they are not present already.
13602 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
13603 object declaration of forward references to tags.
13604 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
13605 subprogram types can appear as access discriminants of synchronized
13607 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
13608 given in prefixed form as a selected component.
13609 (Process_Discriminants): If not all discriminants have defaults, place
13610 error message on a default that is present.
13611 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
13612 extend a synchronized tagged type.
13613 Improved warnings for unused variables
13614 (Is_Visible_Component): Fix a visibility hole on a component inherited
13615 by a private extension when parent is itself declared as a private
13616 extension, and the derivation is in a child unit.
13617 (Find_Hidden_Interface): Move spec from the package body.
13619 2007-08-14 Robert Dewar <dewar@adacore.com>
13620 Ed Schonberg <schonberg@adacore.com>
13622 * sem_ch5.adb: Improve warnings on redundant assignments
13624 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
13626 (Is_Synchronized_Tagged_Type): New subprogram that returns true
13627 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
13628 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
13629 is set to False. Improves handling of Known_[Not_]Null.
13630 (Wrong_Type): Special case address arithmetic attempt
13631 (Collect_Abstract_Interfaces): Add new formal to allow collecting
13632 abstract interfaces just using the partial view of private types.
13633 (Has_Abstract_Interfaces): Add new formal to allow checking types
13634 covering interfaces using the partial view of private types.
13635 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
13636 component still needs to be defined in this case, but is never
13637 initialized as VMs are using other dispatching mechanisms.
13638 (Abstract_Interface_List): For a protected type, use base type to get
13639 proper declaration.
13640 Improve warnings on redundant assignments
13641 (Is_Variable): Handle properly an implicit dereference of a prefixed
13643 (Build_Actual_Subtype): If this is an actual subtype for an
13644 unconstrained formal parameter, use the sloc of the body for the new
13645 declaration, to prevent anomalises in the debugger.
13647 2007-08-14 Robert Dewar <dewar@adacore.com>
13649 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
13650 dispatching operation
13652 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13653 Gary Dismukes <dismukes@adacore.com>
13656 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
13657 expanded aggregate code before allocator, and ahead of declaration for
13658 temporary, to prevent access before elaboration when the allocator is
13659 an actual for an access parameter.
13660 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
13661 the TSD and the table of interfaces.
13662 (Convert_To_Assignments): Augment the test for delaying aggregate
13663 expansion for limited return statements to include the case of extended
13664 returns, to prevent creation of an unwanted transient scope.
13665 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
13666 (Expand_Array_Aggregate): Handle aggregates associated with
13667 statically allocated dispatch tables.
13668 (Expand_Record_Aggregate): Handle aggregates associated with
13669 statically allocated dispatch tables.
13670 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
13671 of anonymous access type.
13673 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13675 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
13676 is a variable that renames a slice, use the variable itself in the
13677 expannsion when the renamed expression itself may be modified between
13678 the declaration of the renaming and the array assignment.
13680 2007-08-14 Jerome Guitton <guitton@adacore.com>
13682 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13683 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
13684 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
13685 New functions; dummy implementations.
13687 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
13688 functions, used to implement the multi-tasks mode routines on VxWorks.
13690 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
13691 New functions, thin
13692 binding to the VxWorks routines which have changed between VxWorks 5
13694 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
13695 which are not callable from a RTP.
13697 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
13698 implemented for the multi-tasks mode on VxWorks 5 and 6.
13700 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
13702 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
13705 2007-08-14 Vincent Celier <celier@adacore.com>
13707 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
13708 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
13709 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
13710 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13711 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13712 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
13713 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
13715 (Major_Id_Name): New function.
13716 mlib-tgt.ads/mlib.tgt.adb:
13717 (Library_Major_Minor_Id_Supported): New function, default returns True
13718 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
13719 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
13720 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
13721 Implementation of Library_Major_Minor_Id_Supported returns False
13723 (Clean_Library_Directory): If major/minor ids are supported, clean all
13725 Major update of the Project Manager and of the project aware tools,
13726 including gprmake, so that the same sources in the GNAT repository
13727 can be used by gprbuild.
13729 2007-08-14 Olivier Hainque <hainque@adacore.com>
13731 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
13732 (GCC_ZCX_Support): Switch to True.
13734 * s-intman-solaris.adb (Notify_Exception): Call
13735 Adjust_Context_For_Raise before raising, as expected for signal
13736 handlers in general.
13738 * s-intman-posix.adb (Notify_Exception): Remove declaration of
13739 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
13740 to other implementation bodies.
13742 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
13743 be visible by multiple implementation bodies.
13745 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
13746 only for conditions coming from hardware.
13747 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
13748 adjustments to signal context prior to exception raise from signal
13750 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
13752 Solaris section: (__gnat_adjust_context_for_raise): New function.
13753 Implementation of the machine context adjustments to perform prior to
13754 raise from a signal handler. Version for both sparc and x86.
13755 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
13756 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
13757 prior to raising as expected for any handler, before possible nested
13758 faults to make sure all the contexts in a chain have been adjusted by
13759 the time we propagate.
13761 2007-08-14 Pascal Obry <obry@adacore.com>
13763 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
13764 (SYSTEM_INFO): New record.
13765 (SetThreadIdealProcessor): New imported routine needed for supporting
13766 task_info pragma on Windows.
13768 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
13769 info can be applied to the current host.
13770 (Create_Task): Set the ideal processor if information is present.
13772 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
13773 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
13775 2007-08-14 Olivier Hainque <hainque@adacore.com>
13777 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
13778 stack size and initial stack pointer value for a given task.
13779 (Enter_Task): Get the stack attributes of the task we are entering and
13780 let the stack checking engine know about them.
13782 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
13783 Let the stack-checking engine know about the initial sp value and stack
13784 size associated with the current task.
13785 (Set_Stack_Info): If a stack base has been notified for the current
13786 task, honor it. Fallback to the previous less accurate method otherwise.
13788 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
13790 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13792 * sem_ch10.adb: Create a limited view of an incomplete type, to make
13793 treatment of limited views uniform for all visible declarations in a
13794 limited_withed package.
13795 Set flag indicating that a subprogram body for a child unit has a
13797 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
13798 separate declaration, remove the unit name from visibility after
13799 compilation, so that environment is clean for subsequent compilations.
13800 (Install_Limited_Context_Clauses): Do not install a
13801 limited_private_with_clause unless the current unit is a body or a
13802 private child unit.
13803 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
13804 in the same fashion.
13805 (Install_Limited_Withed_Unit): Do not install a limited with clause if
13806 it applies to the declaration of the current package body.
13807 (Remove_Private_With_Clauses): If there is a regular with_clause for
13808 the unit, delete Private_With_Clause from context, to prevent improper
13809 hiding when processing subsequent nested packages and instantiations.
13811 2007-08-14 Jose Ruiz <ruiz@adacore.com>
13813 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
13814 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
13815 representing absolute path names.
13816 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
13818 * cstreams.c (__gnat_full_name for VxWorks): Use
13819 __gnat_is_absolute_path to detect whether we need to add the current
13820 directory to normalize the path.
13822 2007-08-14 Javier Miranda <miranda@adacore.com>
13825 a-tags.adb (Displace): Associate a message with the raised CE
13827 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
13828 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
13829 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
13831 (Default_Prim_Op_Count): Removed.
13832 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
13833 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
13834 Remove pragma Inline_Always.
13836 * rtsfind.ads (Default_Prim_Op_Count): Removed
13837 (Max_Predef_Prims): New entity
13838 (RE_Expanded_Name): Removed
13839 (RE_HT_Link): Removed
13840 (RE_Iface_Tag): Remmoved
13841 (RE_Ifaces_Table): Removed
13842 (RE_Interfaces_Array): Removed
13843 (RE_Interface_Data_Element): Removed
13844 (RE_Nb_Ifaces): Removed
13845 (RE_RC_Offset): Removed
13846 (RE_Static_Offset_To_Top): Removed
13848 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
13850 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
13851 Prim_Op_Count by Max_Predef_Prims.
13853 2007-08-14 Thomas Quinot <quinot@adacore.com>
13854 Vincent Celier <celier@adacore.com>
13856 * binde.adb (Elab_All_Links): Remove unnecessary call to
13857 Generic_Separately_Compiled (if a unit satisfies this predicate, there
13858 won't be an associated Afile).
13859 (Elab_All_Links): Fail if a referenced unit cannot be found
13862 Fix comments in bindgen regarding consistency checks done in Bcheck:
13863 the checks are made across units within a partition, not across several
13865 Fix generation of C binder file for VxWorks.
13867 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
13868 Generic_May_Lack_ALI, more descriptive of the current use of the
13869 predicate, and update documentation.
13871 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
13872 reorganization and documentation update for the case of predefined
13873 library generics (for which we do not reference an Afile).
13875 2007-08-14 Robert Dewar <dewar@adacore.com>
13877 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
13878 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
13879 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
13880 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
13881 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
13882 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
13883 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
13884 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
13885 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
13886 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
13887 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
13888 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
13889 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
13890 g-altcon.adb: Minor reformatting
13892 ada-tree.h: Delete empty line.
13894 ali.ads: Minor reformatting
13895 Clarification of comments.
13896 Minor spelling correction
13898 * exp_dbug.adb: Add Warnings Off to suppress new warning
13900 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
13903 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
13906 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
13908 * a-textio.ads: Reorder the standard input/output/error declarations
13911 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
13913 * par-ch2.adb: Recognize RM specially in errout
13914 Change 'R'M to RM in all error messages
13916 * scng.adb: Recognize RM specially in errout
13918 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
13919 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
13921 * s-direio.adb: Add missing routine header box.
13923 * sem_attr.ads: Add ??? comments
13925 * sem_eval.adb: Recognize RM specially in errout
13926 Change 'R'M to RM in all error messages
13928 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
13930 * s-tasinf.ads: Fix minor comment typo.
13932 * a-cihama.adb: Minor comment addition
13934 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
13937 * s-tasinf-tru64.ads: Fix minor comment typo.
13939 * itypes.ads: Comment update.
13941 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
13944 * argv.c: Added protection against null gnat_argv and gnat_envp.
13946 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
13947 warning message when Tolerate_Consistency_Errors is True.
13949 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
13950 Any_Id, as this subprogram is only applicable to *type* entities (it
13951 sets RM_Size). Instead initialize just Esize and Alignment.
13953 2007-08-14 Bob Duff <duff@adacore.com>
13955 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
13956 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
13957 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
13958 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
13959 a-coorse.ads (Next): Applied pragma Inline.
13960 Make all Containers packages Remote_Types (unless they are already
13962 (Previous): applied pragma Inline
13963 (Elements_Type): is now a record instead of an array
13965 2007-08-14 Thomas Quinot <quinot@adacore.com>
13967 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
13969 (Set_Item): When the new item is an element of the currently allocated
13970 table passed by reference, save a copy on the stack if we're going
13971 to reallocate. Also, in Table.Set_Item, make sure we test the proper
13972 variable to determine whether to call Set_Last.
13974 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
13975 symbols-vms.adb, symbols-processing-vms-alpha.adb,
13976 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
13977 some occurrences of the pattern
13979 T.Table (T.Last) := Value;
13980 with a cleaner call to
13983 2007-08-14 Ed Schonberg <schonberg@adacore.com>
13984 Gary Dismukes <dismukes@adacore.com>
13985 Thomas Quinot <quinot@adacore.com>
13987 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
13988 derived type with interface progenitors use the analyzed formal as the
13989 parent of the actual, to create renamings for all the inherited
13990 operations in Derive_Subprograms.
13991 (Collect_Previous_Instances): new procedure within of
13992 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
13993 unit being loaded, to ensure that the generation of global symbols is
13994 consistent in different compilation modes.
13995 (Is_Tagged_Ancestor): New function testing the ancestor relation that
13996 takes progenitor types into account.
13997 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
13998 traversing over the primitives of the formal and actual types to locate
13999 any abstract subprograms of the actual type that correspond to a
14000 nonabstract subprogram of the formal type's ancestor type(s), and issue
14001 an error if such is found.
14002 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
14003 Instantiate_Package_Body, Instantiate_Subprogram_Body):
14004 Remove bogus guard around calls to Inherit_Context.
14005 (Reset_Entity): If the entity is the selector of a selected component
14006 that denotes a named number, propagate constant-folding to the generic
14007 template only if the named number is global to the generic unit.
14008 (Set_Instance_Env): Only reset the compilation switches when compiling
14009 a predefined or internal unit.
14011 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14013 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
14014 parameter to determine whether operation applies to the prefix.
14015 (Complete_Object_Operation): If actual has an access type and
14016 controlling formal is not an in_parameter, reject the actual if it is
14017 an access_to_constant type.
14018 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
14019 type, the candidate operations are found in the scope of declaration of
14020 the type, because the type has no primitive subprograms.
14021 (Analyze_Selected_Component): If prefix is class-wide, and root type is
14022 a private extension, only examine visible components before trying to
14023 analyze as a prefixed call.
14024 Change Entity_List to Type_To_Use, for better readability.
14025 (Has_Fixed_Op): Use base type when checking whether the type of an
14026 operator has a user-defined multiplication/division
14027 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
14028 user-defined operators are available for fixed-point types.
14030 2007-08-14 Thomas Quinot <quinot@adacore.com>
14031 Ed Schonberg <schonberg@adacore.com>
14033 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
14034 formal At_Any_Place indicating, when True, that we want to test for
14035 availability of the stream attribute at any place (as opposed to the
14036 current visibility context only).
14037 (Missing_Read_Write_Attributes): A stream attribute is missing for the
14038 purpose of enforcing E.2.2(8) only if it is not available at any place.
14039 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
14040 when checking the legality of an extension aggregate in a preelaborable
14041 package. Treat the literal null as a valid default expression in a
14042 component declaration for a type with preelaborable initialization.
14043 A limited interface is a legal progenitor for the designated type of a
14044 remote access to class-wide type.
14046 2007-08-14 Thomas Quinot <quinot@adacore.com>
14047 Ed Schonberg <schonberg@adacore.com>
14049 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
14050 reference): Use correct entity as denoted entity for the selector of
14051 the rewritten node.
14052 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
14053 setting the Referenced_As_LHS flag for entities that are implicitly
14055 (Find_Type): If the type is an internally generated incomplete type,
14056 mark the full view as referenced, to prevent spurious warnings.
14057 (Find_Selected_Component, Has_Components): Handle properly non-limited
14058 views that are themselves incomplete types.
14059 Handle interfaces visible through limited-with clauses.
14060 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
14061 subprogram generic actual for which we have generated a renaming.
14062 Warn when the renaming introduces a homonym of
14063 the renamed entity, and the renamed entity is directly visible.
14065 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14066 Hristian Kirtchev <kirtchev@adacore.com>
14068 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
14069 appear in the subtree to the current allocator if it is not a static
14071 (Resolve_Allocator): Perform cleanup if resolution has determined that
14072 the allocator is not a coextension.
14073 (Resolve): Skip an interpretation hidden by an abstract operator only
14074 when the type of the interpretation matches that of the context.
14075 (Resolve): When looping through all possible interpretations of a node,
14076 do not consider those that are hidden by abstract operators.
14077 (Resolve_Actuals): When verifying that an access to class-wide object
14078 is an actual for a controlling formal, ignore anonymous access to
14079 subprograms whose return type is an access to class_wide type.
14080 (Resolve_Slice): If the prefix of the slice is a selected component
14081 whose type depends on discriminants, build its actual subtype before
14082 applying range checks on the bounds of the slice.
14083 (Valid_Conversion): In an instance or inlined body, compare root types,
14084 to prevent anomalies between private and public views.
14085 (Resolve): Improve error message for ambiguous fixed multiplication
14086 expressions that involve universal_fixed multiplying operations.
14088 2007-08-14 Javier Miranda <miranda@adacore.com>
14089 Hristian Kirtchev <kirtchev@adacore.com>
14091 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
14092 location to allow the correct generation of errors in case of
14093 restrictions applied to the expanded code.
14094 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
14095 function if the condition does not reference them.
14096 (Expand_Entry_Body_Declarations): Mark the index constant as having a
14099 2007-08-14 Thomas Quinot <quinot@adacore.com>
14100 Pablo Oliveira <oliveira@adacore.com>
14102 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
14103 typecode parameters for a union (in a variant record), remove
14104 extraneous layer of Any wrapping for member label.
14105 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
14106 elabration statements, register the package with the name server
14107 at the beginning, not at the end, of the elaboration statements so
14108 that they can create remote access to subprogram values that designate
14109 remote subprograms from the package.
14111 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14113 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
14114 values to compute the number of seconds since the Unix Epoc in order to
14115 account for Daylight Savings Time. Perform special processing for dates
14116 that are earlier than the Unix Epoc to obtain a negative number.
14118 2007-08-14 Emmanuel Briot <briot@adacore.com>
14120 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
14123 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
14125 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
14126 binder-generated file is not in Ada.
14127 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
14128 recorded in the ALI file.
14129 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
14131 2007-08-14 Vincent Celier <celier@adacore.com>
14133 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
14134 (Output_Source): Do nothing if parameter is No_Sdep_Id
14136 * make.adb (Gnatmake): Do not rebuild an archive simply because a
14137 shared library it imports has a later time stamp.
14138 (Check): Resolve the symbolic links in the path name of the object
14140 Check that the ALI file is in the correct object directory
14141 Check if a file name does not correspond to the mapping of units
14143 (Display_Version): New procedure
14144 (Initialize): Process switches --version and --help
14145 Use type Path_Name_Type for path name
14147 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
14149 * impunit.adb: Re-organize System.Random_Numbers and
14150 GNAT.Random_Numbers and add to builds.
14152 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
14154 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
14156 * a-assert.ads, a-assert.adb: New files.
14158 2007-08-14 Gary Dismukes <dismukes@adacore.com>
14160 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
14161 if AAMP_On_Target is True, then the size of the type encompasses two
14162 addresses (a static link and a subprogram address), except in the case
14163 of library-level access types.
14165 2007-08-14 Vincent Celier <celier@adacore.com>
14167 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
14169 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14170 possible trailing spaces.
14171 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14173 2007-08-14 Javier Miranda <miranda@adacore.com>
14175 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
14176 null-excluding access types.
14178 2007-08-14 Javier Miranda <miranda@adacore.com>
14180 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
14181 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
14182 of private types add missing check on matching interfaces in the
14183 partial and full declarations.
14184 (Analyze_Protected_Type): Code cleanup.
14185 (Analyze_Task_Type): Code cleanup.
14187 2007-08-14 Javier Miranda <miranda@adacore.com>
14189 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
14190 generated interface thunk.
14192 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14194 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
14195 obsolescent warning on application of 'Class to an incomplete type.
14197 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
14198 prevent obsolescent warning on application of 'Class to an incomplete
14201 2007-08-14 Pascal Obry <obry@adacore.com>
14203 * s-fileio.adb (Is_Open): Add check for usability of the underlying
14206 2007-08-14 Cyrille Comar <comar@adacore.com>
14208 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
14209 since it is potentially used in cases implying double finalization of
14212 2007-08-14 Jose Ruiz <ruiz@adacore.com>
14214 * s-tasini.adb (Get_Stack_Info): Move this function to
14215 System.Soft_Links.Tasking because it is common to the full and the
14216 restricted run times.
14217 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
14218 in SSL.Tasking.Init_Tasking_Soft_Links.
14220 * s-solita.adb (Get_Stack_Info): Function moved from
14221 System.Tasking.Initialization because it is common to the full and the
14222 restricted run times.
14223 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
14225 2007-08-14 Arnaud Charlet <charlet@adacore.com>
14227 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
14228 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
14229 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
14232 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
14235 2007-08-14 Gary Dismukes <dismukes@adacore.com>
14237 * s-veboop.adb (SU): New named number initialized to
14238 System.Storage_Unit.
14239 (True_Val): The initialization expression is revised to use SU (=
14240 Storage_Unit) rather than assuming 8 for the component size of an
14241 unpacked Boolean array.
14243 2007-08-14 Tristan Gingold <gingold@adacore.com>
14245 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
14247 * tb-ivms.c: New file.
14249 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
14251 2007-08-14 Geert Bosch <bosch@adacore.com>
14253 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
14254 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
14255 Add required linker pragmas for automatically linking with the gnalasup
14256 linear algebra support library, and the systems math library.
14257 Rename cdot to cdotu and zdot to zdotu.
14258 Update header comment to describe purpose of package.
14260 2007-08-14 Thomas Quinot <quinot@adacore.com>
14262 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
14263 an explicitly specified Associated_Final_Chain, use that list.
14264 (Expand_N_Package_Body): Build dispatch tables of library level tagged
14266 (Expand_N_Package_Declaration): Build dispatch tables of library level
14267 tagged types. Minor code cleanup.
14269 2007-08-14 Vincent Celier <celier@adacore.com>
14271 * gnatchop.adb (Terminate_Program): Remove exception and use
14272 Types.Terminate_Program instead.
14274 * osint.ads, osint.adb (Current_Exit_Status): New global variable
14275 (Find_Program_Name): Added protection against empty name.
14276 (OS_Exit_Through_Exception): New procedure
14278 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
14279 (OS_Exit_Default): New procedure that contains the previous
14280 implementation of procedure OS_Exit.
14281 (Final_Value): Remove obsolete Interix stuff.
14283 2007-08-14 Thomas Quinot <quinot@adacore.com>
14285 * g-socket.ads: Reorganize example code so that it also works on
14288 2007-08-14 Tristan Gingold <gingold@adacore.com>
14290 * g-trasym.ads: AIX now supports symbolic backtraces.
14292 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14294 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
14295 units being loaded to detect circularities. A circularity may be
14296 present even if the current chain of pending units to load starts from
14297 a limited_with_clause.
14299 * lib-load.ads: Change profile of Load_Unit to use a with_clause
14300 rather than a boolean flag, in order to detect circularities in
14303 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
14304 than propagating the From_Limited_With flag, in order to handle
14305 properly circularities involving with_clauses.
14307 2007-08-14 Nicolas Setton <setton@adacore.com>
14309 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
14312 2007-08-14 Arnaud Charlet <charlet@adacore.com>
14314 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
14315 to build for libgnala.
14316 libgnat: Add rules to build libgnala.a
14317 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
14318 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
14319 Add s-osinte-vxworks-kernel.adb to the target pairs of the
14320 kernel run-time lib for VxWorks 6, which would provide a different
14321 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
14322 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
14323 running ZCX by default.
14324 Add g-sttsne-locking to LynxOS version.
14325 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
14326 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
14328 * system-darwin-x86.ads: New file.
14330 * Make-lang.in: Delete files before copying onto them, so if they are
14331 read-only, the copy won't fail.
14332 Update dependencies
14334 2007-08-14 Pascal Obry <obry@adacore.com>
14336 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
14339 2007-08-14 Vincent Celier <celier@adacore.com>
14341 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
14342 (Gcc): Initialize Gcc_Name at the first call
14344 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14346 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
14347 with_clauses of the enclosing unit when analyzing the package
14348 specification of a nested instance.
14350 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14352 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
14353 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
14354 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
14355 layout of N_Allocator.
14357 2007-08-14 Thomas Quinot <quinot@adacore.com>
14359 * rtsfind.adb (Check_RPC): Add PCS version check.
14361 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
14362 (Gnat_Free_Software): New function.
14364 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
14365 the PCS_Version value from s-parint, used to check that it is consistent
14366 with what exp_dist expects.
14368 * s-parint.ads (PCS_Version): New entity for checking consistency
14369 between exp_dist and PCS.
14371 * gen-soccon.c: (SO_REUSEPORT): New constant.
14373 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14375 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
14376 variable Sub_Second to Duration in order to accomodate a larger range
14377 of arithmetic operations.
14379 2007-08-14 Bob Duff <duff@adacore.com>
14381 * g-sttsne-locking.ads: Move comments from spec to body.
14382 * g-sttsne-locking.adb: Move comments from spec to body.
14383 * g-sttsne-vxworks.ads: Removed.
14384 * g-sttsne-vxworks.adb: Removed.
14386 2007-08-11 Ian Lance Taylor <iant@google.com>
14388 * misc.c (gnat_get_alias_set): Change return type to
14391 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14393 * decl.c, utils2.c: Fix whitespace in last change.
14395 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14397 * decl.c (compare_field_bitpos): Constify.
14398 * utils2.c (compare_elmt_bitpos): Likewise.
14400 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
14402 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
14403 anonymous access type.
14404 (pthread_sigmask): Now take an access sigset_t.
14406 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
14408 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
14410 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
14412 PR tree-optimization/25737
14413 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
14415 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
14417 * trans.c (Attribute_to_gnu): When subtracting an
14418 offset from a pointer, use POINTER_PLUS_EXPR with
14419 NEGATE_EXPR instead of MINUS_EXPR.
14420 (gnat_to_gnu): Likewise.
14421 * utils.c (convert): When converting between
14422 thin pointers, use POINTER_PLUS_EXPR and sizetype
14424 * utils2.c (known_alignment): POINTER_PLUS_EXPR
14425 have the same semantics as PLUS_EXPR for alignment.
14426 (build_binary_op): Add support for the semantics of
14427 POINTER_PLUS_EXPR's operands.
14428 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
14430 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
14432 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
14433 of get_signed_or_unsigned_type.
14434 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
14436 2007-06-11 Bob Duff <duff@adacore.com>
14437 Thomas Quinot <quinot@adacore.com>
14439 * g-stsifd-sockets.adb (Create): Work around strange behavior of
14440 'bind' on windows that causes 'connect' to fail intermittently, by
14441 retrying the 'bind'.
14442 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14444 2007-06-10 Duncan Sands <baldrick@free.fr>
14446 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
14447 than to void, for the fields when making a new fat pointer type.
14448 (gnat_substitute_in_type): Now substitute_in_type.
14449 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
14450 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
14451 * utils.c (update_pointer_to): Update fat pointers by updating the
14452 dummy node pointers used for the fields.
14454 2007-06-06 Thomas Quinot <quinot@adacore.com>
14455 Bob Duff <duff@adacore.com>
14457 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
14458 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14459 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
14460 constant Thread_Blocking_IO, always True by default, set False
14461 on a per-runtime basis.
14462 (Need_Netdb_Buffer): New constant.
14464 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
14465 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
14468 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
14469 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
14470 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
14471 child package Task_Safe_NetDB
14472 (Host_Error_Messages): Add stub body.
14473 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14475 * g-soccon-mingw.ads: Add Windows-specific constants.
14476 (Need_Netdb_Buffer): New constant.
14477 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
14478 wrapper and import inet_addr(3) from the standard sockets library
14480 (In_Addr): Add alignment clause.
14481 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
14483 2007-06-06 Robert Dewar <dewar@adacore.com>
14485 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14486 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
14487 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
14488 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
14489 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
14490 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
14491 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
14492 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
14493 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
14494 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
14495 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
14496 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
14497 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
14498 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
14499 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
14500 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
14501 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
14502 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
14503 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
14504 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
14505 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
14506 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
14507 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
14508 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
14509 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
14510 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
14511 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
14512 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
14513 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
14514 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
14515 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
14516 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
14517 Unchecked_* by Ada.Unchecked_*
14519 2007-06-06 Robert Dewar <dewar@adacore.com>
14521 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
14522 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
14523 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
14524 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
14525 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
14526 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
14528 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
14529 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
14530 s-tasloc.adb, s-tasloc.ads: New files.
14532 2007-06-06 Bob Duff <duff@adacore.com>
14534 * g-expect-vms.adb:
14535 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
14536 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
14537 (Send_Signal, Close): Raise Invalid_Process if the process id is
14539 (Pattern_Matcher_Access): Is now a general access type to be able to
14540 use aliased string.
14542 2007-06-06 Thomas Quinot <quinot@adacore.com>
14543 Arnaud Charlet <charlet@adacore.com>
14545 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
14546 (SIGEMT is now used instead of SIGTERM on AIX).
14548 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
14549 (Time_Slice_Supported): Set to True.
14550 Use SIGEMT instead of SIGTERM as SIGADAABORT.
14552 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14554 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
14555 (Time, Time)): Use To_Relative_Time rather than manual calculation to
14556 express the bounds of Duration as Time. Raise Time_Error when the
14557 result is greater or equal to the higher bound of Duration (on the
14559 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
14560 Ada_High_And_Leaps.
14561 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
14562 Ada_High_And_Leaps.
14563 ("-" (Time, Time)): Reorder code.
14564 (All_Leap_Seconds): Removed.
14565 (Arithmetic_Operations.Add): Remove sign related kludge.
14566 (Arithmetic_Operations.Difference): Control the leaps seconds processing
14567 with flag Leap_Support.
14568 (Arithmetic_Operations.Subtract): Remove sign related kludge.
14569 (Check_Within_Time_Bounds): New procedure.
14570 (Clock): Control the leap seconds processing with flag Leap_Support.
14571 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
14572 (Formatting_Operations.Split): Control the leap seconds processing with
14574 (Formatting_Operations.Time_Of): Control the leaps seconds processing
14575 with flag Leap_Support. Adjust the year, month and day (if applicable)
14576 when the value of day seconds designates a new day.
14577 (Split): Use parameter associations for better readability. Integrate
14579 (Time_Of): Use parameter associations for better readability. Integrate
14582 * a-calfor.adb (Split): Use parameter associations for better
14583 readability. Integrate flag Is_Ada_05.
14584 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
14585 better readability. Integrate flag Is_Ada_05.
14587 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14589 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
14590 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
14591 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
14592 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
14593 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
14594 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
14595 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
14596 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
14597 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
14598 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
14599 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
14600 time when entering this routine to detect a backward clock setting
14601 (manual setting or DST adjustment), to avoid waiting for a longer delay
14603 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
14604 Remove handling of deferred priority change, and replace by setting the
14605 task priority directly, as required by AI-188.
14607 (Max_Task_Image_Length): New constant.
14608 Replace Warnings (Off) by Unreferenced pragma, cleaner.
14609 (Dynamic_Priority_Support): Removed, no longer needed.
14610 (Poll_Base_Priority_Change): Ditto.
14611 (Set_Ceiling): Add this procedure to change the ceiling priority
14612 associated to a lock. This is a dummy implementation because dynamic
14613 priority ceilings are not supported by the underlying system.
14615 * a-dynpri.adb (Set_Priority): Take into account case where Target is
14616 accepting a RV with its priority boosted.
14617 Remove handling of deferred priority change, and replace by setting the
14618 task priority directly, as required by AI-188.
14620 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
14622 Remove handling of deferred priority change, and replace by setting the
14623 task priority directly, as required by AI-188.
14624 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
14625 of Self_Id earlier.
14627 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
14628 (Poll_Base_Priority_Change): Removed.
14629 Code clean up: use SSL.Current_Target_Exception.
14631 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
14632 to run as this is a potentially dispatching point.
14633 (Call_Synchronous): Use Local_Defer_Abort.
14634 (Callable): Relax assertion.
14635 (Selective_Wait): Relax assertion in case abort is not allowed.
14636 Remove handling of deferred priority change, and replace by setting the
14637 task priority directly, as required by AI-188.
14639 * s-tasuti.adb (Make_Passive): Adjust assertions.
14640 Remove handling of deferred priority change, and replace by setting the
14641 task priority directly, as required by AI-188.
14643 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14645 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
14646 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14647 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
14648 system-vxworks-mips.ads, system-vxworks-alpha.ads,
14649 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
14650 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
14651 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
14652 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
14653 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
14654 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
14655 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
14656 This patch changes the largest non-binary modulus from 2**31-1 to
14658 (Compiler_System_Version): Removed, no longer used.
14659 Clean up system files by removing flags only used on a single target.
14660 Also remove obsolete flags, only used during bootstrap from system.ads
14661 (Address): Add a pragma Preelaborable_Initialization.
14663 * system-aix.ads: Ditto.
14664 (GCC_ZCX_Support): Set to true.
14665 Update priority range on AIX and map Ada priorities to target
14666 priorities appropriately for different scheduling policies.
14668 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
14670 2007-06-06 Vincent Celier <celier@adacore.com>
14672 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
14673 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
14675 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
14676 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
14677 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
14678 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14679 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
14680 MLib.Tgt, containing the default versions of the exported subprograms.
14681 For each platform, create a specific version of the body of new child
14682 package MLib.Tgt.Specific that contains only the body of subprograms
14683 that are different from the default.
14684 (Archive_Builder_Append_Options): New function.
14686 2007-06-06 Matthew Gingell <gingell@adacore.com>
14688 * s-osinte-aix.adb: Map Ada priorities to target priorities
14689 appropriately for different scheduling policies.
14691 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14693 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
14695 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
14696 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
14698 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
14700 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
14701 Noop on VMS, added for interface commonality.
14703 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14704 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14705 Olivier Hainque <hainque@adacore.com>
14707 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
14708 renamed expression of a full renaming at toplevel.
14709 (gnat_to_gnu_entity, case object): If not defining, do not look inside
14710 the values the constant is initialized to if it is an N_Allocator.
14711 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
14712 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
14713 (make_aligning_type): Accept an extra ROOM argument for storage to be
14714 made available before the aligned field, and an extra BASE_ALIGN
14715 argument for callers to pass the alignment guaranteed to be honored for
14716 the whole aligning object. Avoid call to finish_record_type, which only
14717 interferes with the sizes we want to set.
14718 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
14719 make_aligning_type for super-aligned objects on stack.
14720 (components_to_record): Pass the adjusted size of the type when creating
14721 fields in the qualified union for the variant part.
14722 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
14723 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
14725 (maybe_pad_type): Set TYPE_USER_ALIGN.
14726 (make_aligning_type): Likewise.
14727 ALIGN argument is unsigned int.
14728 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
14729 (gnat_to_gnu_param): Likewise, for parameters.
14730 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
14731 if it is constant and stems from a function call.
14732 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
14733 of the record is specified. Adjust accordingly.
14734 (adjust_packed): New static function.
14735 (gnat_to_gnu_field): Use it to adjust the packedness setting.
14736 (components_to_record): Likewise.
14737 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
14738 side-effects if the object is deemed constant.
14739 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
14740 type instead of merely finalizing it. Tidy.
14741 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
14742 <E_Access_Type>: Likewise.
14743 (defer_debug_incomplete_list): Rename to defer_finalize_list.
14744 (defer_debug_level): Delete.
14745 (gnat_to_gnu_entity) <debug_deferred>: Likewise
14746 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
14748 <E_Record_Type>: Do not explicitly defer finalizing the type.
14749 Adjust for write_record_type_debug_info renaming.
14750 <E_Subprogram_Type>: Likewise.
14751 Finalize deferred types right after deferred incomplete types are
14753 (rest_of_type_decl_compilation): New global function.
14754 (components_to_record): Rename defer_debug parameter to do_not_finalize.
14755 (components_to_record): Propagate the packedness to the fields of the
14756 qualified union type if there is a variant part.
14757 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
14758 instead of inline code to adjust the XUT field offsets.
14759 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
14760 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
14761 and write the debug info if the type derives from a discriminated one.
14762 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
14763 <E_Array_Subtype>: Likewise.
14764 <E_String_Literal_Subtype>: Likewise.
14765 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
14766 an alignment clause.
14767 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
14768 before giving warning.
14769 (prepend_one_attribute_to): New function, helper to prepend an attribute
14770 to an attribute list.
14771 (gnat_to_gnu_entity) <E_Procedure>: Use it.
14772 (prepend_attributes): Likewise.
14773 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
14774 <E_Array_Type>: Declare the padding type for the element type, if any.
14775 <E_Array_Subtype>: Likewise.
14776 (defer_limited_with): New variable.
14777 (Gigi_Equivalent_Type): New function.
14778 (gnat_to_gnu_entity): Use it at start and use result throughout.
14779 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
14780 Gigi_Equivalent_Type, support Limited_With, allow two levels of
14781 indirection, precompute if unconstrained array to simplify logic, and
14782 use defer_limited_with to defer elaboration of some types from limited
14784 (finalize_from_with_types): New function.
14786 2007-06-06 Gary Dismukes <dismukes@adacore.com>
14787 Eric Botcazou <ebotcazou@adacore.com>
14788 Tristan Gingold <gingold@adacore.com>
14789 Olivier Hainque <hainque@adacore.com>
14791 * trans.c (Identifier_to_gnu): Change test for deferred constant by
14792 adding guard that the entity is an E_Constant before testing presence
14793 of Full_view (and remove unnecessary test that entity is not a type).
14794 For a CONST_DECL used by reference, manually retrieve
14795 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
14796 (struct language_function): Move from utils.c to here.
14797 (struct parm_attr): New structure.
14798 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
14799 (f_parm_attr_cache): New macro.
14800 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
14801 expressions for the 'First, 'Last and 'Length attributes of the
14802 unconstrained array IN parameters.
14803 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
14804 Allocate the information structure for the function earlier, as well
14805 as the language-specific part.
14806 If the parameter attributes cache has been populated, evaluate the
14807 cached expressions on entry.
14808 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
14809 N_Procedure_Call_Statement and N_Indexed_Component.
14810 (Pragma_to_gnu): Translate inspection_point to an asm statement
14811 containaing a comment and a reference to the object (either its address
14812 for BLKmode or its value).
14813 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
14814 to go to DECL_INITIAL. Together with the size constraint relaxation
14815 in create_var_decl, enlarges the set of situations in which an
14816 identifier may be used as an initializer without implying elaboration
14818 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
14819 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
14821 (maybe_stabilize_reference): Remove lvalues_only parameter.
14822 (gnat_stabilize_reference): Adjust for above change.
14823 (gnat_to_gnu): Do not set location information on the result
14824 if it is a reference.
14825 (add_cleanup): Add gnat_node parameter and set the location of the
14827 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
14828 (Exception_Handler_to_gnu_zcx): Likewise.
14829 (gigi): Remove the cgraph node if the elaboration procedure is empty.
14830 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
14831 the former right after the latter.
14832 (start_stmt_group): Make global.
14833 (end_stmt_group): Likewise.
14834 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
14836 (gnu_program_error_label_stack): Likewise.
14837 (gigi): Initialize them.
14838 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
14839 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
14841 (push_exception_label_stack): New function.
14842 (takes_address): New function.
14844 * utils.c (struct language_function): Move to trans.c from here.
14845 (unchecked_convert): Do not wrap up integer constants in
14846 VIEW_CONVERT_EXPRs.
14847 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
14848 the latter for aggregate types, unexpected by later passes, and relax an
14849 arbitrary size constraint on the former.
14850 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
14851 to compare the sizes.
14852 (convert_vms_descriptor): When converting to a fat pointer type, be
14853 prepared for a S descriptor at runtime in spite of a SB specification.
14854 (shift_unc_components_for_thin_pointers): New function.
14855 (write_record_type_debug_info): For variable-sized fields, cap the
14856 alignment of the pointer to the computed alignment.
14857 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
14858 If REP_LEVEL is 2, do not compute the sizes.
14859 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
14860 (build_unc_object_type): Likewise.
14861 (declare_debug_type): New function.
14863 * ada-tree.def: USE_STMT: removed (not emitted anymore).
14865 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
14866 no statement is expandable anymore.
14867 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
14868 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
14869 when the user requested it explicitely.
14870 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
14872 (get_alias_set): Return alias set 0 for a type if
14873 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
14875 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
14876 (DECL_FUNCTION_STUB): New accessor macro.
14877 (SET_DECL_FUNCTION_STUB): New setter macro.
14879 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
14881 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
14884 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14886 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
14887 Rename to Abort_Task_Interrupt to be able to keep the same interface
14888 as the rest of the targets.
14890 * s-osinte-vxworks.ads s-osinte-vxworks.adb
14891 (To_VxWorks_Priority): Remove explicit "in" mode indicator
14893 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
14896 2007-06-06 Robert Dewar <dewar@adacore.com>
14898 * a-chahan.ads: Remove obsolescent pragmas
14900 * a-chlat1.ads: Minor reformatting
14902 2007-06-06 Robert Dewar <dewar@adacore.com>
14904 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
14907 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
14910 * errout.ads (Finalize): Changed interface
14911 (Output_Messages): New procedure
14912 (Compilation_Errors): New Interface
14914 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
14915 Finalize/Output_Messages interface for Errout
14916 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
14919 2007-06-06 Thomas Quinot <quinot@adacore.com>
14920 Olivier Hainque <hainque@adacore.com>
14921 Robert Dewar <dewar@adacore.com>
14923 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
14925 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14926 propagation starts, to let debuggers know about the event in a reliable
14928 (Local_Raise): Moved to System.Exceptions
14929 More convenient to have this as a separate unit
14931 * s-except.adb, s-except.ads: New files.
14933 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
14934 Debug_Unhandled_Exception in System.Exceptions where it belongs
14935 together with a couple of other debug helpers.
14936 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
14937 the former Unhandled_Exception.
14939 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
14940 (Warn_No_Exception_Propagation): New procedure
14941 (Warn_If_No_Propagation): Rewritten for new warning generation
14942 (Expand_Exception_Handlers): New warning generation
14943 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
14944 (Add_Exception_Label): Use Special_Exception_Package_Used for test
14945 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
14946 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
14947 even if restriction is set (makes life easier in Check_Returns)
14948 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
14949 checking exception identities.
14950 (Expand_Local_Exception_Handlers): Do not optimize when all others case
14951 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
14952 block for handler (used by Check_Returns)
14953 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
14954 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
14955 remove all exception handlers when optimizing local raise statements.
14956 (Find_Local_Handler): Use Get_Renamed_Entity
14957 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
14958 marked analyzed after expanding exception handlers, do not generate
14959 redundant cleanup actions, because they have been constructed already.
14961 2007-06-06 Thomas Quinot <quinot@adacore.com>
14963 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
14964 presence of this categorization pragma is mandated by the language.
14965 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
14968 2007-06-06 Vincent Celier <celier@adacore.com>
14969 Robert Dewar <dewar@adacore.com>
14971 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
14972 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
14973 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
14974 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
14975 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
14976 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
14977 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
14978 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
14979 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
14980 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
14981 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
14983 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
14984 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
14985 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
14986 Use variables of types File_Name_Type and Unit_Name_Type in error
14988 (Get_Name): Add parameter Ignore_Special, and set it reading file name
14989 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
14991 Define flags Flag217-Flag230 with associated subprograms
14992 (Flag_Word5): New record type.
14993 (Flag_Word5_Ptr): New access type.
14994 (To_Flag_Word5): New unchecked conversion.
14995 (To_Flag_Word5_Ptr): Likewise.
14996 (Flag216): New function.
14997 (Set_Flag216): New procedure.
14999 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15001 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
15004 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
15006 2007-06-06 Javier Miranda <miranda@adacore.com>
15008 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
15010 (Object_Specific_Data_Array): This is now internal to the package.
15011 (Object_Specific_Data): This is now internal to the package.
15012 (Select_Specific_Data_Element): This is now internal to the package.
15013 (Select_Specific_Data_Array): This is now internal to the package.
15014 (Select_Specific_Data): This is now internal to the package.
15015 (Offset_To_Top_Function_Ptr): This is now public.
15016 (To_Offset_To_Top_Function_Ptr): Removed.
15017 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
15018 local to subprogram Offset_To_Top.
15019 (Predefined_DT): Removed.
15020 (Typeinfo_Ptr): Removed.
15021 (OSD): This function is now internal to this package.
15022 (SSD): This function is now internal to this package.
15023 (DT): New function that displaces the pointer to the table of primitives
15024 to get access to the enclosing wrapper record.
15025 (IW_Membership): Code cleanup.
15026 (Offset_To_Top): Code cleanup.
15027 (Predefined_DT): Removed.
15028 (Register_Interface_Tag): Removed.
15029 (Set_Interface_Table): Removed.
15030 (Set_Offset_Index): Removed.
15031 (Set_Offset_To_Top): Code cleanup.
15032 (Set_OSD): Removed.
15033 (Set_Signature): Removed.
15034 (Set_SSD): Removed.
15035 (Set_Tagged_Kind): Removed.
15036 (Typeinfo_Ptr): Removed.
15038 (Displace): Add missing check on null actual.
15040 * exp_disp.ads, exp_disp.adb
15041 (Select_Expansion_Utilities): Removed.
15042 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
15043 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
15044 the interface requires a new parameter.
15045 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
15046 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
15047 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
15048 Done to remove package Select_Expansion_Utilities.
15049 (Make_DT): New implementation for statically allocated dispatch tables.
15050 (Make_Secondary_DT): Moved to the scope of Make_DT.
15051 (Register_Primitive): Code cleanup plus incoporate the use of the new
15052 function DT_Address_Attribute.
15053 (Expand_Interface_Thunk): The profile of this subprogram has been
15054 changed to return the Thunk_Id and the corresponding code.
15055 (Fill_DT_Entry): Removed. Its functionality is now provided by
15056 subprogram Register_Primitive.
15057 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
15058 subprogram Register_Primitive.
15059 (Register_Primitive): New subprogram that incorporates the previous
15060 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
15061 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
15062 was only required to call Make_DT_Access_Action, which is now removed.
15063 (Ada_Actions): Removed
15064 (Action_Is_Proc): Removed
15065 (Action_Nb_Arg): Removed
15066 Replace all the calls to Make_DT_Access_Action by direct calls to
15067 Make_Procedure_Call_Statement or Make_Function_Call.
15068 (Set_DTC_Entity_Value): New subprogram.
15069 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
15070 (Expand_Interface_Thunk): Add missing support for primitives that are
15071 functions with a controlling result (case in which there is no need
15072 to generate the thunk).
15074 * exp_atag.ads, exp_atag.adb
15075 (Build_DT): New subprogram that displaces the pointer to reference the
15076 base of the wrapper record.
15077 (Build_Typeinfo_Offset): Removed.
15078 (RTE_Tag_Node): Removed.
15079 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
15080 (Build_Get_RC_Offset): Removed.
15081 (Build_Inherit_Predefined_Prims): Removed.
15082 (Build_Inherit_TSD: Removed.
15083 (Build_New_TSD): Removed.
15084 (Build_Set_External_Tag): Removed.
15085 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
15086 (Build_Set_Prim_Op_Address): Add documentation.
15087 (Build_Set_TSD): Removed.
15089 * rtsfind.ads, rtsfind.adb
15090 (Load_Fail): If load fails and we are not in configurable run-time
15091 mode, then raise Unrecoverable_Error.
15092 (Text_IO_Kludge): Generate an error message if a run-time library is
15093 not available in a given run-time (ie. zfp run-time).
15094 (RTE_Record_Component): Add code to check that the component we search
15095 for is not found in two records in the given run-time package.
15096 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
15097 (RE_DT_Predef_Prims_Offset): New entity
15098 (RE_Static_Offset_To_Top): New entity
15099 (RE_HT_Link): New entity.
15100 (System_Address_Image): Addition of this run-time package.
15101 (RE_Address_Image): New entity.
15102 (RE_Abstract_Interface): Removed.
15103 (RE_Default_Prim_Op_Count): Removed.
15104 (RE_DT_Entry_Size): Removed.
15105 (RE_DT_Min_Prologue_Size): Removed.
15106 (RE_DT_Prologue_Size): Removed.
15107 (RE_Ifaces_Table_Ptr): Removed.
15108 (RE_Interface_Data_Ptr): Removed.
15109 (RE_Type_Specific_Data): Removed.
15110 (RE_Primary_DT): Removed.
15111 (RE_Register_Interface_Tag): Removed.
15112 (RE_Set_Offset_Index): Removed.
15113 (RE_Set_OSD): Removed.
15114 (RE_Set_SSD): Removed.
15115 (RE_Set_Signature): Removed.
15116 (RE_Set_Tagged_Kind): Removed.
15117 (RE_Address_Array): New entity.
15118 (RE_DT): New entity.
15119 (RE_Iface_Tag): New entity.
15120 (RE_Interfaces_Table): New entity.
15121 (RE_No_Dispatch_Table): New entity.
15122 (RE_NDT_Prims_Ptr): New entity.
15123 (RE_NDT_TSD): New entity.
15124 (RE_Num_Prims): New entity.
15125 (RE_Offset_To_Top_Function_Ptr): New entity.
15126 (RE_OSD_Table): New entity.
15127 (RE_OSD_Num_Prims): New entity.
15128 (RE_Predef_Prims): New entity
15129 (RE_Predef_Prims_Table_Ptr): New entity.
15130 (RE_Primary_DT): New entity.
15131 (RE_Signature): New entity.
15132 (RE_SSD): New entity.
15133 (RE_TSD): New entity.
15134 (RE_Type_Specific_Data): New entity.
15135 (RE_Tag_Kind): New entity.
15137 2007-06-06 Thomas Quinot <quinot@adacore.com>
15139 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
15140 C imported variable.
15141 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
15144 2007-06-06 Robert Dewar <dewar@adacore.com>
15146 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
15149 2007-06-06 Vincent Celier <celier@adacore.com>
15151 * a-tifiio.adb (Put, internal): For negative numbers, check that there
15152 is room for at least one digit and the minus sign.
15153 (Put.Put_Character): Never put a character outside of the range of
15156 2007-06-06 Olivier Hainque <hainque@adacore.com>
15157 Eric Botcazou <ebotcazou@adacore.com>
15159 * utils2.c (build_allocator): Provide the extra arguments to
15160 make_aligning_type for super-aligned objects allocated from the default
15161 pool. Leave enough room for a pointer before the aligning field, and
15162 store the system's allocator return value there.
15163 (build_call_alloc_dealloc): When releasing a super-aligned object,
15164 retrieve the system's allocator return value from where build_allocator
15165 has stored it, just ahead of the adjusted address we are passed.
15166 (build_call_raise): Handle properly the generation of line numbers when
15167 the node is marked No_Location.
15168 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
15169 by using DECL_UID on ties.
15170 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
15172 (build_call_raise): Handle converting exception into goto; support new
15174 (build_component_ref): Add new arg to build_call_raise.
15176 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15178 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
15179 "." in the case of nnn.xxx when nnn terminates with an underscore.
15180 Parse the remaining "#" or ":" in the case of nnn#.xxx#
15182 2007-06-06 Robert Dewar <dewar@adacore.com>
15184 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
15186 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15187 Vincent Celier <celier@adacore.com>
15188 Robert Dewar <dewar@adacore.com>
15190 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
15192 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
15193 ((destructor)) for adafinal, even when switch -a is used.
15194 Do not issue pragma Linker_Destructor for adafinal when switch -a is
15196 (Gen_Object_Files_Options): Add formatting of Linker Options, when
15197 Output_Linker_Option_List is set. Suppress this formatting when
15198 Zero_Formatting is set.
15199 Add case for CLI_Target.
15200 (System_Restrictions_Used): New flag, used to avoid generating with of
15201 System_Restrictions and initialization of the data unless there is
15202 some use of System.Restrictions in the partition.
15203 (Check_System_Restrictions_Used): New procedure
15205 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
15206 since we only with this unit in the binder file if it is used elsewhere
15209 2007-06-06 Vincent Celier <celier@adacore.com>
15211 * bindusg.adb: Add line for @<response file>
15212 Add lines for new switches -R and -Z
15214 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
15215 hierarchy in the list of files of the closure when -R is used
15216 (Gnatbind): Accept arguments starting with '@' to indicate response
15217 files and take the arguments from the response files.
15218 If List_Closure is set, display the referenced files
15220 2007-06-06 Javier Miranda <miranda@adacore.com>
15221 Robert Dewar <dewar@adacore.com>
15222 Ed Schonberg <schonberg@adacore.com>
15224 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
15225 which the address-clause is applied to in-mode actuals (allowed by
15227 (Apply_Discriminant_Check): Do not generate a check if the type is
15228 constrained by a current instance.
15229 (Activate_Division_Check): New procedure
15230 (Activate_Overflow_Check): New procedure
15231 (Activate_Range_Check): New procedure
15232 Call these new Activate procedures instead of setting flags directly
15233 (Apply_Array_Size_Check): Removed, no longer needed.
15234 Code clean up: remove obsolete code related to GCC 2.
15235 (Get_E_Length): Protect against bomb in case scope is standard
15236 (Selected_Range_Checks): If the node to be checked is a conversion to
15237 an unconstrained array type, and the expression is a slice, use the
15238 bounds of the slice to construct the required constraint checks.
15239 Improve NOT NULL error messages
15240 (Apply_Constraint_Check): If the context is a null-excluding access
15241 type, diagnose properly the literal null.
15243 2007-06-06 Pascal Obry <obry@adacore.com>
15245 * clean.adb (Clean_Archive): Use untouched casing for the archive name
15246 and the corresponding .deps file.
15247 (Clean_Interface_Copy_Directory): Use untouched casing for the library
15248 src directory. Minor code-clean-up. Use untouched casing for files
15249 read into the library src dir.
15250 (Clean_Library_Directory): Idem.
15251 (Parse_Cmd_Line): Accept new switch -aP
15253 2007-06-06 Javier Miranda <miranda@adacore.com>
15254 Ed Schonberg <schonberg@adacore.com>
15255 Robert Dewar <dewar@adacore.com>
15256 Eric Botcazou <ebotcazou@adacore.com>
15257 Arnaud Charlet <charlet@adacore.com>
15259 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
15260 applicable to types that have the With_Type flag set. Returns the
15261 non-limited view of the type, if available, otherwise the type itself.
15262 For class-wide types, there is no direct link in the tree, so we have
15263 to retrieve the class-wide type of the non-limited view of the Etype.
15264 New attributes Static_Initialization and Static_Elaboration_Desired.
15265 Remove the pragma Thread_Body, and the associated flag
15266 Is_Thread_Body in entities, and all related code.
15267 (Suppress_Value_Tracking_On_Call): New flag
15268 E_Exception has Esize and Alignment fields
15269 (Universal_Aliasing): New function.
15270 (Set_Universal_Aliasing): New procedure.
15271 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
15272 (Check_Nested_Access): New procedure.
15273 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
15274 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
15275 (Related_Interface): New attribute. Present in dispatch table pointer
15276 components of records. Set to point to the entity of the corresponding
15278 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
15279 (Original_Access_Type): Remove, not needed.
15280 (Root_Type): Handle properly subtypes of class-wide-types.
15283 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
15284 class-wide types visible through limited-with clauses.
15285 (Try_Primitive_Operation): When examining all primitive operations of a
15286 tagged type, do not consider subprograms labeled as hidden unless they
15287 belong to a private generic type with a tagged parent.
15288 (Try_Object_Operation): Extensive rewriting, to handle properly various
15289 overloading cases, when several ancestors may have class-wide operations
15290 that are possible candidates, and when the overloaded functions return
15291 array types and have defaulted parameters so that the call may be
15292 interpreted as an indexing.
15293 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
15294 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
15295 successive actuals before analyzing the call itself.
15296 (Try_Primitive_Operation): A primitive operation is compatible with the
15297 prefix if the prefix has a synchronized type and the type of the formal
15298 is its corresponding record, as can be the case when the primitive
15299 operation is declared outside of the body of the type.
15300 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
15301 perform homonym traversal, looking for class-wide operation matches
15302 (formerly done in statements of Try_Class_Wide_Operation). Matches on
15303 access parameters are now restricted to anonymous access types.
15304 (Mark_Allocator): An allocator with a discriminant association parent is
15306 (Try_One_Prefix_Interpretation): If the type of the object is
15307 incomplete, as can be happen when it is a limited view obtained through
15308 a limited_with_clause, the selected component is not part of a prefixed
15310 (Complete_Object_Operation): Diagnose properly an object that is not
15311 aliased when the corresponding controlling formal is an access
15313 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
15314 ambiguous calls in prefixed notation, where two primitives differ only
15315 in that the controlling argument of one is an access parameter.
15317 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
15318 whether a function that returns an unconstrained type can be inlined.
15319 (Process_Formals): Diagnose properly the illegal use of an incomplete
15320 type in the profile of an access_to_subprogram declaration.
15321 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
15322 operations are attached to the corresponding record.
15323 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
15324 When processing a primitive of a concurrent type which implements an
15325 interface change the type of all controlling formals to that of the
15326 corresponding record type.
15327 (Check_Synchronized_Overriding): Relax the conditional logic when trying
15328 to determine the tagged type to which a primitive belongs.
15329 (Check_Conventions): Capture condition to ignore a primitive operation
15330 (which is shared between the loop in Check_Conventions and the one in
15331 Check_Convention) in a new local function Skip_Check.
15332 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
15333 confusion with Check_Conventions' own Prim_Op local variable.
15334 (Create_Extra_Formals): Test for a tagged result type rather than a
15335 controlling result when determining whether to add a BIP_Alloc_Form
15336 formal and a BIP_Final_List formal to the function.
15337 (Check_Conformance); For parameters that are anonymous access types,
15338 subtype conformance requires that the not null and the constant
15339 indicators must match
15340 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
15341 to retrieve the appropriate type when processing a concurrent type
15342 declared within a generic. Minor comment reformatting. Change invocation
15343 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
15345 (Analyze_Subprogram_Body): If the return type of a function is an
15346 anonymous access to the limited view of a class-wide type, and the
15347 non-limited view of the type is available, update the type of the
15348 function so that code can be generated.
15349 (Process_Formals): In case of access-subtype itype whose designated
15350 type is also an itype (situation that happens now with access to
15351 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
15352 attribute to avoid backend problems.
15353 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
15354 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
15355 anonymous types' designated types are same before testing
15356 Subtypes_Statically_Match.
15357 (Create_Extra_Formals): Test for a named access parameter that is a
15358 controlling formal as an additional condition for adding an
15359 accessibility level formal. This can occur in the subp type created for
15360 dispatching calls in Expand_Dispatching_Call, and allows calling
15361 Create_Extra_Formals from that procedure rather than special-casing the
15362 extra formals there.
15363 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
15364 when the function has a controlling result.
15365 (Check_Returns): Add much more knowledge of the optimization of local
15366 raise statements to gotos, to retain proper warnings in this case.
15367 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
15368 nodes when looking for last statement.
15370 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
15371 class-wide types visible through limited with clauses.
15372 (Add_One_Interp): If the operands are anonymous access types, the
15373 predefined operator on universal_access is immediately visibles
15374 (Find_Unique_Type): Handle anonymous access to subprogram types just as
15375 other anonymous access types.
15376 (Disambiguate): Take into account CIL convention.
15377 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
15379 2007-06-06 Robert Dewar <dewar@adacore.com>
15381 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
15382 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
15383 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
15384 Fix lower bound of tables.
15387 * nlists.adb: Ditto.
15388 (Prev_Node, Next_Node): Change index type to Int so that it properly
15389 covers the range First_Node_Id - 1 up.
15391 2007-06-06 Javier Miranda <miranda@adacore.com>
15392 Ed Schonberg <schonberg@adacore.com>
15393 Bob Duff <duff@adacore.com>
15394 Hristian Kirtchev <kirtchev@adacore.com>
15396 * exp_aggr.ads, exp_aggr.adb:
15397 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
15398 in extension aggregates.
15399 (Flatten): Other conditions being met, an aggregate is static if the
15400 low bound given by component associations is different from the low
15401 bound of the base index type.
15402 (Packed_Array_Aggregate_Handled): If the component type is itself a
15403 packed array or record, the front-end must expand into assignments.
15404 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
15405 Init_Pr, instead of Ancestor_Is_Expression.
15406 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
15407 coextension chain root, either generate a list controller or use the
15408 already existing one.
15409 (Static_Array_Aggregate): New procedure to construct a positional
15410 aggregate that can be handled by the backend, when all bounds and
15411 components are compile-time known constants.
15412 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
15413 types covering interface types into assignments.
15414 (Replace_Type): move to Build_Record_Aggr_Code.
15415 (Expand_Record_Aggr_Code): if the target of the aggregate is an
15416 interface type, convert to the definite type of the aggregate itself,
15417 so that needed components are visible.
15418 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
15419 components and the context is an extended return statement do not
15420 create a transient block for it, to prevent premature finalization
15421 before the return is executed.
15422 (Gen_Assign): Do not generate a call to deep adjust routine if the
15423 component type is itself an array of controlled (sub)-components
15424 initialized with an inner aggregate.
15425 (Component_Check): New name for Static_Check. This name is now more
15426 appropriate, and documentation is added which was missing.
15427 (Component_Check): Add test for bit aligned component value
15428 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
15429 Tagged_Comps, name is more appropriate given added function below.
15430 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
15432 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15433 Javier Miranda <miranda@adacore.com>
15434 Robert Dewar <dewar@adacore.com>
15436 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
15437 Terminated: Add unchecked type conversion from System.Address to
15438 System.Tasking.Task_Id when calling the predefined primitive
15440 Disable new Ada 05 accessibility check for JVM.NET targets, which
15441 cannot be implemented in a practical way.
15442 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
15443 the sources always references the tag of the actual object. Therefore,
15444 if 'Tag is applied in the sources to class-wide interface objects we
15445 generate code that displaces "this" to reference the base of the object.
15446 (Expand_N_Attribute_Reference, case Size): Return specified size if
15447 known to front end.
15448 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
15449 has code that displaces the pointer of the object to manage interface
15450 types. However this code must not be executed when the prefix is a
15451 subprogram. This bug caused the wrong expansion of the internally
15452 generated assignment that fills the dispatch table when the primitive
15453 is a function returning a class-wide interface type.
15454 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
15455 Set_Attribute_Name for Name_Unaligned_Valid.
15457 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15458 Gary Dismukes <dismukes@adacore.com>
15460 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
15461 If the initialization is the equivalent aggregate of the initialization
15462 procedure of the type, do not remove it.
15463 (Expand_N_Attribute_Definition_Clause): Exclude access variables
15464 initialized to null from having their expression reset to empty and
15465 note this exception in the comment.
15467 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15468 Robert Dewar <dewar@adacore.com>
15469 Ed Schonberg <schonberg@adacore.com>
15470 Gary Dismukes <dismukes@adacore.com>
15472 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
15473 Add "with" and "use" clauses for Sem_Attr.
15474 (Expand_Current_Value): Do not replace occurences of attribute
15475 references where the prefix must be a simple name.
15477 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
15478 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
15479 Attribute_Requires_Simple_Name_Prefix.
15480 (Name_Modifies_Prefix): Body of new function.
15481 (Requires_Simple_Name_Prefix): Body of new function.
15482 (Resolve_Attribute, case Access): Improve error message for case of
15483 mismatched conventions.
15484 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
15486 (Analyze_Attribute, case 'Access): If the type of the prefix is a
15487 constrained subtype for a nominal unconstrained type, use its base type
15488 to check for conformance with the context.
15489 (Resolve_Attribute): Remove test of the access type being associated
15490 with a return statement from condition for performing accessibility
15491 checks on access attributes, since this case is now captured by
15492 Is_Local_Anonymous_Access.
15493 (Analyze_Access_Attribute): Set Address_Taken on entity
15494 (Analyze_Attribute, case Address): Set Address_Taken on entity
15495 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
15496 validating an access attribute whose prefix is a current instance.
15497 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
15498 applied to dispatching operations, if freezing is required then we set
15499 the attribute Has_Delayed_Freeze in the prefix's entity.
15500 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
15501 current scope if access of local subprogram taken
15502 (Analyze_Access_Attribute): Check legality of self-reference even if the
15503 expression comes from source, as when a single component association in
15504 an aggregate has a box association.
15505 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
15506 the prefix if it is a protected operation and the attribute is
15507 Unrestricted_Access.
15508 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
15509 reference to the base type of the context, to force a constraint check
15510 when the context is an access subtype with an explicit constraint.
15511 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
15512 node is rewritten as an interface conversion. leave unanalyzed after
15513 resolution, to ensure that type checking against the context will take
15516 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15517 Javier Miranda <miranda@adacore.com>
15518 Robert Dewar <dewar@adacore.com>
15520 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
15521 wrapper when the full view of the controlling type of an inherited
15522 function that dispatches on result implements interfaces.
15523 (Expand_N_Object_Declaration): In cases where the type of the
15524 declaration is anonymous access, create finalization list for it.
15525 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
15526 if the object has no explicit initialization, to match description of
15527 functionality of pragam Persistent_BSS.
15528 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
15529 new function to build static aggregates, to replace initialization call
15530 when static initialization is desired.
15531 (Freeze_Type): Generate a list controller for an access type whenever
15532 its designated type has controlled anonymous access discriminants.
15533 (Build_Equivalent_Aggregate): New procedure to compute a static
15534 aggregate to be used as default initialization for composite types,
15535 instead of a generating a call to the initialization procedure for the
15537 (Build_Initialization_Call): When available, replace a call to the
15538 initialization procedure with a copy of the equivalent static aggregate
15540 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
15541 declarations for objects of a class-wide interface type, rather than
15542 just identifiers, to prevent visibility problems.
15543 (Expand_N_Object_Declaration): When expanding the declaration for an
15544 object of a class-wide interface type, preserve the homonym chain of
15545 the original entity before exchanging it with that of the generated
15546 renaming declaration.
15547 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
15548 active, because there is no way to handle the exception.
15549 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
15550 to do a minimum decoration of the Access_Disp_Table list.
15551 (Expand_Record_Controller): Avoid the addition of the controller between
15552 the component containing the tag of a secondary dispatch table and its
15553 adjacent component that stores the offset to the base of the object.
15554 This latter component is only generated when the parent type has
15555 discriminants ---documented in Add_Interface_Tag_Components).
15556 (Apply_Array_Size_Check): Removed, no longer needed.
15557 (Expand_N_Full_Type_Declaration): If the type has anonymous access
15558 components, create a Master_Entity for it only if it contains tasks.
15559 (Build_Init_Procedure): Suppress the tag assignment compiling under
15561 (Freeze_Record_Type): Remove code associated with creation of dispatch
15563 (Init_Secondary_Tags): Update type of actuals when generating calls to
15564 Ada.Tags.Set_Offset_To_Top
15565 (Stream_Operation_OK): Disable use of streams compiling under no
15567 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
15568 if Has_Init_Expression set.
15569 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
15570 Register_Primitive, which provides the same functionality.
15571 (Requires_Init_Proc): Return false in case of interface types.
15572 (Add_Secondary_Tables): Use the new attribute Related_Interface to
15574 (Predefined_Primitive_Freeze): Do not assume that an internal entity
15575 is always associated with a predefined primitive because the internal
15576 entities associated with interface types are not predefined primitives.
15577 Therefore, the call to Is_Internal is replaced by a call to the
15578 function Is_Predefined_Dispatching_Operation.
15579 (Make_Eq_If): When generating the list of comparisons for the
15580 components of a given variant, omit the controller component that is
15581 present if the variant has controlled components.
15583 2007-06-06 Javier Miranda <miranda@adacore.com>
15584 Hristian Kirtchev <kirtchev@adacore.com>
15585 Bob Duff <duff@adacore.com>
15587 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
15588 handle the creation of finalization lists and calls for nested
15589 coextensions when the root of the chains is part of a return statement.
15590 (Inside_A_Return_Statement): New function inside Complete_Coextension_
15592 (Expand_Record_Equality): Skip components that are interface types.
15593 (Displace_Allocator_Pointer): Add missing support for interface subtypes
15594 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
15595 with Rewrite_Coextension. Change the condition for detecting coextension
15597 (Is_Local_Access_Discriminant): Removed.
15598 (Rewrite_Coextension): New routine which rewrites a static coextension
15599 as a temporary and uses its unrestricted access in the construction of
15601 (Complete_Coextension_Finalization): New routine. Generate finalization
15602 attachment calls to all delayed coextensions.
15603 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
15604 the allocator is not a coextension itself and has delayed coextensions.
15605 If the current allocator is controlled, but also a coextension, delay
15606 the generation of the finalization attachment call.
15607 Rename local variable "Node" to "Nod" in order to avoid confusion with
15609 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
15610 limited types that are not inherently limited. Such an allocator is
15611 illegal, but is generated by the expander for a return statement, to
15612 copy the result onto the secondary stack. This is the only case where a
15613 limited object can be copied. Generate code to displace the pointer
15614 to the object if the qualified expression is a class-wide interface
15615 object. Such displacement was missing and hence the copy of the object
15617 (Apply_Accessibility_Check): Handle allocated objects initialized in
15619 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
15620 and Expand_Allocator_Expression. Allocating class-wide interface objects
15621 this routine displaces the pointer to the allocated object to reference
15622 the component referencing the corresponding secondary dispatch table.
15623 Expand_Allocator_Expression): Add missing support to allocate class-wide
15624 interface objects initialized with a qualified expression.
15625 (Get_Allocator_Final_List): Test for an anonymous access type that is a
15626 function result type, and use the finalization list associated with the
15627 function scope in that case (such an anonymous type should not be
15628 treated like an access parameter's type).
15630 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15631 Gary Dismukes <dismukes@adacore.com>
15632 Javier Miranda <miranda@adacore.com>
15634 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
15635 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
15636 required exception handler.
15637 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
15638 properly the case of a function whose return type is a limited
15639 class-wide interface type. Modify the code of the accessibility
15640 check to handle class-wide interface objects. In this case we need to
15641 displace "this" to reference the primary dispatch table to get access
15642 to the TSD of the object (to evaluate its accessibility level).
15643 (Expand_N_Extended_Return_Statement): Test for a tagged result type
15644 rather than a controlling result as one of the conditions for
15645 generating tests of the implicit BIP_Alloc_Form formal. The
15646 initialization assignment is also handled according to whether the
15647 result is tagged instead of controlling.
15648 In the case where the init assignment is inserted in the "then" part of
15649 the allocation conditional, rewrite the target to be a dereference of
15650 the implicit BIP_Object_Access formal.
15651 If the returned value is unconstrained and created on the secondary
15652 stack, mark the enclosing block and function so that the secondary
15653 stack is not reclaimed on return.
15654 Treat returns from functions with controlling results similarly to
15655 returns from functions with unconstrained result subtypes.
15656 If the object returned is unconstrained, and an allocator must be
15657 created for it, analyze the allocator once the block for the extended
15658 return is installed, to ensure that finalizable components
15659 of the expression use the proper finalization list. Guard the call to
15660 Move_Final_List with a check that there is something to finalize.
15661 (Make_Tag_Ctrl_Assignment): Use "old" handling
15662 of controlled type assignment for virtual machines, since new code uses
15663 unsupported features (such as direct access to bytes in memory).
15665 2007-06-06 Gary Dismukes <dismukes@adacore.com>
15666 Ed Schonberg <schonberg@adacore.com>
15668 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
15669 accessibility actual, check for the case of an aliased object that has
15670 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
15671 we fall into processing for the attribute rather than the name of the
15673 (Expand_Inline_Call): If an actual is a literal, and the corresponding
15674 formal has its address taken in the body, create a temporary to capture
15675 value. If the return type is a limited interface, do not treat the
15676 return value as Controlled.
15677 (Is_In_Place_Function): If the return type is a limited interface,
15678 treat as returning in place. The actual returned object may not always
15679 be limited, but the caller has to assume that it is returned in place.
15680 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
15681 context of an allocator, use the correct finalization chain (that is,
15682 the chain belonging to the access type, rather than the chain belonging
15683 to the current scope).
15684 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
15685 result type rather than a controlling result as a precondition for
15686 adding an allocation form actual to a build-in-place call.
15687 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
15688 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
15689 primitive in the dispatch tables. This work is now done by Make_DT when
15690 the type is frozen.
15691 (Register_Predefined_DT_Entry): Removed.
15692 (Add_Return): If end label is not present, use sloc of last statement
15693 for generated return statement in procedure, for better gdb behavior
15695 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
15696 object address nodes to ensure proper processing by routines like
15698 (Expand_Call): Fix generation of validity check for parameter
15699 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
15700 the allocation form parameter if the result subtype is constrained,
15701 except when the function has a controlling result.
15702 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
15703 rather than Is_Controlled and Has_Controlled_Component, since we want to
15704 include class-wide result types in this treatment. Also test for a
15705 controlling result, since that also requires passing a finalization
15707 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
15708 even when the result subtype is constrained, to handle calls involving
15709 controlling results.
15710 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
15711 is now called even when the result subtype is constrained, to handle
15712 calls involving controlling results.
15713 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
15714 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
15715 now performs the test).
15716 (Make_Build_In_Place_Call_In_Object_Declaration):
15717 Add_Alloc_Form_Actual_* is now called even when the result subtype is
15718 constrained, to handle calls involving controlling results.
15719 (Add_Return): Accomodate rewritten pattern from local raise to goto
15720 transformation, so that we still recognize an transfer statement
15721 and do the right thing here in that case.
15722 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
15723 and end of subprogram code.
15724 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
15725 support for primitives that are functions (without formals) with a
15726 controlling result.
15727 (Inherited_From_Formal): If the actual subtype has not generic parent
15728 type, it is not an actual for a formal derived type, and there is no
15729 operation to inherit from the formal.
15731 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15732 Thomas Quinot <quinot@adacore.com>
15734 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
15735 inserted cleanup code appropriately for GDB use.
15736 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
15737 exception handler for Deep_Adjust or Deep_Finalize.
15738 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
15739 Raise_From_Controlled_Operation is available, use a call to that
15740 subprogram instead of a plain "raise Program_Error" node to raise
15741 Program_Error if an exception is propagated from an Adjust or Finalize
15743 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
15744 appears in the optional statement list of a triggering alternative, the
15745 scope actions can be inserted directly there, and not in the list that
15746 includes the asynchronous select itself.
15748 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15749 Robert Dewar <dewar@adacore.com>
15750 Hristian Kirtchev <kirtchev@adacore.com>
15752 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
15753 generated exception handler appropriately when debugging generated code.
15754 Deal properly with No_Exception_Propagation restriction mode.
15755 (Expand_N_Abort_Statement): Add an unchecked type conversion from
15756 System.Address to System.Tasking.Task_Id when processing the result of
15757 the predefined primitive _disp_get_task_id.
15758 (Expand_N_Asynchronous_Select): Clarify comment.
15759 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
15760 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
15761 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
15762 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
15763 privals and for generated call to Complete_Entry_Body, for better gdb
15765 (Copy_Result_Type): Utility to construct a parameter and result profile
15766 for protected functions whose return type is an anonymous access to
15768 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
15770 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
15771 point when the local-raise-to-goto transformation has taken place.
15773 2007-06-06 Javier Miranda <miranda@adacore.com>
15774 Nicolas Setton <setton@adacore.com>
15776 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
15777 functionality when the backend is generating code.
15778 Otherwise any serious error
15779 reported by the backend calling the frontend routine Error_Msg
15780 changes the Compilation_Mode to Check_Semantics, disables the
15781 functionality of this routine and causes the generation of
15782 spureous additional errors.
15784 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
15785 debugging information now generated by the compiler for fat-pointer
15787 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
15789 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
15791 2007-06-06 Thomas Quinot <quinot@adacore.com>
15793 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
15794 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15795 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15796 For a remote call to a function with a classwide return type, apply an
15797 E.4(18) check to the returned value.
15798 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
15799 stream attributes of the designated type of an RACW, as they are not
15800 dispatching primitive operations.
15802 2007-06-06 Geert Bosch <bosch@adacore.com>
15804 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
15806 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
15808 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
15809 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
15811 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
15813 2007-06-06 Javier Miranda <miranda@adacore.com>
15815 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
15816 attribute compiling package Ada.Tags under No_Run_Time_Mode.
15818 2007-06-06 Javier Miranda <miranda@adacore.com>
15820 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
15821 deallocation of class-wide interface objects.
15822 (Expand_Dispatching_Constructor_Call): Take into account that if the
15823 result of the dispatching constructor is an interface type, the
15824 function returns a class-wide interface type; otherwise the returned
15825 object would be actual. The frontend previously accepted returning
15826 interface types because Expand_Interface_Actuals silently performed
15827 the management of the returned type "as if" it were a class-wide
15829 (Expand_Dispatching_Constructor_Call): Replace call to
15830 Make_DT_Access_Action by direct call to Make_Function_Call.
15832 2007-06-06 Robert Dewar <dewar@adacore.com>
15833 Ed Schonberg <schonberg@adacore.com>
15835 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
15836 compute masking constant, since we now set Esize properly to the
15838 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
15839 to match the alignment.
15840 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
15841 packed arrays of 8 bits or less.
15843 * freeze.adb (Freeze_Entity): When freezing the formals of a
15844 subprogram, freeze the designated type of a parameter of an access type
15845 only if it is an access parameter.
15846 Increase size of C convention enumeration object
15847 (Freeze_Entity, array type case): Make sure Esize value is properly
15848 adjusted for the alignment if it is known.
15849 (Freeze_Entity, array type case): When checking bit packed arrays for
15850 the size being incorrect, check RM_Size, not Esize.
15851 (Freeze_Record_Type): Check for bad discriminated record convention
15852 (In_Exp_Body): Return true if the body is generated for a subprogram
15853 renaming, either an attribute renaming or a renaming as body.
15854 (Check_Itype): If the designated type of an anonymous access component
15855 is a non-protected subprogram type, indicate that it is frozen, to
15856 prevent out-of-scope freeze node at some subsequent call.
15857 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
15858 only if the subprogram is neither imported nor exported, as well as the
15859 NCA descriptor class if the subprogram is exported.
15861 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15862 Arnaud Charlet <charlet@adacore.com>
15863 Robert Dewar <dewar@adacore.com>
15864 Gary Dismukes <dismukes@adacore.com>
15866 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
15867 default initialization on an imported object, when there is no
15868 initialization call generated for it.
15869 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
15872 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
15873 Static_Elaboration_Desired.
15874 Remove pragma Thread_Body.
15875 Implement a new pragma No_Body
15876 Removes the Explicit_Overriding pragma
15877 Remove Optional_Overriding pragma
15878 (Prag): Deal with Universal_Aliasing.
15879 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
15880 Pragma_CIL_Constructor): New names.
15882 * sem_cat.adb (Validate_Object_Declaration): An initialization that
15883 uses the equivalent aggregate of a type must be treated as an implicit
15885 (Get_Categorization): Check a unit for pragma Preelaborate only if it
15886 has none of the other categories.
15887 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
15888 to apply Import to an object renaming declaration.
15890 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
15891 from a C++ class should be declared as limited and that it will be
15892 considererd limited.
15893 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
15894 should be declared as limited and that it will be considererd limited.
15895 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
15896 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
15897 (Analyze_Pragma): Deal with Universal_Aliasing.
15898 (Sig_Flags): Likewise.
15899 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
15900 (Overflow_Checks_Unsuppressed): New flag.
15901 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
15902 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
15903 case of JVM or .NET targets, and compiling user code.
15904 Add debugging convenience routine rv
15906 2007-06-06 Robert Dewar <dewar@adacore.com>
15908 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
15909 are interface type.
15910 (Build_Elementary_Input_Call): For floating-point use right type in the
15911 absence of strange size or stream size clauses.
15912 (Build_Elementary_Write_Call): Same fix
15913 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
15914 set to value that does not match base type size.
15916 2007-06-06 Ed Schonberg <schonberg@adacore.com>
15918 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
15919 object of a limited type can be initialized with a call to a function
15920 that returns in place. If the limited type has unknown discriminants,
15921 and the underlying type is a constrained composite type, build an actual
15922 subtype from the function call, as is done for private types.
15923 (Side_Effect_Free): An expression that is the renaming of an object or
15924 whose prefix is the renaming of a object, is not side-effect free
15925 because it may be assigned through the renaming and its value must be
15926 captured in a temporary.
15927 (Has_Controlled_Coextensions): New routine.
15928 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
15929 as is done for other limited types.
15930 (Non_Limited_Designated_Type): new predicate.
15931 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
15933 Remove all handling of with_type clauses.
15935 * par-ch10.adb: Remove all handling of with_type clauses.
15937 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
15938 checksum if the main source could not be parsed.
15939 (Loat_Unit): When processing a child unit, determine properly whether
15940 the parent unit is a renaming when the parent is itself a child unit.
15941 Remove handling of with_type clauses.
15943 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
15944 (Set_Is_Static_Coextension): New procedure.
15945 (Has_Local_Raise): New function
15946 (Set_Has_Local_Raise): New procedure
15947 (Renaming_Exception): New field
15948 (Has_Init_Expression): New flag
15949 (Delay_Finalize_Attach): Remove because flag is obsolete.
15950 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
15951 Remove all handling of with_type clauses.
15952 (Exception_Junk): Can now be set in N_Block_Statement
15954 2007-06-06 Vincent Celier <celier@adacore.com>
15955 Robert Dewar <dewar@adacore.com>
15957 * frontend.adb (Frontend): Return immediately if the main source could
15958 not be parsed, because of preprocessing errors.
15960 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
15961 (Gnat1drv): Exit with errors if the main source could not be parsed,
15962 because of preprocessing errors.
15963 (Check_Rep_Info): New procedure
15965 2007-06-06 Robert Dewar <dewar@adacore.com>
15967 * g-hesorg.ads, g-heasor.ads,
15968 g-busorg.ads, g-bubsor.ads: Update documentation
15969 GNAT.Heap/Bubble_Sort_G is now pure
15971 2007-06-06 Robert Dewar <dewar@adacore.com>
15973 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
15975 2007-06-06 Robert Dewar <dewar@adacore.com>
15976 Ed Schonberg <schonberg@adacore.com>
15978 * g-comlin.ads, g-comlin.adb:
15979 Add new warning for renaming of function return objects
15981 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
15982 (Tree_Read): Use size of object instead of type'object_size, since the
15983 latter is incorrect for packed array types.
15984 (Tree_Write): Same fix
15986 * opt.ads: Add new warning for renaming of function return objects
15987 (Generating_Code): New boolean variable used to indicate that the
15988 frontend as finished its work and has called the backend to process
15989 the tree and generate the object file.
15990 (GCC_Version): Is now private
15991 (Static_Dispatch_Tables): New constant declaration.
15992 (Overflow_Checks_Unsuppressed): New flag.
15993 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
15994 (List_Closure): New flag for gnatbind (-R)
15995 Zero_Formatting: New flag for gnatbind (-Z)
15996 (Special_Exception_Package_Used): New flag.
15997 (Warn_On_Unrepped_Components): New flag.
15999 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
16000 unit is a compilation unit, rather than relying on its scope, so that
16001 Standard can be renamed.
16002 (Analyze_Object_Renaming): Add new warning for renaming of function
16004 Also reject attempt to rename function return object in Ada 83 mode.
16005 (Attribute_Renaming): In case of tagged types, add the body of the
16006 generated function to the freezing actions of the type.
16007 (Find_Type): A protected type is visible right after the reserved word
16008 "is" is encountered in its type declaration. Set the entity and type
16009 rather than emitting an error message.
16010 (New_Scope): Properly propagate Discard_Names to inner scopes
16011 (Check_Nested_Access): New procedure.
16012 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
16013 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16015 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
16016 Add new warning for renaming of function return objects
16017 (Check_References): Suppress warnings for objects whose type or
16018 base type has Warnings suppressed.
16019 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
16020 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
16022 2007-06-06 Vincent Celier <celier@adacore.com>
16023 Emmanuel Briot <briot@adacore.com>
16024 Olivier Hainque <hainque@adacore.com>
16026 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
16027 absolute value of Header.Block_Size when displaying the freed physical
16029 (Allocate): Compute Storage_Address using Integer_Address, not
16030 Storage_Offset, because the range of Storage_Offset may not be large
16032 (Configure): New parameter Low_Level_Traces
16033 (Allocate, Deallocation, Free_Physically): Added low-level traces
16034 (Configure): new parameter Errors_To_Stdout.
16035 (Output_File): new subprogram
16036 (Deallocate, Dereference): Send error messages to the proper stream
16037 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
16038 documented. Previous code would send it to the current output file
16039 defined in GNAT.IO, which might not be stdout
16040 (Is_Valid): Adjust comment to mention that a positive reply means that
16041 Header_Of may be used to retrieve the allocation header associated with
16042 the subprogram Storage address argument. Return False early if this
16043 address argument is misaligned.
16045 2007-06-06 Vincent Celier <celier@adacore.com>
16047 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
16049 (ASIS_Main): New global variable
16050 (Get_Closure): New procedure
16051 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
16052 check, metric or pretty. Call Get_Closure in this case.
16053 (Check_Files): For GNAT LIST, check all sources of all projects when
16054 All_Projects is True.
16055 (GNATCmd): Accept -U for GNAT LIST
16057 2007-06-06 Vincent Celier <celier@adacore.com>
16059 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
16061 Correct error message when invocation of the linker fails
16062 Add explicit size clause for the C imported variables
16063 Object_List_File_Supported and Using_GNU_Linker to emphasize that
16064 we expect char size.
16065 Read target parameters earlier, since this is needed to set
16066 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
16069 2007-06-06 Vincent Celier <celier@adacore.com>
16072 Add 3 spaces before the default project directory when displaying
16073 the project search path.
16074 Add new command line switch '-l' to display license information.
16076 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
16078 * gmem.c: Add support for timestamps on memory operations.
16080 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
16081 operations (not used currently, just foundation for future
16082 enhancements). Add possibility to perform full dump of gmem.out file.
16083 (Print_Back_Traces): Declare accesses to root arrays constants since
16084 they aren't modified.
16085 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
16087 2007-06-06 Vincent Celier <celier@adacore.com>
16089 * gnatsym.adb: Update Copyright notice
16090 (Parse_Cmd_Line): Accept new switch -D
16091 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
16094 * prj.ads (Policy): New policy Direct
16095 (Yes_No_Unknown): New enumeration type
16096 (Project_Data): New component Libgnarl_Needed
16098 * prj-nmsc.adb (Check_For_Source): When recording a source file make
16099 use the untouched pathname casing.
16100 (Get_Directories): Ensure that the Display_Exec_Directory is using the
16101 proper casing on non case-sensitive platforms like Windows.
16102 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
16103 on all platforms, as it is not possible to know which one is allowed
16104 before processing the project files.
16105 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
16106 specified when symbol policy is Direct. Check that when there is a
16107 symbol file defined (either by default or with attribute
16108 Library_Symbol_File) it is not the same as the reference symbol file.
16109 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
16110 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
16111 extending projects.
16112 (Record_Ada_Source): Record a source that has been locally removed in an
16115 * symbols.ads (Policy): New policy Direct
16117 * symbols-vms.adb (Initialize): Take new policy Direct in case
16120 2007-06-06 Vincent Celier <celier@adacore.com>
16122 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
16123 Correct obvious bug (return Dir; instead of return Directory;).
16124 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
16126 2007-06-06 Thomas Quinot <quinot@adacore.com>
16128 * g-pehage.adb (Produce): Open output files in Binary mode, so that
16129 they have UNIX line endings (LF only) even on Windows, and thus pass
16130 all GNAT style checks.
16132 2007-06-06 Emmanuel Briot <briot@adacore.com>
16134 * g-regpat.adb (Quote): Fix improper quoting of '.'
16136 2007-06-06 Thomas Quinot <quinot@adacore.com>
16138 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
16139 default, set False on a per-runtime basis.
16140 (Need_Netdb_Buffer): New constant.
16142 * g-socket.ads, g-socket.adb: Import new package
16143 GNAT.Sockets.Thin.Task_Safe_NetDB.
16144 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
16145 binding to obtain proper message.
16146 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
16147 Replace various occurrences of Arry (Arry'First)'Address with the
16148 equivalent Arry'Address (GNAT always follows implementation advice from
16150 (Get_Host_By_Address, Get_Host_By_Name,
16151 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
16152 instead, rely on platform-specific task safe netdb operations provided
16155 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
16156 parameter Process_Blocking_IO.
16157 (Host_Error_Messages): Add stub body.
16158 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16159 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
16160 Safe_Getservbyport): Move functions into new child package
16162 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
16163 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
16164 (In_Addr): Add alignment clause.
16166 2007-06-06 Robert Dewar <dewar@adacore.com>
16168 * g-trasym.ads, g-traceb.ads: Update list of supported targets
16169 Add note about symbolic traceback
16171 2007-06-06 Pascal Obry <obry@adacore.com>
16173 * hostparm.ads (Normalized_CWD): Use the host directory separator
16174 instead of the hardcoded forward slash which is not the proper
16175 character on Windows for example.
16176 (Java_VM): Removed.
16178 2007-06-06 Vincent Celier <celier@adacore.com>
16179 Arnaud Charlet <charlet@adacore.com>
16181 * a-clrefi.adb, a-clrefi.ads: New files
16183 * impunit.adb: Add s-os_lib in the list of user visible units.
16184 (Non_Imp_File_Names_95): Add a-clrefi to this list
16185 Remove obsolete run-time entries.
16186 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
16187 "a-exetim" -- Ada.Execution_Time
16188 "a-extiti" -- Ada.Execution_Time.Timers
16190 * mlib-prj.ads, mlib-prj.adb
16191 (Build_Library): Use untouched object dir and library dir. At the
16192 same time makes sure that the checks are done using the canonical
16193 form. Removes hard-coded directory separator and use the proper host
16195 (Process_Project): Do not look in object directory to check if libgnarl
16196 is needed for a library, if there is no object directory.
16197 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
16199 (Build_Library): When invoking gnatbind, use a response file if the
16200 total size of the arguments is too large.
16202 * Makefile.rtl: (g-sttsne): New object file.
16203 Add entry for a-clrefi, s-utf_32, System.Exceptions
16205 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
16206 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
16207 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
16208 Change g-string to s-string, g-os_lib to s-os_lib
16209 Change all g-utf_32 references to s-utf_32
16211 2007-06-06 Tristan Gingold <gingold@adacore.com>
16212 Olivier Hainque <hainque@adacore.com>
16214 * init.c: Do not adjust IP of an imported VMS exception of ia64.
16215 LIB$STOP is called to raise an exception and the IP of the exception
16216 is the instruction right after the call.
16217 (__gnat_adjust_context_for_raise, AIX): Implement.
16218 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
16219 adjust_context_for_raise before Raise_From_Signal_Hanler.
16220 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
16221 siginfo is passed to the handler, necessary to let the zcx propagation
16222 engine unwind past it.
16224 2007-06-06 Olivier Hainque <hainque@adacore.com>
16226 * initialize.c (__gnat_initialize for vxworks): Update documentation
16227 on the ZCX support, using different sets of crtstuff objects than with
16230 2007-06-06 Robert Dewar <dewar@adacore.com>
16232 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
16234 (Layout_Type): Fix recomputation of size from alignment.
16236 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16237 Javier Miranda <miranda@adacore.com>
16239 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
16240 association in an instance.
16241 (Copy_Generic_Node): If the node is a string literal, no need to copy
16243 (Is_Generic_Formal): For a formal subprogram, the declaration is the
16244 grandparent of the entity.
16245 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
16246 to simplify handling of formal interfaces that derive from other formal
16248 (Instantiate_Subprogram_Body): The defining unit name of the body of
16249 the instance should be a defining identifier.
16250 (Install_Formal_Packages): make global to the package, for use in
16251 instantiations of child units.
16252 (Analyze_Package_Instantiation): Do not attempt to set information on an
16253 enclosing master of an entry when expansion is disabled.
16254 (Instantiate_Type): If the actual is a tagged synchronized type and the
16255 generic ancestor is an interface, create a generic actual for the
16256 corresponding record.
16257 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
16258 declaration, to ensure that the interface list is processed correctly.
16259 (Inline_Instance_Body): If enclosing scope is an instance body, remove
16260 its entities from visibiility as well.
16261 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
16262 given with a named association, analyze the expression only, not the
16263 discriminant association itself.
16264 (Reset_Entity): If the analysis of a selected component is transformed
16265 into an expanded name in the prefix of a call with parameters, do not
16266 transform the original node into an expanded name, to prevent visibility
16267 errors in the case of nested generics.
16268 (Check_Private_View): For an array type, check whether the index types
16269 may need exchanging.
16271 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16272 Vincent Celier <celier@adacore.com>
16274 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
16275 since both are separated.
16276 Add support for imported CIL packages.
16277 Add further special handling of "value_type" for CIL.
16278 Add special handling of pragma Import for CIL.
16280 * make.ads, make.adb: When switch -eS is used, direct all outputs to
16281 standard output instead of standard error, except errors.
16282 (Absolute_Path): Use untouched casing for the parent directory.
16283 (Add_Library_Search_Dir): Use the untouched directory name.
16284 (Add_Source_Search_Dir): Idem.
16285 (Change_To_Object_Directory): Update output to use proper casing.
16286 (Create_Binder_Mapping_File): Use the untouched filename to set
16288 (Gnatmake): Use untouched library and executable directory names.
16289 (Insert_Project_Sources): Use untouched filename for spec and body.
16290 (Is_In_Object_Directory): Use untouched object directory.
16291 (Mark_Directory): Idem.
16292 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
16293 contains the non-canonical filename in all cases.
16294 (Change_To_Object_Directory): In verbose mode, display the name of the
16295 object directory we're changing to.
16296 (Compile_Sources): Make sure, when a project file is used, to compile
16297 the body of the unit, when there is one, even when only the spec is
16298 recorded in an ALI file.
16299 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
16301 (Report_Compilation_Failed): New procedure
16302 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
16303 procedures moved from the spec to the body.
16304 (Extract_Failure): Removed, not used
16305 Replace explicit raises of exception Bind_Failed and Link_Failed with
16306 calls to Make_Failed with the proper message.
16307 Replace explicit raises of exception Compilation_Failed with calls to
16308 procedure Report_Compilation_Failed.
16309 (Initialize): Create mapping files unconditionally when using project
16312 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
16313 Pragma_CIL_Constructor): New names.
16315 * targparm.ads, targparm.adb
16316 (Compiler_System_Version): Removed, no longer used.
16317 (Get_Target_Parameters): Relax checks on system.ads validity. Add
16318 handling of two new system flags: JVM and CLI.
16320 2007-06-06 Jose Ruiz <ruiz@adacore.com>
16321 Arnaud Charlet <charlet@adacore.com>
16323 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
16324 time, use the default s-interr body that provides interrupt support
16326 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
16327 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
16328 g-soccon.ads, and s-taprop.adb for the marte run time.
16329 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
16330 timers are supported on marte.
16331 (EH_MECHANISM for marte): Do not use ZCX.
16332 (THREADSLIB for marte): Use -lmarte.
16333 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
16334 Add mlib-tgt-specific.o to gnatmake objects
16335 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
16336 longer of MLib.Tgt.
16337 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
16338 6, either kernel or rtp, use a specialized version of s-osinte.ads.
16340 2007-06-06 Pascal Obry <obry@adacore.com>
16342 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
16344 2007-06-06 Vincent Celier <celier@adacore.com>
16346 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
16347 separator, use instead the proper host directory separator.
16348 (Copy_ALI_Files): Make sure that an already existing ALI file in the
16349 ALI copy dir is writable, before doing the copy.
16351 * mlib-utl.ads, mlib-utl.adb:
16352 (Gcc): If length of command line is too long, put the list of object
16353 files in a response file, if this is supported by the platform.
16354 (Ar): If invocation of the archive builder is allowed to be done in
16355 chunks and building it in one shot would go above an OS dependent
16356 limit on the number of characters on the command line, build the archive
16359 2007-06-06 Vincent Celier <celier@adacore.com>
16361 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
16362 of specified object file is not equal to base name of source.
16364 2007-06-06 Javier Miranda <miranda@adacore.com>
16365 Hristian Kirtchev <kirtchev@adacore.com>
16366 Ed Schonberg <schonberg@adacore.com>
16368 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
16369 the full type declaration.
16370 (Analyze_Component_Declaration): Add local variable E to capture the
16371 initialization expression of the declaration. Replace the occurences of
16372 Expression (N) with E.
16373 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
16374 limited interface object with a function call.
16375 (Array_Type_Declaration): If the declaration lacks subtype marks for
16376 indices, create a simple index list to prevent cascaded errors.
16377 (Is_Null_Extension): Ignore internal components created for secondary
16378 tags when checking whether a record extension is a null extension.
16379 (Check_Abstract_Interfaces): Add missing support for interface subtypes
16380 and generic formals.
16381 (Derived_Type_Declaration): Add missing support for interface subtypes
16382 and generic formals.
16383 (Analyze_Object_Declaration): If an initialization expression is
16384 present, traverse its subtree and mark all allocators as static
16386 (Add_Interface_Tag_Component): When looking for components that may be
16387 secondary tags, ignore pragmas that can appear within a record
16389 (Check_Abstract_Overriding): an inherited function that dispatches on
16390 result does not need to be overriden if the controlling type is a null
16392 (Mentions_T): Handle properly a 'class attribute in an anonymous access
16393 component declaration, when the prefix is an expanded name.
16394 (Inherit_Component): If the derivation is for a private extension,
16395 inherited components remain visible and their ekind should not be set
16397 (Find_Type_Of_Object): In the case of an access definition, always set
16398 Is_Local_Anonymous_Access. We were previously not marking the anonymous
16399 access type of a return object as a local anonymous type.
16400 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
16401 range with character literal bounds.
16402 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
16403 (Access_Subprogram_Declaration): Indicate that the type declaration
16404 depends on an incomplete type only if the incomplete type is declared
16406 (Analyze_Subtype_Declaration): Handle properly subtypes of
16407 synchronized types that are tagged, and that may appear as generic
16409 (Access_Subprogram_Declaration): An anonymous access to subprogram can
16410 appear as an access discriminant in a private type declaration.
16411 (Add_Interface_Tag_Components): Complete decoration of the component
16412 containing the tag of a secondary dispatch table and the component
16413 containing the offset to the base of the object (this latter component
16414 is only generated when the parent type has discriminants --as documented
16416 (Inherit_Components): Use the new decoration of the tag components to
16417 improve the condition that avoids inheriting the components associated
16418 with secondary tags of the parent.
16419 (Build_Discriminanted_Subtype): Indicate to the backend that the
16420 size of record types associated with dispatch tables is known at
16422 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
16423 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
16424 to include task, protected, and synchronized interfaces as limited
16426 (Process_Discriminants): Remove the setting of
16427 Is_Local_Anonymous_Access on the type of (anonymous) access
16428 discriminants of nonlimited types.
16429 (Analyze_Interface_Type_Declaration): Complete the decoration of the
16430 class-wide entity it is is already present. This situation occurs if
16431 the limited-view has been previously built.
16432 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
16434 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
16437 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16439 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
16440 of the type that specify the position of interface tags when the type
16441 inherits discriminated array components from the parent type.
16442 If a component is initialized with a box, check for the presence of a
16443 default expression in its declaration before using its default
16444 initialization procedure.
16445 (Resolve_Record_Aggregate): If a component is box-initialized, and the
16446 component type has a discriminants, create a partial aggregate for it
16447 by copying the discriminants of the component subtype.
16448 Reject attempt to initialize a discriminant with a box.
16449 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
16450 associated with dispatch tables is known at compile time.
16451 (Get_Value): If an association in a record aggregate has a box
16452 association, and the corresponding record component has a default
16453 expression, always copy the default expression, even when the
16454 association has a single choice, in order to create a proper
16455 association for the expanded aggregate.
16457 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16458 Robert Dewar <dewar@adacore.com>
16460 * par-ch12.adb (P_Generic_Associations): The source position of an
16461 Others association is that of the others keyword, not that of the token
16462 that follows the box.
16463 (P_Formal_Type_Definition): Handle formal access types that carry a
16464 not null indicator.
16466 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
16467 multiple identifier are present, save Scan_State before scanning the
16468 colon, to ensure that separate trees are constructed for each
16470 (P_Identifier_Declarations): For object declaration, set new flag
16471 Has_Init_Expression if initialization expression present.
16472 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
16473 Improve NOT NULL error messages
16475 2007-06-06 Robert Dewar <dewar@adacore.com>
16477 * par-ch4.adb: (P_Name): Recover from literal used as name
16479 2007-06-06 Vincent Celier <celier@adacore.com>
16481 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
16482 defaulted to False.
16483 In the "not" case, recursive call with Complemented set to True.
16484 Do not allow "or" or "and" operators when Complemented is True.
16486 2007-06-06 Vincent Celier <celier@adacore.com>
16488 * prj.adb (Project_Empty): Gives default value for new component
16491 * prj-attr.ads: Minor reformatting
16493 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
16494 directory using the untouched casing.
16495 (For_All_Source_Dirs): Idem.
16497 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
16498 directories specified with switches -aP.
16499 (Add_Search_Project_Directory): New procedure
16500 (Initialize_Project_Path): Put the directories in table
16501 Search_Directories in the project search path.
16502 (Initialize_Project_Path): For VMS, transform into canonical form the
16505 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16507 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
16508 true if configurable run-time or No_Run_Time is set.
16509 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
16510 processing an unit which is not the one being compiled.
16512 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16514 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
16515 Replace UC by Ada.UC
16517 * s-bitops.adb: Get rid of System.Pure_Exceptions.
16518 Replace UC by Ada.UC
16520 2007-06-06 Robert Dewar <dewar@adacore.com>
16522 * scng.adb: (Check_End_Of_Line): Deal with very long lines
16524 2007-06-06 Robert Dewar <dewar@adacore.com>
16526 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
16527 Remove no longer used nodes.
16529 2007-06-06 Javier Miranda <miranda@adacore.com>
16530 Ed Schonberg <schonberg@adacore.com>
16531 Robert Dewar <dewar@adacore.com>
16533 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
16534 on obsolescent withed unit in case of limited-withed units.
16535 (Analyze_Compilation_Unit): Add guard to code that removed an
16536 instantiation from visibility, to prevent compiler aborts when
16537 instantiation is abandoned early on.
16538 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
16539 current unit being analyzed, and Distinguish local incomplete types
16540 from limited views of types declared elsewhere.
16541 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
16542 to state that the class-wide entity is shared by the limited-view
16544 (Analyze_With_Clause): Improve placement of flag for case of
16545 unimplemented unit.
16546 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
16547 manner similar to GNAT.Current_Exception. This is a violation of
16548 restriction (No_Exception_Propagation), and also inhibits the
16549 optimization of local raise to goto.
16550 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
16551 and if so set Most_Recent_Exception_Used flag in Opt, and also check
16552 for violation of restriction No_Exception_Propagation.
16554 2007-06-06 Javier Miranda <miranda@adacore.com>
16555 Hristian Kirtchev <kirtchev@adacore.com>
16556 Gary Dismukes <dismukes@adacore.com>
16558 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
16559 use of entity Exception_Occurrence if it is not available in the
16562 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
16563 concurrent types are declared within an Ada 2005 generic, build their
16564 corresponding record types since they are needed for overriding-related
16566 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
16567 protected type does not implement a task interface or a nonlimited
16569 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
16570 type does not implement a protected interface or a nonlimited interface.
16571 (Single_Task_Declaration, Single_Protected_Declaration): use original
16572 entity for variable declaration, to ensure that debugging information
16573 is correcty generated.
16574 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
16575 routines if the expander is not active.
16576 (Analyze_Task_Body): Mark all handlers to stop optimization of local
16577 raise, since special things happen for task exception handlers.
16579 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
16580 concurrent types declared within a generic.
16581 (Check_Dispatching_Operation): Do not emit warning about late interface
16582 operations in the context of an instance.
16583 (Check_Dispatching_Call): Remove restriction against calling a
16584 dispatching operation with a limited controlling result.
16585 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
16586 Register_Interface_DT_Entry by calls to Register_Primitive.
16587 (Check_Dispatching_Formals): Handle properly a function with a
16588 controlling access result.
16590 2007-06-06 Robert Dewar <dewar@adacore.com>
16591 Arnaud Charlet <charlet@adacore.com>
16593 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
16594 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
16595 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
16596 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
16597 message when using a VM, since this attribute is not supported.
16598 (Analyze_Record_Representation_Clause): Give unrepped component warnings
16600 * usage.adb: Add new warning for renaming of function return objects
16601 Indicate that -gnatwp and -gnatwP concern front-end inlining
16602 Add line for -gnatyg
16603 Add usage information for -gnatw.c/C
16605 2007-06-06 Robert Dewar <dewar@adacore.com>
16606 Ed Schonberg <schonberg@adacore.com>
16609 (Find_Var): Do not consider function call in test for infinite loop
16610 warning if warnings set off for function entity.
16611 (One_Bound): Do not create a temporary for a loop bound if it is a
16613 (Analyze_Assignment): Traverse the right hand side of an assignment and
16614 mark all allocators as static coextensions.
16615 (Analyze_Assignment): Exempt assignments involving a dispatching call
16616 to a function with a controlling access result from the check requiring
16617 the target to be class-wide.
16619 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16620 Ed Schonberg <schonberg@adacore.com>
16621 Robert Dewar <dewar@adacore.com>
16622 Javier Miranda <miranda@adacore.com>
16624 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
16625 chain of coextensions when an allocator serves as the root of such a
16627 (Propagate_Coextensions): Remove the test for the root being an
16629 (Resolve_Allocator): Add condition to ensure that all future decoration
16630 occurs on an allocator node. Add processing and cleanup for static
16632 (Valid_Conversion): If the operand type is the limited view of a
16633 class-wide type, use the non-limited view is available to determine
16634 legality of operation.
16635 (Ambiguous_Character): move to spec, for use elsewhere.
16636 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
16637 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
16638 character literals.
16639 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
16640 Do_Division_Check flag explicitly.
16641 (Resolve_Actuals): If the actual is of a synchronized type, and the
16642 formal is of the corresponding record type, this is a call to a
16643 primitive operation of the type, that is declared outside of the type;
16644 the actual must be unchecked-converted to the type of the actual
16645 (Resolve_Call): Kill all current values for any subprogram call if
16646 flag Suppress_Value_Tracking_On_Call is set.
16647 (Resolve_Type_Conversion): Generate error message the the operand
16648 or target of interface conversions come from a limited view.
16649 (Check_Infinite_Recursion): Ignore generated calls
16650 (Check_Allocator_Discrim_Accessibility): New procedure for checking
16651 that an expression that constrains an access discriminant in an
16652 allocator does not denote an object with a deeper level than the
16653 allocator's access type.
16654 (Resolve_Allocator): In the case of an allocator initialized by an
16655 aggregate of a discriminated type, check that associations for any
16656 access discriminants satisfy accessibility requirements by calling
16657 Check_Allocator_Discrim_Accessibility.
16658 (Resolve_Equality_Op): Handle comparisons of anonymous access to
16659 subprogram types in the same fashion as other anonymous access types.
16660 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
16661 message that is not a continuation message.
16662 (Resolve_Type_Conversion): Add missing support for conversion to
16664 (Resolve_Actuals): Introduce a transient scope around the call if an
16665 actual is a call to a function returning a limited type, because the
16666 resulting value must be finalized after the call.
16667 (Resolve_Actuals): If the call was given in prefix notations, check
16668 whether an implicit 'Access reference or implicit dereference must be
16669 added to make the actual conform to the controlling formal.
16671 2007-06-06 Robert Dewar <dewar@adacore.com>
16672 Javier Miranda <miranda@adacore.com>
16674 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
16675 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
16676 overriding of an inherited private subprogram now there is no need to
16677 inherit its dispatching slot and reduce the size of the dispatch table.
16678 Set_All_DT_Position now ensures that the same slot is now assigned to
16679 both entities. This is required to statically build the dispatch table.
16680 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
16681 of calling Set_All_DT_Position to re-evaluate the position of the
16682 entries in the dispatch table. Such reevaluation is not desired if
16683 the tagged type is already frozen.
16685 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16686 Gary Dismukes <dismukes@adacore.com>
16687 Robert Dewar <dewar@adacore.com>
16688 Javier Miranda <miranda@adacore.com>
16690 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
16691 reference acts as an lvalue when the attribute name modifies the prefix
16692 (Is_Coextension_Root): New routine.
16693 (Mark_Static_Coextensions): New routine.
16694 (Type_Access_Level): Revise code for checking the level of the
16695 anonymous access type of a return object.
16696 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
16697 (Matches_Prefixed_View_Profile): Remove the no longer necessary
16698 retrieval of the corresponding controlling record type.
16699 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
16700 concurrent types declared within a generic as well as class wide types.
16701 Emit a mode incompatibility error whenever a protected entry or routine
16702 override an interface routine whose first parameter is not of mode
16703 "out", "in out" or access to variable.
16704 (Overrides_Synchronized_Primitive): Rename to
16705 Find_Overridden_Synchronized_Primitive.
16706 (Collect_Interface_Components): New subprogram that collects all the
16707 components of a tagged record containing tags of secondary dispatch
16709 (Add_Global_Declaration): New procedure
16710 (Abstract_Interface_List): Handle properly the case of a subtype of a
16712 (Type_Access_Level): In the case of a type whose parent scope is a
16713 return statement, call Type_Access_Level recursively on the enclosing
16714 function's result type to determine the level of the return object's
16716 (Build_Elaboration_Entity): Build name of elaboration entity from the
16717 scope chain of the entity, rather than the unit name of the file name.
16718 (Check_Nested_Access): New procedure.
16719 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
16720 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16721 (Get_Renamed_Entity): Utility routine for performing common operation
16722 of chasing the Renamed_Entity field of an entity.
16724 2007-06-06 Robert Dewar <dewar@adacore.com>
16726 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
16728 (Check_A_Call): Add check for entry call which was causing blowup
16730 2007-06-06 Olivier Hainque <hainque@adacore.com>
16732 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
16733 special code on ia64-vms to handle major incompatibilities between the
16734 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
16735 this routine with a very different set of arguments and expectations on
16738 2007-06-06 Thomas Quinot <quinot@adacore.com>
16740 * socket.c (__gnat_close_signalling_fd): New function.
16741 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
16742 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
16743 New supporting functions for task safe Netdb operations.
16745 2007-06-06 Thomas Quinot <quinot@adacore.com>
16746 Olivier Hainque <hainque@adacore.com>
16748 * a-except-2005.ads, a-except-2005.adb
16749 (Raise_From_Controlled_Operation): New procedure in
16750 (private part of) Ada.Exceptions (standard runtime version). Used to
16751 provide informational exception message when Program_Error is raised as
16752 a result of an Adjust or Finalize operation propagating an exception.
16753 (Rmsg_28): Fix description for E.4(18) check.
16754 (Raise_Current_Excep): Call Debug_Raise_Exception just before
16755 propagation starts, to let debuggers know about the event in a reliable
16757 Take the address of E and dereference to make sure it is homed on stack
16758 and prevent the stores from being deleted, necessary for proper
16759 debugger behavior on "break exception" hits.
16760 (Local_Raise): Moved to System.Exceptions
16762 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
16763 exception message from the current occurrence and raise Program_Error
16764 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
16766 2007-06-06 Jose Ruiz <ruiz@adacore.com>
16767 Arnaud Charlet <charlet@adacore.com>
16769 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
16772 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
16773 priority associated to a lock.
16775 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
16776 assertion to take into account case of no abort restriction.
16777 (Initialize_Protection_Entries): Add initialization for the field
16778 New_Ceiling associated to the protected object.
16779 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
16782 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
16783 since this function needs to be set consistently with Update_Exception.
16785 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
16786 since this function needs to be set consistently with Update_Exception.
16788 * s-taskin.ads: Update comments on
16789 Interrupt_Server_Blocked_On_Event_Flag.
16790 (Unbind_Handler): Fix handling of server_task wakeup
16791 (Server_Task): Set self's state so that Unbind_Handler can take
16792 appropriate actions.
16793 (Common_ATCB): Now use a constant from System.Parameters to determine
16794 the max size of the Task_Image field.
16796 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
16797 Initialize_Analyzer function.
16798 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
16799 take into account case of no abort restriction.
16800 ([Vulnerable_]Complete_Master): Modify assertion.
16802 * s-tataat.adb (Finalize): Use the nestable versions of
16803 Defer/Undefer_Abort.
16805 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
16807 * s-tpobop.ads: Update comments.
16809 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
16810 of locking the object manually, to avoid inconsistencies between
16811 Lock/Unlock_Entry assertions.
16813 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
16815 application and System.Parameters.No_Abort is True.
16816 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
16817 (Unbind_Handler): Fix handling of server_task wakeup
16818 (Server_Task): Set self's state so that Unbind_Handler can take
16819 appropriate actions.
16821 2007-06-06 Thomas Quinot <quinot@adacore.com>
16823 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
16824 declarations instead of an explicit null body, for conciseness.
16826 2007-06-06 Robert Dewar <dewar@adacore.com>
16828 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
16829 illegal aggregate and the type is still Any_Composite.
16830 (Subtypes_Statically_Match): Fix problem of empty discriminant list
16832 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16834 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
16835 to prevent subsequent expansion.
16837 2007-06-06 Robert Dewar <dewar@adacore.com>
16839 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
16841 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16842 Robert Dewar <dewar@adacore.com>
16844 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
16846 (Write_Itype): Handle case of string literal subtype, which
16847 comes up in this context.
16848 (Update_Itype): when debugging expanded code, update sloc of itypes
16849 associated with defining_identifiers and ranges, for gdb use.
16850 (Sprint_Node_Actual): Add static keyword to object or exception
16851 declaration output if Is_Statically_Allocated is True.
16852 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
16853 or task body, so that the tree carries the proper Sloc information for
16855 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
16857 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16859 * s-secsta.adb (Chunk): Ensure this object has a static size known at
16860 compile time, to avoid dynamic memory allocation
16861 (Elaboration code): Only use dynamic memory allocation when needed.
16863 2007-06-06 Quentin Ochem <ochem@adacore.com>
16865 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
16867 (Stack_Analyzer): Added field "Overflow_Guard"
16868 (Task_Result): Added field "Overflow_Guard".
16869 (Index_Str): New constant.
16870 (Task_Name_Str): New constant.
16871 (Actual_Size_Str): New constant.
16872 (Pattern_Array_Element_Size): New constant.
16873 (Get_Usage_Range): New subprogram.
16874 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
16875 Now align the output.
16877 (Initialize): Added value for Overflow_Guard.
16878 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
16879 Update the value of the overflow guard according to the actual
16880 beginning of the pattern array.
16881 (Initialize_Analyzer): Added parameter Overflow_Guard.
16882 Take this parameter into accound when computing the max size.
16883 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
16884 (Report_Result): Removed extra useless procedure.
16885 Updated call to Output_Result.
16886 Moved full computation of the Task_Result here.
16888 2007-06-06 Thomas Quinot <quinot@adacore.com>
16890 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
16891 Thread_Blocking_IO, always True by default, set False on a per-runtime
16893 Add Windows-specific constants
16894 Add new constant Need_Netdb_Buffer.
16895 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
16896 not, whether to use getXXXbyYYY_r.
16898 * gsocket.h: Add new constant Need_Netdb_Buffer.
16899 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
16900 not, whether to use getXXXbyYYY_r.
16902 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
16904 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
16905 than their first call.
16906 Add type Dummy_Communication_Block used in the generation of the pre-
16907 defined dispatching primitive _disp_asynchronous_select.
16908 (Storage_Element): Put Pragma Universal_Aliasing on it.
16910 2007-06-06 Vincent Celier <celier@adacore.com>
16912 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
16915 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
16916 letter if it is not followed by a '/' or a '\'.
16917 (Windows): New Boolean function
16919 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
16921 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
16923 (Containing_Directory): Raise Use_Error when the directory is a root
16925 (Extension): When returning the result, use a conversion to Result_Type,
16926 not a qualification.
16928 2007-06-06 Robert Dewar <dewar@adacore.com>
16930 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
16931 (Set_Style_Check_Options): Recognize new -gnatyg style switch
16933 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
16934 Warn_On_Non_Local_Exception to False, to turn off warnings for
16935 No_Exception_Propagation in ZFP runtime.
16936 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
16938 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
16940 2007-06-06 Vincent Celier <celier@adacore.com>
16942 * switch-b.adb (Scan_Binder_Switches): Add processing for new
16945 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
16946 (Scan_Make_Switches): Recognize new switch -aP
16948 2007-06-06 Matthew Gingell <gingell@adacore.com>
16949 Jose Ruiz <ruiz@adacore.com>
16951 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
16952 VxWorks task descriptor in the Ada run time, call a C subprogram
16953 (__gnat_get_stack_info) that extracts the required information.
16955 * sysdep.c: Back out temporary lynxos workaround.
16956 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
16957 time the stack information associated to the currently executing task.
16958 Only VxWorks systems require this function.
16960 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
16962 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
16963 add the stack bias if the offset is computed from a frame address.
16964 (__gnat_backtrace): Adjust for above change.
16966 2007-06-06 Thomas Quinot <quinot@adacore.com>
16968 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
16969 PE_Non_Transportable_Actual.
16970 (By_Descriptor_Last): New constant.
16971 (By_Copy_Return): Likewise.
16973 2007-06-06 Vincent Celier <celier@adacore.com>
16975 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
16978 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
16979 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
16980 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
16981 Add missing comment for /OPTIMIZE=SPACE
16982 Add entry for OPTIMIZE=SPACE
16983 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
16984 Add documentation for new qualifiers corresponding to -gnatw.c/.C
16986 2007-06-06 Vincent Celier <celier@adacore.com>
16987 Robert Dewar <dewar@adacore.com>
16989 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
16992 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
16993 Document gnatbind switch -a
16994 (case Constructions): Document that variables declarations are allowed
16995 for previously declared variables.
16996 Fix external lib project example
16997 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
16998 Indicate that "#if not X or Y then" is not allowed in input files to
17000 Document gnatw.x and gnatw.X warning flags
17001 Mention -Winline switch to activate warnings when back-end inlining is
17003 Add gnatcheck rule descriptions
17004 Describe how to use the GNAT driver to call a tool on a closure.
17005 Describe how to run project-wide checks or metrics.
17006 Document gnatbind's -R option
17007 Updated to account for Ada 2005 support
17009 * gnat_rm.texi (Case Construction): Allow variable declarations for
17010 previously declared variables.
17011 (Representation Clauses and Pragmas): Lift restriction on alignment
17012 clauses for record types.
17013 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
17014 Document No_Exception_Propagation restriction
17015 Document No_Body pragma
17016 Updated to account for Ada 2005 support; corrected some typos
17017 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
17019 * gnat-style.texi: Make it clear that we never use mode IN for
17020 procedures or functions
17022 * ug_words: Add entries for -gnatw.x and -gnatw.X
17023 Add entries for -gnatw.c/.C
17025 2007-06-06 Pascal Obry <obry@adacore.com>
17026 Vincent Celier <celier@adacore.com>
17028 * makegpr.adb (Add_Archive_Path): Use untouched object and library
17029 dirs and library name.
17030 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
17032 (Build_Library): Idem.
17033 (Compile_Individual_Sources): Idem.
17034 (Compile_Link_With_Gnatmake): Idem.
17035 (Compile_Sources): Idem.
17036 (Get_Imported_Directories): Idem.
17037 (Link_Executables): Idem. Same change for the executable dir.
17038 (Check_Compilation_Needed): C_Source_Path new variable containing
17039 the canonical form of Source_Path to check against the source names
17040 in the dependency file.
17041 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
17042 verbose mode, display the name of the object directory we're changing
17044 (Saved_Switches): New name of table X_Switches
17045 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
17046 (Usage): New line for switch -aP
17047 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
17048 testing if a directory should be added to the search path.
17050 2007-06-06 Javier Miranda <miranda@adacore.com>
17052 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
17053 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
17054 declaration after freezing point of all its associated tagged types;
17055 otherwise such types are frozen too early.
17057 2007-06-06 Robert Dewar <dewar@adacore.com>
17059 * a-reatim.adb: Documentation addition
17061 * g-cgideb.adb: Minor code reorganization
17063 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
17064 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
17065 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
17067 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
17068 function. Change name New_Scope to Push_Scope
17069 (Get_Debug_Flag_K): Remove unused obsolete function.
17071 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
17074 * makeusg.adb: Update Copyright notice
17075 Add line for switch -aP
17077 * makeusg.adb: Fix wording of some usage messages
17079 * s-assert.adb (Raise_Assert_Failure): Add call to
17080 Debug_Raise_Assert_Failure.
17082 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
17083 (2, Standard'Alignment) for compatibility with AAMP (where alignment
17084 is restricted to 1).
17086 * s-wchjis.adb: Remove use of System.Pure_Exceptions
17088 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
17089 node location to No_Location when we're not debugging the expanded
17092 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
17094 * misc.c (enumerate_modes): Consider log2_b to always be one.
17096 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
17098 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
17100 2007-05-02 Pascal Obry <obry@adacore.com>
17102 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
17103 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
17104 encoding support of Stream_IO.
17105 (Write_Unit): Idem.
17107 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
17108 filename and corresponding encoding to match the OS requirement.
17109 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
17110 routine will fail on specific devices like CON: AUX: ...
17112 PR ada/29856: Add missing braces
17114 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
17117 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
17119 2007-04-21 Jan Hubicka <jh@suse.cz>
17121 * misc.c (gnat_expand_body): Don't call target for destructors,
17122 avoid redundant check on syntax errors.
17124 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
17126 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
17127 instead of checking GIMPLE_STMT_P in chain_next.
17129 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
17132 * system-linux-alpha.ads: Disable constant condition warning for the
17133 Default_Bit_Order variable.
17134 * system-linux-s390.ads: Likewise.
17135 * system-linux-s390x.ads: Likewise.
17136 * system-linux-sparc.ads: Likewise.
17138 2007-04-06 Javier Miranda <miranda@adacore.com>
17139 Matt Heaney <heaney@adacore.com>
17140 Robert Dewar <dewar@adacore.com>
17142 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
17143 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
17144 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
17145 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
17146 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
17147 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
17148 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
17149 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
17150 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
17151 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
17152 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
17153 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
17154 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
17155 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
17156 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
17157 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
17158 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
17159 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
17160 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
17161 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
17162 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
17163 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
17164 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
17165 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
17166 s-taprop-tru64.adb, s-taprop-irix.adb,
17167 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
17168 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
17169 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
17170 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
17171 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
17172 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
17173 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
17174 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
17175 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
17176 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
17177 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
17178 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
17179 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
17180 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
17181 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
17182 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
17183 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
17184 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
17185 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
17186 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
17188 Update documentation.
17191 2007-04-06 Robert Dewar <dewar@adacore.com>
17193 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
17194 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
17195 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
17196 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
17197 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
17198 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
17199 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
17200 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
17201 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
17202 system-hpux-ia64.ads, targparm.adb,
17203 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
17205 * system.ads: Move Functions_Return_By_DSP to obsolete section,
17206 kept for bootstrap purposes only.
17208 2007-04-06 Arnaud Charlet <charlet@adacore.com>
17210 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
17211 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
17212 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
17213 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
17215 2007-04-06 Robert Dewar <dewar@adacore.com>
17217 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
17218 (Local_Raise): New dummy procedure called when a raise is converted
17219 to a local goto. Used for debugger to detect that the exception
17222 * debug.adb: Document new d.g flag (expand local raise statements to
17223 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
17225 * exp_sel.adb: Use Make_Implicit_Exception_Handler
17227 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
17228 suppress warnings for unused handlers.
17229 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
17230 warnings for raise statements not handled locally.
17231 (Get_RT_Exception_Entity): New function
17232 (Get_Local_Call_Entity): New function
17233 (Find_Local_Handler): New function
17234 (Warn_If_No_Propagation): New procedure
17235 (Expand_At_End_Handler): Call Make_Implicit_Handler
17236 (Expand_Exception_Handlers): Major additions to deal with local handlers
17237 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
17238 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
17241 * exp_ch11.ads (Get_RT_Exception_Entity): New function
17242 (Get_Local_Call_Entity): New function
17244 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
17245 of restrictions that the binder will never suggest adding.
17247 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
17250 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
17251 be with'ed in the presence of pragma Restriction
17252 (No_Exception_Propagation).
17254 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
17256 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
17257 parameter, then the handler is not a suitable target for a local raise,
17258 and this is a violation of restriction No_Exception_Propagation.
17259 (Analyze_Handled_Statements): Analyze choice parameters in exception
17260 handlers before analyzing statement sequence (needed for proper
17261 detection of local raise statements).
17262 (Analyze_Raise_Statement): Reraise statement is a violation of the
17263 No_Exception_Propagation restriction.
17265 * s-rident.ads: Add new restriction No_Exception_Propagation
17267 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
17268 function, like Make_Exception_Handler but sets Local_Raise_Statements
17270 (Add_Unique_Serial_Number): Deal with case where this is called during
17271 processing of configuration pragmas.
17273 2007-04-06 Thomas Quinot <quinot@adacore.com>
17274 Pat Rogers <rogers@adacore.com>
17275 Pascal Obry <obry@adacore.com>
17277 * g-stsifd-sockets.adb: New file.
17279 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
17280 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
17281 g-socthi-vms.adb: Move signalling
17282 fd management to a nested package, so that they can conveniently be
17283 moved to a subunit that is shared across Windows, VMS, and VxWorks
17284 (Ada implementation) or completed with imported bodies from socket.c
17286 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
17288 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
17289 the signalling file descriptor.
17290 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
17291 signalling file descriptor.
17292 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
17293 instead of creating a pair of sockets for signalling here.
17295 * g-socthi.adb: Ditto.
17296 Set the runtime process to ignore SIGPIPEs on platforms that support
17297 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17299 * g-socthi-mingw.adb: Ditto.
17300 (WS_Version): Use Windows 2.2.
17301 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17303 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
17304 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
17306 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
17307 added GNAT byte swapping facility
17308 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
17310 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
17312 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
17314 (__gnat_create_signalling_fds): New subprogram.
17315 Set the runtime process to ignore SIGPIPEs on platforms that support
17316 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
17318 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
17319 Vincent Celier <celier@adacore.com>
17321 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
17322 New version of Ada.Calendar which supports the new upper bound of Ada
17323 time (2399-12-31 86_399.999999999).
17324 The following modifications have been made to the package:
17325 - New representation of time as count of nanoseconds since the start of
17326 Ada time (1901-1-1 0.0).
17327 - Target independent Split and Time_Of routines which service both
17328 Ada 95 and Ada 2005 code.
17329 - Target independent interface to the Ada 2005 children of Calendar.
17330 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
17331 - Handling of non-leap centenial years.
17332 - Updated clock function.
17333 - Updated arithmetic and comparison operators.
17335 * a-caldel.adb (To_Duration): Add call to target independent routine in
17336 Ada.Calendar to handle the conversion of time to duration.
17338 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
17340 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
17342 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
17343 targets do not have a natural time zone, GMT is used as a default.
17344 (__gnat_get_task_options): New.
17346 * a-direct.adb (Modification_Time): Add with and use clauses for
17347 Ada.Calendar and Ada.
17348 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
17349 since it is no longer needed.
17350 (Duration_To_Time): Removed.
17351 (OS_Time_To_Long_Integer): Removed.
17352 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
17353 Formatting Time_Of routines which automatically handle time zones,
17354 buffer periods and leap seconds.
17356 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
17357 target independent routines in Ada.Calendar.
17359 * a-calfor.ads, a-calfor.adb:
17360 Code cleanup and addition of validity checks in various routines.
17361 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
17364 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
17365 independent routine in Ada.Calendar.
17367 2007-04-06 Olivier Hainque <hainque@adacore.com>
17370 (convert_addresses): Adjust prototype and dummy definition to expect an
17371 extra file_name argument.
17373 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
17374 filling the now expected file_name argument with the appropriate
17376 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
17377 (tracebk): Array of void * instead of char *, corresponding to what
17378 convert_addresses expects.
17379 (exename): New static global, to hold the executable file name to be
17380 used in all convert_addresses invocations.
17381 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
17383 (__gnat_gmem_a2l_initialize): Resolve exename.
17384 (__gnat_convert_addresses): Use exename as the convert_addresses
17385 file_name argument.
17387 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
17388 "convert_addresses", now expecting a filename argument. Import the
17389 necessary entities to compute the filename to use and pass it to
17392 2007-04-06 Matt Gingell <gingell@adacore.com>
17394 * system-aix.ads: Back out previous change.
17395 (Functions_Return_By_DSP): Removed
17397 2007-04-06 Pascal Obry <obry@adacore.com>
17399 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
17400 or the monotonic used by Ada.Real_Time) to compute the sleep duration
17403 2007-04-06 Jose Ruiz <ruiz@adacore.com>
17405 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
17406 function. Its value changes in different VxWorks versions, and it is
17407 now handled by the function __gnat_get_task_options.
17409 * s-taprop-vxworks.adb (Create_Task): Call the function
17410 __gnat_get_task_options to get the required options for creating a task.
17412 2007-04-06 Pascal Obry <obry@adacore.com>
17413 Thomas Quinot <quinot@adacore.com>
17415 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
17416 dealing with filename.
17417 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
17418 filename from a standard string to a wide-string depending on the
17420 (__gnat_freopen): Idem.
17421 (__gnat_current_time): New function (wrapper for time(3) standard C
17424 * g-os_lib.ads (Current_Time): New function. Returns the current
17425 system time as an OS_Time value.
17427 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
17428 (Monotonic_Clock): Same.
17430 2007-04-06 Quentin Ochem <ochem@adacore.com>
17432 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
17434 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
17436 2007-04-06 Jose Ruiz <ruiz@adacore.com>
17438 * a-retide.adb: Add elaboration code to ensure that the tasking run
17439 time is initialized when using delay operations even when no task is
17442 2007-04-06 Javier Miranda <miranda@adacore.com>
17444 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
17445 component Num_Prim_Ops.
17446 (Set_Num_Prim_Ops): Removed.
17447 Remove all the assertions because all the routines of this
17448 package are inline always.
17449 (Get_Offset_Index): Add support to primary dispatch tables.
17450 Move the documentation about the dispatch table to a-tags.ads
17451 (Set_External_Tag): Removed
17452 (Inherit_TSD): Removed.
17453 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
17454 moved to a-tags.ads
17455 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
17456 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
17457 of the TSD field "Table" because this field has been renamed to
17459 (Inherit_CPP_DT): Removed.
17460 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
17461 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
17462 declarations have been moved to a-tags.ads
17463 (Check_Size): Removed.
17464 (Expanded_Name): Updated to get access to the new field of TSD
17465 containing the address of the expanded name.
17466 (Get_Access_Level/Set_Access_Level): Removed.
17467 (Get_Predefined_Prim_Op_Address): Removed.
17468 (Set_Predefined_Prim_Op_Address): Removed.
17469 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
17470 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
17471 (Set_Expanded_Name): Removed.
17472 (Inherit_DT): Removed.
17473 (Inherit_CPP_DT): Removed.
17474 (Set_RC_Offset): Removed.
17475 (Set_TSD): Removed.
17476 (Base_Address): New function that displaces "this" to point to the base
17477 of the object (that is, to point to the primary tag of the object).
17479 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17480 Javier Miranda <miranda@adacore.com>
17482 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
17483 anonymous access component, do not create a master_id if type already
17484 has one, as may happen if the type is a subcomponent of a packed array
17486 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
17487 Initialize_Tag): Remove code associated with the old CPP pragmas.
17488 CPP_Virtual and CPP_Vtable are no longer supported.
17489 (Build_Offset_To_Top_Internal): Add support for concurrent record types
17490 (Build_Offset_To_Top_Functions): Add support for concurrent record types
17491 (Freeze_Record_Type): Remove call to
17492 Init_Predefined_Interface_Primitives.
17493 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
17494 code required to initialize the tags of the secondary dispatch tables.
17495 This leaves the algoritm more clear.
17496 (Init_Secondary_Tags): Add support for concurrent record types
17497 (Make_Predefined_Primitive_Specs): Code cleanup.
17498 (Predefined_Primitive_Bodies): Code cleanup.
17499 (Build_Master_Renaming): New local subprogram.
17500 (Expand_N_Full_Type_Declaration): Build the master_id associated with
17501 anonymous access to task type components.
17502 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
17503 subtype indication are resolved during analysis, and must not be done
17505 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
17507 2007-04-06 Geert Bosch <bosch@adacore.com>
17508 Ed Schonberg <schonberg@adacore.com>
17509 Javier Miranda <miranda@adacore.com>
17510 Bob Duff <duff@adacore.com>
17512 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
17513 for conversion of a Float_Type'Truncation to integer.
17515 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
17516 check if a node is an attribute that can be handled directly by the
17518 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
17519 attributes that can be handled directly by the back end.
17520 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
17521 use new predicate Is_Access_Protected_Subprogram_Type.
17522 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
17523 and Unchecked_Union if it is generated as part of the default Output
17524 procedure for a type with default discriminants.
17525 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
17526 if we are compiling under restriction No_Dispatching_Calls.
17527 (Constrained): Use Underlying_Type, in case the type is private without
17528 discriminants, but the full type has discriminants.
17529 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
17530 call to Build_Get_Access_Level.
17531 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
17532 interface objects requires a call to the run-time subprogram that
17533 returns the base address of the object.
17534 (Valid_Conversion): Improve error message on illegal attempt to store
17535 an anonymous access to subprogram value into a record component.
17537 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
17539 (Simplify_Type_Conversion): New procedure that performs simplification
17540 of Int_Type (Float_Type'Truncation (X)).
17541 (Resolve_Type_Conversion): Call above procedure after resolving operand
17542 and before performing checks. This replaces the existing ineffective
17544 (Set_String_Literal_Subtype): When creating the internal static lower
17545 bound subtype for a string literal, use a newly created copy of the
17546 subtree representing the lower bound.
17547 (Resolve_Call): Exclude build-in-place function calls from transient
17548 scope treatment. Update comments to describe this exception.
17549 (Resolve_Equality_Op): In case of dispatching call check violation of
17550 restriction No_Dispatching_Calls.
17551 (Resolve_Call): If the call returns an array, the context imposes the
17552 component type of the array, and the function has one non-defaulted
17553 parameter, rewrite the call as the indexing of a call with a single
17554 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
17556 (Resolve_Actuals): If an actual is an allocator for an access parameter,
17557 the master of the created object is the innermost enclosing statement.
17558 (Remove_Conversions): For a binary operator, check if type of second
17559 formal is numeric, to check if an abstract interpretation is present
17560 in the case of exponentiation as well.
17562 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17563 Bob Duff <duff@adacore.com>
17565 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
17566 copying a parameter list in a call, set properly the First_Named_Formal
17567 and Next_Named_Formal fields in the new list and in the enclosing call.
17568 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
17569 names, to ease typing in the debugger. Improve comments.
17570 (Watch_Node): New variable, intended to be set in the debugger.
17571 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
17572 called when the watched node is created.
17573 (New_Node_Debugging_Output): Combined version of local procedures
17574 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
17575 with a parameter so that conditional breakpoints like "if Node = 12345"
17577 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
17578 Add Elist1 function
17580 2007-04-06 Thomas Quinot <quinot@adacore.com>
17581 Ed Schonberg <schonberg@adacore.com>
17582 Gary Dismukes <dismukes@adacore.com>
17584 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
17585 required for a conversion between two access-to-unconstrained-array
17587 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
17588 to discriminant constraints on discriminant objects. This rule must
17589 apply as well to discriminants of protected types in private components.
17590 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
17591 object of a null-excluding access type then don't require the
17592 the object declaration to have an expression and don't emit a
17595 2007-04-06 Arnaud Charlet <charlet@adacore.com>
17596 Eric Botcazou <botcazou@adacore.com>
17598 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
17601 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
17602 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
17605 * fe.h (Compiler_Abort): Add third parameter.
17607 * misc.c (internal_error_function): Build third argument from current
17608 input location and pass it to Compiler_Abort.
17610 2007-04-06 Gary Dismukes <dismukes@adacore.com>
17612 * cstand.adb (Create_Standard): When the target's storage unit size is
17613 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
17616 2007-04-06 Nicolas Roche <roche@adacore.com>
17618 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
17619 absolute path can have the following form: device:/a/b. In this case
17620 '/' should be inserted between the path and the filename.
17622 2007-04-06 Olivier Hainque <hainque@adacore.com>
17623 Eric Botcazou <botcazou@adacore.com>
17625 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
17626 VAR_DECL to a CONST_DECL we make for a public constant when we know the
17627 corresponding definition has created the so made visible variable.
17628 Handle anonymous access to protected subprogram.
17629 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
17630 object with an address clause volatile. Re-enable original fix.
17631 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
17633 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
17634 associated with either the Equivalent or Root type, instead of the
17636 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
17637 subtree for every field of a global record type.
17638 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
17639 discriminants, invoke again variable_size on its newly computed sizes.
17641 2007-04-06 Robert Dewar <dewar@adacore.com>
17642 Thomas Quinot <quinot@adacore.com>
17643 Ed Schonberg <schonberg@adacore.com>
17644 Bob Duff <duff@adacore.com>
17646 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
17647 (Next_Component_Or_Discriminant): New function and procedure
17648 (First_Index, First_Literal, Master_Id,
17649 Set_First_Index, Set_First_Literal, Set_Master_Id):
17650 Add missing Ekind assertions.
17651 (Is_Access_Protected_Subprogram_Type): New predicate.
17652 (Has_RACW): New entity flag, set on package entities to indicate that
17653 the package contains the declaration of a remote accecss-to-classwide
17655 (E_Return_Statement): This node type has the Finalization_Chain_Entity
17656 attribute, in case the result type has controlled parts.
17657 (Requires_Overriding): Add this new flag, because "requires
17658 overriding" is subtly different from "is abstract" (see AI-228).
17659 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
17660 Is_Abstract_Type. Make sure these are called only when appropriate.
17661 (Has_Pragma_Unreferenced_Objects): New flag
17663 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
17664 class-wide, the tag of the right-hand side must be an exact match, not
17665 an ancestor of that of the object on left-hand side.
17666 (Move_Activation_Chain): New procedure to create the call to
17667 System.Tasking.Stages.Move_Activation_Chain.
17668 (Expand_N_Extended_Return_Statement): Generate code to call
17669 System.Finalization_Implementation.Move_Final_List at the end of a
17670 return statement if the function's result type has controlled parts.
17671 Move asserts to Build_In_Place_Formal.
17672 (Move_Final_List): New function to create the call statement.
17673 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
17674 tagged type, replace generation of call to the run-time subprogram
17675 CW_Membership by call to Build_CW_Membership.
17676 (Expand_N_Return_Statement): Replace generation of call to the run-time
17677 subprogram Get_Access_Level by call to Build_Get_Access_Level.
17678 (Expand_N_Simple_Function_Return): Replace generation of call to the
17679 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
17681 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
17682 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
17683 access to protected operations.
17684 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
17685 master and chain actual parameters to a build-in-place function call
17687 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
17689 (Make_Build_In_Place_Call_In_Allocator,
17690 Make_Build_In_Place_Call_In_Anonymous_Context,
17691 Make_Build_In_Place_Call_In_Assignment,
17692 Make_Build_In_Place_Call_In_Object_Declaration): Call
17693 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
17694 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
17695 stubbed procedure with a null body, replace the call with a null
17696 statement without using the full inlining machinery, for efficiency
17697 and to avoid invalid values in source file table entries.
17699 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
17700 renamings of calls to build-in-place functions.
17702 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
17703 provides the functionality of RTE_Available to record components.
17704 (RTU_Entity): The function Entity has been renamed to RTU_Entity
17705 to avoid undesired overloading.
17706 (Entity): New subprogram that returns the entity for the referened
17707 unit. If this unit has not been loaded, it returns Empty.
17708 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
17709 Remove no longer used entities.
17710 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
17711 (RE_Type_Specific_Data): New entity.
17712 (RE_Move_Any_Value): New entity.
17713 (RE_TA_A, RE_Get_Any_Type): New entities.
17714 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
17715 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
17716 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
17717 (Entity): New subprogram that returns the entity for the referened
17718 unit. If this unit has not been loaded, it returns Empty.
17719 (RTE): Addition of a new formal that extends the search to the scopes
17720 of the record types found in the chain of the package.
17722 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
17723 "abstract subprograms must be visible" message, whether or not the type
17724 is an interface; that is, remove the special case for interface types.
17725 (Analyze_Function_Return): Remove error message "return of task objects
17726 is not yet implemented" because this is now implemented.
17727 (Create_Extra_Formals): Add the extra master and activation chain
17728 formals in case the result type has tasks.
17729 Remove error message "return of limited controlled objects is not yet
17731 (Create_Extra_Formals): Add the extra caller's finalization list formal
17732 in case the result type has controlled parts.
17733 (Process_Formals): In case of access formal types there is no need
17734 to continue with the analysis of the formals if we already notified
17736 (Check_Overriding_Indicator): Add code to check overriding of predefined
17738 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
17739 flags for formals that do not require them,.
17740 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
17741 hidden entity is use visible or directly visible.
17742 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
17743 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
17744 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
17745 New_Overloaded_Entity): Split Is_Abstract flag into
17746 Is_Abstract_Subprogram and Is_Abstract_Type.
17748 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
17749 a return statement's finalization list to the caller's list, used for
17750 build-in-place functions with result type with controlled parts.
17751 Remove no longer used entities.
17753 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
17754 longer needed, because the full type is now limited, and therefore a
17755 pass-by-reference type.
17756 (Foreign_Task_Level): New constant.
17758 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
17759 move tasks from the activation chain belonging to a return statement to
17760 the one passed in by the caller, and update the master to the one
17761 passed in by the caller.
17762 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
17763 of unactivated tasks, so we don't kill the ones that are being returned
17764 by a build-in-place function.
17765 (Create_Task): Ignore AI-280 for foreign threads.
17767 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17768 Robert Dewar <dewar@adacore.com>
17769 Bob Duff <duff@adacore.com>
17770 Gary Dismukes <dismukes@adacore.com>
17772 * errout.adb (Unwind_Internal_Type): Use predicate
17773 Is_Access__Protected_Subprogram_Type.
17775 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
17776 (Freeze_Entity, packed array case): Do not override explicitly set
17777 alignment and size clauses.
17778 (Freeze_Entity): An entity declared in an outer scope can be frozen if
17779 the enclosing subprogram is a child unit body that acts as a spec.
17780 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
17781 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
17782 Remove all code for DSP option
17784 * layout.adb (Layout_Record_Type): Use First/
17785 Next_Component_Or_Discriminant
17786 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
17787 to handle properly the anonymous access case.
17789 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
17790 for all access attributes, because overload resolution should work the
17791 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
17792 causes the error message for the ambiguous "X'Access = Y'Access" and
17793 "X'Unrestricted_Access = Y'Access" and so forth to match.
17794 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
17795 now that anonymous access to protected operations have their own kind.
17796 (Resolve_Attribute): In case of dispatching call check the violation of
17797 restriction No_Dispatching_Calls.
17798 (Check_Array_Type): Check new -gnatyA array index style option
17800 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
17801 attempt to derive from a synchronized tagged type.
17802 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
17803 type, inherit the class-wide type already created, because it may
17804 already have been used in a self-referential anonymous access component.
17805 (Mentions_T): Recognize self-referential anonymous access components
17806 that use (a subtype of) the class-wide type of the enclosing type.
17807 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
17808 Derived_Type for Prev formal on call to
17809 Check_Anonymous_Access_Components rather than Empty.
17810 (Make_Incomplete_Type_Declaration): Add test for case where the type has
17811 a record extension in deciding whether to create a class-wide type,
17812 rather than just checking Tagged_Present.
17813 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
17814 to stand-alone object declarations as well as component declarations.
17815 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
17816 prevent accidental overwriting when enclosing package appears in
17817 a limited_with_clause.
17818 (Array_Type_Declaration): If the component type is an anonymous access,
17819 the associated_node for the itype is the type declaration itself.
17820 (Add_Interface_Tag_Components): Modified to support concurrent
17821 types with abstract interfaces.
17822 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
17823 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
17824 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
17825 to complete the decoration of synchronized interface types. Add also
17826 a call to Check_Abstract_Interfaces to verify the ARM rules.
17827 (Derive_Interface_Subprograms): Modified to support concurrent types
17828 with abstract interfaces.
17829 (Analyze_Subtype_Indication): Resolve the range with the given subtype
17830 mark, rather than delaying the full resolution depending on context.
17831 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
17832 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
17833 Array_Type_Declaration,Build_Derived_Record_Type,
17834 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
17835 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
17836 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
17837 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
17838 called only when appropriate.
17839 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
17841 (Analyze_Subtype_Declaration): For an access subtype declaration, create
17842 an itype reference for the anonymous designated subtype, to prevent
17843 scope anonmalies in gigi.
17844 (Build_Itype_Reference): New utility, to simplify construction of such
17847 2007-04-06 Vincent Celier <celier@adacore.com>
17849 * errutil.adb (Initialize): Initialize warnings table, if all warnings
17850 are suppressed, supply an initial dummy entry covering all possible
17853 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
17854 and start with only one, such as "-RTS=none".
17855 (Collect_Arguments): Do not check for sources outside of projects.
17856 Do not collect arguments if project is externally built.
17857 (Compile_Sources): Do nothing, not even check if the source is up to
17858 date, if its project is externally built.
17859 (Compile): When compiling a predefined source, add -gnatpg
17860 as the second switch, after -c.
17861 (Compile_Sources): Allow compilation of Annex J renames without -a
17862 (Is_In_Object_Directory): Check if the ALI file is in the object
17863 even if there is no project extension.
17864 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
17865 gnatbind if the ALI file effectively exists.
17866 (Initialize): Add the directory where gnatmake is invoked in front of
17867 the path if it is invoked from a bin directory, even without directory
17868 information, so that the correct GNAT tools will be used when spawned
17869 without directory information.
17871 * makeusg.adb: Change switch -S to -eS
17872 Add lines for new switches -we, -wn and -ws
17873 Add line for new switch -p
17875 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
17876 Treat_As_Error and there are warnings.
17878 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
17879 -gnatww Change gnatmake switch -S to -eS
17880 (Scan_Make_Switches): Code reorganisation. Process separately multi
17881 character switches and single character switches.
17882 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
17883 False when switch is not recognized by gnatmake.
17884 (Scan_Make_Switches): Set Setup_Projects True when -p or
17885 --create-missing-dirs is specified.
17887 * fname.adb (Is_Predefined_File_Name): Return True for annex J
17888 renamings Calendar, Machine_Code, Unchecked_Conversion and
17889 Unchecked_Deallocation only when Renamings_Included is True.
17891 * par.adb: Allow library units Calendar, Machine_Code,
17892 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
17893 when -gnatg is not specified.
17894 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
17895 there is no need to generate always a record_definition_node in case
17896 of synchronized interface types.
17897 (SIS_Entry_Active): Initialize global variable to False
17898 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
17899 indicate cases where AI-447 says "not null" is legal.
17901 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
17903 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
17904 files with with several lines starting with the object fileb name.
17905 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
17907 (Initialize): Add the directory where gprmake is invoked in front of the
17908 path, if it is invoked from a bin directory or with directory
17909 information, so that the correct GNAT tools will be used when invoked
17911 (Check_Compilation_Needed): Process correctly backslashes on Windows.
17913 * vms_data.ads: Update switches/qualifiers
17915 2007-04-06 Ed Schonberg <schonberg@adacore.com>
17916 Thomas Quinot <quinot@adacore.com>
17919 If the array component is a discriminated record, the array aggregate
17920 is non-static even if the component is given by an aggregate with
17922 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
17923 (Convert_Aggr_In_Allocator): If the allocator is for an access
17924 discriminant and the type is controlled. do not place on a finalization
17925 list at this point. The proper list will be determined from the
17927 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
17928 initialize record controller if needed, before the components, to ensure
17929 that they are properly finalized.
17930 (Build_Record_Aggr_Code): For the case of an array component that has a
17931 corresponding array aggregate in the record aggregate, perform sliding
17934 2007-04-06 Javier Miranda <miranda@adacore.com>
17935 Gary Dismukes <dismukes@adacore.com>
17936 Ed Schonberg <schonberg@adacore.com>
17938 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
17939 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
17941 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
17942 accessibility on class-wide allocators if the allocator occurs at the
17943 same scope level as the allocator's type. The check is guaranteed to
17944 succeed in that case, even when the expression originates from a
17945 parameter of the containing subprogram.
17946 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
17947 under No_Dispatching_Calls restriction. During the semantic analysis
17948 we already notified such violation.
17949 (Tagged_Membership): Constant folding. There is no need to check
17950 the tag at run-time if the type of the right operand is non
17951 class-wide abstract.
17952 Replace call to Is_Ancestor by call to Is_Parent
17953 to support concurrent types with interface types.
17954 (Expand_N_Allocator): Add an assertion associated with the generation
17956 (Expand_N_Slice): Do not enable range check to nodes associated
17957 with the frontend expansion of the dispatch table.
17958 (Is_Local_Access_Discriminant): Subsidiary function to
17959 Expand_N_Allocator.
17960 (Tagged_Membership): Replace generation of call to the run-time
17961 subprogram CW_Membership by call to Build_CW_Membership.
17962 (Expand_Allocator_Expression): Replace generation of call to the
17963 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
17965 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
17966 initialize most the TSD components by means of an aggregate.
17967 Modify the declaration of the object containing the TSD
17968 because we now expand code that has a higher level of abstraction.
17969 The TSD has a discriminant containing the Inheritance Depth Level,
17970 value that is used in the membership test but also to fix the size
17971 of the table of ancestors.
17972 (Expand_Interface_Conversion): Insert function body at the closest place
17973 to the conversion expression, to prevent access-before-elaboration
17974 errors in the backend.
17975 Code improved to reduce the size of the dispatch table if
17976 compiling under restriction No_Dispatching_Calls plus code cleanup.
17977 Code reorganization plus removal of calls to Set_Num_Prim_Ops
17978 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
17979 (Expand_Dispatching_Call): Minor code reorganization plus addition of
17980 code to return immediately if compiling under No_Dispatching_Calls
17982 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
17983 CPP_Virtual and CPP_Vtable are no longer supported.
17984 (Expand_Interface_Conversion): Add missing support for interface type
17986 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
17987 Is_Parent to support concurrent types with interfaces.
17988 (Init_Predefined_Interface_Primitives): Removed.
17989 (Make_Secondary_DT): Modified to support concurrent record types.
17990 (Set_All_DT_Position): Modified to support concurrent record types.
17991 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
17992 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
17993 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
17994 with CW_Membership.
17995 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
17996 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
17997 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
17998 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
17999 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
18000 (Expand_Dispatching_Call): Replace generation of call to the run-time
18001 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
18002 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
18004 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
18005 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
18006 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
18007 Build_Set_Prim_Op_Address.
18008 (Get_Remotely_Callable): Subprogram removed.
18009 (Init_Predefined_Interface_Primitives): Replace generation of call to
18010 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
18013 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
18014 First (Parameter_Associations ()) with the call to First_Actual that
18015 returns an actual parameter expression for both named and positional
18018 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
18019 check violation of restriction No_Dispatching_Calls.
18020 (Check_Controlling_Type): A formal of a tagged incomplete type is a
18021 controlling argument.
18023 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
18024 First/Next_Component_Or_Discriminant
18025 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
18026 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18027 specify Any_Limited_Interface, and this functionality is already
18028 provided by the function Has_Abstract_Interfaces.
18029 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
18030 support concurrent types implementing interfaces.
18031 (Find_Implemented_Interface): Removed. All the calls to this subprogram
18032 specify kind Any_Limited_Interface, and this functionality is already
18033 provided by the function Has_Abstract_Interfaces.
18034 (Remove_Side_Effects): replace Controlled_Type by
18035 CW_Or_Controlled_Type whenever the issue is related to
18036 using or not the secondary stack.
18038 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
18039 P_Interface_Type_Definition to fulfill the new interface (the formal
18040 Is_Synchronized is no longer required).
18042 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
18043 Update dependencies.
18045 * exp_atag.ads, exp_atag.adb: New file
18047 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18048 Bob Duff <duff@adacore.com>
18049 Cyrille Comar <comar@adacore.com>
18051 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
18052 anonymous, use finalization list of enclosing dynamic scope.
18053 (Expand_N_Package_Declaration): For a library package declaration
18054 without a corresponding body, generate RACW subprogram bodies in the
18055 spec (just as we do for the task activation call).
18056 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
18057 Is_Abstract_Type. Make sure these are called only when appropriate.
18058 Remove all code for DSP option
18059 (CW_Or_Controlled_Type): new subprogram.
18061 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18062 Ed Schonberg <schonberg@adacore.com>
18063 Gary Dismukes <dismukes@adacore.com>
18065 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
18066 parameter. If it is set to true, return a result capped according to
18067 the global upper bound for the index of an entry family.
18068 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
18069 (Build_Find_Body_Index): Adjust for above change.
18070 (Entry_Index_Expression): Likewise.
18071 (Is_Potentially_Large_Family): New function extracted from...
18072 (Collect_Entry_Families): ...here. Call it to detect whether the family
18073 is potentially large.
18074 (Build_Entry_Count_Expression): If the family is potentially large, call
18075 Family_Size with 'Cap' set to true.
18076 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
18077 a protected version of an operation declared in the private part of
18078 a protected object, because they may be invoked through a callback.
18079 (Set_Privals): If the type of a private component is an anonymous access
18080 type, do not create a new itype for each protected body.
18081 If the body of a protected operation creates
18082 controlled types (including allocators for class-widetypes), the
18083 body of the corresponding protected subprogram must include a
18085 (Build_Activation_Chain_Entity): Build the chain entity for extended
18087 (Type_Conformant_Parameters): Use common predicate Conforming_Types
18088 to determine whether operation overrides an inherited primitive.
18089 (Build_Wrapper_Spec): Add code to examine the parents while looking
18090 for a possible overriding candidate.
18091 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
18092 hold an actual parameter value since its initialization is separated
18093 from the the declaration. Prevents errors on null-excluding access
18096 2007-04-06 Thomas Quinot <quinot@adacore.com>
18097 Pablo Oliveira <oliveira@adacore.com>
18099 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
18100 Do an Unchecked_Conversion to handle the passage from the Underlying
18101 Type to the Base Type when calling Build_To_Any_Call and
18102 Build_From_Any_Call.
18103 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
18104 E_Constant, depending upon Variable formal.
18105 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18106 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
18107 parameter that requires an extra constrained parameter, declare
18108 temporary for actual as a variable, not a constant.
18109 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
18110 the unit being compiled is the one that contains the stub type.
18111 Change primitive operation name for the RACW associated with a RAS
18112 from Call to _Call so it cannot clash with any legal identifier.
18113 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
18115 (Append_RACW_Bodies): New subprogram.
18116 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
18117 Add_Receiving_Stubs_To_Declarations functions.
18118 When expanding a package body, this list correspond to the
18119 statements in the HSS at the end of the pacakge.
18120 When expanding a package spec, this list correspond to the
18122 (Add_Receiving_Stubs_To_Declarations): Append the function
18123 registering the receiving stubs at the end of the 'Stmts' list.
18124 (RCI_Package_Locator): Pass the new Version generic formal when
18125 instantiating a RCI_Locator package.
18126 (Build_From_Any_Function): To compute the High bound for an
18127 unconstrained array actual, we add the Low bound with the length.
18128 Thus we must convert the low bound and the length to an appropriate
18129 type before doing the sum.
18130 (Build_Subprogram_Receiving_Stubs, PolyORB):
18131 * Retrieve the extra formals parameters at the
18132 end of the parameter stream.
18133 * Use Move_Any_Value to write back out parameters
18134 after executing the request as it is more efficient
18135 than Copy_Any_Value.
18136 * Build the any containing Extra Formals with the
18137 appropriate typecode.
18138 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
18139 empty Component_List.
18140 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
18141 the tree the declaration for an object that serves as actual parameter
18142 in server-side stubs.
18143 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18144 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18145 Use Build_Actual_Object_Declaration to prepare the actuals.
18146 (Add_Parameter_To_NVList): Set the parameter mode to In for
18147 Extra Constrained Parameters.
18148 (Build_General_Calling_Stubs): Set the parameter type to boolean for
18149 Extra Constrained parameters.
18150 (Build_To_Any_Function, Build_From_Any_Function,
18151 Built_TypeCode_Function): When Typ is implicit, call the correct
18152 function with the first not implicit parent type.
18153 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
18154 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
18155 typecode from the Etype. Therefore we retrieve the correct typecode
18156 with a call to Get_Any_Type.
18157 (Copy_Specification): Do controlling formal type substitution based on
18158 Is_Controlling_Formal flag, instead of caller-provided object type.
18159 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
18160 a RACW primitive operation, we might get a subprogram declaration for an
18161 ancestor of the RACW designated type (not for the designated type
18162 itself), in the case where this operation is inherited. In this case we
18163 have no easy means of determining the original tagged type for which
18164 the primitive was declared, so instead we now rely on
18165 Copy_Specification to use the Is_Controlling_Formal flag to determine
18166 which formals require type substitution.
18168 2007-04-06 Robert Dewar <dewar@adacore.com>
18169 Ed Schonberg <schonberg@adacore.com>
18171 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
18172 GNAT.Current_Exception are not allowed if pragma Restrictions
18173 (No_Exception_Propagation) is set and in any case make the associated
18174 handler unsuitable as a target for a local raise statement.
18175 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
18176 run-time subprogram CW_Membership by call to Build_CW_Membership.
18177 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
18178 by a function call, a temporary must be created before expanding the
18179 Constructor_Call itself, to prevent out-of-order elaboration in the
18180 back-end when stack checking is enabled..
18182 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18184 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
18185 result are the bounds of the left operand, not the right.
18187 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18190 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
18191 discriminant defaults.
18192 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
18193 (Make_Component_List_Attributes): Ditto.
18195 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18196 Bob Duff <duff@adacore.com>
18198 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
18199 an association with a box as providing a value even though the
18200 initialization procedure for the type is not available.
18201 (Resolve_Record_Aggregate): Check that a choice of an association with a
18202 box corresponds to a component of the type.
18203 (Resolve_Record_Aggregate): Split Is_Abstract flag into
18204 Is_Abstract_Subprogram and Is_Abstract_Type.
18206 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
18209 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
18210 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
18211 called only when appropriate.
18213 2007-04-06 Olivier Hainque <hainque@adacore.com>
18215 * g-alleve.ads (Low Level Vector type definitions): Map each to the
18216 associated vector view instead of all to the unsigned char view.
18218 * g-altcon.adb (Generic_Conversions): New internal generic package,
18219 offering facilities for all the Vector/View conversion routines
18220 implemented by this unit.
18221 (To_View/To_Vector - all versions): Reimplemented in a systematic
18222 manner, using the internal Generic_Conversions facilities.
18224 2007-04-06 Pascal Obry <obry@adacore.com>
18226 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
18228 (Create): Free the source string before storing the new one.
18230 2007-04-06 Vincent Celier <celier@adacore.com>
18232 * g-debpoo.adb (Validity): New package with a complete new
18233 implementation of subprograms Is_Valid and Set_Valid.
18234 (Is_Valid): Move to local package Validity
18235 (Set_Valid): Move to local package Validity
18237 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18238 Pablo Oliveira <oliveira@adacore.com>
18240 * g-expect.adb (Get_Command_Output): When expanding the output buffer
18241 we must ensure that there is enough place for the new data we are going
18244 2007-04-06 Thomas Quinot <quinot@adacore.com>
18246 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
18249 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18250 Vincent Celier <celier@adacore.com>
18252 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
18253 (Stack_String): Add this String that contains the name of the Stack
18254 package in the project file.
18255 (Packages_To_Check_By_Stack): Add this list that contains the packages
18256 to be checked by gnatstack, which are the naming and the stack packages.
18257 (Check_Files): If no .ci files were specified for gnatstack we add all
18258 the .ci files belonging to the projects, including binder generated
18260 (Non_VMS_Usage): Document that gnatstack accept project file switches.
18261 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
18262 Add gnatstack to the list of commands that use project file related
18263 switches, and get the single attribute Switches from the stack package
18264 in a project file when calling gnatstack. Parse the -U flag for
18265 processing files belonging to all projects in the project tree.
18266 Remove all processing for command Setup
18268 * prj-attr.adb: Add new package Stack with single attribute Switches
18270 * vms_conv.ads (Command_Type): Add command Stack.
18271 Move to body declarations that are only used in the body: types Item_Id,
18272 Translation_Type, Item_Ptr, Item and its subtypes.
18274 * vms_conv.adb: (Initialize): Add data for new command Stack.
18275 Add declarations moved from the spec: types Item_Id, Translation_Type,
18276 Item_Ptr, Item and its subtypes.
18277 (Cargs_Buffer): New table
18278 (Cargs): New Boolean global variable
18279 (Process_Buffer): New procedure to create arguments
18280 (Place): Put character in table Buffer or Cargs_Buffer depending on the
18282 (Process_Argument): Set Cargs when processing qualifiers for GNAT
18284 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
18285 empty, for table Cargs_Buffer.
18286 (Initialize): Remove component Setup in Command_List
18288 2007-04-06 Vincent Celier <celier@adacore.com>
18290 * gprep.adb (Process_Files.Process_One_File): Use full file name when
18291 issuing pragma Source_Reference.
18293 2007-04-06 Emmanuel Briot <briot@adacore.com>
18295 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
18296 [[:xdigit:]] character class.
18297 Also raise an exception when an invalid character class is used.
18299 2007-04-06 Pascal Obry <obry@adacore.com>
18301 * i-cstrea.ads: (fopen): Add encoding parameter.
18303 Change reference from a-sysdep.c to sysdep.c in comment.
18304 Update copyright notice.
18305 This set of patch add support for the encoding form parameter.
18307 * mingw32.h (S2WSU): New macro to convert from a string to a
18308 wide-string using the UTF-8 encoding. The S2WS macro supports now only
18309 standard 8bits encoding.
18310 (WS2SU): As above but converting from wide-sring to string.
18311 This is needed as it is necessary to have access to both versions in the
18312 runtime for the form parameter encoding support.
18313 This set of patch add support for the encoding form parameter.
18314 (S2WS): Improve implementation to handle cases where the filename is not
18315 UTF-8 encoded. In this case we default to using the current code page
18316 for the conversion.
18318 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
18319 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
18320 the constants defined in adaint.h.
18321 (fopen): Add encoding parameter.
18324 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
18325 encoding. This is needed for the Reset routine (freopen low level-call).
18327 * s-fileio.adb (Open): Decode encoding form parameter and set the
18328 corresponding encoding value into AFCB structure.
18329 (Reset): Pass the encoding value to freopen.
18330 (Close): Move the call to Lock_Task to the beginning of the procedure.
18332 2007-04-06 Geert Bosch <bosch@adacore.com>
18333 Robert Dewar <dewar@adacore.com>
18335 * i-fortra.ads: Add Double_Complex type.
18337 * impunit.adb: (Is_Known_Unit): New function
18338 Add Gnat.Byte_Swapping
18340 Add new Ada 2005 units
18341 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
18342 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
18343 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
18344 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
18346 * impunit.ads (Is_Known_Unit): New function
18348 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
18349 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
18350 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
18351 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
18352 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
18353 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
18356 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
18358 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
18360 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18361 Arnaud Charlet <charlet@adacore.com>
18363 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
18364 __gnat_adjust_context_for_raise.
18365 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
18366 implementation of floating point operations as native x86 targets.
18367 So the FPU should be initialized in the same way using finit. Fix
18368 floating point operations accuracy issues.
18369 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
18370 member in struct sigaction, so as to avoid warning for incompatible
18373 2007-04-06 Serguei Rybin <rybin@adacore.com>
18375 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
18376 switches from previously loaded tree
18378 2007-04-06 Thomas Quinot <quinot@adacore.com>
18380 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
18381 cases where a given dependency has a body or not.
18382 (Write_With_File_Names): New subprogram, common code for the two cases
18385 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18386 Javier Miranda <miranda@adacore.com>
18388 * lib-xref.ads, lib-xref.adb:
18389 Modify the loop that collects type references, to include interface
18390 types that the type implements. List each of these interfaces when
18391 building the entry for the type.
18392 (Generate_Definition): Initialize component Def and Typ of new entry
18393 in table Xrefs, to avoid to have these components unitialized.
18394 (Output_References): Split Is_Abstract flag into
18395 Is_Abstract_Subprogram and Is_Abstract_Type.
18396 (Generate_Reference): Add barrier to do not generate the warning
18397 associated with Ada 2005 entities with entities generated by the
18400 2007-04-06 Robert Dewar <dewar@adacore.com>
18401 Arnaud Charlet <charlet@adacore.com>
18402 Vincent Celier <celier@adacore.com>
18404 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
18405 Update 'Exception Handling Control' chapter which was outdated.
18406 Minor fix to documentation of -gnatwq
18407 Remove section "Adapting the Run Time to a New C++ Compiler" because
18408 it is now obsolete.
18409 Add passage on need of -nostart-files in some non-ada-main cases.
18410 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
18411 Update documentation about Interfacing with C++
18412 Add documentation for new gnatmake switch -p
18413 Add missing protocol part in URLs.
18415 Document pragma Compile_Time_Error
18416 Add documentation for Object_Size indicating that stand alone
18417 objects can have a larger size in some cases.
18418 Add node for GNAT.Byte_Swapping, GNAT.SHA1
18419 Update reference to the Ravenscar profile.
18420 Document pragma Unreferenced_Objects
18422 * gnat-style.texi: Fix typo
18424 2007-04-06 Vincent Celier <celier@adacore.com>
18426 * mlib.adb (Building_Library): Only output "building a library..." in
18429 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
18430 files in verbose mode.
18432 * mlib-utl.adb (Ar): Only output the first object files when not in
18434 (Gcc): Do not display all the object files if not in verbose mode, only
18437 2007-04-06 Robert Dewar <dewar@adacore.com>
18439 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
18440 it no longer destroys the contents of Name_Buffer or Name_Len and
18441 non-standard and invalid names are handled better.
18442 (Get_Decoded_Name_String): Improve performance by using
18443 Name_Has_No_Encodings flag in the name table.
18444 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
18445 Used for debugging printouts.
18447 2007-04-06 Robert Dewar <dewar@adacore.com>
18448 Javier Miranda <miranda@adacore.com>
18449 Bob Duff <duff@adacore.com>
18451 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
18452 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
18453 there is no need to generate always a record_definition_node in case
18454 of synchronized interface types.
18455 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
18456 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
18457 illegal in Ada 95, in cases where it is legal. Change the warnings to
18458 errors in other cases. Don't give the error unless the "not null"
18459 parses properly. Correct the source position at which the error occurs.
18460 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
18461 P_Null_Exclusion, to suppress "not null" warnings.
18462 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
18463 associated goto statements.
18465 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
18468 * scans.ads (Type_Token_Location): New flag
18470 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
18471 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
18472 P_Null_Exclusion, to suppress "not null" warnings.
18474 2007-04-06 Robert Dewar <dewar@adacore.com>
18475 Javier Miranda <miranda@adacore.com>
18476 Bob Duff <duff@adacore.com>
18477 Vincent Celier <celier@adacore.com>
18479 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
18480 (Extensions_Allowed): No longer sets Ada_Version
18481 Entry for pragma Unreferenced_Objects
18483 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
18484 system.tasking if pragma priority used in a procedure
18485 (Analyze_Pragma, case Warning): Handle dot warning switches
18486 (Process_Compile_Time_Warning_Or_Error): New procedure
18487 (Analyze_Pragma): Add processing for Compile_Time_Error
18488 Add support for extra arguments External_Name and Link_Name.
18489 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
18490 (Process_Import_Or_Interface): Add support for the use of pragma Import
18492 (Extensions_Allowed): No longer affects Ada_Version
18493 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
18494 Is_Abstract_Type. Make sure these are called only when appropriate.
18495 Add processing for pragma Unreferenced_Objects
18497 * snames.h, snames.ads, snames.adb: Add entry for pragma
18499 Add new standard name Minimum_Binder_Options for new gprmake
18500 Add new standard names for gprmake: Archive_Suffix,
18501 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
18502 Library_Support, Library_Version_Options,
18503 Shared_Library_Minimum_Options,
18504 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
18505 Change Name_Call to Name_uCall so that it cannot clash with a legal
18507 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
18508 Append C_Plus_Plus to convention identifiers as synonym for CPP
18509 Add new standard names Stack and Builder_Switches
18510 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
18511 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
18512 Run_Path_Option, Toolchain_Version.
18513 Entry for pragma Unreferenced_Objects
18515 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
18516 switches, without repetition of "eD". Make sure that last character of
18517 -gnatep= switch is not taken as -gnat switch character.
18518 Complete rewrite of circuit for handling saving compilation options
18519 Occasioned by need to support dot switchs for -gnatw, but cleans up
18521 -gnatX does not affect Ada_Version
18522 Include -gnatyA in -gnatg style switches
18524 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
18525 warnings on return objects.
18526 (Warn_On_Useless_Assignment): Exclude warnings on return objects
18527 (Set_Dot_Warning_Switch): New procedure
18528 (Check_References): Add missing case of test for
18529 Has_Pragma_Unreferenced_Objects
18530 (Output_Unreferenced_Messages): Implement effect of new pragma
18531 Unreferenced_Objects, remove special casing of limited controlled
18534 2007-04-06 Vincent Celier <celier@adacore.com>
18536 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
18537 the default project path, initially done during elaboration of the
18539 If the prefix returned by Sdefault is null, get the prefix from a call
18540 to Executable_Prefix_Path.
18541 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
18544 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
18545 canonical directory name to open the directory from which files are
18547 (Record_Other_Sources): Idem.
18548 (Locate_Directory): Add the possibility to create automatically missing
18549 directories when Setup_Projects is True.
18550 Call Locate_Directory so that the directory will be created when
18551 Setup_Projects is True, for object dir, library dir, library ALI dir,
18552 library source copy dir and exec dir.
18554 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
18557 2007-04-06 Robert Dewar <dewar@adacore.com>
18559 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
18560 Use First/Next_Component_Or_Discriminant
18561 (Analyze_Record_Representation_Clause):
18562 Use First/Next_Component_Or_Discriminant
18563 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
18564 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
18565 definition if type is unconstrained.
18566 (Adjust_Record_For_Reverse_Bit_Order): New procedure
18567 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
18568 Is_Abstract_Subprogram and Is_Abstract_Type.
18569 (Adjust_Record_For_Reverse_Bit_Order): New procedure
18571 * repinfo.adb (List_Record_Info): Use First/
18572 Next_Component_Or_Discriminant.
18574 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
18577 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
18578 Include -gnatyA in default switches
18580 * opt.ads: (Warn_On_Non_Local_Exception): New flag
18581 (Warn_On_Reverse_Bit_Order): New flag
18582 (Extensions_Allowed): Update the documentation.
18583 (Warn_On_Questionable_Missing_Parens): Now on by default
18585 * usage.adb: Add documentation of -gnatw.x/X switches
18586 Document new -gnatyA style switch
18587 -gnatq warnings are on by default
18589 2007-04-06 Ed Falis <falis@adacore.com>
18591 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
18592 full word is no longer compared twice.
18594 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18596 * sem_ch10.adb (Install_Limited_Context_Clauses.
18597 Expand_Limited_With_Clause): Use a new copy of selector name in the
18598 call to Make_With_Clause. This fixes the tree structure for ASIS
18599 purposes. Nothing is changed in the compiler behaviour.
18600 (Process_Body_Clauses): Handle properly use clauses whose prefix is
18601 a package renaming.
18602 (Install_Limited_With_Clauses): Do not install non-limited view when it
18603 is still incomplete.
18605 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18606 Gary Dismukes <dismukes@adacore.com>
18608 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
18609 when capturing size information, instead of base type, which for a
18610 formal array type will be the unconstrained type.
18611 (Analyze_Formal_Object_Declaration): Add check for illegal default
18612 expressions for a formal in object of a limited type.
18613 (Instantiate_Object): Ditto.
18614 (Check_Formal_Package_Instance): Skip entities that are formal objects,
18615 because they were defaulted in the formal package and no check applies
18617 (Check_Formal_Package_Instance): Extend conformance check to other
18618 discrete types beyond Integer.
18619 (Process_Default): Copy directly the unmatched formal. A generic copy
18620 has already been performed in Analyze_Formal_Package.
18621 (Analyze_Associations): If a formal subprogram has no match, check for
18622 partial parametrization before looking for a default, to prevent
18624 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
18625 not set the instantiation environment before analyzing the actuals.
18626 Fixes regression on 8515-003 with implementation of AI-133.
18627 Set_Instance_Env checks whether the generic unit is a predefined
18628 unit, in which case the instance must be analyzed with the latest Ada
18629 mode. This setting must take place after analysis of the actuals,
18630 because the actuals must be analyzed and frozen in the Ada mode extant
18631 outside of the current instantiation.
18632 (Save_Env, Restore_Env): Preserve and restore the configuration
18633 parameters so that predefined units can be compiled in the proper Ada
18635 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
18636 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
18637 and Is_Abstract_Type.
18638 (Analyze_Formal_Package): For better error recovery, Add exception
18639 handler to catch Instantion_Error, which can be raised in
18640 Analyze_Associations
18642 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18643 Bob Duff <duff@adacore.com>
18644 Gary Dismukes <dismukes@adacore.com>
18646 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
18647 prefix type is a discriminated subtype of the type of the formal.
18648 (Analyze_Allocator): Collect all coextensions regardless of the context.
18649 Whether they can be allocated statically is determined in exp_ch4.
18650 (Analyze_Selected_Component): If the prefix is a limited view and the
18651 non-limited view is available, use the non-limited one.
18652 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
18653 therefore illegal), suggest a qualified expression rather than a type
18654 conversion, because a type conversion would be illegal in this context.
18655 (Anayze_Allocator): Trace recursively all nested allocators so that all
18656 coextensions are on the corresponding list for the root. Do no mark
18657 coextensions if the root allocator is within a declaration for a stack-
18658 allocated object, because the access discriminants will be allocated on
18660 (Analyze_Call): Remove restriction on calls to limited functions for the
18661 cases of generic actuals for formal objects, defaults for formal objects
18662 and defaults for record components.
18663 (Analyze_Allocator): Before analysis, chain coextensions on the proper
18664 element list. Their expansion is delayed until the enclosing allocator
18665 is processed and its finalization list constructed.
18666 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
18667 for an operation with the given name among the primitive operations of
18668 the corresponding record type.
18669 (Analyze_Selected_Component): If the prefix is a task type that
18670 implements an interface, and there is no entry with the given name,
18671 check whether there is another primitive operation (e.g. a function)
18673 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
18674 properly the indexing of a function call written in prefix form, where
18675 the function returns an array type, and all parameters of the function
18676 except the first have defaults.
18677 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
18678 the original operands, rather than relocating them, for efficiency and
18679 to work properly when an operand is overloaded.
18680 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
18681 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
18682 (Analyze_Selected_Component): If the prefix is a private extension, only
18683 scan the visible components, not those of the full view.
18684 (Try_Primitive_Operation): If the operation is a procedure, collect all
18685 possible interpretations, as for a function, because in the presence of
18686 classwide parameters several primitive operations of the type can match
18687 the given arguments.
18689 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18690 Robert Dewar <dewar@adacore.com>
18692 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
18693 tag-indeterminate call to an abstract function, when the left-hand side
18695 (Analyze_Loop_Statement): Improve detection of infinite loops
18697 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18698 Thomas Quinot <quinot@adacore.com>
18700 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
18701 out of Analyze_Package_Declaration, because processing must be applied
18702 to package bodies as well, for deferred constants completed by pragmas.
18703 (Analyze_Package_Declaration): When the package declaration being
18704 analyzed does not require an explicit body, call Check_Completion.
18705 (May_Need_Implicit_Body): An implicit body is required when a package
18706 spec contains the declaration of a remote access-to-classwide type.
18707 (Analyze_Package_Body): If the package contains RACWs, append the
18708 pending subprogram bodies generated by exp_dist at the end of the body.
18709 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
18710 Is_Abstract_Subprogram and Is_Abstract_Type.
18711 (Preserve_Full_Attributes): The full entity list is not an attribute
18712 that must be preserved from full to partial view.
18714 * sem_dist.adb (Add_RAS_Dereference_TSS):
18715 Change primitive name to _Call so it cannot clash with any legal
18716 identifier, and be special-cased in Check_Completion.
18717 Mark the full view of the designated type for the RACW associated with
18718 a RAS as Comes_From_Source to get proper view switching when installing
18719 private declarations.
18720 Provite a placeholder nested package body along with the nested spec
18721 to have a place for Append_RACW_Bodies to generate the calling stubs
18722 and stream attributes.
18724 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18725 Robert Dewar <dewar@adacore.com>
18727 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
18728 that is a limited view, check the non-limited view if available.
18729 (Undefined): Refine error message for missing with of Text_IO
18730 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
18731 to distinguish real missing with cases.
18732 Fix format of all missing with messages
18733 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
18734 renaming as body when renamed entity is abstract.
18736 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18737 Javier Miranda <miranda@adacore.com>
18739 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
18740 predicate recursive, to handle complex expressions on literals whose
18741 spurious ambiguity comes from the abstract interpretation of some
18743 (Interface_Present_In_Ancestor): Add support to concurrent record
18745 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
18746 Is_Abstract_Subprogram and Is_Abstract_Type.
18748 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18749 Javier Miranda <miranda@adacore.com>
18751 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
18752 dereference of a local object R created as a reference to another
18753 object O, use the access level of O.
18754 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
18755 rather than local Same_Formal_Type, to check whether protected operation
18756 overrides an inherited one.
18757 (Same_Formal_Type): New predicate, used when matching signatures of
18758 overriding synchronized operations, to handle the case when a formal
18759 has a type that is a generic actual.
18760 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
18761 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
18762 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
18763 syntactic ambiguities involving indexing of function calls that return
18765 (Abstract_Interface_List): New subprogram that returns the list of
18766 abstract interfaces associated with a concurrent type or a
18767 concurrent record type.
18768 (Interface_Present_In_Parent): New subprogram used to check if a
18769 given type or some of its parents implement a given interface.
18770 (Collect_Abstract_Interfaces): Add support for concurrent types
18771 with interface types.
18772 (Has_Abstract_Interfaces): Add support for concurrent types with
18774 (Is_Parent): New subprogram that determines whether E1 is a parent
18775 of E2. For a concurrent type its parent is the first element of its
18776 list of interface types; for other types this function provides the
18777 same result than Is_Ancestor.
18778 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
18779 (Collect_Synchronized_Interfaces): Removed because the subprogram
18780 Collect_Abstract_Interfaces provides this functionality.
18781 (Collect_Abstract_Interfaces): Minor update to give support to
18782 concurrent types and thus avoid undesired code duplication.
18783 (Get_Subprogram_Entity): Handle entry calls.
18784 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
18786 (Enter_Name): Do not give -gnatwh hiding warning for record component
18787 entities, they never result in hiding.
18789 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18790 Robert Dewar <dewar@adacore.com>
18792 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
18793 to chain nested components that are allocators for access discriminants
18794 of the enclosing object.
18795 Add N_Push and N_Pop nodes
18796 New field Exception_Label added
18797 (Local_Raise_Statements): New field in N_Exception_Handler_Node
18798 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
18799 (Is_Coextension): New flag for allocators, to mark allocators that
18800 correspond to access discriminants of dynamically allocated objects.
18801 (N_Block_Statement): Document the fact that the corresponding entity
18802 can be an E_Return_Statement.
18803 (Is_Coextension): New flag for allocators.
18804 Remove all code for DSP option
18806 * sprint.ads, sprint.adb: Display basic information for class_wide
18807 subtypes. Add handling of N_Push and N_Pop nodes
18809 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18811 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
18812 before propagating exception.
18814 2007-04-06 Olivier Hainque <hainque@adacore.com>
18816 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
18817 an address always within the call instruction from a return address.
18819 2007-04-06 Olivier Hainque <hainque@adacore.com>
18820 Eric Botcazou <botcazou@adacore.com>
18822 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
18823 expression with a COMPOUND_EXPR including the call instead of emitting
18824 the call directly here.
18825 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
18826 high bound is constant and the slice is empty. Tidy.
18827 (tree_transform, case N_Op_Not): Handle properly the case where the
18828 operation applies to a private type whose full view is a modular type.
18829 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
18830 Address_Clause, use the associated Expression as the GNAT tree
18831 representing the choice value to ensure the corresponding GCC tree is
18832 of the proper kind.
18833 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
18834 instead of just the operands, as the base GCC stabilize_reference does.
18835 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
18836 requested; otherwise fail.
18837 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
18839 2007-04-06 Thomas Quinot <quinot@adacore.com>
18841 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
18842 implementation of UI_Div.
18843 (UI_Div): Reimplement as a call to UI_Div_Rem.
18844 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
18845 remainder, avoiding the cost of a multiplication and a subtraction.
18846 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
18847 provides both quotient and remainder in a single computation.
18848 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
18849 functions for uint.
18850 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
18851 is undefined if the given n is not inversible.
18853 2007-04-06 Olivier Hainque <hainque@adacore.com>
18855 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
18856 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
18859 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18860 Olivier Hainque <hainque@adacore.com>
18862 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
18863 when updating the contents of the old pointer to an unconstrained array.
18864 (end_subprog_body): Set error_gnat_node to Empty.
18865 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
18866 (unchecked_convert): For subtype to base type conversions, require that
18867 the source be a subtype if it is an integer type.
18868 (builtin_decls): New global, vector of available builtin functions.
18869 (gnat_pushdecl): Add global builtin function declaration nodes to the
18870 builtin_decls list.
18871 (gnat_install_builtins): Adjust comments.
18872 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
18873 calling gnat_pushdecl, so that it knows when it handed a builtin
18874 function declaration node.
18875 (builtin_decl_for): Search the builtin_decls list.
18877 2007-04-06 Eric Botcazou <botcazou@adacore.com>
18879 * s-stchop-vxworks.adb:
18880 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
18882 2007-04-06 Robert Dewar <dewar@adacore.com>
18883 Arnaud Charlet <charlet@adacore.com>
18885 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
18887 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
18889 Add mention of -Sev (set initialize_scalars option from environment
18890 variable at run time) in gnatbind usage message.
18892 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
18894 * fname-uf.ads: Minor comment fix
18896 * osint.ads: Change pragma Elaborate to Elaborate_All
18898 * par-load.adb: Add documentation.
18900 * sem_cat.ads, sem_cat.adb: Minor code reorganization
18902 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
18904 * s-secsta.ads: Extra comments
18906 * s-soflin.ads: Minor comment fixes
18908 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
18910 * s-wchcon.ads: Minor comment addition
18912 * treepr.adb: Minor change in message
18913 (Print_Name,Print_Node): Make these debug printouts more robust: print
18914 "no such..." instead of crashing on bad input.
18916 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
18918 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
18919 instead of gnat_signed_or_unsigned_type.
18920 * utils.c (gnat_signed_or_unsigned_type): Remove.
18921 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
18922 * gigi.h (gnat_signed_or_unsigned_type): Remove
18924 2007-03-09 Roger Sayle <roger@eyesopen.com>
18926 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
18927 fold with the result of buildN.
18928 * decl.c (gnat_to_gnu_entity): Likewise.
18929 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
18930 * utils.c (finish_record_type, merge_sizes, max_size, convert):
18932 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
18933 nonbinary_modular_operation, build_binary_op, build_unary_op,
18934 build_cond_expr): Likewise.
18936 * utils.c (convert): Use fold_build1 when casting values to void.
18937 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
18938 fold_convert instead of convert when appropriate.
18940 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
18942 * Make-lang.in: Add install-pdf target as copied from
18943 automake v1.10 rules.
18945 2007-02-28 Andreas Schwab <schwab@suse.de>
18947 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
18948 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
18949 (doc/gnat-style.info): Likewise.
18951 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
18953 * gnat-style.texi: Standardize title page.
18954 * gnat_rm.texi: Likewise.
18955 * gnat_ugn.texi: Likewise.
18957 2007-02-25 Mark Mitchell <mark@codesourcery.com>
18959 * decl.c (annotate_value): Adjust for refactoring of tree_map
18962 2007-02-24 Mark Mitchell <mark@codesourcery.com>
18964 * decl.c (annotate_value): Adjust for refactoring of tree_map
18967 2007-02-21 Ed Schonberg <schonberg@adacore.com>
18970 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
18971 untagged derived type, add hidden components to keep discriminant
18972 layout consistent, when a given discriminant of the derived type
18973 constraints several discriminants of the parent type.
18975 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
18976 Sandra Loosemore <sandra@codesourcery.com>
18978 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
18979 build the call expression.
18980 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
18981 * utils.c (max_size) <tcc_exceptional>: Delete.
18982 <tcc_vl_exp>: New case.
18983 <tcc_expression>: Delete CALL_EXPR subcase.
18984 (build_global_cdtor): Use build_call_nary instead of build3.
18985 * utils2.c (build_call_1_expr): Likewise.
18986 (build_call_2_expr): Likewise.
18987 (build_call_0_expr): Likewise.
18988 (build_call_alloc_dealloc): Likewise.
18990 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
18992 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
18993 get_action_description_for): Replace _Unwind_Word with _uleb128_t
18994 and _Unwind_SWord with _sleb128_t.
18996 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
18998 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
18999 * decl.c: Include gt-ada-decl.h.
19000 (annotate_value_cache): New.
19001 (annotate_value): Use it instead of TREE_COMPLEXITY.
19003 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
19005 * misc.c, utils2.c: Fix comment typos.
19007 2007-01-24 Roger Sayle <roger@eyesopen.com>
19009 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
19010 TREE_CONSTANT_OVERFLOW.
19011 (allocatable_size_p, annotate_value): Likewise.
19012 * trans.c (gnat_to_gnu): Likewise.
19013 * utils.c (unchecked_convert): Likewise.
19014 * utils2.c (build_simple_component_ref): Likewise.
19016 2007-01-23 Richard Guenther <rguenther@suse.de>
19019 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
19020 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
19021 (gnatboot3): Likewise.
19022 (GNATBIND): Do not define.
19023 * Makefile.in (GNATBIND): Do not define.
19025 2007-01-08 Richard Guenther <rguenther@suse.de>
19027 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
19028 * trans.c (gnat_to_gnu): Likewise.
19030 2006-12-07 Geoffrey Keating <geoffk@apple.com>
19032 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
19033 * adaint.c: Likewise.
19035 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
19037 Merge from gimple-tuples-branch:
19038 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
19040 * ada-tree.h (lang_tree_node): Handle gimple tuples.
19041 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
19042 GIMPLE_MODIFY_STMT.
19044 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
19046 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
19047 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
19050 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
19053 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
19054 if the initializer takes into account the padding.
19056 2006-11-11 Richard Guenther <rguenther@suse.de>
19058 * trans.c (maybe_stabilize_reference): Remove handling of
19059 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
19061 2006-11-05 Arnaud Charlet <charlet@adacore.com>
19064 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
19065 (To_Target_Priority): New function.
19067 2006-10-31 Robert Dewar <dewar@adacore.com>
19069 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
19070 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
19071 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
19072 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
19073 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
19074 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
19075 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
19076 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
19077 a-szbzha.adb: Minor reformatting. Fix header.
19079 * a-numaux-x86.adb: Add parentheses for use of unary minus
19080 * a-ngcefu.adb: Supply missing parentheses for unary minus
19081 * a-ngcoty.adb: Add parens for use of unary minus
19082 * a-ngelfu.adb: Add missing parens for unary minus
19083 * a-tifiio.adb: Add parentheses for uses of unary minus
19085 2006-10-31 Robert Dewar <dewar@adacore.com>
19086 Bob Duff <duff@adacore.com>
19087 Ed Schonberg <schonberg@adacore.com>
19089 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
19090 with multiplying operator.
19091 (Expected_Type_Is_Any_Real): New function to determine from the Parent
19092 pointer whether the context expects "any real type".
19093 (Resolve_Arithmetic_Op): Do not give an error on calls to the
19094 universal_fixed "*" and "/" operators when they are used in a context
19095 that expects any real type. Also set the type of the node to
19096 Universal_Real in this case, because downstream processing requires it
19097 (mainly static expression evaluation).
19098 Reword some continuation messages
19099 Add some \\ sequences to continuation messages
19100 (Resolve_Call): Refine infinite recursion case. The test has been
19101 sharpened to eliminate some false positives.
19102 Check for Current_Task usage now includes entry barrier, and is now a
19103 warning, not an error.
19104 (Resolve): If the call is ambiguous, indicate whether an interpretation
19105 is an inherited operation.
19106 (Check_Aggr): When resolving aggregates, skip associations with a box,
19107 which are priori correct, and will be replaced by an actual default
19108 expression in the course of expansion.
19109 (Resolve_Type_Conversion): Add missing support for conversion from
19110 a class-wide interface to a tagged type. Minor code cleanup.
19111 (Valid_Tagged_Converion): Add support for abstact interface type
19113 (Resolve_Selected_Component): Call Generate_Reference here rather than
19114 during analysis, and use May_Be_Lvalue to distinguish read/write.
19115 (Valid_Array_Conversion): New procedure, abstracted from
19116 Valid_Conversion, to incorporate accessibility checks for arrays of
19117 anonymous access types.
19118 (Valid_Conversion): For a conversion to a numeric type occurring in an
19119 instance or inlined body, no need to check that the operand type is
19120 numeric, since this has been checked during analysis of the template.
19121 Remove legacy test for scope name Unchecked_Conversion.
19123 * sem_res.ads: Minor reformatting
19125 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
19126 (PE_Current_Task_In_Entry_Body): New exception code
19127 (SE_Restriction_Violation): Removed, not used
19129 * a-except.ads: Update comments.
19131 * types.h, types.ads: Add definition for Validity_Check
19132 (PE_Current_Task_In_Entry_Body): New exception code
19133 (SE_Restriction_Violation): Removed, not used
19135 2006-10-31 Thomas Quinot <quinot@adacore.com>
19137 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
19140 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
19141 Jose Ruiz <ruiz@adacore.com>
19143 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
19144 part of Ada.Calendar: all subprogram raise Unimplemented.
19145 (Split_W_Offset): Temp function body, raising Unimplemented
19147 * a-calend.ads, a-calend-vms.ads:
19148 Add imported variable Invalid_TZ_Offset used to designate targets unable
19149 to support time zones.
19150 (Unimplemented): Temporary function raised by the body of new
19152 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
19153 unit provides handling of leap seconds and is used by the new Ada 2005
19154 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
19155 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
19156 version returns an extra value which is the offset to UTC.
19158 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
19159 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
19160 (Split_W_Offset): New function body.
19161 (Time_Of): When a date is close to UNIX epoch, compute the time for
19162 that date plus one day (that amount is later substracted after
19163 executing mktime) so there are no problems with time zone adjustments.
19165 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
19167 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
19168 a-catizo.ads, a-catizo.adb: New files.
19170 * impunit.adb: Add new Ada 2005 entries
19172 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
19173 Rename all occurences of "__gnat_localtime_r" to
19174 "__gnat_localtime_tzoff".
19175 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
19176 zone data and calculate the GMT offset.
19177 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
19178 Use the field "tm_gmtoff" to extract the GMT offset.
19179 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
19180 the external variable "timezone" to calculate the GMT offset.
19182 2006-10-31 Arnaud Charlet <charlet@adacore.com>
19183 Jose Ruiz <ruiz@adacore.com>
19185 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
19186 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
19187 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
19188 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
19189 System.Any_Priority to a POSIX priority on the target.
19191 * system-linux-ia64.ads:
19192 Extend range of Priority types on Linux to use the whole range made
19193 available by the system.
19195 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
19196 function maps from System.Any_Priority to a POSIX priority on the
19198 (PTHREAD_PRIO_PROTECT): Set real value.
19199 (PTHREAD_PRIO_INHERIT): Now a function.
19200 (SIGCPUFAIL): New signal.
19201 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
19202 are documented as reserved by the OS.
19204 * system-aix.ads: Use the full range of priorities provided by the
19207 * s-taprop-posix.adb: Call new function To_Target_Priority.
19208 (Set_Priority): Take into account Task_Dispatching_Policy and
19209 Priority_Specific_Dispatching pragmas when determining if Round Robin
19210 must be used for scheduling the task.
19212 * system-linux-x86_64.ads, system-linux-x86.ads,
19213 system-linux-ppc.ads: Extend range of Priority types on Linux to use
19214 the whole range made available by the system.
19216 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
19217 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
19218 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
19219 when deallocating the TCB in order to avoid potential references to
19221 (Set_Priority): Take into account Task_Dispatching_Policy and
19222 Priority_Specific_Dispatching pragmas when determining if Round Robin
19223 or FIFO within priorities must be used for scheduling the task.
19225 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
19226 the Thread field (to be used internally by the run-time system) and the
19227 kernel-level task id in the LWP field (to be used by the debugger).
19228 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
19229 instance, and propagate the current task options to the spawned task.
19230 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
19231 (Initialize): Set Round Robin dispatching when the corresponding pragma
19234 2006-10-31 Robert Dewar <dewar@adacore.com>
19236 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19237 system-linux-hppa.ads, system-hpux-ia64.ads,
19238 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
19239 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
19240 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
19241 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
19242 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
19243 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
19244 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
19245 Default_Bit_Order) to kill constant condition warnings for references
19248 2006-10-31 Vincent Celier <celier@adacore.com>
19249 Eric Botcazou <ebotcazou@adacore.com>
19251 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
19252 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
19253 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
19254 Ext_To, when building the library file name
19256 * mlib-tgt-vxworks.adb: ditto.
19257 (Get_Target_Suffix): Add support for x86 targets.
19259 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
19261 * mlib-tgt-darwin.adb:
19262 Use Append_To, instead of Ext_To, when building the library file name
19263 (Flat_Namespace): New global variable.
19264 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
19265 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
19266 (Link_Shared_Libgcc): Delete.
19267 (Build_Dynamic_Library): Adjust for above changes.
19269 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
19271 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
19273 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
19274 (Initialize): Add type conversions required by above change.
19276 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19278 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
19279 (getpid): New body for this function that uses the underlying taskIdSelf
19280 function for VxWorks 5 and VxWorks 6 in kernel mode.
19281 (unsigned_int): New type, modular to allow logical bit operations.
19282 (taskOptionsGet): New imported function.
19284 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
19285 field to be compliant with the type used by the corresponding operating
19288 2006-10-31 Pascal Obry <obry@adacore.com>
19289 Eric Botcazou <ebotcazou@adacore.com>
19290 Vincent Celier <celier@adacore.com>
19292 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
19293 ASCII version of the registry API. This is needed as the GNAT runtime
19294 is now UNICODE by default.
19296 (get_gcc_version): Do not hardcode the return value.
19297 (__gnat_file_time_name): On Windows properly set the default returned
19298 value to -1 which corresponds to Invalid_Time.
19299 (__gnat_fopen): New routine. A simple wrapper on all plateforms
19300 except on Windows where it does conversion for unicode support.
19301 (__gnat_freopen): Idem.
19302 (__gnat_locate_exec_on_path): If environment variable PATH does not
19303 exist, return a NULL pointer
19305 * adaint.h: (__gnat_fopen): Declare.
19306 (__gnat_freopen): Likewise.
19308 * mingw32.h (_tfreopen): Define this macro here for older MingW
19310 Activate the unicode support on platforms using a MingW runtime
19311 version 3.9 or newer.
19313 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
19314 This is needed for proper unicode support on Windows.
19317 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
19318 Nicolas Setton <setton@adacore.com>
19319 Olivier Hainque <hainque@adacore.com>
19320 Gary Dismukes <dismukes@adacore.com>
19322 * gigi.h: (tree_code_for_record_type): Declare.
19323 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
19324 (get_global_renaming_pointers): Rename to
19325 invalidate_global_renaming_pointers.
19326 (static_ctors): Delete.
19327 (static_dtors): Likewise.
19328 (gnat_write_global_declarations): Declare.
19329 (create_var_decl): Adjust descriptive comment to indicate that the
19330 subprogram may return a CONST_DECL node.
19331 (create_true_var_decl): Declare new function, similar to
19332 create_var_decl but forcing the creation of a VAR_DECL node.
19333 (get_global_renaming_pointers): Declare.
19334 (add_global_renaming_pointer): Likewise.
19336 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
19338 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
19339 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
19341 (gnat_to_gnu_entity): Remove From_With_Type from computation for
19343 <E_Access_Type>: Use the Non_Limited_View as the full view of the
19344 designated type if the pointer comes from a limited_with clause. Make
19345 incomplete designated type if it is in the main unit and has a freeze
19347 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
19348 Underlying_Full_View similarly. Return earlier if the full view already
19349 has an associated tree.
19350 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
19351 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
19352 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
19353 reference type built for objects with an address clause.
19354 Use create_true_var_decl with const_flag set for
19355 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
19357 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
19358 for Character and Wide_Character types. This info is read by the
19359 dwarf-2 writer, and is needed to be able to use the command "ptype
19360 character" in the debugger.
19361 (gnat_to_gnu_entity): When generating a type representing
19362 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
19363 so that debug writers can distinguish it from ordinary integers.
19364 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
19365 addition to TREE_READONLY to assert the constantness of variables for
19366 elaboration purposes.
19367 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
19368 parameters to call new Einfo function First_Formal_With_Extras.
19369 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
19370 protected type with its corresponding discriminant, to obtain a usable
19372 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
19373 for a multiple elaboration of the "equivalent" type.
19374 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
19375 into record_global_renaming_pointer.
19376 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
19377 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
19378 <E_Array_Subtype>: Likewise.
19379 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
19380 incomplete subtypes and incomplete subtypes of incomplete types visible
19381 through a limited with clause.
19382 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
19383 the base index type for the maximum size of the array only if they are
19385 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
19386 expression into a SAVE_EXPR if stabilization failed.
19388 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
19389 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
19390 by lower level compilation passes.
19391 (gnat_genericize): New function, lowering a function body to GENERIC.
19392 Turn the type of RESULT_DECL into a real reference type if the decl
19393 has been marked DECL_BY_REFERENCE, and adjust references to the latter
19395 (gnat_genericize_r): New function. Tree walking callback for
19397 (convert_from_reference, is_byref_result): New functions. Helpers for
19399 (create_type_decl): Call gnat_pushdecl before calling
19400 rest_of_decl_compilation, to make sure that field TYPE_NAME of
19401 type_decl is properly set before calling the debug information writers.
19402 (write_record_type_debug_info): The heuristics which compute the
19403 alignment of a field in a variant record might not be accurate. Add a
19404 safety test to make sure no alignment is set to a smaller value than
19405 the alignment of the field type.
19406 (make_dummy_type): Use the Non_Limited_View as the underlying type if
19407 the type comes from a limited_with clause. Do not loop on the full view.
19408 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
19409 (dummy_node_table): New global variable, moved from decl.c.
19410 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
19411 (save_gnu_tree): Use above macros.
19412 (get_gnu_tree): Likewise.
19413 (present_gnu_tree): Likewise.
19414 (init_dummy_type): New function, moved from decl.c. Use above macros.
19415 (make_dummy_type): Likewise.
19416 (tree_code_for_record_type): New function extracted from make_dummy_type
19417 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
19418 (static_ctors): Change it to a vector, make static.
19419 (static_dtors): Likewise.
19420 (end_subprog_body): Adjust for above change.
19421 (build_global_cdtor): Moved from trans.c.
19422 (gnat_write_global_declarations): Emit global constructor and
19423 destructor, and call cgraph_optimize before emitting debug info for
19424 global declarations.
19425 (global_decls): New global variable.
19426 (gnat_pushdecl): Store the global declarations in global_decls, for
19428 (gnat_write_global_declarations): Emit debug information for global
19430 (create_var_decl_1): Former create_var_decl, with an extra argument to
19431 state whether the creation of a CONST_DECL is allowed.
19432 (create_var_decl): Behavior unchanged. Now a wrapper around
19433 create_var_decl_1 allowing CONST_DECL creation.
19434 (create_true_var_decl): New function, similar to create_var_decl but
19435 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
19436 (create_field_decl): Do not always mark the field as addressable
19437 if its type is an aggregate.
19438 (global_renaming_pointers): New static variable.
19439 (add_global_renaming_pointer): New function.
19440 (get_global_renaming_pointers): Likewise.
19442 * misc.c (gnat_dwarf_name): New function.
19443 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
19444 (gnat_post_options): Add comment about structural alias analysis.
19445 (gnat_parse_file): Do not call cgraph_optimize here.
19446 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
19448 * trans.c (process_freeze_entity): Don't abort if we already have a
19449 non dummy GCC tree for a Concurrent_Record_Type, as it might
19450 legitimately have been elaborated while processing the associated
19451 Concurrent_Type prior to this explicit freeze node.
19452 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
19453 exception handler volatile if it is of variable size.
19454 (process_type): Remove bypass for types coming from a limited_with
19456 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
19457 actual, convert the corresponding gnu_actual to the real destination
19458 type when necessary.
19459 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
19460 originally TREE_READONLY but whose elaboration cannot be performed
19462 Part of fix for F504-021.
19463 (tree_transform, subprogram cases): Change loops on formal parameters to
19464 call new Einfo function First_Formal_With_Extras.
19465 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
19466 stemming from type conversion for the lhs.
19467 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
19468 number of bits per unit for components of records.
19469 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
19470 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
19471 with At_End_Proc after the SJLJ EH cleanup.
19472 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
19474 (elaborate_all_entities): Do not retest type_annotate_only.
19475 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
19476 result type of an abstract subprogram, which may be an itype associated
19477 with an anonymous access result (related to AI-318-02).
19478 (build_global_cdtor): Move to utils.c.
19479 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
19480 this choice is not a null tree nor an integer constant.
19481 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
19482 on the body of elaboration routines instead of mark_unvisited.
19483 (add_stmt): Do not mark the tree.
19484 (add_decl_expr): Tweak comment.
19485 (mark_unvisited): Delete.
19486 (unshare_save_expr): New static function.
19487 (call_to_gnu): Issue an error when making a temporary around a
19488 procedure call because of non-addressable actual parameter if the
19489 type of the formal is by_reference.
19490 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
19491 after building the elaboration routine.
19493 2006-10-31 Bob Duff <duff@adacore.com>
19495 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
19496 as finalization-started, so we can raise Program_Error on 'new'.
19498 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
19499 collection has already started.
19501 * s-finimp.ads (Collection_Finalization_Started): Added new special
19502 flag value for indicating that a collection's finalization has started.
19504 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
19505 create a task whose master has already waited for dependent tasks.
19507 2006-10-31 Robert Dewar <dewar@adacore.com>
19509 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
19511 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
19512 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
19513 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
19514 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
19515 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
19516 a-except-2005.ads: Add pragma Preelaborable_Warning
19518 2006-10-31 Robert Dewar <dewar@adacore.com>
19519 Jose Ruiz <ruiz@adacore.com>
19521 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
19523 * ali.adb (Get_Name): Properly handle scanning of wide character names
19524 encoded with brackets notation.
19525 (Known_ALI_Lines): Add S lines to this list.
19526 (Scan_ALI): Acquire S (priority specific dispatching) lines.
19527 New flag Elaborate_All_Desirable in unit table
19529 * ali.ads (Priority_Specific_Dispatching): Add this range of
19530 identifiers to be used for Priority_Specific_Dispatching table entries.
19531 (ALIs_Record): Add First_Specific_Dispatching and
19532 Last_Specific_Dispatching that point to the first and last entries
19533 respectively in the priority specific dispatching table for this unit.
19534 (Specific_Dispatching): Add this table for storing each S (priority
19535 specific dispatching) line encountered in the input ALI file.
19536 New flag Elaborate_All_Desirable in unit table
19538 * bcheck.adb: (Check_Configuration_Consistency): Add call to
19539 Check_Consistent_Dispatching_Policy.
19540 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
19541 verifying that the use of Priority_Specific_Dispatching,
19542 Task_Dispatching_Policy, and Locking_Policy is consistent across the
19545 * bindgen.adb: (Public_Version_Warning): function removed.
19546 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
19547 required information from ALI files in order to initialize the table
19548 containing the specific dispatching policy.
19549 (Gen_Adainit_Ada): Generate the variables required for priority specific
19550 dispatching entries (__gl_priority_specific_dispatching and
19551 __gl_num_specific_dispatching).
19552 (Gen_Adainit_C): Generate the variables required for priority specific
19553 dispatching entries (__gl_priority_specific_dispatching and
19554 __gl_num_specific_dispatching).
19555 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
19557 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
19558 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
19560 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
19561 a call to gnat_set_globals.
19562 Generate a string containing settings from
19563 Priority_Specific_Dispatching pragma entries.
19564 (Gen_Object_Files_Options): Do not include the runtime libraries when
19565 pragma No_Run_Time is specified.
19567 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
19568 consistency with s-intman-posix.adb.
19569 (__gnat_error_handler, case FreeBSD): Account for the fact that the
19570 handler is installed with SA_SIGINFO.
19571 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
19572 FreeBSD ZCX support, copied from Linux version.
19573 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
19574 sigfillset, and sigemptyset so the routines defined by MaRTE.
19575 (__gl_priority_specific_dispatching): Add this variable that stores the
19576 string containing priority specific dispatching policies in the
19578 (__gl_num_specific_dispatching): Add this variable that indicates the
19579 highest priority for which a priority specific dispatching pragma
19581 (__gnat_get_specific_dispatching): Add this routine that returns the
19582 priority specific dispatching policy, as set by a
19583 Priority_Specific_Dispatching pragma appearing anywhere in the current
19584 partition. The input argument is the priority number, and the result
19585 is the upper case first character of the policy name.
19586 (__gnat_set_globals): Now a dummy function.
19587 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
19588 mechargs instead of sigargs, as the latter can be retrieved from the
19589 former and sigargs is not what we want on ia64.
19590 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
19592 (__gnat_adjust_context_for_raise, ia64-vms): New function.
19593 (tasking_error): Remove unused symbol.
19594 (_abort_signal): Move this symbol to the IRIX specific part since this
19595 is the only target that uses this definition.
19596 (Check_Abort_Status): Move this symbol to the IRIX specific part since
19597 this is the only target that uses this definition.
19598 (Lock_Task): Remove unused symbol.
19599 (Unlock_Task): Remove unused symbol.
19601 * lib-writ.adb (Write_ALI): Output new S lines for
19602 Priority_Specific_Dispatching pragmas.
19603 Implement new flag BD for elaborate body desirable
19605 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
19606 (Specific_Dispatching): Add this table for storing the entries
19607 corresponding to Priority_Specific_Dispatching pragmas.
19608 Document new BD flag for elaborate body desirable
19610 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
19613 2006-10-31 Javier Miranda <miranda@adacore.com>
19615 * a-tags.ads, a-tags.adb:
19616 (Predefined_DT): New function that improves readability of the code.
19617 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
19618 Inherit_DT): Use the new function Predefined_DT to improve code
19620 (Register_Interface_Tag): Update assertion.
19621 (Set_Interface_Table): Update assertion.
19622 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
19623 determining progenitor interfaces in Tags.
19624 (Inherit_CPP_DT): New subprogram.
19626 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
19627 analysis of the thunk code.
19628 (Expand_Interface_Conversion): Handle run-time conversion of
19629 access to class wide types.
19630 (Expand_Dispatching_Call): When generating the profile for the
19631 subprogram itype for a dispatching operation, properly terminate the
19632 formal parameters chaind list (set the Next_Entity of the last formal
19634 (Collect_All_Interfaces): Removed. This routine has been moved to
19635 sem_util and renamed as Collect_All_Abstract_Interfaces.
19636 (Set_All_DT_Position): Hidden entities associated with abstract
19637 interface primitives are not taken into account in the check for
19638 3.9.3(10); this check is done with the aliased entity.
19639 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
19640 interfacing with CPP by default.
19641 (Expand_Interface_Conversion): Add missing support for static conversion
19642 from an interface to a tagged type.
19643 (Collect_All_Interfaces): Add new out formal containing the list of
19644 abstract interface types to cleanup the subprogram Make_DT.
19645 (Make_DT): Update the code to generate the table of interfaces in case
19646 of abstract interface types.
19647 (Is_Predefined_Dispatching_Alias): New function that returns true if
19648 a primitive is not a predefined dispatching primitive but it is an
19649 alias of a predefined dispatching primitive.
19650 (Make_DT): If the ancestor of the type is a CPP_Class and we are
19651 compiling under full ABI compatibility mode we avoid the generation of
19652 calls to run-time services that fill the dispatch tables because under
19653 this mode we currently inherit the dispatch tables in the IP subprogram.
19654 (Write_DT): Emit an "is null" indication for a null procedure primitive.
19655 (Expand_Interface_Conversion): Use an address as the type of the formal
19656 of the internally built function that handles the case in which the
19657 target type is an access type.
19659 2006-10-31 Robert Dewar <dewar@adacore.com>
19661 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
19663 2006-10-31 Robert Dewar <dewar@adacore.com>
19665 * bindusg.ads, bindusg.adb:
19666 Change to package and rename procedure as Display, which
19667 now ensures that it only outputs usage information once.
19669 2006-10-31 Jose Ruiz <ruiz@adacore.com>
19671 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
19674 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
19677 2006-10-31 Robert Dewar <dewar@adacore.com>
19678 Ed Schonberg <schonberg@adacore.com>
19680 * treepr.adb: Use new subtype N_Membership_Test
19682 * checks.ads, checks.adb: Add definition for Validity_Check
19683 (Range_Or_Validity_Checks_Suppressed): New function
19684 (Ensure_Valid): Test Validity_Check suppressed
19685 (Insert_Valid_Check): Test Validity_Check suppressed
19686 (Insert_Valid_Check): Preserve Do_Range_Check flag
19687 (Validity_Check_Range): New procedure
19688 (Expr_Known_Valid): Result of membership test is always valid
19689 (Selected_Range_Checks): Range checks cannot be applied to discriminants
19690 by themselves. Disabling those checks must also be done for task types,
19691 where discriminants may be used for the bounds of entry families.
19692 (Apply_Address_Clause_Check): Remove side-effects if address expression
19693 is non-static and is not the name of a declared constant.
19694 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
19695 Code cleanup and new error messages.
19696 (Enable_Range_Check): Test for some cases of suppressed checks
19697 (Generate_Index_Checks): Suppress index checks if index checks are
19698 suppressed for array object or array type.
19699 (Apply_Selected_Length_Checks): Give warning for compile-time detected
19700 length check failure, even if checks are off.
19701 (Ensure_Valid): Do not generate a check on an indexed component whose
19702 prefix is a packed boolean array.
19703 * checks.adb: (Alignment_Checks_Suppressed): New function
19704 (Apply_Address_Clause_Check): New procedure, this is a completely
19705 rewritten replacement for Apply_Alignment_Check
19706 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
19707 we request a discriminal value only in case of discriminants.
19708 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
19709 assignments where the target subtype is unconstrained and the target
19710 object is a parameter or dereference (other aliased cases are known
19711 to be unconstrained).
19713 2006-10-31 Robert Dewar <dewar@adacore.com>
19715 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
19716 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
19717 vms_conv.adb: Fix bad table increment values (much too small)
19719 * table.adb (Realloc): Make sure we get at least some new elements
19720 Defends against silly small values for table increment
19722 2006-10-31 Robert Dewar <dewar@adacore.com>
19723 Ed Schonberg <schonberg@adacore.com>
19724 Bob Duff <duff@adacore.com>
19726 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
19727 entities. Move other fields around to make this possible
19728 (Is_Derived_Type): Add missing call to Is_Type.
19729 (Extra_Formals): New function for subprograms, entries, subprogram
19731 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
19732 (First_Formal_With_Extras): New function for subprogs, entries, subp
19734 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
19735 Add node information for E_Return_Statement.
19736 (Elaborate_Body_Desirable): New flag
19737 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
19738 to be Is_Inherently_Limited_Type, because return-by-reference has
19739 no meaning in Ada 2005.
19740 (E_Return_Statement): New entity kind.
19741 (Return_Applies_To): Field of E_Return_Statement.
19742 (Is_Return_Object): New flag in object entities.
19743 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
19744 (Must_Have_Preelab_Init): New flag
19745 (Known_To_Have_Preelab_Init): New flag
19746 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
19747 (Is_Visible_Formal): New flag on entities in formal packages.
19748 (Low_Bound_Known): New flag
19749 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
19751 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
19752 output when Id is an incomplete subtype.
19754 2006-10-31 Robert Dewar <dewar@adacore.com>
19756 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
19757 Avoid abbreviation Creat
19758 (Finalize): List all sources in extended mail source if -gnatl
19760 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
19761 (Finalize): Implement new -gnatl=xxx switch to output listing to file
19762 (Set_Specific_Warning_On): New procedure
19763 (Set_Specific_Warning_Off): New procedure
19764 Add implementation of new insertion \\
19765 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
19766 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
19768 (Error_Msg_Internal): Make sure that we set Last_Killed to
19769 True when a message from another package is suppressed.
19770 Implement insertion character ~ (insert string)
19771 (First_Node): Minor adjustments to get better placement.
19774 Implement new -gnatl=xxx switch to output listing to file
19777 Implement new -gnatl=xxx switch to output listing to file
19779 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
19780 (Commands_To_Stdout): New flag
19781 Implement new -gnatl=xxx switch to output listing to file
19782 New switch Dump_Source_Text
19783 (Warn_On_Deleted_Code): New warning flag for -gnatwt
19784 Define Error_Msg_Line_Length
19785 (Warn_On_Assumed_Low_Bound): New switch
19787 * osint.ads, osint.adb
19788 (Normalize_Directory_Name): Fix bug.
19789 Implement new -gnatl=xxx switch to output listing to file
19790 (Concat): Removed, replaced by real concatenation
19791 Make use of concatenation now allowed in compiler
19792 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
19793 we find the 'lib' or 'bin' directory even when the tool has been
19794 invoked with a relative path.
19795 (Executable_Name): New function taking string parameters.
19797 * osint-c.ads, osint-c.adb:
19798 Implement new -gnatl=xxx switch to output listing to file
19800 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
19803 Implement new -gnatl=xxx switch to output listing to file
19804 Recognize new -gnatL switch
19805 (no longer keep in old warning about old style usage)
19806 Use concatenation to simplify code
19807 Recognize -gnatjnn switch
19808 (Scan_Front_End_Switches): Clean up handling of -gnatW
19809 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
19811 2006-10-31 Robert Dewar <dewar@adacore.com>
19813 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
19814 (Set_Specific_Warning_Off): New procedure
19815 (Warning_Specifically_Suppressed): New function
19816 (Validate_Specific_Warnings): New procedure
19817 (Output_Msg_Text): Complete rewrite to support -gnatjnn
19819 * err_vars.ads: Implement insertion character ~ (insert string)
19821 2006-10-31 Bob Duff <duff@adacore.com>
19822 Ed Schonberg <schonberg@adacore.com>
19824 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
19825 the parent part is a build-in-place function call, generate assignments.
19826 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
19827 are build-in-place function calls.
19828 (Replace_Self_Reference): New subsidiary of
19829 Make_OK_Assignment_Statement, to replace an access attribute that is a
19830 self-reference into an access to the appropriate component of the
19831 target object. Generalizes previous mechanism to handle self-references
19832 nested at any level.
19833 (Is_Self_Referential_Init): Remove, not needed.
19834 (Is_Self_Referential_Init): New predicate to simplify handling of self
19835 referential components in record aggregates.
19836 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
19837 check for presence of entity before checking for self-reference.
19838 (Has_Default_Init_Comps): Return True if a component association is a
19839 self-reference to the enclosing type, which can only come from a
19840 default initialization.
19841 (Make_OK_Assignment_Statement): If the expression is of the form
19842 Typ'Acc, where Acc is an access attribute, the expression comes from a
19843 default initialized self-referential component.
19844 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
19845 that has been derived from several abstract interfaces we must also
19846 initialize the tags of the secondary dispatch tables.
19848 2006-10-31 Ed Schonberg <schonberg@adacore.com>
19849 Thomas Quinot <quinot@adacore.com>
19850 Javier Miranda <miranda@adacore.com>
19851 Robert Dewar <dewar@adacore.com>
19854 (Expand_Access_To_Protected_Op): If the context indicates that an access
19855 to a local operation may be transfered outside of the object, create an
19856 access to the wrapper operation that must be used in an external call.
19857 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
19858 target, pass the Valid attribute applied to a floating-point prefix on
19859 to the back end without expansion.
19860 (Storage_Size): Use the new run-time function Storage_Size to retrieve
19861 the allocated storage when it is specified by a per-object expression.
19862 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
19863 Nothing to do here, the attribute has been rewritten during semantic
19865 (Expand_Attribute_Reference): Handle expansion of the new Priority
19867 (Find_Fat_Info): Handle case of universal real
19868 (Expand_Access_To_Protected_Op): Fix use of access to protected
19869 subprogram from inside the body of a protected entry.
19870 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
19871 'Access and 'Unrestricted_Access, to transform the attribute reference
19872 into a fat pointer.
19873 (Is_Constrained_Aliased_View): New predicate to help determine whether a
19874 subcomponent's enclosing variable is aliased with a constrained subtype.
19875 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
19876 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
19877 an aliased prefix must be known to be constrained in order to use True
19878 for the attribute value, and now it's possible for some aliased views
19879 to be unconstrained.
19881 2006-10-31 Robert Dewar <dewar@adacore.com>
19883 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
19884 (Expand_Entity_Reference): Correct error of not handling subprogram
19885 formals in current_value processing.
19887 2006-10-31 Javier Miranda <miranda@adacore.com>
19888 Robert Dewar <dewar@adacore.com>
19889 Ed Schonberg <schonberg@adacore.com>
19890 Gary Dismukes <dismukes@adacore.com>
19892 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
19893 register in the final list objects containing class-wide interfaces;
19894 otherwise we incorrectly register the tag of the interface in the final
19896 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
19897 generate the wrapper if the parent primitive is abstract. This is
19898 required to report the correct error message.
19899 (Expand_N_Subtype_Indication): Do validity checks on range
19900 (Clean_Task_Names): If an initialization procedure includes a call to
19901 initialize a task (sub)component, indicate that the procedure will use
19902 the secondary stack.
19903 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
19904 compatibility for interfacing with CPP by default.
19905 (Expand_N_Object_Declaration): Only build an Adjust call when the
19906 object's type is a nonlimited controlled type.
19907 * exp_ch3.adb: Add with and use of Exp_Ch6.
19908 (Expand_N_Object_Declaration): Check for object initialization that is a
19909 call to build-in-place function and apply Make_Build_In_Place_Call_In_
19910 Object_Declaration to the call.
19911 (Freeze_Type): When the designated type of an RACW was not frozen at the
19912 point where the RACW was declared, validate the primitive operations
19913 with respect to E.2.2(14) when it finally is frozen.
19914 (Build_Initialization_Call,Expand_Record_Controller): Rename
19915 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
19916 return-by-reference has no meaning in Ada 2005.
19917 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
19918 to register tag of the immediate ancestor interfaces in the
19919 run-time structure.
19920 (Init_Secondary_Tags): Moved to the specification to allow the
19921 initialization of extension aggregates with abstract interfaces.
19922 (Build_Master_Renaming): Make public, for use by function declarations
19923 whose return type is an anonymous access type.
19924 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
19925 Insert_List_Before_And_Analyze after the generation of the specs
19926 associated with null procedures.
19927 (Expand_Tagged_Root): Update documentation in its specification.
19928 (Init_Secondary_Tags): Update documentation.
19929 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
19930 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
19931 then generate code to inherit the contents of the dispatch table
19932 directly from the ancestor.
19933 (Expand_Record_Controller): Insert controller component after tags of
19934 implemented interfaces.
19935 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
19936 create null procedure overridings when null procedures are inherited
19938 (Make_Null_Procedure_Specs): New procedure to generate null procedure
19939 declarations for overriding null primitives inherited from interfaces.
19940 (Is_Null_Interface_Procedure): New function in
19941 Make_Null_Procedure_Specs.
19942 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
19943 immediate ancestor of a tagged type is an abstract interface type we
19944 must generate the specification of the predefined primitives associated
19945 with controlled types (because the dispatch table of the ancestor is
19946 null and hence these entries cannot be inherited). This is required to
19947 elaborate well the dispatch table.
19949 2006-10-31 Javier Miranda <miranda@adacore.com>
19950 Ed Schonberg <schonberg@adacore.com>
19951 Bob Duff <duff@adacore.com>
19952 Gary Dismukes <dismukes@adacore.com>
19953 Robert Dewar <dewar@adacore.com>
19955 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
19957 (Expand_N_In): Do validity checks on range
19958 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
19959 (Expand_N_Allocator): For "new T", if the object is constrained by
19960 discriminant defaults, allocate the right amount of memory, rather than
19961 the maximum for type T.
19962 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
19963 when the allocator is initialized by a build-in-place call, since the
19964 allocator is already rewritten as a reference to the function result,
19965 and this prevents an unwanted duplication of the function call.
19966 Add with and use of Exp_Ch6.
19967 (Expand_Allocator_Expresssion): Check for an allocator whose expression
19968 is a call to build-in-place function and apply
19969 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
19970 untagged designated types).
19971 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
19972 optimization if source or target is biased.
19973 (Expand_N_Allocator): Add comments for case of an allocator within a
19974 function that returns an anonymous access type designating tasks.
19975 (Expand_N_Allocator): apply discriminant checks for access
19976 discriminants of anonymous access types (AI-402, AI-416)
19978 2006-10-31 Bob Duff <duff@adacore.com>
19979 Robert Dewar <dewar@adacore.com>
19980 Gary Dismukes <dismukes@adacore.com>
19981 Ed Schonberg <schonberg@adacore.com>
19983 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
19985 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
19986 (Expand_N_Assignment_Statement): Call
19987 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
19988 build-in-place function call. Currently, this can happen only for
19989 assignments that come from aggregates.
19990 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
19991 in order to alleviate the upward compatibility introduced by AI-318.
19992 (Expand_N_Extended_Return_Statement): Add support for handling the
19993 return object as a build-in-place result.
19994 (Expand_Non_Function_Return): Implement simple return statements nested
19995 within an extended return.
19996 (Enable_New_Return_Processing): Turn on the new processing of return
19998 (Expand_Non_Function_Return): For a return within an extended return,
19999 don't raise Program_Error, because Sem_Ch6 now gives a warning.
20000 (Expand_N_Extended_Return_Statement): Implement AI-318
20001 (Expand_Simple_Function_Return): Ditto.
20002 (Expand_N_If_Statement): Handle new -gnatwt warning
20003 (Expand_N_Case_Statement): Handle new -gnatwt warning
20004 (Expand_N_Assignment): Handle assignment to the Priority attribute of
20005 a protected object.
20006 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
20007 validity checking of assignments to elementary record components.
20008 (Expand_N_Return_Statement): return Class Wide types on the secondary
20009 stack independantly of their controlled status since with HIE runtimes,
20010 class wide types are not potentially controlled anymore.
20012 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
20015 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
20016 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
20017 it expects a block, procedure, or task. The return statement will get
20018 turned into a block, and Expand_Cleanup_Actions will happen then.
20020 2006-10-31 Robert Dewar <dewar@adacore.com>
20021 Ed Schonberg <schonberg@adacore.com>
20022 Bob Duff <duff@adacore.com>
20023 Gary Dismukes <dismukes@adacore.com>
20025 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
20027 (Expand_Inlined_Call): Tagged types are by-reference types, and
20028 therefore should be replaced by a renaming declaration in the expanded
20029 body, as is done for limited types.
20030 (Expand_Call): If this is a call to a function with dispatching access
20031 result, propagate tag from context.
20032 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
20034 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
20035 build-in-place when the right-hand side of an assignment is a
20036 build-in-place function call.
20037 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
20038 of the explicit dereference of the allocator to the result subtype of
20039 the build-in-place function. This is needed to satisfy type checking
20040 in cases where the caller's return object is created by an allocator for
20041 a class-wide access type and the type named in the allocator is a
20043 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
20044 conversion of the reference to the declared object to the result subtype
20045 of the build-in-place function. This is needed to satisfy type checking
20046 in cases where the declared object has a class-wide type. Also, in the
20047 class-wide case, change the type of the object entity to the specific
20048 result subtype of the function, to avoid passing a class-wide object
20049 without explicit initialization to the back end.
20050 (Register_Interface_DT_Entry): Moved outside the body of
20051 Freeze_Subprogram because this routine is now public; it is called from
20052 Check_Dispatching_Overriding to handle late overriding of abstract
20053 interface primitives.
20054 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
20055 adding an implicit access actual on a call to a build-in-place function.
20056 (Expand_Actuals): Test for an actual parameter that is a call to a
20057 build-in-place function and apply
20058 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
20059 (Is_Build_In_Place_Function): New function to determine whether an
20060 entity is a function whose calls should be handled as build-in-place.
20061 (Is_Build_In_Place_Function_Call): New function to determine whether an
20062 expression is a function call that should handled as build-in-place.
20063 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
20064 calls to build-in-place functions as the initialization of an allocator.
20065 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
20066 handling calls to build-in-place functions in contexts that do not
20067 involve init of a separate object (for example, actuals of subprogram
20069 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
20070 handling calls to build-in-place functions as the initialization of an
20071 object declaration.
20072 (Detect_Infinite_Recursion): Add explicit parameter Process to
20073 instantiation of Traverse_Body to avoid unreferenced warning.
20074 (Check_Overriding_Inherited_Interfaces): Removed.
20075 (Register_Interface_DT_Entry): Code cleanup.
20076 (Register_Predefined_DT_Entry): Code cleanup.
20077 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
20078 inlined statements if within a transient scope.
20079 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
20080 formal parameters with occurrences of actuals in inlined body, establish
20081 visibility on the proper view of the actual's subtype for the body's
20083 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
20084 compatibility mode and we have an imported CPP subprogram because
20085 for now we assume that imported CPP primitives correspond with
20086 objects whose constructor is in the CPP side (and therefore we
20087 don't need to generate code to register them in the dispatch table).
20088 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
20089 aligned selected component.
20090 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
20091 the actual of an in-mode parameter is a type conversion.
20092 (Expand_Actuals): If the call does not come from source and the actual
20093 is potentially misaligned, let gigi handle it rather than rejecting the
20094 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
20095 Class Wide types as returning by reference independantly of their
20096 controlled status since with HIE runtimes class wide types are not
20097 potentially controlled anymore.
20099 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20101 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
20102 references that are private components of the protected object.
20103 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
20104 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
20105 instantiation to deal with warnings.
20106 (Initialize_Protection): If expression for priority is non-static, use
20107 System_Priority as its expected type, in case the expression has not
20110 2006-10-31 Robert Dewar <dewar@adacore.com>
20112 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
20113 initialization of Homonym_Len.
20114 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
20115 names from fully qualified name. Fixes problem of duplicate
20116 external names differing only in the presence of such a block name.
20118 2006-10-31 Thomas Quinot <quinot@adacore.com>
20119 Pablo Oliveira <oliveira@adacore.com>
20121 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
20122 subprogram Ids, even if they are not yet assigned.
20123 (Build_Subprogram_Id): It is now this function that will take care of
20124 calling Assign_Subprogram_Ids if necessary.
20125 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
20126 should be done only once they are assigned.
20127 (Build_From_Any_Function, case of tagged types): Add missing call to
20129 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
20130 type for an RACW type.
20131 (Add_RACW_Features): When processing an RACW declaration for which the
20132 designated type is already frozen, enforce E.2.2(14) rules immediately.
20133 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
20134 special reordering of controlling formals.
20136 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
20137 associated stub type for an RACW type.
20139 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20141 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
20142 fixed-point operations in an integer context, i.e. as operands of a
20143 conversion to an integer type, indicate that result must be rounded.
20145 2006-10-31 Robert Dewar <dewar@adacore.com>
20147 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
20148 cases, pass the encoding method, since it is now required by the run
20151 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
20152 assumption that Str'First = 1.
20153 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
20154 it on to the Value_Wide_Wide_Character call.
20155 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
20156 properly handles a string of the form quote-encoded_wide_char-quote.
20158 * s-wchcnv.adb: Minor reformatting
20160 2006-10-31 Javier Miranda <miranda@adacore.com>
20162 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
20163 run-time membership test to ensure that the constructed object
20164 implements the target abstract interface.
20166 2006-10-31 Robert Dewar <dewar@adacore.com>
20168 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
20169 Machine_Attribute pragma internally to implement the user pragma.
20170 Add processing for pragma Interface so that it is now completely
20171 equivalent to pragma Import.
20173 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
20174 so that it can be applied to all entities, including record components
20175 and enumeration literals.
20176 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
20177 priority ranges are correct, verify compatibility against task
20178 dispatching and locking policies, and if everything is correct an entry
20179 is added to the table containing priority specific dispatching entries
20180 for this compilation unit.
20181 (Delay_Config_Pragma_Analyze): Delay processing
20182 Priority_Specific_Dispatching pragmas because when processing the
20183 pragma we need to access run-time data, such as the range of
20184 System.Any_Priority.
20185 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
20186 Allow pragma Unreferenced as a context item
20187 Add pragma Preelaborable_Initialization
20188 (Analyze_Pragma, case Interface): Interface is extended so that it is
20189 now syntactically and semantically equivalent to Import.
20190 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
20191 insertion characters.
20192 Add handling for Pragma_Wide_Character_Encoding
20193 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
20194 never supercedes a real restriction, and that a real restriction
20195 always supercedes a warning.
20196 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
20199 2006-10-31 Bob Duff <duff@adacore.com>
20200 Ed Schonberg <schonberg@adacore.com>
20201 Robert Dewar <dewar@adacore.com>
20203 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
20204 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
20205 Is_Inherently_Limited_Type, because return-by-reference has no meaning
20207 (Find_Node_To_Be_Wrapped): Use new method of determining the result
20208 type of the function containing a return statement, because the
20209 Return_Type field was removed. We now use the Return_Applies_To field.
20211 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
20212 (Build_Task_Image_Decl): If procedure is not called from an
20213 initialization procedure, indicate that function that builds task name
20214 uses the sec. stack. Otherwise the enclosing initialization procedure
20215 will carry the indication.
20216 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
20217 N_Object_Declaration instead.
20218 (Kill_Dead_Code): New interface to implement -gnatwt warning for
20219 conditional dead code killed, and change implementation accordingly.
20220 (Insert_Actions): Add N_Return_Object_Declaration case.
20221 Correct comment to mention N_Extension_Aggregate node.
20222 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
20223 attempts to save information for global variables which cannot be
20225 (Get_Current_Value_Condition): Handle conditions the other way round
20226 (constant on left). Also handle right operand of AND and AND THEN
20227 (Set_Current_Value_Condition): Corresponding changes
20228 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
20229 (Get_Current_Value_Condition): Handle simple boolean operands
20230 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
20231 (Get_Current_Value_Condition): If the variable reference is within an
20232 if-statement, does not appear in the list of then_statments, and does
20233 not come from source, treat it as being at unknown location.
20234 (Get_Current_Value_Condition): Enhance to allow while statements to be
20235 processed as well as if statements.
20236 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
20238 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
20239 of loop. This is safe now that we fixed Kill_Current_Values.
20240 (OK_To_Do_Constant_Replacement): Check whether current scope is
20241 Standard, before examining outer scopes.
20243 2006-10-31 Vincent Celier <celier@adacore.com>
20245 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
20246 When True, apply VMS treatment to children of packages A, G, I and S.
20249 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
20251 2006-10-31 Robert Dewar <dewar@adacore.com>
20252 Ed Schonberg <schonberg@adacore.com>
20254 * freeze.adb: Add handling of Last_Assignment field
20255 (Warn_Overlay): Supply missing continuation marks in error msgs
20256 (Freeze_Entity): Add check for Preelaborable_Initialization
20258 * g-comlin.adb: Add Warnings (Off) to prevent new warning
20260 * g-expect.adb: Add Warnings (Off) to prevent new warning
20262 * lib-xref.adb: Add handling of Last_Assignment field
20263 (Generate_Reference): Centralize handling of pragma Obsolescent here
20264 (Generate_Reference): Accept an implicit reference generated for a
20265 default in an instance.
20266 (Generate_Reference): Accept a reference for a node that is not in the
20267 main unit, if it is the generic body corresponding to an subprogram
20270 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
20272 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
20274 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
20276 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
20277 use clauses, to avoid messages on packages used to qualify, and also
20278 to avoid messages from obsolescent units.
20279 (Warn_On_Useless_Assignments): Don't generate messages for imported
20280 and exported variables.
20281 (Warn_On_Useless_Assignments): New procedure
20282 (Output_Obsolescent_Entity_Warnings): New procedure
20283 (Check_Code_Statement): New procedure
20285 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
20286 Change name Is_Ada_2005 to Is_Ada_2005_Only
20287 (Last_Assignment): New field for useless assignment warning
20289 2006-10-31 Olivier Hainque <hainque@adacore.com>
20291 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
20292 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
20294 2006-10-31 Bob Duff <duff@adacore.com>
20295 Robert Dewar <dewar@adacore.com>
20296 Ed Schonberg <schonberg@adacore.com>
20298 * g-awk.adb (Default_Session, Current_Session): Compile this file in
20299 Ada 95 mode, because it violates the new rules for AI-318.
20301 * g-awk.ads: Use overloaded subprograms in every case where we used to
20302 have a default of Current_Session. This makes the code closer to be
20303 correct for both Ada 95 and 2005.
20305 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
20306 code, relying on the fact that the compiler generates a warning
20307 instead of an error in -gnatg mode.
20309 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
20310 E_Return_Statement entity kind.
20311 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
20313 * par.adb (P_Interface_Type_Definition): Addition of one formal to
20314 report an error if the reserved word abstract has been previously found.
20315 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
20317 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
20318 parenthesized range attribute usage
20319 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
20321 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
20322 in the syntax for extended_return_statement. This is not in the latest
20323 RM, but the ARG is expected to issue an AI allowing this.
20324 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
20325 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
20326 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
20327 P_Return_Statement): Parse the new syntax for extended_return_statement.
20329 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
20330 Output_End_Missing): Add error-recovery code for the new
20331 extended_return_statement syntax; that is, the new E_Return entry on
20334 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
20335 limited to nonlimited, because otherwise we violate the new Ada 2005
20336 rules about returning limited types in function Create_AST_Handler in
20339 * sem.adb (Analyze): Add cases for new node kinds
20340 N_Extended_Return_Statement and N_Return_Object_Declaration.
20342 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
20343 type is in the same category as type of context before applying check,
20344 to prevent anomalies in instantiations.
20345 (Resolve_Aggregate): Remove test for limited components in aggregates.
20346 It's unnecessary in Ada 95, because if it has limited components, then
20347 it must be limited. It's wrong in Ada 2005, because limited aggregates
20349 (Resolve_Record_Aggregate): Move check for limited types later, because
20350 OK_For_Limited_Init requires its argument to have been resolved.
20351 (Get_Value): When copying the component default expression for a
20352 defaulted association in an aggregate, use the sloc of the aggregate
20353 and not that of the original expression, to prevent spurious
20354 elaboration errors, when the expression includes function calls.
20355 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
20356 were missing. We also didn't handle qualified expressions. Now also
20357 allow function calls. Use new common routine OK_For_Limited_Init.
20358 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
20359 with space can upper case letter).
20361 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
20362 Has_Static_Discriminants flag
20363 (Record_Type_Declaration): Diagnose an attempt to declare an interface
20364 type with discriminants.
20365 (Process_Range_Expr_In_Decl): Do validity checks on range
20366 (Build_Discriminant_Constraints): Use updated form of
20367 Denotes_Discriminant.
20368 (Process_Subtype): If the subtype is a private subtype whose full view
20369 is a concurrent subtype, introduce an itype reference to prevent scope
20371 (Build_Derived_Record_Type, Collect_Interface_Primitives,
20372 Record_Type_Declaration): The functionality of the subprograms
20373 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
20374 is now performed by a single routine.
20375 (Build_Derived_Record_Type): If the type definition includes an explicit
20376 indication of limitedness, then the type must be marked as limited here
20377 to ensure that any access discriminants will not be treated as having
20378 a local anonymous access type.
20379 (Check_Abstract_Overriding): Issue a detailed error message when an
20380 abstract subprogram was not overridden due to incorrect mode of its
20382 (Analyze_Private_Extension_Declaration): Add support for the analysis of
20383 synchronized private extension declarations. Verify that the ancestor is
20384 a limited or synchronized interface or in the generic case, the ancestor
20385 is a tagged limited type or synchronized interface and all progenitors
20386 are either limited or synchronized interfaces.
20387 Derived_Type_Declaration): Check for presence of private extension when
20388 dealing with synchronized formal derived types.
20389 Process_Full_View): Enchance the check done on the usage of "limited" by
20390 testing whether the private view is synchronized.
20391 Verify that a synchronized private view is completed by a protected or
20393 (OK_For_Limited_Init_In_05): New function.
20394 (Analyze_Object_Declaration): Move check for limited types later,
20395 because OK_For_Limited_Init requires its argument to have been resolved.
20396 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20397 in order to alleviate the upward compatibility introduced by AI-318.
20398 (Constrain_Corresponding_Record): If the constraint is for a component
20399 subtype, mark the itype as frozen, to avoid out-of-scope references to
20400 discriminants in the back-end.
20401 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
20402 this subprogram against wrong sources.
20403 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
20404 discriminant of limited type completed with a protected type, when the
20405 discriminant is used to constrain a private component of the type, and
20406 expansion is disabled.
20407 (Find_Type_Of_Object): Do not treat a return subtype that is an
20408 anonymous subtype as a local_anonymous_type, because its accessibility
20409 level is the return type of the enclosing function.
20410 (Check_Initialization): In -gnatg mode, turn the error "cannot
20411 initialize entities of limited type" into a warning.
20412 (OK_For_Limited_Init): Return true for generated nodes, since it
20413 sometimes violates the legality rules.
20414 (Make_Incomplete_Declaration): If the type for which an incomplete
20415 declaration is created happens to be the currently visible entity,
20416 preserve the homonym chain when removing it from visibility.
20417 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
20418 inherited subprograms.
20419 (Access_Definition): If this is an access to function that is the return
20420 type of an access_to_function definition, context is a type declaration
20421 and the scope of the anonymous type is the current one.
20422 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
20423 incomplete subtype to the set of private dependents of the original
20425 (Constrain_Discriminated_Type): Emit an error message whenever an
20426 incomplete subtype is being constrained.
20427 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
20428 corresponding subtype of the full view of the original incomplete type.
20429 (Check_Incomplete): Properly detect invalid usage of incomplete types
20432 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20434 * g-catiio.ads, g-catiio.adb (Value): New function.
20435 Given an input String, try and parse a valid Time value.
20437 2006-10-31 Vincent Celier <celier@adacore.com>
20439 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
20440 Integer_Address arithmetic, as in Set_Valid.
20442 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20443 Robert Dewar <dewar@adacore.com>
20445 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
20446 handling executable extension manually and duplicating code.
20448 * make.adb: Implement new -S switch
20449 (Gnatmake): Use new function Osint.Executable_Name instead
20450 of handling executable extension manually.
20452 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
20453 is specified, the executable name ends with this suffix.
20454 Take advantage of Osint.Executable_Name instead of duplicating code.
20456 * switch-m.adb: Recognize new gnatmake -S switch
20458 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
20460 (Get_Target_Parameters): Set Executable_Extension_On_Target if
20463 * makeusg.adb: Add line for gnatmake -S switch
20465 2006-10-31 Vincent Celier <celier@adacore.com>
20467 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
20468 call it with -static-libgcc, as there are some platforms, such as
20469 Darwin, where one of these two switches is compulsory to link.
20471 2006-10-31 Vincent Celier <celier@adacore.com>
20473 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
20474 instead of ADA_PROJECT_PATH, for the project path.
20475 (Gnatls): When displaying the project path directories, use host dir
20478 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
20479 names in the project path, as absolute paths may correspond to
20480 multi-valued VMS logical names.
20482 2006-10-31 Vincent Celier <celier@adacore.com>
20484 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
20485 absolute path name.
20486 (Locate_Regular_File): Ditto
20487 (Change_Dir): Remove, no longer used
20488 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
20489 on Windows. Get it calling Get_Current_Dir.
20490 (OpenVMS): Remove imported boolean, no longer needed.
20491 (Normalize_Pathname)[VMS]: Do not resolve directory names.
20492 (Pid_To_Integer): New function to convert a Process_Id to Integer
20494 2006-10-31 Thomas Quinot <quinot@adacore.com>
20496 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
20497 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
20499 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
20502 2006-10-31 Robert Dewar <dewar@adacore.com>
20504 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
20505 initial letter o as a zero.
20507 2006-10-31 Robert Dewar <dewar@adacore.com>
20509 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
20511 2006-10-31 Robert Dewar <dewar@adacore.com>
20513 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
20515 (Layout_Variant_Record): Retrieve the discriminants from the entity
20516 rather than from the type definition, because in the case of a full
20517 type for a private type we need to take the discriminants from the
20519 (Layout_Component_List): When applying the Max operator to variants with
20520 a nonstatic size, check whether either operand is static and scale that
20521 operand from bits to storage units before applying Max.
20522 (Layout_Type): In VMS, if a C-convention access type has no explicit
20523 size clause (and does not inherit one in the case of a derived type),
20524 then the size is reset to 32 from 64.
20526 2006-10-31 Vincent Celier <celier@adacore.com>
20528 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
20529 its file has already been loaded, according to the unit being loaded,
20530 not to the current value of Multiple_Unit_Index.
20532 2006-10-31 Thomas Quinot <quinot@adacore.com>
20533 Eric Botcazou <ebotcazou@adacore.com>
20534 Arnaud Charlet <charlet@adacore.com>
20536 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
20537 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
20539 (a-except.o): Pass it to the compiler.
20540 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
20541 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
20542 a-calend-mingw.adb version.
20544 * Makefile.rtl: Added s-dsaser.
20545 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
20546 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
20547 Ada.Dispatching.Round_Robin.
20548 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
20550 * Make-lang.in: Remove all references to gt-ada-decl.h.
20551 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
20553 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
20554 Update dependencies.
20556 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
20558 2006-10-31 Vincent Celier <celier@adacore.com>
20560 * mlib-utl.adb (Initialized): Remove, no longer used
20561 (Initialize): Remove, no longer used
20562 (Ar): If Ar_Exec is null, get the location of the archive builder and,
20563 if there is one, the archive indexer. Fail if the archive builder cannot
20565 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
20568 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20570 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
20571 Process_Body_Clauses): If the context of a body includes a use clause
20572 for P.Q then a with_clause for P in the same body is not redundant,
20573 even if the spec also has a with_clause on P.
20574 Add missing continuation mark to error msg
20575 (Build_Limited_Views): A limited view of a type is tagged if its
20576 declaration includes a record extension.
20577 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
20578 node, even if the subunit has errors. This avoids malfunction by
20579 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
20580 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
20581 generation of obsolescent messages for with statements (cannot do
20582 this too early, or we cannot implement avoiding the messages in the
20583 case of obsolescent units withing obsolescent units).
20584 (Install_Siblings): If the with_clause is on a remote descendant of
20585 an ancestor of the current compilation unit, find whether there is
20586 a sibling child unit that is immediately visible.
20587 (Remove_Private_With_Clauses): New procedure, invoked after completing
20588 the analysis of the private part of a nested package, to remove from
20589 visibility the private with_clauses of the enclosing package
20591 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
20592 now centralized in Generate_Reference.
20593 (Install_Limited_Context_Clauses): Remove superfluous error
20594 message associated with unlimited view visible through use
20595 and renamings. In addition, at the point in which the error
20596 is reported, we add the backslash to the text of the error
20597 to ensure that it is reported as a single error message.
20598 Use new // insertion for some continuation messages
20599 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
20600 to create implicit with_clause for parent unit mentioned in original
20601 limited_with_clause.
20602 (Install_Limited_With_Unit): Set entity of parent identifiers if the
20603 unit is a child unit. For ASIS queries.
20604 (Analyze_Subunit): If the subunit appears within a child unit, make all
20605 ancestor child units directly visible again.
20607 2006-10-31 Robert Dewar <dewar@adacore.com>
20609 * par-ch10.adb (P_Context_Clause): Minor error message fix
20611 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20612 Javier Miranda <miranda@adacore.com>
20614 * par-ch12.adb: Grammar update and cleanup.
20615 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
20616 support for synchronized derived type definitions.
20617 Add the new actual Abstract_Present to every call to
20618 P_Interface_Type_Definition.
20619 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
20620 a formal object declaration with an access definition or a subtype mark
20621 with a null exclusion.
20622 (P_Generic_Association): Handle association with box, and others_choice
20623 with box, to support Ada 2005 partially parametrized formal packages.
20625 2006-10-31 Robert Dewar <dewar@adacore.com>
20626 Javier Miranda <miranda@adacore.com>
20628 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
20629 (P_Type_Declaration): Remove barrier against the reserved word "limited"
20630 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
20631 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
20632 private extensions.
20633 (P_Type_Declaration): Add the new actual Abstract_Present to every call
20634 to P_Interface_Type_Definition.
20635 (P_Interface_Type_Definition): Addition of one formal to report an error
20636 if the reserved word abstract has been previously found.
20637 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
20638 object renaming declaration with an access definition or subtype mark
20639 with a possible null exclusion.
20641 * par-ch9.adb: Minor error msg fix
20643 * par-load.adb: Add missing continuation mark to error msg
20645 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
20647 2006-10-31 Vincent Celier <celier@adacore.com>
20649 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
20650 unknown attribute in unknown package or in package that does not need
20652 (Parse_Package_Declaration): Do not issue warning for unknown package in
20655 2006-10-31 Vincent Celier <celier@adacore.com>
20657 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
20658 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
20661 2006-10-31 Vincent Celier <celier@adacore.com>
20663 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
20664 on VMS, change "__" to '.' before checking the name.
20665 (Record_Ada_Source): Always add the source file name in the list of
20666 of sources, even if it is not the first time, as it is for another
20668 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
20669 dot, instead of replacing only the first '_'.
20671 * prj-part.adb (Parse): Convert project file path to canonical form
20673 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
20674 extended, the project id of the project extending it is recorded in its
20675 data, even when it has already been processed as an imported project.
20677 2006-10-31 Robert Dewar <dewar@adacore.com>
20679 * repinfo.adb (List_Entities): Don't list entities from renaming
20682 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20683 Robert Dewar <dewar@adacore.com>
20685 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
20686 only a restriction warning is active for the given restriction. This is
20687 desirable because we do not want to modify code in the case where only
20689 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
20690 causes overriding of real restrictions.
20691 Take advantage of new No_Restrictions constant.
20693 * raise.h: (__gnat_set_globals): Change profile.
20695 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20697 * rtsfind.adb: Remove s-polint from comment as it exists no more.
20700 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
20701 Move all the entities in obsolete package System.PolyORB_Interface to
20702 System.Partition_Interface.
20703 (RE_Storage_Size): New function in System.Tasking.
20704 (RE_Get_Ceiling): New entity.
20705 (RE_Set_Ceiling): New entity.
20706 (RO_PE_Get_Ceiling): New entity.
20707 (RO_RE_Set_Ceiling): New entity.
20708 (Inherit_CPP_DT): New entity
20710 2006-10-31 Robert Dewar <dewar@adacore.com>
20712 * scng.adb (Scan, case of numeric literal): Better msg for identifier
20713 starting with a digit.
20715 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20716 Thomas Quinot <quinot@adacore.com>
20717 Javier Miranda <miranda@adacore.com>
20718 Gary Dismukes <dismukes@adacore.com>
20720 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
20721 properly an attempt to apply Unchecked_Access to a protected operation.
20722 (OK_Self_Reference): New subprogram to check the legality of an access
20723 attribute whose prefix is the type of an enclosing aggregate.
20724 Generalizes previous mechanism to handle attribute references nested
20725 arbitrarily deep within the aggregate.
20726 (Analyze_Access_Attribute): An access attribute whose prefix is a type
20727 can appear in an aggregate if this is a default-initialized aggregate
20728 for a self-referential type.
20729 (Resolve_Attribute, case Access): Ditto.
20730 Add support for new implementation defined attribute Stub_Type.
20731 (Eval_Attribute, case Attribute_Stub_Type): New case.
20732 (Analyze_Attribute, case Attribute_Stub_Type): New case.
20733 (Stream_Attribute_Available): Implement using new subprogram from
20734 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
20735 Has_Specified_Stream_Attribute flag.
20736 Disallow Storage_Size and Storage_Pool for access to subprogram
20737 (Resolve_Attribute, case 'Access et al): Take into account anonymous
20738 access types of return subtypes in extended return statements. Remove
20739 accessibility checks on anonymous access types when Unchecked_Access is
20741 (Analyze_Attribute): Add support for the use of 'Class to convert
20742 a class-wide interface to a tagged type.
20743 Add support for the attribute Priority.
20744 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
20745 whether the designated type is discriminated with a constrained partial
20746 view and require static matching in that case.
20747 Add local variable Des_Btyp. The Designated_Type
20748 of an access to incomplete subtype is either its non-limited view if
20749 coming from a limited with or its etype if regular incomplete subtype.
20751 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
20752 Fix predicate to identify and allow cases of (expander-generated)
20753 references to tag of designated object of a RACW.
20754 (Validate_Static_Object_Name): In Ada 2005, a formal object is
20755 non-static, and therefore cannot appear as a primary in a preelaborable
20757 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
20758 Has_Read_Write_Attributes.
20759 (Has_Read_Write_Attributes): Reimplement in termes of
20760 Has_Stream_Attribute_Definition.
20761 (Missing_Read_Write_Attributes): When checking component types in a
20762 record, unconditionally call Missing_Read_Write_Attributes recursively
20763 (remove guard checking for Is_Record_Type / Is_Access_Type).
20765 2006-10-31 Robert Dewar <dewar@adacore.com>
20767 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
20768 useless assignments here and conditionalize it on absence of exception
20770 (Analyze_Exception_Handlers): Small code reorganization of error
20771 detection code, for new handling of formal packages.
20773 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20774 Hristian Kirtchev <kirtchev@adacore.com>
20776 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
20777 that has been constant-folded, preserve information of original tree,
20779 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
20780 generated private extension declaration if the formal derived type is
20781 synchronized. Carry synchronized present over to the generated private
20783 (Validate_Derived_Type_Instance): Ensure that the actual of a
20784 synchronized formal derived type is a synchronized tagged type.
20785 (Instantiate_Formal_Package): When creating the instantiation used to
20786 validate the actual package of a formal declared without a box, check
20787 whether the formal itself depends on a prior actual.
20788 (Instantiate_Formal_Subprogram): Create new entities for the defining
20789 identifiers of the formals in the renaming declaration, for ASIS use.
20790 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
20791 a renaming declaration or a subtype declaration for an actual in an
20792 instance, capture location information of declaration in generic, for
20794 (Instantiate_Formal_Package): Add comments on needed additional tests.
20795 AI-317 (partial parametrization) is fully implemented.
20796 (Validate_Private_Type_Instance): Add check for actual which
20797 must have preelaborable initialization
20798 Use new // insertion for some continuation messages
20799 (Analyze_Formal_Object_Declaration): Change usage of Expression to
20800 Default_Expression. Add type retrieval when the declaration has an
20801 access definition. Update premature usage of incomplete type check.
20802 (Check_Access_Definition): New subsidiary routine. Check whether the
20803 current compilation version is Ada 05 and the supplied node has an
20805 (Instantiate object): Alphabetize local variables. Handle the creation
20806 of new renaming declarations with respect to the kind of definition
20807 used - either an access definition or a subtype mark. Guard against
20808 unnecessary error message in the context of anonymous access types after
20809 they have been resolved. Add check for required null exclusion in a
20810 formal object declaration.
20811 (Switch_View): A private subtype of a non-private type needs to be
20812 switched (the base type can have been switched without its private
20813 dependents because of the last branch of Check_Private_View.
20814 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
20816 (Instantiate_Type): Emit an error message whenever a class-wide type of
20817 a tagged incomplete type is used as a generic actual.
20818 (Find_Actual_Type): Extend routine to handle a component type in a child
20819 unit that is imported from a formal package in a parent.
20820 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
20821 agree on constrainedness, rather than checking against ultimate ancestor
20822 (Instantiate_Subprogram_Body): Create a cross-reference link to the
20823 generic body, for navigation purposes.
20825 2006-10-31 Robert Dewar <dewar@adacore.com>
20826 Thomas Quinot <quinot@adacore.com>
20828 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
20830 (New_Stream_Subprogram): When processing an attribute definition clause
20831 for a stream-oriented subprogram, record an entity node occurring at
20832 the point of clause to use for checking the visibility of the clause,
20833 as defined by 8.3(23) as amended by AI-195.
20834 (New_Stream_Subprogram): New procedure, factoring behaviour from both
20835 New_Stream_Function and New_Stream_Procedure.
20836 (New_Stream_Function, New_Stream_Procedure): Removed.
20837 (Analyze_Attribute_Definition_Clause, case Address): Check new
20838 Alignment_Check check
20840 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20841 Javier Miranda <miranda@adacore.com>
20842 Robert Dewar <dewar@adacore.com>
20844 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
20845 generate the same errors compiling under -gnatc.
20846 (Try_Object_Operation): If no candidate interpretation succeeds, but
20847 there is at least one primitive operation with the right name, report
20848 error in call rather than on a malformed selected component.
20849 (Analyze_Selected_Component): If the prefix is an incomplete type from
20850 a limited view, and the full view is available, use the full view to
20851 determine whether this is a prefixed call to a primitive operation.
20852 (Operator_Check): Verify that a candidate interpretation is a binary
20853 operation before checking the type of its second formal.
20854 (Analyze_Call): Add additional warnings for function call contexts not
20856 (Analyze_Allocator): Move the check for "initialization not allowed for
20857 limited types" after analyzing the expression. This is necessary,
20858 because OK_For_Limited_Init looks at the structure of the expression.
20859 Before analysis, we don't necessarily know what sort of expression it
20860 is. For example, we don't know whether F(X) is a function call or an
20861 indexed component; the former is legal in Ada 2005; the latter is not.
20862 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
20863 were missing. We also didn't handle qualified expressions. Now also
20864 allow function calls. Use new common routine OK_For_Limited_Init.
20865 (Analyze_Type_Conversion): Do not perform some legality checks in an
20866 instance, because the error message will be redundant or spurious.
20867 (Analyze_Overloaded_Selected_Component): Do not do style check when
20868 setting an entity, since we do not know it is the right entity yet.
20869 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
20870 (Analyze_Overloaded_Selected_Component): Same change
20871 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
20872 since regular incomplete subtypes are transformed into corresponding
20873 subtypes of their full views.
20874 (Complete_Object_Operation): Treat name of transformed subprogram call
20875 as coming from source, for browsing purposes.
20876 (Try_Primitive_Operation): If formal is an access parameter, compare
20877 with base type of object to determine whether it is a primitive
20879 (Operator_Check): If no interpretation of the operator matches, check
20880 whether a use clause on any candidate might make the operation legal.
20881 (Try_Class_Wide_Operation): Check whether the first parameter is an
20882 access type whose designated type is class-wide.
20884 2006-10-31 Robert Dewar <dewar@adacore.com>
20885 Ed Schonberg <schonberg@adacore.com>
20886 Gary Dismukes <dismukes@adacore.com>
20888 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
20889 warn on infinite loops.
20890 Add \\ to some continuation messages
20891 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
20892 (Process_Bounds): If the bounds are integer literals that result from
20893 constant-folding, and they carry a user-defined type, preserve that type
20894 rather than treating this as an integer range.
20895 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
20896 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
20897 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
20898 left hand side of assignment.
20899 (Analyze_Assignment): Add suport to manage assigments to the attribute
20900 priority of a protected object.
20901 (Check_Possible_Current_Value_Condition): Allow fully qualified names
20902 not just identifiers.
20903 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
20904 or AND THEN for possible tracking.
20905 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
20906 case of while loops so we can track values in the loop body.
20908 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20909 Hristian Kirtchev <kirtchev@adacore.com>
20910 Bob Duff <duff@adacore.com>
20912 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
20913 procedure cannot be a protected operation (it is a basic_declaration,
20914 not a subprogram_declaration).
20915 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
20916 Subp. Add logic for entry processing.
20917 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
20918 Determine whether an entry or subprogram of a protected or task type
20919 override an inherited primitive of an implemented interface.
20920 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
20921 Update the actual used in calls to Check_Overriding_Indicator.
20922 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
20923 generate the proper reference to the parent unit, for cross-reference.
20924 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
20926 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
20927 (Add_Extra_Formal): Revise procedure to allow passing in associated
20928 entity, scope, and name suffix, and handle setting of the new
20929 Extra_Formals field.
20930 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
20931 pass new parameters. Add support for adding the new extra access formal
20932 for functions whose calls are treated as build-in-place.
20933 (Analyze_A_Return_Statement): Correct casing in error message.
20934 Move Pop_Scope to after Analyze_Function_Return, because an extended
20935 return statement really is a full-fledged scope. Otherwise, visibility
20936 doesn't work right. Correct use of "\" for continuation messages.
20937 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
20938 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
20939 the node doesn't get properly marked as analyzed.
20940 (Analyze_Subprogram_Body): If subprogram is a function that returns
20941 an anonymous access type that denotes a task, build a Master Entity
20943 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
20944 proper usage of null exclusion in a result definition.
20945 (Process_Formals): Code cleanup and new error message.
20946 (Process_Formals): Detect incorrect application of null exclusion to
20948 (Conforming_Types): Handle conformance between [sub]types and itypes
20949 generated for entities that have null exclusions applied to them.
20950 (Maybe_Primitive_Operation): Add an additional type retrieval when the
20951 base type is an access subtype. This case arrises with null exclusions.
20952 (New_Overloaded_Entity): Do not remove the overriden entity from the
20953 homonym chain if it corresponds with an abstract interface primitive.
20954 (Process_Formals): Replace membership test agains Incomplete_Kind with a
20955 call to the synthesized predicate Is_Incomplete_Type.
20956 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
20958 (Analyze_Subprogram_Declaration): Check that abstract interface
20959 primitives are abstract or null.
20960 (Analyze_Subprogram_Specification): Remove previous check for abstract
20961 interfaces because it was not complete.
20962 (Has_Interface_Formals): Removed.
20964 2006-10-31 Ed Schonberg <schonberg@adacore.com>
20965 Javier Miranda <miranda@adacore.com>
20967 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
20968 of Analyze_Package_Body, to create Itype references for anonymous
20969 access types created in the package declaration, whose designated types
20970 may have only a limited view.
20971 (Analyze_Package_Specification): For the private part of a nested
20972 package, install private_with_clauses of enclosing compilation unit if
20973 we are in its visible part.
20974 (Declare_Inherited_Private_Subprograms): Complete barrier
20975 to ensure that the primitive operation has an alias to some parent
20976 primitive. This is now required because, after the changes done for the
20977 implementation of abstract interfaces, the contents of the list of
20978 primitives has entities whose alias attribute references entities of
20979 such list of primitives.
20980 (Analyze_Package_Specification): Simplify code that handles parent units
20981 of instances and formal packages.
20982 (Uninstall_Declarations): Check the convention consistency among
20983 primitive overriding operations of a tagged record type.
20985 2006-10-31 Robert Dewar <dewar@adacore.com>
20986 Hristian Kirtchev <kirtchev@adacore.com>
20987 Javier Miranda <miranda@adacore.com>
20988 Ed Schonberg <schonberg@adacore.com>
20990 * sem_ch8.adb: Minor error msg rewording
20991 (Undefined): When checking for misspellings, invert arguments (to get
20992 expected and found set right)
20993 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
20994 (Analyze_Generic_Renaming): Same fix
20995 (Use_One_Package): Do not take into account the internal entities of
20996 abstract interfaces during the analysis of entities that are marked
20997 as potentially use-visible.
20998 (Find_Type): Handle the case of an attribute reference for
20999 implementation defined attribute Stub_Type (simply let the analysis of
21000 the attribute reference rewrite it).
21001 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
21002 type that appears in a Use_Type clause.
21003 (Analyze_Object_Renaming): Add support for renaming of the Priority
21005 (Find_Type): In Ada 2005, a task type can be used within its own body,
21006 when it appears in an access definition.
21007 (Analyze_Object_Renaming): Remove warning on null_exclusion.
21008 (Analyze_Object_Renaming): Introduce checks for required null exclusion
21009 in a formal object declaration or in a subtype declaration.
21010 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
21011 (Check_Null_Exclusion): New local routine to
21012 Analyze_Subprogram_Renaming. Check whether the formals and return
21013 profile of a renamed subprogram have required null exclusions when
21014 their counterparts of the renaming already impose them.
21015 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
21016 Determine whether an entity is inside a generic scope.
21017 (In_Open_Scope): First pass of documentation update.
21018 (Find_Expanded_Name): Add support for shadow entities associated with
21019 limited withed packages. This is required to handle nested packages.
21020 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
21021 that makes a renaming of a limited withed package illegal.
21023 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21024 Ed Schonberg <schonberg@adacore.com>
21026 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
21027 Check_Overriding_Indicator.
21028 (Analyze_Task_Definition): Ditto.
21029 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
21030 (Check_Overriding_Indicator): To find overridden interface operation,
21031 examine only homonyms that have an explicit subprogram declaration, not
21032 inherited operations created by an unrelated type derivation.
21033 (Check_Overriding_Indicator): When checking for the presence of "null"
21034 in a procedure, ensure that the queried node is a procedure
21036 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
21037 type when the formal is an access to variable.
21038 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
21039 (Analyze_Task_Type): Same addition
21040 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
21041 provide navigation capabilities for entries.
21043 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21044 Ed Schonberg <schonberg@adacore.com>
21045 Javier Miranda <miranda@adacore.com>
21046 Gary Dismukes <dismukes@adacore.com>
21048 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
21049 inherited from an interface ancestor by another interface in the
21050 context of an instance as 'late'.
21051 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
21052 of a call to a function that dispatches on access result.
21053 (Check_Dispatching_Operation): In case of late overriding of a primitive
21054 that covers abstract interface subprograms we register it in all the
21055 secondary dispatch tables associated with abstract interfaces.
21056 (Check_Dispatching_Call): Add check that a dispatching call is not made
21057 to a function with a controlling result of a limited type. This is a
21058 current implementation restriction.
21059 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
21060 (Check_Dispatching_Operation): Do no emit a warning if the controlling
21061 argument is an interface type that is a generic formal.
21062 (Is_Interface_Subprogram): Removed.
21063 (Check_Dispatching_Operation): If the subprogram is not a dispatching
21064 operation, check the formals to handle the case in which it is
21065 associated with an abstract interface type.
21067 2006-10-31 Robert Dewar <dewar@adacore.com>
21068 Ed Schonberg <schonberg@adacore.com>
21070 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
21071 Add new calls to this procedure during traversal
21072 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
21073 another unit if expansion is disabled.
21075 2006-10-31 Robert Dewar <dewar@adacore.com>
21077 * sem_eval.adb (Compile_Time_Compare): Make use of information from
21078 Current_Value in the conditional case, to evaluate additional
21079 comparisons at compile time.
21081 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21082 Hristian Kirtchev <kirtchev@adacore.com>
21083 Javier Miranda <miranda@adacore.com>
21085 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
21086 subprogram type to provide better diagnostics in case of ambiguity.
21087 (Covers): Handle coverage of formal and actual anonymous access types in
21088 the context of generic instantiation.
21089 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
21090 abstract interface types; this is required to handle concurrent types
21091 with discriminants and abstract interface types.
21092 (Covers): Include type coverage of both regular incomplete subtypes and
21093 incomplete subtypes of incomplete type visibles through a limited with
21096 2006-10-31 Robert Dewar <dewar@adacore.com>
21097 Hristian Kirtchev <kirtchev@adacore.com>
21098 Ed Schonberg <schonberg@adacore.com>
21100 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
21101 messages for entities in packages which are not used.
21102 (Collect_Synchronized_Interfaces): New procedure.
21103 (Overrides_Synchronized_Primitive): New function.
21104 (Denotes_Discriminant): Extend predicate to apply to task types.
21105 Add missing continuation marks in error msgs
21106 (Unqualify): New function for removing zero or more levels of
21107 qualification from an expression. There are numerous places where this
21108 ought to be used, but we currently only deal properly with zero or one
21110 (In_Instance); The analysis of the actuals in the instantiation of a
21111 child unit is not within an instantiation, even though the parent
21112 instance is on the scope stack.
21113 (Safe_To_Capture_Value): Exclude the case of variables that are
21115 (Check_Obsolescent): Removed
21116 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
21117 is an aliased view, even when rewritten as a reference to the target
21118 object in an assignment.
21119 (Get_Subprogram_Entity): New function
21120 (Known_To_Be_Assigned): New function
21121 (Type_Access_Level): Compute properly the access level of a return
21122 subtype that is an anonymous access type.
21123 (Explain_Limited_Type): Correct use of "\" for continuation messages.
21124 (Is_Transfer): The new extended_return_statement causes a transfer of
21126 (Has_Preelaborable_Initialization): New function
21127 (Has_Null_Exclusion): New function. Given a node N, determine whether it
21128 has a null exclusion depending on its Nkind.
21129 Change Is_Lvalue to May_Be_Lvalue
21130 (May_Be_Lvalue): Extensive additional code to deal with subprogram
21131 arguments (IN parameters are not Lvalues, IN OUT parameters are).
21132 (Safe_To_Capture_Value): Extend functionality so it can be used for
21133 the current value condition case.
21134 (Has_Compatible_Alignment): New function
21135 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
21136 objects to handle the Ada 2005 case, where aliasedness no longer implies
21137 that the object is constrained. In particular, for dereferenced names,
21138 the designated object must be assumed to be unconstrained.
21139 (Kill_Current_Values): Properly deal with the case where we encounter
21140 a loop in the scope chain.
21141 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
21143 (Compile_Time_Constraint_Error): Improve error message in error case
21145 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
21146 associated with entities of abstract interface primitives.
21147 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
21149 2006-10-31 Robert Dewar <dewar@adacore.com>
21151 * s-osinte-tru64.adb:
21152 Mark Asm statements Volatile to prevent warnings (seems a
21153 reasonable change anyway)
21156 * s-mastop-irix.adb: Add Volatile to Asm statements
21157 Suppresses warning, and seems appropriate in any case
21159 * s-osinte-vms.adb: Add Volatile to Asm statement
21161 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
21163 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
21165 Add call to Check_Code_Statement
21167 2006-10-31 Robert Dewar <dewar@adacore.com>
21168 Ed Schonberg <schonberg@adacore.com>
21169 Bob Duff <duff@adacore.com>
21171 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
21172 Synchronized_Present): Add Formal_Derived_Type_Definition and
21173 Private_Extension_Declaration to the list of assertions.
21174 (Is_Entry_Barrier_Function): New flag
21175 (Has_Self_Reference): New flag on aggregates, to indicate that they
21176 contain a reference to the enclosing type, inserted through a default
21178 (Next_Rep_Item): Move from Node4 to Node5.
21179 (Entity): Add this field for N_Attribute_Definition_Clause.
21180 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
21181 (N_Return_Object_Declaration): Remove this node kind. We now use
21182 N_Object_Declaration instead.
21183 (Actual_Designated_Subtype): Move to a different place to make room in
21184 N_Extended_Return_Statement.
21185 (Procedure_To_Call): Move to a different place to make room in
21186 N_Extended_Return_Statement.
21187 (Return_Type): Removed this field to make room in return statements
21189 (Return_Statement_Entity): New field in return statements, in part to
21190 replace Return_Type, and in part to support the fact that return
21191 statements are now pushed on the scope stack during semantic analysis.
21192 (Return_Object_Declarations): New field to support extended return
21194 (N_Extended_Return_Statement): New node for extended_return_statement
21196 (N_Return_Object_Declaration): New node for part of
21197 extended_return_statement nonterminal. Needed because all the necessary
21198 fields won't fit in N_Extended_Return_Statement.
21199 Generic_associations now carry the Box_Present flag, to indicate a
21200 default for an actual in a partially parametrized formal package.
21202 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
21203 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
21204 and for the new predefined dispatching policies: EDF_Across_Priorities,
21205 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
21206 Introduce new name Stub_Type for implementation defined attribute.
21207 Add pragma Preelaborable_Initialization
21208 Add entry for Priority attribute.
21209 Add Pragma_Wide_Character_Encoding
21210 (Get_Convention_Name): Given a convention id, this function returns the
21211 corresponding name id from the names table.
21213 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21214 Robert Dewar <dewar@adacore.com>
21215 Bob Duff <duff@adacore.com>
21217 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
21218 print null exclusion twice in the case of an access definition,
21219 Implement new -gnatL switch
21220 Remove N_Return_Object_Declaration. We now use
21221 N_Object_Declaration instead. Implement the case for
21222 N_Extended_Return_Statement. Alphabetize the cases.
21223 Add cases for new nodes N_Extended_Return_Statement and
21224 N_Return_Object_Declaration. The code is not yet written.
21225 Update the output for N_Formal_Object_Declaration
21226 and N_Object_Renaming_Declaration.
21227 (Write_Itype): Account for the case of a modular integer subtype whose
21228 base type is private.
21230 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21232 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
21233 Remove elaboration code, now done in the binder.
21235 * s-rident.ads: Make this unit Preelaborate.
21236 (No_Restrictions): New constant used to clean up code and follow
21237 preelaborate constraints.
21240 Add System.Restrictions dependence, referenced directly from the
21241 binder generated file.
21243 2006-10-31 Gary Dismukes <dismukes@adacore.com>
21245 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
21246 True when AAMP extended floating-point is in use (48-bit). Change type
21247 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
21248 the two byte array types on AFloat. Change type of IV_Ilf overlay
21249 variable from Byte8 to ByteLF. Add appropriate initializations of
21250 floating-point overlays for AAMP cases.
21252 2006-10-31 Javier Miranda <miranda@adacore.com>
21254 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
21255 (Get_Ceiling): New subprogram that returns
21256 the ceiling priority of the protected object.
21257 (Set_Ceiling): New subprogram that sets the new ceiling priority of
21258 the protected object.
21260 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
21262 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
21264 2006-10-31 Jose Ruiz <ruiz@adacore.com>
21266 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
21267 requeuing to the same protected object to give higher priority tasks
21268 the opportunity to execute.
21270 2006-10-31 Robert Dewar <dewar@adacore.com>
21272 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
21273 add more precise check for the character sequence that follows '[' to
21274 avoid possible confusion in case if '[' is the last character of a
21276 (Scan_Wide): Always allow brackets encoding
21278 2006-10-31 Olivier Hainque <hainque@adacore.com>
21280 * s-stchop.ads: make this unit preelaborate. This is desirable in
21281 general and made mandatory by the use of this unit by s-taprop which
21282 is itself preelaborate.
21284 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
21285 Td_Events component.
21287 2006-10-31 Vincent Celier <celier@adacore.com>
21289 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
21292 2006-10-31 Vincent Celier <celier@adacore.com>
21294 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
21296 2006-10-31 Vincent Celier <celier@adacore.com>
21298 * makegpr.adb (Check_Compilation_Needed): Take into account path names
21300 (Check_Compilation_Needed): When checking a C or C++ source, do not
21301 resolve symbolic links.
21302 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
21303 When not in verbose mode and Ellipse is True, display "..." for the
21304 first argument with Display set to False.
21305 (Build_Global_Archive): Always set Display True for the first object
21306 file. Call Display_Command with Ellipse set to True.
21308 2006-10-31 Matt Heaney <heaney@adacore.com>
21310 * a-crbtgo.ads: Commented each subprogram
21312 * a-crbtgo.adb: Added reference to book from which algorithms were
21315 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
21316 indicate which child.
21317 (Generic_Conditional_Insert): changed parameter name from "Success" to
21319 (Generic_Unconditional_Insert_With_Hint): improved algorithm
21321 * a-coorse.adb (Replace_Element): changed parameter name in call to
21322 conditional insert operation.
21324 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
21326 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
21329 * a-ciorse.adb (Replace_Element): changed parameter name in call to
21330 conditional insert operation.
21332 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
21335 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
21336 instead of mode inout.
21338 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
21340 (Generic_Read): preserve existing buckets array if possible
21341 (Generic_Write): don't send buckets array length anymore
21343 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
21344 instead of mode inout.
21346 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
21347 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21349 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
21350 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
21351 (Replace_Element): local operation is now an instantiation
21353 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
21354 check current length.
21355 (Generic_Replace_Element): new operation
21357 2006-10-31 Doug Rupp <rupp@adacore.com>
21359 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
21360 Call TBK$SYMBOLIZE without omitting parameters.
21362 2006-10-31 Vincent Celier <celier@adacore.com>
21364 * symbols-processing-vms-ia64.adb,
21365 symbols-processing-vms-alpha.adb (Process): Do not include symbols
21366 that come from generic instantiations in bodies.
21368 2006-10-31 Pat Rogers <rogers@adacore.com>
21370 * a-rttiev.ads, a-rttiev.adb:
21371 This is a significant redesign primarily for the sake of automatic
21372 timer task termination but also to fix a design flaw.
21373 Therefore we are now using an RTS lock, instead of a protected
21374 object, to provide mutual exclusion to the queue of pending events
21375 and the type Timing_Event is no longer a protected type.
21377 2006-10-31 Robert Dewar <dewar@adacore.com>
21378 Cyrille Comar <comar@adacore.com>
21379 Ben Brosgol <brosgol@adacore.com>
21381 * debug.adb: Update flags documentation
21383 * gnat_ugn.texi: Add documentation for new -gnatwq switch
21384 Clean up documentation for several other warning switches
21385 Clarify how task stack size can be specified with various
21386 versions of Windows.
21387 Add note that -gnatVo includes ranges including loops
21388 Add documentation for -gnatL switch
21389 Add note on elaboration warning for initializing variables
21390 Add documentation for new -gnatwt warning switch
21391 Document new form of pragma Warnings (On|Off, string)
21392 Add comment on use of pragma Warnings to control warnings
21393 Add documentation for -gnatjnn switch
21394 Modify section on interfacing with C for VMS 64-bit.
21395 Add doc for -gnatVe/E
21396 Add documentation of new warning flags -gnatww/-gnatwW
21397 Add warnings about address clause overlays to list of warnings
21398 (Exception Handling Control): Document that the option --RTS must be
21399 used consistently for gcc and gnatbind.
21400 Clarify that inlining is not always possible
21401 Update documentation on pragma Unchecked_Union.
21404 Add documentation for new extended version of pragma Obsolescent
21405 Add documentation for implementation defined attribute 'Stub_Type.
21406 Add note on use of Volatile in asm statements
21407 Add documentation on use of pragma Unreferenced in context clause
21408 Document new form of pragma Warnings (On|Off, pattern)
21409 Document pragma Wide_Character_Encoding
21410 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
21411 enforced if code generation is active.
21412 Add section on pragma Suppress to document GNAT specific check
21414 Clarify difference between No_Dispatching_Calls & No_Dispatch.
21415 Add documentation for pragma Restrictions (No_Elaboration_Code)
21418 Add comments on layout of subprogram local variables in the
21419 presence of nested subprograms.
21421 * ug_words: Resync.
21423 * elists.ads: Minor reformatting
21424 Node returns Node_Or_Entity_Id (doc change only)
21426 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
21428 * g-arrspl.ads (Create): Update comments.
21430 * sem.ads: Add details on the handling of the scope stack.
21432 * usage.adb: Update documentation.
21434 * validsw.ads, validsw.adb:
21435 Add definition of Validity_Check_Components and implement -gnatVe/E
21437 * vms_data.ads: Add missing VMS qualifiers.
21439 * s-addope.ads: Add documentation on overflow and divide by zero
21441 2006-10-31 Robert Dewar <dewar@adacore.com>
21442 Thomas Quinot <quinot@adacore.com>
21443 Arnaud Charlet <charlet@adacore.com>
21445 * fmap.adb: Put routines in alpha order
21447 * g-boumai.ads: Remove redundant 'in' keywords
21449 * g-cgi.adb: Minor reformatting
21451 * g-cgi.ads: Remove redundant 'in' keywords
21453 * get_targ.adb: Put routines in alpha order
21455 * prj-attr.ads: Minor reformatting
21457 * s-atacco.ads: Minor reformatting
21459 * scn.adb: Put routines in alpha order
21461 * sinput-l.adb: Minor comment fix
21463 * sinput-p.adb: Minor comment fix
21465 * s-maccod.ads: Minor reformatting
21467 * s-memory.adb: Minor reformatting
21469 * s-htable.adb: Fix typo in comment.
21471 * s-secsta.adb: Minor comment update.
21473 * s-soflin.adb: Minor reformatting
21476 Add comment about odd qualification in Storage_Offset declaration
21479 Remove unnecessary 'in' keywords for formal parameters.
21481 * treeprs.adt: Minor reformatting
21483 * urealp.adb: Put routines in alpha order
21485 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
21488 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
21490 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
21492 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
21493 workaround as on other platforms.
21495 * g-eacodu-vms.adb: Remove redundant 'in' keywords
21496 * g-expect-vms.adb: Remove redundant 'in' keywords
21498 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
21499 clear error message if the list-of-files file cannot be opened.
21501 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
21502 equality operator is always visible.
21504 * lang.opt: Woverlength-strings: New option.
21507 Update copyright, since nmake.ads and nmake.adb have changed.
21509 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
21510 (Binder_Output_Time_Stamps_Set): removed.
21511 (Old_Binder_Output_Time_Stamp): idem.
21512 (New_Binder_Output_Time_Stamp): idem.
21513 (Recording_Time_From_Last_Bind): idem.
21514 (Recording_Time_From_Last_Bind): Make constant.
21516 * output.ads, output.adb (Write_Str): Allow LF characters
21517 (Write_Spaces): New procedure
21519 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
21521 * inline.adb: Minor reformatting
21523 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
21525 * s-mastop-vms.adb: Remove redundant 'in' keywords
21527 * s-osprim-vms.adb: Remove redundant 'in' keywords
21529 * s-trafor-default.adb: Remove redundant 'in' keywords
21531 * 9drpc.adb: Remove redundant 'in' keywords
21533 * s-osinte-mingw.ads: Minor reformatting
21535 * s-inmaop-posix.adb: Minor reformatting
21537 * a-direio.ads: Remove quotes from Compile_Time_Warning message
21539 * a-exexda.adb: Minor code reorganization
21541 * a-filico.adb: Minor reformatting
21543 * a-finali.adb: Minor reformatting
21545 * a-nudira.ads: Remove quote from Compile_Time_Warning message
21547 * a-numeri.ads: Minor reformatting
21549 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
21551 * exp_pakd.ads: Fix obsolete comment
21553 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
21554 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
21555 Probably not a bug, but certainly neater and more efficient.
21557 * a-tienio.adb: Minor reformatting
21559 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
21560 Avoid assuming low bound of string is 1.
21562 * gnatbind.adb: Change Bindusg to package and rename procedure as
21563 Display, which now ensures that it only outputs usage information once.
21564 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
21566 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
21569 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
21571 (Match): Add pragma Assert to ensure that Matches'First is zero
21573 * g-regpat.ads (Match): Document that Matches lower bound must be zero
21575 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
21576 documented preconditions (also kills warnings about bad indexes).
21578 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
21580 (Build_Import_Library): Ditto;
21582 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
21584 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
21586 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
21587 lower bound of choice table is 1.
21589 * sem_case.ads (Analyze_Choices): Document that lower bound of
21592 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
21595 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
21596 and add appropriate Assert pragma to suppress warnings.
21598 * atree.h, atree.ads, atree.adb
21599 Change Elist24 to Elist25
21600 Add definitions of Field28 and Node28
21601 (Traverse_Field): Use new syntactic parent table in sinfo.
21603 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
21605 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
21607 * exp_tss.adb: Put routines in alpha order
21609 * fe.h: Remove redundant declarations.
21611 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21613 * utils.c (builtin_function): Rename to gnat_builtin_function.
21614 Move common code to add_builtin_function.
21615 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
21616 gnat_builtin_function.
21617 * gigi.h (builtin_function): Rename to gnat_builtin_function.
21618 Change the signature.
21620 2006-10-16 Brooks Moses <bmoses@stanford.edu>
21622 * Makefile.in: Add TEXI2PDF definition.
21623 * Make-lang.in: Add "ada.pdf" target.
21625 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
21627 * decl.c, utils.c: Fix comment typos.
21628 * utils.c: Fix a typo.
21630 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
21632 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
21633 on "pure" Ada subprograms if SJLJ exceptions are used.
21634 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
21635 on the declaration node of JMPBUF_SAVE.
21636 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
21637 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
21638 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
21640 2006-08-20 Laurent Guerby <laurent@guerby.net>
21643 g-socket.adb (Bind_Socket): Call Set_Address.
21645 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
21648 * decl.c (same_discriminant_p): New static function.
21649 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
21650 subtype and we have discriminants, fix up the COMPONENT_REFs
21651 for the discriminants to make them reference the corresponding
21652 fields of the parent subtype after it has been built.
21654 2006-09-15 Roger Sayle <roger@eyesopen.com>
21657 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
21658 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
21660 2006-09-13 Olivier Hainque <hainque@adacore.com>
21663 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
21664 of a SAVE_EXPR, just make the operand addressable/not-readonly and
21665 let the common gimplifier code make and propagate a temporary copy.
21666 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
21667 out/in-out actuals and defer setting the addressable/readonly bits
21670 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
21673 * decl.c (components_to_record): Defer emitting debug info for the
21674 record type associated with the variant until after we are sure to
21677 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
21680 * gigi.h (gnat_internal_attribute_table): Declare.
21681 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
21682 * utils.c (gnat_internal_attribute_table): New global variable.
21683 (builtin_function): Always call decl_attributes on the builtin.
21684 (handle_const_attribute): New static function.
21685 (handle_nothrow_attribute): Likewise.
21687 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
21689 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
21691 2006-06-23 Olivier Hainque <hainque@adacore.com>
21693 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
21694 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
21696 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
21697 Eric Botcazou <ebotcazou@adacore.com>
21700 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
21701 check-gnat into check-acats.
21703 2006-06-17 Karl Berry <karl@gnu.org>
21705 * gnat-style.texi (@dircategory): Use "Software development"
21706 instead of "Programming", following the Free Software Directory.
21708 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21711 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
21713 2006-06-06 Laurent Guerby <laurent@guerby.net>
21716 mlib-utl.adb: Use Program_Name.
21718 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
21720 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
21721 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
21722 trans.c, utils.c: Fix comment typos. Follow spelling
21724 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
21727 2006-05-19 Nicolas Setton <setton@adacore.com>
21729 * misc.c (gnat_dwarf_name): New function.
21730 (LANG_HOOKS_DWARF_NAME): Define to it.
21732 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
21734 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
21735 (ada/misc.o): Likewise.
21736 (ada/utils.o): Likewise.
21738 2006-04-08 Aurelien Jarno <aurel32@debian.org>
21740 * Makefile.in: Add Ada support for GNU/kFreeBSD.
21741 * s-osinte-kfreebsd-gnu.ads: New file.
21743 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
21745 * Make-lang.in: Rename docdir to gcc_docdir.
21747 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
21749 * gigi.h (get_ada_base_type): Delete.
21750 * utils2.c (get_ada_base_type): Likewise.
21751 * trans.c (convert_with_check): Operate in the real base type.
21753 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21755 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
21757 2006-03-02 Richard Sandiford <richard@codesourcery.com>
21759 * utils.c (create_var_decl): Use have_global_bss_p when deciding
21760 whether to make the decl common.
21762 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21764 * Make-lang.in (Ada): Remove.
21765 (.PHONY): Remove Ada
21767 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21769 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
21770 aggregate, check the interpretations of the other operand to find one
21771 that may be a boolean array.
21773 (Analyze_Selected_Component): Fix flow-of-control typo in case where
21774 the prefix is a private extension.
21776 2006-02-17 Eric Botcazou <botcazou@adacore.com>
21779 * utils2.c (find_common_type): If both input types are BLKmode and
21780 have the same constant size, keep using the first one.
21782 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
21784 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
21786 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
21788 2006-02-17 Jose Ruiz <ruiz@adacore.com>
21790 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
21791 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
21792 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
21793 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
21794 Abort_Defer/Undefer pairs to avoid the possibility of a task being
21795 aborted while owning a lock.
21797 2006-02-17 Javier Miranda <miranda@adacore.com>
21798 Robert Dewar <dewar@adacore.com>
21800 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
21801 through an access to class-wide interface we force the displacement of
21802 the pointer to the allocated object to reference the corresponding
21803 secondary dispatch table.
21804 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
21805 if Long_Shifts are supported on the target, even if 64 bit divides
21806 are not supported (configurable run time mode).
21807 (Expand_N_Type_Conversion): Do validity check if validity checks on
21808 operands are enabled.
21809 (Expand_N_Qualified_Expression): Do validity check if validity checks
21810 on operands are enabled.
21812 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21814 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
21815 must be materialized when the renamed expression is an explicit
21818 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21820 * freeze.adb (Statically_Discriminated_Components): Return false if
21821 the bounds of the type of the discriminant are not static expressions.
21823 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
21824 the bounds of the discriminant type are not static.
21826 2006-02-17 Robert Dewar <dewar@adacore.com>
21828 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
21829 then we close To if it is valid.
21831 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
21833 * init.c (facility_resignal_table): new array
21834 (__gnat_default_resignal_p): enhance default predicate to resignal if
21835 VMS condition has one of the predefined facility codes.
21837 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
21839 * Makefile.in: Use VMS64 specialized versions of several units in
21840 Interfaces.C hierarchy to be compatible with HP C default size choices.
21841 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
21843 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21845 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
21846 instantiation, the corresponding entity is the related_instance of the
21847 wrapper package created for the instance.
21849 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21851 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
21852 the current instance is nested within another instance in a child unit.
21854 2006-02-17 Javier Miranda <miranda@adacore.com>
21855 Ed Schonberg <schonberg@adacore.com>
21857 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
21858 type we cannot inherit the primitive operations; we inherit the
21859 Corresponding_Record_Type (which has the list of primitive operations).
21860 (Check_Anonymous_Access_Types): When creating anonymous access types for
21861 access components, use Rewrite in order to preserve the tree structure,
21863 (Analyze_Object_Declaration): For limited types with access
21864 discriminants with defaults initialized by an aggregate, obtain
21865 subtype from aggregate as for other mutable types.
21866 (Derived_Type_Declaration): If the derived type is a limited interface,
21867 set the corresponding flag (Is_Limited_Record is not sufficient).
21869 2006-02-17 Ed Schonberg <schonberg@adacore.com>
21871 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
21872 to inline a function that returns an unconstrained type, the return
21873 expression must be the first variable declared in the body of the
21876 2006-02-17 Javier Miranda <miranda@adacore.com>
21878 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
21879 abstract interface type, the static analysis is not enough to know if
21880 the interface is implemented or not by the source tagged type. Hence
21881 we must pass the work to the expander to generate the required code to
21882 evaluate the conversion at run-time.
21883 (Resolve_Equality_Op): Do not apply previous
21884 transformation if expansion is disasbled, to prevent anomalies when
21885 locating global references in a generic unit.
21887 2006-02-17 Vincent Celier <celier@adacore.com>
21889 * snames.ads, snames.adb: New standard names for new project attributes:
21890 archive_builder, archive_indexer, compiler_pic_option,
21891 config_body_file_name, config_body_file_name_pattern,
21892 config_file_switches, config_file_unique, config_spec_file_name,
21893 config_spec_file_name_pattern, default_builder_switches,
21894 default_global_compiler_switches, default_language,
21895 dependency_file_kind, global_compiler_switches, include_path,
21896 include_path_file, language_kind, linker_executable_option,
21897 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
21898 roots, runtime_project.
21900 2006-02-17 Matthew Heaney <heaney@adacore.com>
21902 * a-convec.ads, a-convec.adb:
21903 (operator "&"): handle potential overflow for large index types
21904 (Insert): removed Contraint_Error when using large index types
21905 (Insert_Space): removed Constraint_Error for large index types
21906 (Length): moved constraint check from Length to Insert
21908 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
21909 as not null access.
21910 Explicit raise statements now include an exception message.
21911 (operator "&"): handle potential overflow for large index types
21912 (Insert): removed Contraint_Error when using large index types
21913 (Insert_Space): removed Constraint_Error for large index types
21914 (Length): moved constraint check from Length to Insert
21916 2006-02-17 Robert Dewar <dewar@adacore.com>
21918 * s-wchcnv.adb: Document handling of [ on output (we do not change
21919 this to ["5B"] and the new comments say why not.
21922 Add note for -gnatVo that this now includes the cases of type
21923 conversions and qualified expressions.
21924 Add comments on handling of brackets encoding for Text_IO
21926 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
21927 Thomas Quinot <quinot@adacore.com>
21928 Robert Dewar <dewar@adacore.com>
21929 Javier Miranda <miranda@adacore.com>
21931 * expander.adb: Fix typo in comment
21933 * exp_pakd.adb: Fix typo
21934 Minor comment reformatting.
21936 * g-dyntab.adb: Minor reformatting
21938 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
21939 aliased subprograms to look for the abstract interface subprogram.
21941 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
21943 * env.c (__gnat_setenv): Use size_t.
21944 (__gnat_unsetenv): Likewise.
21945 (__gnat_clearenv): Likewise.
21947 2006-02-16 Arnaud Charlet <charlet@adacore.com>
21949 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
21951 2006-02-13 Arnaud Charlet <charlet@adacore.com>
21953 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
21954 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
21955 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
21956 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
21957 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
21958 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
21959 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
21960 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
21961 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
21964 2006-02-13 Jose Ruiz <ruiz@adacore.com>
21966 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
21967 protection against race conditions is not needed.
21968 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
21970 (Set_Specific_Handler): Add mutual exclusive access to the specific
21972 (Specific_Handler): Add mutual exclusive access for retrieving the
21975 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
21978 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
21979 Fall_Back_Handler and Specific_Handler.
21981 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
21982 termination handlers.
21983 Set two different owerflow depending on the maximal stack size.
21985 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
21986 protection against race conditions is not needed when executing the
21987 task termination handler.
21989 2006-02-13 Robert Dewar <dewar@adacore.com>
21991 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
21992 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
21993 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
21994 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
21995 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
21996 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
21997 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
21998 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
21999 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
22000 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
22001 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
22002 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
22003 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
22004 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
22005 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
22006 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
22007 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
22008 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
22009 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
22010 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
22011 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
22012 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
22013 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
22014 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
22015 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
22016 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
22017 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
22018 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
22019 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
22020 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
22021 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
22022 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
22023 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
22024 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
22027 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22029 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
22030 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
22031 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
22032 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
22033 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
22034 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
22035 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
22036 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
22037 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
22039 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22041 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
22042 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
22043 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
22044 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
22045 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
22046 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
22047 replaced by anonymous access type.
22048 (pthread_sigmask): Now take an access sigset_t
22050 * s-osinte-hpux.ads: Ditto.
22051 (pthread_mutex_t, pthread_cond_t): Update definitions to support
22052 properly 32 and 64 bit ABIs.
22054 2006-02-13 Pascal Obry <obry@adacore.com>
22056 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
22057 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
22058 s-taprop-linux.adb, s-taprop-solaris.adb,
22059 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
22060 adjustement is already done when calling this routine.
22062 2006-02-13 Pascal Obry <obry@adacore.com>
22064 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
22065 table to take advantage of the 16 priority levels available on Windows
22066 2000 and XP. On NT4 there are only 7 priority levels, this is properly
22067 supported by this new mapping.
22069 2006-02-13 Nicolas Setton <setton@adacore.com>
22071 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
22072 (get_encoding): New subprogram. Extracts the encodings from an encoded
22075 2006-02-13 Pascal Obry <obry@adacore.com>
22076 Nicolas Roche <roche@adacore.com>
22077 Arnaud Charlet <charlet@adacore.com>
22079 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
22081 (__gnat_try_lock): Add unicode support by using a specific section on
22083 (__gnat_get_current_dir): Idem.
22084 (__gnat_open_read): Idem.
22085 (__gnat_open_rw): Idem.
22086 (__gnat_open_create): Idem.
22087 (__gnat_create_output_file): Idem.
22088 (__gnat_open_append): Idem.
22089 (__gnat_open_new): Idem.
22090 (__gnat_file_time_name): Idem.
22091 (__gnat_set_file_time_name): Idem.
22092 (__gnat_stat): Idem.
22093 (win32_no_block_spawn): Idem.
22094 (__gnat_locate_exec_on_path): Idem.
22095 (__gnat_opendir): New routine.
22096 (__gnat_closedir): Idem.
22097 (__gnat_readdir): Add new parameter length (pointer to int). Update
22098 implementation to use it and add specific Win32 code for Unicode
22100 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
22101 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
22102 (convert_addresses): Do not define this dummy routine on VMS.
22104 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
22105 runtime Unicode support will be activated.
22106 (S2WS): String to Wide-String conversion. This version just copy a
22107 string in non Unicode version.
22108 (WS2S): Wide-String to String conversion. This version just copy a
22109 string in non Unicode version.
22111 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
22112 (Open): Now import __gnat_opendir from adaint.c.
22113 (Read): Change the implementation to support unicode characters. It is
22114 not possible to use strlen() on Windows as this version supports only
22115 standard ASCII characters. So the length of the directory entry is now
22116 returned from the imported __gnat_readdir routine.
22117 Update copyright notice.
22119 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
22120 (opendir): Moved to adaint.c.
22122 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
22123 (Get_Directory): Fix wrong indexing.
22124 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
22125 __gnat_getenv from env.c
22126 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
22129 * env.h, env.c: New file.
22131 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
22132 adaint.c by __gnat_getenv from env.c
22134 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
22135 adaint.c by __gnat_getenv from env.c
22137 * Make-lang.in: Add env.o in the list of C object needed by gnat1
22139 Update dependencies.
22141 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22142 Olivier Hainque <hainque@adacore.com>
22143 Eric Botcazou <ebotcazou@adacore.com>
22145 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
22147 * gigi.h (value_factor_p): Add prototype and description, now public.
22149 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
22150 promotion for field with rep clause if the associated size was proven
22152 Expand comments describing attempts to use a packable type.
22153 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
22154 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
22155 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
22156 necessary since these are not different types and pointers may
22157 actually designate any subtype in this hierarchy.
22158 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
22159 discriminants but put them into record only if not Unchecked_Union;
22160 pass flag to components_to_record showing Unchecked_Union.
22161 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
22162 components before variants; don't set TYPE_UNCHECKED_UNION_P.
22163 (components_to_record): New argument UNCHECKED_UNION.
22164 Remove special case code for Unchecked_Union and instead use main code
22165 with small changes.
22168 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
22169 variable with the expression being built, only its inner field.
22171 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
22172 emit_sequence_entry_statements.
22173 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
22174 (establish_gnat_vms_condition_handler): Move before
22175 Subprogram_Body_to_gnu.
22176 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
22177 for a subprogram if it has a foreign convention or is exported.
22178 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
22179 substituted for a CONST_DECL.
22180 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
22181 Etype to assoc_to_constructor.
22182 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
22183 discriminants of Unchecked_Union.
22184 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
22185 don't need cluttering preprocessor directives.
22186 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
22187 condition handler as current in the compiled function.
22188 (body_with_handlers_p): New function. Tell whether a given sequence of
22189 statements node is attached to a package or subprogram body and involves
22190 exception handlers possibly nested within inner block statements.
22191 (emit_sequence_entry_statements): New function, to emit special
22192 statements on entry of sequences when necessary. Establish GNAT
22193 condition handler in the proper cases for VMS.
22194 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
22195 emit_sequence_entry_statements.
22197 * utils2.c (find_common_type): If both input types are BLKmode and
22198 have a constant size, use the smaller one.
22199 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
22202 * utils.c (value_factor_p): Make public, to allow uses from other gigi
22204 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
22205 (convert, case UNION_TYPE): Remove special treatment for unchecked
22209 (update_pointer_to): Update variants of pointer types to unconstrained
22210 arrays by attaching the list of fields of the main variant.
22212 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22213 Robert Dewar <dewar@adacore.com>
22215 * a-exexpr.adb, a-exexpr-gcc.adb
22216 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
22217 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
22218 Remove code unused for exception propagation for the compiler itself
22219 from a-except.adb and update to still share separate packages.
22221 * a-except.ads, a-except.adb: Ditto.
22222 Add comments that this version is now used only by the compiler and
22223 other basic tools. The full version that includes the Ada 2005 stuff
22224 is in separate files a-except-2005.ads/adb. The reason is that we do
22225 not want to cause bootstrap problems with compilers not recognizing
22227 Add exception reason code PE_Implicit_Return
22228 Add new exception reason code (Null Exception_Id)
22230 * a-except-2005.adb, a-except-2005.ads: New files.
22232 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
22234 * s-wchcon.adb: New file.
22236 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
22237 (traceback.o deps): Likewise.
22238 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
22239 Activate build of GMEM instrumentation library on VMS targets.
22240 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
22241 Use a-except-2005.ads/adb for all run-time library builds unless
22242 specified otherwise.
22243 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
22244 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
22245 Use s-parame.adb on all native platforms.
22246 Use s-parame-vxworks.adb on all vxworks platforms.
22247 Add env.c env.h in LIBGNAT_SRCS
22248 Add env.o in LIBGNAT_OBJS
22249 (GNATMAKE_OBJS): Remove ctrl_c.o object.
22250 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
22251 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
22252 supports VxWorks 6 RTPs.
22253 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
22254 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
22256 * types.h, types.ads (Terminate_Program): New exception
22257 Add comment on modifying multiple versions of a-except.adb when the
22258 table of exception reasons is modified.
22259 Add exception reason code PE_Implicit_Return
22260 Add new exception reason code (Null Exception_Id)
22262 * clean.adb (Initialize): Get the target parameters before checking
22263 if target is OpenVMS. Move the OpenVMS specific code here from package
22264 body elaboration code.
22266 2006-02-13 Thomas Quinot <quinot@adacore.com>
22267 Vincent Celier <celier@adacore.com>
22268 Robert Dewar <dewar@adacore.com>
22270 * ali-util.adb (Get_File_Checksum): Update to account for change in
22271 profile of Initialize_Scanner.
22273 * gprep.adb (Gnatprep): Update to account for change in profile of
22274 Initialize_Scanner.
22275 (Process_One_File): Same.
22277 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
22278 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
22279 that behaviour using the new Unit information recorded in the source
22280 files table, rather than going through all units every time.
22281 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
22282 (Get_Source_Unit): Same.
22284 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
22285 change in profile of Initialize_Scanner.
22286 (Prepare_To_Preprocess): Same.
22288 * lib.ads: Fix typo in comment (templace -> template).
22290 * prj-part.adb (Parse_Single_Project): Update to account for change in
22291 profile of Initialize_Scanner.
22293 * scn.adb (Initialize_Scanner): Account for change in profile of
22294 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
22295 Also record the association of the given Source_File_Index to the
22296 corresponding Unit_Number_Type.
22298 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
22300 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
22301 Remove Unit formal for generic scanner: this formal
22302 is only relevant to Scn (the scanner instance used to parse Ada source
22303 files), not to other instances. Update comment accordingly.
22304 (Scan): Use new function Snames.Is_Keyword_Name.
22306 * sinfo-cn.adb: Fix typo in comment.
22308 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
22311 * sinput.ads (Source_File_Record): New component Unit, used to capture
22312 the unit identifier (if any) associated to a source file.
22314 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
22315 Unit in Source_File_Record.
22317 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
22318 in profile of Initialize_Scanner.
22320 * scans.adb (Initialize_Ada_Keywords): New procedure
22322 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
22323 Ada keywords in the Namet table, without the need to call
22324 Initialize_Scanner.
22326 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
22327 (Is_Keyword_Name): New function
22329 * snames.ads: Add subtype Configuration_Pragma_Names
22330 Add pragma Ada_2005 (synonym for Ada_05)
22331 (Is_Keyword_Name): New function
22333 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
22335 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22337 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
22340 * a-stwima.adb (To_Set): Add extra check when N = 0.
22342 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
22344 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22346 * s-parame-mingw.adb, s-parame-linux.adb,
22347 s-parame-solaris.adb: Removed, replaced by s-parame.adb
22349 * s-parame-vxworks.ads: Fix typo.
22351 * s-parame-vxworks.adb: New file.
22353 * s-parame.adb: Version now used by all native platforms.
22354 (Default_Stack_Size): Use 2 megs for default stack size and use
22355 __gl_default_stack_size when available.
22356 (Minimum_Stack_Size): Use 12K.
22358 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
22359 (Create_Task): Refine implementation taking advantage of the XP stack
22360 size support. On XP, we now create the thread using the flag
22361 STACK_SIZE_PARAM_IS_A_RESERVATION.
22363 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
22365 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
22366 XP and 0 on older Windows versions.
22368 * interfac-vms.ads: Removed, no longer used.
22370 2006-02-13 Matthew Heaney <heaney@adacore.com>
22372 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
22373 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
22374 a-cohase.adb: All explicit raise statements now include an exception
22377 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
22378 (Update_Element_Preserving_Key): renamed op to just Update_Element.
22379 Explicit raise statements now include an exception message
22381 * a-cihase.ads, a-cohase.ads: Removed comment.
22383 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
22384 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
22385 a-szbzha.adb, a-szfzha.ads: New files.
22387 2006-02-13 Matthew Heaney <heaney@adacore.com>
22389 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
22392 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
22394 * lang.opt: Wvariadic-macros: New option.
22395 Wold-style-definition: Likewise.
22396 Wmissing-format-attribute: Likewise.
22398 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
22399 -Wold-style-definition and -Wmissing-format-attribute.
22401 2006-02-13 Robert Dewar <dewar@adacore.com>
22403 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
22405 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
22407 2006-02-13 Nicolas Roche <roche@adacore.com>
22409 * a-envvar.adb, a-envvar.ads: New files.
22411 2006-02-13 Douglas Rupp <rupp@adacore.com>
22413 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
22415 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
22417 2006-02-13 Pat Rogers <rogers@adacore.com>
22419 * a-rttiev.adb, a-rttiev.ads: New files.
22421 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
22423 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
22424 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
22426 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
22428 2006-02-13 Robert Dewar <dewar@adacore.com>
22430 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
22431 sem_case.adb: Minor code reorganization (not Present should be No)
22433 2006-02-13 Geert Bosch <bosch@adacore.com>
22434 Gary Dismukes <dismukes@adacore.com>
22436 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
22437 0, since the lower bound of the actual string may be greater than one.
22440 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
22441 layout is requested.
22443 2006-02-13 Vincent Celier <celier@adacore.com>
22445 * back_end.adb (Scan_Compiler_Arguments): Check if
22446 Search_Directory_Present is True and, if it is, add the argument in
22447 the source search directory path.
22449 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
22450 Search_Directory_Present to True.
22452 2006-02-13 Joel Brobecker <brobecke@adacore.com>
22454 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
22455 volatile, to tell the compiler to preserve this variable at any level
22457 (Gen_Versions_Ada): Temporarily work around codegen bug.
22459 2006-02-13 Vincent Celier <celier@adacore.com>
22461 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
22462 gcc to link with option -shared-libgcc.
22463 (Gnatlink): Remove duplicate switches -shared-libgcc
22465 2006-02-13 Robert Dewar <dewar@adacore.com>
22467 * gnatvsn.ads (Current_Year): New constant, used to easily update
22468 copyright on all GNAT tools.
22470 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
22473 2006-02-13 Robert Dewar <dewar@adacore.com>
22475 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
22476 after hyphen (small aesthetic change useful for a range of numbers
22478 Suppress range checks for a couple of assignments which otherwise
22479 cause validity checks with validity checking turned on.
22481 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
22482 Improvement in error message for object.
22483 (Rep_Item_Too_Late): Remove '!' in warning message.
22485 2006-02-13 Robert Dewar <dewar@adacore.com>
22486 Eric Botcazou <ebotcazou@adacore.com>
22488 * err_vars.ads: Suppress range checks for a couple of assignments
22489 which otherwise cause validity checks with validity checking turned on.
22492 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
22493 Make message unconditional if it is a warning.
22494 (Error_Msg_NEL): Always output warning messages.
22495 Suppress range checks for a couple of assignments which otherwise
22496 cause validity checks with validity checking turned on.
22498 * errout.ads (Message Insertion Characters): Document that '!' is
22499 implied by '?' in error messages.
22501 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
22502 (Gnat1drv): Use a goto to end of main subprogram instead of
22503 Exit_Program (E_Success) so that finalization can occur normally.
22505 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
22507 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
22510 2006-02-13 Vincent Celier <celier@adacore.com>
22512 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
22513 Unchecked_Conversion functions.
22514 (Modification_Time): Use direct conversion of OS_Time to Calendar time
22515 when OpenVMS returns False.
22517 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
22518 a-dirval.adb (OpenVMS): New Boolean function
22520 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22521 Thomas Quinot <quinot@adacore.com>
22523 * checks.adb (Build_Discriminant_Checks): If the expression being
22524 checks is an aggregate retrieve the values of its discriminants to
22525 generate the check, rather than creating a temporary and a reference
22527 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
22528 (Install_Null_Excluding_Check): Ditto
22529 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
22530 not for the renamed object, so that the actual itype is attached in the
22533 2006-02-13 Robert Dewar <dewar@adacore.com>
22534 Vincent Celier <celier@adacore.com>
22536 * debug.adb: Eliminate numeric switches for binder/gnatmake
22538 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
22539 switches for the compiler.
22540 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
22541 (Scan_Make_Switches): When failing with an illegal switch, output an
22542 error message with the full switch.
22543 Eliminate numeric switches for binder/gnatmake
22545 * switch.ads, switch.adb (Bad_Switch): New procedure
22547 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
22548 Remove 0-9 as debug flag character possibilities
22549 -d is now controlling the primary stack size when its value is a
22550 positive. Also add checks against invalid values, and support for kb,
22551 mb. Ditto for -D switch.
22553 2006-02-13 Robert Dewar <dewar@adacore.com>
22554 Serguei Rybin <rybin@adacore.com>
22556 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
22557 save/restore routines.
22558 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
22559 were not always properly handled previously.
22560 Since we are changing the tree format anyway, also get rid of the
22561 junk obsolete Immediate_Errors flag.
22562 (Tree_Read): Change the way of reading Tree_Version_String - now we
22563 read the version string from the tree even if its length is not the
22564 same as the length of the version string computed from Gnatvsn.
22565 (Search_Directory_Present): New Boolean flag for the compiler.
22566 Define Tree_Version_String as a dynamic string.
22567 (Default_Stack_Size): new variable, used to handle switch -d.
22570 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
22571 only for main unit.
22572 Add pragma Ada_2005 (synonym for Ada_05)
22573 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
22574 were not always properly handled previously.
22576 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
22577 explicit Ada_95 to Ada_2005.
22579 2006-02-13 Javier Miranda <miranda@adacore.com>
22580 Robert Dewar <dewar@adacore.com>
22581 Ed Schonberg <schonberg@adacore.com>
22583 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
22584 against errors in the source program: a private types for which the
22585 corresponding full type declaration is missing and pragma CPP_Virtual
22587 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
22588 (Is_Known_Null): New flag
22589 (Has_Pragma_Pure): New flag
22590 (No_Return): Present in all entities, set only for procedures
22591 (Is_Limited_Type): A type whose ancestor is an interface is limited if
22592 explicitly declared limited.
22593 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
22594 entities. Only used for component marked Is_Tag. If present it stores
22595 the Offset_To_Top function used to provide this value in tagged types
22596 whose ancestor has discriminants.
22598 * exp_ch2.adb: Update status of new Is_Known_Null flag
22600 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
22602 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
22603 the categorization sense if Is_Pure was set by pragma Pure_Function.
22605 2006-02-13 Quentin Ochem <ochem@adacore.com>
22606 Olivier Hainque <hainque@adacore.com>
22608 * bindusg.adb: Updated documentation for -d and -D switches.
22610 * raise.h (__gnat_set_globals): added new parameter for
22611 Default_Stack_Size.
22613 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
22614 (__gnat_handle_vms_condition): Adjust context before raise.
22615 (__gnat_install_handler): Restore the global vector setup for GCC
22616 versions before 3.4, as the frame based circtuitry is not available
22618 (__gnat_set_globals): added a parameter default_stack_size
22619 (__gl_default_stack_size): new variable.
22621 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22623 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
22624 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
22625 does not exist in the Ada RM.
22626 (Compatible_Int_Bounds): Determine whether two integer range bounds
22627 are of equal length and have the same start and end values.
22628 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
22629 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
22630 aggregate when it is part of an object declaration.
22631 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
22632 constrains discriminants of its parent, add explicitly the discriminant
22633 constraints of the ancestor by retrieving them from the
22634 stored_constraint of the parent.
22636 2006-02-13 Robert Dewar <dewar@adacore.com>
22638 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
22639 attribute Mechanism_Code is applied to renamed subprogram, modify
22640 prefix to point to base subprogram.
22641 Max/Min attributes now violate Restriction No_Implicit_Conditionals
22643 * sinfo.ads: Document that Mechanism_Code cannot be applied to
22644 renamed subprograms so that the front-end must replace the prefix
22647 2006-02-13 Javier Miranda <miranda@adacore.com>
22648 Gary Dismukes <dismukes@adacore.com>
22650 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
22651 availability of RE_Interface_Tag.
22652 (Build_Initialization_Call): Fix wrong access to the discriminant value.
22653 (Freeze_Record_Type): Do not generate the tables associated with
22654 timed and conditional dispatching calls through synchronized
22655 interfaces if compiling under No_Dispatching_Calls restriction.
22656 When compiling for Ada 2005, for a nonabstract
22657 type with a null extension, call Make_Controlling_Function_Wrappers
22658 and insert the wrapper function declarations and bodies (the latter
22659 being appended as freeze actions).
22660 (Predefined_Primitive_Bodies): Do not generate the bodies of the
22661 predefined primitives associated with timed and conditional
22662 dispatching calls through synchronized interfaces if we are
22663 compiling under No_Dispatching_Calls.
22664 (Build_Init_Procedure): Use RTE_Available to check if a run-time
22665 service is available before generating a call.
22666 (Make_Controlling_Function_Wrappers): New procedure.
22667 (Expand_N_Full_Type_Declaration): Create a class-wide master for
22668 access-to-limited-interfaces because they can be used to reference
22669 tasks that implement such limited interface.
22670 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
22671 procedure spec and body of the Offset_To_Top function that is generated
22672 when the parent of a type with discriminants has secondary dispatch
22674 (Init_Secondary_Tags): Handle the case in which the parent of the type
22675 containing secondary dispatch tables has discriminants to generate the
22676 correct arguments to call Set_Offset_To_Top.
22677 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
22679 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
22680 Add Wide_[Wide_]Expanded_Name.
22681 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
22682 the same functionality of Get_Prim_Op_Address but applied to predefined
22683 primitive operations because the pointers to the predefined primitives
22684 are now saved in a separate table.
22685 (Parent_Size): Modified to get access to the separate table of primitive
22686 operations or the parent type.
22687 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
22688 functionality of Set_Prim_Op_Address but applied to predefined primitive
22690 (Set_Signature): New subprogram used to store the signature of a DT.
22691 (Displace): If the Offset_To_Top value is not static then call the
22692 function generated by the expander to get such value; otherwise use
22693 the value stored in the table of interfaces.
22694 (Offset_To_Top): The type of the actual has been changed to Address to
22695 give the correct support to tagged types with discriminants. In this
22696 case this value is stored just immediately after the tag field.
22697 (Set_Offset_To_Top): Two new formals have been added to indicate if the
22698 offset_to_top value is static and hence pass this value to the run-time
22699 to store it in the table of interfaces, or else if this value is dynamic
22700 and then pass to the run-time the address of a function that is
22701 generated by the expander to provide this value for each object of the
22704 * rtsfind.ads (Default_Prin_Op_Count): Removed.
22705 (Default_Prim_Op_Count): New entity
22706 (Get_Predefined_Prim_Op_Address): New entity
22707 (Set_Predefined_Prim_Op_Address): New entity
22708 (RE_Set_Signature): New entity
22710 2006-02-13 Thomas Quinot <quinot@adacore.com>
22711 Ed Schonberg <schonberg@adacore.com>
22713 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
22714 Make_Adjust_Call done for a newly-allocated object.
22716 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
22717 in a subprogram are wrapped in a cleanup block, indicate that the
22718 subprogram contains an inner block with an exception handler.
22719 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
22720 Adjust call is for a newly-allocated object. In that case we must not
22721 assume that the finalization list chain pointers are correct (since they
22722 come from a bit-for-bit copy of the original object's pointers) so if
22723 the attach level would otherwise be zero (no change), we set it to 4
22724 instead to cause the pointers to be reset to null.
22726 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
22727 reset chain pointers to null.
22729 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22731 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
22732 string, and the context requires a loop for the assignment (e.g.
22733 because the left-hand side is packed), generate a unique name for the
22734 temporary that holds the string, to prevent spurious name clashes.
22736 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22737 Javier Miranda <miranda@adacore.com>
22738 Robert Dewar <dewar@adacore.com>
22739 Gary Dismukes <dismukes@adacore.com>
22741 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
22742 return unconstrained arrays.
22744 (Expand_Call): An indirect call through an access parameter of a
22745 protected operation is not a protected call.
22746 Add circuit to raise CE in Ada 2005 mode following call
22747 to Raise_Exception.
22748 (Register_DT_Entry): Do nothing if
22749 the run-time does not give support to abstract interfaces.
22750 (Freeze_Subprogram): In case of dispatching operations, do not generate
22751 code to register the operation in the dispatch table if the source
22752 is compiled with No_Dispatching_Calls.
22753 (Register_Predefined_DT_Entry): Generate code that calls the new
22754 run-time subprogram Set_Predefined_Prim_Op_Address instead of
22755 Set_Prim_Op_Address.
22757 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
22758 on array assignments if the right-hand side is a function call that has
22759 been inlined. Check is performed on the assignment in the block.
22760 (Process_Bounds): If bounds and range are overloaded, apply preference
22761 rule for root operations to disambiguate, and diagnose true ambiguity.
22762 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
22763 a tag-indeterminate right-hand side even when Expander_Active is True.
22764 Needed to ensure that dispatching calls to T'Input are allowed and
22765 get the tag of the target class-wide object.
22767 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
22768 an inherited primitive operation that already overrides several
22769 abstract interface primitives. For transitivity, the new entity must
22770 also override all the abstract interface primitives covered by the
22771 inherited overriden primitive.
22772 Emit warning if new entity differs from homograph in same scope only in
22773 that one has an access parameter and the other one has a parameter of
22774 a general access type with the same designated type, at the same
22775 position in the signature.
22776 (Make_Inequality_Operator): Use source locations of parameters and
22777 subtype marks from corresponding equality operator when creating the
22778 tree structure for the implicit declaration of "/=". This does not
22779 change anything in behaviour except that the decoration of the
22780 components of the subtree created for "/=" allows ASIS to get the
22781 string images of the corresponding identifiers.
22782 (Analyze_Return_Statement): Remove '!' in warning message.
22783 (Check_Statement_Sequence): Likewise.
22784 (Analyze_Subprogram_Body): For an access parameter whose designated type
22785 is an incomplete type imported through a limited_with clause, use the
22786 type of the corresponding formal in the body.
22787 (Check_Returns): Implicit return in No_Return procedure now raises
22788 Program_Error with a compile time warning, instead of beging illegal.
22789 (Has_Single_Return): Function returning unconstrained type cannot be
22790 inlined if expression in unique return statement is not an identifier.
22791 (Build_Body_To_Inline): It is possible to inline a function call that
22792 returns an unconstrained type if all return statements in the function
22793 return the same local variable. Subsidiary procedure Has_Single_Return
22794 verifies that the body conforms to this restriction.
22796 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
22797 same type, and one of them is of an anonymous access type, convert
22798 the other operand to it, so that this is a valid binary operation for
22800 (Resolve_Type_Conversion): Handle subtypes of protected types and
22801 task types when accessing to the corresponding record type.
22802 (Resolve_Allocator): Add '\' in 2-line warning message.
22803 Remove '!' in warning message.
22804 (Resolve_Call): Add '\' in 2-line warning message.
22805 (Valid_Conversion): Likewise.
22806 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
22807 resulting type may be an access type with an implicit dereference.
22808 Obtain the proper component from the designated type.
22809 (Make_Call_Into_Operator): Handle properly a call to predefined equality
22810 given by an expanded name with prefix Standard, when the operands are
22811 of an anonymous access type.
22812 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
22813 Explicit_Dereference and Resolve_Selected_Component, to verify that the
22814 prefix of the expression is not of an incomplete type. Allows full
22815 diagnoses of all semantic errors.
22816 (Resolve_Actuals): If the actual is an allocator whose directly
22817 designated type is a class-wide interface we build an anonymous
22818 access type to use it as the type of the allocator. Later, when
22819 the subprogram call is expanded, if the interface has a secondary
22820 dispatch table the expander will add a type conversion to force
22821 the displacement of the pointer.
22822 (Resolve_Call): If a function that returns an unconstrained type is
22823 marked Inlined_Always and inlined, the call will be inlined and does
22824 not require the creation of a transient scope.
22825 (Check_Direct_Boolean_Op): Removed
22826 (Resolve_Comparison_Op): Remove call to above
22827 (Resolve_Equality_Op): Remove call to above
22828 (Resolve_Logical_Op): Inline above, since this is only call.
22829 (Valid_Conversion): Handle properly conversions between arrays of
22830 convertible anonymous access types.
22833 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
22834 the literal in an unchecked conversion, because GCC 4.x needs a static
22835 value for a string bound.
22837 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22838 Hristian Kirtchev <kirtchev@adacore.com>
22840 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
22841 components of the corresponding record, take into account component
22842 definitions that are access definitions.
22843 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
22844 procedure is not considered a dispatching call and will be expanded
22847 2006-02-13 Javier Miranda <miranda@adacore.com>
22849 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
22850 controlling argument of the dispatching call is an abstract interface
22851 class-wide type then we use it directly.
22852 Check No_Dispatching_Calls restriction.
22853 (Default_Prim_Op_Position): Remove the code that looks for the last
22854 entity in the list of aliased subprograms. This code was wrong in
22856 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
22857 when the source is compiled with the No_Dispatching_Calls restriction.
22858 (Init_Predefined_Interface_Primitives): No need to inherit primitives
22859 if we are compiling with restriction No_Dispatching_Calls.
22860 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
22861 subprograms if we are compiling under No_Dispatching_Calls restriction.
22862 (Make_DT): Generate a dispatch table with a single dummy entry if
22863 we are compiling with the No_Dispatching_Calls restriction. In
22864 addition, in this case we don't generate code that calls to the
22865 following run-time subprograms: Set_Type_Kind, Inherit_DT.
22866 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
22867 of this subprogram if compiling with the No_Dispatching_Calls
22869 (Expand_Type_Conversion): Instead of using the actual parameter,
22870 the argument passed as parameter to the conversion function was
22871 erroneously referenced by the expander.
22872 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
22873 Set_Predefined_Primitive_Op_Address and Set_Signature.
22874 (Expand_Dispatching_Call): Generate call to
22875 Get_Predefined_Prim_Op_Address for predefined primitives.
22876 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
22877 predefined primitives.
22878 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
22879 primitives we reserve one dummy entry to ensure that the tag does not
22880 point to some memory that is associated with some other object. In
22881 addition, remove all the old code that generated the assignments
22882 associated with the signature of the dispatch table and replace them
22883 by a call to the new subprogram Set_Signature.
22884 (Set_All_DT_Position): Change the algorithm because now we have a
22885 separate dispatch table associated with predefined primitive operations.
22886 (Expand_Interface_Conversion): In case of non-static offset_to_top
22887 add explicit dereference to get access to the object after the call
22888 to displace the pointer to the object.
22889 (Expand_Interface_Thunk): Modify the generation of the actual used
22890 in the calls to the run-time function Offset_To_Top to fulfil its
22892 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
22894 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22896 * exp_dist.adb (Copy_Specification): For access parameters, copy
22897 Null_Exclusion flag, which will have been set for stream subprograms
22900 2006-02-13 Pascal Obry <obry@adacore.com>
22902 * expect.c (__gnat_expect_portable_execvp): New implementation. The
22903 previous implementation was using the C runtime spawnve routine but
22904 the corresponding wait was using directly the Win32 API. This was
22905 causing some times a lock when waiting for an event using
22906 WaitForSingleObject in __gnat_waitpid. This new implementation uses
22907 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
22908 API fixes this problem.
22910 2006-02-13 Robert Dewar <dewar@adacore.com>
22912 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
22915 2006-02-13 Thomas Quinot <quinot@adacore.com>
22917 * exp_pakd.ads: Fix typos in comments.
22919 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
22920 array reference that is an explicit dereference, mark the converted
22921 (packed) array reference as analyzed to prevent a forthcoming
22922 reanalysis from resetting its type to the original (non-packed) array
22925 2006-02-13 Ed Schonberg <schonberg@adacore.com>
22926 Javier Miranda <miranda@adacore.com>
22927 Eric Botcazou <ebotcazou@adacore.com>
22929 * exp_util.ads, exp_util.adb (Find_Prim_Op,
22930 Is_Predefined_Primitive_Operation): When
22931 searching for the predefined equality operator, verify that operands
22932 have the same type.
22933 (Is_Predefined_Dispatching_Operation): Remove the code that looks
22934 for the last entity in the list of aliased subprograms. This code
22935 was wrong in case of renamings.
22936 (Set_Renamed_Subprogram): New procedure
22937 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
22938 Exp_Type constant computed when entering this subprogram.
22939 (Known_Null): New function
22940 (OK_To_Do_Constant_Replacement): New function
22941 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
22942 (Side_Effect_Free): An attribute reference 'Input is not free of
22943 side effect, unlike other attributes that are functions. (from code
22945 (Remove_Side_Effects): Expressions that involve packed arrays or records
22946 are copied at the point of reference, and therefore must be marked as
22947 renamings of objects.
22948 (Is_Predefined_Dispatching_Operation): Return false if the operation is
22949 not a dispatching operation.
22952 (Remove_Side_Effects): Lift enclosing type conversion nodes for
22953 elementary types in all cases.
22955 2006-02-13 Javier Miranda <miranda@adacore.com>
22957 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
22958 task types when accessing to the corresponding record type.
22959 Remove '!' in warning message.
22961 2006-02-13 Olivier Hainque <hainque@adacore.com>
22963 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
22964 to avoid useless and space inefficient overalignments on targets where
22965 Max_Alignment is larger than 16.
22967 2006-02-13 Pascal Obry <obry@adacore.com>
22969 * g-catiio.adb (Sec_Number): New type used to compute the number of
22970 seconds since 1-1-1970.
22971 (Image) [Natural]: The parameter was an Integer, as we can't deal with
22972 negative numbers (years, months...) it is better to have a Natural here.
22974 (Image) [Number]: Change parameter from Long_Integer to Number.
22975 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
22976 overflow for dates past year 2038.
22978 2006-02-13 Matthew Heaney <heaney@adacore.com>
22980 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
22983 2006-02-13 Arnaud Charlet <charlet@adacore.com>
22985 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
22987 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
22988 finalization can occur normally.
22990 2006-02-13 Vincent Celier <celier@adacore.com>
22992 * gnatcmd.adb (Rules_Switches): New table
22993 (Add_To_Rules_Switches): New procedure
22994 (GNATCmd): For command CHECK, put all options following "-rules" in the
22995 Rules_Switches table. Append these -rules switches after the -cargs
22998 2006-02-13 Robert Dewar <dewar@adacore.com>
23000 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
23001 These two cases were generating incorrect output, and if this unit
23002 was built with checks on, generated a discriminant mismatch constraint
23005 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23006 Robert Dewar <dewar@adacore.com>
23008 * lib-xref.adb (Get_Type_Reference): For a private type whose full
23009 view is an array type, indicate the component type as well, for
23010 navigation purposes.
23011 (Generate_Reference): Don't consider array ref on LHS to be a case
23012 of violating pragma Unreferenced.
23013 Do not give Ada 2005 warning except on real reference.
23015 2006-02-13 Vincent Celier <celier@adacore.com>
23017 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
23018 main source, add switch -mdebug-main=_ada_ so that the executable can
23019 be debugged by the standard VMS debugger.
23020 (Gnatmake): Set No_Main_Subprogram to True when there is no main
23021 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
23022 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
23023 of the last source, as the binding and linking phases are never
23025 Set all executable obsolete when rebuilding a library.
23027 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
23030 2006-02-13 Javier Miranda <miranda@adacore.com>
23033 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
23034 code to improve the error message reported when the program has
23035 declarations of abstract interface types and it is not compiled with
23036 the -gnat05 switch.
23037 (P_Access_Definition): Reorganize the code to improve the error
23038 message reported when the new Ada 2005 syntax for anonymous
23039 access types is used and the program is not compiled with the
23042 2006-02-13 Robert Dewar <dewar@adacore.com>
23044 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
23045 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
23048 2006-02-13 Javier Miranda <miranda@adacore.com>
23050 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
23051 against source containing syntax errors.
23053 2006-02-13 Vincent Celier <celier@adacore.com>
23055 * prj.adb (Reset): Initialize the first element of table Namings with
23056 the standard naming data.
23058 2006-02-13 Vincent Celier <celier@adacore.com>
23060 * prj.ads (Error_Warning): New enumeration type
23062 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
23063 unknown, use the location of the project to report the error.
23064 (When_No_Sources): New global variable
23065 (Report_No_Ada_Sources): New procedure
23066 (Check): New parameter When_No_Sources. Set value of global variable
23068 (Find_Sources): Call Report_No_Ada_Sources when appropriate
23069 (Get_Sources_From_File): Ditto
23070 (Warn_If_Not_Sources): Better warning messages indicating the unit name
23073 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
23074 Call Prj.Proc.Process with parameter When_No_Sources.
23076 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
23077 Call Recursive_Check with parameter When_No_Sources.
23078 (Recursive_Check): New parameter When_No_Sources. Call itself and
23079 Prj.Nmsc.Check with parameter When_No_Sources.
23080 (Process): New parameter When_No_Sources. Call Check with parameter
23082 (Copy_Package_Declarations): New procedure to copy renamed parameters
23083 and setting the location of the declared attributes to the location
23084 of the renamed package.
23085 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
23088 2006-02-13 Vincent Celier <celier@adacore.com>
23090 * prj-makr.adb (Make): Preserve the comments from the original project
23092 When removing nodes (attributes Source_Dirs, Source_Files,
23093 Source_List_File and package Naming), save the comments and attach the
23094 saved comments to the newly created nodes.
23095 Do not add a with clause for the naming package if one already exists.
23097 2006-02-13 Javier Miranda <miranda@adacore.com>
23098 Gary Dismukes <dismukes@adacore.com>
23099 Robert Dewar <dewar@adacore.com>
23101 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
23103 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
23104 aliased entities to look for the overriden abstract interface
23106 (Is_Interface_Subprogram): Complete documentation.
23107 (Check_Dispatching_Operation): Do not generate code to register the
23108 operation in the dispatch table if the source is compiled with
23109 restriction No_Dispatching_Calls.
23110 (Override_Dispatching_Operation): Check for illegal attempt to override
23111 No_Return procedure with procedure that is not No_Return
23112 (Check_Dispatching_Call): Suppress the check for an abstract operation
23113 when the original node of an actual is a tag-indeterminate attribute
23114 call, since the attribute, which must be 'Input, can never be abstract.
23115 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
23116 call to the Input attribute (even when rewritten).
23117 (Propagate_Tag): Augment comment to indicate the possibility of a call
23118 to an Input attribute.
23120 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
23121 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
23123 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
23124 No_Wide_Characters is no longer partition-wide
23125 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
23128 2006-02-13 Douglas Rupp <rupp@adacore.com>
23130 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
23132 2006-02-13 Javier Miranda <miranda@adacore.com>
23134 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
23135 handles default-initialized components to keep separate the management
23136 of this feature but also avoid the unrequired resolution and
23137 expansion of components that do not have partially initialized
23139 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
23140 (Check_Bounds): Likewise.
23141 (Check_Length): Likewise.
23143 2006-02-13 Javier Miranda <miranda@adacore.com>
23144 Ed Schonberg <schonberg@adacore.com>
23146 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
23147 abstract interface type call analyze_and_resolve to expand the type
23148 conversion into the corresponding displacement of the
23149 reference to the base of the object.
23150 (Eval_Attribute, case Width): For systems where IEEE extended precision
23151 is supported, the maximum exponent occupies 4 decimal digits.
23152 (Accessibility_Message): Add '\' in 2-line warning message.
23153 (Resolve_Attribute): Likewise.
23154 (case Attribute_Access): Significantly revise checks
23155 for illegal access-to-subprogram Access attributes to properly enforce
23156 the rules of 3.10.2(32/2).
23157 Diagnose use of current instance with an illegal attribute.
23159 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
23161 (Enclosing_Generic_Unit): New function to return a node's innermost
23162 enclosing generic declaration node.
23163 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
23164 (Type_Access_Level): The accessibility level of anonymous acccess types
23165 associated with discriminants is that of the current instance of the
23166 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
23167 (Compile_Time_Constraint_Error): Handle case of conditional expression.
23168 (Kill_Current_Values_For_Entity): New function
23169 (Enter_Name): Change formal type to Entity_Id
23171 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23172 Ed Schonberg <schonberg@adacore.com>
23173 Gary Dismukes <dismukes@adacore.com>
23175 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
23176 Analyze_Compilation_Unit.
23177 Detect and warn on redundant with clauses detected in a package spec
23178 and/or body when -gnatwr is used.
23179 (Analyze_Context): Analyze config pragmas before other items
23180 (Install_Context_Items): Don't analyze config pragmas here
23181 (Install_Limited_Withed_Unit): Set limited entity of package in
23182 with_clause so that cross-reference information or warning messages on
23183 unused packages can be properly generated
23184 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
23185 has Error_Posted set. Prevent infinite loops in illegal programs.
23186 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
23187 to the point of the error test requiring the current unit to be private.
23188 This ensures that private with clauses are not exempted from the basic
23189 checking for being a descendant of the same library unit parent as a
23190 withed private descendant unit.
23191 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
23192 handle private with clauses properly, as well as to account for cases
23193 where the withed unit is a public descendant of a private ancestor
23194 (in which case the current unit must be a descendant of the private
23195 ancestor's parent). The spec comments were updated accordingly. Also,
23196 the old error message in this subprogram was replaced with error
23197 messages that mirror the errors tested and reported by
23198 Check_Private_Child_Unit.
23199 Parameter and variable names improved for readability.
23200 (Install_Limited_Context_Clauses): Remove test for a withed unit being
23201 private as the precondition for calling
23202 Check_Private_Limited_Withed_Unit since that subprogram has been
23203 revised to test public units as well as private units.
23205 2006-02-13 Thomas Quinot <quinot@adacore.com>
23206 Robert Dewar <dewar@adacore.com>
23207 Ed Schonberg <schonberg@adacore.com>
23208 Javier Miranda <miranda@adacore.com>
23210 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
23211 that Scope_Stack.First = 1.
23212 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23213 were not always properly handled previously.
23214 (Formal_Entity): Complete rewrite, to handle properly some complex case
23215 with multiple levels of parametrization by formal packages.
23216 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
23217 to the corresponding derived type declaration for proper semantics.
23219 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
23220 (Check_Component): Enforce restriction on components of
23221 unchecked_unions: a component in a variant cannot contain tasks or
23223 (Unchecked_Union): Allow nested variants and multiple discriminants, to
23225 Add pragma Ada_2005 (synonym for Ada_05)
23226 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23227 were not always properly handled previously.
23228 Document that pragma Propagate_Exceptions has no effect
23229 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
23230 (Set_Convention_From_Pragma): Check that if a convention is
23231 specified for a dispatching operation, then it must be
23232 consistent with the existing convention for the operation.
23233 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
23234 longer required to specify an vtable-ptr component in the record. For
23235 compatibility reasons we leave the support for the previous definition.
23236 (Analyze_Pragma, case No_Return): Allow multiple arguments
23238 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
23239 non-overrideen inherited operation with a controlling result as
23240 illegal only its implicit declaration comes from the derived type
23241 declaration of its result's type.
23242 (Check_Possible_Deferred_Completion): Relocate the object definition
23243 node of the subtype indication of a deferred constant completion rather
23244 than directly analyzing it. The analysis of the generated subtype will
23245 correctly decorate the GNAT tree.
23246 (Record_Type_Declaration): Check whether this is a declaration for a
23247 limited derived record before analyzing components.
23248 (Analyze_Component_Declaration): Diagnose record types not explicitly
23249 declared limited when a component has a limited type.
23250 (Build_Derived_Record_Type): Code reorganization to check if some of
23251 the inherited subprograms of a tagged type cover interface primitives.
23252 This check was missing in case of a full-type associated with a private
23254 (Constant_Redeclaration): Check that the subtypes of the partial and the
23255 full view of a constrained deferred constant statically match.
23256 (Mentions_T): A reference to the current type in an anonymous access
23257 component declaration must be an entity name.
23258 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
23259 class_wide type to refer to full type, not to the incomplete one.
23260 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
23261 available. Required to give support to the certified run-time.
23262 (Analyze_Component_Declaration): In case of anonymous access components
23263 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
23264 (Process_Discriminants): For an access discriminant, use the
23265 discriminant specification as the associated_node_for_itype, to
23266 simplify accessibility checks.
23268 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23269 Javier Miranda <miranda@adacore.com>
23271 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
23272 abstract interpretations on an operator, remove interpretations that
23273 yield Address or a type derived from it, if one of the operands is an
23275 (Try_Object_Operation.Try_Primitive_Operation,
23276 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
23277 location when creating the new reference to a primitive or class-wide
23278 operation as a part of rewriting a subprogram call.
23279 (Try_Primitive_Operations): If context requires a function, collect all
23280 interpretations after the first match, because there may be primitive
23281 operations of the same type with the same profile and different return
23282 types. From code reading.
23283 (Try_Primitive_Operation): Use the node kind to choose the proper
23284 operation when a function and a procedure have the same parameter
23286 (Complete_Object_Operation): If formal is an access parameter and prefix
23287 is an object, rewrite as an Access reference, to match signature of
23288 primitive operation.
23289 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
23290 by an expanded name with prefix Standard, when the operands are of an
23291 anonymous access type.
23292 (Remove_Abstract_Operations): If the operation is abstract because it is
23293 inherited by a user-defined type derived from Address, remove it as
23294 well from the set of candidate interpretations of an overloaded node.
23295 (Analyze_Membership_Op): Membership test not applicable to cpp-class
23298 2006-02-13 Bob Duff <duff@adacore.com>
23300 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
23301 redundant use clauses.
23302 In particular, if the scope of two use clauses overlaps, but one is not
23303 entirely included in the other, we should not warn. This can happen
23304 with nested packages.
23305 (Analyze_Subprogram_Renaming): Protect the compiler against previously
23306 reported errors. The bug was reported when the compiler was built
23307 with assertions enabled.
23308 (Find_Type): If the node is a 'Class reference and the prefix is a
23309 synchronized type without a corresponding record, return the type
23312 2006-02-13 Javier Miranda <miranda@adacore.com>
23314 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
23315 if this is the full-declaration associated with a private declaration
23316 that implement interfaces, then the private type declaration must be
23318 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
23319 as aliased. The use of the 'access attribute is not available for such
23320 object (for this purpose the object should be explicitly marked as
23321 aliased, but being an anonymous type this is not possible).
23323 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23324 Robert Dewar <dewar@adacore.com>
23326 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
23327 compilation unit is an elaboration scope.
23328 (Add_Task_Proc): Add '\' in 2-line warning message.
23329 (Activate_All_Desirable): Deal with case of unit with'ed by parent
23331 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23332 Javier Miranda <miranda@adacore.com>
23334 * sem_type.adb (Write_Overloads): Improve display of candidate
23336 (Add_One_Interp): Do not add to the list of interpretations aliased
23337 entities corresponding with an abstract interface type that is an
23338 immediate ancestor of a tagged type; otherwise we have a dummy
23339 conflict between this entity and the aliased entity.
23340 (Disambiguate): The predefined equality on universal_access is not
23341 usable if there is a user-defined equality with the proper signature,
23342 declared in the same declarative part as the designated type.
23343 (Find_Unique_Type): The universal_access equality operator defined under
23344 AI-230 does not cover pool specific access types.
23345 (Covers): If one of the types is a generic actual subtype, check whether
23346 it matches the partial view of the other type.
23348 2006-02-13 Thomas Quinot <quinot@adacore.com>
23350 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
23351 line. This is necessary to allow In_Extended_Main_Unit to provide
23352 correct results for itypes while writing out expanded source.
23353 (Close_File): No need to update the source_index_table here since it's
23354 now done for each line.
23356 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23357 Robert Dewar <dewar@adacore.com>
23359 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
23360 preserve the source unit where the itype is declared, and prevent a
23362 (Note_Implicit_Run_Time_Call): New procedure
23363 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
23366 * sprint.ads: Document use of $ for implicit run time routine call
23368 2006-02-13 Quentin Ochem <ochem@adacore.com>
23370 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
23373 2006-02-13 Bob Duff <duff@adacore.com>
23375 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
23376 Scan_Unsigned, so we do not scan leading blanks and sign twice.
23377 Integer'Value("- 5") and Integer'Value("-+5") now correctly
23378 raise Constraint_Error.
23380 * s-vallli.adb (Scan_Long_Long_Integer): Call
23381 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
23382 do not scan leading blanks and sign twice.
23383 Integer'Value("- 5") and Integer'Value("-+5") now correctly
23384 raise Constraint_Error.
23386 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
23387 Scan_Long_Long_Unsigned): Split out most of the processing from
23388 Scan_Long_Long_Unsigned out into
23389 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
23390 This prevents scanning leading blanks and sign twice.
23391 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
23394 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
23395 out most of the processing from Scan_Unsigned out into
23396 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
23397 This prevents scanning leading blanks and sign twice.
23399 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
23400 use with Modular'Value attribute.
23401 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
23404 2006-02-13 Robert Dewar <dewar@adacore.com>
23406 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
23408 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23410 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
23411 (PPC VxWorks): Likewise.
23412 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
23413 (forced_callee): Make non-inlinable and non-pure.
23414 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
23416 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23417 Ben Brosgol <brosgol@adacore.com>
23418 Robert Dewar <dewar@adacore.com>
23420 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
23422 Document that gnatbind -M option is for cross environments only.
23423 Added description of using gnatmem to trace gnat rtl allocs and deallocs
23424 Add note on use of $ to label implicit run time calls
23425 Add documentation for -gnatyI (check mode IN)
23426 Updated chapter on compatibility with HP Ada
23427 VMS-oriented edits.
23428 Ran spell and corrected errors
23429 Add documentation for gnatbind -d and rework documentation of -D
23431 Add subprogram/data elimination section.
23432 Minor editing of annex A.
23433 Add section for gnatcheck.
23434 Add documentation for restriction No_Dispatching_Calls
23435 Add documentation for pragma Ada_2005
23436 Remove mention of obsolete pragma Propagate_Exceptions
23437 Document that pragma Unreferenced can appear after DO in ACCEPT
23438 Clarify Pure_Function for library level units
23439 Mention Max/Min in connection with No_Implicit_Conditionals
23440 No_Wide_Characters restriction is no longer partition-wide
23441 Add a nice example for Universal_Literal_String attribute
23442 Document that pragma No_Return can take multiple arguments
23444 * ug_words: Added entry for gnatcheck
23446 * g-ctrl_c.ads (Install_Handler): Enhance comments
23448 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
23450 * g-trasym.ads: Add documentation on how to do off line symbolic
23451 traceback computation.
23453 * s-fatgen.adb: Add comments for Unaligned_Valid
23455 * stand.ads: Fix typo in comment
23457 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23459 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
23461 2006-02-06 Roger Sayle <roger@eyesopen.com>
23463 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
23465 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23468 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
23469 implementation that calls __main.
23471 2006-01-25 Peter O'Gorman <peter@pogma.com>
23474 * Makefile.in (GCC_LINK): Remove quotes.
23475 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
23478 (powerpc-darwin): Pass -shared-libgcc when building shared library.
23480 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23483 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
23485 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23487 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
23489 2005-12-12 Arnaud Charlet <charlet@adacore.com>
23491 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
23494 2005-12-12 Arnaud Charlet <charlet@adacore.com>
23496 * Make-lang.in: Update dependencies
23498 2005-12-12 Arnaud Charlet <charlet@adacore.com>
23500 * Make-lang.in: Add rule for ada/exp_sel.o
23502 2005-12-12 Arnaud Charlet <charlet@adacore.com>
23504 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
23506 2005-12-09 Arnaud Charlet <charlet@adacore.com>
23508 * gnatvsn.ads (Library_Version): Bump to version 4.2
23509 (ASIS_Version_Number): Bumped.
23511 2005-12-09 Doug Rupp <rupp@adacore.com>
23513 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
23514 Ada bind file prefix on VMS from b$ to b__.
23515 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
23518 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
23519 Targparm.OpenVMS_On_Target.
23520 (Object_Suffix): Initialize with target object suffix.
23521 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
23523 * butil.adb: Change some Hostparm.OpenVMS checks to
23524 Targparm.OpenVMS_On_Target.
23526 * clean.adb: Change some Hostparm.OpenVMS checks to
23527 Targparm.OpenVMS_On_Target.
23528 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
23529 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
23530 Ada bind file prefix on VMS from b$ to b__.
23532 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
23533 --GCC so that Get_Target_Parameters can find system.ads.
23534 (Gnatlink): Call Get_Target_Parameters in mainline.
23535 Initialize standard packages for Targparm.
23536 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
23537 (Process_Args): Also Check for object files with target object
23539 (Make_Binder_File_Names): Create with target object extension.
23540 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
23543 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
23544 Targparm.OpenVMS_On_Target.
23545 ({declaration},Build_Library,Check_Library): Change Ada bind file
23546 prefix on VMS from b$ to b__.
23548 * osint-b.adb: Change some Hostparm.OpenVMS checks to
23549 Targparm.OpenVMS_On_Target.
23550 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
23553 * targext.c: New file.
23555 * Makefile.in: add support for vxworks653 builds
23556 (../../vxaddr2line): gnatlink with targext.o.
23557 (TOOLS_LIBS): Move targext.o to precede libgnat.
23558 (init.o, initialize.o): Minor clean up in dependencies.
23559 (GNATLINK_OBJS): Add targparm.o, snames.o
23560 Add rules fo building targext.o and linking it explicitly with all
23562 Also add targext.o to gnatlib.
23564 * Make-lang.in: Add rules for building targext.o and linking it in
23565 with gnat1 and gnatbind.
23566 Add entry for exp_sel.o.
23568 * osint.adb Change some Hostparm.OpenVMS checks to
23569 Targparm.OpenVMS_On_Target.
23570 (Object_File_Name): Use target object suffix.
23572 * osint.ads (Object_Suffix): Remove, no longer used.
23573 (Target_Object_Suffix): Initialize with target object suffix.
23575 * rident.ads: Add special exception to license.
23577 * targparm.adb (Get_Target_Parameters): Set the value of
23578 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
23580 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
23582 * targparm.ads: Add special exception to license.
23584 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
23586 (Copy_File): Make sure from file is closed if error on to file
23587 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
23589 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
23590 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
23592 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
23593 target object suffix.
23595 2005-12-09 Jose Ruiz <ruiz@adacore.com>
23596 Quentin Ochem <ochem@adacore.com>
23597 Florian Villoing <villoing@adacore.com>
23599 * a-taster.ads, a-taster.adb: New files.
23601 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
23602 link to the version that does nothing. This way the task termination
23603 routine is not executed twice for the environment task when finishing
23604 because of an unhandled exception.
23606 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
23607 handler because of an unhandled exception.
23609 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
23610 System.Tasking.Utilities instead of that in System.Tasking.Stages.
23612 * s-finimp.adb (initialization code): Modify the soft link for the
23613 finalization of the global list instead of Adafinal.
23615 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
23616 non-tasking version of the soft link for task termination. We do
23617 nothing since if we are using the non-tasking version it
23618 means that the task termination functionality is not used.
23619 (Null_Finalize_Global_List): Add this null version for the procedure
23620 in charge of finalizing the global list for controlled objects.
23621 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
23622 instead for handling run-time termination in a more flexible way.
23623 (Adafinal_NT): This new procedure will take care of finalizing the
23624 global list for controlled objects if needed, but no tasking
23627 * s-tarest.adb (Task_Lock): Do not try to lock again the
23628 Global_Task_Lock if we already own it. Otherwise, we get blocked in
23629 some run-time operations.
23630 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
23631 until all nested locks have been released.
23632 (Task_Wrapper): Call the fall-back task termination handler. It
23633 applies to all tasks but the environment task.
23634 (Finalize_Global_Tasks): Add the call for the task termination
23635 procedure for the environment task.
23636 (Task_Wrapper): suppress warnings around declaration of
23637 Secondary_Stack_Address.
23639 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
23640 moved to the Common_ATCB record.
23641 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
23642 Common_ATCB record.
23643 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
23644 Common_ATCB record.
23646 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
23647 Fall_Back_Handler, and Specific_Handler.
23649 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
23650 defined in Ada.Task_Termination, to avoid circular dependencies.
23651 (Termination_Handler): Redefine this type here, alredy defined in
23652 Ada.Task_Termination, for avoiding circular dependencies.
23653 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
23654 for storing task termination handlers. In addition,
23655 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
23656 Common_ATCB because it is used by both the regular and the restricted
23658 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
23659 Common_ATCB because it is used by both the regular and the restricted
23661 (Common_ATCB): Added a dynamic task analyzer field.
23663 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
23664 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
23665 (Task_Wrapper): Call the task termination handler. It applies to all
23666 tasks but the environment task.
23667 (Finalize_Global_Tasks): Call the task termination procedure for the
23668 environment task. The call to Finalize_Global_List is now performed
23669 using the soft links mechanism.
23670 (Task_Wrapper): added dynamic stack analysis.
23672 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
23673 potentially blocking operations has been moved from
23674 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
23675 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
23676 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
23677 this run-time check.
23679 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
23680 of task termination procedure.
23681 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
23682 link for the task termination procedure.
23684 * bindusg.adb: (Bindusg): Added documentation for -u option.
23686 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
23687 (Get_Main_C): Add handling of dynamic stack analysis.
23688 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
23690 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
23691 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
23692 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
23694 * opt.ads: Added flags used by dynamic stack measurement.
23695 (Max_Line_Length): Remove (not used anymore)
23697 * s-io.ads, s-io.adb (Standard_Error): new subprogram
23698 (Standart_Output): new subprogram
23699 (Set_Output): new subprogram
23700 (Put): now uses the value of Current_Out to know if the output has to be
23701 send to stderr or stdout.
23703 * s-stausa.ads: Complete implementation.
23705 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
23707 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
23708 list of Ada 05 files.
23709 (GNAT Library Units): Add AltiVec files.
23711 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
23712 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
23713 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
23715 2005-12-09 Nicolas Setton <setton@adacore.com>
23717 * adaint.c (__gnat_locate_regular_file): Return immediately if
23718 file_name is empty.
23720 2005-12-09 Javier Miranda <miranda@adacore.com>
23721 Hristian Kirtchev <kirtchev@adacore.com>
23723 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
23724 to the specification because the frontend generates code that uses this
23726 (Set_Interface_Table): Add missing assertion.
23727 Update documentation describing the run-time structure.
23728 (Displace): New subprogram that displaces the pointer to the object
23729 to reference one of its secondary dispatch tables.
23730 (IW_Membership): Modified to use the new table of interfaces.
23731 (Inherit_TSD): Modified to use the new table of interfaces.
23732 (Register_Interface_Tag): Use the additional formal to fill the
23733 contents of the new table of interfaces.
23734 (Set_Interface_Table): New subprogram that stores in the TSD the
23735 pointer to the table of interfaces.
23736 (Set_Offset_To_Top): Use the additional formal to save copy of
23737 the offset value in the table of interfaces.
23738 Update structure of GNAT Primary and Secondary dispatch table diagram.
23739 Add comment section on GNAT dispatch table prologue.
23740 (Offset_To_Signature): Update the constant value of the Signature field.
23741 (Dispatch_Table): Update comment on hidden fields in the prologue.
23742 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
23743 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
23744 the type of formal parameter T to Tag, introduce additional assertions.
23745 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
23747 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
23749 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
23750 in all the calls to Expand_Interface_Thunk. Instead of referencing the
23751 record component containing the tag of the secondary dispatch table we
23752 have to use the Offset_To_Top run-time function to get this information;
23753 otherwise if the pointer to the base of the object has been displace
23754 we get a wrong value if we use the 'position attribute.
23756 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
23757 all the calls to Expand_Interface_Thunk.
23758 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
23759 interfaces; hence the call to Set_Interface_Table was clearly wrong.
23760 (Collect_All_Interfaces): Modify the internal subprogram Collect to
23761 ensure that the interfaces implemented by the ancestors are placed
23762 at the header of the generated list.
23763 (Expand_Interface_Conversion): Handle the case in which the displacement
23764 associated with the interface conversion is not statically known. In
23765 this case we generate a call to the new run-time subprogram Displace.
23766 (Make_DT): Generate and fill the new table of interfaces.
23767 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
23768 Get_Tagged_Kind and Set_Tagged_Kind.
23769 (Tagged_Kind): New function that determines the tagged kind of a type
23770 with respect to limitedness and concurrency and returns a reference to
23772 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
23773 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
23774 primary dispatch table for a type.
23775 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
23776 secondary dispatch table respectively of a tagged type.
23778 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
23779 (Expand_Interface_Conversion): New subprogram to indicate if the
23780 displacement of the type conversion is statically known.
23781 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
23783 * rtsfind.ads (RE_Offset_To_Top): New entity
23784 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
23785 accessible to users.
23786 (Re_Displace): New entity
23787 (RE_Interface_Data): New entity
23788 (RE_Set_Interface_Data): New_Entity
23789 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
23790 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
23791 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
23792 RE_TK_Tagged, RE_TK_Task.
23794 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
23795 Init_Secondary_Tags_Internal to allow its use with interface types and
23796 also to generate the code for the new additional actual required
23797 by Set_Offset_To_Top.
23798 (Build_Init_Statements): In case of components associated with abstract
23799 interface types there is no need to generate a call to its IP.
23800 (Freeze_Record_Type): Generate Select Specific Data tables only for
23802 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
23803 the bodies and specifications of the predefined primitive operations
23804 dealing with dispatching selects and abort, 'Callable, 'Terminated only
23805 for concurrent types.
23807 * exp_sel.ads, exp_sel.adb: New files.
23809 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
23810 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
23811 properly protected objects and attach handler in the case of the
23812 restricted profile.
23813 Move embeded package Select_Expansion_Utilities into a separate external
23815 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
23816 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
23817 (Build_K, Build_S_Assignment): New subprograms, part of the select
23818 expansion utilities.
23819 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
23820 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
23821 where the trigger is a dispatching procedure of a limited tagged type.
23823 2005-12-09 Olivier Hainque <hainque@adacore.com>
23825 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
23826 pointer initialization values. Make a SAVE_EXPR instead. Add comments
23827 about the use and expansion of SAVE_EXPRs in the various possible
23828 renaming handling cases.
23829 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
23830 abusing DECL_FCONTEXT.
23832 2005-12-09 Matthew Heaney <heaney@adacore.com>
23834 * a-convec.adb (Merge): Added assertions to check whether vector params
23837 * a-coinve.adb (Merge): Added assertions to check whether vector params
23840 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
23842 (Cursor'Read): raises PE
23844 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
23845 to its default value.
23847 * a-cihama.adb: Manually check whether cursor's key and elem are
23850 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
23851 (Merge): Assert that target and source lists are in order
23852 (Swap): Declare non-const temporaries, to pass to Splice
23854 * a-cdlili.ads: (Splice): Changed param name and param mode
23856 * a-cdlili.adb: (Splice): Changed param name and param mode
23857 (Merge): Assert that target and source lists are in order
23858 (Swap): Declare non-const temporaries, to pass to Splice
23860 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
23861 (Write): declare Stream param as not null
23863 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
23864 an exception message.
23866 2005-12-09 Thomas Quinot <quinot@adacore.com>
23867 Robert Dewar <dewar@adacore.com>
23869 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
23870 which is the absolute maximum length we can support.
23872 * frontend.adb: For the processing of configuration pragma files,
23873 remove references to Opt.Max_Line_Length, which is not checked anymore.
23875 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
23878 * scn.adb, scng.adb:
23879 Always check line length against the absolute supported maximum,
23880 Hostparm.Max_Line_Length.
23882 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
23883 value for the maximum line length is Max_Line_Length (not
23884 Column_Number'Last).
23885 Minor error msg update
23886 (Set_Style_Check_Options): New interface returning error msg
23887 Minor code reorganization (processing for 'M' was out of alpha order)
23889 * switch-c.adb: New interface for Set_Style_Check_Options
23891 * stylesw.ads (Set_Style_Check_Options): New interface returning error
23894 2005-12-09 Javier Miranda <miranda@adacore.com>
23896 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
23897 with IP subprogram were only supported if there were limited types.
23899 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
23900 records with IP subprogram were only supported if there were limited
23903 2005-12-09 Olivier Hainque <hainque@adacore.com>
23904 Eric Botcazou <ebotcazou@adacore.com>
23906 * trans.c (tree_transform, emit_check): Adjust calls to
23907 build_call_raise, passing the now expected GNAT_NODE argument.
23909 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
23910 source line information than what the current global locus indicates
23913 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
23914 field has overflowed.
23915 (build_call_raise): Add a GNAT_NODE argument to convey better source
23916 line information than what the current global locus indicates when
23918 (build_component_ref): Adjust call to build_call_raise.
23920 2005-12-09 Pascal Obry <obry@adacore.com>
23922 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
23923 the iterator is quitting iteration on parent directory.
23925 2005-12-09 Javier Miranda <miranda@adacore.com>
23927 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
23928 and the assignment to a class-wide object, before the assignment we
23929 generate a run-time check to ensure that the tag of the Target is
23930 covered by the tag of the source.
23932 2005-12-09 Robert Dewar <dewar@adacore.com>
23934 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
23935 parameter in call to Image_Wide_Character.
23937 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
23938 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
23939 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
23940 annoying FFFE/FFFF inconsistency.
23942 2005-12-09 Robert Dewar <dewar@adacore.com>
23943 Javier Miranda <miranda@adacore.com>
23944 Ed Schonberg <schonberg@adacore.com>
23946 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
23947 of type conversion.
23948 (Find_Interface): New subprogram that given a tagged type and one of its
23949 component associated with the secondary table of an abstract interface
23950 type, return the entity associated with such abstract interface type.
23951 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
23952 base type to create anonymous subtype, because entity may be a locally
23953 declared subtype or generic actual.
23954 (Find_Interface): New subprogram that given a tagged type and one of its
23955 component associated with the secondary table of an abstract interface
23956 type, return the entity associated with such abstract interface type.
23958 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
23959 conversion cannot be handled at compile time. In this case we pass this
23960 information to the expander to generate the appropriate code.
23962 2005-12-09 Robert Dewar <dewar@adacore.com>
23963 Ed Schonberg <schonberg@adacore.com>
23964 Gary Dismukes <dismukes@adacore.com>
23965 Javier Miranda <miranda@adacore.com>
23966 Hristian Kirtchev <kirtchev@adacore.com>
23968 * einfo.adb (Itype_Printed): New flag
23969 (Is_Limited_Type): Derived types do not inherit limitedness from
23970 interface progenitors.
23971 (Is_Return_By_Reference_Type): Predicate does not apply to limited
23974 * einfo.ads (Itype_Printed): New flag
23975 Move Is_Wrapper_Package to proper section
23976 Add missing Inline for Is_Volatile
23978 * output.ads, output.adb (Write_Erase_Char): New procedure
23979 (Save/Restore_Output_Buffer): New procedures
23980 (Save/Restore_Output_Buffer): New procedures
23982 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
23983 Add missing support for anonymous access type
23984 (Write_Id): Insert calls to Write_Itype
23985 (Write_Itype): New procedure to output itypes
23987 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
23988 use of "limited" in declaration.
23990 * sinfo.ads, sinfo.adb:
23991 Formal derived types can carry an explicit "limited" indication.
23993 * sem_ch3.adb: Add with and use of Targparm.
23994 (Create_Component): If Frontend_Layout_On_Target is True and the
23995 copied component does not have a known static Esize, then reset
23996 the size and positional fields of the new component.
23997 (Analyze_Component_Declaration): A limited component is
23998 legal within a protected type that implements an interface.
23999 (Collect_Interfaces): Do not add to the list the interfaces that
24000 are implemented by the ancestors.
24001 (Derived_Type_Declaration): If the parent of the full-view is an
24002 interface perform a transformation of the tree to ensure that it has
24003 the same parent than the partial-view. This simplifies the job of the
24004 expander in order to generate the correct object layout, and it is
24005 needed because the list of interfaces of the full-view can be given in
24007 (Process_Full_View): The parent of the full-view does not need to be
24008 a descendant of the parent of the partial view if both parents are
24010 (Analyze_Private_Extension_Declaration): If declaration has an explicit
24011 "limited" the parent must be a limited type.
24012 (Build_Derived_Record_Type): A derived type that is explicitly limited
24013 must have limited ancestor and progenitors.
24014 (Build_Derived_Type): Ditto.
24015 (Process_Full_View): Verify that explicit uses of "limited" in partial
24016 and full declarations are consistent.
24017 (Find_Ancestor_Interface): Remove function.
24018 (Collect_Implemented_Interfaces): New procedure used to gather all
24019 implemented interfaces by a type.
24020 (Contain_Interface): New function used to check whether an interface is
24022 (Find_Hidden_Interface): New function used to determine whether two
24023 lists of interfaces constitute a set equality. If not, the first
24024 differing interface is returned.
24025 (Process_Full_View): Improve the check for the "no hidden interface"
24026 rule as defined by AI-396.
24028 2005-12-09 Robert Dewar <dewar@adacore.com>
24030 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
24031 types, not on record subtypes.
24032 (Freeze_Entity): Code cleanup. Add barrier to the loop
24033 that generates the references for primitive operations. This allows to
24034 remove an unnecessary exception handler.
24035 Code reformatting and comment clean ups.
24037 2005-12-09 Vincent Celier <celier@adacore.com>
24039 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
24040 If GNAT CHECK is called with a project file, but with no
24041 source on the command line, call gnatcheck with all the compilable
24042 sources of the project.
24043 Take into account the new command Check, for gnatcheck. Treat as for
24044 other ASIS tools: take into account project, specific package Check and
24046 For ASIS tools, add the switches in package Compiler for
24047 the invocation of the compiler.
24049 * prj-attr.adb: Add package Check and its attributes
24051 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
24053 * vms_conv.adb (Initialize): Change Params of command Check to
24055 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24056 Add data for new command Check
24058 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
24060 Add qualifiers for Check command options
24061 (Command_Type): New command Check
24063 2005-12-09 Thomas Quinot <quinot@adacore.com>
24065 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
24066 command line switch overruns the output buffer.
24068 2005-12-09 Robert Dewar <dewar@adacore.com>
24070 * sem_prag.adb: Processing for new pragma Complete_Representation
24071 (Analyze_Pragma, case Debug): Implement two argument form.
24073 * par-prag.adb: Entry for new pragma Complete_Representation
24074 (Prag, case Debug): Recognize two argument form of pragma Debug
24075 New interface for Set_Style_Check_Options.
24077 * sem_ch13.adb: Implement new pragma Complete_Representation.
24079 * snames.adb, snames.ads, snames.h: Entry for new pragma
24080 Complete_Representation.
24082 2005-12-09 Gary Dismukes <dismukes@adacore.com>
24084 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
24085 available user-specified stream attributes on limited parameters to
24086 also test the type directly rather than only its underlying type (for
24087 Ada 95) and, in the case of Ada 2005, to check that the user-specified
24088 attributes are visible at the point of the subprogram declaration.
24089 For Ada 2005, the error message is modified to indicate that the
24090 type's stream attributes must be visible (again, only for -gnat05).
24092 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24094 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
24095 anonymous access types.
24097 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
24098 matching of anonymous access types and anonymous access to subprogram
24099 types. 'R'M 4.9.1 (2/2).
24101 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24103 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
24104 rule prematurely when operands are universal, remaining ambiguities
24105 will be removed during resolution.
24108 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
24109 that are Ada 2005 functions.
24110 (Has_Abstract_Interpretation): Subsidiary to
24111 Remove_Conversions, to remove ambiguities caused by abstract operations
24112 on numeric types when operands are universal.
24114 2005-12-09 Robert Dewar <dewar@adacore.com>
24116 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
24117 for case where spec is categorized.
24119 2005-12-09 Javier Miranda <miranda@adacore.com>
24121 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
24122 types use the corresponding record type. This was not needed before
24123 the implementation of Ada 2005 synchronized types because
24124 concurrent types were never tagged types in Ada 95.
24126 2005-12-09 Ed Schonberg <schonberg@adacore.com>
24128 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
24129 first subtype of the type of the expression to verify that it is a
24132 2005-12-09 Robert Dewar <dewar@adacore.com>
24134 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
24137 2005-12-09 Quentin Ochem <ochem@adacore.com>
24138 Robert Dewar <dewar@adacore.com>
24139 Ed Falis <falis@adacore.com>
24140 Florian Villoing <villoing@adacore.com>
24141 Thomas Quinot <quinot@adacore.com>
24142 Arnaud Charlet <charlet@adacore.com>
24144 * gnat_ugn.texi: Created section "Stack Related Tools"
24145 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
24146 "Stack Related Tools"
24147 Added subsection "Static Stack Usage Analysis"
24148 Added subsection "Dynamic Stack Usage Analysis"
24149 Include documentation of itypes in sprint listing (-gnatG)
24150 Documented gnatbind -D switch (default sec stack size for fixed sec
24152 Added Interrupt_State and Persistent_BSS to list of configuration
24154 Add missing doc for maximum value of nnn in -gnatyMnnn
24156 * gnat_rm.texi: Document the AltiVec binding.
24157 Add documentation for pragma Complete_Representation
24158 Shortened an overly long line (> 79 chars)
24159 Clarify documentation of unchecked conversion in implementation
24161 Document two argument form of pragma Debug
24163 * types.ads (Column_Number): Update documentation.
24165 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
24166 library level Finalize_Storage_Only objects (these are not attached to
24167 any finalization list).
24169 * system-mingw.ads: (Underlying_Priorities): Update comment.
24171 2005-12-09 Robert Dewar <dewar@adacore.com>
24173 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
24174 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
24175 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
24176 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
24177 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
24178 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
24179 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
24180 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
24183 2005-12-09 Robert Dewar <dewar@adacore.com>
24185 * s-vaflop-vms-alpha.adb: (Ne_F): New function
24186 (Ne_G): New function
24188 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
24189 for tag assignment.
24190 (Rewrite_Comparison): Handle case where operation is not a comparison
24191 and ignore, and also handle type conversion case.
24193 2005-12-09 Thomas Quinot <quinot@adacore.com>
24195 * exp_aggr.ads: Fix typo in comment.
24196 ???-mark Convert_Aggr_In_Assignment as needing documentation.
24198 2005-12-09 Gary Dismukes <dismukes@adacore.com>
24200 * layout.adb: Replace various uses of byte by storage unit throughout.
24201 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
24202 static size, convert to storage units before returning, to conform to
24205 2005-12-09 Matthew Gingell <gingell@adacore.com>
24207 * g-exctra.ads: Fix typo in comment.
24209 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24211 * utils.c: Minor reformatting.
24213 2005-12-09 Robert Dewar <dewar@adacore.com>
24216 Further comment fixes to make the status of the default file clear
24218 * s-bitops.adb: Clarify comment for Bits_Array
24220 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24222 * Make-lang.in (ada.install-normal): Remove.
24224 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24226 * Make-lang.in: Remove all dependencies on s-gtype.
24228 2005-12-05 Richard Guenther <rguenther@suse.de>
24230 * utils.c (convert): Use fold_convert where appropriate.
24232 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
24234 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
24237 2005-12-02 Richard Guenther <rguenther@suse.de>
24239 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
24241 2005-12-01 Roger Sayle <roger@eyesopen.com>
24243 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
24246 2005-11-23 Laurent Guerby <laurent@guerby.net>
24248 * mlib-prj.adb (Build_Library): Initialize Delete.
24250 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
24252 * socket.c: Add extern int h_errno for rtems since networking header
24253 files are not available at this point in a tool bootstrap. Newlib
24254 only has basic C library header files.
24256 2005-11-19 Richard Guenther <rguenther@suse.de>
24257 Roger Sayle <roger@eyesopen.com>
24260 * misc.c (internal_error_function): Don't use vsprintf to format
24261 the error message text, instead use pp_format_text and the new
24262 pretty printer APIs. This allows handling of %qs, %w, etc.
24264 2005-11-18 Laurent Guerby <laurent@guerby.net>
24267 * Makefile.in: Use s-auxdec-empty for RTEMS.
24269 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24272 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
24273 a temporary if taking the address of something that is neither
24274 reference, declaration, or constant, since the gimplifier
24275 can't handle that case.
24277 2005-11-17 Laurent Guerby <laurent@guerby.net>
24280 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
24282 2005-11-16 Richard Guenther <rguenther@suse.de>
24284 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
24286 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
24289 * raise-gcc.c: Add missing stdarg.h include.
24291 2005-11-16 Richard Guenther <rguenther@suse.de>
24293 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
24294 (ada/misc.o): Likewise.
24296 2005-11-14 Thomas Quinot <quinot@adacore.com>
24298 * g-soccon.ads: Minor reformatting. Update comments.
24300 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
24301 gain visibility on the declaration of struct timeval.
24303 * g-soccon-freebsd.ads,
24304 g-soccon-darwin.ads,
24305 g-soccon-tru64.ads,
24309 g-soccon-solaris.ads,
24311 g-soccon-mingw.ads,
24312 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
24314 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
24315 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
24316 g-soccon-linux-x86.ads: New files.
24318 * g-socthi-mingw.adb:
24319 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
24321 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
24322 (time_t, suseconds_t): New types constructed to match the tv_sec
24323 and tv_usec fields of C struct timeval.
24324 (Timeval): Construct structure in terms of the new types.
24325 (Host_Errno): New function (imported from socket.c), returns last hosts
24328 * g-socthi-vxworks.adb: Add error handling circuitry.
24330 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
24331 components of struct timeval.
24332 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
24333 (Check_Selector): In error conditions, clear internal socket sets to
24334 avoid a memory leak.
24335 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
24336 Send_Timeout, Receive_Timeout.
24338 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
24339 the tv_sec and tv_usec fields of C struct timeval.
24340 (Timeval): Construct structure in terms of the new types.
24341 (Host_Errno): New function (imported from socket.c), returns last hosts
24344 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
24345 hosts database last error code.
24347 * gen-soccon.c: Complete value expansion should not be performed on
24348 TARGET, as it has the form of a math expression, and some components
24349 may be platform-defined macros.
24350 For VxWorks, generate the OK and ERROR values.
24351 New constants giving the sizes of the components of C struct timeval.
24353 2005-11-14 Robert Dewar <dewar@adacore.com>
24354 Ed Schonberg <schonberg@adacore.com>
24357 * types.ads: Include All_Checks in Suppress_Array
24359 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
24360 not(a=b), since we no longer do this rewriting, and hence it is not
24362 (Elaboration_Checks_Suppressed): Add special casing to
24363 deal with different cases of static and dynamic elaboration checks (all
24364 checks does not count in the first case, but does in the second).
24365 (Expr_Known_Valid): Do not assume that the result of any arbitrary
24366 function call is valid, since this is not the case.
24367 (Ensure_Valid): Do not apply validity check to a real literal
24368 in a universal or fixed context
24370 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
24371 elementary types using the operator in standard. It is cleaner not to
24372 modify the programmers intent, especially in the case of floating-point.
24373 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
24374 it did not matter because we always rewrote a/=b to not(a=b).
24375 (Expand_Allocator_Expression): For an allocator expression whose nominal
24376 subtype is an unconstrained packed type, convert the expression to its
24377 actual constrained subtype.
24378 Implement warning for <= or >= where < or > not possible
24379 Fix to Vax_Float tests (too early in many routines, causing premature
24380 Vax_Float expansions.
24382 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
24383 to be used with packages and generic packages as well as with
24385 (Suppress): Set All_Checks, but not Elaboration_Check, for case
24386 of pragma Suppress (All_Checks)
24387 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
24388 a string literal for precise control over warnings.
24389 Avoid raise of pragma in case of unrecognized pragma and just return
24392 * sem_prag.ads: Minor reformatting
24394 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
24395 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
24396 Switch. Do not handle any exception.
24397 Include -gnatwx as part of -gnatg (warn on redundant parens)
24398 Allow optional = after -gnatm
24399 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
24400 longer sets Elaboration_Checks.
24401 Code to set warning mode moved to Sem_Warn
24402 so that it can be shared by pragma processing.
24404 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
24407 * s-taprop-solaris.adb:
24408 Change some <= to =, to avoid new warning
24410 * a-exexda.adb, prj-proc.adb:
24411 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
24412 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
24414 2005-11-14 Robert Dewar <dewar@adacore.com>
24416 * exp_vfpt.adb: Handle /= case
24417 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
24418 so that we do not get duplicate scaling for fixed point conversions.
24420 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
24422 2005-11-14 Matthew Gingell <gingell@adacore.com>
24424 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
24425 Increase default priority on Lynx from 15 to 17, and meet the Ada
24426 requirement that Default_Priority be ((Priority'First +
24427 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
24429 2005-11-14 Vincent Celier <celier@adacore.com>
24431 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24432 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
24433 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
24434 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
24435 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
24436 mlib-tgt-lynxos.adb (DLL_Prefix): New function
24438 2005-11-14 Doug Rupp <rupp@adacore.com>
24440 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
24443 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24445 * s-traces-default.adb, s-trafor-default.ads,
24446 s-tratas-default.adb: Fix compilation errors.
24448 2005-11-14 Jose Ruiz <ruiz@adacore.com>
24450 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
24451 raising the exception so the memory used is freed.
24453 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24455 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
24456 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
24457 (convert_address): Update comments and list of platforms using this.
24459 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
24462 2005-11-14 Pascal Obry <obry@adacore.com>
24463 Vincent Celier <celier@adacore.com>
24465 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
24468 * memroot.adb: Remove redundant with/use clause on
24469 System.Storage_Elements.
24471 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24473 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
24474 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
24475 related code to a-exexpr.adb
24476 (Save_Occurrence_And_Private): Move GCC EH related code to
24478 (Raise_Current_Excep): Add new variable Id with pragma
24479 volatile, to ensure that the variable lives on stack.
24481 * a-exexpr-gcc.adb, raise-gcc.c: New file.
24483 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
24485 Move GCC EH related code to a-exexpr-gcc.adb
24487 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
24489 Split the Linux version of g-soccon into separate variants for 32 and 64
24491 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
24492 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
24493 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
24494 of host variable $(RANLIB_FLAGS).
24495 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
24496 Code clean up: remove unused/obsolete targets.
24497 (EH_MECHANISM): New variable introduced to differenciate between the
24498 two EH mechanisms statically.
24499 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
24500 (LIBGNAT_OBJS): Add raise-gcc.o
24501 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
24502 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
24503 supports VxWorks 6 RTPs.
24504 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
24505 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
24507 * raise.c: Move all GCC EH-related routines to raise-gcc.c
24509 2005-11-14 Jose Ruiz <ruiz@adacore.com>
24511 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
24512 deferral level, when abort is not allowed, to a later stage (the
24514 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
24515 it will not get changed by the generated code. It was previously done
24518 2005-11-14 Thomas Quinot <quinot@adacore.com>
24519 Olivier Hainque <hainque@adacore.com>
24520 Eric Botcazou <ebotcazou@adacore.com>
24523 Factor common code to build a storage type for an unconstrained object
24524 from a fat or thin pointer type and a constrained object type.
24525 (annotate_value): Handle BIT_AND_EXPR.
24526 (annotate_rep): Don't restrict the back annotation of inherited
24527 components to the type_annotate_only case.
24528 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
24529 we are not defining the type.
24530 <E_Record_Type>: Likewise.
24531 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
24532 to get advantage of the new maybe_stabilize_reference interface, to
24533 ensure that what we reference is indeed stabilized instead of relying
24534 on assumptions on what the stabilizer does.
24535 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
24536 type imported through a limited_with clause, use its non-limited view.
24537 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
24539 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
24540 of #if sections + explicit comparisons of convention identifiers.
24541 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
24542 before early-returning for certain types when code generation is
24544 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
24545 nullification of gnu_expr we do for objects with address clause and
24546 that we are not defining.
24547 (elaborate_expression_1): Do not create constants when creating
24548 variables needed by the debug info: the dwarf2 writer considers that
24549 CONST_DECLs is used only to represent enumeration constants, and emits
24551 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
24552 object with an address clause into an indirect reference, drop the
24553 initializing expression.
24555 (STACK_CHECK_BUILTIN): Delete.
24556 (STACK_CHECK_PROBE_INTERVAL): Likewise.
24557 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
24558 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
24559 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
24560 corresponding to the renamed object as ignored for debugging purposes.
24562 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
24563 related): For a prefix that is a dereference of a fat or thin pointer,
24564 if there is an actual subtype provided by the front-end, use that
24565 subtype to build an actual type with bounds template.
24566 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
24567 is provided by the front-end, use that subtype to compute the size of
24568 the deallocated object.
24569 (gnat_to_gnu): When adding a statement into an elaboration procedure,
24570 check for a potential violation of a No_Elaboration_Code restriction.
24571 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
24572 with extra arguments to control whether to recurse through non-values
24573 and to let the caller know if the stabilization has succeeded.
24574 (gnat_stabilize_reference): Now a simple wrapper around
24575 maybe_stabilize, for common uses without restriction on lvalues and
24576 without need to check for the success indication.
24577 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
24578 pass false instead of 0 as the FORCE argument which is a bool.
24579 (Identifier_to_gnu): Remove checks ensuring that an renamed object
24580 attached to a renaming pointer has been properly stabilized, as no such
24581 object is attached otherwise.
24582 (call_to_gnu): Invoke create_var_decl to create the temporary when the
24583 function uses the "target pointer" return mechanism.
24584 Reinstate conversion of the actual to the type of the formal
24585 parameter before any other specific treatment based on the passing
24586 mechanism. This turns out to be necessary in order for PLACEHOLDER
24587 substitution to work properly when the latter type is unconstrained.
24589 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
24591 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
24592 with extra arguments to control whether to recurse through non-values
24593 and to let the caller know if the stabilization has succeeded.
24595 * utils2.c (gnat_build_constructor): Only sort the fields for possible
24596 static output of record constructor if all the components are constant.
24597 (gnat_build_constructor): For a record type, sort the list of field
24598 initializers in increasing bit position order.
24599 Factor common code to build a storage type for an unconstrained object
24600 from a fat or thin pointer type and a constrained object type.
24601 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
24602 types variants, and process special cases of VIEW_CONVERT expressions
24603 as their NOP_EXPR counterpart to ensure we get to the
24604 CORRESPONDING_VARs associated with CONST_DECls.
24605 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
24606 on the right-hand side.
24608 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
24610 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
24611 are converting back to its original type.
24612 (convert) <JM input>: Fallthrough regular conversion code instead of
24613 extracting the object if converting to a type variant.
24614 (create_var_decl): When a variable has an initializer requiring code
24615 generation and we are at the top level, check for a potential violation
24616 of a No_Elaboration_Code restriction.
24617 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
24618 SIZE and SIZE_UNIT which we need for later back-annotations.
24619 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
24620 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
24621 is an unchecked union.
24622 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
24623 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
24624 main variant, just replace the VIEW_CONVERT_EXPR.
24625 <UNION_TYPE>: Revert 2005-03-02 change.
24627 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
24629 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
24631 2005-11-14 Matthew Heaney <heaney@adacore.com>
24633 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
24634 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
24635 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
24636 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
24637 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
24638 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
24639 Compiles against the spec for ordered maps described in sections
24640 A.18.6 of the most recent (August 2005) AI-302 draft.
24642 2005-11-14 Olivier Hainque <hainque@adacore.com>
24644 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
24645 to ensure bias adjustments take place when need be and to prevent
24646 occurrences of intermediate overflows.
24648 2005-11-14 Matthew Gingell <gingell@adacore.com>
24649 Olivier Hainque <hainque@adacore.com>
24651 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
24654 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
24655 tracebacks on ia64 HP-UX and provide explanatory comment.
24656 Enable backtraces on ia64 GNU/Linux.
24657 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
24658 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
24660 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
24661 Javier Miranda <miranda@adacore.com>
24663 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
24664 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
24665 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
24666 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
24668 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
24669 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
24672 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
24673 subprogram that generates the external name associated with a
24674 secondary dispatch table.
24675 (Get_Secondary_DT_External_Name): New subprogram that generates the
24676 external name associated with a secondary dispatch table.
24678 2005-11-14 Emmanuel Briot <briot@adacore.com>
24680 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
24681 line in the ALI file to include both an instantiation reference, and a
24684 2005-11-14 Vincent Celier <celier@adacore.com>
24686 * clean.adb (Check_Project): Look for Ada code in extending project,
24687 even if Ada is not specified as a language.
24688 Use new function DLL_Prefix for DLL_Name
24689 (Clean_Interface_Copy_Directory): New procedure
24690 (Clean_Library_Directory): New procedure
24691 (Clean_Directory): Remove procedure, no longer used
24692 (Clean_Project): Do not delete any file in an externally built project
24694 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
24695 directory of an extending project, even when there are no Ada source
24697 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
24698 (Set_Ada_Paths.Add.Recursive_Add): Ditto
24700 * mlib-prj.adb (Check_Library): For all library projects, get the
24701 library file timestamp.
24702 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
24703 (Build_Library): Use new function DLL_Prefix for the DLL_Name
24704 (Clean): Remove procedure, no longer used
24705 (Ultimate_Extension_Of): New function
24706 (Build_Library): When cleaning the library directory, only remove an
24707 existing library file and any ALI file of a source of the project.
24708 When cleaning the interface copy directory, remove any source that
24709 could be a source of the project.
24711 * prj.ads, prj.adb (Project_Empty): Add values of new components
24712 Library_TS and All_Imported_Projects.
24713 (Project_Empty): Add values for new components of Project_Data:
24714 Library_ALI_Dir and Display_Library_ALI_Dir
24716 * prj-attr.adb: New project level attribute name Library_ALI_Dir
24718 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
24719 attribute Library_ALI_Dir.
24720 (Check_Library_Attributes): The library directory cannot be the same as
24721 any source directory of the project tree.
24722 (Check_Stand_Alone_Library): The interface copy directory cannot be
24723 the same as any source directory of the project tree.
24725 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
24726 all temporary files.
24728 2005-11-14 Robert Dewar <dewar@adacore.com>
24729 Ed Schonberg <schonberg@adacore.com>
24731 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
24732 (Check_Elab_Call): A call within a protected body is never an
24733 elaboration call, and does not require checking.
24734 (Same_Elaboration_Scope): Take into account protected types for both
24736 (Activate_Elaborate_All_Desirable): New procedure
24738 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
24741 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
24742 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
24744 * lib-writ.ads, lib-writ.adb:
24745 Implement new AD/ED for Elaborate_All/Elaborate desirable
24746 Use new Elaborate_All_Desirable flag in N_With_Clause node
24748 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
24749 N_Free_Statement nodes.
24750 Define new class N_Subprogram_Instantiation
24751 Add Elaborate_Desirable flag to N_With_Clause node
24752 Add N_Delay_Statement (covering two kinds of delay)
24754 * debug.adb: Introduce d.f flag for compiler
24755 Add -da switch for binder
24757 2005-11-14 Ed Schonberg <schonberg@adacore.com>
24758 Cyrille Comar <comar@adacore.com>
24760 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
24761 for task component, in the case of a limited aggregate. The enclosed
24762 object declaration will create it earlier. Otherwise, in the case of a
24763 nested aggregate, the object may appear in the wrong scope.
24764 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
24765 (Gen_Assign): If the component being assigned is an array type and the
24766 expression is itself an aggregate, wrap the assignment in a block to
24767 force finalization actions on the temporary created for each row of the
24769 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
24770 structures are initialized after all discriminants are set so that
24771 they can be accessed even when their offset is dynamic.
24773 2005-11-14 Robert Dewar <dewar@adacore.com>
24774 Hristian Kirtchev <kirtchev@adacore.com>
24776 * sem_attr.adb: Implement Machine_Rounding attribute
24777 (Analyze_Access_Attribute): The access attribute may appear within an
24778 aggregate that has been expanded into a loop.
24779 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
24780 'Terminated whenever the prefix is of a task interface class-wide type.
24781 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
24782 the prefix is of a task interface class-wide type.
24784 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
24787 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
24788 Remove pragma Inline for [Unaligned_]Valid.
24789 Add comments that Valid routines do not work for Vax_Float
24791 * exp_attr.adb: Implement Machine_Rounding attribute
24793 * snames.h: Add entry for Machine_Rounding attribute
24795 2005-11-14 Javier Miranda <miranda@adacore.com>
24796 Robert Dewar <dewar@adacore.com>
24797 Hristian Kirtchev <kirtchev@adacore.com>
24799 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
24800 and related): For a prefix that is an explicit dereference of an
24801 access to unconstrained packed array type, annotate the dereference
24802 with an actual subtype so GIGI can make a correct size computation.
24803 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
24804 'Unrestricted_Access, if the designated type is an interface we
24805 add a type conversion to force the displacement of the pointer
24806 to the secondary dispatch table.
24807 Use Universal_Real instead of Long_Long_Float when we need a high
24808 precision float type for the generated code (prevents gratuitous
24809 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
24810 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
24811 'Terminated for task interface class-wide objects. Generate a call to
24812 the predefined dispatching routine used to retrieve the _task_id from
24813 a task corresponding record.
24814 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
24816 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
24817 (Check_Dispatching_Operation): Protect the frontend againts
24818 previously detected errors.
24820 * Makefile.rtl: Add new instantiations of system.fat_gen
24822 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
24823 Change name of instantiated package for better consistency
24824 with newly added system.fat_gen instantiations.
24826 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
24827 s-fvagfl.ads: New files.
24829 2005-11-14 Cyrille Comar <comar@adacore.com>
24830 Thomas Quinot <quinot@adacore.com>
24832 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
24833 assignment of a value of a tagged type that has been rewritten to a
24834 block statement, it is known by construction that no checks are
24835 necessary for the statements within the block: analyze it with checks
24837 (Expand_N_If_Statement): When killing a dead then-branch in an
24838 if-statement that has elsif_parts, recompute the Current_Value node
24839 for any entity whose value is known from the condition of the first
24841 (Expand_N_Return_Statement): When returning a mutable record, convert
24842 the return value into its actual subtype in order to help the backend
24843 to return the actual size instead of the maximum. This is another
24844 aftermath of not returning mutable records on the sec-stack anymore.
24846 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
24847 handling of error msg for suspicious reverse range iteration.
24848 (Check_Possible_Current_Value_Condition): Move declaration from body to
24849 spec, to allow this subprogram to be called from exp_ch5.
24851 2005-11-14 Thomas Quinot <quinot@adacore.com>
24853 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
24854 generate a set of nested array aggregates instead of a single flat
24855 aggregate for multi-dimensional arrays.
24857 2005-11-14 Pascal Obry <obry@adacore.com>
24859 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
24860 by spawnve is a process handle, no need to convert. Add a parameter
24861 close to control wether the process handle must be closed.
24862 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
24863 a process handle, not need to convert.
24864 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
24866 * g-expect.adb: (Kill): Document the new close parameter.
24867 (Close): Do not release the process handle in the kill there as
24868 waitpid() is using it.
24869 (Send_Signal): Release the process handle.
24871 2005-11-14 Robert Dewar <dewar@adacore.com>
24873 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
24874 need a high precision float type for the generated code (prevents
24875 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
24878 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
24879 need a high precision float type for the generated code (prevents
24880 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
24882 (Expand_Width_Attribute): In configurable run-time, the attribute is not
24883 allowed on non-static enumeration subtypes. Force a load error to emit
24884 the correct diagnostic.
24886 2005-11-14 Thomas Quinot <quinot@adacore.com>
24887 Robert Dewar <dewar@adacore.com>
24888 Ed Schonberg <schonberg@adacore.com>
24890 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
24891 subtype to compute the size of the designated object at run-time,
24892 create such a subtype and store it in the Actual_Designated_Subtype
24893 attribute of the N_Free_Statement.
24894 Generate itype for classwide designated object in both cases of
24895 user-specified storage pool: specific and class-wide, not only in the
24897 Raise CE when trying to set a not null access type object to null.
24898 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
24899 an explicit loop, because freeze nodes make its position variable.
24901 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
24904 2005-11-14 Javier Miranda <miranda@adacore.com>
24906 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
24907 Build_Stream_Procedure): Add the null-excluding attribute to the first
24909 This has no semantic meaning under Ada95 mode but it is a
24910 requirement under Ada05 mode.
24912 * par-ch3.adb (P_Access_Definition): Addition of warning message if
24913 the null exclusion is used under Ada95 mode
24914 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
24915 (P_Access_Definition): Remove assertion that forbids the use of
24916 the null-exclusion feature in Ada95.
24918 2005-11-14 Robert Dewar <dewar@adacore.com>
24920 * impunit.adb: Exclude container helper units not intended for use by
24923 2005-11-14 Ed Schonberg <schonberg@adacore.com>
24925 * freeze.adb (Freeze_Entity): For an access formal that is an access
24926 to subprogram, freeze the anonymous subprogram type at the same time,
24927 to prevent later freezing in the wrong scope, such as the enclosing
24929 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
24930 subprogram whenever available.
24932 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24935 * gnatvsn.ads (Library_Version): Bump to 4.1
24937 2005-11-14 Robert Dewar <dewar@adacore.com>
24939 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
24940 Storage_Offset to avoid wrap around causing invalid results.
24942 2005-11-14 Pascal Obry <obry@adacore.com>
24944 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
24946 (Scan_Bind_Arg): Fail with an error message if -M option is used
24947 on a native compiler.
24949 2005-11-14 Robert Dewar <dewar@adacore.com>
24950 Vincent Celier <celier@adacore.com>
24952 * gprep.adb: Implement -C switch to scan comments
24954 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
24956 * scans.ads: Comment updates (including new use of Tok_Comment in
24959 * opt.ads: Add documentation for flags that are used by gprmake,
24960 currently and in the next version of gprmake.
24961 (Verbosity_Level): New variable
24962 Add Replace_In_Comments switch
24964 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
24966 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
24968 2005-11-14 Arnaud Charlet <charlet@adacore.com>
24970 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
24971 message, friendlier.
24973 2005-11-14 Robert Dewar <dewar@adacore.com>
24975 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
24977 2005-11-14 Doug Rupp <rupp@adacore.com>
24979 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
24981 2005-11-14 Robert Dewar <dewar@adacore.com>
24983 * interfac.ads: Change declarations of IEEE float types so that we no
24984 longer need a separate version of this package for VMS.
24986 2005-11-14 Ed Schonberg <schonberg@adacore.com>
24988 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
24989 internal entity created for the declaration of a child subprogram body
24990 with no spec as coming from source, to generate proper cross-reference
24993 2005-11-14 Vincent Celier <celier@adacore.com>
24995 * make.adb (Compile_Sources): Change verbose message to minimum
24996 verbosity level High for "is in an Ada library", "is a read-only
24997 library" and "is an internal library",
24998 (Create_Binder_Mapping_File): Path name of ALI file for library project
24999 must include the library directory, not the object directory.
25000 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
25001 for new switches -vl, -vm and -vh.
25002 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
25003 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
25004 (Compile_Sources): Do not attempt to compile if an ALI file is missing
25005 in a project that is externally built.
25006 (Compute_All_Imported_Projects): New procedure
25007 (Gnatmake): Check if importing libraries should be regenerated because
25008 at least an imported library is more recent.
25009 (Initialize): For each project compute the list of the projects it
25010 imports directly or indirectly.
25011 (Add_Library_Search_Dir): New procedure, used in place of
25012 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25013 put in the search paths.
25014 (Add_Source_Search_Dir): New procedure, used in place of
25015 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
25016 put in the search paths.
25017 (Mark_Directory): Resolve the absolute path the directory before marking
25020 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
25021 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25022 Switch. Do not handle any exception.
25023 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
25024 so that the switch is recognized as valid.
25025 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
25027 2005-11-14 GNAT Script <nobody@adacore.com>
25029 * Make-lang.in: Makefile automatically updated
25031 2005-11-14 Pascal Obry <obry@adacore.com>
25033 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
25035 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
25036 In both cases the last argument was dropped.
25038 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
25040 * namet.h: (Column_Numbe): New type.
25041 (Get_Column_Number): Define to sinput__get_column_number.
25042 (Instantiation): Define to sinput__instantiation.
25043 (Get_Column_Number): Declare.
25044 (Instantiation): Likewise.
25046 2005-11-14 Robert Dewar <dewar@adacore.com>
25048 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
25049 syntax, which could cause compiler hangs.
25051 2005-11-14 Vincent Celier <celier@adacore.com>
25053 * prj-ext.adb: Take into account new environment variable
25054 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
25056 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
25057 normalize its path name, making it absolute and resolving symbolic
25058 links, and replace the original if resolved path is different.
25060 2005-11-14 Vincent Celier <celier@adacore.com>
25062 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
25063 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
25065 2005-11-14 Emmanuel Briot <briot@adacore.com>
25067 * prj-pp.adb (Print): Do not output the with statement if the
25068 associated name is empty, which happens for virtual extending projects.
25069 (Print): Preserve the "extends all" attribute when printing the project.
25071 * prj-tree.ads (String_Value_Of): Add comment about returned value for
25072 a virtual extending project.
25074 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25076 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
25077 rhs of an assignment even if the type is unconstrained, when the
25078 context is non-expanding.
25079 In an inlined body, if the context type is private,
25080 resolve with its full view, which must be a composite type.
25082 2005-11-14 Robert Dewar <dewar@adacore.com>
25083 Ed Schonberg <schonberg@adacore.com>
25085 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
25086 Do not give obsolescent warning on with of subprogram (since we
25088 (Analyze_With_Clause): Add test for obsolescent package
25089 (Install_Context_Clauses): If the unit is the body of a child unit, do
25090 not install twice the private declarations of the parents, to prevent
25091 circular lists of Use_Clauses in a parent.
25092 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
25093 compiling body of child unit.
25094 Use new class N_Subprogram_Instantiation
25095 (Expand_With_Clause): If this is a private with_clause for a child unit,
25096 appearing in the context of a package declaration, then the implicit
25097 with_clauses generated for parent units are private as well.
25098 (License_Check): Do not generate message if with'ed unit is internal
25100 2005-11-14 Gary Dismukes <dismukes@adacore.com>
25101 Ed Schonberg <schonberg@adacore.com>
25102 Thomas Quinot <quinot@adacore.com>
25104 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
25105 names are internal, because they will not have a corresponding partner
25106 in the actual package.
25107 (Analyze_Formal_Package): Move the setting of the formal package spec's
25108 Generic_Parent field so that it occurs prior to analyzing the package,
25109 to allow proper operation of Install_Parent_Private_Declarations.
25110 (Analyze_Package_Instantiation): Set the instantiated package entity's
25111 Package_Instantiation field.
25112 (Get_Package_Instantiation_Node): Move declaration to package spec.
25113 Retrieve the N_Package_Instantiation node when the Package_Instantiation
25115 (Check_Generic_Child_Unit): Within an inlined call, the only possible
25116 instantiation is Unchecked_Conversion, for which no parents are needed.
25117 (Inline_Instance_Body): Deinstall and record the use_clauses for all
25118 parent scopes of a scope being removed prior to inlining an instance
25120 (Analyze_Package_Instantiation): Do not perform front-end inlining when
25121 the current context is itself an instance within a non-instance child
25122 unit, to prevent scope stack errors.
25123 (Save_References): If the node is an aggregate that is an actual in a
25124 call, rewrite as a qualified expression to preserve some type
25125 information, to resolve possible ambiguities in the instance.
25126 (Instance_Parent_Unit): New global variable to record the ultimate
25127 parent unit associated with a generic child unit instance (associated
25128 with the existing Parent_Unit_Visible flag).
25129 (type Instance_Env): New component Instance_Parent_Unit for stacking
25130 parents recorded in the global Instance_Parent_Unit.
25131 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
25133 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
25134 it's not a top-level unit, and only do this if Instance_Parent_Unit is
25135 not already set. Replace test of Is_Child_Unit with test of parent's
25136 scope against package Standard. Add comments and a ??? comment.
25137 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
25138 on a child instance parent to test that the parent equals
25139 Instance_Parent rather than simply checking that the unit is not a
25141 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
25142 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
25143 a formal interface are ancestors of the corresponding actual.
25144 (Validate_Formal_Interface_Type): Additional legality checks.
25145 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
25146 interface types with ancestors.
25147 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
25148 to diagnose attempts to use generic within its own declaration.
25150 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25151 Javier Miranda <miranda@adacore.com>
25153 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
25155 (Build_Private_Derived_Type): The entity of the created full view of the
25156 derived type does not come from source. If after installing the private
25157 declarations of the parent scope the parent is still private, use its
25158 full view to construct the full declaration of the derived type.
25159 (Build_Derived_Record_Type): Relax the condition that controls the
25160 execution of the check that verifies that the partial view and
25161 the full view agree in the set of implemented interfaces. In
25162 addition, this test now only takes into account the progenitors.
25163 (Derive_Interface_Subprograms): No need to derive subprograms
25164 of ancestors that are interfaces.
25165 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
25167 Change name Is_Package to Is_Package_Or_Generic_Package
25168 (Complete_Subprograms_Derivation): Handle the case in which the full
25169 view is a transitive derivation of the ancestor of the partial view.
25170 (Process_Full_View): Rename local subprogram Find_Interface_In_
25171 Descendant to Find_Ancestor_Interface to leave the code more clear.
25172 Remove wrong code that avoids the generation of an error message
25173 when the immediate ancestor of the partial view is an interface.
25174 In addition some minor reorganization of the code has been done to
25175 leave it more clear.
25176 (Analyze_Type_Declaration): If type has previous incomplete tagged
25177 partial view, inherit properly its primitive operations.
25178 (Collect_Interfaces): Make public, for analysis of formal
25180 (Analyze_Interface_Declaration): New procedure for use for regular and
25181 formal interface declarations.
25182 (Build_Derived_Record_Type): Add support for private types to the code
25183 that checks if a tagged type implements abstract interfaces.
25184 (Check_Aliased_Component_Type): The test applies in the spec of an
25186 (Access_Type_Declaration): Clean up declaration of malformed type
25187 declared as an access to its own classwide type, to prevent cascaded
25189 (Collect_Interfaces): For private extensions and for derived task types
25190 and derived protected types, the parent may be an interface that must
25191 be included in the interface list.
25192 (Access_Definition): If the designated type is an interface that may
25193 contain tasks, create Master_Id for it before analyzing the expression
25194 of the declaration, which may be an allocator.
25195 (Record_Type_Declaration): Set properly the interface kind, for use
25196 in allocators, the creation of master id's for task interfaces, etc.
25198 2005-11-14 Javier Miranda <miranda@adacore.com>
25199 Ed Schonberg <schonberg@adacore.com>
25201 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
25202 omitted in case of stream attribute subprograms.
25203 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
25204 appear immediately after a subprogram body, when there is no previous
25205 subprogram declaration.
25206 Change name Is_Package to Is_Package_Or_Generic_Package
25207 (Process_Formals): A non null qualifier on a non null named access
25208 type is not an error, and is a warning only if Redundant_Constructs
25211 2005-11-14 Gary Dismukes <dismukes@adacore.com>
25212 Ed Schonberg <schonberg@adacore.com>
25214 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
25215 nested within Analyze_Package_Specification to install the private
25216 declarations and use clauses within each of the parent units of a
25217 package instance of a generic child package.
25218 (Analyze_Package_Specification): When entering a private part of a
25219 package associated with a generic instance or formal package, the
25220 private declarations of the parent must be installed (by calling new
25221 procedure Install_Parent_Private_Declarations).
25222 Change name Is_Package to Is_Package_Or_Generic_Package
25223 (Preserve_Full_Attributes): For a synchronized type, the corresponding
25224 record is absent in a generic context, which does not indicate a
25227 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25229 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
25230 not try to rewrite a renamed stream attribute, because the operations
25231 on the type may not have been generated.
25232 Handle properly a renaming_as_body generated for a stream operation
25233 whose default is abstract because the object type itself is abstract.
25234 (Find_Type): If the type is incomplete and appears as the prefix of a
25235 'Class reference, it is tagged, and its list of primitive operations
25236 must be initialized properly.
25237 (Chain_Use_Clauses): When chaining the use clauses that appear in the
25238 private declaration of a parent unit, prior to compiling the private
25239 part of a child unit, find on the scope stack the proper parent entity
25240 on which to link the use clause.
25241 (Note_Redundant_Use): Emit a warning when a redundant use clause is
25243 (Analyze_Object_Renaming): An attribute reference is not a legal object
25244 if it is not a function call.
25246 2005-11-14 Robert Dewar <dewar@adacore.com>
25247 Ed Schonberg <schonberg@adacore.com>
25249 * sem_eval.adb: Implement d.f flag
25250 (Subtype_Statically_Match): A generic actual type has unknown
25251 discriminants when the corresponding actual has a similar partial view.
25252 If the routine is called to validate the signature of an inherited
25253 operation in a child instance, the generic actual matches the full view,
25255 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25256 Ed Schonberg <schonberg@adacore.com>
25257 Robert Dewar <dewar@adacore.com>
25258 Thomas Quinot <quinot@adacore.com>
25260 * sem_res.adb (Resolve_Call): Provide a better error message whenever
25261 a procedure call is used as a select statement trigger and is not an
25262 entry renaming or a primitive of a limited interface.
25263 (Valid_Conversion): If the operand has a single interpretation do not
25264 remove address operations.
25265 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
25266 statement to inhibit warning.
25267 (Resolve_Unary_Op): Do not produce a warning when
25268 processing an expression of the form -(A mod B)
25269 Use Universal_Real instead of Long_Long_Float when we need a high
25270 precision float type for the generated code (prevents gratuitous
25271 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
25272 (Resolve_Concatenation_Arg): Improve error message when argument is an
25273 ambiguous call to a function that returns an array.
25274 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
25275 there is an implicit operator in the given scope if we are within an
25276 instance: legality check has been performed on the generic.
25277 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
25278 after resolving operand, to avoid false warnings on overloaded calls.
25280 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25281 Javier Miranda <miranda@adacore.com>
25284 * sem_type.adb (Covers): In an inlined body, a composite type matches
25285 a private type whose full view is a composite type.
25286 (Interface_Present_In_Ancestor): Protect the frontend against
25287 previously detected errors to ensure that its compilation
25288 with assertions enabled gives the same output that its
25289 compilation without assertions.
25290 (Interface_Present_In_Ancestor): Add support for private types.
25291 Change name In_Actual to In_Generic_Actual (clean up)
25292 (Disambiguate): New predicate In_Actual, to recognize expressions that
25293 appear in the renaming declaration generated for generic actuals, and
25294 which must be resolved in the outer context.
25296 2005-11-14 Robert Dewar <dewar@adacore.com>
25297 Thomas Quinot <quinot@adacore.com>
25298 Hristian Kirtchev <kirtchev@adacore.com>
25299 Ed Schonberg <schonberg@adacore.com>
25301 * sem_util.ads, sem_util.adb: Change name Is_Package to
25302 Is_Package_Or_Generic_Package.
25303 (Check_Obsolescent): New procedure.
25304 (Set_Is_Public): Remove obsolete junk test.
25305 (Set_Public_Status): Do not set Is_Public on an object whose declaration
25306 occurs within a handled_sequence_of_statemets.
25307 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
25308 for a parameterless procedure.
25309 (Enter_Name): Recognize renaming declarations created for private
25310 component of a protected type within protected operations, so that
25311 the source name of the component can be used in the debugger.
25313 2005-11-14 Ed Schonberg <schonberg@adacore.com>
25314 Robert Dewar <dewar@adacore.com>
25316 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
25317 of a generic subprogram are not visible outside the body.
25318 (Set_Warning_Switch): New procedure (code to set warning mode moved
25319 here from Switch.C so that it can be shared by pragma processing.
25320 (Check_References): Special case warning for non-modified non-imported
25322 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
25323 form with a string literal argument
25325 2005-11-14 Javier Miranda <miranda@adacore.com>
25327 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
25329 (Write): Addition of "not null" to the anonymous access.
25330 (Read): Addition of "not null" to the anonymous access.
25331 (Write): Addition of "not null" to the anonymous access.
25333 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
25334 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
25335 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
25336 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
25337 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
25338 "not null" to the anonymous access.
25340 2005-11-14 Robert Dewar <dewar@adacore.com>
25342 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
25345 2005-11-14 Vincent Celier <celier@adacore.com>
25347 * switch.adb (Bad_Switch): New procedure
25348 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
25349 message when in error.
25351 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
25352 Too_Many_Output_Files): Remove declarations, no longer used.
25353 (Scan_Nat): New parameter Switch
25355 (Bad_Switch): New procedure
25357 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
25358 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
25359 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
25360 to Osint.Fail. Do not handle any exception.
25362 2005-11-14 Vincent Celier <celier@adacore.com>
25364 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
25365 designates a non existent directory.
25367 2005-11-14 Robert Dewar <dewar@adacore.com>
25369 * xgnatugn.adb: Replace invalid membership test by 'Valid
25371 2005-11-14 Vincent Celier <celier@adacore.com>
25373 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
25374 there is no object directory.
25376 2005-11-14 Robert Dewar <dewar@adacore.com>
25378 * usage.adb: Minor adjustment to output format, use nn instead of nnn
25379 (so that -gnateInnn does not run into next column)
25381 2005-11-14 Ed Falis <falis@adacore.com>
25383 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
25386 2005-11-14 Cyrille Comar <comar@adacore.com>
25388 * s-chepoo.ads: Add comments on Dereference.
25389 Remove unnecessary inherited abstract primitives.
25392 2005-11-14 Robert Dewar <dewar@adacore.com>
25394 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
25395 node parameter, not needed, since it is available as Declaration_Node.
25397 2005-11-14 Geert Bosch <bosch@adacore.com>
25399 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
25400 grammatically correct.
25402 2005-11-14 Vincent Celier <celier@adacore.com>
25404 * s-fileio.ads: Correct spelling error in comment
25406 2005-11-14 Cyrille Comar <comar@adacore.com>
25407 Robert Dewar <dewar@adacore.com>
25408 Vincent Celier <celier@adacore.com>
25409 Ben Brosgol <brosgol@adacore.com>
25410 Jose Ruiz <ruiz@adacore.com>
25411 Pascal Obry <obry@adacore.com>
25414 Document that -fstack-check is needed for strict compliance with the
25415 Ada 95 Reference Manual.
25416 Correct reference to VAX systems to meet HP guidelines
25417 Add documentation for new gnatmake switches -vl, -vm and -vh
25418 Replace DEC Ada by HP Ada
25419 Replace DIGITAL by HP
25420 Remove empty section on tools in compatibility section
25421 Clarify the Windows convention semantics.
25422 Document the Win32 calling convention.
25423 The Stdcall, Win32 and DLL convention are synonyms.
25424 Add a note in -gnatR description about zero size record components
25425 Note on new >= and <= warnings for -gnatwc
25426 Document that equal sign after -gnatm is optional.
25427 Note that strip is working fine on DLL built with a Library
25428 Project. The restriction apply only to DLL built with gnatdll.
25429 Update section about the way to debug a DLL.
25430 Update information about the DLL convention.
25431 Document -C switch for gnatprep
25432 Document new attribute Library_ALI_Dir
25433 Update elaboration doc to include implicit Elaborate pragmas now
25434 generated for subprogram instantiations.
25435 Document limitation on executable names that include spaces for --GCC,
25436 --GNATBIND, and --GNATLINK switches.
25437 Document that -w causes -gnatws to be added at start of gcc switches
25439 * gnat_rm.texi: Document that -mieee is needed for generating infinite
25440 and NaN values in case of overflow on machines that are not fully
25441 compliant with the IEEE floating-point standard.
25442 Create a section describing the set of compiler options needed for
25443 strict compliance with the Ada 95 Reference Manual.
25444 Add documentation for pragma Obsolescent applied to a package
25445 Clarify potential issues of mixed language programs related to the
25446 I/O buffering enabling in the elaboration of the GNAT runtime.
25447 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
25448 This documentation only patch adds extra documentsion for pragma
25449 Restrictions (No_Elaboration_Code), explaining why it is not possible
25450 to document this restriction in terms of allowed source constructs.
25451 Document string literal form of pragma Warnings
25452 Document new attribute Library_ALI_Dir
25453 Add documentation on stable attributes in project files that was missing
25455 * gnat-style.texi: Indicate that paragraphs within a single comment
25456 should be separated by empty comment lines
25458 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
25461 * bindusg.adb: Minor cleanup, put -m before -M for consistency
25463 2005-11-14 Robert Dewar <dewar@adacore.com>
25465 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
25466 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
25467 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
25468 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
25469 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
25470 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
25471 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
25472 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
25473 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
25474 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
25475 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
25476 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
25477 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
25478 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
25479 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
25480 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
25481 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
25482 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
25483 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
25484 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
25485 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
25486 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
25487 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
25488 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
25489 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
25490 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
25491 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
25492 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
25493 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
25494 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
25495 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
25496 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
25497 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
25498 system-interix.ads, system-solaris-sparc.ads,
25499 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
25500 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
25501 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
25502 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
25503 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
25504 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
25505 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
25506 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
25507 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
25508 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
25509 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
25510 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
25511 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
25512 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
25513 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
25514 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
25515 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
25516 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
25517 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
25518 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
25519 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
25520 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
25521 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
25522 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
25523 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
25524 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
25525 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
25526 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
25527 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
25528 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
25529 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
25530 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
25531 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
25532 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
25533 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
25534 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
25535 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
25536 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
25537 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
25538 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
25539 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
25540 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
25541 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
25542 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
25543 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
25544 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
25545 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
25546 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
25547 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
25548 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
25549 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
25550 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
25551 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
25552 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
25553 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
25554 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
25555 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
25556 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
25557 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
25558 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
25559 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
25560 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
25561 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
25562 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
25563 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
25564 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
25565 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
25566 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
25567 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
25568 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
25569 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
25570 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
25571 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
25572 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
25573 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
25574 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
25575 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
25576 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
25577 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
25578 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
25579 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
25580 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
25581 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
25582 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
25583 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
25584 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
25585 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
25586 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
25587 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
25588 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
25589 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
25590 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
25591 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
25592 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
25593 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
25594 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
25595 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
25596 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
25597 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
25598 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
25599 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
25600 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
25601 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
25602 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
25603 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
25604 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
25605 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
25606 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
25607 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
25608 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
25609 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
25610 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
25611 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
25612 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
25613 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
25614 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
25615 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
25616 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
25617 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
25618 a-numaux-darwin.ads, a-numaux-darwin.adb,
25619 a-swuwha.ads, a-stunha.ads: Minor reformatting
25621 2005-11-14 Robert Dewar <dewar@adacore.com>
25624 * osint-m.adb: Add pragma Elaborate_All for Osint
25626 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
25629 * trans.c (call_to_gnu): Restore statement lost in translation.
25631 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
25633 * init.c: Use the Linux-specific section for the IA-64/Linux target.
25634 (__gnat_adjust_context_for_raise): Add conditional code so that the
25635 IA-64 is also supported.
25637 2005-11-03 James E Wilson <wilson@specifix.com>
25640 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
25641 TREE_OVERFLOW check.
25643 2005-09-21 Olivier Hainque <hainque@adacore.com>
25646 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
25647 as we create them to store a size in bits.
25649 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
25657 * utils2.c (build_return_expr): New helper function.
25658 * gigi.h (build_return_expr): Declare it.
25659 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
25660 of manually building the RETURN_EXPR tree.
25661 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
25662 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
25663 build_binary_op for the "target pointer" case. Use build_return_expr
25664 instead of manually building the RETURN_EXPR tree.
25666 2005-09-16 Laurent Guerby <laurent@guerby.net>
25669 * s-tpinop.ads: Make this unit Preelaborate.
25671 2005-09-16 Andreas Jaeger <aj@suse.de>
25673 * socket.c: Add string.h for memcpy.
25675 2005-09-05 Arnaud Charlet <charlet@adacore.com>
25677 * dec-io.ads, dec-io.adb: Removed, no longer used.
25679 2005-09-01 Arnaud Charlet <charlet@adacore.com>
25681 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
25683 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
25684 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
25685 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
25686 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
25687 dependent units are Preelaborate.
25688 (Initialize): Call Interrupt_Managemeent.Initialize and
25689 OS_Primitives.Initialize to ensure proper initialization of this unit.
25690 Remove use of System.Soft_Links
25691 Make this unit Preelaborate.
25693 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
25694 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
25695 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
25696 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
25697 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
25698 s-tratas.ads, s-tasinf.ads: Minor reformatting.
25699 Add pragma Preelaborate, since these packages are suitable for this
25703 * s-traent-vms.ads, s-intman-dummy.adb,
25704 s-taprop-dummy.adb: Make this unit Preelaborate.
25706 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
25707 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
25708 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
25709 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
25710 s-intman-solaris.adb, s-intman-irix-athread.adb,
25711 s-intman-irix.adb: Mark this unit Preelaborate.
25712 (Initialize): New procedure.
25715 * s-taspri-linux.ads: Removed.
25717 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
25718 as done by other implementations (e.g. posix).
25720 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
25721 responsible for deferring abort.
25722 Mark this unit Preelaborate.
25724 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
25725 proper initialization of the tasking run-time.
25727 * s-tasdeb.ads: Mark this unit Preelaborate.
25728 (Known_Tasks): Add explicit default value to avoid elaboration code.
25730 * s-inmaop-vms.adb (Elaboration code): Add call to
25731 Interrupt_Management.Initialize since the elaboration code depends on
25732 proper initialization of this package.
25734 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
25735 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
25736 s-osprim-posix.adb: Make this unit Preelaborate.
25738 * a-calend.adb: Add call to OS_Primitives.Initialize
25740 * a-elchha.adb: Update use of Except.Id.Full_Name.
25741 Minor reformatting.
25742 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
25744 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
25745 Move with clauses outside Warnings Off now that dependent units are
25747 Use raise xxx with "..."; Ada 2005 form.
25749 * a-taside.ads, a-taside.adb:
25750 Remove some dependencies, to make it easier to make this unit truly
25752 Rewrite some code to be conformant with Preelaborate rules.
25754 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
25755 marked Preelaborate in the future.
25757 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
25758 these units Preelaborate.
25760 * s-exctab.adb: Update use of Except.Id.Full_Name.
25762 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
25763 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
25764 Set_Exc_Stack_Addr): Removed, no longer used.
25765 Remove reference to *Machine_State_Addr*, no longer needed.
25767 * s-stalib.ads: Mark this unit as Preelaborate[_05].
25768 (Exception_Data): Full_Name is now a System.Address so that this unit
25769 can be made Preelaborate.
25770 Clean up/simplify code thanks to Full_Name being a System.Address.
25771 Remove obsolete pragma Suppress (All_Checks), no longer needed.
25773 * s-taskin.ads, s-taskin.adb:
25774 Move with clauses outside Warnings Off now that dependent units are
25776 Make this unit Preelaborate.
25777 (Initialize): New proceduure, replace elaboration code and makes the
25778 set up of the tasking run-time cleaner.
25779 (Detect_Blocking): Now a function instead of a deferred boolean, to
25780 obey Preelaborate rules.
25782 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
25783 soft links, no longer used.
25785 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
25786 packages are suitable for this categorization.
25788 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
25789 since we compile run-time sources in Ada 2005 mode.
25790 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
25791 avoid having s-taprop*.adb depend on s-soflin and to avoid code
25793 Remove reference to *Machine_State_Addr*, no longer needed.
25795 2005-09-01 Arnaud Charlet <charlet@adacore.com>
25797 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
25798 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
25799 Remove reference to System.Exceptions.
25801 * s-mastop-x86.adb: Removed, no longer used.
25803 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
25805 * a-excach.adb: Minor reformatting.
25807 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
25808 instead fix new warnings that were hidden by this change.
25809 (AAA, ZZZ): Removed, replaced by...
25810 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
25811 are used instead of constants, to help make Ada.Exception truly
25813 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
25814 Raise_Storage_Error): File is now a System.Address, to simplify code.
25815 (Elab code): Removed, no longer used.
25816 (Null_Occurrence): Remove Warnings Off and make this construct
25818 Remove code related to front-end zero cost exception handling, since
25819 it is no longer used.
25820 Remove -gnatL/-gnatZ switches.
25822 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
25823 Update use of Except.Msg.
25825 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
25826 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
25827 to front-end zero cost exception handling, since it is no longer used.
25828 Remove -gnatL/-gnatZ switches.
25830 * lib-writ.ads: Minor reformatting
25833 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
25835 * Make-lang.in: Remove references to s-except.ads
25837 * s-except.ads: Removed, no longer used.
25839 * s-mastop.ads, s-mastop.adb:
25840 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
25841 Remove reference to System.Exceptions.
25843 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
25844 switch-b.adb: Remove code related to front-end zero cost exception
25845 handling, since it is no longer used.
25846 Remove -gnatL/-gnatZ switches.
25848 2005-09-01 Robert Dewar <dewar@adacore.com>
25849 Gary Dismukes <dismukes@adacore.com>
25850 Javier Miranda <miranda@adacore.com>
25852 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
25853 type by valid test and generate warning.
25854 (Tagged_Membership): Generate call to the run-time
25855 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
25856 Change formal name Subtype_Mark to Result_Definition in several calls to
25857 Make_Function_Specification.
25858 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
25859 check for proper accessibility of the operand of a class-wide allocator.
25860 The check can be left out if checks are suppressed or if the expression
25861 has a specific tagged type whose level is known to be safe.
25863 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
25864 generates the run-time check associated with null-excluding entities.
25865 (Expand_N_Return_Statement): Add tests to determine if the accessibility
25866 check on the level of the return expression of a class-wide function
25867 can be elided. The check usually isn't needed if the expression has a
25868 specific type (unless it's a conversion or a formal parameter). Also
25869 add a test for whether accessibility checks are suppressed. Augment
25870 the comments to describe the conditions for performing the check.
25872 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
25873 Javier Miranda <miranda@adacore.com>
25874 Gary Dismukes <dismukes@adacore.com>
25875 Ed Schonberg <schonberg@adacore.com>
25877 * a-tags.adb (IW_Membership): Give support to
25878 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
25879 subprogram has been extended to look for the tag in the ancestors tag
25881 Update the structure of the GNAT Dispatch Table to reflect the
25882 additional two tables used in dispatching selects.
25883 Introduce appropriate array types and record components in
25884 Type_Specific_Data to reflect the two tables.
25885 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
25886 the TSD of a tag, indexed by position.
25887 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
25888 operation kind in the TSD of a tag, indexed by position.
25890 * a-tags.ads: Introduce an enumeration type to capture different
25891 primitive operation kinds. Define a constant reflecting the number of
25892 predefined primitive operations.
25893 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
25894 of an entry wrapper.
25895 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
25896 callable entity of a primitive operation.
25898 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
25899 primitive operations used in dispatching selects for limited
25900 interfaces, limited tagged, task and protected types what implement a
25902 (Freeze_Type): Generate the bodies of the primitive operations used in
25903 dispatching selects for limited tagged, task and protected types that
25904 implement a limited interface. Generate statements to populate the two
25905 auxiliary tables used for dispatching in select statements.
25906 (Freeze_Record_Type): Add call to initialize the dispatch table entries
25907 associated with predefined interface primitive operations.
25908 (Build_Dcheck_Function): Change Set_Subtype_Mark to
25909 Set_Result_Definition.
25910 (Build_Variant_Record_Equality): Change Subtype_Mark to
25912 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
25913 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
25914 (Build_Assignment): Simplify the code that adds the run-time-check.
25915 (Expand_N_Object_Declaration): Code cleanup.
25917 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
25918 entries when there is a protected type that implements a limited
25921 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
25922 common routines used in expansion of dispatching selects.
25923 (Add_Private_Declarations): Select the appropriate protection type when
25924 there is a protected type that implements a limited interface.
25925 (Build_Parameter_Block): Generate a wrapped parameter block.
25926 (Build_Protected_Subprogram_Body): Select the appropriate type for
25927 locking entries when there is a protected type that implements a
25929 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
25930 classified as entry wrappers.
25931 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
25932 asynchronous selects.
25933 (Expand_N_Conditional_Entry_Call): Add support for expansion of
25934 dispatching conditional selects.
25935 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
25936 protection when there is a protected type that implements limited
25938 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
25940 (Extract_Dispatching_Call): Extract the entity of the name of a
25941 dispatching call, the object parameter, actual parameters and
25942 corresponding formals.
25943 (Make_Initialize_Protection): Correct logic of protection initialization
25944 when there is a protected type that implements a limited interface.
25945 (Parameter_Block_Pack): Populate a wrapped parameter block with the
25946 values of actual parameters.
25947 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
25948 block and assign them to the original actual parameters.
25950 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
25951 (Build_Protected_Sub_Specification): Change the type and name of the
25952 last formal to account for the increased variety of protection modes.
25954 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
25955 entities. Used to save the value of the Is_Hidden attribute when the
25956 limited-view is installed.
25957 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
25958 the attribute of procedures classified as entry wrappers.
25959 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
25960 entity of a primitive wrapper.
25961 (Write_Entity_Flags): Output the name and value of the
25962 Is_Primitive_Wrapper attribute.
25963 (Write_Field27_Name): Output the name and entity of the field Wrapped_
25965 (Underlying_Type): If we have an incomplete entity that comes from
25966 the limited view then we return the Underlying_Type of its non-limited
25967 view if it is already available.
25968 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
25969 including operators.
25970 (Write_Field26_Name): Add entry for Overridden_Operation
25971 (Overridden_Operation): New attribute of functions and procedures.
25973 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
25974 predefined position in the dispatch table for the primitive operations
25975 used in dispatching selects.
25976 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
25977 predefined primitive operations and replace it with
25978 Default_Prim_Op_Count.
25979 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
25980 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
25981 the names of the generated primitive operations used in dispatching
25983 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
25984 case of abstract interface types. They will be inherit by the objects
25985 implementing the interface.
25986 (Make_DT): There is no need to inherit the dispatch table of the
25987 ancestor interface for the elaboration of abstract interface types.
25988 The dispatch table will be inherited by the object implementing the
25990 (Copy_Secondary_DTs): Add documentation.
25991 (Validate_Position): Improve this static check in case of
25992 aliased subprograms because aliased subprograms must have
25994 (Init_Predefined_Interface_Primitives): New subprogram that initializes
25995 the entries associated with predefined primitives of all the secondary
25997 (Build_Anonymous_Access_Type): Removed.
25998 (Expand_Interface_Actuals): With the previous cleanup there is no need
25999 to build an anonymous access type. This allows further cleanup in the
26000 code generated by the expander.
26001 (Expand_Interface_Conversion): If the actual is an access type then
26002 build an internal function to handle the displacement. If the actual
26003 is null this function returns null because no displacement is
26004 required; otherwise performs a type conversion that will be
26005 expanded in the code that returns the value of the displaced actual.
26006 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
26007 conversions that have no effect in the generated code because no
26008 displacement is required. Code cleanup; use local variables to
26009 avoid repeated calls to the subprogram directly_designated_type().
26011 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
26012 Classify the primitive operations used in dispatching selects as
26014 (Implements_Limited_Interface): Determine whether some type either
26015 directly implements a limited interface or extends a type that
26016 implements a limited interface.
26017 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
26018 (Expand_Subtype_From_Expr): Do not build actual subtype if the
26019 expression is limited.
26020 (Find_Interface_Tag): Add code to handle class-wide types and
26021 entities from the limited-view.
26023 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
26024 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
26025 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
26026 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
26029 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
26030 of procedure name or prefix that appears as a trigger in a triggering
26033 * uintp.ads: Introduce constants Uint_11 and Uint_13.
26035 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26037 * s-tataat.adb, a-tasatt.adb:
26038 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
26040 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
26041 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
26042 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
26045 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26046 Jose Ruiz <ruiz@adacore.com>
26048 * s-taprop-vxworks.adb:
26049 Move with clauses outside Warnings Off now that dependent units are
26051 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
26052 initialization of this unit.
26053 (Specific): Add new procedures Initialize and Delete so that this
26054 package can be used for VxWorks 5.x and 6.x
26055 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
26056 differences between VxWorks 5.x and 6.x
26057 Minor reformatting.
26058 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
26060 Use only Preelaborate-compatible constructs.
26062 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
26063 Primitives.Operations.
26064 (Delete, Initialize): New procedures.
26066 * s-osinte-vxworks.adb: Body used to handle differences between
26067 VxWorks 5.x and 6.x
26068 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
26070 * s-osinte-vxworks.ads: Minor reformatting.
26071 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
26072 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
26074 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
26075 between Vxworks 5 and 6.
26076 (taskLock, taskUnlock): Removeed, no longer used.
26078 * adaint.c: The wait.h header is not located in the sys directory on
26079 VxWorks when using RTPs.
26080 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
26082 (__gnat_dup): dup is available on Vxworks when using RTPs.
26083 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
26085 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
26087 * expect.c: The wait.h header is not located in the sys directory on
26088 VxWorks when using RTPs.
26090 2005-09-01 Thomas Quinot <quinot@adacore.com>
26092 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
26094 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
26096 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
26097 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26098 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
26099 g-soccon-freebsd.ads: Add new constants:
26101 SO_RCVTIMEO/SO_SNDTIMEO
26105 Move all target-specific file inclusions and macro definitions to
26106 gsocket.h, in order to ensure that any C code in socket.c will see a
26107 set of constants that is consistent with the contents of g-soccon.ads.
26109 * gsocket.h: Code imported from gen-soccon.c:
26110 Move all target-specific file inclusions and macro definitions to
26111 gsocket.h, in order to ensure that any C code in socket.c will see a set
26112 of constants that is consistent with the contents of g-soccon.ads.
26113 This change also makes gen-soccon self-contained (removing dependencies
26114 upon GCC internal headers).
26116 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
26118 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
26120 * socket.c: Minor reformatting.
26122 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26123 Thomas Quinot <quinot@adacore.com>
26125 * fname-sf.adb, mlib-tgt.ads,
26126 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
26127 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
26128 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
26129 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
26130 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
26131 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
26132 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
26133 makegpr.adb: Remove redundant use_clauses.
26135 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26137 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
26138 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
26139 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
26140 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
26141 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
26142 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
26143 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
26144 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
26145 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26146 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
26147 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
26148 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
26149 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
26150 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
26151 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
26152 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
26153 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26154 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26155 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
26156 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
26157 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
26158 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
26159 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
26160 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
26161 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
26162 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
26163 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
26164 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
26165 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
26166 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
26167 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
26168 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
26169 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
26170 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
26171 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
26172 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
26173 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
26174 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
26175 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
26176 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
26177 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
26178 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
26179 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
26180 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
26181 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
26182 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
26183 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
26184 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
26185 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
26186 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
26187 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
26188 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
26189 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
26190 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
26191 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
26192 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
26193 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
26194 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
26195 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
26196 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
26197 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
26198 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
26199 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
26200 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
26201 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
26202 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
26203 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
26204 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
26205 and always use the no parameter form for consistency.
26207 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
26209 2005-09-01 Robert Dewar <dewar@adacore.com>
26211 * binde.adb: Minor reformatting
26212 (Find_Elab_Order): Output warning if -p used with static elab order
26214 2005-09-01 Robert Dewar <dewar@adacore.com>
26216 * checks.adb (Check_Needed): New procedure, deals with removing checks
26217 based on analysis of short-circuited forms. Also generates warnings for
26218 improper use of non-short-circuited forms.
26221 2005-09-01 Robert Dewar <dewar@adacore.com>
26223 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
26226 2005-09-01 Robert Dewar <dewar@adacore.com>
26228 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
26230 Implement new insertion char < (conditional warning)
26231 * errutil.adb, erroutc.adb: Implement new insertion char <
26232 (conditional warning).
26233 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
26234 (Error_Msg_Warn): New variable for < insertion char.
26235 * prj-nmsc.adb: Implement new errout insertion char < (conditional
26237 (Check_For_Source): Change value of Source_Id only after the current
26238 source has been dealt with.
26240 2005-09-01 Robert Dewar <dewar@adacore.com>
26241 Doug Rupp <rupp@adacore.com>
26243 * exp_attr.adb: Handle vax fpt for 'Valid attribute
26244 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
26245 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
26246 (Valid_D, Valid_F, Valid_G): New functions
26248 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26249 Hristian Kirtchev <kirtchev@adacore.com>
26250 Javier Miranda <miranda@adacore.com>
26252 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
26253 from object notation, the original node is unanalyzed and carries no
26254 semantic information, so that accessiblity checks must be performed on
26255 the type of the actual itself.
26256 (Expand_N_Subprogram_Declaration): Change last actual parameter for
26257 compatibility with Build_Protected_Sub_Specification.
26258 (Check_Overriding_Inherited_Interfaces): Add suport to handle
26259 overloaded primitives.
26260 (Register_Interface_DT_Entry): Use the new name of the formal
26261 the the calls to Expand_Interface_Thunk
26263 * exp_dbug.ads: Augment comments on encoding of protected types to
26264 include the generation of dispatching subprograms when the type
26265 implements at least one interface.
26267 * lib.ads: Extend information in Load_Stack to include whether a given
26268 load comes from a Limited_With_Clause.
26270 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
26271 whether a potential circularity is harmless, because it includes units
26272 loaded through a limited_with clause. Extends previous treatment which
26273 did not handle properly arbitrary combinations of limited and
26274 non-limited clauses.
26276 2005-09-01 Nicolas Setton <setton@adacore.com>
26278 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
26279 to be encoded as typ___XBLU_lowerbound__upperbound instead of
26280 typ___XB_lowerbound__upperbound.
26282 2005-09-01 Thomas Quinot <quinot@adacore.com>
26284 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
26285 dummy access formal for RACW/RAS TypeCode TSS.
26286 (Build_TypeCode_Call): Do not generate dummy null access actual for
26287 calls to the TypeCode TSS.
26289 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26291 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
26292 fully qualified name, to distinguish instances with the same local name.
26294 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
26297 2005-09-01 Robert Dewar <dewar@adacore.com>
26299 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
26302 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
26304 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
26305 (Free): New deallocation procedure for filter elements
26306 (Close): Deallocate any existing filter for the concerned connection
26308 2005-09-01 Laurent Pautet <pautet@adacore.com>
26310 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
26311 position set is provided, we compute one in order to reduce the maximum
26312 length of the keys. This computation first selects a character
26313 position between 1 and the minimum length of the keys in order to
26314 avoid reducing one of the keys to an empty string.
26315 (Initialize, Compute): When the ratio V to K is too low, the algorithm
26316 does not converge. The initialization procedure now comes with a
26317 maximum number of iterations such that when exceeded, an exception is
26318 raised in Compute. The user can initialize this ratio to another value
26320 Reformating and updated headers.
26322 2005-09-01 Javier Miranda <miranda@adacore.com>
26324 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
26325 that given an entity T creates and returns an Itype that duplicates the
26326 contents of T. The returned Itype has the null-exclusion
26327 attribute set to True, and its Etype attribute references T
26328 to keep the association between the two entities.
26329 Update copyright notice
26331 * sem_aggr.adb (Check_Can_Never_Be_Null,
26332 Aggregate_Constraint_Checks, Resolve_Aggregate,
26333 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
26335 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
26337 2005-09-01 Gary Dismukes <dismukes@adacore.com>
26338 Robert Dewar <dewar@adacore.com>
26339 Hristian Kirtchev <kirtchev@adacore.com>
26341 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
26344 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
26346 Call Set_Result_Definition instead of Set_Subtype_Mark.
26347 (P_Subprogram_Specification): Add parsing of anonymous access result
26348 plus null exclusions. Call Set_Result_Definition instead of
26351 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26352 (P_Access_Type_Definition): Add parsing for an anonymous access result
26353 subtype, plus parsing for null exclusions. Call Set_Result_Definition
26354 instead of Set_Subtype_Mark.
26356 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
26357 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
26358 (Result_Definition): New function for N_Function_Specifications.
26359 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
26360 N_Function_Specification.
26361 (Set_Null_Exclusion_Present): Allow this flag for
26362 N_Function_Specification.
26363 (Set_Result_Definition): New procedure for N_Function_Specifications.
26364 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
26365 and N_Function_Specification.
26367 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
26368 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
26369 Add support for LIMITED NEW for Ada 2005 AI-419
26370 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
26371 syntax for anonymous access results.
26372 Replace Subtype_Mark field by Result_Definition in
26373 N_Function_Specification and N_Access_Definition specs.
26374 Add Null_Exclusion_Present to spec of N_Function_Specification.
26375 (Result_Definition): New function for N_Function_Specification and
26376 N_Access_Function_Definition.
26377 (Set_Result_Definition): New procedure for N_Function_Specification and
26378 N_Access_Function_Definition.
26380 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
26381 Result_Definition for cases of N_Access_Function_Definition and
26382 N_Function_Specification.
26383 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
26385 2005-09-01 Vincent Celier <celier@adacore.com>
26387 * lib-writ.adb: Update Copyright notice
26388 (Write_With_Lines): On platforms where file names are case-insensitive,
26389 record the file names in lower case.
26390 (Write_ALI): For D lines, on platforms where file names are
26391 case-insensitive, record the file names in lower case.
26393 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26394 Emmanuel Briot <briot@adacore.com>
26396 * lib-xref.adb (Output_Overridden_Op): Display information on
26397 overridden operation.
26399 * lib-xref.ads: Add documentation on overridden operations.
26401 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
26404 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
26405 overriding entity information.
26407 2005-09-01 Vincent Celier <celier@adacore.com>
26409 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
26410 including those that are inherited.
26412 2005-09-01 Robert Dewar <dewar@adacore.com>
26414 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
26416 * par-prag.adb: Implement new pragma Debug_Policy
26418 * sem_prag.adb Implement new pragma Debug_Policy
26419 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
26420 Component_Size attribute specification. Give warning for ignored pragma
26423 * snames.h, snames.ads, snames.adb: Introduce entries in
26424 Preset_Names for Name_Disp_Asynchronous_Select,
26425 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
26426 Name_Disp_Timed_Select.
26427 New pragma Debug_Policy
26429 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
26431 Switch -gnata also sets Debug_Pragmas_Enabled
26433 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
26434 handle an explicit -gnata when compiling predefined files.
26436 2005-09-01 Vincent Celier <celier@adacore.com>
26438 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
26439 directories of projects that have no Ada sources.
26441 2005-09-01 Robert Dewar <dewar@adacore.com>
26443 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
26444 (makes a difference for wide characters)
26446 * widechar.adb, widechar.ads:
26447 Add Wide_Char_Byte_Count feature to count chars vs bytes
26449 2005-09-01 Thomas Quinot <quinot@adacore.com>
26450 Ed Schonberg <schonberg@adacore.com>
26451 Robert Dewar <dewar@adacore.com>
26453 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
26454 'Address attribute reference with an overloaded prefix, use the
26455 location of the prefix (not the location of the attribute reference) as
26456 the error location.
26457 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
26458 a function renaming thereof, is a valid prefix for 'Size (where it is
26459 intepreted as a function call).
26460 (Statically_Denotes_Entity): New predicate to determine whether the
26461 prefix of an array attribute can be considered static.
26464 (Eval_Attr): Fix failure to evaluate Component_Size for
26465 unconstrained arrays (resulted in wrong value in packed case, since
26466 back end cannot handle this case)
26468 2005-09-01 Robert Dewar <dewar@adacore.com>
26470 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
26471 error msgs for most common cases.
26472 Use new errout insertion char < (conditional warning)
26474 2005-09-01 Javier Miranda <miranda@adacore.com>
26475 Ed Schonberg <schonberg@adacore.com>
26477 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
26478 become local to the whole package.
26479 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
26480 the package was already analyzed the new algorithm "replaces" the
26481 real entities by the shadow ones. This is required to ensure that
26482 the order of these entities in the homonym chains does not change;
26483 otherwise we can have undefined references at linking time because
26484 in case of conflicts the external name of the entities will have
26485 a suffix that depends on the order of the entities in the chain.
26486 (Remove_Limited_With_Clause): Complementary code that completes the
26487 new algorithm and replaces the shadow entities by the real ones.
26488 (Install_Limited_Withed_Unit): When unchaining entities before the
26489 installation of the shadow entities, only regular entities of the
26490 public part must be taken into account. This is required to
26491 keep this routine in synch with the work done by Remove_Limited_
26493 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
26494 even if unit is analyzed, because the analysis of the unit is
26495 idempotent in any case, and the limited view of the unit may have to
26496 be installed for proper visibility.
26497 (Expand_Limited_With_Clause): Even if the unit in the implicit
26498 with_clause has been analyzed already, a limited view of the package
26499 must be built for the current context, if it does not exist yet.
26501 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26502 Javier Miranda <miranda@adacore.com>
26503 Gary Dismukes <dismukes@adacore.com>
26505 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
26506 defining entity for the instance body, make a new defining identifier
26507 rather than copying the entity of the spec, to prevent accidental
26508 sharing of the entity list.
26509 (Check_Private_View): When exchanging views of private types, build the
26510 list of exchanged views as a stack, to ensure that on exit the exchanges
26511 are undone in the proper order.
26512 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
26513 Restore the compilation environment in case of instantiation_error.
26514 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
26515 for an anonymous access result.
26516 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
26517 (Formal_Entity): Handle properly the case of a formal package that
26518 denotes a generic package renaming.
26520 2005-09-01 Thomas Quinot <quinot@adacore.com>
26522 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
26523 clause if the array aggregate is surrounded by parentheses.
26525 2005-09-01 Cyrille Comar <comar@adacore.com>
26526 Gary Dismukes <dismukes@adacore.com>
26527 Ed Schonberg <schonberg@adacore.com>
26528 Javier Miranda <miranda@adacore.com>
26530 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
26532 to check if a type is Constrained in cases related to code generation
26533 (rather than semantic checking) since otherwise we do not generate
26534 similar code for mutable private types depending if their
26535 discriminants are visible or not.
26536 (Check_Abstract_Overriding): Do not complain about failure to override
26537 the primitive operations used in dispatching selects since they will
26538 always be overriden at the freeze point of the type.
26539 (Access_Definition): Separate out handling for resetting the scope
26540 of an anonymous access function result type. Retrieve the scope
26541 of the associated function rather than using Current_Scope, which
26542 does not have a consistent value (depends on whether we're in the
26543 middle of analyzing formal parameters). Add ??? comment about
26544 finding a cleaner way to handle the special cases of scope setting.
26545 (Process_Incomplete_Dependents): A protected operation is never a
26546 dispatching operation (only its wrapper may be).
26547 (Build_Derived_Record_Type): In case of tagged private types that
26548 implement interfaces add derivation of predefined primitive
26550 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
26551 by two parameters that are used in case of derivation from abstract
26552 interface types: No_Predefined_Prims is used to avoid the derivation
26553 of predefined primitives from the interface, and Predefined
26554 Prims_Only is used to complete the derivation predefined primitives
26555 in case of private tagged types implementing interfaces.
26556 Fix typo in comments
26557 (Find_Interface_In_Descendant): Protect the frontend against
26558 wrong code with large circularity chains.
26559 (Is_Private_Overriding): Add support for entities overriding interface
26560 subprograms. The test failed because Entities associated with overriden
26561 interface subprograms are always marked as hidden (and used to build
26562 the secondary dispatch table); in this case the overriden entity is
26563 available through the field abstract_interface_alias (cf. override_
26564 dispatching_operation)
26565 (Access_Definition): Set the scope of the type to Current_Scope for the
26566 case of a function with an anonymous access result type.
26567 (Access_Subprogram_Declaration): Handle creation of the type entity for
26568 an access-to-function type with an anonymous access result.
26569 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
26570 in handling for N_Access_Function_Definition.
26571 (Analyze_Subtype_Declaration): Modify the text of error message.
26572 (Derived_Type_Declaration): Modify the text of error message.
26573 (Process_Subtype): Modify the text of error message plus cleanup
26574 of one redundant error message.
26575 (Analyze_Component_Declaration): Code cleanup.
26576 (Analyze_Object_Declaration): Code cleanup.
26577 (Analyze_Subtype_Declaration): Propagate the null-exclusion
26578 attribute in case of access types. Code cleanup.
26579 (Array_Type_Declaration): Code cleanup.
26580 (Process_Discriminants): Create the new null-excluding itype
26581 if required. Code cleanup.
26582 (Process_Subtype): Create the new null-excluding itype if
26583 required. Code cleanup.
26584 (Build_Derived_Record_Type): Code cleanup to avoid calling
26585 twice the subprogram derive_subprograms in case of private
26586 types that implement interfaces. In this particular case the
26587 subprogram Complete_Subprograms_Derivation already does the
26588 job associated with the second call.
26590 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
26591 conversion to the full view when generating an operation for a
26592 discriminant whose type may currently be private.
26594 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26595 Javier Miranda <miranda@adacore.com>
26597 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
26598 V (Obj.F), the rewriting does not involve the indexed component, but
26599 only the selected component itself.
26600 Do not apply the transformation if the analyzed node is an actual of a
26601 call to another subprogram.
26602 (Complete_Object_Operation): Retain the entity of the
26603 dispatching operation in the selector of the rewritten node. The
26604 entity will be used in the expansion of dispatching selects.
26605 (Analyze_One_Call): Improve location of the error message associated
26607 (Analyze_Selected_Component): No need to resolve prefix when it is a
26608 function call, resolution is done when parent node is resolved, as
26610 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
26611 when attempting to resolve a call transformed from its object notation.
26612 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
26613 of the argument list for each interpretation of the operation.
26614 (Try_Object_Operation): The designated type of an access parameter may
26615 be an incomplete type obtained through a limited_with clause, in which
26616 case the primitive operations of the type are retrieved from its full
26618 (Analyze_Call): If this is an indirect call, and the return type of the
26619 access_to_subprogram is incomplete, use its full view if available.
26621 2005-09-01 Javier Miranda <miranda@adacore.com>
26622 Gary Dismukes <dismukes@adacore.com>
26624 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
26625 access types the null-exclusion and access-to-constant attributes must
26627 (Analyze_Return_Statement): When the result type is an anonymous access
26628 type, apply a conversion of the return expression to the access type
26629 to ensure that appropriate accessibility checks are performed.
26630 (Analyze_Return_Type): For the case of an anonymous access result type,
26631 generate the Itype and set Is_Local_Anonymous_Access on the type.
26632 Add ??? placeholder for check to disallow returning a limited object
26633 in Ada 2005 unless it's an aggregate or a result of a function call.
26634 Change calls from Subtype_Mark to Result_Definition.
26635 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
26636 Result_Definition in call to Make_Function_Specification.
26637 (Build_Body_To_Inline): Change Set_Subtype_Mark to
26638 Set_Result_Definition.
26639 (Make_Inequality_Operator): Change formal Subtype_Mark to
26640 Result_Definition in call to Make_Function_Specification.
26641 (Process_Formals): Create the new null-excluding itype if required.
26642 (New_Overloaded_Entity): For an entity overriding an interface primitive
26643 check if the entity also covers other abstract subprograms in the same
26644 scope. This is required to handle the general case, that is, overriding
26645 other interface primitives and overriding abstract subprograms inherited
26646 from some abstract ancestor type.
26647 (New_Overloaded_Entity): For an overriding entity that comes from
26648 source, note the operation that it overrides.
26649 (Check_Conformance, Type_Conformant): Addition of one new formal
26650 to skip controlling formals in the analysis. This is used to
26651 handle overloading of abstract interfaces.
26652 (Base_Types_Match): Add missing case for types imported from
26653 limited-with clauses
26654 (New_Overloaded_Entity): Add barrier to protect the use of
26655 the "alias" attribute.
26657 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26659 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
26660 verify that the procedure and the entry are mode conformant.
26661 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
26662 as a different operator, which is often a cut-and-paste error.
26664 2005-09-01 Javier Miranda <miranda@adacore.com>
26665 Ed Schonberg <schonberg@adacore.com>
26667 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
26668 used in controlling parameters exclude null because it is necessary to
26669 read the tag to dispatch, and null has no tag.
26670 (Override_Dispatching_Operation): If the previous operation is inherited
26671 from an interface, it becomes hidden and does not participate in later
26674 2005-09-01 Javier Miranda <miranda@adacore.com>
26675 Ed Schonberg <schonberg@adacore.com>
26676 Gary Dismukes <dismukes@adacore.com>
26678 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
26679 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
26680 the expander will generate the corresponding run-time check to evaluate
26682 (Resolve_Call): Check for legal type of procedure name or prefix that
26683 appears as a trigger in a triggering alternative.
26684 (Valid_Conversion): If expression is ambiguous and the context involves
26685 an extension of System, remove System.Address interpretations.
26686 (Resolve_Qualified_Expression): Reject the case of a specific-type
26687 qualification applied to a class-wide argument. Enhance comment
26688 to explain checking of Original_Node.
26689 (Resolve_Type_Conversion): The location of the error message was not
26690 general enough to handle the general case and hence it has been removed.
26691 In addition, this patch improves the text of the message.
26692 (Resolve_Type_Conversion): Add missing support for access to interface
26694 (Resolve_Type_Conversion): If the target is a class-wide interface type,
26695 do not expand if the expression is the actual in a call, because proper
26696 expansion will take place when the call itself is expanded.
26697 (Resolve_Allocator): If the context is an unchecked conversion, the
26698 allocator inherits its storage pool, if any, from the target type of
26701 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26702 Javier Miranda <miranda@adacore.com>
26704 * sem_type.adb (Add_One_Interp): If a candidate operation is an
26705 inherited interface operation that has an implementation, use the
26706 implementation to avoid spurious ambiguities.
26707 (Interface_Present_In_Ancestor): In case of concurrent types we can't
26708 use the Corresponding_Record_Typ attribute to look for the interface
26709 because it is set by the expander (and hence it is not always
26710 available). For this reason we traverse the list of interfaces
26711 (available in the parent of the concurrent type).
26712 (Interface_Present_In_Ancestor): Handle entities from the limited view
26714 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26716 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
26717 from the list of required components.
26718 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
26719 primitive procedure of a limited interface with a controlling first
26721 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
26723 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
26724 capture if it is generated in the second operand of a short-circuit
26726 Do not capture values for variables with address clauses.
26727 (Is_Object_Reference): Treat a function call as an object reference only
26728 if its type is not Standard_Void_Type.
26730 2005-09-01 Ed Schonberg <schonberg@adacore.com>
26732 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
26733 to a variable that is statically known to be constant.
26735 2005-09-01 Geert Bosch <bosch@adacore.com>
26736 Robert Dewar <dewar@adacore.com>
26738 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
26739 (VAXGF_Safe_First): Idem.
26741 2005-09-01 Robert Dewar <dewar@adacore.com>
26742 Arnaud Charlet <charlet@adacore.com>
26744 * g-dirope.ads: Minor reformatting
26745 Document that bounds of result of Base_Name match the input index
26747 Add documentation on environment variable syntax for Expand_Path
26749 * gnat_ugn.texi: Update documentation to include mention of -m switches
26750 Document new treatment of wide characters in max line length
26752 Remove -gnatL/-gnatZ switches, no longer used.
26753 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
26756 * gnat_rm.texi: Add doc for two argument form of pragma
26757 Float_Representation.
26758 Add documentation for pragma No_Strict_Aliasing
26759 Add note that explicit component clause overrides pragma Pack.
26760 Add documentation of pragma Debug_Policy
26762 2005-09-01 Matthew Heaney <heaney@adacore.com>
26764 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
26765 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
26766 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
26767 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
26768 draft (Draft 13, August 2005) of Ada Amendment 1.
26770 2005-09-01 Arnaud Charlet <charlet@adacore.com>
26772 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
26773 Note that the platform-specific version of g-soccon.ads for VMS is now
26774 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
26775 really is a package spec).
26776 Replace s-taspri-linux.ads by s-taspri-posix.ads
26777 Remove references to s-mastop-x86.adb
26779 * system-vxworks-xscale.ads: Removed, no longer used.
26780 * s-vxwork-xscale.ads: Removed, no longer used.
26782 2005-09-01 Robert Dewar <dewar@adacore.com>
26784 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
26785 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
26786 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
26787 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
26788 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
26789 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
26790 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
26791 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
26792 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
26793 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
26794 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
26795 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
26796 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
26797 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
26798 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
26799 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
26800 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
26801 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
26802 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
26803 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
26804 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
26806 2005-08-29 Arnaud Charlet <charlet@adacore.com>
26810 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
26812 2005-08-29 Arnaud Charlet <charlet@adacore.com>
26813 Doug Rupp <rupp@adacore.com>
26815 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
26817 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
26818 this code in the GNAT run-time.
26820 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
26823 * init.c (__gnat_error_handler [many]): Mark "msg" as const
26824 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
26826 (__gnat_inside_elab_final_code): Moved here from
26827 Standard_Library and only defined for the compiler.
26828 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
26829 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
26830 using RTPs because directly vectored Interrupt routines are not
26831 supported on this configuration.
26832 (getpid): Do not redefine this function on VxWorks when using RTPs
26833 because this primitive is well supported by the RTP libraries.
26834 (copy_msg): Correct the code that checks for buffer overflow.
26835 Discovered during code reading.
26837 2005-08-29 Olivier Hainque <hainque@adacore.com>
26839 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
26840 a library level mutable variable with an initializer, tell
26841 build_allocator to ignore the initializer's size. It may not be large
26842 enough for all the values that might be assigned to the variable later
26845 2005-08-29 Arnaud Charlet <charlet@adacore.com>
26846 Eric Botcazou <ebotcazou@adacore.com>
26848 * trans.c: Protect < in error msg with quote
26849 Replace GCC_ZCX by Back_End_Exceptions.
26850 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
26851 has been sufficiently aligned in the record.
26853 2005-08-15 James E. Wilson <wilson@specifix.com>
26855 * system-linux-alpha.ads: Change ia64 to alpha.
26857 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
26859 * decl.c, utils.c: Fix comment typos.
26861 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
26863 * decl.c, init.c, initialize.c: Fix comment typos.
26865 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
26867 Make CONSTRUCTOR use VEC to store initializers.
26868 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
26870 * trans.c (extract_values): Likewise.
26871 * utils.c (convert, remove_conversions): Likewise.
26872 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
26873 gnat_build_constructor): Likewise.
26875 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
26877 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
26879 (compare_field_bitpos): Likewise.
26881 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
26883 * utils.c (create_var_decl): Only set DECL_COMMON on
26884 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
26885 VAR_OR_FUNCTION_DECL_P.
26887 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
26889 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
26892 2005-07-07 Pascal Obry <obry@adacore.com>
26894 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
26895 returned type on Windows.
26897 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
26900 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
26901 exception in this case.
26902 Simplify the code as "Image (Image'Range)" = "Image".
26904 2005-07-07 Vincent Celier <celier@adacore.com>
26906 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
26907 the destructor/constructor attributes for <lib>final/<lib>init.
26909 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
26911 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
26913 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
26914 type if the parameter is not passed by copy but reference by default.
26916 2005-07-07 Javier Miranda <miranda@adacore.com>
26918 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
26919 Reimplementation of the support for abstract interface types in order
26920 to leave the code more clear and easy to maintain.
26922 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
26923 abstract interface types in order to leave the code clearer and easier
26926 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
26927 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
26928 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
26929 appropriate entry of the secondary dispatch table.
26930 (Make_DT): Add code to inherit the secondary dispatch tables of
26933 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
26934 implementing both functionalities by means of a common routine, each
26935 routine has its own code.
26937 2005-07-07 Javier Miranda <miranda@adacore.com>
26939 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
26941 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
26944 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
26947 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
26948 use of tag incomplete types.
26950 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
26951 give support to tagged incomplete types.
26953 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
26954 expression is a discriminant reference and its type is private, as can
26955 happen within a stream operation for a mutable record, use the full
26956 view of the type to resolve the case alternatives.
26957 (Analyze_Assignment): Check wrong dereference of incomplete types.
26959 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
26962 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
26965 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
26966 N_Incomplete_Type_Declaration nodes.
26968 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
26969 Tag_Present to give support to tagged incomplete types:
26971 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
26974 2005-07-07 Olivier Hainque <hainque@adacore.com>
26977 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
26978 definitions for the Unwind wrappers in the compiler case.
26980 2005-07-07 Ed Schonberg <schonberg@adacore.com>
26981 Javier Miranda <miranda@adacore.com>
26983 * par-load.adb (Load): If a child unit is loaded through a limited_with
26984 clause, each parent must be loaded as a limited unit as well.
26986 * sem_ch10.adb (Previous_Withed_Unit): Better name for
26987 Check_Withed_Unit. Return true if there is a previous with_clause for
26988 this unit, whether limited or not.
26989 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
26991 (Is_Visible_Through_Renamings): New local subprogram of install_limited
26992 _withed_unit that checks if some package installed through normal with
26993 clauses has a renaming declaration of package whose limited-view is
26994 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
26995 of the current Draft document for Ada 2005.
26996 (Analyze_Context): Complete the list of compilation units that
26997 are allowed to contain limited-with clauses. It also contains
26998 checks that were previously done by Install_Limited_Context_Clauses.
26999 This makes the code more clear and easy to maintain.
27000 (Expand_Limited_With_Clause) It is now a local subprogram of
27001 Install_Limited_Context_Clauses, and contains the code that adds
27002 the implicit limited-with clauses for parents of child units.
27003 This functionality was prevously done by Analyze_Context.
27005 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
27008 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
27009 been erroneously named in a limited-with clause of its own context.
27010 In this case the error has been previously notified by Analyze_Context.
27012 2005-07-07 Ed Schonberg <schonberg@adacore.com>
27014 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
27015 generic package that contains local declarations with the same name.
27016 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
27018 2005-07-07 Bernard Banner <banner@adacore.com>
27020 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
27021 ia64 platform only on platforms that you the GCC unwind library
27022 rather than the system unwind library.
27024 2005-07-07 Thomas Quinot <quinot@adacore.com>
27026 * expect.c: Minor reformatting
27028 2005-07-07 Sergey Rybin <rybin@adacore.com>
27030 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
27033 * gnat_ugn.texi: Add description for new gnatpp option
27036 2005-07-04 Thomas Quinot <quinot@adacore.com>
27038 * g-expect-vms.adb, g-expect.ads, g-expect.adb
27039 (Get_Command_Output): New subprogram to launch a process and get its
27040 standard output as a string.
27042 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27043 Olivier Hainque <hainque@adacore.com>
27045 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
27046 fetch a code-range descriptor associated with the machine state. On
27047 failure set the machine state's PC to 0; on success, pass the
27048 descriptor to exc_virtual_unwind.
27050 * init.c (Tru64 section): New function __gnat_set_code_loc.
27052 2005-07-04 Vincent Celier <celier@adacore.com>
27054 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27055 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27056 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
27057 Remove all auto-initialization code, as this is now done through the
27058 constructor mechanism.
27060 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
27061 __gnat_sals_init_using_constructors): New functions.
27063 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
27064 Linker_Constructor and Linker_Destructor when switch -a is used.
27066 * bindusg.adb: Add line for new switch -a
27068 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
27069 (Gnatbind): When switch -a is used, check if it is allowed
27071 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
27073 2005-07-04 Joel Brobecker <brobecker@adacore.com>
27075 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
27076 This prevents us from hitting a limitation during the debug info
27077 generation when using stabs.
27078 (Prims_Ptr): Likewise.
27080 2005-07-04 Gary Dismukes <dismukes@adacore.com>
27081 Ed Schonberg <schonberg@adacore.com>
27082 Javier Miranda <miranda@adacore.com>
27084 * checks.adb (Null_Exclusion_Static_Checks): In the case of
27085 N_Object_Declaration, only perform the checks if the Object_Definition
27086 is not an Access_Definition.
27088 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
27089 where the parent of an the access definition is an N_Object_Declaration
27090 when determining the Associated_Node_For_Itype and scope of an
27091 anonymous access-to-subprogram type.
27093 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
27094 Corresponding_Spec on the body created for a null procedure. Add ???
27095 comment. Remove New_Copy_Tree call on body argument to
27096 Set_Body_To_Inline.
27098 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
27099 discriminants, use the type of the actual as well, because the
27100 discriminants may be read by the called subprogram.
27102 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
27103 access type we do not need to handle non-limited views.
27104 (Build_Derived_Record_Type): Additional check to check that in case of
27105 private types, interfaces are only allowed in private extensions.
27107 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27109 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
27110 <Pragma_Linker_Destructor>: Likewise.
27112 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
27113 Pragma_Linker_Destructor.
27115 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
27116 ATTR_LINK_DESTRUCTOR.
27117 (static_ctors, static_dtors): New variables.
27119 * misc.c (gnat_expand_body): Output current function as constructor
27120 and destructor if requested.
27122 * par-prag.adb: Add processing for pragma Linker_Constructor and
27125 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
27126 extracted from Check_Interrupt_Or_Attach_Handler.
27127 (Check_Interrupt_Or_Attach_Handler): Invoke it.
27128 Implement pragma Linker_Constructor and Linker_Destructor with the
27129 help of Find_Unique_Parameterless_Procedure.
27130 Replace Name_Alias with Name_Target for pragma Linker_Alias.
27132 * snames.h, snames.ads, snames.adb:
27133 Add Name_Linker_Constructor and Name_Linker_Destructor.
27134 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
27135 * snames.adb: Remove Name_Alias.
27137 * trans.c: Include cgraph.h.
27138 (build_global_cdtor): New function.
27139 (Compilation_Unit_to_gnu): Build global constructor and destructor if
27141 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
27143 (addressable_p) <COMPONENT_REF>: Unconditionally test
27144 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
27146 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
27147 variable if it is external.
27149 (static_ctors, static_dtors): New global variables.
27150 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
27151 <ATTR_LINK_DESTRUCTOR>: Likewise.
27152 (end_subprog_body): Chain function as constructor and destructor
27155 * exp_util.adb (Force_Evaluation): Unconditionally invoke
27156 Remove_Side_Effects with Variable_Ref set to true.
27157 (Remove_Side_Effects): Handle scalar types first. Use a renaming
27158 for non-scalar types even if Variable_Ref is true and for class-wide
27161 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27163 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
27164 to prevent spurious warnings.
27166 2005-07-04 Thomas Quinot <quinot@adacore.com>
27168 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
27169 Itypes. Itypes are really unexpected there.
27170 (Build_TypeCode_Function): Generalise special processing for Itypes to
27171 handle the case of numeric implicit base types as well as enumerated
27174 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27176 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
27177 controlled, indicate the expected type of the dereference that is
27178 created for the call to Deep_Finalize, to prevent spurious errors when
27179 the designated type is private and completed with a derivation from
27180 another private type.
27182 2005-07-04 Vincent Celier <celier@adacore.com>
27184 * make.adb (Change_To_Object_Directory): When unable to change the
27185 current dir to the object directory, output the full path of the
27188 2005-07-04 Matthew Gingell <gingell@adacore.com>
27190 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
27192 * indepsw-linux.adb: Replace by...
27194 * indepsw-gnu.adb: ...this new file
27196 2005-07-04 Vincent Celier <celier@adacore.com>
27198 * mlib-prj.adb (Auto_Initialize): New constant String
27199 (SALs_Use_Constructors): New Boolean function
27200 (Build_Library): Call gnatbind with Auto_Initialize switch when
27201 SALs_Use_Constructors returns True.
27203 * mlib-tgt.ads: Minor reformatting
27205 * mlib-utl.ads: Minor reformatting
27207 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
27209 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27211 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
27212 single protected declarations can have an interface list.
27213 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
27214 with seriously malformed entry declarations, and lead to compilation
27215 abandoned messages.
27217 2005-07-04 Javier Miranda <miranda@adacore.com>
27219 * par-load.adb: Load the context items in two rounds.
27221 2005-07-04 Robert Dewar <dewar@adacore.com>
27223 * scng.adb: Do not consider Mod used as an attribute to be a keyword
27225 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27226 Javier Miranda <miranda@adacore.com>
27228 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
27229 type extension needs a limited view.
27230 Remove previous restriction on private types available through the
27231 limited-view (only tagged private types were previously allowed).
27232 (Install_Withed_Unit): In the code that implements the
27233 legality rule given in AI-377, exclude a child unit with the name
27234 Standard, because it is a homonym of the Standard environment package.
27236 2005-07-04 Thomas Quinot <quinot@adacore.com>
27238 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
27239 overloaded function call, carry interpretations from the original tree
27242 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27244 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
27245 types check whether some designated type is a limited view, and use
27246 the non-limited view if available.
27248 2005-07-04 Gary Dismukes <dismukes@adacore.com>
27250 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
27251 constraint of full view of a private view T1 if present, when T2 is a
27252 discriminated full view.
27254 2005-07-04 Thomas Quinot <quinot@adacore.com>
27256 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
27257 actual that is a view conversion of a bit packed array reference.
27259 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27261 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
27262 present before checking whether an interface type covers a synchronized
27265 2005-07-04 Ed Schonberg <schonberg@adacore.com>
27267 * sem_util.adb (Is_Object_Reference): An indexed or selected component
27268 whose prefix is an implicit dereference is an object reference. Removes
27269 spurious errors when compiling with -gnatc.
27271 2005-07-04 Robert Dewar <dewar@adacore.com>
27274 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
27276 2005-07-04 Matthew Gingell <gingell@adacore.com>
27278 * tracebak.c: Enable tracebacks on ia64 platforms
27280 2005-07-04 Vincent Celier <celier@adacore.com>
27282 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
27283 the GNAT BIND command, as gnatbind accepts multiples ALI files with
27284 the -L or -n switches.
27286 2005-07-04 Vincent Celier <celier@adacore.com>
27288 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
27289 correctly computed and the main project data is not modified while
27291 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
27292 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
27293 c++linker as this does not work on some platforms.
27295 2005-07-04 Matthew Heaney <heaney@adacore.com>
27297 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
27299 * a-coinve.adb: Perform constraint checks explicitly.
27301 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27302 Thomas Quinot <quinot@adacore.com>
27304 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
27305 new target gen-soccon.
27307 2005-07-04 Robert Dewar <dewar@adacore.com>
27309 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
27311 2005-07-04 Thomas Quinot <quinot@adacore.com>
27313 * g-socket.ads (Check_Selector): Minor rewording of comment.
27315 2005-07-04 Vincent Celier <celier@adacore.com>
27317 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
27319 2005-07-04 Thomas Quinot <quinot@adacore.com>
27321 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
27323 2005-07-04 Sergey Rybin <rybin@adacore.com>
27325 * gnat_ugn.texi: Add description of --eol gnatpp option
27327 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
27328 Thomas Quinot <quinot@adacore.com>
27330 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
27331 if the user wants all calls of a subprogram to be flagged,
27332 independently of whether they are made from within the same unit or
27334 Mention restriction for pragma Linker_Alias on some platforms.
27335 Document pragma Linker_Constructor and Linker_Destructor.
27336 Rewrite documentation of Weak_External, Linker_Section and
27337 Linker_Alias pragmas.
27339 2005-07-04 Arnaud Charlet <charlet@adacore.com>
27341 * s-stausa.ads, s-stausa.adb: New files.
27343 2005-06-30 Kelley Cook
27345 * all files: Update FSF address in copyright headers.
27346 * gen-soccon.co (main): Output new FSF address in generated files.
27348 2005-06-28 Paul Brook <paul@codesourcery.com>
27350 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
27352 2005-06-14 Olivier Hainque <hainque@adacore.com>
27353 Eric Botcazou <ebotcazou@adacore.com>
27355 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
27356 exc_unwind, now that we are generating proper .debug_frame output for
27359 * tracebak.c: Remove the mips-irix section, as we are now using the
27360 s-mastop based unwinder again.
27361 Under SPARC/Solaris, take into account the stack bias to compute the
27362 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
27365 2005-06-14 Doug Rupp <rupp@adacore.com>
27367 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
27369 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
27371 2005-06-14 Pascal Obry <obry@adacore.com>
27373 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
27374 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
27375 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
27378 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
27379 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
27380 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
27381 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
27382 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
27383 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
27384 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
27385 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
27386 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
27387 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
27388 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
27389 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
27390 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
27391 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
27392 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
27393 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
27394 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
27395 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
27396 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
27397 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
27398 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
27399 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
27400 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
27401 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
27402 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
27403 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
27404 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
27405 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
27406 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
27407 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
27408 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
27409 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
27410 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
27411 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
27412 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
27413 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
27414 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
27415 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
27416 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
27417 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
27418 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
27419 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
27420 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
27421 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
27422 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
27423 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
27424 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
27425 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
27426 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
27427 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
27428 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
27429 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
27430 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
27431 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
27432 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
27433 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
27434 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
27435 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
27436 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
27437 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
27438 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
27439 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
27440 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
27441 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
27442 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
27443 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
27444 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
27445 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
27446 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
27447 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
27448 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
27449 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
27450 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
27451 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
27452 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
27453 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
27454 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
27455 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
27456 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
27457 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
27458 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
27459 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
27460 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
27461 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
27462 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
27463 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
27464 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
27465 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
27466 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
27467 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
27468 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
27469 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
27470 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
27471 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
27472 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
27473 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
27474 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
27475 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
27476 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
27477 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
27478 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
27479 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
27480 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
27481 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
27482 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
27483 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
27484 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
27485 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
27486 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
27487 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
27488 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
27489 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
27490 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
27491 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
27492 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
27493 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
27494 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
27495 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
27496 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
27497 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
27498 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
27499 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
27500 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
27501 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
27502 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
27503 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
27504 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
27505 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
27506 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
27507 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
27508 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
27509 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
27510 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
27512 2005-06-14 Jose Ruiz <ruiz@adacore.com>
27513 Arnaud Charlet <charlet@adacore.com>
27515 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
27516 longer protected objects. They have been replaced by lower-level
27517 suspension objects made up by a mutex and a condition variable (or
27518 their equivalent given a particular OS) plus some internal data to
27519 reflect the state of the suspension object.
27520 (Initialize, Finalize): Add this initialization procedure for
27521 Suspension_Object, which is a controlled type.
27522 (Finalize): Add the finalization procedure for Suspension_Object,
27523 which is a controlled type.
27525 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
27526 Ada.Synchronous_Task_Control because there is no longer a need for a
27527 VxWorks specific version of this package. Target dependencies
27528 has been moved to System.Task_Primitives.Operations.
27530 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
27532 (InitializeCriticalSection, EnterCriticalSection,
27533 LeaveCriticalSection, DeleteCriticalSection): Replace the type
27534 pCriticalSection by an anonymous access type so that we avoid problems
27535 of accessibility to local objects.
27537 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
27538 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
27539 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
27540 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
27541 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
27542 set the environment task mask here.
27543 (Current_State): Add this function that returns the state of the
27545 (Set_False): Add this procedure that sets the state of the suspension
27547 (Set_True): Add this procedure that sets the state of the suspension
27548 object to True, releasing the task that was suspended, if any.
27549 (Suspend_Until_True): Add this procedure that blocks the calling task
27550 until the state of the object is True. Program_Error is raised if
27551 another task is already waiting on that suspension object.
27552 (Initialize): Add this procedure for initializing the suspension
27553 object. It initializes the mutex and the condition variable which are
27554 used for synchronization and queuing, and it sets the internal state
27556 (Finalize): Add this procedure for finalizing the suspension object,
27557 destroying the mutex and the condition variable.
27559 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
27560 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
27561 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
27562 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
27563 which provides a low-level abstraction (using operating system
27564 primitives) for Ada.Synchronous_Task_Control.
27565 This object is made up by a mutex (for ensuring mutual exclusion), a
27566 condition variable (for queuing threads until the condition is
27567 signaled), a Boolean (State) indicating whether the object is open,
27568 and a Boolean (Waiting) reflecting whether there is a task already
27569 suspended on this object.
27571 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
27572 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
27573 s-intman-vms.ads, s-intman-mingw.adb,
27574 (Initialize_Interrupts): Removed, no longer used.
27576 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
27577 (Setup_Interrupt_Mask): New procedure.
27579 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
27581 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
27583 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
27584 this is no longer done in the body of s-taprop
27585 (Server_Task): Explicitely test for Pending_Action in case
27586 System.Parameters.No_Abort is True.
27588 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
27589 is no longer done in the body of s-taprop
27591 2005-06-14 Robert Dewar <dewar@adacore.com>
27593 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
27594 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
27595 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27596 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
27597 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
27598 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
27599 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
27600 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
27601 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
27602 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
27603 system-linux-hppa.ads, system-vms_64.ads,
27604 system-vxworks-alpha.ads: Minor comment update for
27605 AI-362 (unit is Pure).
27607 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
27608 Add pragma Pure_05 for AI-362
27609 Make remaining conversion functions obsolescent in Ada 95
27611 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
27612 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
27613 Add entries for a-wichun and a-zchuni
27614 Add a-widcha a-zchara for AI-395
27615 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
27617 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
27618 Add entries for a-wichun.o and a-zchuni.o
27619 Entries for a-widcha.o and a-zchara.o
27620 Add entry for a-chacon.o
27622 * a-ztenau.adb: Add with of Ada.Characters.Conversions
27624 * a-chacon.ads, a-chacon.adb: New files.
27626 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
27627 categorization violations.
27629 * a-strmap.ads: Add pragma Pure_05 for AI-362
27630 * a-strmap.ads: Add note on implicit categorization for AI-362
27632 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
27634 * par-prag.adb: Dummy entry for pragma Persistent_BSS
27635 Set Ada_Version_Explicit, for implementation of AI-362
27636 Add processing for pragma Pure_05 and Preelaborate_05
27637 Add entry for Assertion_Policy pragma
27639 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
27640 when needed for proper processing of categorization stuff
27643 For several cases, make errors in preealborate units warnings,
27644 instead of errors, if GNAT_Mode is set. For AI-362.
27646 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
27647 preelaborate unit is now warning if in GNAT mode
27649 * s-stoele.ads: Document AI-362 for pragma preelaborate
27651 2005-06-14 Doug Rupp <rupp@adacore.com>
27653 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
27654 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
27655 Default_Exception_Msg_Max_Length: new parameter.
27657 * a-except.ads: (Exception_Msg_Max_Length): Set to
27658 System.Parameters.Default_Exception_Msg_Max_Length
27659 Add pragma Preelaborate_05 for AI-362
27660 Add warnings off to allow categorization violations for AI-362
27662 2005-06-14 Vincent Celier <celier@adacore.com>
27664 * gnatsym.adb: Adapt to modification of package Symbols: procedure
27665 Process is now in package Processing.
27667 * symbols.ads, symbols.adb:
27668 (Processing): New package, containing procedure Process
27670 * symbols-vms-alpha.adb:
27671 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
27673 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
27674 symbols-processing-vms-ia64.adb: New files.
27676 2005-06-14 Pascal Obry <obry@adacore.com>
27678 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
27679 implementation. This new version generates the proper DllMain routine
27680 to initialize the SAL. The DllMain is generated in Ada and compiled
27681 before being added as option to the library build command.
27683 2005-06-14 Doug Rupp <rupp@adacore.com>
27684 Pascal Obry <obry@adacore.com>
27686 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
27687 call to decc$translate_vms.
27688 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
27689 need to remove those quotes before catenating the filename.
27690 (__gnat_locate_exec_on_path): improvements to the Win32 section:
27691 * avoid allocating the memory twice for better efficiency;
27692 * allocate 32K buffer for environment expansion as suggested by MSDN;
27693 * prepend ".;" to the path so that current directory is searched too.
27695 2005-06-14 Robert Dewar <dewar@adacore.com>
27697 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
27698 instead of raising CE (AI-241)
27699 Add warnings off to allow categorization violations for AI-362
27701 2005-06-14 Robert Dewar <dewar@adacore.com>
27703 * ali-util.adb, gnatbind.adb: Remove references to
27704 Force_RM_Elaboration_Order.
27706 * switch-b.adb: Remove recognition of -f switch
27708 2005-06-14 Pascal Obry <obry@adacore.com>
27710 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
27711 implementation which is slightly more efficient.
27713 2005-06-14 Gary Dismukes <dismukes@adacore.com>
27714 Javier Miranda <miranda@adacore.com>
27715 Ed Schonberg <schonberg@adacore.com>
27716 Hristian Kirtchev <kirtchev@adacore.com>
27718 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
27719 allocator's designated type is a class-wide type, and compiling for
27720 Ada 2005, emit a run-time check that the accessibility level of the
27721 type given in the allocator's expression is not deeper than the level
27722 of the allocator's access type.
27724 (Tagged_Membership): Modified to gives support to abstract interface
27727 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
27729 (Descendant_Tag): New predefined function
27730 (Is_Descendant_At_Same_Level): New predefined function
27731 (Get_Access_Level): New private function
27732 (Set_Access_Level): New private procedure
27733 (IW_Membership): New function. Given the tag of an object and the tag
27734 associated with an interface, evaluate if the object implements the
27736 (Register_Interface_Tag): New procedure used to initialize the table of
27737 interfaces used by the IW_Membership function.
27738 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
27739 of the dispatch table.
27740 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
27741 table of interfaces of the parent.
27742 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
27743 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
27744 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
27745 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
27746 Ada 2005 semantics for the new predefined function.
27748 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
27749 call to Descendant_Tag rather than Internal_Tag.
27750 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
27751 the accessibility level of the attribute's Item parameter is not deeper
27752 than the level of the attribute's prefix type. Tag_Error is raised if
27753 the check fails. The check is only emitted for Ada_05.
27754 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
27755 requested stream attribute, use it.
27756 (Expand_N_Attribute_Reference): If the designated type is an interface
27757 then rewrite the referenced object as a conversion to force the
27758 displacement of the pointer to the secondary dispatch table.
27759 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
27760 is a dereference of an object with a constrained partial view.
27762 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
27763 type is a class-wide type, emit a run-time check that the accessibility
27764 level of the returned object is not deeper than the level of the
27765 function's master (only when compiling for Ada 2005).
27767 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
27768 Action_Nb_Arg): Add entries for new Get_Access_Level and
27769 Set_Access_Level routines in these tables.
27770 (Make_DT): Generate a call to set the accessibility level of the
27771 tagged type in its TSD.
27772 (Make_DT): Code cleanup. The functionality of generating all the
27773 secondary dispatch tables has been moved to freeze_record_type.
27774 (Make_Abstract_Interface_DT): Minor code cleanup.
27775 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
27776 this subprogram implements a new algorithm that provides the
27777 same functionality and it is more clear in case of primitives
27778 associated with abstract interfaces.
27779 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
27780 clean up, the functionality of this subprogram is now provided
27781 by Set_All_DT_Position.
27782 (Write_DT): New subprogram: a debugging procedure designed to be called
27783 within gdb to display the dispatch tables associated with a tagged
27785 (Collect_All_Interfaces): New subprogram that collects the whole list
27786 of interfaces that are directly or indirectly implemented by a tagged
27788 (Default_Prim_Op_Position): New subprogram that returns the fixed
27789 position in the dispatch table of the default primitive operations.
27790 (Expand_Interface_Actuals): New subprogram to generate code that
27791 displaces all the actuals corresponding to class-wide interfaces to
27792 reference the interface tag of the actual object.
27793 (Expand_Interface_Conversion): New subprogram. Reference the base of
27794 the object to give access to the interface tag associated with the
27795 secondary dispatch table.
27796 (Expand_Interface_Thunk): New subprogram that generates the code of the
27797 thunk. This is required for compatibility with the C+ ABI.
27798 (Make_Abstract_Interface_DT): New subprogram that generate the
27799 declarations for the secondary dispatch tables associated with an
27800 abstract interface.
27801 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
27802 attribute for each primitive operation covering interface subprograms
27803 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
27804 These subprograms were upgraded to give support to abstract interfaces
27806 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
27807 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
27808 RE_Set_Access_Level.
27809 (RE_Unit_Table): Add entries for new Ada.Tags operations.
27810 Add support to call the followig new run-time subprograms:
27811 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
27813 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
27814 match its full declaration when both have an access definition with
27815 statically matching designated subtypes.
27816 (Analyze_Component_Declaration): Delete commented out code that was
27817 incorrectly setting the scope of an anonymous access component's type.
27818 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
27819 an access discriminant when the containing type is nonlimited.
27820 (Make_Incomplete_Type_Declaration): Create an incomplete type
27821 declaration for a record type that includes self-referential access
27823 (Check_Anonymous_Access_Types): Before full analysis of a record type
27824 declaration, create anonymous access types for each self-referential
27826 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
27827 an access component in this context is a Local_Anonymous_Access, for
27828 proper accessibility checks.
27829 (Access_Definition): Set properly the scope of the anonymous access type
27830 created for a stand-alone access object.
27831 (Find_Type_Of_Object): An object declaration may be given with an access
27833 (Complete_Subprograms_Derivation): New subprogram used to complete
27834 type derivation of private tagged types implementing interfaces.
27835 In this case some interface primitives may have been overriden
27836 with the partial-view and, instead of re-calculating them, they
27837 are included in the list of primitive operations of the full-view.
27838 (Build_Derived_Record_Type): Modified to give support to private
27839 types implemening interfaces.
27840 (Access_Definition): Reject ALL on anonymous access types.
27841 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
27842 type derivation to occur at a deeper accessibility level than the
27844 For the case of derivation within a generic body however, disallow the
27845 derivation if the derived type has an ancestor that is a formal type
27846 declared in the formal part of an enclosing generic.
27847 (Analyze_Object_Declaration): For protected objects, remove the check
27848 that they cannot contain interrupt handlers if not declared at library
27850 (Add_Interface_Tag_Components): New subprogram to add the tag components
27851 corresponding to all the abstract interface types implemented by a
27852 record type or a derived record type.
27853 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
27854 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
27855 Process_Full_View, Record_Type_Declaration): Modified to give
27856 support to abstract interface types
27857 (Collect_Interfaces): New subprogram that collects the list of
27858 interfaces that are not already implemented by the ancestors
27859 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
27860 when partial view has no discriminants and full view has defaults.
27861 (Constrain_Access): Reject a constraint on a general access type
27862 if the discriminants of the designated type have defaults.
27863 (Access_Subprogram_Declaration): Associate the Itype node with the inner
27864 full-type declaration or subprogram spec. This is required to handle
27865 nested anonymous declarations.
27866 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
27867 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
27868 Process_Full_View, Record_Type_Declaration): Modified to give
27869 support to abstract interface types
27870 (Derive_Subprograms): Addition of a new formal to indicate if
27871 we are in the case of an abstact-interface derivation
27872 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
27873 to the specification because it is requied to analyze all the
27874 identifiers found in a list of interfaces
27876 * debug.adb: Complete documentation of flag "-gnatdZ"
27878 * exp_ch3.adb: Implement config version of persistent_bss pragma
27879 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
27880 testing for TSS presence to properly enforce visibility rules.
27881 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
27882 Make_Abstract_Interfaces_DT to generate the secondary tables
27883 associated with abstract interfaces.
27884 (Build_Init_Procedure): Modified to initialize all the tags
27886 (Component_Needs_Simple_Initialization): Similar to other tags,
27887 interface tags do not need initialization.
27888 (Freeze_Record_Type): Modified to give support to abstract interface
27890 (Expand_N_Object_Declaration): Do not generate an initialization for
27891 a scalar temporary marked as internal.
27893 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
27894 in-out parameter that is a component in an initialization procedure,
27895 whose constraint might depend on discriminants, and that may be
27896 misaligned because of packing or representation clauses.
27897 (Is_Legal_Copy): New predicate to determine whether a possibly
27898 misaligned in-out actual can actually be passed by copy/return. This
27899 is an error in case the type is by_reference, and a warning if this is
27900 the consequence of a DEC import pragma on the subprogram.
27901 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
27903 (Expand_Inlined_Call): Mark temporary generated for the return value as
27904 internal, so that no useless scalar normalization is generated for it.
27905 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
27906 null procedure can always be inlined.
27907 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
27908 procedure, generate an explicit empty body for it.
27910 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
27911 Given a type implementing an interface, returns the corresponding
27912 access_disp_table value.
27913 (Find_Interface_Tag): New subprogram. Given a type implementing an
27914 interface, returns the record component containing the tag of the
27916 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
27917 previous ones that return the corresponding tag and access_disp_table
27919 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
27920 is a predefined primitive operation.
27921 (Expand_Subtype_From_Expr): If the expression is a selected component
27922 within an initialization procedure, compute its actual subtype, because
27923 the component may depend on the discriminants of the enclosing record.
27925 * i-cpp.ads, i-cpp.adb:
27926 This package has been left available for compatibility with previous
27927 versions of the frontend. As part of the new layout this is now a
27928 dummy package that uses declarations available at a-tags.ads
27930 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
27931 "constant access" and "aliased [constant] access" when not compiling
27933 Suppress Ada 2005 keyword warning if -gnatwY used
27934 (P_Identifier_Declarations): Add support for object declarations with
27935 access definitions.
27936 (Private_Extension_Declaration): Complete the documentation
27937 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
27938 attribute in case of private extension declaration
27939 (P_Type_Declaration): Mark as "abstract" the type declarations
27940 corresponding with protected, synchronized and task interfaces
27941 (P_Declarative_Items): "not" and "overriding" are overriding indicators
27942 for a subprogram or instance declaration.
27944 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
27945 instantiation that is a dispatching operation has controlling access
27946 parameters that are null excluding.
27947 Save and restore Ada_Version_Explicit, for implementation of AI-362
27948 (Validate_Derived_Type_Instance): Add check for abstract interface
27950 (Analyze_Formal_Package): Establish Instantiation source for the copy of
27951 the generic that is created to represent the formal package.
27952 (Analyze_Package_Instantiation): Instantiate body immediately if the
27953 package is a predefined unit that contains inlined subprograms, and
27954 we are compiling for a Configurable_Run_Time.
27955 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
27956 If the program has a null default, generate an empty body for it.
27958 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
27959 error message condition, null procedures are correctly detected now.
27960 (New_Overloaded_Entity): Bypass trivial overriding indicator check
27961 for subprograms in the context of protected types. Instead, the
27962 indicator is examined in Sem_Ch9 while analysing the subprogram
27964 (Check_Overriding_Indicator): Check consistency of overriding indicator
27965 on subprogram stubs as well.
27966 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
27968 (Analize_Subprogram_Specification): When analyzing a subprogram in which
27969 the type of the first formal is a concurrent type, replace this type
27970 by the corresponding record type.
27971 (Analyze_Subprogram_Body): Undo the previous work.
27972 (Analyze_Procedure_Call): If the call has the form Object.Op, the
27973 analysis of the prefix ends up analyzing the call itself, after which
27975 (Has_Interface_Formals): New subprogram subsidiary to analyze
27976 subprogram_specification that returns true if some non
27977 class-wide interface subprogram is found
27978 (New_Overloaded_Entity): Modified to give support to abstract
27980 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
27981 access to subprograms must be recursive.
27982 (Is_Unchecked_Conversion): Improve the test that recognizes
27983 instantiations of Unchecked_Conversion, and allows them in bodies that
27984 are to be inlined by the front-end. When the body comes from an
27985 instantiation, a reference to Unchecked_Conversion will be an
27986 Expanded_Name, even though the body has not been analyzed yet.
27987 Replace Is_Overriding and Not_Overriding in subprogram_indication with
27988 Must_Override and Must_Not_Override, to better express intent of AI.
27989 (Analyze_Subprogram_Body): If an overriding indicator is given, check
27990 that it is consistent with the overrinding status of the subprogram
27992 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
27994 If the subprogram is a null procedure, indicate that it does not need
27997 * sem_disp.adb (Check_Controlling_Type): Give support to entities
27998 available through limited-with clauses.
27999 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
28000 allowed as the last primitive of a tagged type if it has no previous
28002 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
28003 to give support to abstract interface types
28005 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
28006 in the case where the target type is an anonymous access type of an
28007 object or component (that is, when Is_Local_Anonymous_Access is true).
28008 Prevent the special checks for conversions of access discriminants in
28009 the case where the discriminant belongs to a nonlimited type, since
28010 such discriminants have their accessibility level defined in the same
28011 way as a normal component of an anonymous access type.
28012 (Resolve_Allocator): When an allocator's designated type is a class-wide
28013 type, check that the accessibility level of type given in the
28014 allocator's expression or subtype indication is not statically deeper
28015 than the level of the allocator's access type.
28016 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
28017 name in a discriminant constraint of a record component.
28018 (Resolve_Explicit_Dereference): Do not check whether the type is
28019 incomplete when the dereference is a use of an access discriminant in
28020 an initialization procedure.
28021 (Resolve_Type_Conversion): Handle conversions to abstract interface
28023 (Valid_Tagged_Conversion): The conversion of a tagged type to an
28024 abstract interface type is always valid.
28025 (Valid_Conversion): Modified to give support to abstract interface types
28026 (Resolve_Actuals): Enable full error reporting on view conversions
28027 between unrelated by_reference array types.
28028 The rule for view conversions of arrays with aliased components is
28029 weakened in Ada 2005.
28030 Call to obsolescent subprogram is now considered to be a violation of
28031 pragma Restrictions (No_Obsolescent_Features).
28032 (Check_Direct_Boolean_Operator): If the boolean operation has been
28033 constant-folded, there is nothing to check.
28034 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
28035 check on possible violation of restriction No_Direct_Boolean_Operators
28036 until after expansion of operands, to prevent spurious errors when
28037 operation is constant-folded.
28039 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
28040 Has_Compatible_Type): Modified to give support to abstract interface
28042 (Interface_Present_In_Ancestor): New function to theck if some ancestor
28043 of a given type implements a given interface
28045 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
28046 prefix is a parameterless function that returns an access_to_procedure.
28047 (Transform_Object_Operation): Handle properly function calls of the
28048 form Obj.Op (X), which prior to analysis appear as indexed components.
28049 (Analyze_One_Call): Complete the error notification to help new Ada
28051 (Analyze_Allocator): For an allocator without an initial value, where
28052 the designated type has a constrained partial view, a discriminant
28053 constraint is illegal.
28055 2005-06-14 Robert Dewar <dewar@adacore.com>
28057 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
28058 do with treatment of Set_Col when positioned at end of line character.
28060 2005-06-14 Robert Dewar <dewar@adacore.com>
28062 * atree.adb: (Elist*): Protect against uninitialized field
28064 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28066 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
28067 for an attribute reference that returns an access type.
28068 (Apply_Discriminant_Check): No need for check if (designated) type has
28069 constrained partial view.
28071 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
28072 both bound checks, rather than a conjunction.
28073 (Insert_Valid_Check): If the expression is an actual that is an indexed
28074 component of a bit-packed array, force expansion of the packed element
28075 reference, because it is specifically inhibited elsewhere.
28077 2005-06-14 Vincent Celier <celier@adacore.com>
28079 * clean.adb (Clean_Project): Correctly delete executable specified as
28080 absolute path names.
28082 * make.adb (Gnatmake): Allow relative executable path names with
28083 directory information even when project files are used.
28084 (Change_To_Object_Directory): Fail gracefully when unable to change
28085 current working directory to object directory of a project.
28086 (Gnatmake): Remove exception handler that could no longer be exercized
28087 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
28088 may be deallocated by Normalize_Arguments.
28089 (Collect_Arguments): Eliminate empty arguments
28091 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
28092 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
28093 (Check_Project): Return False when Project is No_Project. Return True
28094 when All_Projects is True.
28095 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
28096 All_Projects to True.
28099 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28100 Javier Miranda <miranda@adacore.com>
28101 Thomas Quinot <quinot@adacore.com>
28102 Robert Dewar <dewar@adacore.com>
28103 Hristian Kirtchev <kirtchev@adacore.com>
28104 Gary Dismukes <dismukes@adacore.com>
28106 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
28107 anonymous access types, to indicate that the accessibility level of
28108 the type is determined by that of the enclosing declaration.
28109 (Has_Persistent_BSS): New flag
28110 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
28111 of this attribute with functions.
28112 (Is_Primitive_Wrapper): Remove the barrier.
28113 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
28114 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
28116 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
28117 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
28119 (Is_Pure_Unit_Access_Type): New flag
28120 (Abstract_Interfaces): Complete the assertion to cover all usages.
28121 (Set_Is_Interface): Complete the assertion to cover all usages.
28122 (Is_Primitive_Wrapper): New attribute.
28123 (Is_Obsolescent): Now applies to all entities (though it is only set
28124 for subprograms currently)
28125 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
28126 which solves various problems concerning access subtypes.
28127 (Has_Persistent_BSS): New flag
28128 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
28129 Remove these subprograms because this attribute is currently
28132 Has_Specified_Stream_Input (Flag190)
28133 Has_Specified_Stream_Output (Flag191)
28134 Has_Specified_Stream_Read (Flag192)
28135 Has_Specified_Stream_Write (Flag193)
28136 Present in all type and subtype entities. Set for a given view if the
28137 corresponding stream-oriented attribute has been defined by an
28138 attribute definition clause. When such a clause occurs, a TSS is set
28139 on the underlying full view; the flags are used to track visibility of
28140 the attribute definition clause for partial or incomplete views.
28141 (Is_Pure_Unit_Access_Type): New flag
28142 Clarify use of Is_Internal.
28143 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
28144 internally generated to wrap the invocation of tasks and protected
28145 types that implement interfaces.
28146 (Implementation_Base_Type): Documentation correction
28147 (Is_Obsolescent): Now applies to all entities (though it is only set
28148 for subprograms currently)
28149 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
28150 which solves various problems concerning access subtypes.
28152 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
28153 for examined parameters. Identify unequal parameter list lengths as
28154 non-conformant parameters.
28155 (Overriding_Possible): Do not check for "All" qualifier in declaration
28156 of controlling access parameter, following prescription of AI-404.
28157 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
28158 that build the procedure body that wraps an entry invocation
28159 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
28160 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
28161 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
28162 give support to abstract interface types
28164 * freeze.adb (Freeze_Entity): Issue error message if
28165 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
28166 type has no storage pool (Ada 2005) AI-366.
28167 Also modified to give support to abstract interface types
28168 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
28169 Inline_Always pragma.
28171 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
28172 now begin an entry declaration.
28173 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
28174 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
28175 a subprogram declaration preceded by an overriding indicator.
28176 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
28177 declarations or subprogram declarations preceded by reserved words
28178 "not" or "overriding".
28179 (P_Entry_Declaration): Update comment. Parse and check overriding
28180 indicator, set semantic flags of entry declarations.
28181 (P_Task): New error message in case of private applied
28182 to a task type declaration.
28183 (P_Protected): New error message in case of private applied
28184 to a task type declaration.
28186 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
28187 in which the full view of a type implementing an interface is a
28189 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
28190 Declare_Inherited_Private_Subprograms): If an explicit operation
28191 overrides an operation that is inherited in the private part, mark the
28192 explicit one as overriding, to enable overriding indicator checks.
28193 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
28194 full view to partial view, to simplify handling in back-end.
28196 * sprint.adb: Print interface lists where needed: derived types,
28197 protected types, task types.
28198 output "is null" for null procedures. Part of implementation of
28200 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
28201 relaxation of rules for access types in pure, shared passive partitions.
28203 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
28204 first read discriminants into temporary objects, performing checks on
28205 the read values, then possibly performing discriminant checks on the
28206 actual (if it is constrained), and only finally reading the components
28207 into a constrained temporary object.
28208 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
28209 case of reading discriminants of a mutable record type to recognize
28210 the new form of the code generated by
28211 Build_Mutable_Record_Read_Procedure.
28213 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
28214 of a simple call to Make_TSS_Name.
28215 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
28216 buffer, in order for Is_TSS to work correctly on local TSS names.
28218 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
28219 Is_Local_Anonymous_Access to check legaliy of attributes in the
28220 context of access components and stand-alone access objects.
28221 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
28222 treated as available for a limited private type if there is an
28223 attribute_definition_clause that applies to its full view, but not in
28224 other cases where the attribute is available for the full view
28225 (specifically, the sole fact that the full view is non-limited does not
28226 make the attribute available for the partial view).
28227 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
28228 non-overloaded intrinsic subprogram.
28229 (Check_Stream_Attribute): Reject an attribute reference for an
28230 unavailable stream attribute even if the prefix is not a limited type
28231 (case of a 'Input attribute reference for an abstract, non-classwide
28233 (Stream_Attribute_Available): New function to determine whether a stream
28234 attribute is available at a place.
28235 (Check_Attribute): Use Stream_Attribute_Available instead of just
28236 testing for TSS presence on the implementation base type.
28237 (Analyze_Attribute): Modified to give support to task interfaces.
28238 (Analyze_Access_Attribute): Add error check for use of an Access (or
28239 Unrestricted_Access) attribute with a subprogram marked as
28241 (Analyze_Attribute, case Attribute_Address): Add error check for use of
28242 an Address attribute with a subprogram marked as Inline_Always.
28243 Update Eval_Attribute to handle new value of Width from AI-395
28245 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
28246 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
28247 Factor common code across the stream-oriented attribute circcuits into
28248 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
28249 processing is functionally identical to the previous duplicated one,
28250 except that an expression that denotes an abstract subprogram will now
28251 be rejected, as mandated by AI-195 item 5.
28253 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
28254 Is_Local_Anonymous_Access to apply accessibility checks to access
28255 components and stand-alone access objects.
28256 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
28258 (Is_Potentially_Persistent_Type): New function
28259 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
28260 a heap-object whose type has a constrained partial view, the object is
28261 unconstrained and the component may depend on a discriminant, making its
28264 * sinfo.ads, sinfo.adb
28265 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
28266 (Must_Override): Flag applicable to N_Entry_Declaration.
28267 Indicate that interface_list can appear in single task and single
28268 protected declarations.
28269 Replace Is_Overriding and Not_Overriding with Must_Override and
28270 Must_Not_Override, to better express intent of AI.
28271 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
28272 of an overriding indicator in a subprogram or instance.
28273 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
28274 Add the overriding indicator [[not] overriding] construct to the
28275 following grammar productions:
28277 GENERIC_INSTANTIATION
28278 SUBPROGRAM_SPECIFICATION
28280 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
28281 can start with an overriding indicator.
28283 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
28284 flags accordingly on subrogram specifications or instances.
28287 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
28288 overriding_indicator, if present, is consistent with status of spec.
28289 Improve error message for null-excluding checks on controlling access
28291 (Check_In_Previous_With_Clause): Protect the frontend against
28292 previously reported critical errors in the context clauses.
28293 Save and restore Ada_Version_Explicit, for implementation of AI-362
28294 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
28295 operation verify that controlling formals of the renamed entity that
28296 are access parameters are explicitly non-null.
28297 (Find_Expanded_Name): Improve error message when prefix is an illegal
28298 reference to a private child unit.
28300 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
28301 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
28302 Rewrite to correspond to new wide character names in AI-395
28304 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
28305 default procedures.
28307 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28308 Robert Dewar <dewar@adacore.com>
28310 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
28311 code, not on the bodies of predefined operations, to cut down on
28314 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28316 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
28317 be expanded in place. The size computation does not require a
28318 subtraction, which would raise an exception on a compiler built with
28319 assertions when the upper bound is Integer'first.
28320 (Flatten): For an array of composite components, take into account the
28321 size of the components to determine whether it is safe to expand the
28322 array into a purely positional representation.
28324 2005-06-14 Thomas Quinot <quinot@adacore.com>
28326 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
28327 denoting a formal parameter into account.
28329 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28331 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
28332 the entry_call alternative of a conditional entry call, wrap the
28333 conditional entry call itself.
28335 2005-06-14 Nicolas Setton <setton@adacore.com>
28336 Ed Schonberg <schonberg@adacore.com>
28338 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
28339 the "simple_choice" member in a variant record, in accordance with the
28340 description in the package spec: the information output for a constant
28341 should be "S number", not "SS number".
28342 (Get_Encoded_Name): Return at once if not generating code. Avoids name
28343 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
28345 2005-06-14 Thomas Quinot <quinot@adacore.com>
28347 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
28348 RACW without any primitives, do not generate the if statement for
28349 dispatching by name in the PolyORB/DSA case, as it would be malformed
28350 (it would have an Elsif_Parts list that is not No_List, but with a
28353 2005-06-14 Robert Dewar <dewar@adacore.com>
28355 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
28357 2005-06-14 Jose Ruiz <ruiz@adacore.com>
28359 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
28360 can determine whether pragma Suppress_Exception_Locations is in effect.
28362 * utils2.c (build_call_raise): Do not pass the file name to the
28363 exception handler if pragma Suppress_Exception_Locations is in effect.
28364 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
28366 2005-06-14 Emmanuel Briot <briot@adacore.com>
28368 * g-debpoo.adb (Deallocate, Dereference): Improve output.
28370 2005-06-14 Nicolas Roche <roche@adacore.com>
28372 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
28374 (Next_Level): Fix minor bug in handling of ../dir case
28375 (Read): Add dir separator to Directory name so that "" is understood as
28378 2005-06-14 Pascal Obry <obry@adacore.com>
28380 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
28381 releasing the items.
28383 2005-06-14 Vincent Celier <celier@adacore.com>
28384 Cyrille Comar <comar@adacore.com>
28386 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
28387 with output file descriptor and with output file name.
28388 (Dup, Dup2): Now global procedures as they are used by two subprograms
28389 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
28391 2005-06-14 Thomas Quinot <quinot@adacore.com>
28394 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
28396 (Create_Selector): Bind listening socket used to create the signalling
28397 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
28398 Set listen backlog to 1 to ensure that we detect socket theft by a
28399 failure of our own connect(2) call.
28400 (Check_Selector): Improve documentation of the selector mechanism.
28401 (Broadcast_Inet_Addr): New constant.
28403 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28405 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
28406 type which turns out to be an incomplete and incorrect fix.
28407 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
28408 of the type is declared in a record (for determination of insertion
28410 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
28411 a private type and ensure that the primary entity is used for the type
28412 of the newly created function's V formal by taking the Etype of the
28415 2005-06-14 Javier Miranda <miranda@adacore.com>
28416 Jose Ruiz <ruiz@adacore.com>
28417 Robert Dewar <dewar@adacore.com>
28418 Ed Schonberg <schonberg@adacore.com>
28420 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
28421 that indicates if we are parsing a compilation unit found in a
28422 limited-with clause.
28423 It is use to avoid the circularity check.
28425 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
28426 we are parsing a compilation unit found in a limited-with clause. This
28427 is use to avoid the circularity check.
28429 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
28430 unit as a consequence of parsing a limited-with clause. This is used
28431 to avoid the circularity check.
28433 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
28434 (Analyze_Context): Limited-with clauses are now allowed
28435 in more compilation units.
28436 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
28437 againts previously reported critical errors in context clauses
28438 (Install_Limited_Withed_Unit): Code cleanup plus static detection
28439 of two further errors: renamed subprograms and renamed packages
28440 are not allowed in limited with clauses.
28441 (Install_Siblings): Do not install private_with_clauses on the package
28442 declaration for a non-private child unit.
28443 (Re_Install_Parents): When a parent of the subunit is reinstalled,
28444 reset visibility of child units properly.
28445 (Install_Withed_Unit): When a child unit appears in a with_clause of its
28446 parent, it is immediately visible.
28448 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28449 Emmanuel Briot <briot@adacore.com>
28451 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
28452 declared within an inlined body as referenced, to prevent spurious
28454 (Output_One_Ref): If an entity renames an array component, indicate in
28455 the ALI file that this aliases (renames) the array. Capture as well
28456 function renamings that rename predefined operations.
28457 Add information about generic parent for package and subprogram
28459 (Get_Type_Reference): For a subtype that is the renaming of an actual in
28460 an instantiation, use the first_subtype to ensure that we don't generate
28461 cross-reference information for internal types.
28462 For objects and parameters of a generic private type, retain the '*'
28463 indicator to distinguish such an entity from its type.
28465 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
28466 to store information about instantiated entities.
28468 * ali.adb (Scan_ALI): Add support for parsing the reference to the
28471 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
28472 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
28475 2005-06-10 Doug Rupp <rupp@adacore.com>
28476 Arnaud Charlet <charlet@adacore.com>
28477 Olivier Hainque <hainque@adacore.com>
28478 Jose Ruiz <ruiz@adacore.com>
28480 * Make-lang.in: Add initialize.o when needed.
28481 Remove obsolete references to RT_FLAGS.
28482 Add missing dependencies for sdefault.o
28484 * initialize.c: New file.
28486 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
28487 [VMS] cond_signal_table: Fix problem in declaration.
28488 [VMS] __gnat_error_handler: rewrite.
28489 Move all __gnat_initialize() routines to initialize.c
28490 Specialize the former "hpux" section to "hppa hpux", as this is what the
28491 section really is here for and we now have other hpux ports that need
28492 different contents.
28493 (__gnat_adjust_context_for_raise) i386-linux: First version of this
28494 function for this target. Adjust PC by one in the machine context. This
28495 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
28496 it is more reliable to do that in the signal handler itself.
28497 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
28498 flags, so that the handler is passed the context structure to adjust
28499 prior to the raise.
28500 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
28501 SA_SIGINFO sigaction should look like. Call
28502 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
28503 Machine_State_Operations stuff.
28504 Add conditional code so that the x86_64 is also supported.
28506 2005-06-14 Pascal Obry <obry@adacore.com>
28508 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
28511 2005-06-14 Robert Dewar <dewar@adacore.com>
28513 * opt.ads, opt.adb: New flags for persistent_bss mode
28514 Add Ada_Version_Explicit, for implementation of AI-362
28515 Add Assertions_Enabled_Config and associated handling
28516 Needed since setting can be changed with Assertion_Policy pragma
28517 Add new flag Warn_On_Ada_2005_Compatibility
28519 * switch-c.adb: Recognize -gnatwy/Y
28520 Set Ada_Version_Explicit, for implementation of AI-362
28521 The -gnatg switch now includes -gnatyu
28523 * usage.adb: Add -gnatwy/Y
28524 Remove wrong asterisk on -gnatwX line
28525 Add line for -gnatyu switch
28527 2005-06-14 Vincent Celier <celier@adacore.com>
28529 * osint.adb (Add_Default_Search_Dirs): Put source and object
28530 directories of project files before directories coming from
28531 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
28533 2005-06-14 Robert Dewar <dewar@adacore.com>
28536 * par-ch2.adb (Scan_Pragma_Argument): New procedure
28537 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
28539 2005-06-14 Vincent Celier <celier@adacore.com>
28541 * prep.adb (Preprocess): Ignore error when scanning the first token of
28544 2005-06-14 Vincent Celier <celier@adacore.com>
28546 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
28547 (Check_Stand_Alone_Library): If the specified reference symbol file does
28548 not exist, only issue a warning when the symbol policy is not
28549 Controlled. And, when symbol policy is Compliant, set the symbol
28550 policy to Autonomous.
28552 2005-06-14 Vincent Celier <celier@adacore.com>
28554 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
28555 when the project file in a with clause is not the last one, that is the
28556 project file name is followed by a comma.
28557 * prj-pp.adb: (First_With_In_List): New Boolean global variable
28558 (Print): Issue list of project files separated by commas in with clauses
28559 according to the values returned by Is_Not_Last_In_List.
28560 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
28561 (Set_Is_Not_Last_In_List): New procedure
28563 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
28565 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
28567 2005-06-14 Robert Dewar <dewar@adacore.com>
28569 * scng.adb: Add call to new Check_EOF routine
28570 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
28571 Add some comments regarding wide character handling
28573 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
28575 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
28577 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
28578 characters are now considered graphic characters and hence yield false
28581 * nmake.adt: Modify header so that xnmake does not generate output
28582 files with multiple blank lines.
28584 * treeprs.adt: Remove a blank line so that output from xtreeprs does
28585 not have an extra blank line
28587 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28589 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
28590 expression when the component type is an anonymous access type to
28591 ensure that appropriate accessibility checks are done.
28593 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
28594 expression of an assignment when the target object is of an anonymous
28595 access type. This ensures that required accessibility checks are done.
28596 (One_Bound): Move the check for type Universal_Integer to
28598 (Process_Bounds): Check whether the type of the preanalyzed range is
28599 Universal_Integer, and in that case set Typ to Integer_Type prior
28600 to setting the type of the original range and the calls to One_Bound.
28602 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28604 * sem_case.adb (Expand_Others_Choice): Improve warning.
28606 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28608 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
28609 constraint of full view if present, when other type is discriminated.
28610 (Eval_Relational_Op): Recognize tests of pointer values against Null,
28611 when the pointer is known to be non-null, and emit appropriate warning.
28613 2005-06-14 Robert Dewar <dewar@adacore.com>
28614 Ed Schonberg <schonberg@adacore.com>
28617 * sem_prag.adb: Implement pragma Persistent_BSS
28618 Remove obsolete pragma Persistent_Data, Persistent_Object
28619 Set Ada_Version_Explicit, for implementation of AI-362
28620 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
28621 Add processing for pragma Pure_05 and Preelaborate_05
28622 Add processing for Assertion_Policy pragma
28623 Add pragma identifiers for Assert
28624 (Analyze_Pragma, case Assert): Check number of arguments
28625 (Process_Inline): Additional guard against an illegal program, where the
28626 argument of the pragma is undefined, and warnings on redundant
28627 constructs are enabled.
28628 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
28629 Ada_05 to this pragma, specifying that the pragma is only active in
28631 (Check_Arg_Order): New procedure
28632 Add appropriate calls to this procedure throughout
28633 Also throughout, check entity name before doing any other checks
28635 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
28636 Remove obsolete pragma Persistent_Data, Persistent_Object
28637 Add entries for pragma Pure_05 and Preelaborate_05
28638 Add entries for Assertion_Policy pragma and associated names
28639 Add some names for pragma argument processing
28641 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
28643 2005-06-14 Ed Schonberg <schonberg@adacore.com>
28645 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
28646 appears within a negation (either from source or as a rewriting of
28647 inequality) adjust text of warning accordingly.
28649 2005-06-14 Thomas Quinot <quinot@adacore.com>
28651 * s-strxdr.adb: Follow AI95-00132
28653 2005-06-14 Arnaud Charlet <charlet@adacore.com>
28655 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
28657 2005-06-14 Arnaud Charlet <charlet@adacore.com>
28658 Jose Ruiz <ruiz@adacore.com>
28660 * s-tposen.adb, s-tpobop.adb
28661 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
28663 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
28664 there is no violation of the Max_Entry_Queue_Length restriction (if it
28665 has been set); Program_Error is raised otherwise.
28666 (Requeue_Call): Before requeuing the task on the target entry queue we
28667 check that there is no violation of the Max_Entry_Queue_Length
28668 restriction (if it has been set); Program_Error is raised otherwise.
28670 2005-06-14 Robert Dewar <dewar@adacore.com>
28672 * styleg.adb: Fix several remaining problems in -gnatyu switch
28673 Blank line count not reset at start
28674 Scanning outside source buffer in some cases
28675 Confusing message for blanks at end of file
28676 Non-empty blank lines not recognized
28678 * nmake.adt: Modify header so that xnmake does not generate output
28679 files with multiple blank lines.
28681 * treeprs.adt: Remove a blank line so that output from xtreeprs does
28682 not have an extra blank line
28684 2005-06-14 Sergey Rybin <rybin@adacore.com>
28686 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
28688 2005-06-14 Doug Rupp <rupp@adacore.com>
28689 Vincent Celier <celier@adacore.com>
28691 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
28694 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
28695 Remove "Library" command.
28696 Change keyword for style check -gnatyd from NOCRLF to
28698 Remove useless second style check keyword NONE
28699 Remove help documentation for inexistent style check keyword
28701 Add help documentation for style check keywords DOS_LINE_ENDINGS,
28702 UNNECESSARY_BLANK_LINES and XTRA_PARENS
28703 Add UNNECESSARY_BLANK_LINES for -gnatyu
28704 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
28706 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
28708 2005-06-14 Vincent Celier <celier@adacore.com>
28710 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
28711 gprmake was invoked with -d.
28712 (Compile_Sources): If -d was used, output the "completed ..." message
28713 for each compilation.
28714 (Scan_Arg): Recognize new switch -d
28715 When -c and at least one main is specified, set
28716 Unique_Compile to True to guarantee that no other sources will be
28719 2005-06-14 Matthew Heaney <heaney@adacore.com>
28721 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
28722 * a-swuwha.ads, a-swuwha.adb: New files
28724 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
28725 * a-szuzha.ads, a-szuzha.adb: New files.
28727 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28728 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
28729 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
28730 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
28731 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
28732 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
28733 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
28734 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
28735 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
28736 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
28739 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
28740 Olivier Hainque <hainque@adacore.com>
28741 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28742 Pascal Obry <obry@adacore.com>
28744 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
28746 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
28747 making a temporary around a procedure call because of non-addressable
28749 (process_freeze_entity): If entity is a private type, capture size
28750 information that may have been computed for the full view.
28751 (tree_transform, case N_Allocator): If have initializing expression,
28752 check type for Has_Constrained_Partial_View and pass that to
28754 (tree_transform, case N_Return_Statement): Pass extra arg to
28757 * decl.c (annotate_value): Remove early return if -gnatR is not
28759 (gnat_to_gnu_field): Don't make a packable type for a component clause
28760 if the position is byte aligned, the field is aliased, and the clause
28761 size isn't a multiple of the packable alignment. It serves no useful
28762 purpose packing-wise and would be rejected later on.
28763 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
28766 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
28767 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
28769 (create_concat_name): Idem.
28771 2005-06-10 Robert Dewar <dewar@adacore.com>
28772 Eric Botcazou <ebotcazou@adacore.com>
28773 Ben Brosgol <brosgol@adacore.com>
28774 Cyrille Comar <comar@adacore.com>
28775 Sergey Rybin <rybin@adacore.com>
28776 Pascal Obry <obry@adacore.com>
28778 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
28779 Document second argument (Ada_05) of pragma Obsolescent
28780 Add note that call to subprogram marked with pragma Obsolescent
28781 is now considered to be a violation of program Restrictions
28782 (No_Obsolescent_Features).
28783 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
28784 that only machine-dependent attributes are supported.
28787 Commented out menu lines and empty section for gnatclean examples
28789 Fix some over long lines
28790 Clarify and enhance documentation of ADA_PROJECT_PATH.
28791 Rework section 2.11.2(3) about linking with a non-GNU compiler.
28792 Mention new switch -fcallgraph-info.
28793 Mention new switch -fstack-usage.
28794 For gnatpp, replace '-notab' with '-N' and add this option to Index
28795 Corrected VMS example.
28796 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
28798 Add documentation for -gnatyu switch (unnecessary blank lines)
28799 Document new switch -U for GNAT PRETTY and GNAT METRIC
28800 Add note about Stdcall being handled as C convention on non Windows OS.
28801 Remove some junk typo in description of gnatbind -S switch
28802 Remove reference to Extensions_Allowed pragma
28803 Document the new order of the directories to be searched (source and
28804 object directories of project files before directories in ADA_*_PATH
28805 environment variables.
28807 * g-trasym.ads: Document that IRIX is supported
28809 2005-06-10 Arnaud Charlet <charlet@adacore.com>
28811 * Makefile.in: Add initialize.o when needed.
28812 Adapt to new VMS package body Symbols and subunits
28813 No specialized version of a-sytaco is needed for VxWorks.
28815 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
28816 * a-zchara.ads, a-widcha.ads: New files.
28818 * system-hpux-ia64.ads: New file.
28820 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
28821 is imported from the VxWorks kernel.
28823 2005-06-14 Robert Dewar <dewar@adacore.com>
28825 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
28826 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
28827 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
28828 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
28829 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
28830 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
28831 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
28832 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
28833 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
28834 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
28835 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
28836 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
28838 2005-06-14 Thomas Quinot <quinot@adacore.com>
28840 * xeinfo.adb: Fix typo in comment
28842 2005-06-14 Javier Miranda <miranda@adacore.com>
28844 * repinfo.ads: Fix typo in comment
28846 2005-06-14 Gary Dismukes <dismukes@adacore.com>
28848 * s-finimp.adb (Parent_Tag): Delete this imported function (function
28849 Parent_Tag is now in the visible part of Ada.Tags).
28850 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
28851 using imported function.
28853 2005-06-14 Bernard Banner <banner@adacore.com>
28855 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
28856 also apply for handling support for VxSim 653.
28858 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
28860 * xsnames.adb: Add automatic generation of snames.h.
28862 2005-06-14 Thomas Quinot <quinot@adacore.com>
28864 * gen-soccon.c: Add IP_MULTICAST_IF constant
28865 Minor reformatting and adjustments to prevent warnings.
28867 2005-06-14 Pascal Obry <obry@adacore.com>
28869 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
28871 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
28873 * trans.c (gnat_gimplify_expr): Call
28874 recompute_tree_invarant_for_addr_expr when we change
28875 the operand of the ADDR_EXPR.
28877 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28879 * misc.c: Don't include errors.h.
28881 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28883 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
28885 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
28887 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
28889 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
28891 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
28894 * Makefile.in: Make TGT_LIB behave correctly.
28896 2005-04-23 DJ Delorie <dj@redhat.com>
28898 * misc.c: Adjust warning() callers.
28900 2005-04-16 Laurent Guerby <laurent@guerby.net>
28903 * a-nudira.adb (Value): Check for valid string.
28904 * a-nuflra.adb (Value): Likewise.
28906 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
28908 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
28910 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
28912 * adaint.c, init.c, tracebak.c: Fix comment typos.
28913 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
28915 2005-04-07 Laurent Guerby <laurent@guerby.net>
28916 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
28918 * Makefile.in: Add make ifeq define for hppa linux tasking support.
28919 * system-hpux.ads: Define Signed_Zeros to be True.
28920 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
28922 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
28924 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
28925 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
28928 2005-03-30 Tom Tromey <tromey@redhat.com>
28930 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
28932 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
28934 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
28936 2005-03-29 Robert Dewar <dewar@adacore.com>
28938 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
28939 fixed-point expression has value that is not a multiple of the Small
28942 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
28944 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
28947 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
28949 2005-03-29 Vincent Celier <celier@adacore.com>
28951 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
28952 (Build_Dynamic_Library.Version_String): Return the empty string when
28953 Lib_Version is empty or when the symbol policy is not Autonomous.
28955 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
28956 a symbol is not in the reference symbol file, increase the Major ID
28957 and set the Minor ID to 0.
28958 Use gsmatch=lequal instead of gsmatch=equal
28960 2005-03-29 Doug Rupp <rupp@adacore.com>
28962 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
28963 name and translate.
28965 2005-03-29 Javier Miranda <miranda@adacore.com>
28967 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
28968 (Inherit_DT): The first formal has been redefined as a Tag.
28969 This allows us the removal of the subprogram Get_TSD.
28970 (TSD): Replace the call to Get_TSD by the actual code.
28972 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
28973 (Make_DT): Upgrade the call to Inherit_TSD according to the
28974 new interface: the first formal is now a Tag.
28976 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
28977 redefined as a Tag.
28978 This change allows us to remove the subprogram Get_TSD.
28979 (CPP_Get_TSD): Subprogram removed.
28980 (TSD): Replace the call to CPP_Get_TSD by the actual code.
28982 * rtsfind.ads: Remove support to call the run-time
28985 2005-03-29 Robert Dewar <dewar@adacore.com>
28987 * errutil.adb, errout.adb:
28988 Minor comment updates on Line_Terminator references
28990 * par-ch10.adb: Add ??? comment about line terminator
28992 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
28993 (check dos line terminator).
28994 (Check_Line_Max_Length): New procedure, split off from the existing
28995 Check_Line_Terminator routine. Separating this out allows -gnatyf to
28996 be properly recognized.
28998 * styleg.adb: Add ??? comment for line terminator reference
29000 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
29001 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
29003 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
29004 (check dos line terminator).
29005 (Check_Line_Max_Length): New procedure, split off from the existing
29006 Check_Line_Terminator routine. Separating this out allows -gnatyf to
29007 be properly recognized.
29009 * stylesw.ads, stylesw.adb:
29010 Add handling for new -gnatyd switch (check dos line terminator)
29012 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
29013 Recognize -gnatwb/-gnatwB switches
29014 Include Warn_On_Bad_Fixed_Value for -gnatg
29017 Add line for new -gnatyd switch (check dos line terminator)
29019 * usage.adb: Add lines for -gnatwb/-gnatwB
29021 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
29023 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
29025 * gnat_ugn.texi: Fix overlong lines
29026 Document new -gnatyd switch
29027 Document new -gnatwb/-gnatwB switches
29029 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29031 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
29032 order to retrieve the component list of the type, before examining
29033 individual components.
29035 * sem_type.adb (Covers): Types are compatible if one is the base type
29036 of the other, even though their base types might differ when private
29037 views are involved.
29039 2005-03-29 Thomas Quinot <quinot@adacore.com>
29041 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
29042 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
29043 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
29044 analyzed if expansion is disabled (which could otherwise cause spurious
29045 error messages if expansion has been disabled due to previous
29046 (unrelated) errors).
29048 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
29049 is disabled, the entity denoted by the argument is the access type
29050 itself, not an underlying record type, so there is no need to go back
29051 to the Corresponding_Remote_Type.
29053 2005-03-29 Gary Dismukes <dismukes@adacore.com>
29054 Robert Dewar <dewar@adacore.com>
29056 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
29057 expand a call to an instance of
29058 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
29059 Constructor actual of the instance. A class-wide membership
29060 check is also generated, to ensure that the tag passed to the instance
29061 denotes a type in the class.
29062 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
29063 of Name_Generic_Dispatching_Constructor.
29065 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
29066 05 unit for AI-260-02).
29068 * a-tgdico.ads: New file.
29070 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
29071 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
29073 * snames.ads, snames.adb (Preset_Names): Add entry for
29074 Generic_Dispatching_Constructor.
29077 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
29078 character type cases.
29079 (Analyze_Subprogram_Renaming): Add special handling for
29080 the case of renaming of stream attributes when the renaming denotes a
29081 generic formal subprogram association for an abstract formal subprogram.
29082 Check that the attribute is a primitive stream attribute (and not
29083 a class-wide stream attribute) and then rewrite the attribute name
29084 as the name of the appropriate compiler-generated stream primitive.
29086 2005-03-29 Robert Dewar <dewar@adacore.com>
29088 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
29090 (Is_Possibly_Unaligned_Object): Correct typo that
29091 resulted in inaccurate result for unaligned scalars within records.
29093 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29095 * freeze.adb (Freeze_Record_Type): If the type of the component is an
29096 itype whose parent is controlled and not yet frozen, do not create a
29097 freeze node for the itype if expansion is disabled.
29099 2005-03-29 Vincent Celier <celier@adacore.com>
29101 * make.adb (Gnatmake): Don't fail if the main project file is declared
29102 as having no Ada sources. Do not display message "no sources to
29103 compile" in quiet output.
29105 2005-03-29 Doug Rupp <rupp@adacore.com>
29107 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
29110 2005-03-29 Robert Dewar <dewar@adacore.com>
29112 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
29115 2005-03-29 Robert Dewar <dewar@adacore.com>
29117 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
29118 missing TYPE Improve the error message generated when compiling a
29119 limited interface in Ada83 or Ada95 mode.
29121 2005-03-29 Robert Dewar <dewar@adacore.com>
29123 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
29124 rather than proceed ahead using a junk attribute name.
29126 2005-03-29 Vincent Celier <celier@adacore.com>
29128 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
29130 * prj-part.adb (Parse_Single_Project): Set the location of a project
29131 on its defining identifier, rather than on the reserved word "project".
29133 * prj-proc.adb (Expression): Adapt to the fact that default of external
29134 references may be string expressions, not always literal strings.
29135 (Recursive_Process): Set Display_Name equal to Name
29136 when Location is No_Location, that is when there is no actual file.
29137 Get the Display_Name of the project from the source, when it is not a
29139 (Process): Use the Display_Name in error messages
29141 * prj-strt.adb (External_Reference): Allow default to be string
29142 expressions, not only literal strings.
29144 2005-03-29 Vincent Celier <celier@adacore.com>
29146 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
29147 file and the reference symbol file to be the same file.
29149 2005-03-29 Thomas Quinot <quinot@adacore.com>
29151 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
29152 forbid conversion of a local access-to-subprogram type to a remote one.
29154 * sem_util.adb (Wrong_Type): For a record type that is the expanded
29155 equivalent type for a remote access-to-subprogram type, go back to the
29156 original RAS entity when displaying an error message, so the casing is
29157 the original source casing.
29159 2005-03-29 Robert Dewar <dewar@adacore.com>
29161 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
29164 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29166 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
29167 subtype if code is being pre-analyzed, to prevent un-expanded
29168 references to protected formals, among others.
29169 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
29170 interpretation that can be a call, include the result of the call as a
29171 possible interpretation of the dereference.
29173 * sem_ch5.adb (Process_Bounds): Determine type of range by
29174 pre-analyzing a copy of the original range, and then analyze the range
29175 with the expected type.
29177 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
29178 with an overloaded prefix where not all interpretations yield an
29179 access to subprogram, do not rewrite node as a call.
29180 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
29181 the node as a call once the context identifies the interpretation of
29182 the prefix whose call yields the context type.
29183 (Valid_Conversion): For the case of a conversion between
29184 local access-to-subprogram types, check subtype conformance using
29185 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
29186 detailed error message.
29188 2005-03-29 Ed Schonberg <schonberg@adacore.com>
29190 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
29191 indicator, indicate that the formal can never be null.
29192 (Process_Formals): If a formal has a non_null indicator, insert the
29193 resulting subtype immediately before the enclosing subprogram decl,
29194 and not at the beginning of the corresponding declarative part, to
29195 prevent access before elaboration (Ada2005).
29197 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29200 * utils.c (finish_record_type): Use variable_size when setting sizes.
29202 2005-03-29 Robert Dewar <dewar@adacore.com>
29204 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
29205 guarantee Unix style line terminators for the output files, even when
29206 running on windows.
29208 2005-03-29 Robert Dewar <dewar@adacore.com>
29210 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
29211 buffer if an exception is raised.
29213 2005-03-29 Ed Falis <falis@adacore.com>
29215 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
29218 2005-03-29 Robert Dewar <dewar@adacore.com>
29220 * sem_util.ads: Minor reformatting
29221 * gnat_rm.texi: Minor editing.
29223 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
29225 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
29226 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
29228 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
29230 * adaint.c (__gnat_portable_spawn): Adjust cast.
29232 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
29234 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
29236 2005-03-17 Pascal Obry <obry@adacore.com>
29238 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
29241 * expect.c (__gnat_waitpid): Moved here from adaint.c.
29242 Reimplement under Win32 using Win32 API.
29244 (__gnat_kill) [Win32]: Properly close the process handle before leaving
29247 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
29249 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
29250 (DECL_RENAMED_OBJECT): New accessor macro.
29251 (SET_DECL_RENAMED_OBJECT): New setter macro.
29253 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
29254 object in all cases. Attach the renamed object to the VAR_DECL.
29255 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
29256 field is not prescribed.
29258 * misc.c (gnat_handle_option): Handle -gnatO separately.
29259 (gnat_print_decl) <VAR_DECL>: New case.
29260 Print the DECL_RENAMED_OBJECT node.
29262 * lang.opt: Declare separate -gnatO option.
29264 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
29265 pointer, replace it with the renamed object.
29266 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
29267 pointer type if the source is not a fat pointer type whose underlying
29268 array has the same non-zero alias set as that of the destination array.
29270 2005-03-17 Javier Miranda <miranda@adacore.com>
29272 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
29273 (Get_Inheritance_Depth): Removed.
29274 (Set_Inheritance_Depth): Removed.
29276 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
29277 subprogram Get_Expanded_Name because it is not referenced by the
29280 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
29281 (CPP_Get_Inheritance_Depth): Removed.
29282 (CPP_Set_Inheritance_Depth): Removed.
29284 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
29286 2005-03-17 Robert Dewar <dewar@adacore.com>
29288 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
29289 3, since we now expect GCC 3 to do all the work.
29291 2005-03-17 Javier Miranda <miranda@adacore.com>
29293 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
29294 of one barrier to avoid wrong usage of this attribute.
29296 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
29297 First_Private_Entity.
29299 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
29300 the subprogram against wrong usage.
29301 Adapt the code to traverse the entities in the
29302 scope of a record_type because in addition to its usage regarding
29303 packages, this subprogram is also called by Expand_N_Freeze_Entity
29304 to install the visible declarations of the enclosing scope of a
29305 record_type_with_private to establish the proper visibility before
29306 freezing the entity and related subprograms.
29308 2005-03-17 Ed Schonberg <schonberg@adacore.com>
29310 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
29313 2005-03-17 Thomas Quinot <quinot@adacore.com>
29315 * exp_ch3.adb (Check_Attr): New subprogram.
29316 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
29317 into a new Check_Attr subprogram, in order to provide a more
29318 explanatory error message (including the name of the missing attribute).
29319 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
29320 subprogram determines whether a default implementation exists for a
29321 given stream attribute.
29322 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
29323 Determine whether to generate a default implementation for each stream
29324 attribute separately, as this depends on the specific attribute.
29326 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
29327 limited extension where a stream attribute is missing for a limited
29328 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
29329 generate a bogus reference to the missing attribute to prevent
29330 cascaded errors. Instead, generate a null statement.
29332 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
29333 available for a limited type if it has been specified for an ancestor
29336 2005-03-17 Ed Schonberg <schonberg@adacore.com>
29338 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
29339 entity is an operator.
29341 2005-03-17 Thomas Quinot <quinot@adacore.com>
29343 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29344 spec, to make this predicate available to other units.
29346 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
29349 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
29350 when no distribution runtime library is available.
29352 * sem_res.adb, sem_dist.adb: Disable expansion of remote
29353 access-to-subprogram types when no distribution runtime library is
29355 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
29356 predicate available to other units.
29358 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
29359 spec, to make this predicate available to other units.
29361 2005-03-17 Vincent Celier <celier@adacore.com>
29363 * make.adb (Insert_Project_Sources): Make sure the Q is always
29366 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
29367 the default for the tree, not the global default naming.
29369 * prj-proc.adb (Recursive_Process): No need to put the default naming
29370 in the project data, it's already there.
29372 2005-03-17 Doug Rupp <rupp@adacore.com>
29374 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
29376 * 5xcrtl.ads: Renamed to...
29377 * s-crtl-vms64.ads: ...this new file
29379 2005-03-17 Robert Dewar <dewar@adacore.com>
29382 * namet.adb (Copy_One_Character): Set proper wide character encoding
29383 for upper half character if we have upper half encoding.
29385 2005-03-17 Robert Dewar <dewar@adacore.com>
29387 * par.adb (Par): Improved msg for attempt to recompile predefined unit
29389 2005-03-17 Thomas Quinot <quinot@adacore.com>
29391 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
29392 tagged limited type, the TSS is a newly built renaming declaration:
29393 insert it using Set_TSS, not Copy_TSS.
29395 2005-03-17 Javier Miranda <miranda@adacore.com>
29397 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
29398 Try_Object_Operation): Analyze the object that is accessible
29399 through the prefix of the subprogram call before we apply
29400 the transformation of the object-operation notation.
29402 2005-03-17 Jose Ruiz <ruiz@adacore.com>
29404 * s-taprob.adb (Initialize_Protection): Initialize the protected
29405 object's owner to Null_Task.
29406 (Lock): If pragma Detect_Blocking is in effect and the caller of this
29407 procedure is already the protected object's owner then Program_Error
29408 is raised. In addition the protected object's owner is updated.
29409 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
29410 of this procedure is already the protected object's owner then
29411 Program_Error is raised.
29412 In addition the protected object's owner is updated.
29413 (Unlock): Remove the ownership of the protected object.
29415 * s-taprob.ads (Protection): Add the field Owner, used to store the
29416 protected object's owner.
29417 This component is needed for detecting one type of potentially blocking
29418 operations (external calls on a protected subprogram with the same
29419 target object as that of the protected action). Document the rest of
29422 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
29423 Initialize the protected object's owner to Null_Task.
29424 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
29425 caller of this procedure is already the protected object's owner then
29426 Program_Error is raised.
29427 Do not raise Program_Error when this procedure is called from a
29429 (Unlock_Entries): Remove the ownership of the protected object.
29430 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
29431 of this procedure is already the protected object's owner then
29432 Program_Error is raised.
29433 Do not raise Program_Error when this procedure is called from
29434 a protected action.
29436 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
29437 used to store the protected object's owner.
29439 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
29440 effect and this procedure (a potentially blocking operation) is called
29441 from whithin a protected action, Program_Error is raised.
29442 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
29443 and this procedure (a potentially blocking operation) is called from
29444 whithin a protected action, Program_Error is raised.
29446 2005-03-17 Vincent Celier <celier@adacore.com>
29447 Nicolas Setton <setton@adacore.com>
29449 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
29450 switch, not supported by the linker on Darwin. Add '_' before
29451 <library>init, as this character is added unconditionally by the
29453 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
29454 correct one ".dylib". This fixes detection of the archive files when
29455 building library projects.
29457 2005-03-17 Vincent Celier <celier@adacore.com>
29459 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
29460 -gnat83, -gnat95 and -gnat05.
29462 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
29464 * gnat_ugn.texi: Document gnatmem restriction
29466 2005-03-17 Thomas Quinot <quinot@adacore.com>
29468 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
29471 2005-03-17 Robert Dewar <dewar@adacore.com>
29473 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
29474 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
29475 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
29477 * casing.adb: Comment improvements
29479 2005-03-17 Pascal Obry <obry@adacore.com>
29481 * g-expect.adb: Minor reformatting.
29483 2005-03-15 Zack Weinberg <zack@codesourcery.com>
29485 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
29486 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
29489 2005-03-15 Vincent Celier <celier@adacore.com>
29491 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
29492 Add new parameter In_Tree to specify the project tree: needed
29493 by the project manager. Adapt to changes in project manager
29494 using new parameter In_Tree.
29496 2005-03-15 Jakub Jelinek <jakub@redhat.com>
29498 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
29499 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
29500 ada/bldtools to avoid make -jN failures.
29502 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
29504 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
29505 to NULL_TREE on entry.
29507 2005-03-15 Robert Dewar <dewar@adacore.com>
29509 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
29510 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
29511 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
29512 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
29513 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
29514 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
29515 system-interix.ads, system-solaris-sparc.ads,
29516 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
29517 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
29518 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
29519 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
29520 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
29521 Compiler_System_Version to be False.
29523 * opt.ads: Add new flag Opt.Address_Is_Private
29525 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
29526 Add new parameter Compiler_System_Version to avoid checking for
29527 completeness of parameters when compiler is compiling itself.
29528 Allows old versions of GNAT to be compiled with new compiler.
29530 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
29532 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
29533 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
29535 (Stack_Base_Available): New flag.
29536 (Get_Page_Size): New overloaded functions imported from C.
29537 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
29538 PROT_ON, PROT_OFF): New constants.
29539 (mprotect): New function imported from C.
29540 (pthread_teb_t): New record type.
29542 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
29543 (Create_Task): Account for the Yellow Zone and the guard page.
29545 2005-03-15 Vincent Celier <celier@adacore.com>
29547 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29548 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29549 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
29550 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
29551 Library_File_Name_For): Add new parameter In_Tree
29552 to specify the project tree: needed by the project manager.
29553 Adapt to changes in project manager using new parameter In_Tree.
29554 Remove local imports, use functions in System.CRTL.
29556 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
29557 to use the project manager.
29559 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
29560 In_Tree to designate the project tree. Adapt to changes in the project
29561 manager, using In_Tree.
29563 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
29564 Copy_Interface_Sources): Add new parameter In_Tree to specify the
29565 project tree: needed by the project manager.
29566 (Build_Library): Check that Arg'Length >= 6 before checking if it
29567 contains "--RTS=...".
29569 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
29570 Library_File_Name_For): Add new parameter In_Tree to specify the
29571 project tree: needed by the project manager.
29573 * prj.ads, prj.adb: Major modifications to allow several project trees
29574 in memory at the same time.
29575 Change tables to dynamic tables and hash tables to dynamic hash
29576 tables. Move tables and hash tables from Prj.Com (in the visible part)
29577 and Prj.Env (in the private part). Move some constants from the visible
29578 part to the private part. Make other constants deferred.
29579 (Project_Empty): Make it a variable, not a function
29580 (Empty_Project): Add parameter Tree. Returns the data with the default
29581 naming data of the project tree Tree.
29582 (Initialize): After updating Std_Naming_Data, copy its value to the
29583 component Naming of Project Empty.
29584 (Register_Default_Naming_Scheme): Use and update the default naming
29585 component of the project tree, instead of the global variable
29587 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
29588 Tree is not defaulted, return the default naming data of the Tree.
29589 (Initial_Buffer_Size): Constant moved from private part
29590 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
29591 variables initialized in procedure Initialize.
29592 (Add_To_Buffer): Add two in out parameters to replace global variables
29593 Buffer and Buffer_Last.
29594 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
29596 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
29598 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
29599 for the project tree.
29600 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
29601 constant at the beginning of the package spec, so that they cane be used
29602 in subprograms before their full declarations.
29603 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
29604 (Empty_Project): Add parameter of type Project_Node_Ref
29605 (Private_Project_Tree_Data): Add component Default_Naming of type
29607 (Buffer, Buffer_Last): remove global variables
29608 (Add_To_Buffer): Add two in out parameters to replace global variables
29609 Buffer and Buffer_Last.
29610 (Current_Packages_To_Check): Remove global variable
29611 (Empty_Name): Move to private part
29612 (No-Symbols): Make it a constant
29613 (Private_Project_Tree_Data): New type for the private part of the
29615 (Project_Tree_Data): New type for the data of a project tree
29616 (Project_Tree_Ref): New type to designate a project tree
29617 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
29618 for the project tree.
29620 * prj-attr.ads: Add with Table; needed, as package Prj no longer
29621 imports package Table.
29623 * prj-com.adb: Remove empty, no longer needed body
29625 * prj-com.ads: Move most of the content of this package to package Prj.
29627 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
29628 designate the project node tree and Packages_To_Check to replace
29629 global variable Current_Packages_To_Check.
29630 Add new parameters In_Tree and Packages_To_Check to local subprograms,
29631 when needed. Adapt to changes in project manager with project node tree
29634 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
29635 project tree to most subprograms. Move tables and hash tables to
29636 private part of package Prj.
29637 Adapt to changes in project manager using project tree In_Tree.
29639 * prj-makr.adb (Tree): New constant to designate the project node tree
29640 Adapt to change in project manager using project node tree Tree
29642 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
29643 display the Library_Src_Dir and the Library_Dir.
29644 Add new parameter In_Tree to designate the project node tree to most
29645 subprograms. Adapt to changes in the project manager, using project tree
29647 (Check_Naming_Scheme): Do not alter the casing on platforms where
29648 the casing of file names is not significant.
29649 (Check): Add new parameter In_Tree to designate the
29651 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
29652 designate the project tree.
29653 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
29655 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
29656 to replace those that were in the private part of package Prj.
29657 Add new parameter In__Tree to designate the project node tree to most
29658 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
29659 (Post_Parse_Context_Clause): When specifying the project node of a with
29660 clause, indicate that it is a limited with only if there is "limited"
29661 in the with clause, not necessarily when In_Limited is True.
29662 (Parse): Add new parameter In_Tree to designate the project node tree
29664 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
29665 designate the project node tree. Adapt to change in Prj.Tree with
29666 project node tree In_Tree.
29668 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
29669 tree In_Tree in the call to function Empty_Process to give its initial
29670 value to the project data Processed_Data.
29671 Add new parameters In_Tree to designate the project tree and
29672 From_Project_Node_Tree to designate the project node tree to several
29673 subprograms. Adapt to change in project manager with project tree
29674 In_Tree and project node tree From_Project_Node_Tree.
29676 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
29677 to replace those that were in the private part of package Prj.
29678 Add new parameter In_Tree to designate the project node tree to most
29679 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
29681 * prj-tree.ads, prj-tree.adb: Add new parameter of type
29682 Project_Node_Tree_Ref to most subprograms.
29683 Use this new parameter to store project nodes in the designated project
29685 (Project_Node_Tree_Ref): New type to designate a project node tree
29686 (Tree_Private_Part): Change table to dynamic table and hash tables to
29687 dynamic hash tables.
29689 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
29690 the project tree to most subprograms. Adapt to changes in project
29691 manager using project tree In_Tree.
29693 * makegpr.adb (Project_Tree): New constant needed to use project
29696 2005-03-15 Olivier Hainque <hainque@adacore.com>
29698 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
29699 for sigactions with SA_SIGINFO set. Call
29700 __gnat_adjust_context_for_raise before raising, to perform the
29701 potentially required adjustments to the machine context for the GCC
29704 * raise.h (__gnat_adjust_context_for_raise): New prototype.
29706 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
29707 Adjust PC by one in the provided machine context.
29708 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
29709 so that the handler is passed the context structure to adjust prior to
29711 (__gnat_error_handler) HPUX: Adjust the signature to match what an
29712 SA_SIGINFO sigaction should look like. Call
29713 __gnat_adjust_context_for_raise before actually raising.
29714 (__gnat_adjust_context_for_raise): Default noop to help PC
29715 adjustments before raise from signal handlers.
29716 (__gnat_error_handler): Indirectly call a predicate function to
29717 determine if a condition should be resignaled or not.
29718 (__gnat_set_resignal_predicate): User interface to modify the predicate.
29719 (__gnat_default_resignal_p): Default GNAT predicate.
29721 2005-03-15 Doug Rupp <rupp@adacore.com>
29723 * adaint.c: Prefix #include of VMS system header files with vms/
29724 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
29725 Do not define a dummy function "convert_addresses" under Darwin,
29728 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
29731 2005-03-15 Nicolas Setton <setton@adacore.com>
29733 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
29736 2005-03-15 Robert Dewar <dewar@adacore.com>
29738 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
29741 * a-retide.ads: Minor comment changes
29743 2005-03-15 Robert Dewar <dewar@adacore.com>
29745 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
29746 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
29747 Realloc_For_Chunk to private part of package.
29748 New subprograms for AI-301
29750 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
29751 Get_Line procedure.
29752 Avoid unnecessary use of Get/Set_Wide_String
29754 2005-03-15 Robert Dewar <dewar@adacore.com>
29757 * a-stunau.ads, a-stunau.adb:
29758 Change interface to allow efficient (and correct) implementation
29759 The previous changes to allow extra space in unbounded strings had
29760 left this interface a bit broken.
29762 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
29764 * g-spipat.ads, g-spipat.adb: New interface for Get_String
29765 Minor reformatting (function specs)
29767 * g-spitbo.adb: New interface for Get_String
29769 * g-spitbo.ads: Minor reformatting
29771 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
29773 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
29775 2005-03-15 Javier Miranda <miranda@adacore.com>
29776 Robert Dewar <dewar@adacore.com>
29777 Thomas Quinot <quinot@adacore.com>
29778 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29780 * atree.ads, atree.adb: Add support for Elist24 field
29782 * atree.h: Fix wrong definition of Field27
29783 Add support for Elist16 field
29784 Add support for Elist24 field
29786 * einfo.ads, einfo.adb (Abstract_Interfaces,
29787 Set_Abstract_Interfaces): New subprograms.
29788 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
29790 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
29791 entities rather than a single node.
29792 (Is_Interface, Set_Is_Interface): New subprogram
29793 (First_Tag_Component): New syntesized attribute
29794 (Next_Tag_Component): New synthesized attribute
29795 (Write_Entity_Flags): Upgraded to write Is_Interface
29796 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
29797 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
29798 (Task_Body_Procedure): New subprogram to read this attribute.
29799 (Set_Task_Body_Procedure): New subprogram to set this attribute.
29800 (Has_Controlled_Component): Now applies to all entities.
29801 This is only a documentation change, since it always worked to apply
29802 this to other than composite types (yielding false), but now this is
29804 Update documentation on Must_Be_Byte_Aligned for new spec
29806 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
29807 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
29808 uses of the Access_Disp_Table attribute to reference the first dispatch
29809 table associated with a tagged type. As
29810 part of the implementation of abstract interface types,
29811 Access_Disp_Table has been redefined to contain a list of dispatch
29812 tables (rather than a single dispatch table).
29813 Similarly, upgrade all the references to Tag_Component by the
29814 new attribute First_Tag_Component.
29815 (Find_Inherited_TSS): Moved to exp_tss.
29816 Clean up test in Expand_N_Object_Declaration for cases
29817 where we need to do a separate assignment of the initial value.
29818 (Expand_N_Object_Declaration): If the expression in the
29819 declaration of a tagged type is an aggregate, no need to generate an
29820 additional tag assignment.
29821 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
29823 Bit packed array ops are only called if operands are known to be
29825 (Component_Equality): When returning an N_Raise_Program_Error statement,
29826 ensure that its Etype is set to Empty to avoid confusing GIGI (which
29827 expects that only expressions have a bona fide type).
29828 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
29829 determine the amount of data to be copied.
29831 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
29832 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
29833 INTERFACE_TYPE_DEFINITION ::=
29834 [limited | task | protected | synchronized] interface
29835 [AND interface_list]
29837 * par-ch3.adb (P_Type_Declaration): Modified to give support to
29839 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
29841 (P_Interface_Type_Definition): New subprogram that parses the new
29842 syntax rule of Ada 2005 interfaces
29843 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
29844 messages by the correct RENAMES (quotes removed).
29846 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
29847 attribute First_Tag_Component.
29849 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
29850 (Interface_List, Set_Interface_List): New subprograms.
29851 (Interface_Present, Set_Interface_Present): New subprograms.
29852 (Limited_Present, Set_Limited_Present): Available also in derived
29853 type definition nodes.
29854 (Protected_Present, Set_Protected_Present): Available also in
29855 record type definition and
29856 derived type definition nodes.
29857 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
29858 (Task_Present, Set_Task_Present): New subprogram.
29859 (Task_Body_Procedure): Removed.
29860 (Set_Task_Body_Procedure): Removed.
29861 These subprogram have been removed because the attribute
29862 Task_Body_Procedure has been moved to the corresponding task type
29863 or task subtype entity to leave a field free to store the list
29864 of interfaces implemented by a task (for AI-345)
29865 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
29866 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
29867 expression flag Do_Range_Check
29868 (Exception_Junk): Change to Flag7 to accomodate above change
29869 (Box_Present, Default_Name, Specification, Set_Box_Present,
29870 Set_Default_Name, Set_Specification): Expand the expression
29871 "X in N_Formal_Subprogram_Declaration" into the corresponding
29872 two comparisons. Required to use the csinfo tool.
29874 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
29875 "with string" given.
29877 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
29880 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
29883 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
29884 attribute Task_Body_Procedure rather than the old semantic field that
29885 was available in the task_type_declaration node.
29887 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
29888 interface type definitions.
29889 (P_Formal_Derived_Type_Definition): Modified to handle the list of
29892 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
29893 task type declaration.
29894 (P_Protected): Modified to handle the list of interfaces in a
29895 protected type declaration.
29897 2005-03-15 Doug Rupp <rupp@adacore.com>
29898 Vincent Celier <celier@adacore.com>
29900 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
29901 (Gen_Output_File_C): Likewise.
29902 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
29904 2005-03-15 Thomas Quinot <quinot@adacore.com>
29906 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
29907 is an N_Raise_Constraint_Error node, create a new copy of it without
29908 going through a call to Duplicate_Subexpr.
29910 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
29911 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29912 Nicolas Setton <setton@adacore.com>
29913 Ed Schonberg <schonberg@adacore.com>
29919 * decl.c (gnat_to_gnu_field): Reject aliased components with a
29920 representation clause that prescribes a size not equal to the rounded
29921 size of their types.
29922 (gnat_to_gnu_entity, case E_Component): Always look at
29923 Original_Record_Component if Present and not the entity.
29924 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
29925 of tagged extension types by not making field for components that are
29927 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
29928 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
29929 expression to the type of the object when the object is constant.
29930 Reverse defer_debug_incomplete_list before traversing it, so that trees
29931 are processed in the order at which they were added to the list. This
29932 order is important when using the stabs debug format.
29933 If we are deferring the output of debug information, also defer this
29934 output for a function return type.
29935 When adding fields to a record, prevent emitting debug information
29936 for incomplete records, emit the information only when the record is
29938 (components_to_record): New parameter defer_debug.
29939 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
29940 (gnat_to_gnu_field_decl): New function.
29941 (substitution_list, annotate_rep): Call it.
29942 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
29943 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
29944 No longer update discriminants to not be a COMPONENT_REF.
29945 (copy_alias_set): Strip padding from input type; also handle
29946 unconstrained arrays properly.
29948 * gigi.h (write_record_type_debug_info): New function.
29949 Convert to use ANSI-style prototypes. Remove unused
29950 declarations for emit_stack_check, elab_all_gnat and
29951 set_second_error_entity.
29952 (gnat_to_gnu_field_decl): New decl.
29954 * utils.c (write_record_type_debug_info): New function.
29955 (finish_record_type): Delegate generation of debug information to
29956 write_record_type_debug_info.
29957 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
29958 (update_pointer_to): Fix pasto.
29959 (convert) <UNION_TYPE>: Accept slight type variations when
29960 converting to an unchecked union type.
29962 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
29963 replace the N_Freeze_Entity with a null statement.
29965 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
29966 within a constrained subcomponent of an enclosing record, place the
29967 freeze nodes in the scope stack entry for the enclosing record.
29968 (Undelay_Type): New Subprogram.
29969 (Set_Small_Size): Pass T, the type to modify; all callers changed.
29970 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
29971 within records; allow them to have freeze nodes if their base types
29974 * exp_util.adb (Remove_Side_Effects): Properly test for
29975 Expansion_Delayed and handle case when it's inside an
29976 N_Qualified_Expression.
29978 * sem_ch3.adb (Derived_Type_Declaration): New predicate
29979 Comes_From_Generic, to recognize accurately that the parent type in a
29980 derived type declaration can be traced back to a formal type, because
29981 it is one or is derived from one, or because its completion is derived
29983 (Constrain_Component_Type): If component comes from source and has no
29984 explicit constraint, no need to constrain in in a subtype of the
29986 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
29987 Minor change to propagate Is_Ada_2005 flag
29989 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
29990 Expansion_Delayed is False.
29991 (assoc_to_constructor): Ignore fields that have a
29992 Corresponding_Discriminant.
29993 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
29994 function returns "by target", dereference the target pointer using the
29995 type of the actual return value.
29996 <all>: Be prepared for a null gnu_result.
29997 (processed_inline_subprograms): Check flag_really_no_inline
29998 instead of flag_no_inline.
29999 (set_second_error_entity): Remove unused function.
30000 (gnat_to_gnu, case N_Selected_Component): Call
30001 gnat_to_gnu_field_decl.
30002 (assoc_to_constructor): Likewise.
30004 2005-03-15 Robert Dewar <dewar@adacore.com>
30005 Ed Schonberg <schonberg@adacore.com>
30006 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30008 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
30009 Must_Be_Byte_Aligned for cases where we do not need to use a
30010 System.Pack_nn unit.
30012 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
30014 Needed now that we do some processing for IN parameters as well. This
30015 may well fix some unrelated errors.
30016 (Expand_Call): Handle case of unaligned objects (in particular those
30017 that come from packed arrays).
30018 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
30019 renamed entity is an inherited operation, re-expand the call using the
30020 original operation, which is the one to call.
30021 Detect attempt to inline parameterless recursive subprogram.
30022 (Represented_As_Scalar): Fix to work properly with private types
30023 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
30024 accurate estimate. Yields True in far fewer cases than before,
30025 improving the quality of code that depends on this test.
30027 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
30028 over both visible and private declarations to remove them from tree,
30029 and mark subprograms declared in package as eliminated, to prevent
30030 spurious use in subsequent compilation of generic units in the context.
30032 * exp_util.ads: Minor cleanup in variable names
30034 * sem_eval.ads, sem_eval.adb: Minor reformatting
30035 (Compile_Time_Known_Bounds): New function
30037 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30039 * exp_ch7.adb (Convert_View): Use base types of underlying types when
30040 determining whether an unchecked conversion is needed for the argument
30041 of an initialization call.
30043 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30045 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
30046 that appears in the instantiation rather than the internal subtype
30047 generated in the wrapper package, to avoid anomalies in gigi when the
30048 target is derived from a private type whose full view is an access type.
30050 2005-03-15 Robert Dewar <dewar@adacore.com>
30052 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
30054 Add documentation to replace the use of this flag
30055 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
30058 2005-03-15 Thomas Quinot <quinot@adacore.com>
30060 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
30061 here from exp_attr so it can be shared between exp_attr and exp_dist.
30062 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
30063 all TSS names, not a subset thereof, and the previous name introduced
30064 an unnecessarily confusion that a distinction might exist between
30065 "OK" TSS names and some "not OK" TSS names.
30067 2005-03-15 Doug Rupp <rupp@adacore.com>
30069 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
30072 2005-03-15 Pascal Obry <obry@adacore.com>
30073 Eric Botcazou <ebotcazou@adacore.com>
30077 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
30078 when IN_RTS. This is to work around a bootstrap path problem.
30080 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
30081 table and pass it to __gnat_install_SEH_handler().
30082 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
30084 * lang.opt: Fix specification of -fRTS=.
30086 2005-03-15 Doug Rupp <rupp@adacore.com>
30087 Bernard Banner <banner@adacore.com>
30088 Vincent Celier <celier@adacore.com>
30089 Arnaud Charlet <charlet@adacore.com>
30092 This change works fine when gnatlib is built from the gcc directory,
30093 but does not work when using the libada Makefile, since GCC_FOR_TARGET
30094 is not passed to ada/Makefile.in, so more work is needed by a
30095 Makefile/configure expert.
30097 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
30098 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
30099 Setup gnatlink switch -M for x86_64 linux, as it is already setup
30101 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
30102 Run ranlib on libgccprefix.a
30103 Define PREFIX_OBJS for Darwin, to build libgccprefix.
30104 (ADA_INCLUDE_SRCS): Split Ada packages.
30106 2005-03-15 Robert Dewar <dewar@adacore.com>
30108 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
30110 * impunit.adb: Add GNAT.UTF_32
30112 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
30114 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
30115 now uses GNAT.UTF_32).
30117 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
30118 capabilities for categorizing characters using Unicode categories
30120 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30122 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
30123 instantiation that has been rewritten as a package body, retrieve spec
30124 to generate proper name for implicit_with_clause.
30125 (Install_Parents): Recognize a parent that is an instantiation but has
30126 been rewritten as a package declaration during analysis.
30128 2005-03-15 Javier Miranda <miranda@adacore.com>
30129 Ed Schonberg <schonberg@adacore.com>
30131 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
30132 parameter reported some error we immediately return. This improves the
30133 behaviour of the frontend in case of errors.
30134 (Install_Parent, Remove_Parent): Introduce new flag
30135 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
30136 ancestor of a generic child unit, when the child is being instantiated.
30137 (Inline_Instance_Body): If we are compiling the private
30138 part or the body of a child unit, restore the proper visibility of the
30139 parents after compiling the instance body.
30141 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30142 Javier Miranda <miranda@adacore.com>
30145 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
30146 of a private type, in which case it is underlying_type that denotes
30147 the proper task. Also modified to use the new entity attribute
30148 that is directly available in the task type and task subtype entities
30149 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
30150 arrays when other dimensions than the first are constrained by
30151 discriminants of an enclosing record.
30152 (Insert_Explicit_Dereference): If the prefix is an indexed component or
30153 a combination of indexed and selected components, find ultimate entity
30154 and generate the appropriate reference for it, to suppress spurious
30156 (Note_Possible_Modification): If an entity name has no entity, return.
30157 (Is_Variable): A function call never denotes a variable.
30158 (Requires_Transient_Scope): For record types, recurse only on
30159 components, not on internal subtypes that may have been generated for
30160 constrained components.
30162 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30164 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
30165 Eliminated as candidates for resolution. Both efficient, and avoids
30166 anomalies with operators declared in deleted code.
30167 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
30168 expansion is disabled (as when compiling a generic) to prevent spurious
30169 warnings on prefixes of selected components.
30171 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30173 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
30174 attached to a list before checking whether it appears in the private
30175 declarations of the current package.
30176 (Make_Inequality_Operator): Insert declaration in proper declarative
30177 list rather than just setting the Parent field, so that
30178 Is_Private_Declaration can handle it properly.
30180 2005-03-15 Ed Schonberg <schonberg@adacore.com>
30182 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
30183 a renaming a body, check that the renamed subprogram in not intrinsic.
30184 (Find_Direct_Name): If several use_visible entities hide
30185 each other, and the context is a predefined file compiled through
30186 rtsfind, keep only the entity that comes from a predefined file.
30188 2005-03-15 Geert Bosch <bosch@adacore.com>
30190 * s-fatgen.adb (Valid): Extend special exceptions to account for long
30191 long float padding to also cover AMD64 and IA64.
30193 2005-03-15 Gary Dismukes <dismukes@adacore.com>
30195 * s-imgwch.adb: Add with and use of Interfaces.
30196 (Img_Wide_Character): Change type of Val to Unsigned_16.
30197 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
30199 2005-03-15 Matthew Gingell <gingell@adacore.com>
30201 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
30203 2005-03-15 Robert Dewar <dewar@adacore.com>
30205 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
30207 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
30209 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
30211 2005-03-15 Robert Dewar <dewar@adacore.com>
30213 * s-bitops.adb, s-bitops.ads,
30214 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
30215 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
30216 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
30217 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
30218 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
30219 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
30220 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
30221 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
30224 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30226 * utils2.c (build_binary_op): Fix typo.
30228 2005-03-15 Doug Rupp <rupp@adacore.com>
30230 * s-crtl.ads (popen,pclose): New imports.
30232 2005-03-15 Cyrille Comar <comar@adacore.com>
30234 * comperr.adb (Compiler_Abort): remove references to obsolete
30235 procedures in the bug boxes for various GNAT builds.
30237 2005-03-15 Vincent Celier <celier@adacore.com>
30239 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
30241 2005-03-15 Geert Bosch <bosch@adacore.com>
30242 Arnaud Charlet <charlet@adacore.com>
30243 Robert Dewar <dewar@adacore.com>
30244 Cyrille Comar <comar@adacore.com>
30245 Sergey Rybin <rybin@adacore.com>
30247 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
30248 too specific and long-winded to be appropriate for the GNAT User's
30250 Warn about use of GCC switches not documented in the GNAT User's Guide,
30251 as these may cause generated code to not conform to Ada semantics.
30252 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
30253 Add documentation for -gnat95 and -gnat05 switches
30254 Remove paragraph documenting obsolete way to refer to third party
30256 Add a few references to Ada_05 that were missing.
30257 Update documentation on -gnatZ/-gnatL.
30258 Document limitation when using -m64 under Solaris.
30259 Change the "Name Casing" subsection of the pretty-printer section
30260 according to the changes in the dictionary processing.
30262 * gnat_rm.texi: Document the Ada_05 pragma.
30263 Section on record representation clauses describes the new more
30264 relaxed rules about placement of large packed bit array components.
30265 Add documentation of GNAT.UTF_32
30267 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
30269 * misc.c (gnat_post_options): Turn off structural
30272 2005-03-08 Laurent Guerby <laurent@guerby.net>
30274 * system-linux-sparc.ads: Fix typo in previous commit.
30276 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
30277 Laurent Guerby <laurent@guerby.net>
30280 * system-linux-sparc.ads: New.
30281 * Makefile.in: Add sparc linux entry.
30283 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
30285 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
30286 parameters as unused.
30288 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
30289 Partial merge from libada-gnattools-branch:
30291 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
30292 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
30293 into code in gnattools/Makefile.in. Remove direct dependencies on
30294 stamp-tools by tools clauses.
30295 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
30296 * config-lang.in: Add gnattools to $lang_dirs.
30298 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
30301 * utils.c (gnat_type_for_mode): Return null instead of ICE because
30302 we asked for an unknown mode.
30304 2005-02-12 Richard Henderson <rth@redhat.com>
30306 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
30307 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
30309 2005-02-10 Andreas Jaeger <aj@suse.de>
30311 * init.c (__gnat_initialize): Mark parameter as unused.
30313 2005-02-09 Doug Rupp <rupp@adacore.com>
30315 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
30316 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
30318 2005-02-09 Doug Rupp <rupp@adacore.com>
30320 * gnatchop.adb (dup, dup2),
30321 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
30323 * gnatlbr.adb (mkdir),
30324 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
30326 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
30328 2005-02-09 Doug Rupp <rupp@adacore.com>
30330 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
30332 2005-02-09 Robert Dewar <dewar@adacore.com>
30333 Thomas Quinot <quinot@adacore.com>
30334 Javier Miranda <miranda@adacore.com>
30335 Pascal Obry <obry@adacore.com>
30336 Ed Schonberg <schonberg@adacore.com>
30337 Doug Rupp <rupp@adacore.com>
30338 Gary Dismukes <dismukes@adacore.com>
30339 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30341 * g-zstspl.ads: New file.
30343 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
30345 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
30347 Add definition of Wide_Wide_Space for AI-285
30349 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
30350 interface (to support Ada 95 and Ada 2005 units).
30351 Add Unbounded_IO files
30352 Add entries for Wide_Wide packages for AI-285
30353 Add list of containers packages to Ada 2005 unit list
30355 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
30356 support new Unbounded_IO package cleanly.
30358 * g-utf_32.ads, g-utf_32.adb: New files.
30360 * Makefile.rtl: Add entry for g-utf_32
30361 Add new files for Unbounded_IO
30362 Adjust make file for new AI-285 wide wide packages
30363 Add AI-302 containers to the run time.
30365 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
30366 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
30367 subprograms for AI-301.
30369 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
30371 * a-stunau.ads: Minor comment correction
30373 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
30375 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
30376 (Check_RPC): Update to match changes in expanded code.
30377 Clean up unused entity.
30379 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
30380 was not taken into account.
30381 This includes proper initialization with Normalize_Scalars.
30382 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
30383 normalize scalars cases (particularly the latter) to do a better job
30384 of finding invalid representations.
30386 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
30388 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
30391 * exp_dist.adb: Add support for wide wide character type
30392 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
30393 private part, generate stub bodies at the end of the private part,
30394 not the visible part.
30395 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
30397 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
30398 generic wrapper to execute final processing after completing the
30399 expansion of the RPC receiver for an RACW.
30401 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
30402 packages and attributes.
30403 (Preset_Names): Addition of the new reserved words of Ada 2005,
30404 that is interface, overriding and synchronized.
30405 (Get_Pragma_Id): Give support to the use of the new reserved word
30406 "interface" as a pragma name.
30407 (Is_Pragma_Name): Give support to the use of the new reserved word
30408 "interface" as a pragma name.
30409 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
30410 attribute implementation.
30412 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
30413 checks to entities that are output parameters of Asm operations.
30414 Handle the Stream_Size attribute.
30415 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
30417 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
30419 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
30420 for second parameter being 0.0.
30421 Add support for wide wide character type.
30422 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
30424 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
30425 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
30426 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
30427 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
30428 for wide wide character cases.
30430 * cstand.adb: Create entities for Wide_Wide_Character and
30433 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
30434 accordance with AI-258.
30435 Add new declarations for 16/32 bit C character types (Part of AI285)
30437 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
30438 (Obsolescent_Warning): New field
30439 (Rep_Clause): New local subprogram used to share code. Returns the rep
30440 clause for which the name is given in parameter.
30441 (Has_Stream_Size_Clause): New routine.
30442 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
30443 (Address_Clause): Implementation is now using Rep_Clause.
30444 (Alignment_Clause): Idem.
30445 (Size_Clause): Idem.
30447 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
30448 entity in non-Ada 2005 mode and generate warning.
30450 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
30451 (Prag): Code cleanup. Remove old gnat pragma "overriding"
30453 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
30454 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
30455 on the named unit if the pragma is not in the current compilation unit,
30456 so that elaboration calls in the current unit can set up an elaboration
30457 dependency on the named unit, as needed.
30458 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
30459 subprogram as well as for subprograms declared within a package.
30460 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
30463 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
30464 to z) to avoid some instances of duplication for Wide_Wide packages.
30466 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
30469 * scn.adb: Char_Literal_Value field is now a Uint
30471 * scng.adb: Significant rewrite to handle new Ada 2005 features
30472 allowing wide and wide wide characters in program text, e.g. for
30473 identifiers, as described in AI-285.
30474 (Set_Reserved): New procedure, makes setting up keywords cleaner.
30475 (Initialize_Scanner): Register the new reserved words of Ada 2005.
30476 (Scan): Give support to the new reserved words.
30478 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
30479 warning notifying that interface, overriding, and synchronized are
30480 new reserved words.
30481 (P_Pragma): Allow the use of the new reserved word "interface" as
30484 * gnatls.adb, gnatbind.adb,
30485 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
30486 identifiers named "interface" to "SAL_Interface".
30488 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
30489 (Structured Exception handling).
30490 (Gen_Main_C): Idem.
30493 (Gen_Main_Ada): Set the default exit code if specified.
30494 (Gen_Main_C): Likewise.
30496 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
30497 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
30499 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
30502 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
30503 has a collision with the new Ada 2005 "interface" reserved word.
30505 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
30506 generate a warning notifying that interface, overriding, and
30507 synchronized are new reserved words.
30509 * scans.ads (Token_Type): Addition of the tokens corresponding to the
30510 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
30511 and Tok_Synchronized.
30513 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
30514 "dispatching" rather than "primitive" operations, since dispatching
30515 calls are now allowed to abstract formal subprograms (which are not
30517 Char_Literal_Value field is now a Uint
30518 (Resolve_Slice): If the prefix is an access to an unconstrained array,
30519 compute the actual subtype of the designated object to impose the proper
30521 (Resolve_Selected_Component): Do not insert an access check if the
30522 prefix is an access type: such a node is expanded into an explicit
30523 dereference, on which the access check is performed anyway. Removes
30524 expensive duplicate checks.
30525 (Resolve_Call): Use new flag Is_Obsolescent and field
30526 Obsolescent_Warning so that pragma Obsolescent works on library
30528 Add support for wide wide character type
30529 (Resolve_Allocator): Replace the error message on wrong null-exclusion
30530 value by a warning message.
30531 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
30532 as fixed-point, and one of the operands is non-static and universal, it
30533 can only be an illegal exponentiation operation, in which case there is
30534 no real value to retrieve.
30536 * exp_strm.adb: Add support for wide wide character type
30537 (Build_Elementary_Input_Call): Compute the size of the stream element by
30538 querying the rep chain to find the Stream_Attribute attribute value.
30539 (Build_Elementary_Write_Call): Ditto.
30541 * sem_aggr.adb: Char_Literal_Value field is now a Uint
30542 Add support for wide wide character type
30543 Replace the error messages on wrong null-exclusion value by warnings
30544 as described in Ada 2005.
30545 (Resolve_Extension_Aggregate): Document the fact that the error
30546 message on class-wide expressions in extensions aggregates.
30548 * sem_case.adb: Add support for wide wide character type
30550 * sem_ch13.adb: Add support for wide wide character type
30551 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
30553 * sem_ch3.adb: Add support for wide wide character type
30554 (Process_Subtype): If constraint is illegal for the type, set Ekind of
30555 now-useless Itype, to prevent cascaded errors on a compiler built
30558 * sem_ch8.adb: Add with and use of Sem_Disp.
30559 (Analyze_Subprogram_Renaming): Replace unclean uses of
30560 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
30561 of Corresponding_Spec to Empty).
30562 (Attribute_Renaming): Replace use of Corresponding_Spec with
30563 Corresponding_ Formal_Spec and simplify condition.
30564 (Use_One_Package): Check that scope of homonym of identifier is defined,
30565 before checking whether it is a wrapper package.
30566 Add support for wide wide character type
30568 * sem_eval.adb: Add support for wide wide character type.
30569 (Eval_Arithmetic_Op): Check for compile time known signed integer
30570 overflow in the non-static case.
30571 (Subtypes_Statically_Match): A formal scalar type and its base type do
30572 not statically match.
30574 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
30575 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
30577 (Unit_Declaration_Node): Ditto.
30578 (Is_Variable_Prefix): For the case of an indexed component whose prefix
30579 has a packed array type, the prefix has been rewritten into a type
30580 conversion. Determine variable-ness from the converted expression.
30581 Handle wide wide character cases.
30583 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
30585 * stringt.ads, stringt.adb: Handle full UTF-32 range.
30586 Remove ["0A"] from comment, since it can look like a line terminator.
30587 Currently we don't permit this, but this is under discussion by the
30588 ARG, and it is easy enough to use a different example.
30590 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
30591 handling UTF-32 encoding for wide wide character.
30592 Implement new brackets coding ["hhhhhhhh"]
30593 Add UTF-8 encodings for full UTF-32 range
30595 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
30597 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
30598 bit range Add full UTF-32 support.
30599 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
30600 notify that constraint error will be raised at run-time
30601 because a null value is assigned to a null-excluding object.
30602 Remove some obsolete declarations and make Char_Code
30605 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
30606 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
30607 Rcheck subprograms.
30609 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
30610 wrong null-exclusion value by a warning message.
30611 (Enable_Range_Check): Do range check if the prefix is an
30612 explicit dereference whose designated object is an unconstrained array.
30613 Current algorithm for removing duplicate checks is over-eager in this
30616 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
30617 null-exclusion value by a warning message
30619 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
30620 completely. Add support for Uint2 field
30622 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
30623 exp_prag.adb: Char_Literal_Value field is now a Uint.
30625 * exp_util.adb (Insert_Actions): Replace
30626 N_Formal_Subprogram_Declaration by
30627 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
30628 Char_Literal_Value field is now a Uint.
30630 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
30631 defined for subprogram renaming declarations. When set, the field
30632 indicates the defining entity of a corresponding formal subprogram
30633 when the renaming corresponds to a formal subprogram association in an
30635 (Set_Corresponding_Formal_Spec): New procedure to return
30636 Corresponding_Formal_Spec field.
30637 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
30638 (which is now a subtype).
30639 Char_Literal_Value field is now a Uint
30641 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
30642 pointer to the base of the dispatch table.
30643 Minor changes to comments.
30644 (Controlling_Type): New function for determining the tagged type
30645 associated with a tagged primitive subprogram.
30646 (Expand_Dispatching_Call): Add support for a controlling actual that is
30647 directly a value of type Ada.Tag rather than a tagged object.
30649 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
30650 describing the new layout.
30651 (Dispatch_Table): The expander computes the actual array size, allocates
30652 the Dispatch_Table record accordingly, and generates code that displaces
30653 the base of the record after the Typeinfo_Ptr component. The access to
30654 these components is done by means of local functions.
30655 (Offset_To_Top): New function.
30656 (Typeinfo_Ptr): New function.
30657 (Get_TSD): Modified to access the new position of the TSD.
30658 (Set_TSD): Modified to save the TSD in its new position.
30660 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
30661 case of formal abstract subprograms. Add check and message for -gnat05.
30664 * sem_ch12.adb: Add with and use for Sem_Disp.
30665 (Analyze_Associations): Minor change from "=" to "in" for use of
30666 N_Formal_Subtype_Declaration (which is now a subtype).
30667 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
30668 N_Formal_Subtype_Declaration (which is now a subtype).
30669 (Analyze_Formal_Subprogram): Add handling for
30670 N_Formal_Abstract_Subprogram, marking the formal as abstract and
30671 dispatching, setting the controlling status of the formal parameters
30672 and result, and issuing an error if there is no controlling type for
30673 the formal subprogram.
30674 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
30675 which is an unclean use of that field, we set the new field
30676 Corresponding_Formal_Spec to make the formal subprogram available to
30677 processing in Analyze_Subprogram_Declaration.
30678 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
30679 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
30680 Constrained, so that it is is does not statically match its anonymous
30683 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
30684 abstract formal subprograms in error check for functions returning
30685 abstract types. Set scope of new designator for
30686 a parameterless subprogram, so that it is available when checking the
30687 body for nested subprograms, before full analysis of said body.
30688 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
30689 subprogram only if inner one comes from source.
30690 (Analyze_Function_Call): If the call is given in object notation, the
30691 analysis of the name rewrites the node and analyzes it with the proper
30692 argument list. After analyzing the name, if the call has been rewritten
30693 and the result type is set, no further analysis is needed.
30694 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
30695 mark in function specification, in a context where the formals are
30696 visible and hide outer homographs.
30698 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
30699 as the tagged type for the cases of abstract formal subprograms and
30700 renamings of those. Clean up spec comments.
30701 (Check_Dispatching_Context): Add error message to indicate "abstract
30702 procedure", covering the case of a call to a formal abstract procedure
30703 that has statically tagged operands.
30704 (Check_Dispatching_Call): Check for the case of an actual given by
30705 a tag-indeterminate function call whose type is an ancestor of the
30706 containing call's associated tagged type. This situation can occur
30707 for inherited primitives with function defaults. In this case we
30708 use the tagged type's tag directly as the controlling argument for
30710 (Expand_Call): Name change on call to Expand_Dispatch_Call.
30712 * sprint.adb (Sprint_Node_Actual): Split
30713 N_Formal_Subprogram_Declaration into two alternatives for the new
30714 cases N_Formal_Abstract_Subprogram_Declaration and
30715 N_Formal_Concrete_Subprogram_Declaration.
30716 Char_Literal_Value field is now a Uint.
30718 * trans.c: Get rid of junk Uint2 reference.
30719 Char_Literal_Value field is now a Uint.
30720 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
30721 (gigi): Correct third arg to gimplify_body.
30723 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
30724 (TYPE_LANG_FLAG_0): Check for record or union.
30726 * treepr.adb: Char_Literal_Value field is now a Uint
30728 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
30731 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
30732 Add full UTF-32 support
30733 Char_Code is now 32 bits
30735 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
30736 wide character UTF_32 line terminators.
30737 Initialize Main_Source_File to avoid error when no main
30740 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
30741 (Main_Source_File) when no main source has been loaded, to avoid
30744 2005-02-09 Robert Dewar <dewar@adacore.com>
30746 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
30747 Fix name of Set routine
30749 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
30752 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
30753 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
30756 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
30757 forms of Get_Line subprograms for AI-301.
30759 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
30760 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
30761 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
30762 a-stwima.ads: Minor reformatting.
30764 2005-02-09 Doug Rupp <rupp@adacore.com>
30765 Thomas Quinot <quinot@adacore.com>
30767 * adaint.c, adaint.h
30768 [VMS] (to_ptr32): New function.
30769 (MAYBE_TO_PTR32): New macro.
30770 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
30772 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
30773 [VMS] (#define fork()): Remove since unneccessary.
30774 (__gnat_set_close_on_exec): New routine to support
30775 GNAT.OS_Lib.Set_Close_On_Exec.
30777 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
30778 the parent side as close-on-exec so that they are not inherited by the
30781 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
30782 set or clear the FD_CLOEXEC flag on a file descriptor.
30784 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
30785 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30789 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
30790 on the field if Pragma Component_Alignment (Storage_Unit).
30791 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
30792 side-effects as if it were a constant; also make SAVE_EXPR to protect
30794 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
30796 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
30797 (components_to_record): Test it.
30798 Fix improper usage of REFERENCE_CLASS_P.
30800 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
30803 * utils2.c: Minor reformatting.
30805 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
30806 handle other cases like RECORD_TYPE.
30808 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
30810 2005-02-09 Ed Schonberg <schonberg@adacore.com>
30812 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
30813 component of an array of arrays in an assignment context, and the
30814 aggregate has component associations that require sliding on
30815 assignment, force reanalysis of the aggregate to generate a temporary
30816 before the assignment.
30817 (Must_Slide): Make global to the package, for use in Gen_Assign.
30819 2005-02-09 Ed Schonberg <schonberg@adacore.com>
30821 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
30822 unchecked union with no inferable discriminants, return a
30823 Raise_Program_Error node, rather than inserting it at the point the
30825 (Expand_Record_Equality, Component_Equality): Handle properly the case
30826 where some subcomponent is an unchecked union whose generated equality
30827 code raises program error.
30829 2005-02-09 Doug Rupp <rupp@adacore.com>
30831 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
30832 [VMS] (#define exit hack): Remove.
30834 2005-02-09 Pascal Obry <obry@adacore.com>
30835 Arnaud Charlet <charlet@adacore.com>
30837 * init.c (__gnat_initialize): Add a new parameter eh which contains the
30838 address of the exception registration. The Win32 version of this
30839 routine calls __gnat_install_SEH_handler() to initialize the SEH
30840 (Structured Exception Handling) handler.
30841 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
30842 SEH (Structured Exception Handling) now.
30843 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
30844 (__gnat_initialize for ppc-vxworks): Adjust comments and the
30845 preprocessor condition protecting the call to the extra eh setup
30846 subprogram, which is only available for the ppc target.
30847 (__gnat_clear_exception_count): replaced reference to
30848 variable taskIdCurrent by call to taskIdSelf(), cleaner.
30850 * seh_init.c: New file.
30852 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
30853 (GNATBIND_OBJS): Idem.
30855 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
30856 routine takes a new parameter (a pointer to the exception registration
30857 for the SEH (Structured Exception Handling) support.
30859 * raise.h: (__gnat_install_SEH_handler): New prototype.
30860 Update copyright notice.
30862 * s-tassta.adb (Task_Wrapper): Declare the exception registration
30863 record and initialize it by calling __gnat_install_SEH_handler.
30865 2005-02-09 Vincent Celier <celier@adacore.com>
30867 * make.adb (Gnatmake): Do not fail when the main project has no object
30870 2005-02-09 Doug Rupp <rupp@adacore.com>
30872 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
30873 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
30874 [VMS]: Add translations for g-enblsp.adb.
30876 * s-asthan-vms.adb: Removed.
30877 * s-asthan-vms-alpha.adb: Added.
30879 2005-02-09 Pascal Obry <obry@adacore.com>
30881 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
30882 (LIBGNAT_OBJS): Add seh_init.o.
30884 2005-02-09 Arnaud Charlet <charlet@adacore.com>
30887 * Makefile.in: Link all gnat tools with -static-libgcc, since
30888 -shared-libgcc is now used by default on some systems (e.g. linux with
30890 Remove references to Makefile.prolog/generic, no longer used.
30892 2005-02-09 Vincent Celier <celier@adacore.com>
30894 * prj-makr.adb (Process_Directory): Put file name in canonical case
30895 before matching against the patterns.
30896 If gnatname has been invoked as <prefix>-gnatname
30897 then invoke the compiler as <prefix>-gcc, not just "gcc".
30899 2005-02-09 Ed Schonberg <schonberg@adacore.com>
30901 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
30902 with expansion disabled. The actual subtype is needed among other
30903 places when the selected component appears in the context of a loop
30904 bound, and denotes a packed array.
30905 (Operator_Check): Always use the first subtype in the
30906 error message, to avoid the appearance of internal base types.
30907 (Transform_Object_Operation): Copy each actual in full
30908 to the parameter associations of the constructed call, rather than
30909 using the shallow copy mechanism of New_Copy_List. This ensures that
30910 the chaining of named associations is done properly.
30911 (Complete_Object_Operation): Rewrite node, rather than
30912 replacing it, so that we can trace back to the original selected
30915 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
30916 and calls that use object notation, if the called function is not
30917 declared in a withed unit, place the elaboration constraint on the
30918 unit in the context that makes the function accessible.
30919 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
30920 imposes an elaboration constraint between two packages.
30922 2005-02-09 Ed Schonberg <schonberg@adacore.com>
30924 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
30925 views of a private type after handling its private dependents, to
30926 maintain proper stack discipline between entry and exit from the
30929 2005-02-09 Cyrille Comar <comar@adacore.com>
30931 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
30932 Minor reformatting.
30934 2005-02-09 Arnaud Charlet <charlet@adacore.com>
30936 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
30937 fields for foreign threads.
30939 2005-02-09 Doug Rupp <rupp@adacore.com>
30941 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
30942 recursion warnings when compiled with -gnatdm.
30944 2005-02-09 Robert Dewar <dewar@adacore.com>
30946 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
30947 Slight fix to documentation of -gnaty with no parameters
30949 * xr_tabls.ads: Add ??? comment for missing overall comment
30951 * xsinfo.adb: Make default file name be sinfo.h, since this is what
30952 we now use by default.
30954 * xsnames.adb: Adjust end of file test to look for five space followed
30955 by '#' instead of six spaces. The format of xsnames.adb was modified
30956 in the last update.
30958 * a-numeri.ads: Add reference to AI-388 for greek letter pi
30961 * clean.adb: Minor reformatting.
30963 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
30964 gnatname.adb: Minor reformatting
30965 Add 2005 to copyright output when utility is run
30967 * csets.adb: Eliminate obsolete comment
30969 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
30972 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
30974 2005-02-09 Sergey Rybin <rybin@adacore.com>
30976 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
30977 the difference between compact and incompact layout and add the record
30978 representation clause to the example illustrating different layouts.
30979 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
30980 component clauses").
30982 2005-02-09 Florian Villoing <villoing@adacore.com>
30984 * gnat_ugn.texi: Fix typos.
30985 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
30987 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
30988 in the generated documentation.
30990 2005-02-09 Arnaud Charlet <charlet@adacore.com>
30992 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
30994 Update linker wrapper when linking with non GNU C++.
30996 2005-02-09 Pascal Obry <obry@adacore.com>
30999 Document the procedure to debug the DllMain routine on Windows.
31000 Add note about -funwind-tables and mixed Ada and C/C++ programming in
31002 Document new BIND qualifer /RETURN_CODES=VMS.
31004 2005-02-09 Ben Brosgol <brosgol@adacore.com>
31006 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
31007 Edited gnatmetric chapter
31009 2005-02-09 Robert Dewar <dewar@adacore.com>
31012 Changes to document new wide wide character support
31014 Update documentation on Normalize_Scalars and Initialize_Scalars
31016 2005-02-09 Pascal Obry <obry@adacore.com>
31018 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
31020 2005-02-09 Jose Ruiz <ruiz@adacore.com>
31022 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
31023 from the VxWorks kernel) that is needed for getting the active
31024 priority of the different tasks.
31026 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
31027 Use a pragma Elaborate_Body in the spec file instead.
31028 Noticed by code reading.
31030 2005-02-09 Thomas Quinot <quinot@adacore.com>
31032 * exp_util.ads: Minor correction in comment.
31034 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31036 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
31037 since this procedure is now too complex to be worth inlining.
31039 2005-02-09 Richard Henderson <rth@redhat.com>
31041 * utils.c (gnat_define_builtin): Remove.
31042 (gnat_install_builtins): Use build_common_builtin_nodes.
31044 2005-02-09 Arnaud Charlet <charlet@adacore.com>
31046 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31047 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
31048 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
31049 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
31050 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
31051 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
31052 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
31053 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
31054 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
31055 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
31056 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
31057 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
31058 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
31059 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
31060 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
31061 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
31062 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
31063 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
31064 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
31065 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
31066 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
31067 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
31068 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
31069 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
31070 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
31071 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
31072 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
31073 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
31074 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
31075 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
31076 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
31077 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
31078 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
31079 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
31082 2005-01-27 Laurent Guerby <laurent@guerby.net>
31084 * Makefile.in: Fix a-intnam.ads from previous commit,
31085 add 2005 to copyright.
31086 * a-intman-rtems.ads: Renamed to...
31087 * a-intnam-rtems.ads:
31089 2005-01-27 Laurent Guerby <laurent@guerby.net>
31091 * Makefile.in: Rename GNAT RTEMS specific files.
31092 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
31093 5rosinte.ads, 5rparame.adb: Replaced by files below.
31094 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
31095 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
31097 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
31098 Laurent Guerby <laurent@guerby.net>
31101 * 5rosinte.ads: Add No_Key constant.
31102 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
31103 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
31105 2005-01-26 Laurent Guerby <laurent@guerby.net>
31108 * i-cobol.adb (Valid_Numeric): Handle zero length case.
31110 2005-01-20 Richard Henderson <rth@redhat.com>
31112 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
31113 a-intnam-linux.ads and system-linux-alpha.ads.
31114 * a-intnam-linux-alpha.ads: Remove file.
31115 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
31116 * system-linux-alpha.ads: New file.
31118 2005-01-18 Jakub Jelinek <jakub@redhat.com>
31121 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
31122 set to the new string.
31124 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
31126 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
31129 2005-01-18 Richard Henderson <rth@redhat.com>
31131 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
31132 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
31134 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
31136 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
31138 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
31139 (GCC_ZCX_Support): Likewise.
31141 2005-01-11 Bastian Blank <waldi@debian.org>
31143 * system-linux-s390.ads: Define Preallocated_Stacks.
31144 * system-linux-s390x.ads: Likewise.
31146 2005-01-04 Arnaud Charlet <charlet@adacore.com>
31148 * gnat_ugn.texi: Fix texi errors with null variables.
31150 2005-01-03 Thomas Quinot <quinot@adacore.com>
31152 * gen-soccon.c: New utility program to generate g-soccon.ads
31155 * socket.c, gsocket.h: Split inclusion of system header files into a
31156 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
31158 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
31159 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
31160 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
31161 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
31162 should not be edited by hand anymore, but should be regenerated using
31165 2005-01-03 Robert Dewar <dewar@adacore.com>
31166 Ed Schonberg <schonberg@adacore.com>
31167 Vincent Celier <celier@adacore.com>
31169 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
31170 on/off, since this is an obsolescent feature, for which we now generate
31173 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
31174 warning mode is set and obsolescent usage of this attribute occurs.
31175 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
31176 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
31177 predates, and partly motivates, the adoption of the AI.
31178 Implement new Ada 2005 attribute Mod
31180 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
31183 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
31185 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
31186 pragma restrictions.
31187 New entry for Ada 2005 attribute Mod.
31190 Add recognition of new pragma Restrictions No_Dependence
31191 Recognize restriction No_Obsolescent_Features at parse time
31193 * bcheck.adb: Add circuitry for checking for consistency of
31194 No_Dependence restrictions.
31196 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
31199 * restrict.ads, restrict.adb: Add subprograms to deal with
31200 No_Dependence restrictions.
31202 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
31205 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
31206 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
31208 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
31209 dummy parameter to scng instantiation.
31210 Needed for new restriction No_Obsolescent_Features
31212 * scn.adb: (Obsolescent_Check): New procedure
31213 Needed for new restriction No_Obsolescent_Features
31215 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
31216 specified by AI-285, needed for implementation of AI-388 (adding greek
31217 pi to Ada.Numerics).
31218 Add new generic formal to scng, needed for new restriction
31219 No_Obsolescent_Features.
31221 * s-rident.ads: Add new restriction No_Obsolescent_Features.
31223 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
31224 restrictions lines.
31225 (Scan_ALI): When finding an unexpected character on an R line, raise
31226 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
31227 Ignore_Errors is True, default restrictions are set and scanning of the
31228 ALI file continues with the next line. Also, when Bad_R_Line is raised
31229 and Ignore_Errors is True, skip to the end of le line.
31231 * sem_ch10.adb: Check that explicit with's do not violate
31232 No_Dependence restrictions.
31233 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
31234 illegal context clauses containing child units of instance.
31236 * sem_prag.adb: Processing and checking for new No_Dependence
31238 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
31239 analyze and check the External argument.
31241 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
31243 2005-01-03 Robert Dewar <dewar@adacore.com>
31245 * atree.adb: Add a fifth component to entities
31246 This allows us to add 32 flags and four new fields
31248 * atree.ads: Add a fifth component to entities
31249 This allows us to add 32 flags and four new fields
31251 * einfo.ads, einfo.adb: Document new fields and new flags now available
31252 Add routines for printing new fields
31254 * treepr.adb: Call routines to print out additional fields if present
31256 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31258 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
31259 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
31261 * Makefile.in: Add support to build shared Ada libraries on solaris x86
31262 Remove gpr2make, replaced by gprmake.
31263 Remove references to gnatmem and libaddr2line.
31264 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
31265 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
31266 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
31267 a-numaux-darwin.ads and a-numaux-darwin.adb
31268 Enable mlib-tgt-lynxos.adb on lynxos.
31270 * Make-lang.in: Remove rules for gpr2make.
31271 When generating sdefault.adb, do not call Relocate_Path
31272 on S3 for function Target_Name, as it is not a path.
31273 Remove references to gnatmem and libaddr2line.
31275 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
31278 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
31280 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
31281 address is incompatible with its base type alignment constraints when
31282 this can be decided statically.
31284 2005-01-03 Olivier Hainque <hainque@adacore.com>
31286 * decl.c (compatible_signatures_p): New function. The intended purpose
31287 is to check if two function signatures for a call-site and a callee are
31288 compatible enough for the call to be valid. The underlying purpose is
31289 to check if a call to a mapped builtin is using the right interface.
31290 The current code actually does not check antyhing - this a placeholder
31291 for future refinements.
31292 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
31293 builtin calls for convention Intrinsic.
31295 * gigi.h (builtin_decl_for): Declare (new function).
31297 * utils.c (gnat_install_builtins): Install the target specific builtins.
31298 (builtin_decl_for): New function, provide a dummy body for now.
31300 2005-01-03 Geert Bosch <bosch@adacore.com>
31302 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
31303 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
31304 (Pred): Implement in terms of Succ.
31306 * trans.c (convert_with_check): Reimplement conversion of float to
31309 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31310 Vincent Celier <celier@adacore.com>
31312 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
31313 bounds can be negative, and must be declared Int, not Nat.
31315 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
31316 array is checked after using the index in the array.
31318 * makegpr.adb (Add_Switches): Check if there is a package for the
31319 processor. If there is no package, do not look for switches.
31321 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31323 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
31324 generation of predefined stream operations (specs and bodies) should
31325 proceed. Under various restrictions these subprograms must not be
31328 2005-01-03 Thomas Quinot <quinot@adacore.com>
31331 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
31332 amount of PCS-specific code in RACW stubs generation.
31333 (Copy_Specification): Set Etype on copied formal parameter entities, as
31334 this information is needed for PolyORB stubs generation.
31335 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
31336 variable Dynamic_Async.
31337 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
31338 (Build_RPC_Receiver_Specification): Make generic again, as recent
31339 changes have allowed RPC receivers to have the same profile for both
31340 variants of the PCS.
31341 Reorganise RPC receiver generation to reduce differences between the
31342 structure of GARLIC and PolyORB RPC receivers.
31343 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
31345 Simplify elaboration code for RCI packages.
31347 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
31348 generation to reduce differences between the structure of GARLIC and
31349 PolyORB RPC receivers.
31351 * s-stratt.adb: Fix typo in comment.
31353 2005-01-03 Thomas Quinot <quinot@adacore.com>
31355 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
31356 copied from Make_Init_Call).
31358 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
31359 reads and assignments on a temporary variable declared with appropriate
31362 2005-01-03 Robert Dewar <dewar@adacore.com>
31364 * i-c.adb (To_C): Raise CE if string is null and Append_Null
31366 2005-01-03 Robert Dewar <dewar@adacore.com>
31368 * i-cstrin.adb (Update): Do not append a null in form called with a
31369 String. This avoids unintended behavior.
31371 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31374 * init.c: Fix warnings on Free BSD section.
31376 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31379 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
31382 2005-01-03 Vincent Celier <celier@adacore.com>
31384 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
31385 libraries when Unique_Compile is True (-u switch).
31388 2005-01-03 Robert Dewar <dewar@adacore.com>
31390 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
31391 upper case letter or underscore after W, as allowed by spec.
31393 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31395 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
31396 darwin port by using proper type definitions from header files.
31397 Use SIGTERM instead of SIGABRT for SIGADAABORT.
31399 2005-01-03 Robert Dewar <dewar@adacore.com>
31401 * par.adb: Enhance error message handling for configuration file
31404 2005-01-03 Robert Dewar <dewar@adacore.com>
31406 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
31407 removed during the previous update (test properly for case of dividing
31408 largest negative number by -1, which generates overflow).
31410 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31411 Sergey Rybin <rybin@adacore.com>
31413 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
31414 to use as the defining identifier for a formal package.
31415 (Remove_Parent): If the instance takes place within (an instance of)
31416 a sibling, preserve private declarations of common parent.
31418 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31420 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
31421 to determine whether one of the operands is a fixed-point type for
31422 which a user-defined multiplication or division operation might be
31425 * sem_res.adb (Valid_Conversion): The legality rules for conversions
31426 of access types are symmetric in Ada 2005: either designated type can
31429 2005-01-03 Vincent Celier <celier@adacore.com>
31431 * s-fileio.adb (Temp_File_Record): Change length of string component
31432 Name from L_tmpnam + 1 to max_path_len + 1.
31434 2005-01-03 Arnaud Charlet <charlet@adacore.com>
31436 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
31437 Self_Id.Deferral_Level = 0.
31438 (Do_Pending_Action): Move this function to the spec.
31440 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
31441 Do_Pending_Action explicitely when needed, in case we're using
31442 No_Abort restrictions.
31444 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
31445 deferral level since it will not get changed by the generated code.
31446 Keeping a default value of 1 would prevent some operations (e.g.
31447 select or delay) to proceed successfully.
31449 2005-01-03 Ben Brosgol <brosgol@adacore.com>
31450 Robert Dewar <dewar@adacore.com>
31451 Cyrille Comar <comar@adacore.com>
31453 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
31454 porting guide chapter (vms version).
31455 Revised doc title (removed "for native platforms") and subtitle.
31456 Add discussion on warning flag for obsolescent features. First we
31457 note that it applies to obsolete GNAT features, which was previously
31458 omitted. Second we contrast the behavior with that of the new
31459 Ada 2005 AI-368 restriction No_Obsolescent_Features.
31460 Preliminary rewriting of GNAT & libraries chapter in order to take
31461 into account default project locations & new project manager
31464 2005-01-03 Robert Dewar <dewar@adacore.com>
31466 * cstand.adb (Create_Operators): Clean up format and documentation of
31467 unary and binary operator result tables. No change in code, just
31468 reformatting and addition of comments.
31470 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
31471 sem_ch2.adb: Minor reformatting
31473 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
31474 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
31475 comments for Tree_Read and Tree_Write.
31477 2005-01-03 Pascal Obry <obry@adacore.com>
31479 * exp_attr.ads: Minor reformatting.
31481 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
31483 * comperr.adb (Compiler_Abort): Add specialized message for GAP
31486 2005-01-03 Ed Schonberg <schonberg@adacore.com>
31488 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
31489 whether the ancestor type is private, as may be the case with nested
31492 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
31495 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
31497 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
31499 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
31500 * utils2.c (build_unary_op): Likewise.
31502 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31504 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
31506 2004-12-19 Richard Henderson <rth@redhat.com>
31508 * trans.c (gigi): Update gimplify_body call.
31510 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
31512 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
31514 2004-12-07 Ed Falis <falis@adacore.com>
31516 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
31517 current task being suspended.
31519 * init.c (__gnat_clear_exception): added to reset VxWorks exception
31521 (__gnat_map_signal): removed test for current task being suspended.
31523 2004-12-07 Gary Dismukes <dismukes@adacore.com>
31525 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
31526 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
31527 targets (such as AAMP).
31529 2004-12-07 Ed Schonberg <schonberg@adacore.com>
31531 * atree.adb (Visit_Itype): Create a new name for the generated itype,
31532 because the back-end may otherwise treat it as a redefinition of the
31535 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
31537 * back_end.adb (Scan_Back_End_Switches): Accept --param.
31539 * lang-specs.h: Accept --param.
31541 2004-12-07 Vincent Celier <celier@adacore.com>
31543 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
31544 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
31545 Current_Body_Suffix => Ada_Body_Suffix).
31546 Take into account Externally_Built attribute.
31548 * clean.adb (In_Extension_Chain): Always return False when one of the
31549 parameter is No_Project.
31550 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
31551 Ada_Language_Index).
31552 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
31553 Process_Languages for procedure Parse).
31555 * gnatcmd.adb (Carg_Switches): New table.
31556 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
31557 Adapt to name changes in package Prj (Current_Spec_Suffix =>
31558 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
31560 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
31561 Header_Num and function Hash are now declared in package Prj,
31564 * prj.adb (Suffix_Of): New function.
31565 (Set (Suffix)): New procedure.
31566 (Hash): One function moved from Prj.Com
31567 (Is_Present, Language_Processing_Data_Of): New functions
31568 (Set): Two new procedures
31569 (Add_Language_Name, Display_Language_Name): New procedures
31571 * prj.ads: (Suffix_Of): New function
31572 (Set (Suffix)): New procedure
31573 Add several types and tables for multi-language support.
31574 (Header_Num): Type moved from Prj.Com
31575 (Hash): Two functions moved from Prj.Com
31576 (Is_Present, Language_Processing_Data_Of): New functions
31577 (Set): Two new procedures
31578 (Add_Language_Name, Display_Language_Name): New procedures
31579 (Naming): Component name changes:
31580 Current_Spec_Suffix => Ada_Spec_Suffix,
31581 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
31582 Impl_Suffixes, Supp_Suffixes.
31583 (Project_Data): New components: Externally_Built, Supp_Languages,
31584 First_Language_Processing, Supp_Language_Processing, Default_Linker,
31585 Default_Linker_Path.
31587 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
31588 new package Language_Processing with its attributes (Compiler_Driver,
31589 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
31590 Binder_Driver, Default_Linker).
31592 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
31593 (Header_Num): Type moved to package Prj
31595 * prj-env.adb: Adapt to name changes in package Prj
31596 (Current_Spec_Suffix => Ada_Spec_Suffix,
31597 Current_Body_Suffix => Ada_Body_Suffix).
31599 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
31600 default to the project path, except the "-" is one of the directories
31601 in env var ADA_PROJECT_PATH.
31602 (Current_Project_Path): Global variable, replacing Project_Path
31603 that was in the body of Prj.Part.
31604 (Project_Path): New function
31605 (Set_Project_Path): New procedure
31606 Initialize Current_Project_Path during elaboration of the package
31607 Remove dependency on Prj.Com, no longer needed
31609 * prj-ext.ads (Project_Path): New function
31610 (Set_Project_Path): New procedure
31612 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
31613 suffix is defined for language <lang>.
31614 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
31615 accessing directly the components of Naming.
31616 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
31617 Reorganise of this package.
31618 Break procedure Check in several procedures.
31620 * prj-nmsc.ads: Replace all procedures (Ada_Check,
31621 Other_Languages_Check and Language_Independent_Check) with a single
31624 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
31625 Process_Languages, no longer needed.
31627 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
31628 Current_Project_Path.
31629 Remove elaboration code, moved to the body of Prj.Ext
31630 Use new function Prj.Ext.Project_Path instead of old variable
31632 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
31633 When comparing with project paths on the stack, first put the resolved
31634 path in canonical case.
31635 (Parse_Single_Project): Set the path name of the project file in the
31636 tree to the normalized path.
31638 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
31639 parameter Process_Languages, no longer needed.
31640 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
31641 Other_Languages_Check.
31643 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
31644 to store the resolved canonical path of the project file.
31645 Remove dependency to Prj.Com, no longer needed
31647 * prj-util.adb: Adapt to name changes in package Prj
31648 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
31651 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
31652 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
31653 Externally_Built, Include_Option, Language_Processing.
31655 * makegpr.adb: Numerous changes due to changes in packages
31658 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
31659 default to the project path, except whe "-" is one of the directories
31660 in env var ADA_PROJECT_PATH.
31661 (Gnatls): In verbose mode, add the new section "Project Search Path:"
31663 2004-12-07 Robert Dewar <dewar@adacore.com>
31665 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
31667 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
31670 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
31671 flag. No longer needed now that we handle this in gnat1drv.adb.
31673 * repinfo.ads: Minor reformatting
31675 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31676 Olivier Hainque <hainque@adacore.com>
31677 Eric Botcazou <ebotcazou@adacore.com>
31679 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
31680 TYPE_SIZE_UNIT of result type if SIZE is not specified.
31681 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
31682 of a bitfield, which we know is useless and causes trouble because of
31683 alignment implications.
31685 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
31687 (process_attributes): Clear DECL_COMMON again when a section attribute
31689 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
31690 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
31691 (create_field_decl): Special case ADDRESSABLE negative to mean
31692 "no bitfield creation", to be used by make_aligning_type. Don't
31693 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
31694 fields claimed addressable still have to be bitfields. Use
31695 value_factor_p instead of a raw binop construction to check for the
31696 position's alignment.
31698 2004-12-07 Geert Bosch <bosch@adacore.com>
31700 * eval_fat.adb: Revert previous change.
31702 2004-12-07 Thomas Quinot <quinot@adacore.com>
31703 Ed Schonberg <schonberg@adacore.com>
31705 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
31706 with an implicit dereference as its prefix, use
31707 Insert_Explicit_Dereference instead of merely rewriting the prefix into
31708 an explicit dereference. This ensures that a reference to the original
31709 prefix is generated, if appropriate.
31711 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
31712 dereference is rewritten to an explicit one, generate a reference to
31713 the entity denoted by its prefix using the original prefix node, so
31714 the dereference can be properly recorded as a read of the denoted
31715 access value, if appropriate.
31717 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
31718 emitting 'assigned but never read' warning on a variable on the basis
31719 that it has an access type.
31720 (Check_References): Emit unreferenced warning when the scope is a
31723 2004-12-07 Robert Dewar <dewar@adacore.com>
31724 Ed Schonberg <schonberg@adacore.com>
31726 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
31729 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
31730 leaving call unchanged.
31731 This deals with the case where the pragma Import specified
31732 an external name, to be handled by the back end.
31734 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
31735 subprogram which is Imported with convention Intrinsic if an
31736 External_Name argument is specified.
31737 (Process_Import_Or_Interface): Properly diagnose link name argument.
31738 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
31739 with Sem_Ch6.Cannot_Inline.
31740 (Process_Inline): Provide separate warning for inapplicable inline
31742 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
31743 treatment is uniform on different targets.
31745 2004-12-07 Ed Schonberg <schonberg@adacore.com>
31747 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
31748 construct is rewritten, preserve end label to permit source navigation.
31750 2004-12-07 Thomas Quinot <quinot@adacore.com>
31752 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
31753 Specific_Build_Stub_Target): New subprograms.
31754 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
31755 the PCS implementation used, using the above PCS-customized subprograms.
31756 Minor reformatting.
31757 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
31758 for generation of DSA code targeted to the PolyORB PCS.
31759 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
31760 implementation of the partition communication subsystem in ancillary
31762 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
31763 PolyORB_Support.Build_Stub_Type): New subrograms containing the
31764 PCS-specific part of Add_Stub_Type.
31765 (Insert_Partition_Check): Use runtime library function to perform
31768 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
31769 (RE_Same_Partition): New entity, from s-parint.
31771 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
31773 2004-12-07 Gary Dismukes <dismukes@adacore.com>
31775 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
31776 Output the copyright message on a separate line from the version
31779 2004-12-07 Joel Brobecker <brobecker@adacore.com>
31781 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
31782 compile-time warning.
31784 2004-12-07 Robert Dewar <dewar@adacore.com>
31786 * g-regpat.adb: (Match): Change a misuse of or to or else
31788 2004-12-07 Ed Schonberg <schonberg@adacore.com>
31791 (Generate_Reference): Handle properly a reference to an entry formal,
31792 when an accept statement has a pragma Unreferenced for it.
31794 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
31795 and the Has_Pragma_Unreferenced flag for each formal before analyzing
31796 the body, to ensure that warnings are properly emitted for each accept
31797 statement of a given task entry.
31799 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
31801 * Makefile.in: Add support for foreign threads on VMS.
31803 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31805 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
31807 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
31809 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
31811 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
31813 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
31815 2004-12-07 Robert Dewar <dewar@adacore.com>
31817 * nlists.adb (Prepend_Debug): Remove parameters and nest within
31819 (Remove_Next_Debug): Same fix
31821 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
31822 maintain back pointers now, though we did not used to, and comments
31824 (Prepend): Remove pragma Inline.
31825 (Remove_Next): Same cleanup
31827 2004-12-07 Thomas Quinot <quinot@adacore.com>
31829 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
31830 used to record an implicit dereference as a read operation on its
31831 prefix when operating under -gnatc. Necessary to avoid spurious
31832 'variable assigned but never read' warnings in that mode.
31833 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
31834 is a non-overloaded implicit dereference, call the above subprogram to
31835 ensure proper recording of references.
31837 2004-12-07 Gary Dismukes <dismukes@adacore.com>
31839 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
31840 to be resolved later as part of Analyze_Iteration_Scheme's call to
31843 2004-12-07 Ed Schonberg <schonberg@adacore.com>
31845 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
31846 prefix is not a scalar type, place error message on prefix, not on
31849 2004-12-07 Bernard Banner <banner@adacore.com>
31851 * vxaddr2line.adb: Add support for x86 vxworks
31853 2004-12-07 Thomas Quinot <quinot@adacore.com>
31855 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
31856 documentation of the behaviour of these functions when passed an IP
31857 address that has no record in the system hosts database and no reverse
31860 * cstand.adb, a-tags.ads: Fix typos in comment.
31862 2004-12-07 Robert Dewar <dewar@adacore.com>
31864 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
31865 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
31866 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
31867 s-poosiz.ads: Minor reformatting
31869 * make.adb: Minor reformatting
31870 Add some ??? comments asking for more comments
31872 * s-poosiz.adb: Minor reformatting
31873 Add comments on alignment requirement
31875 * sinfo.ads: Remove obsolete comment and fix typo.
31877 2004-12-07 Vincent Celier <celier@adacore.com>
31878 Sergey Rybin <rybin@adacore.com>
31880 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
31881 Files" with the new tool and package names.
31882 Reformatting to suppress most of the warnings for line too long
31883 Document the new section "Project Search Path:" in the output of
31885 Add gnatmetric section
31887 2004-12-07 Vincent Celier <celier@adacore.com>
31889 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
31890 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
31891 and -eit to -ept. Added qualifier
31892 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
31894 2004-11-27 Andreas Schwab <schwab@suse.de>
31896 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
31898 2004-11-25 Arnaud Charlet <charlet@adacore.com>
31900 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
31901 internal implementation unit GNAT.Sockets.Thin,
31902 as their usage for sockets is non-portable (using the read and write
31903 functions from the system runtime library is fine on UNIX but won't
31904 work under Windows).
31906 * mingw32.h: Update copyright notice.
31908 2004-11-25 Arnaud Charlet <charlet@adacore.com>
31910 * ada-tree.h: Minor reformatting of previous change to avoid lines
31911 longer than 79 characters.
31913 2004-11-25 Olivier Hainque <hainque@adacore.com>
31915 * tb-gcc.c: GCC infrastructure based implementation of
31918 2004-11-24 Steven Bosscher <stevenb@suse.de>
31920 * misc.c (gnat_post_options): Don't clear
31921 flag_inline_functions.
31923 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
31926 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
31929 2004-11-21 Andreas Jaeger <aj@suse.de>
31931 * stylesw.adb: Change Style_Check_Subprogram_Order to
31932 Style_Check_Order_Subprograms.
31934 2004-11-18 Arnaud Charlet <charlet@adacore.com>
31936 * adaint.h, adaint.c
31937 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
31939 Add also a cast to kill another warning.
31940 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
31941 parameter with the priority class of the parent process instead of
31942 always using the NORMAL_PRIORITY_CLASS.
31943 (__gnat_dup): New function.
31944 (__gnat_dup2): New function.
31945 (__gnat_is_symbolic_link): Enable the effective body of this
31946 function when __APPLE__ is defined.
31948 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
31951 2004-11-18 Olivier Hainque <hainque@adacore.com>
31953 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
31954 address of which may be used to represent "others" and "all others"
31955 choices in exception tables, instead of the current harcoded
31956 (void *)0 and (void *)1.
31957 (Setup_Exception): Do nothing in the GNAT SJLJ case.
31959 * gigi.h (others_decl, all_others_decl): New decls representing the
31960 new Others_Value and All_Others_Value objects.
31961 (struct attrib): Rename "arg" component as "args", since GCC expects a
31962 list of arguments in there.
31964 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
31965 corresponding objects exported by a-exexpr, instead of hardcoded dummy
31968 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
31969 others_decl and all_others_decl instead of hardcoded dummy addresses
31970 to represent "others" and "all others" choices, which is cleaner and
31971 more flexible with respect to the possible eh pointer encoding policies.
31973 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
31974 (process_attributes): Account for the naming change of the "args"
31975 attribute list entry component.
31977 * decl.c (build_attr_list): Rename into prepend_attributes to allow
31978 cumulating attributes for different entities into a single list.
31979 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
31980 attributes for the current entity and propagate first subtype
31981 attributes to other subtypes.
31982 <E_Procedure>: Attribute arguments are attr->args and not
31983 attr->arg any more.
31984 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
31985 argument provided, as this is what GCC expects. Use NULL_TREE instead
31988 2004-11-18 Robert Dewar <dewar@adacore.com>
31990 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
31991 Minor reformatting througout (including new function specs)
31992 Add ??? comments asking for clarification.
31994 2004-11-18 Thomas Quinot <quinot@adacore.com>
31996 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
31997 incomplete duplicate implementation of this subprogram from butil.
31999 2004-11-18 Thomas Quinot <quinot@adacore.com>
32001 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
32002 procedures factors the common processing for building an RPC receiver
32003 for an RCI package or an RACW type.
32004 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
32005 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
32006 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
32008 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
32010 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
32012 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
32013 distribution subprogram identifiers that are either subprogram numbers
32015 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
32016 string distribution identifiers assigned to a given subprogram.
32017 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
32018 (Add_RAS_Dereference_TSS): Add comments.
32019 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
32020 is not referenced yet because it will be used by the PolyORB DSA
32022 (Insert_Partition_Check): Remove fossile code.
32023 (First_RCI_Subprogram_Id): Document this constant.
32024 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
32026 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
32027 replaced with calls to Get_Library_Unit_Name_String. Previously there
32028 were several instances of the same code in different locations in the
32029 compiler; this checkin completes the replacement of all of these
32030 instances with calls to a common subprogram.
32031 Minor reformatting.
32033 * sem_dist.adb: Remove comment noting that RPC receiver generation
32034 should be disabled for RACWs that implement RASs.
32035 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
32037 * sem_util.ads, sem_util.adb (Has_Stream): New function
32038 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
32039 qualified name of a library unit into the name buffer.
32040 (Note_Possible_Modification): Generate a reference only
32041 if the context comes from source.
32043 * snames.ads (PCS_Names): New subtype corresponding to names of
32044 supported implementations of the Partition Communication Subsystem
32045 (PCS) (i.e. the runtime library support modules for the distributed
32048 2004-11-18 Robert Dewar <dewar@adacore.com>
32049 Ed Schonberg <schonberg@adacore.com>
32051 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
32052 (Has_Rep_Pragma): New function
32053 (Has_Attribute_Definition_Clause): New function
32054 (Record_Rep_Pragma): Moved here from sem_ch13.adb
32055 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
32057 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
32059 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
32060 (Expand_Pragma_Psect_Object): New procedure
32061 These procedures contain the revised and cleaned up processing for
32062 these two pragmas. This processing was formerly in Sem_Prag, but
32063 is more appropriately moved here. The cleanup involves making sure
32064 that the pragmas are properly attached to the tree, and that no
32065 nodes are improperly shared.
32067 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
32068 pragmas to Exp_Prag, which is more appropriate.
32069 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
32070 check for duplicates Remove use of Is_Psected flag, no longer needed.
32071 Use new Make_String_Literal function with string.
32073 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
32074 that are functions return universal values, that have to be converted
32075 to the context type.
32076 Use new Make_String_Literal function with string.
32077 (Get_Stream_Convert_Pragma): New function, replaces the use of
32078 Get_Rep_Pragma, which had to be kludged to work in this case.
32080 * freeze.adb: Use new Has_Rep_Pragma function
32082 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
32083 function with string.
32084 Use new Has_Rep_Pragma function.
32086 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
32089 2004-11-18 Robert Dewar <dewar@adacore.com>
32091 * errout.ads, errout.adb: (First_Sloc): New function
32093 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
32094 check (-gnatyx) instead of being included as a redundant construct
32097 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
32098 Style_Check_Order_Subprograms.
32100 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
32101 stylesw.adb: Add Style_Check_Xtra_Parens
32103 * usage.adb: Add line for -gnatyx (check extra parens)
32105 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
32107 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32108 Robert Dewar <dewar@adacore.com>
32110 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
32111 discriminant of a constrained subtype, analyze the copy of the
32112 corresponding constraint, because in some cases it may be only
32113 partially analyzed.
32114 Removes long-lived ??? comments.
32116 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
32117 handled controlled or secondary-stack expressions within the
32118 iteration_scheme of a loop.
32120 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
32121 bounds that may contain functions calls, to prevent memory leaks when
32122 the bound contains a call to a function that uses the secondary stack.
32123 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
32124 generate temporaries for loop bounds that might contain function calls
32125 that require secondary stack and/or finalization actions.
32127 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
32128 selected component and the selector is overloadable (not just a
32129 function) treat as function call, Analyze_Call will disambiguate if
32131 (Analyze_Selected_Component): Do not generate an actual subtype for the
32132 selected component if expansion is disabled. The actual subtype is only
32133 needed for constraint checks.
32134 (Analyze_Allocator): If restriction No_Streams is set, then do
32135 not permit objects to be declared of a stream type, or of a
32136 composite type containing a stream.
32138 * restrict.ads: Remove the a-stream entry from Unit_Array, since
32139 No_Streams no longer prohibits with'ing this package.
32141 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
32142 discriminants, but the parent base has unknown discriminants, there is
32143 no discriminant constraint to inherit. Such a discrepancy can arise
32144 when the actual for a formal type with unknown discriminants is a
32145 similar private type whose full view has discriminants.
32146 (Analyze_Object_Declaration): If restriction No_Streams is set, then
32147 do not permit objects to be declared of a stream type, or of a
32148 composite type containing a stream.
32150 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32152 * exp_dbug.ads: Update documentation to reflect simpler encoding for
32153 protected operations.
32155 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
32156 generated name, it complicates decoding in gdb and hinders debugging
32157 of protected operations.
32158 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
32159 flag for the protected entry barrier function.
32160 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
32161 flag for the protected entry function.
32163 2004-11-18 Nicolas Setton <setton@adacore.com>
32165 * expect.c: Define __unix__ when __APPLE__ is defined.
32167 * Makefile.in: Inform the value of the variable GMEM_LIB in the
32168 Darwin-specific section.
32170 * lang-specs.h: Change the placement of the %1 marker.
32171 Works around the fact that gcc adds -fPIC by default under Darwin.
32173 2004-11-18 Ed Schonberg <schonberg@adacore.com>
32175 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
32176 type of the object with the packed array type, set the Analyzed flag
32177 on the object if it is an entity or simple indexed component, to avoid
32178 spurious type errors.
32180 2004-11-18 Gary Dismukes <dismukes@adacore.com>
32182 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
32183 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
32184 separate line from the version message.
32186 2004-11-18 Ed Falis <falis@adacore.com>
32188 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
32190 (init_float): Eliminate initialization of floating point status for
32191 AE653. The instructions have no effect for vThreads.
32193 2004-11-18 Vincent Celier <celier@adacore.com>
32195 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
32196 gnatbind is invoked with -shared.
32198 2004-11-18 Jose Ruiz <ruiz@adacore.com>
32200 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
32201 for Detect_Blocking which is redundant with the check done within the
32202 procedure Protected_Single_Entry_Call.
32203 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
32204 Detect_Blocking which is redundant with the check done within the
32205 procedure Protected_Single_Entry_Call.
32207 2004-11-18 Vincent Celier <celier@adacore.com>
32209 * makegpr.adb (Compile): Put the compiling switches (in package
32210 Compiler and on the command line) immediately after "-c", instead of
32211 at the end of the command line invocation of the compiler, when
32212 compiling a non-Ada file.
32213 (Build_Global_Archive): When there is no need to rebuild the archive,
32214 set Global_Archive_Exists, so that the archive is passed to the linker
32217 2004-11-18 Robert Dewar <dewar@adacore.com>
32218 Sergey Rybin <rybin@adacore.com>
32221 Remove extra paren check from list of checks for redundant constructs
32222 Add documentation of new -gnatyx style check (check extra parens)
32223 Remove paragraph about gnatelim debug options.
32225 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
32226 objects rather than forbidding dependencies on the package Ada.Streams.
32228 * sinfo.ads: Add ??? note that we should document pragmas passed to
32231 * g-expect.ads: Fix a few typos in the comments.
32233 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
32235 * misc.c (gnat_handle_option): Use %< and %> for quoting in
32238 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
32240 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
32242 2004-11-07 Andreas Schwab <schwab@suse.de>
32244 * Makefile.in (install-gnatlib): Remove spurious hyphen.
32246 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
32249 * Makefile.in (darwin): Set soext to .dylib.
32251 2004-10-26 Vincent Celier <celier@gnat.com>
32252 Thomas Quinot <quinot@act-europe.fr>
32254 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
32255 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
32256 there is no use of GNAT.Sockets.Constants.
32257 Remove remaining pragma Import for C_Write
32258 Remove C_Read and C_Write from internal implementation unit
32259 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
32260 the read and write functions from the system runtime library is fine
32261 on UNIX but won't work under Windows).
32263 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
32264 (Check_Selector): Use C_Recv instead of C_Read.
32265 Selectors are the GNAT.Sockets abstraction to perform a select()
32266 call on a set of descriptors. To allow abortion of an ongoing
32267 select operation, some data is written to a dedicated socket that
32268 is always monitored.
32269 Under Windows, the write and read library functions cannot operate
32270 on sockets, so we need to use send and recv instead, which is portable
32271 across all supported platforms.
32273 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
32274 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
32275 (using the read and write functions from the system runtime library is
32276 fine on UNIX but won't work under Windows).
32278 2004-10-26 Nicolas Setton <setton@act-europe.fr>
32280 * mlib-tgt-darwin.adb: New file.
32282 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32283 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32284 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
32285 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
32288 * Makefile.in: Add support for building shared libraries under Darwin.
32289 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
32290 the low level EH init subprogram to be called from __gnat_initialize.
32292 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
32293 indicates which options to pass to the archive indexer.
32295 * mlib-utl.adb: Add support for calling ranlib with additional
32296 options. This is needed for instance under Mac OS X.
32297 (Ranlib_Options): New global variable, used to store the potential
32298 options to pass to ranlib.
32299 (Ar): Use Ranlib_Options when spawning ranlib.
32300 (Initialize): Set the value of ranlib option.
32302 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
32304 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
32305 instead of 8K, to reflect the real potential needs for stack-checking
32308 2004-10-26 Pascal Obry <obry@gnat.com>
32310 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
32312 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
32313 Windows only the initial thread stack size can be set so it is good to
32314 start we a low stack size.
32315 The OS will adjust the size as needed.
32317 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
32318 Nicolas Setton <setton@act-europe.fr>
32320 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
32321 "__unix__" instead of "unix".
32322 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
32323 sections were just mistakenly ignored. The former is
32324 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
32325 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
32326 of hpux. This prevents an unwanted definition of the symbol
32327 convert_addresses in adaint.o.
32329 2004-10-26 Gary Dismukes <dismukes@gnat.com>
32331 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
32332 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
32334 2004-10-26 Cyrille Comar <comar@act-europe.fr>
32336 * a-filico.ads, a-filico.adb: fix incorrect header.
32338 2004-10-26 Javier Miranda <miranda@gnat.com>
32340 * a-ststio.ads: Fix typo in identifier
32342 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32344 * sem_ch4.adb: Minor reformatting.
32346 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32348 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
32349 enabled, check the result of unary and binary operations when the
32350 expression is the right-hand side of an assignment.
32352 2004-10-26 Vincent Celier <celier@gnat.com>
32354 * clean.adb (Delete): Do not output warnings when in quiet output and
32355 not in verbose mode.
32356 (Force_Deletions): New Boolean flag, defaulted to False
32357 (Delete): Only delete a file if it is writable, and when
32358 Force_Deletions is True.
32359 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
32360 (Usage): Line for new switch -f
32361 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
32364 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
32366 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
32367 JM type only if its size matches that of the wrapper. When a size is
32368 prescribed and the field is not aliased, remove the wrapper of a JM
32369 type only if the size is not greater than that of the packed array.
32370 (gnat_to_gnu_entity): Change the extension of packed array wrappers
32373 2004-10-26 Geert Bosch <bosch@gnat.com>
32375 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
32376 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32377 (Pred): Implement in terms of Succ.
32379 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32381 * exp_aggr.adb (Safe_Component): An aggregate component that is an
32382 unchecked conversion is safe for in-place use if the expression of the
32383 conversion is safe.
32384 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
32385 be expandable in place even if the aggregate does not come from source.
32386 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
32387 designated object of an allocator in place, rather than building it
32388 first on the stack. The previous scheme forces a full copy of the array,
32389 and may be altogether unsusable if the size of the array is too large
32390 for stack allocation.
32392 2004-10-26 Robert Dewar <dewar@gnat.com>
32394 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
32395 compares if the component is atomic.
32397 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
32398 array assignment if the component type is atomic.
32400 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32401 Eric Botcazou <ebotcazou@act-europe.fr>
32403 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
32404 is aliased and is a by_reference type, do not pass by copy.
32405 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
32406 detect whether the call is in the right side of an assignment or
32407 the expression of an object declaration. Recurse on component
32408 association within aggregates.
32409 Call it in the condition that determines whether the temporary is
32410 necessary for correct stack-checking.
32412 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32414 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
32415 RACW_Type, used in the PolyORB version.
32416 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
32417 version and the GARLIC version.
32419 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
32420 Rename RCI_Info to RCI_Locator for better consistency between the
32421 GARLIC and PolyORB versions of the distributed systems annex.
32422 (DSA_Implementation_Name): This enumeration lists the possible
32423 implementations of the Partition Communication Subsystem for the
32424 Distributed Systems Annex (DSA). The three available implementations
32425 are the dummy stub implementation (No_DSA), and two versions based on
32426 two different distribution runtime libraries: GARLIC and PolyORB. Both
32427 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
32429 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
32432 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
32433 between the GARLIC and PolyORB versions of the distributed systems
32435 Remove RE_Unbounded_Reclaim_Pool since it is unused.
32437 2004-10-26 Gary Dismukes <dismukes@gnat.com>
32439 * gnat1drv.adb: Suppress calling the back end when
32440 Frontend_Layout_On_Target is true.
32442 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32444 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
32445 Set_Read_Only): New subprograms.
32446 These new routines allow the user to set or unset the Owner execute
32447 and Owner write permission flags on a file.
32449 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
32450 GNAT.OS_Lib.Set_Executable instead of rolling our own.
32452 2004-10-26 Matthew Gingell <gingell@gnat.com>
32454 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
32456 2004-10-26 Pascal Obry <obry@gnat.com>
32458 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
32459 memory before the faulting page we properly test the process read
32460 access for this address using appropriate Win32 routine.
32461 (HPUX sections): guard with "__hpux__" instead of "hpux".
32463 2004-10-26 Robert Dewar <dewar@gnat.com>
32465 * lib-xref.adb (Generate_Reference): Don't complain about reference to
32466 entry parameter if pragma Unreferenced set, since we do not properly
32467 handle the case of multiple parameters.
32469 2004-10-26 Vincent Celier <celier@gnat.com>
32471 * prj-env.adb: (Contains_ALI_Files): New Boolean function
32472 (Ada_Objects_Path.Add): For a library project, add to the object path
32473 the library directory only if there is no object directory or if the
32474 library directory contains ALI files.
32475 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32477 2004-10-26 Vincent Celier <celier@gnat.com>
32479 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
32480 extension of library projects.
32482 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
32483 path defaults to ".:<prefix>/lib/gnat".
32484 (Parse): For an extending all project, allow direct import of a project
32485 that is virtually extended.
32487 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
32488 the specified name is directly imported, return its ID. Otherwise, if
32489 an extension of this project is imported, return the ID of the
32492 2004-10-26 Robert Dewar <dewar@gnat.com>
32494 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
32495 (Sub3): New procedure, used by Scaled_Divide
32496 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
32497 correct more than one instance of failure to propagate carries
32499 (Double_Divide): Handle overflow case of largest negative number
32500 divided by minus one.
32502 * s-arit64.ads (Double_Divide): Document that overflow can occur in
32503 the case of a quotient value out of range.
32506 2004-10-26 Robert Dewar <dewar@gnat.com>
32508 * s-bitops.adb (Bit_Eq): Remove redundant check.
32510 * s-bitops.ads: Minor comment updates
32511 Change some occurrences of Address to System.Address
32513 * s-carsi8.ads: Fix minor cut-and-paste error in comments
32515 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32517 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
32518 accessibility check to prefix that is a protected operation.
32520 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32522 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
32523 empty, post message on stub.
32525 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32526 Javier Miranda <miranda@gnat.com>
32528 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
32529 current instance appears within a unit that is directly in the context
32531 Used to determine whether the body of the instance should be analyzed
32532 immediately after its spec, to make its subprogram bodies available
32533 for front-end inlining.
32534 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
32535 constraint is not allowed on the component type (AARM 12.5.3(3))
32537 2004-10-26 Cyrille Comar <comar@act-europe.fr>
32539 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
32540 'Storage_Pool): enhance, document & limit detection of non-sharable
32543 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
32545 * s-pooglo.ads: Add more documentation now that this pool is properly
32548 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32550 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
32551 or protected type with discriminants, do not constrain the
32552 corresponding record type if the subtype declaration has no
32553 discriminant constraints. This can be the case in source code, or in
32554 the subtype declaration created to rename an actual type within an
32557 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32559 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
32560 different kind of stub (possibly wrong name for file), do not check
32562 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
32563 includes call to some function that returns an unconstrained type, do
32566 2004-10-26 Ed Schonberg <schonberg@gnat.com>
32568 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
32569 appear in the code for the main unit. Dependencies among units in the
32570 context of the main unit are established when those other units are
32571 compiled. Otherwise spurious elaboration constraints can generate
32572 incorrect elaboration circularities.
32574 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
32575 Ed Schonberg <schonberg@gnat.com>
32577 * sem_util.adb (Is_Aliased_View): Defend against the case where this
32578 subprogram is called with a parameter that is not an object name. This
32579 situation arises for some cases of illegal code, which is diagnosed
32580 later, and in this case it is wrong to call Is_Aliased, as that might
32581 cause a compiler crash.
32582 (Explain_Limited_Type): Refine previous fix to include
32583 inherited components of derived types, to provide complete information.
32585 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
32586 is the prival for a protected object.
32587 It is necessary to mark this entity as a variable, in addition to
32588 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
32589 modified to avoid checking the Aliased flag on entities that are not
32590 objects. (Checking that flag for non-objects is erroneous and could
32591 lead to a compiler crash).
32593 2004-10-26 Robert Dewar <dewar@gnat.com>
32595 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
32596 X_Frac = 0.5, then we know that the number X must be positive.
32597 (Succ): Remove the same redundant test, and also fix the primary test
32598 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
32600 (Decompose): Add fuller comments to spec
32602 2004-10-26 Pascal Obry <obry@gnat.com>
32604 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
32605 validity (process must have read access). Set to 0 in all other cases.
32606 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
32607 violation on Win32.
32608 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
32609 segmentation violation.
32611 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
32613 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
32614 whose type is a constructed subtype of an aliased object with an
32615 unconstrained nominal subtype, convert the actual to the constructed
32616 subtype before taking its address.
32618 2004-10-26 Vincent Celier <celier@gnat.com>
32620 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
32621 (Is_Path_Name_Case_Sensitive): New function
32623 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
32624 (Base_Name, Simple_Name, Current_Directory, Compose,
32625 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
32628 2004-10-26 Cyrille Comar <comar@act-europe.fr>
32629 Vasiliy Fofanov <fofanov@act-europe.fr>
32630 Vincent Celier <celier@gnat.com>
32632 * gnat_ugn.texi: Generalize "finding memory problems" section into a
32633 "memory management issues" section and document some of the useful
32634 memory pools provided as part of the GNAT library.
32635 Remove "virtual" from declaration of A::method2 in
32636 the simple example of Ada/C++ mixed system.
32637 Library Projects may be virtually extended: their virtual extensions
32638 are not Library Projects.
32639 Added section on extending project hierarchies.
32641 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
32643 * adaint.c (__gnat_get_libraries_from_registry): Cast value
32645 (__gnat_portable_spawn): Remove const.
32647 * mingw32.h (MAXPATHLEN): Check for previous definition.
32649 2004-10-17 Matthias Klose <doko@debian.org>
32651 * gnatvsn.ads: Set gnat library version to 4.0.
32653 2004-10-05 Vincent Celier <celier@gnat.com>
32655 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
32657 2004-10-04 Laurent Guerby <laurent@guerby.net>
32660 * Makefile.in: Define and use RANLIB_FLAGS.
32662 2004-10-04 Pascal Obry <obry@gnat.com>
32664 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
32665 other x86 platforms).
32667 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
32669 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
32670 in general and triggers stack alignment adjustment for thread entry
32671 points on targets where this is necessary.
32673 2004-10-04 Bernard Banner <banner@gnat.com>
32676 * Makefile.in: Add section for powerpc linux
32677 Add variant i-vxwork-x86.ads
32679 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
32681 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
32683 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
32684 table registration calls when need be. Ensures no reference to the crt
32685 ctors symbol are issued in the SJLJ case, which avoids possible
32686 undefined symbol errors in the case of modules to be statically linked
32689 2004-10-04 Javier Miranda <miranda@gnat.com>
32691 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
32692 in-line the code corresponding to subprogram Analyze_Actuals. In
32693 addition, analyze the actuals only in case of subprogram call.
32695 2004-10-04 Ed Falis <falis@gnat.com>
32697 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
32699 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
32701 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
32702 in the documentation.
32704 2004-10-04 Robert Dewar <dewar@gnat.com>
32706 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
32708 (Analyze_Block_Statement): Add circuitry to detect following dead code
32709 (Check_Unreachable_Code): Handle case of block exit
32711 2004-10-04 Robert Dewar <dewar@gnat.com>
32713 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
32714 (XMatchD): Avoid warning for Logic_Error call
32716 2004-10-04 Robert Dewar <dewar@gnat.com>
32718 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
32719 consider expressions buried within a procedure actual to be an actual.
32720 This caused some blowups with uses of packed slices within a procedure
32723 2004-10-04 Robert Dewar <dewar@gnat.com>
32725 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
32726 longer need to be initialized to zero.
32727 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
32728 initialized to zero.
32730 * checks.adb (Expr_Known_Valid): Packed arrays are now always
32731 considered valid, even if the representation is modular. That's correct
32732 now that we no longer initialize packed modular arrays to zero.
32734 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
32735 suffixes. These are now documented as the only cases in which the
32736 debugger ignores outer records.
32737 Previously, the spec allowed arbitrary suffixes for this purpose.
32738 Change name of LJM to JM for packed array pad records
32739 Create separate section on packed array handling, and add a whole new
32740 set of comments to this section describing the situation with packed
32741 modular types and justification requirements depending on endianness.
32743 2004-10-04 Robert Dewar <dewar@gnat.com>
32745 * a-except.adb: Add a comment for last change
32747 * einfo.ads: Minor spelling correction in comment
32749 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
32751 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
32754 * sem_util.ads: Minor comment update
32756 2004-10-04 Ed Schonberg <schonberg@gnat.com>
32758 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
32759 Inline_Always when in Configurable_Run_Time mode.
32761 * sem_prag.adb (Process_Convention): If entity is an inherited
32762 subprogram, apply convention to parent subprogram if in same scope.
32763 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
32764 when in Configurable_Run_Time mode.
32766 2004-10-04 Ed Schonberg <schonberg@gnat.com>
32768 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
32769 class_wide type after component list has been inherited.
32771 2004-10-04 Ed Schonberg <schonberg@gnat.com>
32773 * sem_ch12.adb (Check_Generic_Actuals): New predicate
32774 Denotes_Previous_Actual, to handle properly the case of a private
32775 actual that is also the component type of a subsequent array actual.
32776 The visibility status of the first actual is not affected when the
32777 second is installed.
32778 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
32779 make fully recursive the treatment of formals of packages declared
32781 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
32782 the above on exit from an instantiation.
32783 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
32784 current instantiation which is now complete.
32785 (Analyze_Package_Instantiation): No instantiated body is needed if the
32786 main unit is generic. Efficient, and avoid anomalies when a instance
32787 appears in a package accessed through rtsfind.
32789 2004-10-04 Ed Schonberg <schonberg@gnat.com>
32791 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
32792 do not generate a declaration for a temporary if the call is part of a
32793 library-level instantiation.
32795 2004-10-04 Ed Schonberg <schonberg@gnat.com>
32797 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
32798 searching for a limited component to flag.
32800 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
32801 expansion of Input, to account for the fact that the implicit call
32802 generated by the attribute reference must freeze the user-defined
32803 stream subprogram. This is only relevant to 'Input, because it can
32804 appear in an object declaration, prior to the body of the subprogram.
32806 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
32807 expansion can proceed and further errors uncovered.
32808 (Minor clean up): Fix cases of using | instead of \ for continuation
32811 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32813 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
32815 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
32816 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
32817 Use gcc_assert and gcc_unreachable.
32819 * decl.c (gnat_to_gnu_entity, case object): Check and process a
32820 specified alignment before validating size.
32821 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
32822 stripped-down declaration for the type of the inner field when making
32825 * utils.c (finish_record_type): Do not compute the size in units
32826 incrementally. Instead compute it once for the rep clause case.
32827 Use gcc_assert and gcc_unreachable.
32829 2004-10-04 Vincent Celier <celier@gnat.com>
32831 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
32833 (Is_Valid_Path_Name): Take '/' as a directory separator.
32835 2004-10-04 Vincent Celier <celier@gnat.com>
32837 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
32838 (Extended_Project) only if Extended_Project is defined, to avoid
32840 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
32842 (Parse_Single_Project): Ditto.
32844 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
32845 Add_To_Project_Path for virtual projects.
32847 2004-10-04 Vincent Celier <celier@gnat.com>
32849 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
32850 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32851 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
32852 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
32853 parameter Options_2.
32855 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
32856 Build_Dynamic_Library with an empty Options_2.
32858 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
32861 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
32862 directory separator, if any.
32863 (Gprmake): Do not allow mains on the command line for library projects.
32864 Do not attempt to link when the project is a library project.
32865 (Library_Opts): New table to store Library_Options.
32866 (Build_Library): If Library_Options is specified, pass these options
32867 when building a shared library.
32869 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
32871 * s-tposen.adb (Service_Entry): The object must be always unlocked at
32872 the end of this procedure now that the unlock operation was inserted
32875 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
32877 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
32878 corresponding to the Preallocated_Stacks flags in System.
32879 (Get_Target_Parameters): Including the processing for
32880 Preallocated_Stacks.
32882 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
32883 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
32884 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
32885 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
32886 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
32887 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
32888 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
32889 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
32890 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
32891 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
32892 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
32893 used to signal whether the compiler creates the required stacks and
32894 descriptors for the different tasks (when True) or it is done by the
32895 underlying operating system at run time (when False).
32896 It is initially set to False in all targets.
32898 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
32899 if it is supported by the target.
32900 (Make_Task_Create_Call): Pass the stack address if it has been
32901 previously created. Otherwise pass a Null_Address.
32903 * snames.adb: Add _stack.
32905 * snames.ads: Add Name_uStack. Required to allow the expander to
32906 statically allocated task stacks.
32908 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
32909 Stack_Address argument.
32910 Check that its value is equal to Null_Address because this target does
32911 not support the static stack allocation.
32913 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
32915 * usage.adb: Change "pragma inline" to "pragma Inline" in information
32918 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
32920 * exp_dist.adb: Split declaration of asynchronous flag out of
32921 Add_RACW_Read_Attribute.
32922 Minor reformatting for better alignment with PolyORB version.
32923 Store the entity for the asynchronous flag of an RACW, rather than the
32924 expression, in the asynchronous flags table. This will allow this flag
32925 to be used in other subprograms beside Add_RACW_Read_Attribute.
32927 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
32929 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
32930 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
32931 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
32932 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
32933 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
32934 sockets constant MSG_NOSIGNAL (Linux-specific).
32935 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
32936 all Send operations.
32937 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
32938 from trigerring SIGPIPE.
32939 Rename components to avoid clash with Ada 2005 possible reserved
32941 (Check_Selector): When the select system call returns with an error
32942 condition, propagate Socket_Error to the caller.
32944 2004-10-01 Jan Hubicka <jh@suse.cz>
32946 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
32948 2004-09-23 Robert Dewar <dewar@gnat.com>
32951 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
32952 instead do this at freeze time (we won't do it if there is an address
32954 Change "pragma inline" to "pragma Inline" in information and error
32956 Minor reformatting.
32958 * freeze.adb (Check_Address_Clause): Remove previous change, not the
32959 right way of doing things after all.
32960 (Freeze_Entity): For object, set Is_Public for imported entities
32961 unless there is an address clause present.
32963 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
32965 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
32966 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
32967 ensures proper handling of types with rep clauses, which might have
32968 their TYPE_SIZE set already.
32970 2004-09-21 Robert Dewar <dewar@gnat.com>
32972 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
32973 packed array types in both little- and big-endian cases. This change
32974 ensures that we no longer count on the unused bits being initialized
32975 for such types (and in particular ensures that equality testing will
32976 only read the relevant bits).
32977 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
32978 These changes mean that we no longer need to initialize small packed
32980 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
32981 optimization to an LJM field as to its parent field.
32983 * ada-tree.h, trans.c, utils.c, utils2.c:
32984 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
32986 2004-09-20 Jan Hubicka <jh@suse.cz>
32988 * utils.c (gnat_finalize): Remove.
32989 (end_subprog_body): Directly call cgraph_finalize_function;
32990 do not lower the nested functions.
32992 2004-09-20 Robert Dewar <dewar@gnat.com>
32995 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
32996 if an address clause is present, since that means that the Import
32999 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
33001 * 5tsystem.ads: Removed, no longer used.
33003 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
33004 Zack Weinberg <zack@codesourcery.com>
33006 * ada-tree.def: Use tree_code_class enumeration constants
33007 instead of code letters.
33008 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
33009 Update for new tree-class enumeration constants.
33011 2004-09-17 Vincent Celier <celier@gnat.com>
33013 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
33014 capabilities of the general project manager.
33016 2004-09-09 Vincent Celier <celier@gnat.com>
33018 * a-direct.ads: Add pragma Ada_05
33019 (Directory_Entry_Type): Give default value to component Kind to avoid
33020 not initialized warnings.
33022 * a-direct.adb (Current_Directory): Remove directory separator at the
33024 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
33025 an existing directory.
33026 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
33027 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
33028 Convert the result to File_Size.
33030 * prj.ads: (Project_Error): New exception
33032 * prj-attr.adb: Except in procedure Initialize, Fail comes from
33033 Prj.Com, not from Osint.
33034 (Attrs, Package_Attributes): Tables moved to private part of spec
33035 (Add_Attribute, Add_Unknown_Package): Moved to new child package
33037 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
33038 Prj.Project_Error after call to Fail.
33039 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
33040 Fail. Check that package name is not already in use.
33042 * prj-attr.ads: Comment updates to indicate that all subprograms may be
33043 used by tools, not only by the project manager, and to indicate that
33044 exception Prj.Prj_Error may be raised in case of problem.
33045 (Add_Unknown_Package, Add_Attribute): Moved to new child package
33047 (Attrs, Package_Attributes): Table instantiations moved from the body to
33048 the private part to be accessible from Prj.Attr.PM body.
33050 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
33051 from new package Prj.Attr.PM.
33052 (Parse_Attribute_Declaration): Call Add_Attribute from new package
33055 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
33057 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
33058 instead of Elaboration_Checks).
33060 * a-calend.adb: Minor reformatting
33062 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33064 * gigi.h (maybe_pad_type): New declaration.
33065 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
33067 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
33069 * cuintp.c: Convert to use buildN.
33071 * decl.c (maybe_pad_type): No longer static.
33072 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
33074 Convert to use buildN.
33076 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
33077 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
33078 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
33080 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
33081 (gnat_gimplify_expr, case ADDR_EXPR): New case.
33082 Convert to use buildN.
33084 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
33085 TREE_READONLY for const.
33086 Convert to use buildN.
33088 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
33089 (create_var_decl): Refine when TREE_STATIC is set.
33090 Convert to use buildN.
33092 2004-09-09 Gary Dismukes <dismukes@gnat.com>
33094 * gnat_ugn.texi: Delete text relating to checking of ali and object
33097 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
33100 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
33102 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
33103 pragmas recognized by GNAT.
33105 * gnat_rm.texi: Document pragma Detect_Blocking.
33107 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
33108 raise Program_Error if called from a protected operation.
33110 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
33111 the protected action nesting level.
33112 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
33113 protected action nesting level.
33114 (Unlock): When pragma Detect_Blocking is active decrease the protected
33115 action nesting level.
33117 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
33118 Protected_Action_Nesting.
33120 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
33121 Common_ATCB record. It contains the dynamic level of protected action
33122 nesting for each task. It is needed for checking whether potentially
33123 blocking operations are called from protected operations.
33124 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
33125 Detect_Blocking is active or not in the partition.
33127 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
33128 raise Program_Error if called from a protected operation.
33129 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
33130 Program_Error if called from a protected operation.
33131 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
33132 Program_Error if called from a protected operation.
33134 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
33135 raise Program_Error if called from a protected operation.
33137 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
33138 raise Program_Error if called from a protected operation, and increase
33139 the protected action nesting level.
33140 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
33141 Program_Error if called from a protected operation, and increase the
33142 protected action nesting level.
33143 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
33144 protected action nesting level.
33146 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
33147 raise Program_Error if called from a protected operation, and increase
33148 the protected action nesting level.
33149 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
33150 Program_Error if called from a protected operation, and increase the
33151 protected action nesting level.
33152 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
33153 raise Program_Error if called from a protected operation.
33154 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
33155 active, raise Program_Error if called from a protected operation.
33156 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
33157 protected action nesting level.
33159 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
33160 insertion of the statement raising Program_Error. The run time
33161 contains the required machinery for handling that.
33163 * sem_util.ads: Change comment associated to procedure
33164 Check_Potentially_Blocking_Operation.
33165 This procedure does not insert a call for raising the exception because
33166 that is currently done by the run time.
33168 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
33170 * init.c: Add the global variable __gl_detect_blocking that indicates
33171 whether pragma Detect_Blocking is active (1) or not (0). Needed for
33172 making the pragma available at run time.
33173 (__gnat_set_globals): Pass and update the detect_blocking parameter.
33175 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
33176 pragma Detect_Blocking is active.
33178 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
33180 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
33181 DB is found in the ali file. Any unit compiled with pragma
33182 Detect_Blocking active forces its effect in the whole partition.
33184 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
33185 Detect_Blocking is active and delay is called from a protected
33188 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
33189 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
33190 Detect_Blocking is active (0 otherwise).
33191 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
33192 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
33195 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
33197 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
33198 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
33201 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
33202 (Register_Receiving_Stub): Add Subp_Info formal parameter.
33203 Update API in placeholder implemetation of s-parint to reflect changes
33204 in distribution runtime library.
33206 * sem_ch3.adb (Expand_Derived_Record): Rename to
33207 Expand_Record_Extension.
33209 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
33210 primitive operations of potentially distributed object types that have
33211 non-controlling anonymous access formals.
33213 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
33215 New implementation of expansion for remote access-to-subprogram types,
33216 based on the RACW infrastructure.
33217 This version of sem_dist is compatible with PolyORB/DSA as well as
33220 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
33221 Asynchrronous that applies to a remote access-to-subprogram type, mark
33222 the underlying RACW type as asynchronous.
33224 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
33225 __gnat_using_gnu_linker to 1.
33227 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
33228 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
33229 GNAT.Perfect_Hash_Generators, and remove the empty
33230 GNAT.Perfect_Hash package.
33232 * atree.adb: Minor reformatting
33234 * exp_ch3.adb (Expand_Derived_Record): Rename to
33235 Expand_Record_Extension.
33236 (Build_Record_Init_Proc.Build_Assignment): The default expression in
33237 a component declaration must remain attached at that point in the
33238 tree so New_Copy_Tree copies it if the enclosing record type is derived.
33239 It is therefore necessary to take a copy of the expression when building
33240 the corresponding assignment statement in the init proc.
33241 As a side effect, in the case of a derived record type, we now see the
33242 original expression, without any rewriting that could have occurred
33243 during expansion of the ancestor type's init proc, and we do not need
33244 to go back to Original_Node.
33246 * exp_ch3.ads (Expand_Derived_Record): Rename to
33247 Expand_Record_Extension.
33249 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
33250 Returns the RACW type used to implement a remote access-to-subprogram
33252 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
33253 New subprograms. Used to create a proxy tagged object for a remote
33254 subprogram. The proxy object is used as the designated object
33255 for RAS values on the same partition (unless All_Calls_Remote applies).
33256 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
33257 System.Partition_Interface.Get_Unique_Remote_Pointer.
33258 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
33259 Renamed from Add_RAS_*_Attribute.
33260 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
33262 New implementation of expansion for remote access-to-subprogram types,
33263 based on the RACW infrastructure.
33265 * exp_dist.ads (Copy_Specification): Update comment to note that this
33266 function can copy the specification from either a subprogram
33267 specification or an access-to-subprogram type definition.
33269 2004-09-09 Ed Schonberg <schonberg@gnat.com>
33271 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
33272 in an instance, between an explicit subprogram an one inherited from a
33273 type derived from an actual.
33275 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
33276 add a polling call if the subprogram is to be inlined by the back-end,
33277 to avoid repeated calls with multiple inlinings.
33279 * checks.adb (Apply_Alignment_Check): If the expression in the address
33280 clause is a call whose name is not a static entity (e.g. a dispatching
33281 call), treat as dynamic.
33283 2004-09-09 Robert Dewar <dewar@gnat.com>
33285 * g-trasym.ads: Minor reformatting
33287 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
33288 packed arrays, since unused bits are expected to be zero for a
33291 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
33293 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
33296 2004-09-09 Pascal Obry <obry@gnat.com>
33298 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
33299 enable map file generation. Add the right option to generate the map
33300 file if Map_File is set to True.
33302 * gnatdll.adb (Gen_Map_File): New variable.
33303 (Syntax): Add info about new -m (Map_File) option.
33304 (Parse_Command_Line): Add support for -m option.
33305 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
33306 Minor reformatting.
33308 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
33310 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
33311 new gnatdist implementation.
33312 Define a subpackage isolating the output routines specific to this
33315 2004-09-09 Joel Brobecker <brobecker@gnat.com>
33317 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
33319 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
33321 2004-09-09 Cyrille Comar <comar@act-europe.fr>
33323 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
33326 * opt.ads: Add Ada_Version_Runtime constant used to decide which
33327 version of the language is used to compile the run time.
33329 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
33331 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
33332 of variable length temporaries for function return now that the
33333 back-end and gigi support it.
33335 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33337 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
33339 * trans.c (struct stmt_group): Delete field GLOBAL.
33340 (gnat_init_stmt_group): Do not initialize it.
33341 (call_to_gnu): Use save_expr, not protect_multiple_eval.
33342 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
33343 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
33344 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
33345 (start_stmt_group): Likewise.
33346 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
33348 * utils2.c (ggc.h): Include.
33349 (build_call_raise): Call build_int_cst, not build_int_2.
33351 * utils.c (gnat_init_decl_processing): Fix arg to
33352 build_common_tree_nodes.
33353 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
33354 (gnat_define_builtin): Set built_in_decls.
33355 (init_gigi_decls): Call build_int_cst, not build_int_2.
33357 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
33358 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
33359 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
33360 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
33361 SET_TYPE_MODULE): Use them.
33362 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
33363 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
33364 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
33365 SET_TYPE_ADA_SIZE): Likewise.
33366 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
33367 (DECL_CONST_CORRESPONDING_VAR,
33368 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
33369 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
33370 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
33371 (TYPE_RM_SIZE_NUM): New macro.
33372 (TYPE_RM_SIZE): Modified to use above.
33374 * cuintp.c: (build_cst_from_int): New function.
33375 (UI_To_gnu): Use it.
33377 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
33378 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
33379 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
33380 MIN_EXPR for the size, copy it into new.
33382 2004-09-01 Robert Dewar <dewar@gnat.com>
33384 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
33385 packed indexed component where array is an IN OUT formal. This
33386 generated garbage code previously.
33388 * gnat_ugn.texi: Document -fverbose-asm
33390 * gnat-style.texi: Minor updates (note that boolean constants and
33391 variables are joined with AND/OR rather than short circuit forms).
33393 2004-09-01 Ed Schonberg <schonberg@gnat.com>
33395 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
33396 it is an upward conversion of an untagged type with no representation
33399 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
33401 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
33402 System.Partition_Interface.
33404 * checks.adb (Apply_Access_Checks): Do not generate checks when
33405 expander is not active (but check for unset reference to prefix of
33408 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
33409 pragma Debug as an if statement with a constant condition, for
33410 consistent treatment of entity references contained within the
33411 enclosed procedure call.
33413 2004-09-01 Vincent Celier <celier@gnat.com>
33415 * bindgen.adb: (Set_EA_Last): New procedure
33416 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
33418 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
33419 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
33420 linked without errors.
33421 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
33423 (Gen_Exception_Table_C): Correct same bugs
33425 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
33427 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
33428 on Windows, make sure that the drive letter is in upper case.
33430 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
33431 Windows, when the drive letter is added and Case_Sensitive is True, the
33432 drive letter is forced to upper case.
33434 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
33435 to Options_2 for the call to MLib.Utl.Gcc.
33437 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
33438 directory separator when defining BASE_DIR.
33440 2004-09-01 Pascal Obry <obry@gnat.com>
33442 * gprcmd.adb (Extend): Do not output trailing directory separator. This
33443 is not needed and it confuses Windows GNU/make which does not report
33444 directory terminated by a slash as a directory.
33445 (gprcmd): Idem for "pwd" internal command.
33447 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
33448 target names rewrite to fix regressions with recent version of
33449 GNU/make. Starting with GNU/make 3.80 the pipe character was not
33450 handled properly anymore.
33452 2004-09-01 Andreas Schwab <schwab@suse.de>
33454 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
33455 * raise.c [!IN_RTS]: Undef abort.
33457 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
33459 * utils2.c (build_allocator): Use ssize_int.
33461 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
33463 2004-08-27 Andreas Schwab <schwab@suse.de>
33465 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
33467 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
33468 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33470 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
33472 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
33474 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
33475 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
33476 * utils.c (init_gigi_decls): Likewise.
33477 * utils2.c (build_call_raise, build_allocator): Likewise.
33479 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
33481 * utils.c (gnat_init_decl_processing): Adjust
33482 build_common_tree_nodes call.
33484 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
33486 * utils2.c (build_allocator): Use build_int_cst for negative
33489 2004-08-18 Richard Henderson <rth@redhat.com>
33491 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
33493 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
33495 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
33497 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
33498 (gnat_to_gnu): Likewise.
33500 2004-08-16 Pascal Obry <obry@gnat.com>
33502 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
33503 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
33504 option and not mdll anymore. Update comment.
33506 2004-08-16 Pascal Obry <obry@gnat.com>
33508 * bld.adb (Put_Include_Project): Properly handle directory separators
33511 2004-08-16 Ed Schonberg <schonberg@gnat.com>
33513 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
33514 decreasing the number of allocated junk nodes while searching for the
33515 appropriate subprogram.
33517 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
33519 * cuintp.c (UI_To_gnu): Use build_int_cst..
33520 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
33521 * utils.c (init_gigi_decls): Likewise.
33522 * utils2.c (build_call_raise): Likewise.
33524 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
33526 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
33527 for a global aliased object with a variable size and an unconstrained
33528 nominal subtype, pretend there is no initializer if the one we have is
33529 incomplete, and avoid referencing an inexistant component in there. The
33530 part we have will be rebuilt anyway and the reference may confuse
33531 further operations.
33533 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
33535 * einfo.ads: Minor reformatting
33537 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
33538 restrictions in the ALI if we only want to warn about violations.
33540 2004-08-13 Vincent Celier <celier@gnat.com>
33542 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
33543 when creating a new Unit_Record in table Units.
33545 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
33546 that are violated, if any.
33548 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
33549 add directory separator if path already ends with a directory separator.
33551 2004-08-13 Ed Schonberg <schonberg@gnat.com>
33553 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
33554 unit, this is an attempt to inline a construct that is not available in
33555 the current restricted mode, so abort rather than trying to continue.
33557 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
33558 discriminants that rename those of the parent, recover names of
33559 original discriminants for the constraint on the full view of the
33561 (Complete_Private_Subtype): Do not create a subtype declaration if the
33562 subtype is an itype.
33564 * gnat_rm.texi: Added section on implementation of discriminated
33565 records with default values for discriminants.
33567 2004-08-13 Ed Schonberg <schonberg@gnat.com>
33570 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
33571 the second operand is overloaded.
33573 2004-08-10 Richard Henderson <rth@redhat.com>
33575 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
33576 add __builtin_alloca.
33578 2004-08-10 Richard Henderson <rth@redhat.com>
33580 * config-lang.in (boot_language): Yes.
33582 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
33584 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
33585 from complaining on potential uninitialized reference.
33586 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
33587 new specification and test explicitly for non-zero return value.
33589 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
33590 returning C.int, to avoid using a derived boolean type.
33592 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
33593 Duplicate_Subexpr_No_Checks in preference to direct use of
33594 Remove_Side_Effects and New_Copy_Tree.
33595 Clear Comes_From_Source on prefix of 'Size attribute reference.
33597 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
33598 g-socthi-vxworks.adb: Change calls to
33599 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
33600 and test explicitly for non-zero return value.
33602 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
33603 (Is_Socket_In_Set): Declare imported function as returning C.int, to
33604 avoid using a derived boolean type.
33606 2004-08-09 Albert Lee <lee@gnat.com>
33608 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
33610 2004-08-09 Pascal Obry <obry@gnat.com>
33612 * gnat_ugn.texi: Document new way to build DLLs on Windows using
33613 GCC's -shared option.
33615 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
33616 Options_2 parameter (options put after object files).
33618 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
33620 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
33621 ignore overflows on low and high bounds of an index to also account for
33622 differences in signedness between sizetype and gnu_index_subtype.
33623 These are as legitimate as the ones caused by a lower TYPE_PRECISION
33626 2004-08-09 Robert Dewar <dewar@gnat.com>
33628 * s-solita.ads, s-solita.adb: Minor reformatting
33630 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
33631 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
33632 obsolescent section
33633 Add note that No_Implicit_Conditionals does not suppress
33634 run time constraint checks.
33636 * vms_conv.ads: Minor reformatting
33638 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
33639 and necessary for following change).
33640 (Mark): Return new format Mark_Id containing sec stack address
33641 (Release): Use sec stack address from Mark_Id avoiding Self call
33643 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
33644 pointer (cleanup and necessary for following change).
33645 Define Mark_Id as record containing address of secondary stack, that way
33646 Release does not need to find the stack again, decreasing the number of
33647 calls to Self and improving efficiency.
33649 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
33651 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
33652 case variable into the individual case branches when possible.
33654 * sem_ch11.adb: Minor reformatting
33656 * prj.ads: Correct spelling of suffixs
33658 * prj-nmsc.adb: Minor reformatting
33659 Correct spelling suffixs throughout (also in identifiers)
33661 * freeze.adb: Minor spelling correction
33663 * exp_ch2.adb: Cleanups to handling of Current_Value
33664 (no functional effect).
33666 * bld.adb: Correct spelling of suffixs
33668 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
33670 2004-08-09 Ed Schonberg <schonberg@gnat.com>
33673 * sem_ch7.adb (Install_Private_Declarations): In the body of the
33674 package or of a child, private entities are both immediately_visible
33677 2004-08-09 Ed Schonberg <schonberg@gnat.com>
33679 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
33680 there are no range checks on the value of the literal.
33682 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
33683 wrapped is the triggering alternative of an asynchronous select, action
33684 statements mustbe inserted before the select itself.
33686 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
33687 case where the prefix is a protected function call.
33688 (Resolve_Attribute, case 'Access): The attribute reference on a
33689 subprogram is legal in a generic body if the subprogram is declared
33692 2004-08-09 Vincent Celier <celier@gnat.com>
33694 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
33695 languages, otherwise building the library may fail with unresolved
33697 (Compile_Sources): Do not build libraries if -c switch is used
33699 * gnatlink.adb (Process_Args): New switches -M and -Mmap
33700 (Write_Usage): If map file creation is supported, output new switches
33702 (Gnatlink): When -M is specified, add the necessary switch(es) to the
33703 gcc call, when supported.
33705 * Makefile.in: Added indepsw.o to the object list for gnatlink
33706 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
33708 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
33709 indepsw.adb, indepsw.ads: New files.
33711 2004-08-09 Bernard Banner <banner@gnat.com>
33713 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
33715 * Makefile.in: add section for vxworks x86
33717 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
33719 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
33720 per-object constrained components where the discriminant is of an
33722 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
33723 the parent initialization procedure for derived Unchecked_Unions.
33724 Instead, derived Unchecked_Unions build their own initialization
33726 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
33727 Check the body of the subprogram for details.
33728 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
33729 functions for derived Unchecked_Union types by introducing a condition.
33730 Allow the creation of TSS equality functions for Unchecked_Unions.
33731 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
33732 Add formal parameter Discr to function signature. Discr is used to
33733 control the generated case statement for Unchecked_Union types.
33734 (Make_Eq_If): Rename formal parameter Node to E in function signature.
33736 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
33738 Check the body of the subprogram for details.
33739 (Expand_Composite_Equality): Augment composite type equality to include
33740 correct handling of Unchecked_Union components.
33741 (Expand_N_In): Add condition to detect illegal membership tests when the
33742 subtype mark is a constrained Unchecked_Union and the expression lacks
33743 inferable discriminants, and build a Raise_Program_Error node.
33744 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
33745 to detect types that contain components of unconstrained Unchecked_Union
33746 subtype. Add condition to detect equality between types that have an
33747 unconstrained Unchecked_Union component, and build a Raise_Program_Error
33748 node. Add condition to detect equality between Unchecked_Union types
33749 that lack inferable discriminants, and build a Raise_Program_Error node.
33750 Otherwise build a TSS equality function call.
33751 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
33752 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
33753 with the operand lacking inferable discriminants, and build a Raise_
33754 Program_Error node.
33755 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
33756 composite equality.
33757 (Has_Inferable_Discriminants): Implement new predicate for objects and
33758 expressions of Unchecked_Union type. Check the body of subprogram for
33760 (Has_Unconstrained_UU_Components): Add function
33761 Component_Is_Unconstrained_UU. It is used to detect whether a single
33762 component is of an unconstrained Unchecked_Union subtype. Add function
33763 Variant_Is_Unconstrained_UU. It is used to detect whether a single
33764 component inside a variant is of an unconstrained Unchecked_Union type.
33766 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
33767 inferred discriminant values. Add condition to generate a case
33768 statement with an inferred discriminant as the switch.
33769 (Make_Component_List_Assign): Introduce a Boolean flag that determines
33770 the behaviour of the subprogram in the presence of an Unchecked_Union.
33771 Add condition to trigger the usage of the inferred discriminant value
33772 as the generated case statement switch.
33773 (Make_Field_Assign): Introduce a Boolean flag that determines the
33774 behaviour of the subprogram in the presence of an Unchecked_Union. Add
33775 condition to trigger the usage of the inferred discriminant value as
33776 the right-hand side of the generated assignment.
33778 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
33779 parameter generation when dealing with Unchecked_Unions.
33781 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
33782 checks for Unchecked_Unions.
33784 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
33786 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
33787 Raise_Program_Error nodes for the execution of Read and Write
33788 attributes of Unchecked_Union types and the execution of Input and
33789 Output attributes of Unchecked_Union types that lack default
33790 discriminant values.
33792 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
33793 Unchecked_Union. Add procedure Check_Component. It is used to inspect
33794 per-object constrained components of Unchecked_Unions for being
33795 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
33796 check individual components withing a variant.
33798 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
33799 comparison of Unchecked_Unions.
33800 (Resolve_Equality_OP): Remove guard that prevents equality between
33803 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
33804 of component subtypes for Unchecked_Union components.
33805 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
33806 since it is the actual subtype.
33808 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
33809 pass of Unchecked_Union subtypes as generic actuals to formal types
33810 that lack known_discriminant_parts or that are derived Unchecked_Union
33811 types, and do nothing. In any other case, produce an error message.
33813 * sem_ch3.adb (Analyze_Component_Declaration): Add function
33814 Contains_POC. It determines whether a constraint uses the discriminant
33815 of an enclosing record type.
33816 Add condition to detect per-object constrained component and set the
33818 (Derived_Type_Declaration): Remove guard that prevents derivation from
33819 Unchecked_Union types.
33820 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
33823 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
33824 references to Unchecked_Union discriminants.
33826 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
33827 formal generation when dealing with Unchecked_Unions.
33828 (Set_Actual_Subtypes): Add condition to prevent generation of actual
33829 subtypes for Unchecked_Unions.
33831 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
33832 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
33833 completions of discriminated partial views by Unchecked_Unions and
33834 produce an error message.
33836 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33838 * trans.c (struct stmt_group): New field, GLOBAL.
33839 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
33840 (struct elab_info): New struct.
33841 (elab_info_list, gnu_elab_proc_stack): New variables.
33842 (Compilation_Unit_to_gnu): New procedure.
33843 (gigi): Call it and also handle elaboration procs we've saved.
33844 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
33845 global field from parent.
33846 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
33847 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
33848 (start_stmt_group): Initialize global field from parent.
33849 (add_decl_expr): Set to global for current statement group.
33850 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
33853 * utils.c (global_bindings_p): True when no current_function_decl; no
33854 longer check current_binding_level.
33856 2004-08-09 Ben Brosgol <brosgol@gnat.com>
33858 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
33861 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
33863 2004-08-06 Andreas Schwab <schwab@suse.de>
33865 * utils.c (gnat_define_builtin): Remove second parameter of
33867 (begin_subprog_body): Likewise.
33869 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
33871 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
33872 optimization, not supported by the tree-ssa back-end.
33874 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
33876 * s-mastop-irix.adb: Update comments.
33878 * a-except.adb (Exception_Information): Raise Constraint_Error if
33879 exception Id is Null_Id.
33880 This is required behavior, which is more reliably and clearly checked
33881 at the top level interface level.
33883 2004-07-26 Javier Miranda <miranda@gnat.com>
33885 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
33886 call if a component has no default_expression and the box is used.
33888 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
33889 default_expression and you use box, it behaves as if you had declared a
33890 stand-alone object.
33891 (Resolve_Record_Aggregate): If a component has no default_expression and
33892 you use box, it behaves as if you had declared a stand-alone object.
33894 * sem_ch10.adb (Install_Siblings): Do not make visible the private
33895 entities of private-with siblings.
33897 2004-07-26 Ed Schonberg <schonberg@gnat.com>
33899 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
33900 for a component of an itype, set the parent pointer for analysis,
33901 there is no list in which to insert it.
33903 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
33904 bona-fide renamings, not for inherited operations.
33906 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
33907 actual for a formal that is an access parameter, create local
33908 finalization list even if the expression is not an aggregate.
33910 2004-07-26 Ed Schonberg <schonberg@gnat.com>
33913 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
33914 Diagnose properly illegal subprogram renamings that are library units.
33916 2004-07-26 Ed Schonberg <schonberg@gnat.com>
33919 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
33920 conversion rewritten as an unchecked conversion, check that original
33921 expression is a variable.
33923 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
33924 unchecked_conversion, create new node rather than rewriting in place,
33925 to preserve original construct.
33927 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33929 * gigi.h (gnat_expand_body): Deleted.
33931 * Make-lang.in: (trans.o): Depends on function.h.
33933 * misc.c: (gnat_expand_body): Moved to here.
33935 * trans.c (gnat_expand_body_1): Deleted.
33936 (gnat_expand_body): Moved from here.
33937 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
33938 (add_stmt): Check for marked visited with global_bindings_p.
33939 (gnat_gimplify_expr, case COMPONENT_REF): New case.
33940 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
33942 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
33943 VIEW_CONVERT_EXPR if not operation type.
33945 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
33948 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
33949 changes: reformatting of negation operators, removing unneeded
33950 inequality comparison with zero, converting equality comparisons with
33951 zero to negations, changing int/0/1 to bool/false/true, replace calls
33952 to gigi_abort with abort, and various other similar changes.
33954 2004-07-26 Vincent Celier <celier@gnat.com>
33956 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
33959 * make.adb (Gnatmake): Fail when a library is not present and there is
33960 no object directory.
33962 * mlib-prj.adb (Check_Library): No need to check if the library needs
33963 to be rebuilt if there is no object directory, hence no object files
33964 to build the library.
33966 * opt.ads (Setup_Projects): New Boolean flag.
33968 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
33970 Create directory when Kind /= "" and in "gnat setup". Report error if
33971 directory cannot be created.
33972 (Ada_Check): Create library interface copy dir if it does not exist
33973 and we are in "gnat setup".
33974 (Find_Sources): No error if in "gnat setup" and no Ada sources were
33976 (Language_Independent_Check): Create object directory, exec directory
33977 and/or library directory if they do not exist and we are in
33980 * vms_conv.ads: (Command_Type): New command Setup.
33982 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
33984 * vms_data.ads: Add qualifiers/switches for new built-in command
33987 2004-07-25 Richard Henderson <rth@redhat.com>
33989 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
33990 DECL_IGNORED_P on RESULT_DECL.
33992 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
33994 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
33995 allocation and potentially overflowing update with
33996 Tailored_Exception_Information. Use the sec-stack free procedural
33997 interface to output Exception_Information instead.
33999 * a-except.adb (To_Stderr): New subprogram for character, and string
34000 version moved from a-exextr to be visible from other separate units.
34001 (Tailored_Exception_Information): Remove the procedural version,
34002 previously used by the default Last_Chance_Handler and not any more.
34003 Adjust various comments.
34005 * a-exexda.adb: Generalize the exception information procedural
34006 interface, to minimize the use of secondary stack and the need for
34007 local buffers when the info is to be output to stderr:
34008 (Address_Image): Removed.
34009 (Append_Info_Character): New subprogram, checking for overflows and
34010 outputing to stderr if buffer to fill is of length 0.
34011 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
34012 (Append_Info_Address, Append_Info_Exception_Name,
34013 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
34014 Append_Info_Basic_Exception_Traceback,
34015 Append_Info_Exception_Information): New subprograms.
34016 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
34017 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
34018 Exception_Info_Maxlength, Exception_Name_Length,
34019 Exception_Message_Length): New subprograms.
34020 (Exception_Information): Use Append_Info_Exception_Information.
34021 (Tailored_Exception_Information): Use
34022 Append_Info_Basic_Exception_Information.
34023 Export services for the default Last_Chance_Handler.
34025 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
34026 other separate units.
34028 2004-07-20 Vincent Celier <celier@gnat.com>
34030 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
34032 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34034 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
34035 emit itype references for the designated types of component types that
34036 are declared outside of the full record declaration, and that may
34037 denote a partial view of that record type.
34039 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34042 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
34043 which is the designated type in an access component declaration, to the
34044 list of incomplete dependents of the parent type, to avoid elaboration
34045 issues with out-of-scope subtypes.
34046 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
34047 full view of the parent.
34049 2004-07-20 Ed Schonberg <schonberg@gnat.com>
34052 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
34053 entities that are hidden, such as references to generic actuals
34054 outside an instance.
34056 2004-07-20 Javier Miranda <miranda@gnat.com>
34058 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
34059 support to the new notation.
34060 (Analyze_Selected_Component): Add call to Try_Object_Operation.
34062 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
34064 * s-taprob.adb: Adding the elaboration code required for initializing
34065 the tasking soft links that are common to the full and the restricted
34068 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
34069 restricted run time has been moved to the package
34070 System.Soft_Links.Tasking.
34072 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
34073 restricted run time has been moved to the package
34074 System.Soft_Links.Tasking.
34076 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
34078 * s-solita.ads, s-solita.adb: New files.
34080 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34082 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
34083 Case_Statement_to_gnu): Split off from gnat_to_gnu.
34084 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
34085 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
34086 Exception_Handler_to_gnu_zcx): Likewise.
34088 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
34090 * gigi.h (builtin_function): Declare.
34092 2004-07-15 Robert Dewar <dewar@gnat.com>
34094 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
34097 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
34098 access values as an example of a warning.
34100 * gnat_rm.texi: Document new attribute Has_Access_Values
34102 * gnat-style.texi: Document that box comments belong on nested
34105 * sem_util.ads (Has_Access_Values): Improved documentation
34107 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
34109 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
34110 (Process_Interface_Name): Call to this new procedure
34111 (Set_Extended_Import_Export_External_Name): Call to this new procedure
34113 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
34115 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
34117 * einfo.ads: Minor comment typo fixed
34119 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
34121 * snames.adb: Add _atcb.
34123 * snames.ads: Add Name_uATCB.
34125 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
34126 (in the expanded code) when using the restricted run time.
34128 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
34129 a in parameter in order to allow ATCBs to be preallocated (in the
34132 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
34133 order to allow ATCBs to be preallocated. In case of error, the ATCB is
34134 deallocated in System.Tasking.Stages.
34136 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
34137 order to allow ATCBs to be preallocated.
34139 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
34140 here. It was previously done in Initialize_ATCB.
34142 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
34144 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
34145 Restricted run time.
34147 * exp_ch3.adb: When using the Restricted run time, pass the
34148 preallocated Ada_Task_Control_Block when creating a task.
34150 2004-07-15 Ed Schonberg <schonberg@gnat.com>
34152 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
34153 function call that is itself an actual in an enclosing call, diagnose
34154 problem here rather than assuming that resolution will catch it.
34156 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
34157 the local copy of a generic unit for a formal package, and the generic
34158 is a child unit, install private part of ancestors before compiling
34159 private part of spec.
34161 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
34162 use scope entities rather than tree structures, to handle properly
34163 parent units that are instances rewritten as bodies for inlining
34166 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
34167 Remove_Parents): Handle properly a parent unit that is an
34168 instantiation, when the unit has been rewritten as a body for inlining
34171 * par.adb (Goto_List): Global variable to collect goto statements in a
34172 given unit, for use in detecting natural loops.
34174 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
34175 use in detecting natural loops.
34177 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
34178 backwards goto's, and rewrite as a infinite loop, to improve locality
34181 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
34182 subcomponent that includes an indexed reference, to prevent the
34183 generation of copies that would miscompile the desired assignment
34185 (Build_Task_Image_Decls): Add a numeric suffix to
34186 generated name for string variable, to avoid spurious conflicts with
34187 the name of the type of a single protected object.
34189 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
34190 loop with an explicit exit statement, to avoid generating an
34191 out-of-range value with 'Succ leading to spurious constraint_errors
34192 when compiling with -gnatVo.
34194 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
34196 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
34197 might not be analyzed yet, even if its Etype is already set (case of an
34198 unchecked conversion built using Unchecked_Convert_To, for example).
34199 If the prefix has already been analyzed, this will be a nop anyway.
34201 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
34202 controller type, or an assignment of a record type with controlled
34203 components, copy only user data, and leave the finalization chain
34204 pointers untouched.
34206 2004-07-15 Vincent Celier <celier@gnat.com>
34208 * make.adb (Collect_Arguments): Improve error message when attempting
34209 to compile a source not part of any project, when -x is not used.
34211 * prj.ads: (Defined_Variable_Kind): New subtype
34213 * prj-attr.adb (Register_New_Package): Two new procedures to register
34214 a package with or without its attributes.
34215 (Register_New_Attribute): Mew procedure to register a new attribute in a
34217 New attribute oriented subprograms: Attribute_Node_Id_Of,
34218 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34219 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34221 New package oriented subprograms: Package_Node_Id_Of,
34222 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34224 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
34226 (Package_Node_Id): Now a private, self initialized type
34227 (Register_New_Package): New procedure to register a package with its
34229 New attribute oriented subprograms: Attribute_Node_Id_Of,
34230 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
34231 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
34233 New package oriented subprograms: Package_Node_Id_Of,
34234 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
34236 * prj-dect.adb (Parse_Attribute_Declaration,
34237 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
34239 * prj-makr.adb (Make): Parse existing project file before creating
34240 other files. Fail if there was an error during parsing.
34242 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
34243 new spec of Prj.Attr.
34245 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
34246 to new spec of Prj.Attr.
34248 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34250 * utils2.c: Fix typo in comment.
34252 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34254 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
34255 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
34257 2004-07-14 Andreas Schwab <schwab@suse.de>
34259 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
34261 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34263 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
34265 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
34268 * misc.c (gnat_types_compatible_p): New function.
34269 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
34270 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
34272 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
34273 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
34274 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
34275 (mark_visited): Don't mark dummy type.
34276 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
34277 parameter, we must remove any LJM building from GNU_NAME.
34278 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
34279 (pos_to_constructor): Use int_const_binop.
34280 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
34283 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
34284 (gnat_pushlevel): Set TREE_USE on BLOCK node.
34285 (gnat_install_builtins): Add __builtin_memset.
34287 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
34289 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
34290 for a renaming, stabilize the initialization expression if we are at a
34291 local level. At the local level, uses of the renaming may be performed
34292 by a direct dereference of the initializing expression, and we don't
34293 want possible variables there to be evaluated for every use.
34295 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
34296 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
34297 them on the way. Account for the fact that we may introduce side
34298 effects in the process.
34300 2004-07-13 Richard Henderson <rth@redhat.com>
34302 * misc.c (default_pass_by_ref): Use pass_by_reference.
34304 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
34306 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
34307 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
34309 2004-07-08 Richard Henderson <rth@redhat.com>
34311 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
34314 2004-07-06 Vincent Celier <celier@gnat.com>
34316 * vms_conv.ads: Minor reformatting.
34317 Alphabetical order for enumerated values of type Command_Type, to have
34318 the command in alphabetical order for the usage.
34320 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
34321 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
34323 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
34325 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
34326 (Add_Archive_Path): Only add the global archive if there is one.
34327 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
34328 or not any object file to put in the global archive, and don't build
34329 a global archive if there is none.
34330 (X_Switches): New table
34331 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
34332 in the X_Switches table, if any.
34333 (Initialize): Make sure the X_Switches table is empty
34334 (Scan_Arg): Record -X switches in table X_Switches
34336 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
34338 * make.adb: Minor comment fix
34340 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
34341 invoked with directory information, add the directory in front of the
34344 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
34345 invoked with directory information, add the directory in front of the
34348 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
34349 when Keep_Temporary_Files is False.
34350 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
34351 directory information, add the directory in front of the path.
34352 When not on VMS, handle new switch -dn before the command to set
34353 Keep_Temporary_Files to True.
34354 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
34357 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
34358 invoked with directory information, add the directory in front of the
34361 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
34363 * snames.ads, snames.adb (Name_Stub): New name for the distributed
34366 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
34367 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
34369 * g-socket.adb (To_Timeval): Fix incorrect conversion of
34370 Selector_Duration to Timeval for the case of 0.0.
34372 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
34373 documentation from Evolve_And_Then.
34375 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
34377 * s-taprop-tru64.adb, s-taprop-os2.adb,
34378 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
34380 2004-07-06 Robert Dewar <dewar@gnat.com>
34382 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
34383 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
34384 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
34385 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
34386 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
34387 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
34388 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
34389 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
34390 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
34391 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
34392 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
34393 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
34394 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
34395 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
34396 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
34397 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
34398 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
34399 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
34400 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
34401 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
34402 vms_data.ads: Minor reformatting,
34403 Fix bad box comment format.
34405 * gnat_rm.texi: Fix minor grammatical error
34407 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
34409 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
34410 more cases of discriminated records to be recognized as not needing a
34412 (Has_Access_Values): New function.
34414 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
34416 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
34417 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
34418 with LRM terminology).
34419 Change terminology in comments primitive type => elementary type.
34421 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34424 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
34425 parameters do not impose any requirements on the presence of a body.
34427 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34430 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
34431 compilation unit and is in an open scope at the point of instantiation,
34432 assume that a body may be present later.
34434 2004-07-06 Ed Schonberg <schonberg@gnat.com>
34436 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
34437 Improve error message when specified size is not supported.
34439 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
34440 is never a primitive operation.
34442 2004-07-05 Andreas Schwab <schwab@suse.de>
34444 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
34445 RECORD_OR_UNION_CHECK.
34446 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
34448 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
34450 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
34451 dependency on xgnatugn, instead build it via a submake.
34452 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
34454 2004-07-04 Richard Henderson <rth@redhat.com>
34456 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
34458 2004-07-01 Richard Henderson <rth@redhat.com>
34460 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
34461 * utils.c (max_size): Likewise.
34463 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34465 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
34466 and rest_of_type_compilation; add arg to create_*_decl.
34467 (annotate_decl_with_node): Deleted.
34468 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
34469 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
34470 (get_current_block_context, gnat_pushdecl): New declarations.
34471 (gnat_init_stmt_group): Likewise.
34472 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
34473 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
34474 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
34475 (gnat_init): Call gnat_init_stmt_group.
34476 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
34477 (gnu_pending_elaboration_list): Deleted.
34478 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
34479 (gigi): Rearrange initialization calls and move some to last above.
34480 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
34481 Delete calls to add_decl_expr; add arg to create_*_decl.
34482 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
34483 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
34484 begin_subprog_body and call it.
34485 Don't push and pop ggc context.
34486 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
34487 (add_stmt): Remove handling of DECL_EXPR from here.
34488 If not in function, mark visited.
34489 (add_decl_expr): Put global at top level.
34490 Check for cases of DECL_INITIAL we have to handle here.
34491 (process_type): Add extra arg to create_type_decl.
34492 (build_unit_elab): Rework to just gimplify.
34493 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
34494 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
34495 (get_pending_elaborations, pending_elaborations_p): Likewise.
34496 (push_pending_elaborations, pop_pending_elaborations): Likewise.
34497 (get_elaboration_location, insert_elaboration_list): Likewise.
34498 (gnat_binding_level): Renamed from ada_binding_level.
34499 (init_gnat_to_gnu): Don't clear pending_elaborations.
34500 (global_bindings_p): Treat as global if no current_binding_level.
34501 (set_current_block_context): New function.
34502 (gnat_pushdecl): Renamed from pushdecl; major rework.
34503 All callers changed.
34504 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
34505 (finish_record_type): Call call pushdecl for stub decl.
34506 (function_nesting_depth): Deleted.
34507 (begin_subprog_body): Delete obsolete code.
34508 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
34510 2004-06-28 Robert Dewar <dewar@gnat.com>
34512 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34513 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
34514 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
34515 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
34516 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
34518 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
34519 deal with problem of inefficient slices on machines with strict
34520 alignment, when the slice is a component of a composite.
34522 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
34523 machines, we need the check there as well.
34525 2004-06-28 Ed Schonberg <schonberg@gnat.com>
34527 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
34528 determine safe copying direction for overlapping slice assignments
34529 when component is controlled.
34531 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
34532 formal derived type in the actual for a formal package are visible in
34533 the enclosing instance.
34535 2004-06-28 Ed Schonberg <schonberg@gnat.com>
34538 * sem_util.adb (Trace_Components): Diagnose properly an illegal
34539 circularity involving a private type whose completion includes a
34540 self-referential component.
34541 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
34542 renaming or an instantiation from an implicit derived operation.
34544 2004-06-28 Pascal Obry <obry@gnat.com>
34546 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
34548 (Library_File_Name_For): Idem.
34550 2004-06-28 Matthew Gingell <gingell@gnat.com>
34552 * g-traceb.ads: Add explanatory note on the format of addresses
34553 expected by addr2line.
34555 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
34557 * Makefile.in: Force debugging information on s-tasdeb.adb,
34558 a-except.adb and s-assert.adb needed by the debugger.
34560 2004-06-28 Vincent Celier <celier@gnat.com>
34562 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
34566 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
34568 * prj.adb: Minor reformatting
34569 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
34571 * prj.ads: Comment updates
34573 (Project_Data): Change Flag1 to Need_To_Build_Lib.
34574 Remove Flag2: not used.
34576 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
34579 * gnat_ugn.texi: Put a "null;" declaration in one project file example
34581 * gnat_rm.texi: Document Empty declarations "null;".
34583 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
34584 front of the linker options.
34585 (Link_Foreign): Put the global archives and the libraries in front of
34586 the linker options.
34588 2004-06-28 Javier Miranda <miranda@gnat.com>
34590 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
34591 (RTU_Loaded): Code cleanup
34592 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
34593 withed predefined units.
34595 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
34596 explicitly withed predefined units.
34597 Fix typo in comment
34599 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
34600 explicitly withed predefined units.
34602 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34604 * ada-tree.def (DECL_STMT): Deleted.
34605 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
34606 (DECL_STMT_VAR): Deleted.
34607 * decl.c: add_decl_stmt now add_decl_expr.
34608 * gigi.h: Likewise.
34609 * trans.c: Likewise.
34610 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
34611 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
34612 (add_stmt): Only handle padded type here.
34613 (add_stmt_with_node): Allow gnat_node to not be present.
34614 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
34615 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
34616 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
34617 make a SAVE_EXPR for the entire fat pointer.
34618 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
34619 (create_index_type): Make a DECL_EXPR.
34620 (end_subprog_body): Don't call allocate_struct_function here but
34623 2004-06-25 Pascal Obry <obry@gnat.com>
34625 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
34626 Relocatable from Build_Dynamic_Library call.
34628 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
34629 Relocatable are now synonym.
34631 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
34633 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
34634 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
34637 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
34638 Lib_Address and Relocatable.
34639 (Default_DLL_Address): Removed.
34641 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34642 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
34643 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
34644 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
34645 (Default_DLL_Address): Removed.
34647 * mlib-tgt-mingw.adb: Ditto.
34648 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
34650 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
34651 the initial thread stack size.
34653 * a-strmap.ads: Move package L to private part as it is not used in
34654 the spec. Found while reading code.
34656 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
34658 * tracebak.c: Introduce support for a GCC infrastructure based
34659 implementation of __gnat_backtrace.
34661 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
34662 any more. Use accessors instead. This eases maintenance and relaxes
34663 some alignment constraints.
34664 (_GNAT_Exception structure): Remove the Ada specific fields
34665 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
34667 (is_handled_by, __gnat_eh_personality): Replace component references to
34668 exception structure by use of the new accessors.
34670 * init.c (__gnat_initialize): Adjust comments to match the just
34671 reverted meaning of the -static link-time option.
34673 * adaint.c (convert_addresses): Arrange not to define a stub for
34674 mips-irix any more, as we now want to rely on a real version from a
34675 recent libaddr2line.
34677 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
34678 the personality routine can use them and not have to rely on a C
34679 counterpart of the record anymore. This simplifies maintenance and
34680 relaxes the constraint of having Standard'Maximum_Alignment match
34682 Update comments, and add a section on the common header alignment issue.
34684 2004-06-25 Geert Bosch <bosch@gnat.com>
34686 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
34687 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
34689 2004-06-25 Robert Dewar <dewar@gnat.com>
34691 * gnat_rm.texi: Fix section on component clauses to indicate that the
34692 restriction on byte boundary placement still applies for bit packed
34694 Add comment on stack usage from Initialize_Scalars
34696 * gnat_ugn.texi: Add documentation for -gnatyLnnn
34698 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
34699 limiting nesting level.
34701 * usage.adb: Add line for -gnatyLnnn switch
34703 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
34704 sem_ch13.adb, exp_aggr.adb: Minor reformatting
34706 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
34707 type as well as on the subtype. This corrects a problem in freeze in
34708 setting alignments of atomic types.
34710 * sem_eval.ads: Minor comment typo fixed
34712 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
34713 level. Minor reformatting.
34715 * fname.adb (Is_Predefined_File_Name): Require a letter after the
34716 minus sign. This means that file names like a--b.adb will not be
34717 considered predefined.
34719 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
34720 record Test new flag and give diagnostic for bad component clause.
34721 (Freeze_Entity): Set alignment of array from component alignment in
34722 cases where this is safe to do.
34724 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
34727 * cstand.adb: (Create_Standard): Set alignment of String to 1
34729 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
34731 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
34732 code in the common constrained array cases.
34734 * a-storio.adb: Change implementation to avoid possible alignment
34735 problems on machines requiring strict alignment (data should be moved
34736 as type Buffer, not type Elmt).
34738 * checks.adb (Apply_Array_Size_Check): Improve these checks by
34739 killing the overflow checks which we really do not need (64-bits is
34742 2004-06-25 Vincent Celier <celier@gnat.com>
34744 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
34745 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
34746 inconditionally for the main project.
34747 (Recursive_Add_Archives.Add_Archive_Path): New procedure
34748 (Link_Executables.Check_Time_Stamps): New procedure
34749 (Link_Executables.Link_Foreign): New procedure
34750 Changes made to reduce nesting level of this package
34751 (Check): New procedure
34752 (Add_Switches): When not in quiet output, check that a switch is not
34753 the concatenation of several valid switches. If it is, issue a warning.
34754 (Build_Global_Archive): If the global archive is rebuilt, linking need
34756 (Compile_Sources): Rebuilding a library archive does not imply
34757 rebuilding the global archive.
34758 (Build_Global_Archive): New procedure
34759 (Build_Library): New name for Build_Archive, now only for library
34761 (Check_Archive_Builder): New procedure
34762 (Create_Global_Archive_Dependency_File): New procedure
34763 (Gprmake): Call Build_Global_Archive before linking
34764 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
34766 (Scan_Arg): Display the Copyright notice when -v is used
34768 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
34771 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
34773 Add new GNAT LIST qualifier /FILES=
34774 Added qualifier /DIRECTORY= to GNAT METRIC
34775 Added qualifier /FILES= to GNAT METRIC
34776 Added qualifier /FILES to GNAT PRETTY
34778 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
34779 to take into account both versions of the switch.
34781 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
34782 always be the last switch to the gcc driver. Disable switch storing so
34783 that switches automatically added by the gcc driver are not put in the
34786 * prj.adb (Project_Empty): Take into account changes in components of
34789 * prj.ads (Languages_Processed): New enumaration value All_Languages.
34791 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
34792 used. Split Boolean component Ada_Sources_Present in two Boolean
34793 components Ada_Sources_Present and Other_Sources_Present.
34796 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
34797 instead of Sources_Present.
34798 (Set_Ada_Paths.Add.Recursive_Add): Ditto
34800 * prj-nmsc.adb: Minor reformatting
34801 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
34802 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
34803 Check_Ada_Naming_Scheme.
34804 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
34807 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
34809 Make sure that all cycles where there is at least one "limited with"
34811 (Parse_Single_Project): New Boolean parameter In_Limited
34813 * prj-proc.adb (Recursive_Check): When Process_Languages is
34814 All_Languages, call first Prj.Nmsc.Ada_Check, then
34815 Prj.Nmsc.Other_Languages_Check.
34817 * prj-proc.adb (Process): Use Ada_Sources_Present or
34818 Other_Sources_Present (instead of Sources_Present) depending on
34821 * lang-specs.h: Keep -g and -m switches in the same order, and as the
34824 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
34825 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
34827 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
34830 * lib.ads (Disable_Switch_Storing): New procedure.
34832 * make.adb: Modifications to reduce nesting level of this package.
34833 (Check_Standard_Library): New procedure
34834 (Gnatmake.Check_Mains): New procedure
34835 (Gnatmake.Create_Binder_Mapping_File): New procedure
34836 (Compile_Sources.Compile): Add switch -gnatez as the last option
34837 (Display): Never display -gnatez
34839 * Makefile.generic:
34840 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
34842 * gnatcmd.adb (Check_Project): New function
34843 (Process_Link): New procedure to reduce nesting depth
34844 (Check_Files): New procedure to reduce the nesting depth.
34845 For GNAT METRIC, include the inherited sources in extending projects.
34846 (GNATCmd): When GNAT LS is invoked with a project file and no files,
34847 add the list of files from the sources of the project file. If this list
34848 is too long, put it in a temp text files and use switch -files=
34849 (Delete_Temp_Config_Files): Delete the temp text file that contains
34850 a list of source for gnatpp or gnatmetric, if one has been created.
34851 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
34852 in the project file is too large, create a temporary text file that
34853 list them and pass it to the tool with "-files=<temp text file>".
34854 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
34856 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
34857 generated file is in not in Ada.
34859 * gnatls.adb: Remove all parameters And_Save that are no longer used.
34860 (Scan_Ls_Arg): Add processing for -files=
34861 (Usage): Add line for -files=
34863 * g-os_lib.adb (On_Windows): New global constant Boolean flag
34864 (Normalize_Pathname): When on Windows and the path starts with a
34865 directory separator, make sure that the resulting path will start with
34868 * clean.adb (Clean_Archive): New procedure
34869 (Clean_Project): When there is non-Ada code, delete the global archive,
34870 the archive dependency files, the object files and their dependency
34871 files, if they exist.
34872 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
34874 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
34876 * sinfo.ads: Fix typo in comment.
34878 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
34879 the TSS for remote access-to-subprogram types, since these TSS are
34880 always present once the type has been analyzed.
34881 (RAS_E_Dereference): Same.
34883 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
34884 reference raises Bad_Attribute, mark the reference as analyzed so the
34885 node (and any children resulting from rewrites that could have occurred
34886 during the analysis that ultimately failed) is not analyzed again.
34888 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
34890 * exp_dist.adb: Minor comment fix.
34892 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
34893 type is an anonymous access type, no unchecked deallocation of the
34894 allocated object can occur. If the object is controlled, attach it with
34895 a count of 1. This allows attachment to the Global_Final_List, if
34896 no other relevant list is available.
34897 (Get_Allocator_Final_List): For an anonymous access type that is
34898 the type of a discriminant or record component, the corresponding
34899 finalisation list is the one of the scope of the type.
34901 2004-06-25 Ed Schonberg <schonberg@gnat.com>
34903 * sem_ch3.adb (Replace_Type): When computing the signature of an
34904 inherited subprogram, use the first subtype if the derived type
34905 declaration has no constraint.
34907 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
34908 before applying previous optimization. Minor code cleanup.
34910 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
34911 placed at the beginning of an unpacked record without explicit
34912 alignment, a slice of it will be aligned and does not need a copy when
34915 2004-06-25 Ed Schonberg <schonberg@gnat.com>
34919 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
34920 reference is written with expressions mimicking parameters.
34922 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
34925 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
34926 STEP 2a. The constraints of a full type declaration of a derived record
34927 type are checked for conformance with those declared in the
34928 corresponding private extension declaration. The message
34929 "not conformant with previous declaration" is emitted if an error is
34932 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
34934 * g-traceb.ads: Document the need for -E binder switch in the spec.
34936 * g-trasym.ads: Document the need for -E binder switch in the spec.
34938 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
34940 * sem_prag.adb: Add handling of pragma Detect_Blocking.
34942 * snames.h, snames.ads, snames.adb: Add entry for pragma
34945 * s-rident.ads: Change reference to pragma Detect_Blocking.
34947 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
34950 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
34951 to indicate whether pragma Detect_Blocking is active.
34953 * par-prag.adb: Add entry for pragma Detect_Blocking.
34955 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
34956 of not handling WITH.
34957 Note that this replaces the previous update which was incorrect.
34959 2004-06-25 Javier Miranda <miranda@gnat.com>
34961 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
34962 use-clauses to have a clean environment.
34964 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
34965 the installation of the use-clauses to stablish a clean environment in
34966 case of compilation of a separate unit; otherwise the call to
34967 use_one_package is protected by the barrier Applicable_Use.
34969 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
34970 the installation of the use-clauses to stablish a clean environment in
34971 case of compilation of a separate unit.
34972 (End_Use_Clauses): Minor comment cleanup.
34974 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
34976 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
34978 2004-06-23 Richard Henderson <rth@redhat.com>
34980 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
34982 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34984 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
34985 now bool instead of int.
34986 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
34987 * trans.c (gnu_switch_label_stack): New function.
34988 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
34989 elaboration of renamed entity returns.
34990 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
34991 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
34992 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
34993 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
34994 DECL_SIZE_UNIT and simplify variable-sized case.
34995 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
34996 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
34997 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
34998 (build_unit_elab): Disable for now.
34999 * utils.c (mark_visited): New function.
35000 (pushdecl): Walk tree to call it for global decl.
35001 (update_pointer_to): Update all variants of pointer and ref types.
35002 Add arg to COMPONENT_REF.
35003 (convert): Likewise.
35004 Move check for converting between variants lower down.
35005 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
35006 (build_allocator): Don't force type of MODIFY_EXPR.
35007 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
35008 put_var_into_stack.
35010 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35012 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
35013 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
35014 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
35016 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
35017 all callers changed.
35018 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
35019 the way that EXIT_STMT finds the loop label.
35020 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
35021 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
35022 (add_stmt): Use annotate_with_locus insted of setting directly.
35023 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
35024 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
35025 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
35026 (build_vms_descriptor): Add extra args to ARRAY_REF.
35027 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
35028 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
35030 (build_binary_op): Don't make explicit CONVERT_EXPR.
35031 Add extra rgs to ARRAY_REF.
35033 2004-06-14 Pascal Obry <obry@gnat.com>
35035 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
35036 Windows. Fix minor typo.
35038 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
35039 which is now supported on Windows. With this implementation using the
35040 Library Project feature is no different on Windows than on UNIX.
35042 2004-06-14 Vincent Celier <celier@gnat.com>
35044 * makegpr.adb (Compile_Sources): Nothing to do when there are no
35047 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
35049 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
35050 found, show the project name and the path of the previously parsed
35053 2004-06-14 Ed Schonberg <schonberg@gnat.com>
35055 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
35056 array, avoid copying the actual before the call.
35058 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
35060 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
35061 Instead, allocate memory on worst-case alignment assumptions, and then
35062 return an aligned address within the allocated zone.
35064 2004-06-14 Robert Dewar <dewar@gnat.com>
35066 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
35067 elab entities in predefined units in No_Run_Time_Mode.
35068 (Gen_Adainit_C): Same fix
35069 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
35070 units in No_Run_Time_Mode
35071 (Gen_Elab_Calls_C): Same fix
35073 * symbols-vms-alpha.adb: Minor reformatting
35075 * g-debpoo.ads: Minor reformatting
35077 * lib.adb (In_Same_Extended_Unit): Version working on node id's
35079 * lib.ads (In_Same_Extended_Unit): Version working on node id's
35081 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
35084 * make.adb: Minor reformatting
35086 * par-ch12.adb: Minor reformatting
35088 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
35090 * prj-strt.adb: Minor reformatting
35092 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
35095 * sem_attr.adb: Minor reformatting
35097 * sem_ch7.adb: Minor reformatting
35099 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
35100 for type in the same unit as the object declaration.
35102 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
35103 static string expressions and not just string literals.
35105 (Set_Warning): Reset restriction warning flag for restriction pragma
35106 Implement pragma Profile_Warnings
35107 Implement pragma Profile (Restricted)
35108 Give obolescent messages for old restrictions and pragmas
35110 * snames.h, snames.ads, snames.adb: Add new entry for pragma
35113 * s-rident.ads: Add declarations for restrictions required by profile
35114 Restricted and profile Ravenscar.
35116 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
35118 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
35119 configuration pragmas.
35121 2004-06-11 Vincent Celier <celier@gnat.com>
35123 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
35124 gnatsym, when symbol policy is Restricted.
35126 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
35127 gnatsym, when symbol policy is Restricted.
35129 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
35130 read the symbol file.
35131 (Finalize): Fail in symbol policy Restricted if a symbol in the original
35132 symbol file is not in the object files. Do not create a new symbol file
35133 when symbol policy is Restricted.
35135 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
35138 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
35140 (Usage): Line for new switch -R
35142 * make.adb (Initialize): When the platform is not VMS, add the
35143 directory where gnatmake is invoked in the front of the path, if
35144 gnatmake is invoked with directory information. Change the Scan_Args
35145 while loop to a for loop.
35146 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
35147 if Depth is equal or greater than the proposed depth, there is nothing
35149 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
35152 * prj.ads: Add new symbol policy Restricted.
35154 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
35155 with the new parameters Check_All_Labels and Case_Location.
35157 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
35158 (Library_Symbol_File needs to be defined).
35160 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
35161 and Case_Location If Check_All_Labels is True, check that all values of
35162 the string type are used, and output warning(s) if they are not.
35164 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
35167 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
35169 * gnat_ugn.texi: Update documentation about the library directory in
35172 * makegpr.adb (Display_Command): In verbose mode, also display the
35173 value of the CPATH env var, when the compiler is gcc.
35174 (Initialize): Change the Scan_Args while loop to a for loop
35175 (Compile_Individual_Sources): Change directory to object directory
35176 before compilations.
35178 * symbols.ads: New symbol policy Restricted.
35180 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
35182 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
35183 is now taken care of internally in the Exception_Propagation package
35184 and does not require clients assistance any more.
35186 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
35187 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
35188 functions. Helpers to maintain a predicate required in the handling of
35189 occurrence transfer between tasks.
35190 This is now handled internally and does not require clients assistance
35191 for the setup/propagate separation anymore.
35192 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
35193 allocation strategy, handle the Setup_And_Not_Propagated predicate and
35196 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
35197 raise_after_setup, now that everything is handled internally within the
35198 setup/propagation engine.
35200 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
35202 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
35203 Add additional conditions for the case of an actual being a simple
35204 name or literal. Improve inlining by preventing the generation
35205 of temporaries with a short lifetime (one use).
35207 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
35210 * einfo.ads: Minor comment updates for Has_Completion and
35211 E_Constant list of flags.
35213 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
35214 and constant redeclarations now set the Has_Completion flag of their
35215 defining identifiers.
35217 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
35218 Inspect_Deferred_Constant_Completion.
35219 Used to detect private deferred constants that have not been completed
35220 either by a constant redeclaration or pragma Import. Emits error message
35221 "constant declaration requires initialization expression".
35223 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
35224 completes a deferred constant.
35226 2004-06-11 Geert Bosch <bosch@gnat.com>
35228 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
35230 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
35231 calculating exponent for scaling denormal numbers.
35232 (Leading_Part): Properly raise Constraint_Error for zero or negative
35234 (Remainder): Properly raise Constraint_Error for zero divisor.
35236 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
35238 * sem_util.adb: Minor reformatting.
35240 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
35241 dereference when accessing the entry parameter record.
35242 (Check_Array_Type): Always check for possible implicit dereference.
35243 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35244 Abort if a pointer is still present (denoting that an implicit
35245 dereference was left in the tree by the front-end).
35247 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
35248 dereference when accessing the entry parameter record.
35249 (Check_Array_Type): Always check for possible implicit dereference.
35250 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
35251 Abort if a pointer is still present (denoting that an implicit
35252 dereference was left in the tree by the front-end).
35254 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
35256 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
35257 message, like the compiler itself does. Easier to parse the output.
35259 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
35261 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
35262 be base names, and not includes directories.
35264 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
35266 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
35267 so that dependencies are properly taken into account by make.
35269 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
35272 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
35273 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
35275 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
35277 * Makefile.in (install-gnatlib): install target-specific run-time files.
35279 * Make-lang.in: Remove obsolete targets.
35281 2004-06-11 Ed Schonberg <schonberg@gnat.com>
35283 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
35284 specification, to catch misuses of program unit names.
35286 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
35287 superfluous conversions in an instance.
35289 2004-06-11 Ed Schonberg <schonberg@gnat.com>
35292 * sem_ch12.adb (Save_References): If operator node has been folded to
35293 enumeration literal, associated_node must be discarded.
35295 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
35297 * s-stchop-vxworks.adb: Add required pragma Convention to
35298 Task_Descriptor because it is updated by a C function.
35300 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
35303 * Makefile.in: Remove target specific SO_OPT on IRIX
35305 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35307 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
35308 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
35309 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
35310 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
35311 (STMT_STMT, USE_STMT): New statement codes.
35312 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
35313 * ada-tree.h: Reflect above changes.
35314 (struct tree_loop_id): Deleted.
35315 (union lang_tree_node, struct lang_decl, struct lang_type):
35316 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
35317 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
35318 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
35319 (IS_ADA_STMT): New macro.
35320 * decl.c (annotate_decl_with_node): New function.
35321 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
35322 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
35323 Call add_stmt_with_node to do needed assignments.
35324 Add call to update setjmp buffer directly, not via EXPR_STMT.
35325 (maybe_variable): Argment GNAT_NODE deleted.
35326 * gigi.h (maybe_variable): Likewise.
35327 (make_transform, add_stmt_with_node, set_block_for_group): New.
35328 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
35329 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
35330 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
35331 (set_lineno, set_lineno_from_sloc): Likewise.
35332 (record_code_position, insert_code_for): Likewise.
35333 (gnat_poplevel): Now returns void.
35334 (end_subprog_body): Now takes argument.
35335 * misc.c (cgraph.h, tree-inline.h): New includes.
35336 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
35337 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
35338 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
35339 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
35340 (gnat_parse_file): Don't set immediate_size_expand.
35341 Call cgraph functions.
35342 (gnat_expand_expr): Remove most cases.
35343 (record_code_position, insert_code_for): Remove from here.
35344 * trans.c (toplev.h, tree-gimple.h): Now included.
35345 (discard_file_names): Deleted.
35346 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
35347 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
35348 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
35349 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
35350 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
35351 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
35352 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
35353 (set_block_for_group, add_stmt_list): Likewise.
35354 (start_stmt_group): Renamed from start_block_stmt.
35355 (end_stmt_group): Likewise, from end_block_stmt.
35356 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
35357 (gigi): Don't set discard_file_names or call set_lineno.
35358 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
35359 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
35360 Numerous changes throughout to reflect new names and complete
35361 function-at-a-time implementation.
35362 (gnat_expand_stmt): Delete or comment out all cases.
35363 (process_inlined_subprograms): Use add_stmt.
35364 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
35365 call set_lineno; also remove unneeded block handling.
35366 (process_type): Remove unneeded block handling.
35367 (build_unit_elab): Remove calls to deleted functions.
35368 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
35369 (tree-dump.h): Likewise.
35370 (struct ada_binding_level): Add field jmpbuf_decl.
35371 (gnat_define_builtin, gnat_install_builtins): New.
35372 (gnat_gimplify_function, gnat_finalize): Likewise.
35373 (gnat_poplevel): No longer return BLOCK, set it instead.
35374 Remove code dealing with nested functions.
35375 (gnat_init_decl_processing): Also set size_type_node.
35376 Call gnat_install_builtins.
35377 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
35378 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
35379 Remove special-case for "main".
35380 (end_subprog_body): Add arg and rework for tree-ssa.
35381 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
35382 Add case for BOOLEAN_TYPE.
35383 * utils2.c (rtl.h): Now include.
35384 (build_call_raise): Test Debug_Flag_NN directly.
35385 (build_call_alloc_dealloc): Don't use local stack allocation for now.
35386 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
35387 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
35389 2004-06-07 Robert Dewar <dewar@gnat.com>
35391 * a-direct.ads, einfo.ads: Minor comment updates
35393 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
35394 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
35395 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
35396 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
35397 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
35399 * s-interr-sigaction.adb: Remove unreferenced variable
35400 (Attached_Interrupts). Minor reformatting.
35401 Avoid use of variable I (replace by J).
35403 * par-ch10.adb: Fix text of one error message
35405 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
35406 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
35407 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
35408 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
35409 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
35410 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
35411 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
35412 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
35413 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
35414 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
35415 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
35418 2004-06-07 Doug Rupp <rupp@gnat.com>
35420 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
35422 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
35424 * mlib-tgt-vms-ia64.adb: New file.
35426 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
35427 Add mlib-tgt-vms-ia64.adb
35428 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
35429 Move to alpha specific ifeq section.
35430 Add VMS specific versions of symbols.adb
35431 Renaming of 5q vms files.
35433 * 5qsystem.ads renamed to system-vms_64.ads.
35435 2004-06-07 Vincent Celier <celier@gnat.com>
35437 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
35438 explain that when a time of day corresponding to the non existing hour
35439 on the day switching to DST is specified, Split may return a different
35442 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
35445 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
35446 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
35448 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
35450 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
35451 the linking options.
35452 (Build_Library.Check_Libs): On VMS, if there is a dependency on
35453 g-trasym.ads, set Gtrasymobj_Needed to True.
35455 * prj-attr.adb: Add new package Metrics for gnatmetric
35457 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
35458 canonical case to take into account files with upper case characters on
35460 (Ada_Check): Load the reference symbol file name in the name buffer to
35461 check it, not the symbol file name.
35463 * snames.ads, snames.adb: Add standard name Metrics (name of project
35464 file package for gnatmetric).
35466 * vms_conv.ads: Add Metric to Comment_Type
35468 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
35470 * vms_data.ads: Add qualifiers for GNAT METRIC
35472 * makegpr.adb (Link_Executables): Take into account the switches
35473 specified in package Linker of the main project.
35475 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
35477 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
35478 the index of the last element is Units.Last, not Units.Table'Last
35479 (which is usually not a valid index within the actually allocated
35480 storage for the table).
35482 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
35483 determines whether to generate a call to a checked storage pool
35484 Dereference action.
35485 Generate such a call only for a dereference that either comes from
35486 source, or is the result of rewriting a dereference that comes from
35489 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
35491 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
35493 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
35495 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
35496 file level, elaborate the stride for inner dimensions in alignment
35499 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
35502 2004-06-07 Javier Miranda <miranda@gnat.com>
35504 * exp_ch6.adb: Correct wrong modification in previous patch
35506 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
35508 * g-trasym.ads: Corrected comment to properly reflect level of support
35511 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
35513 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
35514 includes case of a variable referenced on the left hand side of an
35515 assignment, therefore remove redundant code. Variables and prefixes of
35516 indexed or selected components are now marked as referenced on left
35517 hand side. Warnings are now properly emitted when variables or prefixes
35518 are assigned but not read.
35520 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
35521 left hand side referenced variables. Private access types do not
35522 produce the warning "variable ... is assigned but never read".
35523 Add also additional checks to left hand side referenced variables.
35524 Aliased, renamed objects and access types do not produce the warning
35525 "variable ... is assigned but never read" since other entities may read
35526 the memory location.
35528 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
35530 * Makefile.in: In the powerpc/vxworks-specific section, restore
35531 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
35534 2004-06-07 Ed Schonberg <schonberg@gnat.com>
35536 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
35537 predefined operators.
35538 Removes spurious type errors from g-trasym-vms.adb.
35540 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
35541 distinct from the operator appearing in the source, call appropriate
35542 routine to insert conversions when needed, and complete resolution of
35544 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
35545 interpretations for rewritten right operand.
35546 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
35547 the other operand is overloaded and the context is a type conversion.
35549 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35551 * ada-tree.def (BLOCK_STMT): Now has two operands.
35554 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
35556 * gigi.h: (gnat_poplevel): Now returns a tree.
35558 * trans.c (end_block_stmt): Add arg; all callers changed.
35559 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
35560 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
35561 (add_stmt): Set TREE_TYPE.
35562 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
35563 (gnat_expand_stmt, case BREAK_STMT): New case.
35565 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
35567 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
35569 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
35570 procedure Set_Stack_Size that is not needed.
35572 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
35574 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
35575 used for gnatpp input file and for the files upon which it depends
35577 2004-06-07 Ben Brosgol <brosgol@gnat.com>
35579 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
35581 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
35583 * gnatvsn.ads: Bump version numbers appropriately.
35584 Add new build type.
35586 2004-06-07 Pascal Obry <obry@gnat.com>
35588 * gnat_ugn.texi: Improve comments about imported names and link names
35589 on Windows. Add a note about the requirement to use -k gnatdll's option
35590 when working with a DLL which has stripped stdcall symbols (no @nn
35593 2004-05-27 Vincent Celier <celier@gnat.com>
35595 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
35596 COMMENTS_LAYOUT=UNTOUCHED
35598 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
35599 symbols-vms-alpha.adb
35601 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
35603 * sem.ads: Clarify documentation on checks suppression.
35605 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
35607 2004-05-27 Ed Schonberg <schonberg@gnat.com>
35609 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
35610 the case of multiple derivations.
35611 (Is_Object_Reference): For a selected component, verify that the prefix
35612 is itself an object and not a value.
35614 * sem_ch12.adb (Same_Instantiated_Constant): New name for
35615 Same_Instantiated_Entity.
35616 (Same_Instantiated_Variable): Subsidiary to
35617 Check_Formal_Package_Instance, to recognize actuals for in-out generic
35618 formals that are obtained from a previous formal package.
35619 (Instantiate_Subprogram_Body): Emit proper error when
35620 generating code and the proper body of a stub is missing.
35622 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
35623 has a universal interpretation, do the disambiguation here.
35625 * exp_ch4.adb (Expand_N_Type_Conversion,
35626 Expand_N_Unchecked_Type_Conversion): Special handling when target type
35627 is Address, to avoid typing anomalies when Address is a visible integer
35630 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
35631 to determine whether a subprogram should not be marked Pure, even when
35632 declared in a pure package.
35634 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
35636 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
35638 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
35639 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
35640 Update the documentation about the Ravenscar profile, following the
35641 definition found in AI-249.
35643 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
35644 setting the Profile (Ravenscar). This must be done in addition to
35645 setting the required restrictions.
35647 * rtsfind.ads: Add the set of operations defined in package
35650 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
35653 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
35655 lang-specs.h: Always require -c or -S and always redirect to /dev/null
35656 if -gnatc or -gnats is passed.
35658 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
35660 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
35661 a significant reference. Warnings are now properly emitted when a
35662 discriminated type is not referenced.
35664 * lib-xref.adb (Generate_Reference): A deferred constant completion,
35665 record representation clause or record type discriminant does not
35666 produce a reference to its corresponding entity. Warnings are now
35667 properly emitted when deferred constants and record types are not
35670 2004-05-27 Geert Bosch <bosch@gnat.com>
35672 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
35673 Fixes ACATS Annex G tests.
35675 2004-05-27 Robert Dewar <dewar@gnat.com>
35677 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
35680 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
35682 * s-interr.adb (Server_Task): Take into account case of early return
35683 from sigwait under e.g. linux.
35685 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
35687 * gnat_ugn.texi: Add description for the new gnatpp options:
35688 -rnb - replace the original source without creating its backup copy
35689 -c0 - do not format comments
35691 2004-05-24 Geert Bosch <bosch@gnat.com>
35693 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
35694 with 192 bits of precision, sufficient to reduce a double-extended
35695 arguments X with a maximum relative error of T'Machine_Epsilon, for X
35696 in -2.0**32 .. 2.0**32.
35697 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
35698 reduction by the processor, which only uses a 68-bit approximation of
35700 (Tan): Always reduce arguments and compute function either using
35701 the processor's fptan instruction, or by dividing sin and cos as needed.
35703 2004-05-24 Doug Rupp <rupp@gnat.com>
35705 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
35706 gcc error on 32/64 bit VMS.
35708 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
35710 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
35711 since this is what we get for stack overflows although not documented
35713 Document the issues which may require adjustments to our signal
35716 2004-05-24 Ed Schonberg <schonberg@gnat.com>
35718 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
35719 enclosing dynamic scope if the instantiation is within a generic unit.
35721 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
35723 * exp_dbug.ads: Fix typo.
35725 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
35726 Rename it to its proper name: system-linux-ia64.ads
35727 (stamp-gnatlib1): Remove extra target specific run time files when
35728 setting up the rts directory.
35730 2004-05-24 Javier Miranda <miranda@gnat.com>
35732 * einfo.ads, einfo.adb (Limited_Views): Removed.
35733 (Limited_View): New attribute that replaces the previous one. It is
35734 now a bona fide package with the limited-view list through the
35735 first_entity and first_private attributes.
35737 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
35738 limited-private-with clause.
35739 (Install_Limited_Withed_Unit): Install the private declarations of a
35740 limited-private-withed package. Update the installation of the shadow
35741 entities according to the new structure (see Build_Limited_Views)
35742 (Build_Limited_Views): Replace the previous implementation of the
35743 limited view by a package entity that references the first shadow
35744 entity plus the first shadow private entity (required for limited-
35745 private-with clause)
35746 (New_Internal_Shadow_Entity): Code cleanup.
35747 (Remove_Limited_With_Clause): Update the implementation to undo the
35748 new work carried out by Build_Limited_Views.
35749 (Build_Chain): Complete documentation.
35750 Replace Ada0Y by Ada 0Y in comments
35753 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
35754 types the level of accessibility depends on the enclosing type
35757 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
35758 entities. Complete documentation of previous change.
35760 2004-05-24 Robert Dewar <dewar@gnat.com>
35762 * namet.adb: Minor reformatting
35763 Avoid use of name I (replace by J)
35764 Minor code restructuring
35766 * sem_ch6.adb: Minor reformatting
35768 * lib-writ.adb: Do not set restriction as active if this is a
35769 Restriction_Warning case.
35771 * sem_prag.adb: Reset restriction warning flag if real pragma
35772 restriction encountered.
35774 * s-htable.adb: Minor reformatting
35775 Change rotate count to 3 in Hash (improves hash for small strings)
35777 * 5qsystem.ads: Add comments for type Address (no literals allowed).
35779 * gnat_ugn.texi: Add new section of documentation "Code Generation
35780 Control", which describes the use of -m switches.
35782 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
35784 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
35785 through the DECL_INITIAL for renamed variables.
35787 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
35789 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
35791 2004-05-19 Joel Brobecker <brobecker@gnat.com>
35793 * exp_dbug.ads: Correct comments concerning handling of overloading,
35794 since we no longer use $ anymore.
35796 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
35798 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
35799 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
35800 with illegal subunits.
35802 2004-05-19 Ed Schonberg <schonberg@gnat.com>
35804 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
35805 body with front-end inlining enabled, check whether an inline pragma
35806 appears immediately after the body and applies to it.
35808 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
35809 enabled and the pragma appears after the body of the subprogram.
35811 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35813 Part of function-at-a-time conversion
35815 * misc.c (adjust_decl_rtl): Deleted.
35816 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
35819 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
35820 (add_decl_stmt, add_stmt, block_has_vars): New functions.
35821 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
35823 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
35824 when making a decl.
35825 (gnat_to_gnu_entity): Likewise.
35826 Use add_stmt to update setjmp buffer.
35827 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
35829 No longer call adjust_decl_rtl.
35830 (DECL_INIT_BY_ASSIGN_P): New macro.
35831 (DECL_STMT_VAR): Likewise.
35833 * trans.c (gigi): Call start_block_stmt to make the outermost
35835 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
35836 Call start_block_stmt and end_block_stmt temporarily.
35837 Use gnat_expand_stmt instead of expand_expr_stmt.
35838 (add_decl_stmt): New function.
35839 (tree_transform): Call it.
35840 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
35841 (end_block_stmt): Set type and NULL_STMT.
35842 (gnat_expand_stmt): Make recursize call instead of calling
35844 (gnat_expand_stmt, case DECL_STMT): New case.
35845 (set_lineno_from_sloc): Do nothing if global.
35846 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
35847 (start_block_stmt, add_stmt, end_block_stmt): New functions.
35848 (build_block_stmt): Call them.
35849 (gnat_to_code): Don't expand NULL_STMT.
35850 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
35852 (tree_transform): Likewise.
35853 (tree_transform, case N_Null_Statement): Return NULL_STMT.
35854 (gnat_expand_stmt, case NULL_STMT): New case.
35855 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
35858 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
35861 * utils.c (create_var_decl): Do not call expand_decl or
35863 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
35864 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
35866 (struct e_stack): Add chain_next to GTY.
35867 (struct binding_level): Deleted.
35868 (struct ada_binding_level): New struct.
35869 (free_block_chain): New.
35870 (global_binding_level, clear_binding_level): Deleted.
35871 (global_bindings_p): Rework to see if no chain.
35872 (kept_level_p, set_block): Deleted.
35873 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
35874 new data structure and work directly on BLOCK node.
35875 (gnat_poplevel): Similarly.
35876 (get_decls): Look at BLOCK_VARS.
35877 (insert_block): Work directly on BLOCK node.
35878 (block_has_var): New function.
35879 (pushdecl): Rework for new binding structures.
35880 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
35882 (build_subprog_body): Likewise.
35883 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
35885 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
35887 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
35888 (DECL_STMT_VAR): Likewise.
35890 2004-05-17 Robert Dewar <dewar@gnat.com>
35892 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
35895 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
35896 of restriction synonyums by using
35897 Restrict.Process_Restriction_Synonyms.
35899 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
35901 * s-restri.ads (Tasking_Allowed): Correct missing comment
35903 * s-rident.ads: Add entries for restriction synonyms
35905 * ali.adb: Fix some problems with badly formatted ALI files that can
35906 result in infinite loops.
35908 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
35909 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
35910 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
35911 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
35912 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
35913 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
35914 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
35915 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
35916 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
35917 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
35918 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
35919 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
35920 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
35921 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35922 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
35923 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
35924 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
35925 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
35926 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
35927 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
35928 to Task_Id (minor cleanup).
35930 2004-05-17 Vincent Celier <celier@gnat.com>
35932 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
35933 directory separator.
35935 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
35936 project being extended, if Languages is not declared in extending
35939 2004-05-17 Javier Miranda <miranda@gnat.com>
35941 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
35942 limited view of a visible sibling.
35944 2004-05-14 Robert Dewar <dewar@gnat.com>
35946 * gnat_ugn.texi: Minor change to -gnatS documentation
35948 * sprint.adb: Remove some instances of Assert (False) and for this
35949 purpose replace them by output of a ??? string.
35951 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
35954 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
35955 flag processing. This was suppressing required dependencies in
35956 No_Run_Time mode and is not needed since the binder does not generate
35957 references for things in libgnat anyway.
35959 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
35962 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
35964 * gnat_ugn.texi: Document AIX-specific issue with initialization of
35967 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
35968 action for the case of an actual parameter in an init proc call.
35970 2004-05-14 Ed Schonberg <schonberg@gnat.com>
35972 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
35973 subtype, check visible entities in base type.
35975 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
35976 actions if the object is a renaming.
35978 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
35979 Check_Formal_Package_Instance, to determine more precisely when the
35980 formal and the actual denote the same entity.
35982 2004-05-14 Javier Miranda <miranda@gnat.com>
35984 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
35986 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
35987 corresponding to a private_with must be removed from visibility; it
35988 will be made visible later, just before we analyze the private part of
35990 (Check_Private_Child_Unit): Allow private_with clauses in public
35992 (Install_Siblings): Make visible the private entities of private-withed
35994 (Install_Withed_Unit): Do not install the private withed unit if we
35995 are compiling a package declaration and the Private_With_OK flag was
35996 not set by the caller. These declarations will be installed later,
35997 just before we analyze the private part of the package.
35999 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
36000 during the evaluation of the expression that initializes the object,
36001 decorate it with the expected type to avoid cascade errors.
36004 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
36005 subprogram we have to install the private_with clauses after its
36006 specification has been analyzed (as documented in AI-262.TXT).
36008 * sem_ch8.adb (Has_Private_With): New function. Determines if the
36009 current compilation unit has a private with on a given entity.
36010 (Find_Direct_Name): Detect the Beaujolais problem described in
36013 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
36014 provides the functionality of the function Is_Ancestor that was
36015 previously available in sem_ch10. It has been renamed to avoid
36018 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
36020 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36022 * utils.c (build_vms_descriptor): Use SImode pointers.
36024 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
36026 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
36028 2004-05-14 GNAT Script <nobody@gnat.com>
36030 * Make-lang.in: Makefile automatically updated
36032 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
36034 Renaming of target specific files for clarity
36036 * Makefile.in: Rename GNAT target specific files.
36038 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
36039 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
36040 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
36041 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
36042 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
36043 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
36044 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
36045 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
36046 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
36047 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
36048 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
36049 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
36050 51osinte.adb, 51osinte.ads, 51system.ads,
36051 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
36052 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
36053 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
36054 56tpopsp.adb, 57system.ads, 58system.ads,
36055 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
36056 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
36057 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
36058 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
36059 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
36060 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
36061 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
36062 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
36063 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
36064 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
36065 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
36066 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
36067 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
36068 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
36069 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
36070 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
36071 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
36072 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
36073 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
36074 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
36075 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
36076 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
36077 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
36078 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
36079 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
36080 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
36081 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
36082 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
36083 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
36084 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
36085 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
36086 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
36087 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
36088 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
36089 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
36090 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
36091 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
36092 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
36093 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
36094 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
36096 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
36097 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
36098 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
36099 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
36100 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
36101 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
36102 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
36103 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
36104 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
36105 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
36106 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
36107 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
36108 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
36109 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
36110 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
36111 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
36112 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
36113 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
36114 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
36115 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
36116 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
36117 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
36118 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
36119 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
36120 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
36121 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
36122 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
36123 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
36124 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
36125 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
36126 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
36127 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
36128 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
36129 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
36130 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
36131 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
36132 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
36133 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
36134 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
36135 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
36136 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
36137 s-osinte-vms.ads, s-osinte-vxworks.adb,
36138 s-osinte-vxworks.ads, s-osprim-mingw.adb,
36139 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
36140 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
36141 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
36142 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
36143 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
36144 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
36145 s-stchop-vxworks.adb, s-taprop-dummy.adb,
36146 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
36147 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
36148 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
36149 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
36150 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
36151 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
36152 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
36153 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
36154 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
36155 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
36156 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
36157 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
36158 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
36159 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
36160 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
36161 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
36162 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
36163 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
36164 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
36165 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
36166 system-irix-o32.ads, system-linux-x86_64.ads,
36167 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
36168 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
36169 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
36170 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
36171 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
36172 system-vxworks-mips.ads, system-vxworks-ppc.ads,
36173 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
36176 2004-05-13 Zack Weinberg <zack@codesourcery.com>
36178 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
36180 2004-05-13 Diego Novillo <dnovillo@redhat.com>
36182 Merge from tree-ssa-20020619-branch.
36184 * config-lang.in (boot_language, build_by_default): Set
36186 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
36187 (max_size): Add static chain op for call_expr.
36189 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
36192 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
36194 2004-05-11 Roger Sayle <roger@eyesopen.com>
36196 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
36199 2004-05-10 Doug Rupp <rupp@gnat.com>
36201 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
36204 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
36206 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
36208 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
36209 Fixes undefined symbols in IA64 gnatlib.
36211 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
36213 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
36214 Short_Address). This will be moved to system.auxdec.
36216 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
36218 * sem_util.adb: Replace test for presence of a node that is always
36219 present with a call to Discard_Node.
36221 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
36222 Analyze on the library unit node after generation of distribution stub
36223 constructs. The call was a no-op because Unit_Node has already been
36224 Analyzed, and the tree fragments for the distribution stubs are
36225 analyzed as they are inserted in Exp_Dist.
36226 Update comment regarding to distribution stubs to reflect that we
36227 do not generate stub in separate files anymore.
36229 * einfo.ads: Clarify the fact that a tagged private type has the
36230 E_Record_Type_With_Private Ekind.
36232 * erroutc.adb: Minor reformatting
36234 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
36235 values if line length is increased using -gnatyM (noticed during code
36238 * eval_fat.adb: Minor reformatting
36239 Put spaces around exponentiation operator
36241 2004-05-10 Ed Schonberg <schonberg@gnat.com>
36244 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
36245 has been rewritten as an explicit dereference, retrieve type of
36246 original node to check for possibly unconstrained record type.
36248 2004-05-10 Ed Schonberg <schonberg@gnat.com>
36250 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
36251 overriding, use the operation of the parent unconditionally.
36253 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
36254 operation when either operand is a literal, to avoid further
36257 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
36258 overridden by a previous explicit declaration, mark the previous entity
36261 * sem_disp.adb (Check_Dispatching_Operation): New predicate
36262 Is_Visibly_Controlled, to determine whether a declaration of a
36263 primitive control operation for a derived type overrides an inherited
36264 one. Add warning if the explicit declaration does not override.
36266 2004-05-10 Vincent Celier <celier@gnat.com>
36268 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
36269 some cases when the sources are no longer present.
36271 * make.adb (Collect_Arguments): Fail if an external source, not part
36272 of any project need to be compiled, when switch -x has not been
36275 * makeusg.adb: Document new switch -x
36277 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
36278 defaulted to False.
36280 * switch-m.adb (Scan_Make_Switches): New switch -x
36282 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
36283 gnatmake switch -x.
36285 * gnat_ugn.texi: Document new gnatmake switch -x
36287 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
36289 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
36291 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
36292 (process_attributes): Likewise.
36294 2004-05-10 Joel Brobecker <brobecker@gnat.com>
36296 * s-inmaop.ads: Fix spelling mistake in one of the comments.
36298 2004-05-10 Robert Dewar <dewar@gnat.com>
36300 * gnat_ugn.texi: Document that for config pragma files, the maximum
36301 line length is always 32767.
36303 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
36304 literals is now allowed.
36306 * gnat-style.texi: Remove statement about splitting long lines before
36307 an operator rather than after, since we do not follow this rule at all.
36308 Clarify rule (really lack of rule) for spaces around exponentiation
36310 * sem_elim.adb: Allow concatenation of string literals as well as a
36311 single string literal for pragma arguments.
36313 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
36315 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
36316 written for append case.
36318 * frontend.adb: Changes to avoid checking max line length in config
36321 * g-os_lib.ads: Minor reformatting
36323 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
36324 wrong in any case. Instead use standard value. Noticed during code
36327 * opt.ads (Max_Line_Length): New field, used to implement removal of
36328 limitation on length of lines when scanning config pragma files.
36330 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
36331 makeutl.ads, makeutl.adb: Minor reformatting
36333 * scn.adb: Do not check line length while scanning config pragma files
36334 Do not check line length while scanning out license information
36336 * scng.adb: Changes to avoid line length checks while parsing config
36339 2004-05-10 GNAT Script <nobody@gnat.com>
36341 * Make-lang.in: Makefile automatically updated
36343 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
36345 * osint.adb (Find_Program_Name): Fix handling of VMS version
36348 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
36350 * g-os_lib.ads (Invalid_Time): New constant
36352 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
36353 return OS_Time instead of time_t to match what is imported by Ada.
36354 Now return -1 if the file doesn't exist, instead of a random value
36356 2004-05-05 Robert Dewar <dewar@gnat.com>
36358 * usage.adb: Add line for -gnatR?s switch
36360 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
36362 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
36363 and for Match (Data_First, Data_last)
36365 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
36366 written when we are dealing with multi-unit files.
36368 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
36370 * Makefile.in: Remove unused targets and variables.
36372 2004-05-05 Vincent Celier <celier@gnat.com>
36374 * switch-m.adb: New gnatmake switch -eI
36376 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
36377 of new gnatmake switch -eInnn.
36379 * makegpr.adb: Take into account new parameters Index and Src_Index in
36382 * clean.adb: Implement support for multi-unit sources, including new
36385 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
36388 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
36389 (Extract_From_Q): New out parameter Index
36390 (Mark, Is_Marked): Subprograms moved to Makeutl
36391 (Switches_Of): New parameter Source_Index
36392 (Add_Switch): New parameter Index
36393 (Check): New parameter Source_Index
36394 (Collect_Arguments): New parameter Source_Index
36395 (Collect_Arguments_And_Compile): New parameter Source_Index
36396 (Compile): New parameter Source_Index
36397 Put subprograms in alphabetical order
36398 Add support for multi-source sources, including in project files.
36400 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
36401 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
36404 * makeusg.adb: New gnatmake switch -eInnn
36406 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
36409 * opt.ads (Main_Index): New variable, defaulted to 0.
36411 * osint.ads, osinte.adb (Add_File): New parameter Index
36412 (Current_Source_Index): New function
36414 * prj.adb: Take into account new components Index and Src_Index
36416 * prj.ads (String_Element): New component Index
36417 (Variable_Value): New component Index
36418 (Array_Element): New component Src_Index
36420 * prj-attr.adb: Indicate that optional index may be specified for
36421 attributes Main, Executable, Spec, Body and some of Switches.
36423 * prj-attr.ads (Attribute_Kind): New values for optional indexes
36424 (Attribute_Record): New component Optional_Index
36426 * prj-com.ads (File_Name_Data): New component Index
36428 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
36430 * prj-env.adb (Put): Output optional index
36432 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
36433 attributes Spec and Body.
36435 * prj-nmsc.adb: Process optional indexes
36437 * prj-pp.adb: Ouput "at" for optional indexes
36439 * prj-proc.adb: Take into account optional indexes
36441 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
36442 Optional_Index. For string literal,
36443 process optional index when Optional_Index is True.
36444 (Parse_Expresion): New Boolean parameter Optional_Index
36446 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
36447 (Set_Source_Index_Of): New procedure
36449 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
36452 * prj-util.ads (Executable_Of): New parameter Index
36453 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
36454 New parameter Src_Index, defaulted to 0.
36456 2004-05-05 Ed Schonberg <schonberg@gnat.com>
36459 * sem_ch3.adb (Access_Definition): If this is an access parameter
36460 whose designated type is imported through a limited_with clause, do
36461 not add the enclosing subprogram to the list of private dependents of
36464 2004-05-05 Ed Schonberg <schonberg@gnat.com>
36467 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
36468 a limited_with clause, and the other is its non-limited view.
36470 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
36472 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
36474 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
36475 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
36476 Stand.Boolean_Literals to produce references to entities
36477 Standard_False and Standard_True from compile-time computed boolean
36480 * stand.ads (Boolean_Literals): New variable, provides the entity
36481 values for False and True, for use by the expander.
36483 2004-05-05 Doug Rupp <rupp@gnat.com>
36485 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
36486 5vinmaop.adb: Unchecked convert Short_Address vice Address
36488 * adaint.c, raise.c: Caste CRTL function return value
36489 to avoid gcc error on 32/64 bit IVMS.
36491 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
36494 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
36496 * 5qsystem.ads (Address): Declare as Long_Integer
36497 (Short_Address): Declare as 32 bit subtype of Address
36498 Declare abstract address operations to avoid gratuitous ambiguities.
36500 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
36502 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
36503 instead of the old Boolean_Entry_Barriers.
36504 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
36506 2004-05-05 GNAT Script <nobody@gnat.com>
36508 * Make-lang.in: Makefile automatically updated
36510 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
36512 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
36514 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
36517 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
36518 alone. Replacing object references by literals is inappropriate in a
36519 so low level context.
36521 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
36523 * a-exexpr.adb: Add comments
36525 2004-05-03 Joel Brobecker <brobecker@gnat.com>
36527 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
36528 declare the Ancestor_Tags array in Type_Specific_Data with a small size
36529 without risking a bounds check error when accessing one of its
36531 (Type_Specific_Data): Define Ancestor_Tags as a small array.
36532 This prevents us from hitting a limitation during the debug info
36533 generation when using stabs.
36535 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
36537 This prevents us from hitting a limitation during the debug info
36538 generation when using stabs.
36540 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
36542 lang-specs.h: Remove -gnatz* from specs.
36544 2004-05-03 Vincent Celier <celier@gnat.com>
36546 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
36548 * Make-lang.in, Makefile.in: Add gprmake
36550 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
36552 * sem_aggr.adb: Fix typo in comment.
36554 2004-05-03 Robert Dewar <dewar@gnat.com>
36556 * make.adb: Minor reformatting
36558 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
36560 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
36561 so that it works when address is not a private type.
36563 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
36564 properly with rewritten unchecked conversions. This prevents
36565 order-of-elaboration issues that can otherwise arise.
36566 (Minimum_Size): Don't check size of access types under VMS
36568 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
36569 interpretations of integer literals as type System.Address.
36571 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
36572 (Is_Descendent_Of): New function
36574 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
36576 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
36577 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
36578 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
36580 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
36581 of the old Max_Entry_Queue_Depth.
36583 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
36584 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
36585 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
36587 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
36588 New entry for proper handling of Max_Entry_Queue_Depth.
36589 New entry for proper handling of No_Dynamic_Interrupts.
36591 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
36592 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
36593 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
36594 the GNAT specific restriction Max_Entry_Queue_Depth.
36595 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
36596 the GNAT specific restriction No_Dynamic_Interrupts.
36598 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
36599 instead of the old Boolean_Entry_Barriers.
36600 Use the new restriction No_Dynamic_Attachment instead of the old
36601 No_Dynamic_Interrupts.
36603 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
36604 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
36606 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
36607 of the old Max_Entry_Queue_Depth.
36609 2004-05-03 GNAT Script <nobody@gnat.com>
36611 * Make-lang.in: Makefile automatically updated
36613 2004-04-29 Ed Schonberg <schonberg@gnat.com>
36615 * checks.adb (Enable_Range_Check): If the prefix of an index component
36616 is an access to an unconstrained array, perform check unconditionally.
36618 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36620 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
36623 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
36625 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
36626 alternate stack setting. There was no support for the tasking cases
36627 and the changes eventually caused a number of side-effect failures in
36628 the non-tasking case too.
36630 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
36632 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
36635 2004-04-29 Vincent Celier <celier@gnat.com>
36637 * make.adb (Gnatmake): Increase max size of argument array for
36638 gnatbind for the potential addition of -F.
36639 If there are Stand-Alone Library projects, invoke gnatbind with -F to
36640 be sure that elaboration flags will be checked.
36642 * switch-c.adb: Correct call to Scan_Pos for -gnateI
36644 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
36646 * sem_warn.adb (Check_References): Move '<access-variable> may be
36647 null' warning out of under Warn_On_No_Value_Assigned.
36649 2004-04-29 Ed Falis <falis@gnat.com>
36651 * gnat_ugn.texi: Fixed texi error
36653 2004-04-29 Robert Dewar <dewar@gnat.com>
36655 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
36656 abstract operations if they come from predefined files.
36658 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
36661 * s-addope.adb: Correct obvious error in mod function
36663 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
36665 * Makefile.in: Add target pairs for powerpc darwin*
36668 * a-intnam-darwin.ads, s-osinte-darwin.adb,
36669 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
36671 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
36673 * Makefile.in: Add target macro definitions for s390*-linux*.
36674 * system-linux-s390.ads: New file.
36675 * system-linux-s390x.ads: New file.
36677 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
36679 * gnat_ugn.texi: Correct argument to @setfilename.
36681 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
36683 * a-exexpr.adb (Unwind_Word): New data type.
36684 (Unwind_Exception): Use it as type of Private1 and Private2.
36686 * raise.c (db_action_for): Fix debug printf.
36688 2004-04-27 Ed Schonberg <schonberg@gnat.com>
36690 * a-wtmoio.ads: Formal type must be a modular type, not a signed
36693 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36695 * decl.c (gnat_to_gnu_entity, case object): Call
36696 __builtin_update_setjmp_buf.
36698 * gigi.h (update_setjmp_buf): Deleted.
36699 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
36701 * misc.c: (update_setjmp_buf): Deleted.
36703 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
36704 around block of RTL.
36706 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
36708 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
36710 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
36711 subprogram for which no pragma All_Calls_Remote applies, store the
36712 address of the real subprogram in the underlying record type, so local
36713 dereferences do not go through the PCS.
36715 2004-04-26 Robert Dewar <dewar@gnat.com>
36717 * i-c.ads: Add some type qualifications to avoid ambiguities when
36718 compiling with s-auxdec.ads and a non-private address type.
36720 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
36722 * Makefile.rtl: Fix error in previous check-in:
36723 Add s-addope.o to non tasking object list (rather than tasking object
36726 2004-04-26 Javier Miranda <miranda@gnat.com>
36728 * sem_aggr.adb: Fix typo in comments
36729 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
36730 Required to check the null-exclusion attribute.
36732 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
36733 case of anonymous access types in record and array components. For a
36734 component definition the level is the same of the enclosing composite
36737 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
36738 that are anonymous access types the level of accessibility depends on
36739 the enclosing type declaration. In order to have this information, set
36740 the scope of the anonymous access type to the enclosing record type
36742 (Array_Type_Declaration): In case of components that are anonymous
36743 access types the level of accessibility depends on the enclosing type
36744 declaration. In order to have this information, set the scope of the
36745 anonymous access type to the enclosing array type declaration.
36747 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
36750 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
36751 renaming of anonymous access-to-constant types allowed if and only if
36752 the renamed object is access-to-constant.
36754 * sem_util.adb (Type_Access_Level): In case of anonymous access types
36755 that are component_definition or discriminants of a nonlimited type,
36756 the level is the same as that of the enclosing component type.
36758 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
36760 * sem_elim.adb: Some minor code reorganization from code reading. Fix
36761 misprint in the function name (File_Name_Match).
36763 2004-04-23 Laurent Guerby <laurent@guerby.net>
36765 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
36768 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36770 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
36772 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
36774 * adaint.c (__gnat_try_lock): No longer requires that the parent
36775 directory be writable, the directory itself is enough.
36776 (gnat_is_absolute_path): Change profile, so that the call from
36777 GNAT.OS_Lib can be made more efficient.
36779 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
36780 from GNAT.OS_Lib can be made more efficient.
36782 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
36783 one copy of the file name. Found by code reading.
36785 2004-04-23 Vincent Celier <celier@gnat.com>
36787 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
36788 Correct documentation on gnatmake switches transmitted to the compiler
36790 * ali.ads: Minor comment fix
36792 2004-04-23 Javier Miranda <miranda@gnat.com>
36794 * sem_ch6.adb: (Confirming Types): Code cleanup
36796 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
36797 subprogram types: E_Anonymous_Access_Subprogram_Type and
36798 E_Anonymous_Access_Protected_Subprogram_Type.
36800 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
36802 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
36803 whether a pragma All_Calls_Remote applies to the subprogram on which
36805 No functional change is introduced by this revision; the new parameter
36806 will be used to allow calls to local RCI subprograms to be optimized
36807 to not use the PCS in the case where no pragma All_Calls_Remote applies,
36808 as is already done in the PolyORB implementation of the DSA.
36810 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
36811 whether a pragma All_Calls_Remote applies to the subprogram on which
36813 No functional change is introduced by this revision; the new parameter
36814 will be used to allow calls to local RCI subprograms to be optimized
36815 to not use the PCS in the case where no pragma All_Calls_Remote applies,
36816 as is already done in the PolyORB implementation of the DSA.
36818 2004-04-23 Robert Dewar <dewar@gnat.com>
36820 * Makefile.rtl: Add entry for s-addope.o in run time library list
36821 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
36822 * s-addope.ads, s-addope.adb: New files.
36824 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
36825 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
36826 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
36827 System.Address to be non-private and signed.
36829 * sem_elim.adb: Minor reformatting (fairly extensive)
36830 Some minor code reorganization from code reading
36831 Add a couple of ??? comments
36833 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36835 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
36836 (tree_transform, case N_If_Statement): Remove non-determinism.
36838 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
36840 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
36842 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
36843 Eliminate' section.
36845 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
36846 no longer used as a parameter name for Eliminate pragma).
36848 2004-04-22 Laurent Guerby <laurent@guerby.net>
36850 PR optimization/14984
36851 PR optimization/14985
36852 * trans.c (gigi): Fix non determinism leading to bootstrap
36853 comparison failures.
36855 2004-04-21 Pascal Obry <obry@gnat.com>
36857 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
36858 passed to spawnvp() to properly handle program pathname with spaces on
36861 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
36863 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
36864 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
36865 unlocked in case of exceptions.
36867 2004-04-21 Joel Brobecker <brobecker@gnat.com>
36869 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
36870 This function does not exist anymore.
36872 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
36874 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
36876 * link.c: Move variables to the __gnat name space.
36878 * Makefile.in: list link.o explicitly when needed.
36880 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
36882 2004-04-21 Javier Miranda <miranda@gnat.com>
36884 * einfo.adb (Original_Access_Type): New subprogram
36885 (Set_Original_Access_Type): New subprogram
36886 (Write_Field21_Name): Write the name of the new field
36888 * einfo.ads (Original_Access_Type): New field present in access to
36890 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
36891 E_Anonymous_Access_Protected_Subprogram_Type.
36893 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
36896 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
36897 to anonymous access to subprogram types.
36899 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
36900 to subprogram types.
36902 * sem_ch3.adb (Access_Definition): Complete decoration of entities
36903 corresponding to anonymous access to subprogram types.
36904 (Analyze_Component_Declaration): Add new actual to the call to
36905 subprogram replace_anonymous_access_to_protected_subprogram.
36906 (Array_Type_Declaration): Add new actual to the call to subprogram
36907 replace_anonymous_access_to_protected_subprogram.
36908 (Process_Discriminants): Add new actual to the call to subprogram
36909 replace_anonymous_access_to_protected_subprogram.
36910 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
36912 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
36915 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
36916 access to subprogram types.
36918 * sem_util.adb (Has_Declarations): Addition of package_specification
36921 2004-04-21 Ed Schonberg <schonberg@gnat.com>
36923 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
36924 inlined flags to renamed entity only if in current unit.
36926 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
36928 * s-parint.ads: Add DSA implementation marker.
36930 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
36931 value of System.Partition_Interface.DSA_Implementation to determine
36932 what version of the distributed systems annex is available (no
36933 implementation, GLADE, or PolyORB).
36935 2004-04-21 Joel Brobecker <brobecker@gnat.com>
36937 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
36939 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36941 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
36942 with new type if alias sets differ.
36943 Fixes ACATS c41103b.
36945 2004-04-21 Vincent Celier <celier@gnat.com>
36947 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
36948 Add array Lang_Args for the language specific compiling argument
36951 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
36953 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
36955 * gnat_rm.texi: Update the descripton of the Eliminate pragma
36956 according to the recent changes in the format of the parameters of the
36957 pragma (replacing Homonym_Number with Source_Location).
36959 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
36961 * 5isystem.ads: Removed, unused.
36963 * gnat_rm.texi: Redo 1.13 change.
36965 2004-04-19 Robert Dewar <dewar@gnat.com>
36967 * s-stoele.ads: Clean up definition of Storage_Offset (the new
36968 definition is cleaner, avoids the kludge of explicit Standard operator
36969 references, and also is consistent with a visible System.Address with
36970 no visible operations.
36972 * s-geveop.adb: Add declarations to avoid assumption of visible
36973 operations on type System.Address (since these might not be available
36974 if Address is a non-private type for which the operations
36975 are made abstract).
36977 * sem_eval.adb: Minor reformatting
36979 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
36980 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
36981 reformatting (new function spec format).
36983 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
36984 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
36985 s-caun64.adb: Add declarations to avoid assumption of visible
36986 operations on type System.Address (since these might not be available
36987 if Address is a non-private type for which the operations are made
36990 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
36992 * exp_intr.adb: Minor comment update
36994 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
36996 * 5omastop.adb: Add declarations to avoid assumption of visible
36997 operations on type System.Address (since these might not be available
36998 if Address is a non-private type for which the operations
36999 are made abstract).
37001 2004-04-19 Vincent Celier <celier@gnat.com>
37003 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
37005 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
37008 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
37010 Call Check with Process_Languages.
37011 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
37012 with Process_Languages.
37013 (Recursive_Check): New Boolean parameter Process_Languages. Call
37014 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
37017 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
37019 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
37020 parameter Ada_Main, defaulted to True.
37021 Check for Ada specific characteristics only when Ada_Main is True.
37023 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
37025 * prj.adb: (Project_Empty): Add new Project_Data components.
37027 * prj.ads: New types and tables for non Ada languages.
37028 (Project_Data): New components Languages, Impl_Suffixes,
37029 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
37030 Include_Path, Include_Data_Set.
37032 * prj-env.ads, prj-env.adb: Minor reformatting
37034 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
37035 Put subprograms in alphabetical order
37037 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
37038 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
37041 * mlib-prj.adb: Back out modification in last version, as they are
37043 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
37045 * make.adb: (Mains): Moved to package Makeutl
37046 (Linker_Opts): Moved to package Makeutl
37047 (Is_External_Assignment): Moved to package Makeutl
37048 (Test_If_Relative_Path): Moved to package Makeutl
37049 (Gnatmake): Move sorting of linker options to function
37050 Makeutl.Linker_Options_Switches.
37052 * makeutl.ads, makeutl.adb: New files.
37054 * Makefile.in: Add makeutl.o to the object files for gnatmake
37056 * makeusg.adb: Add line for new switch -eL.
37058 * gnatls.adb (Image): New function.
37059 (Output_Unit): If in verbose mode, output the list of restrictions
37060 specified by pragmas Restrictions.
37062 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
37065 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
37066 needed, to put it in the range 1970 (included) - 2026 (excluded).
37067 (Time_Of): Do not shift Unix_Min_Year (1970).
37068 Shift the date by multiple of 56 years, if needed, to put it in the
37069 range 1970 (included) - 2026 (excluded).
37071 * adaint.h, adaint.c (__gnat_set_executable): New function.
37073 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37075 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
37076 and pop GC context.
37077 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
37078 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
37079 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
37080 (tree_transform, case N_Code_Statement): Likewise.
37081 (gnat_expand_stmt, case LABEL_STMT): Don't look at
37082 LABEL_STMT_FIRST_IN_EH.
37083 (gnat_expand_stmt, case ASM_STMT): New case.
37085 * utils2.c (build_unary_op): Properly set TREE_READONLY of
37086 UNCONSTRAINED_ARRAY_REF.
37088 * utils.c (poplevel): Temporarily push/pop GC context around inline
37089 function expansion.
37091 * decl.c (maybe_variable): Properly set TREE_READONLY of
37092 UNCONSTRAINED_ARRAY_REF.
37093 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
37095 * ada-tree.def: (ASM_STMT): New.
37097 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
37098 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
37099 ASM_STMT_INPUT): New.
37100 (ASM_STMT_CLOBBER): Likewise.
37102 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
37104 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
37105 general rcheck mechanism to raise Program_Error for E.4(18), instead
37106 of a custom raiser in System.Partition_Interface.
37107 Part of general cleanup work before PolyORB integration.
37109 * snames.ads, snames.adb: Add new runtime library entities and names
37112 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37114 (Build_Subprogram_Id): New subprogram provided by exp_dist
37115 Code reorganisation in preparation for PolyORB integration.
37117 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
37119 (Build_Subprogram_Id): New subprogram provided by exp_dist
37121 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
37122 actual parameter types for call to dereference of an
37123 access-to-subprogram type.
37125 * rtsfind.ads: Add new runtime library entities and names for PolyORB
37128 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
37129 instead, which has the same behaviour here since we never pass it a
37132 * link.c (run_path_option, Solaris case): Use -Wl, as for other
37135 * Makefile.in: adjust object file lists for gnatlink and gnatmake
37136 to account for new dependency upon Interfaces.C.Strings + link.o
37137 For x86 FreeBSD, use 86numaux.
37139 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
37140 from Mlib.Tgt to Mlib.
37142 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
37143 target-independent.
37145 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
37146 target-specific versions of this subprogram, now implemented as a
37147 target-independent function in Mlib.
37149 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
37150 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
37151 (Linker_Library_Path_Option): Remove target-specific versions of this
37152 subprogram, now implemented as a target-independent function in Mlib.
37154 * atree.adb: (Allocate_Initialize_Node): New subprogram.
37155 Factors out node table slots allocation.
37156 (Fix_Parents): New subprogram.
37157 Encapsulate the pattern of fixing up parent pointers for syntactic
37158 children of a rewritten node.
37159 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
37160 (Rewrite): Use New_Copy when creating saved copy of original node.
37161 (Replace): Use Copy_Node to copy nodes.
37163 2004-04-19 Javier Miranda <miranda@gnat.com>
37165 * sprint.adb (Sprint_Node_Actual): Give support to the new
37166 Access_To_Subprogram node available in Access_Definition nodes. In
37167 addition, give support to the AI-231 node fields: null-exclusion,
37168 all-present, constant-present.
37170 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
37172 * sinfo.ads, sinfo.adb:
37173 New field Access_To_Subprogram_Definition in Access_Definition nodes
37175 * sem_ch6.adb (Process_Formals): Move here the code that creates and
37176 decorates internal subtype declaration corresponding to the
37177 null-excluding formal. This code was previously in Set_Actual_Subtypes.
37178 In addition, carry out some code cleanup on this code. In case of
37179 access to protected subprogram call
37180 Replace_Anonymous_Access_To_Protected_Subprogram.
37181 (Set_Actual_Subtypes): Code cleanup.
37183 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
37184 Find_Type in case of anonymous access renamings. Add warning in case of
37185 null-excluding attribute used in anonymous access renaming.
37187 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
37190 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
37192 (Access_Definition): In case of anonymous access to subprograms call
37193 the corresponding semantic routine to decorate the node.
37194 (Access_Subprogram_Declaration): Addition of some comments indicating
37195 some code that probably should be added here. Detected by comparison
37196 with the access_definition subprogram.
37197 (Analyze_Component_Declaration): In case of access to protected
37198 subprogram call Replace_Anonymous_Access_To_Protected.
37199 (Array_Type_Declaration): In case of access to protected subprogram call
37200 Replace_Anonymous_Access_To_Protected_Subprogram.
37201 (Process_Discriminants): In case of access to protected subprogram call
37202 Replace_Anonymous_Access_To_Protected_Subprogram.
37204 * par.adb (P_Access_Definition): New formal that indicates if the
37205 null-exclusion part was present.
37206 (P_Access_Type_Definition): New formal that indicates if the caller has
37207 already parsed the null-excluding part.
37209 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
37210 (P_Identifier_Declarations): Code cleanup and give support to renamings
37211 of anonymous access to subprogram types.
37212 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
37213 (P_Array_Type_Definition): Give support to AI-254.
37214 (P_Component_Items): Give support to AI-254.
37215 (P_Access_Definition): New formal that indicates if the header was
37216 already parsed by the caller.
37217 (P_Access_Type_Definition): New formal that indicates if the caller has
37218 already parsed the null-excluding part.
37220 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
37221 call to P_Access_Definition.
37223 2004-04-19 Geert Bosch <bosch@gnat.com>
37225 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
37226 the delicate semantics of floating-point to integer conversion.
37227 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
37229 * eval_fat.adb (Machine_Mantissa): Moved to spec.
37230 (Machine_Radix): New function.
37232 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
37234 (Machine_Radix): New function also for use in conversion checks.
37236 2004-04-19 Ed Schonberg <schonberg@gnat.com>
37238 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
37240 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
37241 to decorate the access-to-protected subprogram and the equivalent type.
37243 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
37244 to anonymous access to subprogram types.
37246 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
37247 constant-folding, for legality checks in contexts that require an RM
37250 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
37251 temporary but stack checking is not enabled, increment serial number
37252 to so that symbol generation is consistent with and without stack
37255 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
37256 independent on whether stack checking is enabled, caller must check
37257 the corresponding flag.
37259 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
37261 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
37262 parent if it has discriminants.
37263 (Build_Derived_Private_Type): Constructed full view does
37264 not come from source.
37265 (Process_Discriminants): Default discriminants on a tagged type are
37266 legal if this is the internal completion of a private untagged
37269 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
37270 no constraint checks, because it corresponds to an existing object.
37272 * sem_prag.adb (Process_Convention): Pragma applies
37273 only to subprograms in the same declarative part, i.e. the same unit,
37274 not the same scope.
37276 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
37277 ignore type mismatch on a numeric conversion if expression comes from
37280 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
37282 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
37283 Homonym_Number parameter, add processing for Source_Location parameter
37285 (Check_Eliminated): Remove the check for homonym numbers, add the check
37286 for source location traces.
37288 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
37289 with Arg_Source_Location corresponding to the changes in the format of
37292 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
37293 Eliminate pragma corresponding to the changes in the format of the
37294 pragma: Homonym_Number is replaced with Source_Location, two ways of
37295 distinguishing homonyms are mutially-exclusive.
37297 2004-04-19 Joel Brobecker <brobecker@gnat.com>
37299 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
37301 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
37302 No_Dollar_In_Label, no longer necessary, as it is always True.
37303 (Strip_Suffixes): Likewise.
37305 2004-04-19 Gary Dismukes <dismukes@gnat.com>
37307 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
37308 modulus for compatibility with size clause on targets with 16-bit
37311 * layout.adb (Discrimify): In the case of private types, set Vtyp to
37312 full type to fix type mismatches on calls to size functions for
37313 discriminant-dependent array components.
37315 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
37317 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
37320 2004-04-19 Pascal Obry <obry@gnat.com>
37322 * mdll-utl.adb (Locate): New version is idempotent.
37324 2004-04-17 Laurent Guerby <laurent@guerby.net>
37326 PR ada/14988 (partial)
37327 * impunit.adb: Fix typo.
37329 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
37331 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
37332 and install-rts-cert targets. Remove all gnatlib and gnattools
37333 targets and all other rts-* targets (moved to libada). Remove (now)
37334 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
37335 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
37337 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37339 * trans.c (tree_transform): Shortcut returning error_mark_node for
37340 statements in annotate_only_mode.
37341 (tree_transform, case N_Label, case N_Return_Statement,
37342 N_Goto_Statement): Make statement tree instead of generating code.
37343 (tree_transform, case N_Assignment_Statement): No longer check
37344 type_annotate_only.
37345 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
37347 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
37349 (gnat_to_gnu): Collect any RTL generated and deal with it.
37350 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
37351 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
37352 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
37354 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
37356 * ada-tree.def (EXPR_STMT): Fix typo in name.
37357 (BLOCK_STMT, IF_STMT): New nodes.
37359 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
37360 LABEL_STMT_FIRST_IN_EH): New macros.
37361 (RETURN_STMT_EXPR): Likewise.
37363 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
37364 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
37366 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
37368 * atree.ads: Correct documentation on extended nodes.
37370 * link.c: Set run_path_option for FreeBSD.
37372 2004-04-08 Vincent Celier <celier@gnat.com>
37374 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
37375 one of the ALI file, do not link with DEC lib.
37377 * par.adb Remove the last two characters ("%s" or "%b") when checking
37378 if a language defined unit may be recompiled.
37380 2004-04-08 Ed Schonberg <schonberg@gnat.com>
37382 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
37383 removal of abstract operation leaves no possible interpretation for
37386 * sem_eval.adb (Eval_Qualified_Expression): Use
37387 Set_Raises_Constraint_Error on node when needed, so that it does not
37388 get optimized away by subsequent optimizations.
37390 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
37391 operands even when they are not wrapped in a type conversion.
37393 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
37395 * sem_prag.adb (Set_Exported): Warn about making static as result of
37396 export only when the export is coming from source. This may be not
37397 be true e.g. on VMS where we expand export pragmas for exception codes
37398 together with imported or exported exceptions, and we don't want the
37399 user to be warned about something he didn't write.
37401 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
37403 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
37404 duplication between normal entities and those declared as renamings.
37405 No functional change.
37407 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
37408 inline functions returning an unconstrained result.
37410 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
37412 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
37413 conform to what other front-ends do.
37415 2004-04-08 Doug Rupp <rupp@gnat.com>
37417 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
37420 2004-04-06 Pascal Obry <obry@gnat.com>
37422 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
37424 * osint.adb (Program_Name): Do not look past a directory separator.
37426 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
37428 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
37430 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
37431 requirement for preserving a copy of the original assignment node.
37433 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
37435 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
37437 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
37440 2004-04-06 Ed Schonberg <schonberg@gnat.com>
37442 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
37443 operator calls in functional notation, and apply
37444 Universal_Interpretation to operands, not to their type.
37446 2004-04-06 Robert Dewar <dewar@gnat.com>
37448 * 5wdirval.adb: Minor reformatting
37450 2004-04-06 Ed Falis <falis@gnat.com>
37452 * gnat_rm.texi: Improve a reference to the GCC manual
37454 2004-04-05 Vincent Celier <celier@gnat.com>
37456 * adaint.h, adaint.c: Add function __gnat_named_file_length
37458 * impunit.adb: Add Ada.Directories to the list
37460 * Makefile.in: Add VMS and Windows versions of
37461 Ada.Directories.Validity package body.
37463 * Makefile.rtl: Add a-direct and a-dirval
37465 * mlib-tgt.ads: Minor comment update.
37467 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
37468 a-direct.ads, a-direct.adb: New files.
37470 2004-04-05 Vincent Celier <celier@gnat.com>
37473 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
37474 just to the compiler.
37476 2004-04-05 Robert Dewar <dewar@gnat.com>
37478 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
37479 returned string is 1.
37481 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
37483 * eval_fat.ads: Minor reformatting
37485 * g-curexc.ads: Document that lower bound of returned string values
37488 * gnatlink.adb: Add ??? comment for previous change
37489 (need to document why this is VMS specific)
37491 * s-stoele.ads: Minor reformatting
37493 * tbuild.ads: Minor reformatting throughout (new function specs)
37495 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
37498 * scng.adb: Minor reformatting
37500 2004-04-05 Geert Bosch <bosch@gnat.com>
37502 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
37503 (Leading_Part): Still perform truncation to machine number if the
37504 specified radix_digits is greater or equal to machine_mantissa.
37506 2004-04-05 Javier Miranda <miranda@gnat.com>
37508 * par-ch3.adb: Complete documentation of previous change
37509 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
37510 (aliased must appear before constant).
37512 * par-ch4.adb: Complete documentation of previous change.
37514 * par-ch6.adb: Complete documentation of previous change.
37516 * sinfo.ads: Fix typo in commment.
37518 2004-04-05 Ed Schonberg <schonberg@gnat.com>
37520 * sem_ch3.adb (Inherit_Components): If derived type is private and has
37521 stored discriminants, use its discriminants to constrain parent type,
37522 as is done for non-private derived record types.
37524 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
37525 Ada 2005 AI-310: an abstract non-dispatching operation is not a
37526 candidate interpretation in an overloaded call.
37528 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
37529 expression is Null and target type is not an access type (e.g. a
37530 non-private address type).
37532 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
37534 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
37535 statement whose right-hand side is an inlined call, save a copy of the
37536 original assignment subtree to preserve enough consistency for
37537 Analyze_Assignment to proceed.
37539 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
37540 complete assignment subtree which is now unnecessary, as the expansion
37541 of inlined call has been improved to preserve a consistent assignment
37542 tree. Note_Possible_Modification must be called only
37543 after checks have been applied, or else unnecessary checks will
37546 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
37547 of explicit dereferences that do not Come_From_Source:
37548 - be selective on cases where we must go back to the dereferenced
37549 pointer (an assignment to an implicit dereference must not be
37550 recorded as modifying the pointer);
37551 - do not rely on Original_Node being present (Analyze_Assignment
37552 calls Note_Possible_Modification on a copied tree).
37554 * sem_warn.adb (Check_References): When an unset reference to a pointer
37555 that is never assigned is encountered, prefer '<pointer> may be null'
37556 warning over '<pointer> is never assigned a value'.
37558 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
37560 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
37563 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
37565 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
37566 libexc. We currently don't reference anything in this library and
37567 linking it in triggers linker warnings we don't want to see.
37569 * init.c: Update comments.
37571 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37573 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
37574 * utils.c (create_field_decl): Likewise.
37575 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
37577 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
37579 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
37580 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
37581 Add info directory entry and category.
37583 2004-04-02 Jan Hubicka <jh@suse.cz>
37585 * utils.c: Include function.h
37586 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
37588 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
37591 * Make-lang.in: Clean up generation of documentation
37593 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
37595 * xgnatug.adb: Removed, replaced by xgnatugn.adb
37597 * xgnatugn.adb: Replaces xgnatug.adb
37599 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
37601 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
37603 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37604 gnat_ug_wnt.texi: Removed.
37606 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
37608 * utils2.c: Update copyright notice.
37610 2004-04-01 Robert Dewar <dewar@gnat.com>
37612 * checks.adb: Minor reformatting throughout
37613 Note that prev checkin added RM reference to alignment warning
37615 2004-04-01 Ed Schonberg <schonberg@gnat.com>
37617 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
37618 non-static when building aggregate for bit-packed array.
37620 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
37621 function call that is itself the actual in a procedure call, build
37624 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
37625 a string literal, create a temporary for it, constant folding only
37626 handles scalars here.
37628 2004-04-01 Vincent Celier <celier@gnat.com>
37630 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
37631 Error_Msg_SP): New empty procedures to instantiate the Scanner.
37632 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
37634 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
37635 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
37636 and get the checksum.
37638 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
37640 Increase the Marking_Label at the end of the Multiple_Main_Loop,
37641 instead of at the beginning.
37643 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
37645 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
37648 * osint.ads (Multi_Unit_Index_Character): New Character global variable
37650 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
37653 * par.adb: Remove test on file name to detect language defined units.
37654 Add test on unit name, after parsing, to detect language defined units
37655 that are not compiled with -gnatg (except System.RPC and its children)
37657 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
37658 following units without style checking.
37660 * switch-c.adb: Change -gnatC to -gnateI
37662 * usage.adb: Document new switch -gnateInnn
37664 * scng.adb (Accumulate_Token_Checksum): New procedure
37665 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
37666 word or literal number.
37667 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
37670 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
37673 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
37674 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
37675 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
37676 5vtpopde.adb: Add missing 'constant' keywords.
37678 2004-04-01 Javier Miranda <miranda@gnat.com>
37680 * par-ch4.adb: (P_Allocator): Code cleanup
37682 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
37685 * sinfo.ads: Complete documentation of previous change
37687 2004-04-01 Pascal Obry <obry@gnat.com>
37689 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
37690 only on VMS. This special handling was done because an old GNU/ld bug
37691 on Windows which has been fixed.
37693 2004-04-01 GNAT Script <nobody@gnat.com>
37695 * Make-lang.in: Makefile automatically updated
37697 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37699 * decl.c (gnat_to_gnu_entity, make_type_from_size):
37700 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
37701 * trans.c (tree_transform, convert_with_check): Likewise.
37702 * utils.c (gnat_signed_or_unsigned_type): Likewise.
37703 (build_vms_descriptor, unchecked_convert): Likewise.
37704 * utils2.c (nonbinary_modular_operation): Likewise.
37706 2004-03-29 Javier Miranda <miranda@gnat.com>
37708 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
37709 (Install_Null_Excluding_Check): Local subprogram that determines whether
37710 an access node requires a runtime access check and if so inserts the
37711 appropriate run-time check.
37712 (Apply_Access_Check): Call Install_Null_Excluding check if required
37713 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
37715 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
37717 * einfo.ads: Fix typo in comment
37719 * exp_ch3.adb (Build_Assignment): Generate conversion to the
37720 null-excluding type to force the corresponding run-time check.
37721 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
37722 type to force the corresponding run-time check.
37724 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
37725 the null-excluding type to force the corresponding run-time check.
37727 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
37728 case of access types unless they have the null-excluding attribute.
37730 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
37733 * exp_util.ads: Fix typo in comment
37735 * par.adb (P_Null_Exclusion): New subprogram
37736 (P_Subtype_Indication): New formal that indicates if the null-excluding
37737 part has been scanned-out and it was present
37739 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
37741 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
37742 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
37743 type to force the corresponding run-time check
37744 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
37746 (Resolve_Array_Aggregate): Carry out some static checks
37747 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
37749 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
37750 attribute must be set only if specified by means of the null-excluding
37751 part. In addition, we must also propagate the access-constant attribute
37753 (Access_Subprogram_Declaration, Access_Type_Declaration,
37754 Analyze_Component_Declaration, Analyze_Object_Declaration,
37755 Array_Type_Declaration, Process_Discriminants,
37756 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
37757 and carry out some static checks.
37758 (Build_Derived_Access_Type): Set the null-excluding attribute
37759 (Derived_Type_Declaration, Process_Subtype): Carry out some static
37762 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
37764 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
37766 * sem_ch6.adb (Process_Formals): Carry out some static checks.
37767 (Set_Actual_Subtypes): Generate null-excluding subtype if the
37768 null-excluding part was present; it is not required to be done here in
37769 case of anonymous access types.
37770 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
37773 * sem_res.adb (Resolve_Actuals): Carry out some static check
37774 (Resolve_Null): Allow null in anonymous access
37776 * sinfo.adb: New subprogram Null_Exclusion_Present
37777 All_Present and Constant_Present available on access_definition nodes
37779 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
37780 object_declaration, derived_type_definition, component_definition,
37781 discriminant_specification, access_to_object_definition,
37782 access_function_definition, allocator, access_procedure_definition,
37783 access_definition, parameter_specification, All_Present and
37784 Constant_Present flags available on access_definition nodes.
37786 2004-03-29 Robert Dewar <dewar@gnat.com>
37788 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
37789 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
37790 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
37791 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
37792 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
37793 sem_prag.adb: Updates to handle multiple units/file
37795 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
37797 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
37798 sem_util.adb: Minor reformatting
37800 * sem_ch12.adb: Add comment for previous change
37802 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
37804 * osint.adb (Executable_Prefix): Set Exec_Name to the current
37805 executable name when not initialized. Otherwise, use its current value.
37807 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
37808 initialize it to another executable name than the current one. This
37809 allows to configure paths for an executable name (gnatmake) different
37810 from the current one (gnatdist).
37812 2004-03-29 Ed Schonberg <schonberg@gnat.com>
37814 * exp_ch6.adb (Expand_Call): A call to a function declared in the
37815 current unit cannot be inlined if it appears in the body of a withed
37816 unit, to avoid order of elaboration problems in gigi.
37818 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
37819 information for protected (wrapper) operation as well, to simplify gdb
37822 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
37823 protected body, indicate that the entity for the generated spec comes
37824 from source, to ensure that references are properly generated for it.
37825 (Build_Body_To_Inline): Do not inline a function that returns a
37828 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
37829 apply convention to homonyms that are declared explicitly.
37831 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
37832 that renames an equality operator and the operands are overloaded,
37833 resolve them with the declared formal types, before rewriting as an
37836 2004-03-29 GNAT Script <nobody@gnat.com>
37838 * Make-lang.in: Makefile automatically updated
37840 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
37842 * memtrack.adb: Log realloc calls, which are treated as free followed
37845 2004-03-25 Vincent Celier <celier@gnat.com>
37847 * prj-makr.adb (Process_Directories): Detect when a file contains
37848 several units. Do not include such files in the config pragmas or
37849 in the naming scheme.
37851 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
37852 Resolve links only when not in Trusted_Mode.
37853 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
37854 Do not resolve links for the display names.
37856 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
37857 resolve links when computing the display names.
37859 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
37861 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
37862 attribute reference does not denote a subtype, it can be any
37863 expression that has a classwide type, potentially after an implicit
37864 dereference. In particular, the prefix can be a view conversion for
37865 a classwide type (for which Is_Object_Reference holds), but it can
37866 also be a value conversion for an access-to-classwide type. In the
37867 latter case, there is an implicit dereference, and the original node
37868 for the prefix does not verify Is_Object_Reference.
37870 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
37871 conversion of a discriminant-dependent component of a mutable object
37874 2004-03-25 Ed Schonberg <schonberg@gnat.com>
37876 * freeze.adb (Freeze_Entity): When an inherited subprogram is
37877 inherited, has convention C, and has unconstrained array parameters,
37878 place the corresponding warning on the derived type declaration rather
37879 than the original subprogram.
37881 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
37882 indication on renaming declaration, if formal has a box and actual
37885 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
37886 determine whether to generate an implicit or explicit reference to
37887 the renamed entity.
37889 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
37890 subprogram renaming comes from a defaulted formal subprogram in an
37893 2004-03-25 Gary Dismukes <dismukes@gnat.com>
37895 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
37896 value expressions to ensure that calls within a component definition
37897 will be checked (since those are evaluated during the record type's
37900 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
37902 * s-tpobop.adb: Code clean up:
37903 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
37905 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
37907 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
37909 * Makefile.in: Clean up in the ravenscar run time.
37911 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37913 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
37914 of No_Strict_Aliasing to build_pointer_type_for_mode.
37915 * utils.c (update_pointer_to): Walk pointer and ref chains.
37917 2004-03-22 Cyrille Comar <comar@act-europe.fr>
37919 * ali.ads: Fix Comment about Dynamic_Elab.
37921 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
37922 Has_RACW, Is_Generic, etc.)
37923 (Output_Object, Gnatls): Take into account ALI files not attached to
37926 2004-03-22 Vincent Celier <celier@gnat.com>
37928 * gprep.adb: Change all String_Access to Name_Id
37929 (Is_ASCII_Letter): new function
37930 (Double_File_Name_Buffer): New procedure
37931 (Preprocess_Infile_Name): New procedure
37932 (Process_Files): New procedure
37933 (Gnatprep): Check if output and input are existing directories.
37934 Call Process_Files to do the real job.
37936 2004-03-22 Robert Dewar <dewar@gnat.com>
37938 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
37939 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
37941 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
37943 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
37944 case when the source contains only comments.
37946 2004-03-22 Ed Schonberg <schonberg@gnat.com>
37948 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
37949 declaration for a child subprogram body that acts as a spec, indicate
37950 that the entity in the declaration needs debugging information.
37952 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
37953 full view if the subtype is created for a constrained record component;
37954 gigi has enough information to construct the record, and there is no
37955 place in the tree for the declaration.
37957 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
37958 serial number for the dummy body that is built for analysis, to avoid
37959 inconsistencies in the generation of internal names when compiling
37962 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
37964 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
37967 2004-03-22 GNAT Script <nobody@gnat.com>
37969 * Make-lang.in: Makefile automatically updated
37971 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37973 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
37974 * trans.c (tree_transform, emit_index_check): Likewise.
37975 * utils.c (build_template): Likewise.
37976 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
37977 (maybe_unconstrained_array, unchecked_convert): Likewise.
37978 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
37979 (build_unary_op): Likewise.
37980 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
37981 (fill_vms_descriptor): Likewise.
37982 (build_call_alloc_dealloc): Likewise.
37984 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
37986 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
37989 * gnat_ug.texi: Add info directory category and entry.
37990 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
37991 gnat_ug_wnt.texi: Regenerate.
37993 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
37995 * ada-tree.h: Update copyright notice.
37996 Minor reformatting.
37998 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
38000 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
38001 as regular exception objects and not as mere integers representing the
38002 condition code. The latter approach required some dynamics to mask off
38003 severity bits, which did not fit well into the GCC table based model.
38004 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
38005 exception data objects. We don't it and it would conflict with the other
38006 external symbol we have to generate for such exceptions.
38008 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
38009 the special code for VMS exceptions, since these are now represented
38010 as regular exceptions objects.
38012 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38014 * decl.c (debug_no_type_hash): Remove.
38015 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
38016 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
38018 2004-03-19 Laurent Guerby <laurent@guerby.net>
38020 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
38021 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
38023 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38025 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
38026 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
38027 (TYPE_RM_SIZE_INT): Directly use type.values.
38028 (TREE_LOOP_ID): Clean up check.
38029 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
38030 TYPE_VALUES, not TYPE_FIELDS.
38031 * trans.c (convert_with_check): Delay access of bounds of basetype
38032 until sure is numeric.
38034 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
38036 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
38039 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
38040 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
38041 Specific.Set instead of direct call to e.g pthread_setspecific.
38043 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
38045 * adaint.c: Update comments.
38047 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
38048 GNATLIB_SHARED for FreeBSD.
38050 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
38052 * init.c [VxWorks]: Do not fix the stack size for the environment task.
38053 When needed (stack checking) the stack size is retrieved
38054 from the VxWorks kernel.
38056 * Makefile.in: Flag -nostdinc is required when building the run time
38057 for avoiding looking for files in the base compiler.
38058 Add the VxWorks specific version of the package body for
38059 System.Stack_checking.Operations (5zstchop.adb).
38061 * Make-lang.in: Add the object file for
38062 System.Stack_Checking.Operations.
38064 * Makefile.rtl: Add object file for the package
38065 System.Stack_Checking.Operations.
38067 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
38069 * s-stache.ads, s-stache.adb: Move the operations related to stack
38070 checking from this package to package System.Stack_Checking.Operations.
38071 This way, stack checking operations are only linked in the final
38072 executable when using the -fstack-check flag.
38074 2004-03-18 Doug Rupp <rupp@gnat.com>
38076 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
38079 * 5qsystem.ads, 5xcrtl.ads: New files.
38081 2004-03-18 Vincent Celier <celier@gnat.com>
38083 * prj.adb (Reset): Reset hash table Files_Htable
38085 * prj-env.adb (Source_Paths, Object_Paths): New tables.
38086 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
38087 the procedures Add_To_Path_File.
38088 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
38089 making sure that each directory is present only once and, for object
38090 dirs, when a directory already present is added, the duplicate is
38091 removed and the directory is always put as the last in the table.
38092 Write the path files at the end of these accumulations.
38094 * prj-nmsc.adb (Record_Source): Add source file name in hash table
38095 Files_Htable for all sources.
38097 * prj-proc.adb (Process): Remove restrictions between not directly
38098 related extending projects.
38100 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
38102 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
38103 (Find_Sources): Minor speed optimization.
38105 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
38106 parameter Trusted_Mode.
38108 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
38110 * scn.adb (Determine_License): Take into account a degenerated case
38111 when the source contains only comments.
38113 2004-03-18 Ed Schonberg <schonberg@gnat.com>
38115 * sem_warn.adb (Check_References): For a warning on a selected
38116 component that does not come from source, locate an uninitialized
38117 component of the record type to produce a more precise error message.
38119 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
38121 * 3zsoccon.ads: Fix multicast options.
38123 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
38126 2004-03-15 Robert Dewar <dewar@gnat.com>
38128 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
38129 pragma used for a private type.
38131 * lib-xref.adb (Generate_Reference): Do not generate warning if
38132 reference is in a different unit from the pragma Unreferenced.
38134 * 5vtpopde.adb: Minor reformatting
38135 Fix casing of To_Task_ID
38137 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
38138 flag if we have an unchecked conversion to an access type in the same
38141 2004-03-15 Geert Bosch <bosch@gnat.com>
38143 * a-ngcoty.adb (Modulus): In alternate formula for large real or
38144 imaginary parts, use Double precision throughout.
38146 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
38147 we want to be able to compile run-time with -gnata for testing, but
38148 this may also be instantiated in user code that is compiled with -gnata.
38150 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
38152 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
38153 codes. Having a separate type for this is useful to enforce consistency
38154 throughout the various run-time units.
38155 (Exception_Data): Use Exception_Code for Import_Code.
38157 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
38158 Natural and Integer in various places.
38159 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
38160 with the severity bits masked off.
38161 (Register_VMS_Exception): Handle the additional exception data pointer
38164 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
38165 component, now reflected by an exported accessor.
38166 (is_handled_by): New routine to compute whether the propagated
38167 occurrence matches some handler choice specification. Extracted out of
38168 get_action_description_for, and expanded to take care of the VMS
38170 (get_action_description_for): Use is_handled_by instead of an explicit
38171 complex condition to decide if the current choice at hand catches the
38172 propagated occurrence.
38174 * raise.h (Exception_Code): New type for C.
38176 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
38177 System.Standard_Library.Exception_Code, to allow references from the
38178 pragma import/export expander.
38180 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
38181 New accessors to allow easy access to GNAT exception data
38183 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
38184 redundant Handled_By_Others component, helper for the personality
38185 routine which will now be able to call the appropriate exception data
38188 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
38189 component of Standard_Exception_Type to be the closest possible to
38190 Exception_Code in System.Standard_Library, that we cannot get at this
38191 point. Expand a ??? comment to notify that this type node should
38192 probably be rewritten later on.
38194 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
38195 registration call to include a pointer to the exception object in the
38198 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
38199 instead of int and explicit bitmasks.
38201 2004-03-15 Vincent Celier <celier@gnat.com>
38203 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
38204 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
38206 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
38207 longer needed now that it is in the spec of
38208 System.Tasking.Task_Attributes.
38210 * adaint.h, adaint.c: (__gnat_create_output_file): New function
38212 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
38214 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
38216 * make.adb (Gnatmake): Do not check the executable suffix; it is being
38217 taken care of in Scan_Make_Arg.
38218 (Scan_Make_Arg): Add the executable suffix only if the argument
38219 following -o, in canonical case, does not end with the executable
38220 suffix. When in verbose mode and executable file name does not end
38221 with executable suffix, output the executable name, in canonical case.
38223 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
38224 to avoid warnings when instantiating Ada.Task_Attributes.
38227 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
38228 in the correct order.
38230 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
38231 redirect standard output and error to a file for the invocation of the
38232 compiler, then read the file.
38234 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
38235 directory, instead of the Value.
38236 (Find_Source_Dirs): Remove useless code & comments.
38238 2004-03-15 Ed Schonberg <schonberg@gnat.com>
38240 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
38241 tagged type is inherited, and the parent operation is not frozen yet,
38242 force generation of a freeze node for the inherited operation, so the
38243 corresponding dispatch entry is properly initialized.
38244 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
38245 when looking for user-defined equality operation.
38247 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
38248 boolean when locating primitive equality of tagged component.
38250 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
38251 bit-aligned field and the right-hand side a string literal, introduce
38252 a temporary before expanding assignment into a loop.
38254 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
38255 priority in full, to ensure that any expanded subepxressions of it are
38256 elaborated in the scope of the init_proc.
38258 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
38259 after object declaration, skipping over code that may have been
38260 generated for validity checks.
38262 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
38263 discriminants, ignore the known discriminants of its full view, if
38264 any, to check legality.
38266 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
38267 component if type has unknown discriminants.
38268 (Analyze_Private_Extension_Declaration): Discriminant constraint is
38269 null if type has unknown discriminants.
38271 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
38272 for end label when present.
38274 * s-fileio.adb (Open): When called with a C_Stream, use given name for
38275 temporary file, rather than an empty string.
38277 2004-03-15 Ed Falis <falis@gnat.com>
38279 * s-thread.adb: Removed, no longer used.
38281 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38283 * decl.c (target.h): Now include.
38284 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
38285 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
38286 (validate_size): For POINTER_TYPE, get smallest size permitted on
38289 * fe.h: Sort Einfo decls and add Set_Mechanism.
38291 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
38292 (ada/decl.o): Depends on target.h.
38294 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
38295 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
38297 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
38299 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
38301 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
38302 Insert_Dereference_Action when rewriting an implicit dereference into
38303 an explicit one, this will be taken care of during expansion of the
38304 explicit dereference.
38305 (Expand_N_Slice): Same. Always do the rewriting, even for the case
38306 of non-packed slices, since the dereference action generated by
38307 expansion of the explicit dereference is needed in any case.
38308 (Expand_N_Selected_Component): When rewriting an implicit dereference,
38309 analyze and resolve the rewritten explicit dereference so it is seen
38311 (Insert_Dereference_Action): This procedure is now called only for the
38312 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
38313 dereferences that do not come from source (including explicit
38314 dereferences resulting from rewriting implicit ones), but do not
38315 recursively insert a check for the dereference nodes contained within
38317 (Insert_Dereference_Action): Clarify and correct comment.
38319 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
38322 Move language detection to the top level.
38323 * config-lang.in: Build by default.
38325 2004-03-05 Robert Dewar <dewar@gnat.com>
38327 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
38329 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
38330 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
38331 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
38332 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
38333 unchecked conversion to spec to avoid warnings.
38335 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
38338 * 7stpopsp.adb: Correct casing in To_Task_ID call
38340 * a-strsea.ads, a-strsea.adb: Minor reformatting
38342 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
38344 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
38345 Adjust Max_Msg_Length to be clearly large enough.
38347 * fe.h: Define In_Same_Source_Unit
38349 * osint.adb: Add pragma Warnings Off to suppress warnings
38350 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
38353 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
38355 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
38357 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
38359 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
38361 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
38363 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
38364 node. We now do generate them for gcc back end.
38366 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
38369 * sinput-c.adb: Fix bad name in header.
38370 Add pragma Warnings Off to suppress aliasing warning.
38372 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
38374 * snames.h, snames.ads, snames.adb: Add entry for pragma
38375 No_Strict_Aliasing.
38377 2004-03-05 Vincent Celier <celier@gnat.com>
38379 * prj-com.ads: Add hash table Files_Htable to check when a file name
38380 is already a source of another project.
38382 * prj-nmsc.adb (Record_Source): Before recording a new source, check
38383 if its file name is not already a source of another project. Report an
38386 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
38387 source file name, call gnatpp with all the sources of the main project.
38389 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
38392 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
38393 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
38394 /RUNTIME_SYSTEM=, converted to --RTS=
38395 /NOTABS, converted to -notabs
38397 2004-03-05 Pascal Obry <obry@gnat.com>
38399 * make.adb: Minor reformatting.
38401 2004-03-05 Ed Schonberg <schonberg@gnat.com>
38403 Part of implemention of AI-262.
38404 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
38406 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
38409 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
38410 when component type is a partially constrained class-wide subtype.
38411 (Constrain_Discriminated_Type): If parent type has unknown
38412 discriminants, a constraint is illegal, even if full view has
38414 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
38415 with unknown discriminants whose full view is a discriminated record.
38417 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
38418 flag, to handle properly derivations of tagged types with unknown
38420 (Analyze_Package_Spec, Analyze_Package_Body): Install
38421 Private_With_Clauses before analyzing private part or body.
38423 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
38424 Has_Discriminants can be true for a given type (documentation).
38426 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
38428 * s-restri.ads: Fix license (GPL->GMGPL).
38430 * s-tassta.adb: Minor reformatting.
38432 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38433 by calls to Exit_One_ATC_Level, since additional clean up is performed
38436 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
38437 by calls to Exit_One_ATC_Level, since additional clean up is performed
38440 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38442 * trans.c: Reflect GCC changes to fix bootstrap problem.
38443 Add warning for suspicious aliasing unchecked conversion.
38445 2004-03-05 GNAT Script <nobody@gnat.com>
38447 * Make-lang.in: Makefile automatically updated
38449 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
38451 * ali.adb (Read_Instantiation_Instance): Do not modify the
38452 current_file_num when reading information about instantiations, since
38453 this corrupts files in later references.
38455 2004-03-02 Vincent Celier <celier@gnat.com>
38457 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
38458 before checking if it is read-only.
38460 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
38461 of SRC_DIRS and eliminate duplicates.
38463 * gprcmd.adb: Replace command "path" with command "path_sep" to return
38464 the path separator.
38465 (Usage): Document path_sep
38467 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
38468 C++ compiler. No need for a script.
38469 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
38470 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
38473 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
38474 where there are Ada sources.
38475 (Set_Ada_Paths): Only add to the include path the source dirs of project
38477 (Add_To_Path): Add the Display_Values of the directories, not their
38480 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
38483 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
38485 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
38486 Value is canonicalized.
38487 (Language_Independent_Check): Do not copy Value to Display_Value when
38488 canonicalizing Value.
38490 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
38491 path to find limited with cycles.
38492 (Parse_Single_Project): Use canonical cased path to find the end of a
38495 2004-03-02 Ed Schonberg <schonberg@gnat.com>
38497 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
38498 and not a child unit.
38500 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
38501 appear in a with_clause.
38503 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
38504 only happen in type_annotate mode, do not try to elaborate it.
38506 * exp_util.adb (Force_Evaluation): If expression is a selected
38507 component on the left of an assignment, use a renaming rather than a
38508 temporary to remove side effects.
38510 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
38511 inlined instance body, which is analyzed before the end of the
38514 2004-03-02 Robert Dewar <dewar@gnat.com>
38516 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
38517 sem_ch4.adb: Use new feature for substitution of keywords in VMS
38519 * errout.ads, errout.adb: Implement new circuit for substitution of
38522 * sem_case.adb (Analyze_Choices): Place message properly when case is
38523 a subtype reference rather than an explicit range.
38525 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
38527 2004-03-02 Doug Rupp <rupp@gnat.com>
38529 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
38531 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
38533 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
38535 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38537 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
38540 2004-02-25 Robert Dewar <dewar@gnat.com>
38542 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
38543 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
38544 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
38545 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
38546 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
38547 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
38548 the defining instance of the type to avoid aliasing problems.
38549 Fix copyright header. Fix bad comments in package header.
38551 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
38553 2004-02-25 Ed Schonberg <schonberg@gnat.com>
38555 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
38556 rewritten as references when aliased through an address clause.
38558 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
38559 whether call can be interpreted as an indirect call to the result of a
38560 parameterless function call returning an access subprogram.
38562 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
38565 * exp_ch7.adb (Make_Clean): Remove generation of calls to
38566 Unlock[_Entries], since this is now done by Service_Entries directly.
38568 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
38570 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
38571 Requeue_Call for better code readability. Change spec and update calls:
38572 PO_Service_Entries now unlock the PO on exit.
38573 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
38574 PO_Service_Entries.
38576 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
38578 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
38580 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
38582 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
38583 protected subprogram call and analyzing the result of such expanding
38584 in case when the called protected subprogram is eliminated.
38586 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
38589 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
38591 * Makefile.in: Clean ups.
38593 2004-02-23 Ed Schonberg <schonberg@gnat.com>
38595 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
38596 protected operations if original subprogram is flagged as eliminated.
38597 (Expand_N_Subprogram_Body): For a protected operation, create
38598 discriminals for next operation before checking whether the operation
38601 * exp_ch9.adb (Expand_N_Protected_Body,
38602 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
38603 for internal protected operations if the original subprogram is
38606 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
38607 declared in a single protected object.
38609 2004-02-23 Vincent Celier <celier@gnat.com>
38611 * prj-attr.adb: Make attribute Builder'Executable an associative array,
38612 case insensitive if file names are case insensitive, instead of a
38613 standard associative array.
38615 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
38616 them as case insensitive on platforms where the file names are case
38619 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
38620 project file has already been parsed that canonical path are compared.
38622 2004-02-23 Robert Dewar <dewar@gnat.com>
38624 * sinput-c.ads: Correct bad unit title in header
38626 * freeze.adb: Minor reformatting
38628 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38630 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
38631 nonaddressable COMPONENT_REF that is removing padding that we are
38632 taking the address of, take the address of the padded record instead
38633 if item is variable size.
38635 2004-02-20 Robert Dewar <dewar@gnat.com>
38637 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
38639 2004-02-20 Ed Schonberg <schonberg@gnat.com>
38641 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
38642 itype references for the constrained designated type of a component
38643 whose base type is already frozen.
38645 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
38647 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
38648 avoid GCC warnings.
38650 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
38652 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
38653 identifier for a phantom package that rewrites the formal package
38654 declaration with a box. The Add semantic decorations for the defining
38655 identifier from the original node (that represents the formal package).
38657 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
38659 * Make-lang.in (ada/stamp-sdefault): Use the top level
38662 2004-02-19 Richard Henderson <rth@redhat.com>
38664 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
38666 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
38668 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
38669 Scan_ALI can be used for multiple ALI files without reinitializing
38672 2004-02-18 Robert Dewar <dewar@gnat.com>
38674 * debug.adb: Minor reformatting.
38676 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38678 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
38679 to zero if there is an address clause.
38681 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
38683 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
38685 2004-02-18 Gary Dismukes <dismukes@gnat.com>
38687 * layout.adb (Layout_Component_List): Revise generation of call to
38688 discriminant-checking function to pass selections of all of the type's
38689 discriminants rather than just the variant-controlling discriminant.
38691 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
38693 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
38694 fail in the current setup and triggers spurious system error messages.
38695 Pretend it occurred and failed instead.
38697 2004-02-18 Vincent Celier <celier@gnat.com>
38699 * bld.adb: Mark FLDFLAGS as saved
38700 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
38701 it is not the root project. Put each directory to be
38702 extended between double quotes to prevent it to be expanded on Windows.
38703 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
38704 the project file. Set them back to their initial values if they have not
38705 been set in the project file.
38707 * gprcmd.adb: (Gprdebug, Debug): New global variables
38708 (Display_Command): New procedure
38709 (Usage): Document new command "linkopts"
38710 Call Display_Command when env var GPRDEBUG has the value "TRUE"
38711 Implement new command "linkopts"
38712 Remove quotes that may be around arguments for "extend"
38713 Always call Normalize_Pathname with arguments formatted for the platform
38715 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
38716 Change @echo to @$(display) in target clean to be able to clean silently
38718 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
38720 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
38723 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
38724 = Extending_All when current project is an extending all project.
38726 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
38727 set to True only for LINK command, after Unix switch -o.
38728 (Process_Arguments): Set Output_File_Expected to True for LINK command
38729 after Unix switch -o. When Output_File_Expected is True, never add an
38730 extension to a file name.
38732 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
38733 option file name, only to the --for-linker= switch.
38734 (Option_File_Name): If option file name do not end with ".opt", append
38737 2004-02-18 GNAT Script <nobody@gnat.com>
38739 * Make-lang.in: Makefile automatically updated
38741 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
38743 * Make-lang.in (stamp-sdefault): Do not depend on
38746 2004-02-12 Zack Weinberg <zack@codesourcery.com>
38748 * config-lang.in: Disable Ada by default until probe logic for
38749 a bootstrap Ada compiler can be moved to the top level configure
38752 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
38754 * decl.c (components_to_record): Don't claim that the internal fields
38755 we make to hold the variant parts are semantically addressable, because
38758 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
38759 adjust the comment describing the modular type form when we can use it.
38760 (Install_PAT): Account for the Esiz renaming.
38762 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
38763 sc_onstack context indication before raising the exception to which
38764 the signal is mapped. Allows better handling of later signals possibly
38765 triggered by the resumed user code if the exception is handled.
38767 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
38769 * 5zinit.adb: Removed, no longer used.
38771 2004-02-12 Robert Dewar <dewar@gnat.com>
38773 * ali.adb: Remove separating space between parameters on R line. Makes
38774 format consistent with format used by the binder for Set_Globals call.
38776 * atree.ads, atree.adb: Minor reformatting (new function header format)
38778 * bindgen.adb: Add Run-Time Globals documentation section containing
38779 detailed documentation of the globals passed from the binder file to
38782 * gnatls.adb: Minor reformatting
38784 * init.c (__gnat_set_globals): Add note pointing to documentation in
38787 * lib-writ.ads, lib-writ.adb: Remove separating space between
38788 parameters on R line.
38789 Makes format consistent with format used by the binder for Set_Globals
38792 * osint.ads: Add 2004 to copyright notice
38795 * snames.ads: Correct capitalization of FIFO_Within_Priorities
38796 Noticed during code reading, documentation issue only
38798 * usage.adb: Remove junk line for obsolete C switch
38799 Noticed during code reading
38801 2004-02-12 Vincent Celier <celier@gnat.com>
38803 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
38804 extend for each directory, so that multiple /** directories are
38805 extended individually.
38806 (Recursive_Process): Set the default for LANGUAGES to ada
38808 * gprcmd.adb: Define new command "ignore", to do nothing.
38809 Implement new comment "path".
38811 * Makefile.generic: Suppress output when SILENT is set
38812 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
38813 used, so that the correct compiler is invoked.
38814 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
38815 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
38817 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
38819 * Makefile.in: Clean ups and remove obsolete targets.
38821 2004-02-12 Ed Schonberg <schonberg@gnat.com>
38823 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
38824 predicate declared in exp_util.
38826 * exp_util.adb: Add comments.
38828 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
38829 visibility before compiling context of the subunit.
38831 * sem_res.adb (Check_Parameterless_Call): If the context expects a
38832 value but the name is a procedure, do not attempt to analyze as a call,
38833 in order to obtain more telling diagnostics.
38835 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
38836 'Access on parameterless function calls.
38837 (Normalize_Actuals): For a parameterless function call with missing
38838 actuals, defer diagnostic until resolution of enclosing call.
38840 * sem_util.adb (Wrong_Type): If the context type is an access to
38841 subprogram and the expression is a procedure name, suggest a missing
38844 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
38845 Nathanael Nerode <neroden@gcc.gnu.org>
38849 Merge with libada-branch:
38850 * config-lang.in: Build libada only when ada is built.
38852 2004-02-09 Ed Schonberg <schonberg@gnat.com>
38854 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
38855 for a tagged type, verify that both formals have the same type.
38857 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
38858 temporary when the formal is an in-parameter and the actual a possibly
38861 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
38862 when expansion is disabled, to ensure proper name capture with
38863 overloaded literals. Condition can be of any boolean type, resolve
38866 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
38867 renaming is for a formal subprogram with a default operator name, and
38868 there is a usable operator that is visible at the point of
38871 2004-02-09 Robert Dewar <dewar@gnat.com>
38873 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
38874 rewrite to ignore errors in ali files, intended to allow tools downward
38875 compatibility with new versions of ali files.
38877 * ali.ads: Add new parameter Ignore_Errors
38879 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
38880 duplicating the error message giving the file with restrictions.
38882 * debug.adb: Add debug flag I for gnatbind
38884 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
38885 operators for the case where the operator is a defining operator.
38887 * exp_ch3.adb: Minor reformatting (new function spec format).
38889 * exp_ch4.adb: Add comment for previous change, and make minor
38890 adjustment to loop to always check for improper loop termination.
38891 Minor reformatting throughout (new function spec format).
38893 * gnatbind.adb: Implement -di debug flag for gnatbind
38895 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
38897 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
38899 * lib-load.adb: Fix bad assertion.
38900 Found by testing and code reading.
38901 Minor reformatting.
38903 * lib-load.ads: Minor reformatting.
38905 * lib-writ.adb: There is only one R line now.
38907 * lib-writ.ads: Add documentation on making downward compatible changes
38908 to ali files so old tools work with new ali files.
38909 There is only one R line now.
38910 Add documentation on format incompatibilities (with special GPS note)
38912 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
38914 * par-load.adb: Minor reformatting
38916 * sem_ch8.adb: Fix to error message from last update
38917 Minor reformatting and restructuring of code from last update
38919 * par-prag.adb, snames.adb, snames.ads, snames.h,
38920 sem_prag.adb: Implement pragma Profile.
38922 * stylesw.adb: Implement -gnatyN switch to turn off all style check
38925 * usage.adb: Add line for -gnatyN switch
38927 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
38929 2004-02-09 Albert Lee <lee@gnat.com>
38931 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
38933 2004-02-09 Ed Schonberg <schonberg@gnat.com>
38935 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
38938 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
38939 is nested in an instance that is not frozen yet, to avoid
38940 order-of-elaboration problems in gigi.
38942 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
38943 body the attribute is legal.
38945 2004-02-09 Robert Dewar <dewar@gnat.com>
38947 * s-rident.ads: Minor comment correction
38949 * targparm.adb: Remove dependence on uintp completely. There was
38950 always a bug in Make in that it called Targparm before initializing
38951 the Uint package. The old code appeared to get away with this, but
38952 the new code did not! This caused an assertion error in gnatmake.
38954 * targparm.ads: Fix bad comment, restriction pragmas with parameters
38955 are indeed fully supported.
38957 2004-02-06 Alan Modra <amodra@bigpond.net.au>
38959 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
38961 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
38963 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
38964 with targetm.calls.promote_prototypes.
38966 2004-02-04 Robert Dewar <dewar@gnat.com>
38968 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
38969 ali.ads, gprcmd.adb: Minor reformatting
38971 * bindgen.adb: Output restrictions string for new style restrictions
38974 * impunit.adb: Add s-rident.ads (System.Rident) and
38975 s-restri (System.Restrictions)
38977 * lib-writ.adb: Fix bug in writing restrictions string (last few
38980 * s-restri.ads, s-restri.adb: Change name Restrictions to
38981 Run_Time_Restrictions to avoid conflict with package name.
38982 Add circuit to read and acquire run time restrictions.
38984 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
38986 * restrict.ads, restrict.adb: Use the new restriction
38987 No_Task_Attributes_Package instead of the old No_Task_Attributes.
38989 * sem_prag.adb: No_Task_Attributes is a synonym of
38990 No_Task_Attributes_Package.
38992 * snames.ads, snames.adb: New entry for proper handling of
38993 No_Task_Attributes.
38995 * s-rident.ads: Adding restriction No_Task_Attributes_Package
38996 (AI-00249) that supersedes the GNAT specific restriction
38997 No_Task_Attributes.
38999 2004-02-04 Ed Schonberg <schonberg@gnat.com>
39002 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
39003 body, an identifier may be wrapped in an unchecked conversion.
39005 2004-02-04 Vincent Celier <celier@gnat.com>
39007 * lib-writ.ads: Comment update for the W lines
39009 * bld.adb: (Expression): An empty string list is static
39011 * fname-uf.adb: Minor comment update
39013 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
39015 * gnatbind.adb: Initialize Cumulative_Restrictions with the
39016 restrictions on the target.
39018 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
39020 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
39023 2004-02-02 Arnaud Charlet <charlet@gnat.com>
39025 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
39027 2004-02-02 Vincent Celier <celier@gnat.com>
39029 * gprcmd.adb (Check_Args): If condition is false, print the invoked
39030 comment before the usage.
39031 Gprcmd: Fail when command is not recognized.
39032 (Usage): Document command "prefix"
39034 * g-md5.adb (Digest): Process last block.
39035 (Update): Do not process last block. Store remaining characters and
39038 * g-md5.ads (Update): Document that several call to update are
39039 equivalent to one call with the concatenated string.
39040 (Context): Add fields to allow new Update behaviour.
39042 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
39043 defaulted to False.
39044 When May_Fail is True and no existing file can be found, return No_File.
39046 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
39049 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
39050 spec file name instead on the W line.
39052 2004-02-02 Robert Dewar <dewar@gnat.com>
39054 * ali.adb: Read and acquire info from new format restrictions lines
39056 * bcheck.adb: Add circuits for checking restrictions with parameters
39058 * bindgen.adb: Output dummy restrictions data
39059 To be changed later
39061 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
39062 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
39063 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
39064 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
39065 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
39067 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
39068 the warning message on access to possibly uninitialized variable S)
39069 Minor changes for new restrictions handling.
39071 * gnatbind.adb: Minor reformatting
39072 Minor changes for new restrictions handling
39073 Move circuit for -r processing here from bcheck (cleaner)
39075 * gnatcmd.adb, gnatlink.adb: Minor reformatting
39077 * lib-writ.adb: Output new format restrictions lines
39079 * lib-writ.ads: Document new R format lines for new restrictions
39082 * s-restri.ads/adb: New files
39084 * Makefile.rtl: Add entry for s-restri.ads/adb
39086 * par-ch3.adb: Fix bad error messages starting with upper case letter
39089 * restrict.adb: Major rewrite throughout for new restrictions handling
39090 Major point is to handle restrictions with parameters
39092 * restrict.ads: Major changes in interface to handle restrictions with
39093 parameters. Also generally simplifies setting of restrictions.
39095 * snames.ads/adb: New entry for proper handling of No_Requeue
39097 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
39098 restriction counting.
39099 Other minor changes for new restrictions handling
39101 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
39102 Restriction_Warnings now allows full parameter notation
39103 Major rewrite of Restrictions for new restrictions handling
39105 2004-02-02 Javier Miranda <miranda@gnat.com>
39107 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
39108 syntax rule for object renaming declarations.
39109 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
39110 component definitions.
39112 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
39114 (Array_Type_Declaration): Give support to access components. In addition
39115 it was also modified to reflect the name of the object in anonymous
39116 array types. The old code did not take into account that it is possible
39117 to have an unconstrained anonymous array with an initial value.
39118 (Check_Or_Process_Discriminants): Allow access discriminant in
39120 (Process_Discriminants): Allow access discriminant in non-limited types
39121 Initialize the new Access_Definition field in N_Object_Renaming_Decl
39122 node. Change Ada0Y to Ada 0Y in comments
39124 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
39125 equality operators.
39126 Change Ada0Y to Ada 0Y in comments
39128 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
39129 renamings Change Ada0Y to Ada 0Y in comments
39131 * sem_type.adb (Find_Unique_Type): Give support to the equality
39132 operators for universal access types
39133 Change Ada0Y to Ada 0Y in comments
39135 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
39137 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
39139 (N_Object_Renaming_Declaration): Addition of Access_Definition field
39140 Change Ada0Y to Ada 0Y in comments
39142 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
39143 component definition and object renaming nodes
39144 Change Ada0Y to Ada 0Y in comments
39146 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
39148 * restrict.adb: Use the new restriction identifier
39149 No_Requeue_Statements instead of the old No_Requeue for defining the
39150 restricted profile.
39152 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
39153 No_Requeue_Statements.
39155 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
39156 that supersedes the GNAT specific restriction No_Requeue. The later is
39157 kept for backward compatibility.
39159 2004-02-02 Ed Schonberg <schonberg@gnat.com>
39161 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
39162 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
39163 pragma and fix incorrect ones.
39165 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
39166 warning if the pragma is redundant.
39168 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
39170 * 5staprop.adb: Add missing 'constant' keywords.
39172 * Makefile.in: use consistent value for SYMLIB on
39173 platforms where libaddr2line is supported.
39175 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39177 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
39180 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
39182 * init.c (__gnat_install_handler): Setup an alternate stack for signal
39183 handlers in the environment thread. This allows proper propagation of
39184 an exception on stack overflows in this thread even when the builtin
39185 ABI stack-checking scheme is used without support for a stack reserve
39188 * utils.c (create_field_decl): Augment the head comment about bitfield
39189 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
39190 here, because the former is not accurate enough at this point.
39191 Let finish_record_type decide instead.
39192 Don't make a bitfield if the field is to be addressable.
39193 Always set a size for the field if the record is packed, to ensure the
39194 checks for bitfield creation are triggered.
39195 (finish_record_type): During last pass over the fields, clear
39196 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
39197 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
39198 from DECL_BIT_FIELD.
39200 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
39202 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
39203 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
39204 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
39206 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39208 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
39210 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
39211 (ZCX_By_Default): Likewise.
39212 (Front_End_ZCX_Support): Likewise.
39214 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
39215 (Initialize_Lock): Mark Level unreferenced.
39216 (Sleep): Mark Reason unreferenced.
39217 (Timed_Sleep): Likewise.
39218 (Wakeup): Likewise.
39219 (Exit_Task): Use Result.
39220 (Check_No_Locks): Mark Self_ID unreferenced.
39222 * 5gtasinf.adb (New_Sproc): Make Attr constant.
39223 (Bound_Thread_Attributes): Make Sproc constant.
39224 (New_Bound_Thread_Attributes): Likewise.
39226 2004-01-26 Ed Schonberg <schonberg@gnat.com>
39228 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
39229 one-dimensional array an slice assignments, when component type is
39232 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
39233 component type is controlled, and control_actions are in effect, use
39234 TSS procedure rather than generating inline code.
39236 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
39237 arrays with controlled components.
39239 2004-01-26 Vincent Celier <celier@gnat.com>
39241 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
39242 command line for the non VMS case.
39244 * gnatlink.adb (Process_Binder_File): When building object file, if
39245 GNU linker is used, put all object paths between quotes, to prevent ld
39246 error when there are unusual characters (such as '!') in the paths.
39248 * Makefile.generic: When there are sources in Ada and the main is in
39249 C/C++, invoke gnatmake with -B, instead of -z.
39251 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
39252 from VMS_Conversion.
39253 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
39254 specification of argument file on the command line.
39256 2004-01-26 Bernard Banner <banner@gnat.com>
39258 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
39260 2004-01-26 Ed Schonberg <schonberg@gnat.com>
39262 * snames.adb: Update copyright notice.
39263 Add info on slice assignment for controlled arrays.
39265 2004-01-23 Robert Dewar <dewar@gnat.com>
39267 * exp_aggr.adb: Minor reformatting
39269 * exp_ch9.adb: Minor code clean up
39271 Fix bad character in comment
39274 * targparm.adb (Get_Target_Parameters): Give clean abort error on
39275 unexpected end of file, along with more detailed message.
39277 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39279 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
39282 * decl.c (copy_alias_set): New function.
39283 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
39285 2004-01-23 Doug Rupp <rupp@gnat.com>
39287 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
39288 lib$${file} in case subsequent character is not a separator.
39290 2004-01-23 Vincent Celier <celier@gnat.com>
39292 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
39293 when the GCC version is at least 3.
39295 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
39296 Remove all "Opt.", to prepare for opt split
39298 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
39299 Extends_All. Set to True when the project parsed is an extending all
39300 project. Fails for importing an extending all project only when the
39301 imported project is an extending all project.
39302 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
39303 depending on the value of Extends_All returned.
39305 * prj-proc.adb (Process): Check that no project shares its object
39306 directory with a project that extends it, directly or indirectly,
39307 including a virtual project.
39308 Check that no project extended by another project shares its object
39309 directory with another also extended project.
39311 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
39312 Kind = N_With_Clause
39314 * prj-tree.ads: Minor reformatting
39315 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
39317 2004-01-23 Ed Schonberg <schonberg@gnat.com>
39319 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
39320 applies to a type with an incomplete view, use full view in Name of
39321 clause, for consistency with uses of Get_Attribute_Definition_Clause.
39323 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
39325 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
39326 SCHED_RR, since other values are not supported by this policy.
39327 (Initialize): Move initialization of mutex attribute to package
39328 elaboration, to prevent early access to this variable.
39330 * Makefile.in: Remove mention of Makefile.adalib, unused.
39332 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39333 1ssecsta.ads: Removed, unused.
39335 2004-01-21 Javier Miranda <miranda@gnat.com>
39337 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
39338 entity if already built in the current scope.
39340 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
39341 reminder in internal scopes. Required for nested limited aggregates.
39343 2004-01-21 Doug Rupp <rupp@gnat.com>
39345 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
39346 VMS. Replace all occurences of libgnat- and libgnarl- with
39347 libgnat$(hyphen) and libgnarl$(hyphen).
39348 Fixed shared library build problem on VMS.
39350 2004-01-21 Robert Dewar <dewar@gnat.com>
39352 * mlib-prj.adb: Minor reformatting
39354 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
39356 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
39357 'constant' keywords for declaration of pointers that are not modified.
39359 * exp_pakd.adb: Fix English in comment.
39361 2004-01-21 Ed Schonberg <schonberg@gnat.com>
39364 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
39365 copy all attributes of the parent, including the foreign language
39368 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
39371 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
39372 for 'delay until' statement.
39374 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
39376 * Make-lang.in: Replace $(docdir) with doc.
39377 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
39378 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
39379 to use consistent MAKEINFO rule.
39380 (ada.man, ada.srcman): Dummy entry.
39381 (ADA_INFOFILES): Define.
39382 (ada.info, ada.srcinfo): New rules.
39384 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
39386 * utils.c: Update copyright notice, missed in previous change.
39388 2004-01-19 Vincent Celier <celier@gnat.com>
39390 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
39391 args if Bind is True. Set First_ALI, if not already done.
39392 (Build_Library): For Stand Alone Libraries, extract from one ALI file
39393 an eventual --RTS switch, for gnatbind, and all backend switches +
39394 --RTS, for linking.
39396 2004-01-19 Robert Dewar <dewar@gnat.com>
39398 * sem_attr.adb, memtrack.adb: Minor reformatting
39400 2004-01-19 Ed Schonberg <schonberg@gnat.com>
39402 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
39403 that rename enumeration literals. This is properly done in sem_eval.
39405 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
39406 to functions that rename enumeration literals.
39408 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
39409 functions that rename enumeration literals.
39411 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
39413 * Make-lang.in (utils.o): Depend on target.h.
39414 * utils.c: Include target.h.
39415 (process_attributes): Use targetm.have_named_sections instead
39416 of ASM_OUTPUT_SECTION_NAME.
39418 2004-01-16 Andreas Jaeger <aj@suse.de>
39420 * Makefile.in: Add $(DESTDIR).
39422 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
39424 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
39425 also when not defining if a Size clause applies. That information is
39428 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
39430 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
39431 symbolic links for the shared gnat run time when needed.
39433 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
39435 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
39436 for writing, and terminate with an error message if not.
39438 2004-01-15 Ed Schonberg <schonberg@gnat.com>
39440 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
39441 warning on an access to subprogram in an instance, when the target
39442 type is declared in the same generic unit.
39443 (Eval_Attribute): If 'access is known to fail accessibility check,
39444 rewrite as a raise statement.
39446 2004-01-15 GNAT Script <nobody@gnat.com>
39448 * Make-lang.in: Makefile automatically updated
39450 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
39452 * Make-lang.in (ada.srcextra): Dummy entry.
39454 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
39456 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
39458 2004-01-13 Ed Schonberg <schonberg@gnat.com>
39460 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
39461 components that are initialized with aggregates.
39463 2004-01-13 Vincent Celier <celier@gnat.com>
39465 * gnatlink.adb (Process_Binder_File): To find directory of shared
39466 libgcc, if "gcc-lib" is not a subdirectory, look for the last
39467 subdirectory "lib" in the path of the shared libgnat or libgnarl.
39469 * make.adb (Gnatmake): If GCC version is at least 3, link with
39470 -shared-libgcc, when there is at least one shared library project.
39472 * opt.ads (GCC_Version): New integer constant.
39474 * adaint.c (get_gcc_version): New function.
39476 2004-01-13 Robert Dewar <dewar@gnat.com>
39478 * sem_dist.adb, sem_res.adb, sem_util.adb,
39479 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
39480 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
39482 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
39484 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
39485 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
39488 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
39490 * misc.c: Remove trailing spaces.
39491 Update copyright notice missed in previous change.
39494 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
39497 * Makefile.generic: Update copyright.
39498 Add license notice.
39500 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
39501 of prefix/share/make.
39503 * Makefile.prolog: Update copyright.
39504 Add license notice.
39506 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
39508 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
39509 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
39510 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
39513 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
39516 2004-01-12 Javier Miranda <miranda@gnat.com>
39518 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
39519 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
39520 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
39521 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
39522 Component_Definition node.
39524 2004-01-12 Ed Falis <falis@gnat.com>
39526 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
39528 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
39530 * link.c: Change default libgnat kind to STATIC for FreeBSD.
39532 2004-01-12 Bernard Banner <banner@gnat.com>
39534 * Makefile.in: map 86numaux to a-numaux for x86_64
39536 2004-01-12 Ed Schonberg <schonberg@gnat.com>
39538 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
39539 generated to rename a generic actual, go to the actual itself, the
39540 subtype is not a user-visible entity.
39542 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
39543 part is a private subtype, reset the visibility of its full view, if
39544 any, to be consistent.
39547 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
39548 to use a generic package G as a formal package for another generic
39551 2004-01-12 Robert Dewar <dewar@gnat.com>
39553 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
39555 * usage.adb: Remove mention of obsolete -gnatwb switch
39556 Noticed during code reading
39558 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
39560 * 1ssecsta.adb: Minor changes for -gnatwa warnings
39562 2004-01-12 GNAT Script <nobody@gnat.com>
39564 * Make-lang.in: Makefile automatically updated
39566 2004-01-09 Mark Mitchell <mark@codesourcery.com>
39568 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
39570 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39572 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
39574 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
39576 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
39577 Update comment and copyright date.
39578 * stamp-xgnatug: Delete.
39580 2004-01-05 Robert Dewar <dewar@gnat.com>
39582 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
39583 be modified by the binder generated main program if the -D switch is
39586 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
39587 imported functions (since now we expect this to be done for imported
39590 * 5vtaprop.adb: Add several ??? for sections requiring more comments
39591 Minor reformatting throughout
39593 * 5zinit.adb: Minor reformatting
39594 Add 2004 to copyright date
39595 Minor changes to avoid -gnatwa warnings
39596 Correct some instances of using OR instead of OR ELSE (noted while
39597 doing reformatting)
39599 * sprint.adb: Minor updates to avoid -gnatwa warnings
39601 * s-secsta.ads, s-secsta.adb:
39602 (SS_Get_Max): New function to obtain high water mark for ss stack
39603 Default_Secondary_Stack is not a constant since it may be modified by
39604 the binder generated main program if the -D switch is used.
39606 * switch-b.adb: New -Dnnn switch for binder
39609 Make -gnatg imply all warnings currently in -gnatwa
39611 * vms_conv.adb: Minor reformatting
39612 Add 2004 to copyright notice
39613 Add 2004 to printed copyright notice
39615 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
39616 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
39617 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
39618 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
39619 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
39620 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
39621 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
39622 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
39623 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
39624 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
39625 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
39626 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
39627 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
39628 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
39629 checks.adb, clean.adb, cstand.adb, einfo.ads,
39630 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
39631 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
39632 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
39633 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
39634 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
39635 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
39636 Minor reformatting and code clean ups.
39637 Minor changes to prevent -gnatwa warnings
39639 * ali.adb: Minor reformatting and cleanup of code
39640 Acquire new SS indication of secondary stack use from ali files
39642 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
39643 (since now we expect this to be done for imported functions)
39645 * bindgen.adb: Generate call to modify default secondary stack size if
39648 * bindusg.adb: Add line for new -D switch
39650 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
39651 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
39652 Add circuitry for both records and arrays to avoid gigi
39653 processing if the type involved has non-bit-aligned components
39655 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
39656 N_String_Literal node always references an E_String_Literal_Subtype
39657 entity. This may not be true in the future.
39658 (Possible_Bit_Aligned_Component): Move processing of
39659 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
39661 * exp_ch6.adb (Expand_Thread_Body): Pick up
39662 Default_Secondary_Stack_Size as variable so that we get value modified
39663 by possible -Dnnn binder parameter.
39665 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
39666 (Type_May_Have_Bit_Aligned_Components): New function.
39668 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
39669 (Type_May_Have_Bit_Aligned_Components): New function.
39671 * fe.h: (Set_Identifier_Casing): Fix prototype.
39672 Add declaration for Sem_Elim.Eliminate_Error_Msg.
39673 Minor reformatting.
39675 * freeze.adb (Freeze_Entity): Add RM reference to error message about
39676 importing constant atomic/volatile objects.
39677 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
39678 unless explicit Pure_Function pragma given, to avoid insidious bug of
39679 call to non-pure imported function getting eliminated.
39681 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
39682 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
39683 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
39684 Add 2004 to printed copyright notice
39686 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
39689 * Makefile.rtl: Add entry for g-sestin.o
39690 g-sestin.ads: New file.
39692 * mdll.adb: Minor changes to avoid -gnatwa warnings
39694 * mlib-tgt.adb: Minor reformatting
39696 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
39697 New switch Sec_Stack_Used (GNAT, GNATBIND)
39698 Make Default_Secondary_Stack_Size a variable instead of a constant,
39699 so that it can be modified by the new -Dnnn bind switch.
39701 * rtsfind.adb (Load_Fail): Give full error message in configurable
39702 run-time mode if all_errors mode is set. This was not done in the case
39703 of a file not found, which was an oversight.
39704 Note if secondary stack unit is used by compiler.
39706 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
39707 ineffective elaborate all pragmas on non-visible packages (this
39708 happened when a renamed subprogram was called). Now the elaborate all
39709 always goes on the package containing the renaming rather than the one
39710 containing the renamed subprogram.
39712 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
39713 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
39715 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
39716 has an Etype that references an E_String_Literal.
39717 (Eval_String_Literal): Avoid assumption that N_String_Literal node
39718 always references an E_String_Literal_Subtype entity. This may not
39719 be true in the future.
39721 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
39724 * sem_res.adb (Resolve): Specialize msg for function name used in proc
39727 2004-01-05 Ed Falis <falis@gnat.com>
39729 * g-debuti.adb: Replaced direct boolean operator with short-circuit
39732 2004-01-05 Vincent Celier <celier@gnat.com>
39734 * bld.adb: Minor comment updates
39735 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
39738 * make.adb (Gnatmake): Special process for files to compile/check when
39739 -B is specified. Fail when there are only foreign mains in attribute
39740 Main of the project file and -B is not specified. Do not skip bind/link
39741 steps when -B is specified.
39743 * makeusg.adb: Document new switch -B
39745 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
39747 * switch-m.adb: (Scan_Make_Switches): Process -B switch
39749 * vms_data.ads: Add new GNAT PRETTY qualifier
39750 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
39752 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39754 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
39757 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
39758 Set_Identifier_Casing.
39760 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
39761 has size that overflows.
39763 2004-01-05 Gary Dismukes <dismukes@gnat.com>
39765 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
39766 -gnatwa warning on static condition.
39768 2004-01-05 Doug Rupp <rupp@gnat.com>
39770 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
39772 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
39774 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
39775 all attributes, including read-only attribute.
39777 2004-01-05 Pascal Obry <obry@gnat.com>
39779 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
39780 library naming scheme.
39782 * mlib-prj.adb (Build_Library): Generate different names for the static
39783 or dynamic version of the GNAT runtime. This is needed to support the
39784 new shared library naming scheme.
39785 (Process_Binder_File): Add detection of shared library in binder file
39786 based on the new naming scheme.
39788 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
39789 scheme for the shared runtime libraries.
39792 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
39794 (install-gnatlib): Do not create symlinks for shared libraries.
39795 (gnatlib-shared-default): Idem.
39796 (gnatlib-shared-dual-win32): New target. Not used for now as the
39797 auto-import feature does not support arrays/records.
39798 (gnatlib-shared-win32): Do not create copy for the shared libraries.
39799 (gnatlib-shared-vms): Fix shared runtime libraries names.
39801 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
39802 dependent runtime shared library name.
39804 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
39806 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
39809 2004-01-05 Ed Schonberg <schonberg@gnat.com>
39811 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
39812 protected objects when allocator has a subtype indication, not a
39813 qualified expression. Note that qualified expressions may have to be
39814 checked when limited aggregates are implemented.
39816 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
39817 pure, emit warning.
39818 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
39819 subprogram is imported, remove warning.
39821 2004-01-05 Geert Bosch <bosch@gnat.com>
39823 * s-poosiz.adb: Update copyright notice.
39824 (Allocate): Use Task_Lock to protect against concurrent access.
39825 (Deallocate): Likewise.
39827 2004-01-05 Joel Brobecker <brobecker@gnat.com>
39829 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
39832 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
39834 * gnat_ug.texi: Force a CVS commit by updating copyright.
39835 * gnat_ug_vxw.texi: Regenerate.
39836 * gnat_ug_wnt.texi: Regenerate.
39837 * gnat_ug_vms.texi: Regenerate.
39838 * gnat_ug_unx.texi: Regenerate.
39840 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
39842 * trans.c: Remove uses of "register" specifier in
39843 declarations of local variables.
39845 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
39847 * stamp-xgnatug: New stamp file.
39848 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
39849 (ada/doctools/xgnatug): Add $(build_exeext).
39850 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
39851 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
39853 2003-12-17 Ed Falis <falis@gnat.com>
39855 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
39858 * a-exextr.adb: Add context clause for
39859 Ada.Exceptions.Last_Chance_Handler.
39861 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
39863 * cstand.adb (Create_Standard): Change the way how the declaration of
39864 the Duration type is created (making it the same way as it is for all
39865 the other standard types).
39867 2003-12-17 Robert Dewar <dewar@gnat.com>
39869 * s-crtl.ads: Fix header format
39870 Change Pure to Preelaborate
39872 2003-12-17 Ed Schonberg <schonberg@gnat.com>
39874 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
39875 the expression type only if it is declared in the current unit.
39877 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
39878 are universal and already analyzed, as can occur in constrained
39879 subcomponents that depend on discriminants, when one constraint is a
39882 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
39883 type Any_Fixed is legal as the argument of a conversion, if only one
39884 fixed-point type is in context.
39886 2003-12-17 GNAT Script <nobody@gnat.com>
39888 * Make-lang.in: Makefile automatically updated
39890 2003-12-15 Robert Dewar <dewar@gnat.com>
39892 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
39895 2003-12-15 Vincent Celier <celier@gnat.com>
39897 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
39898 (Gnatchop): Do not set failure status when reporting the number of
39901 2003-12-15 Doug Rupp <rupp@gnat.com>
39903 * s-ctrl.ads: New file.
39905 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
39907 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
39908 (GNATBIND_OBJS): Add ada/s-crtl.o.
39910 * Makefile.in [VMS]: Clean up ifeq rules.
39912 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
39913 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
39914 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
39915 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
39916 s-tasdeb.adb: Update copyright.
39917 Import System.CRTL.
39918 Make minor modifications to use System.CRTL declared functions instead
39919 of importing locally.
39921 2003-12-15 GNAT Script <nobody@gnat.com>
39923 * Make-lang.in: Makefile automatically updated
39925 2003-12-11 Ed Falis <falis@gnat.com>
39927 * 5zinit.adb: Clean up.
39929 * 5zintman.adb (Notify_Exception): replaced case statement with a call
39930 to __gnat_map_signal, imported from init.c to support
39931 signal -> exception mappings that depend on the vxWorks version.
39934 Created and exported __gnat_map_signal to support signal -> exception
39935 mapping that is dependent on the VxWorks version.
39936 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
39938 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
39940 * 5wosinte.ads: Link with -mthreads switch.
39942 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
39944 * init.c (__gnat_install_handler [NetBSD]): Set
39945 __gnat_handler_installed, as done on all other platforms.
39946 Remove duplicated code.
39948 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
39950 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
39952 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
39954 * sinfo.ads: Fix inconsistent example code in comment.
39956 2003-12-11 Robert Dewar <dewar@gnat.com>
39958 * a-tiinau.adb: Add a couple of comments
39960 * sem_ch3.adb: Minor reformatting
39963 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
39964 Minor reformatting throughout
39966 2003-12-11 Ed Schonberg <schonberg@gnat.com>
39968 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
39969 bounds of a loop, create a separate block in order to generate proper
39970 cleanup actions to prevent memory leaks.
39972 * sem_res.adb (Resolve_Call): After a call to
39973 Establish_Transient_Scope, the call may be rewritten and relocated, in
39974 which case no further processing is needed.
39976 * sem_util.adb: (Wrong_Type): Refine previous fix.
39977 Fixes ACATS regressions.
39980 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
39983 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
39985 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
39986 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
39989 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
39992 2003-12-08 Robert Dewar <dewar@gnat.com>
39994 * 7sintman.adb: Minor reformatting
39996 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
39997 standard linker options to get standard libraries linked. We now plan
39998 to provide dummy versions of these libraries to match the appropriate
39999 configurable run-time (e.g. if a library is not needed at all, provide
40000 a dummy empty library).
40002 * targparm.ads: Configurable_Run_Time mode no longer affects linker
40003 options (-L parameters and standard libraries). What we plan to do is
40004 to provide dummy libraries where the libraries are not required.
40006 * gnatbind.adb: Minor comment improvement
40008 2003-12-08 Javier Miranda <miranda@gnat.com>
40010 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
40011 aggregate in the parent. Otherwise constants with limited aggregates
40012 are not supported. Add new formal to pass the component type (Ctype).
40013 It is required to call the corresponding IP subprogram in case of
40014 default initialized components.
40015 (Gen_Assign): In case of default-initialized component, generate a
40016 call to the IP subprogram associated with the component.
40017 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
40018 of aggregate with default initialized components.
40019 (Has_Default_Init_Comps): Improve implementation to recursively check
40020 all the present expressions.
40022 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
40023 to indicate that the initialization call corresponds to a
40024 default-initialized component of an aggregate.
40025 In case of default initialized aggregate with tasks this parameter is
40026 used to generate a null string (this is just a workaround that must be
40027 improved later). In case of discriminants, this parameter is used to
40028 generate a selected component node that gives access to the discriminant
40031 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
40032 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
40033 allocated aggregates with default-initialized components.
40035 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
40036 the box notation is used in positional aggregates.
40038 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
40040 * lib.ads: Fix typo in comment
40042 2003-12-08 Vincent Celier <celier@gnat.com>
40044 * prj.adb (Project_Empty): New component Unkept_Comments
40045 (Scan): Remove procedure; moved to Prj.Err.
40047 * prj.ads (Project_Data): New Boolean component Unkept_Comments
40048 (Scan): Remove procedure; moved to Prj.Err.
40050 * prj-dect.adb: Manage comments for the different declarations.
40052 * prj-part.adb (With_Record): New component Node
40053 (Parse): New Boolean parameter Store_Comments, defaulted to False.
40054 Set the scanner to return ends of line and comments as tokens, if
40055 Store_Comments is True.
40056 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
40057 comments are associated with these nodes. Store the node IDs in the
40059 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
40061 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
40062 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
40063 current project. Call Tree.Restore afterwards. Set the various nodes
40064 for comment storage (Next_End, End_Of_Line, Previous_Line,
40067 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
40068 defaulted to False.
40070 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
40071 to False. When Truncated is True, truncate the string, never go to the
40073 (Write_End_Of_Line_Comment): New procedure
40074 (Print): Process comments for nodes N_With_Clause,
40075 N_Package_Declaration, N_String_Type_Declaration,
40076 N_Attribute_Declaration, N_Typed_Variable_Declaration,
40077 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
40078 Process nodes N_Comment.
40080 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
40081 without comments and there are some comments, set the flag
40082 Unkept_Comments to True.
40083 (Scan): If there are comments, set the flag Unkept_Comments to True and
40084 clear the comments.
40085 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
40086 (Next_End_Nodes: New table
40087 (Comment_Zones_Of): New function
40088 (Scan): New procedure; moved from Prj. Accumulate comments in the
40089 Comments table and set end of line comments, comments after, after end
40091 (Add_Comments): New procedure
40092 (Save, Restore, Seset_State): New procedures
40093 (There_Are_Unkept_Comments): New function
40094 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
40095 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
40097 (First_Comment_After, First_Comment_After_End): New functions
40098 (First_Comment_Before, First_Comment_Before_End): New functions
40099 (Next_Comment): New function
40100 (End_Of_Line_Comment, Follows_Empty_Line,
40101 Is_Followed_By_Empty_Line): New functions
40102 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
40103 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
40104 (Set_Next_Comment): New procedure
40105 (Default_Project_Node): Associate comment before if the node can store
40108 * scans.ads (Token_Type): New enumeration value Tok_Comment
40109 (Comment_Id): New global variable
40111 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
40112 defaulted to False.
40113 (Scan): Store position of start of comment. If comments are tokens, set
40114 Comment_Id and set Token to Tok_Comment when scanning a comment.
40115 (Set_Comment_As_Token): New procedure
40117 * sinput-p.adb: Update Copyright notice
40118 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
40119 that no longer exists.
40121 2003-12-08 Javier Miranda <miranda@gnat.com>
40123 * sem_aggr.adb: Add dependence on Exp_Tss package
40124 Correct typo in comment
40125 (Resolve_Aggregate): In case of array aggregates set the estimated
40126 type of the aggregate before calling resolve. This is needed to know
40127 the name of the corresponding IP in case of limited array aggregates.
40128 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
40129 in case of default initialized array components.
40131 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
40132 types. Required to give support to limited aggregates in generic
40135 2003-12-08 Ed Schonberg <schonberg@gnat.com>
40137 * sem_ch3.adb (Check_Initialization): For legality purposes, an
40138 inlined body functions like an instantiation.
40139 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
40140 until bounds are analyzed, to diagnose premature use of type.
40142 * sem_util.adb (Wrong_Type): Improve error message when the type of
40143 the expression is used prematurely.
40145 2003-12-08 GNAT Script <nobody@gnat.com>
40147 * Make-lang.in: Makefile automatically updated
40149 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
40151 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
40152 they are automatically generated by Make-lang.in and cause nothing but
40153 maintenance troubles.
40155 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
40157 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
40158 version of this unit).
40160 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
40162 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
40163 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
40164 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
40165 the body of System.Interrupt_Management common to several targets.
40166 Update copyright notice when appropriate.
40168 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
40171 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
40172 to ensure that the kernel fills in the interrupted context structure
40173 before calling a signal handler, which is necessary to be able to
40174 unwind past it. Update the copyright notice.
40176 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
40178 * a-elchha.ads: New file.
40180 * a-elchha.adb: New default last chance handler. Contents taken from
40181 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
40183 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
40184 is moved to a-elchha.adb to provide a target-independent default last
40187 * Makefile.rtl: Add a-elchha.o
40189 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
40191 2003-12-05 Ed Schonberg <schonberg@gnat.com>
40193 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
40194 declared in an instance, do not inline the call if the instance is not
40195 frozen yet, to prevent order of elaboration problems.
40197 * sem_prag.adb: Add comments for previous fix.
40199 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
40201 * g-table.adb: Use the right variable in Set_Item.
40202 Update copyright notice.
40204 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
40206 * Makefile.in: Remove unused rules.
40208 2003-12-05 Vincent Celier <celier@gnat.com>
40210 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
40211 -nostdlib. Not needed here after all.
40213 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
40216 * adaint.h, adaint.c, g-os_lib.ads:
40217 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
40218 on some platforms (including FreeBSD), it is a 64 bit value.
40219 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
40221 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
40223 * gnatvsn.ads (Library_Version): Now contain only the relevant
40225 (Verbose_Library_Version): New constant.
40227 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
40228 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
40229 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
40231 * gnatlbr.adb: Clean up: replace Library_Version by
40232 Verbose_Library_Version.
40234 * make.adb, lib-writ.adb, exp_attr.adb:
40235 Clean up: replace Library_Version by Verbose_Library_Version.
40237 * 5lintman.adb: Removed.
40240 Update and simplify computation of LIBRARY_VERSION.
40241 Fix computation of GSMATCH_VERSION.
40242 5lintman.adb is no longer used: replaced by 7sintman.adb.
40244 2003-12-03 Robert Dewar <dewar@gnat.com>
40247 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
40248 name. Modified to consider small non-bit-packed arrays as troublesome
40249 and in need of component-by-component assigment expansion.
40251 2003-12-03 Vincent Celier <celier@gnat.com>
40253 * lang-specs.h: Process nostdlib as nostdinc
40255 * back_end.adb: Update Copyright notice
40256 (Scan_Compiler_Arguments): Process -nostdlib directly.
40258 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
40261 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
40262 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
40263 included in HIE_NONE_TARGET_PAIRS.
40265 2003-12-03 Ed Schonberg <schonberg@gnat.com>
40268 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
40269 is legal in an instance, because legality is cheched in the template.
40272 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
40273 appplied to an unchecked conversion of a formal parameter.
40276 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
40279 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
40281 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
40282 routines. The second one is new functionality to deal with backtracing
40283 through signal handlers.
40284 (unwind): Split into the two separate subroutines above.
40285 Update the documentation, and deal properly with sizeof (REG) different
40286 from sizeof (void*).
40288 2003-12-01 Nicolas Setton <setton@act-europe.fr>
40290 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
40291 so that the debugger can reliably access the value of the parameter,
40292 and therefore is able to display the exception name when an exception
40293 breakpoint is reached.
40295 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
40297 * fmap.adb: Fix typo in warning message.
40299 * g-socket.ads, g-socket.adb: Make Free a visible instance of
40300 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
40302 2003-12-01 Vincent Celier <celier@gnat.com>
40304 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
40306 (Build_Library): Get the switches only if Default_Switches is declared
40309 2003-12-01 Ed Schonberg <schonberg@gnat.com>
40311 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
40312 actuals that are indexed components, reanalyze actual to ensure that
40313 packed array references are properly expanded.
40315 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
40316 attempted assignment to a discriminant.
40318 2003-12-01 Robert Dewar <dewar@gnat.com>
40320 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
40323 * switch-c.adb: Minor reformatting of comments
40325 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
40327 * Makefile.in: Clean ups.
40329 2003-12-01 GNAT Script <nobody@gnat.com>
40331 * Make-lang.in: Makefile automatically updated
40333 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
40335 * 5wsystem.ads: Disable zero cost exception, not ready yet.
40337 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
40339 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
40340 to force serialization.
40342 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
40344 * g-socket.ads, g-socket.adb:
40345 Clarify documentation of function Stream. Introduce a Free procedure
40346 to release the returned Stream once it becomes unused.
40348 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
40350 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
40352 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
40353 since NT 4 cannot handle timeout values that are too large,
40354 e.g. DWORD'Last - 1.
40356 2003-11-26 Ed Schonberg <schonberg@gnat.com>
40359 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
40360 in procedure calls and whose expansion must be deferred.
40362 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
40366 (Build_Derived_Array_Type): Create operator for unconstrained type
40367 if ancestor is unconstrained.
40369 2003-11-26 Vincent Celier <celier@gnat.com>
40371 * make.adb (Project_Object_Directory): New global variable
40372 (Change_To_Object_Directory): New procedure
40373 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
40374 of Change_Dir directly. Do not change working directory to object
40375 directory of main project after each compilation.
40376 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
40378 Change to object directory of main project before binding step.
40379 (Initialize): Initialize Project_Object_Directory to No_Project
40382 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
40383 binding a Stand-Alone Library.
40385 * output.adb: Update Copyright notice
40386 (Write_Char): Output buffer when full
40388 2003-11-26 Robert Dewar <dewar@gnat.com>
40390 * sem_ch13.adb: (Check_Size): Reset size if size is too small
40393 (Check_Size): Fix documentation to include bit-packed array case
40395 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
40397 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
40399 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
40401 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
40404 * utils.c (init_gigi_decls): Change name of built-in setjmp to
40405 __builtin_setjmp, since this is apparently needed by recent
40408 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40410 * adadecode.c: Only include ctype.h if not IN_GCC.
40411 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
40413 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
40416 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
40417 signals and interrupts.
40419 * 5zintman.ads: New File.
40421 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
40422 add exception signals to the set of unmasked signals.
40425 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
40426 between signals and interrupts.
40427 Add to Unblocked_Signal_Mask the set of signals that are in
40431 Adding a check to see whether the Interrupt_ID we want to unmask is in
40432 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
40433 reason is that the index type of the Keep_Unmasked array is not always
40434 Interrupt_ID; it may be a subtype of Interrupt_ID.
40436 2003-11-24 Gary Dismukes <dismukes@gnat.com>
40439 (Remove_Side_Effects): Condition constantness of object created for a
40440 an unchecked type conversion on the constantness of the expression
40441 to ensure the correct value for 'Constrained when passing components
40442 of view-converted class-wide objects.
40444 2003-11-24 Robert Dewar <dewar@gnat.com>
40446 * par-load.adb (Load): Improve handling of misspelled and missing units
40447 Removes several cases of compilation abandoned messages
40449 * lib.adb: (Remove_Unit): New procedure
40451 * lib.ads: (Remove_Unit): New procedure
40453 * lib-load.adb: Minor reformatting
40455 2003-11-24 Vincent Celier <celier@gnat.com>
40458 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
40459 (Marking_Label): Label to mark processed source files. Incremented for
40461 (Gnatmake): Increase Marking_Labet for each executable
40462 (Is_Marked): Compare against marking label
40463 (Mark): Mark with marking label
40465 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
40468 Move the declaration of the TSD for System.Threads to System.Soft_Links.
40471 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
40472 (rts-cert): build a single relocatable object for the run-time lib.
40475 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
40478 Use gnatls rather than gcc to obtain the location of GNAT RTL for
40481 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
40483 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
40484 can not use it as before (that is, as a variable) when dumping it into
40485 the tree file. Add a local variable to store the result of this
40486 function and to be used as the string to be written into the tree.
40488 * scn.adb (Initialize_Scanner): Add comments explaining the recent
40491 * sinput.adb (Source_First, Source_Last): In case of
40492 Internal_Source_File, replace returning attributes of
40493 Internal_Source_Ptr (which is wrong) with returning attributes of
40496 2003-11-24 Ed Schonberg <schonberg@gnat.com>
40499 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
40500 used for implicit concatenation operators.
40504 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
40505 task bodies that are in the scope of a Suppress pragma.
40506 (Check_A Call): Use the flag to prevent spurious elaboration checks.
40508 * sinfo.ads, sinfo.adb:
40509 New flag No_Elaboration_Check on function/procedure calls, to properly
40510 suppress checks on calls in task bodies that are within a local suppress
40514 (Expand_Concatenate_Other): Use the proper integer type for the
40515 expression for the upper bound, to avoid universal_integer computations
40518 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
40520 * .cvsignore: Delete.
40522 2003-11-21 Andreas Schwab <schwab@suse.de>
40524 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
40526 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
40528 * 5wsystem.ads: Enable zero cost exception.
40530 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
40532 * 5ztiitho.adb: Remove an unreferenced variable.
40534 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
40536 * adaint.c: For FreeBSD, use mkstemp.
40538 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
40540 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
40542 2003-11-21 Robert Dewar <dewar@gnat.com>
40544 * bld.adb: Remove useless USE of gnatvsn
40546 * gnatchop.adb: Minor reformatting
40547 Clean up version handling to be more consistent
40549 * gnatxref.adb: Minor reformatting
40551 * gprcmd.adb: Minor reformatting
40552 Fix output of copyright to be more consistent with other tools
40554 2003-11-21 Vincent Celier <celier@gnat.com>
40556 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
40558 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
40560 * atree.adb (Initialize): Add initializations for global variables
40561 used in New_Copy_Tree.
40563 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
40564 Internal_Source_File as the actual).
40565 Put the set of statements creating Any_Character before the set of
40566 statements creating Any_Array to have Any_Character fully initialized
40567 when it is used in creating Any_Array.
40569 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
40570 not call Scan in case if the actual is Internal_Source_File
40571 Add 2003 to copyright note.
40573 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
40574 processing Internal_Source_File.
40576 * types.ads: Add the constant Internal_Source_File representing the
40577 source buffer for artificial source-code-like strings created within
40578 the compiler (the definition of Source_File_Index is changed).
40580 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
40582 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
40583 56system.ads: New file, FreeBSD version.
40585 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
40587 * Make-lang.in (ada.extraclean): Delete.
40589 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
40591 * gnatmem.adb: Clean up verbose output.
40593 * gprcmd.adb: Change copyright to FSF.
40595 2003-11-19 Vincent Celier <celier@gnat.com>
40597 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
40598 and Version (ignored).
40600 * symbols.ads: (Policy): New type
40601 (Initialize): New parameter Reference, Symbol_Policy and
40603 Remove parameter Force.
40604 Minor reformatting.
40606 * snames.ads, snames.adbadb: New standard names
40607 Library_Reference_Symbol_File and Library_Symbol_Policy
40610 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
40614 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
40616 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
40618 * prj.adb: (Project_Empty): New component Symbol_Data
40620 * prj.ads: (Policy, Symbol_Record): New types
40621 (Project_Data): New component Symbol_Data
40624 New attributes Library_Symbol_File, Library_Symbol_Policy and
40625 Library_Reference_Symbol_File.
40628 (Ada_Check): When project is a Stand-Alone library project, process
40629 attribute Library_Symbol_File, Library_Symbol_Policy and
40630 Library_Reference_Symbol_File.
40632 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
40633 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
40634 5sml-tgt.adb (Build_Dynamic_Library): New parameter
40635 Symbol_Data (ignored).
40637 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
40638 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
40639 functions Option_File_Name and Version_String. Set new options of
40640 gnatsym related to symbol file, symbol policy and reference symbol
40644 Extensive modifications to take into account the reference symbol file,
40645 the symbol policy, the library version and to put in the symbol file the
40646 minor and major IDs.
40648 * bld.adb (Process_Declarative_Items): Put second argument of
40649 gprcmd to_absolute between single quotes, to avoid problems with
40652 * bld-io.adb: Update Copyright notice.
40653 (Flush): Remove last character of a line, if it is a back slash, to
40654 avoid make problems.
40657 Implement new scheme with reference symbol file and symbol policy.
40659 * g-os_lib.ads: (Is_Directory): Clarify comment
40661 2003-11-19 Robert Dewar <dewar@gnat.com>
40663 * atree.adb: Move New_Copy_Tree global variables to head of package
40665 * errout.adb: Minor reformatting
40667 2003-11-19 Javier Miranda <miranda@gnat.com>
40669 * sem_ch4.adb: (Diagnose_Call): Improve error message.
40670 Add reference to Ada0Y (AI-50217)
40672 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
40673 sem_util.adb: Add reference to AI-50217
40675 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
40677 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
40679 * sem_aggr.adb: Complete documentation of AI-287 changes
40681 * par-ch4.adb: Document previous changes.
40683 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
40684 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
40687 * exp_aggr.adb: Add references to AI-287 in previous changes
40689 2003-11-19 Ed Schonberg <schonberg@gnat.com>
40692 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
40693 in the rewriting is the result of an inlined call.
40695 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
40696 parameter is a type conversion, use original node to construct the
40697 post-call assignment, because expression may have been rewritten, e.g.
40698 if it is a packed array.
40701 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
40702 body, just as it is in an instance.
40703 Categorization routines
40705 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
40706 Instantiate_Object): Set proper sloc reference for message on missing
40709 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
40711 * Makefile.in: Add FreeBSD libgnat pairs.
40713 * usage.adb: Fix typo in usage message.
40715 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
40717 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
40718 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
40719 pragma Thread_Body.
40720 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
40722 * s-thread.adb: This file is now a dummy implementation of
40725 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
40727 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
40729 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
40731 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
40732 instanciation references in the parent type description.
40734 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40736 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
40738 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
40739 TYPE_PRECISION directly from esize.
40741 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
40744 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
40746 * init.c: Initialization routines for FreeBSD
40748 * link.c: Link info for FreeBSD
40750 * sysdep.c: Add the case of FreeBSD
40752 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
40754 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
40755 already called in System.Threads.
40757 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
40758 environment task, as it has been moved to System.Threads.Initialization.
40760 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
40762 * adaint.c (__gnatlib_install_locks): Only reference
40763 __gnat_install_locks on VMS, since other platforms can avoid using
40764 --enable-threads=gnat
40766 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40768 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
40770 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
40771 TYPE_PACKED_ARRAY_TYPE_P.
40772 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
40774 Part of PR ada/12806
40775 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
40776 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
40778 2003-11-17 Vincent Celier <celier@gnat.com>
40780 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
40782 Do not set exit status to Failure when Warning is True.
40783 (Gnatchop): Make errors "no compilation units found" and
40784 "no source files written" warnings only.
40786 * make.adb (Gnatmake): When using a project file, set
40787 Look_In_Primary_Dir to False.
40788 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
40789 and Local_Configuration_Pragmas in the project where they are declared
40790 not an extending project which might have inherited them.
40792 * osint.adb (Locate_File): If Name is already an absolute path, do not
40793 look for a directory.
40795 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
40796 -gnats (Check_Syntax) is used, issue only a warning, not an error.
40798 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
40799 in objects of type Variable_Value.
40801 * prj.ads: (Variable_Value): New component Project
40803 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
40804 is in a project extended by Project.
40806 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
40807 Project of Variable_Values to this new parameter value.
40808 (Expression): Set component Project of Variable_Values.
40809 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
40810 Set the component Project in array elements.
40812 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
40814 * errout.adb: (Initialize): Add initialization for error nodes.
40816 * sem_ch12.adb (Initialize): Add missing initializations for
40817 Exchanged_Views and Hidden_Entities.
40819 2003-11-17 Ed Schonberg <schonberg@gnat.com>
40821 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
40822 already instantiated tree for use in subsequent inlining.
40823 (Analyze_Associations, Instantiate_Formal_Subprogram,
40824 Instantiate_Object): improve error message for mismatch in
40827 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
40828 instantiations of subprograms declared in instances.
40830 2003-11-17 Javier Miranda <miranda@gnat.com>
40832 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
40833 executed only under the Extensions_Allowed flag.
40835 2003-11-17 Robert Dewar <dewar@gnat.com>
40837 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
40839 (Address_Image): Fix bug of returning 0x instead of 0x0
40840 Minor reformatting (function specs).
40842 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
40843 (missed case of 33-63)
40845 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
40847 * s-thread.adb: Add comments for pragma Restriction
40849 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
40850 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
40852 2003-11-17 Ed Falis <falis@gnat.com>
40854 * s-thread.adb: Added No_Tasking restriction for this implementation.
40856 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
40858 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
40859 instanciation references in the parent type description.
40861 2003-11-17 GNAT Script <nobody@gnat.com>
40863 * Make-lang.in: Makefile automatically updated
40865 2003-11-16 Jason Merrill <jason@redhat.com>
40867 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
40868 and TAGS files that include them for each front end.
40870 2003-11-14 Andreas Jaeger <aj@suse.de>
40872 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
40873 is the canonical version.
40874 * misc.c (gnat_handle_option): Likewise.
40876 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
40878 * 5nsystem.ads: New file for x86_64-linux-gnu.
40880 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
40882 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
40884 * comperr.adb: Fix logic in previous change.
40886 2003-11-13 Vincent Celier <celier@gnat.com>
40888 * 5bml-tgt.adb (Build_Dynamic_Library): Use
40889 Osint.Include_Dir_Default_Prefix instead of
40890 Sdefault.Include_Dir_Default_Name.
40892 * gnatlbr.adb: Update Copyright notice
40893 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
40894 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
40895 instead of Sdefault.Object_Dir_Default_Name
40898 (Process_Binder_File): Never suppress the option following -Xlinker
40901 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
40902 Sdefault.Object_Dir_Default_Name.
40904 * osint.ads, osint.adb:
40905 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
40906 Minor reformatting.
40908 * vms_conv.ads: Minor reformating
40909 Remove GNAT STANDARD and GNAT PSTA
40912 Allow GNAT MAKE to have several files on the command line.
40913 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
40914 Sdefault.Object_Dir_Default_Name.
40916 Remove data for GNAT STANDARD
40919 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
40920 Remove data for GNAT STANDARD
40921 Remove options and documentation for -gnatwb/-gnatwB: these warning
40922 options no longer exist.
40924 2003-11-13 Ed Falis <falis@gnat.com>
40926 * 5zthrini.adb: (Init_RTS): Made visible
40929 (Register): Removed unnecessary call to taskVarGet that checked whether
40930 an ATSD was already set as a task var for the argument thread.
40933 Updated comment to reflect that this is a VxWorks version
40934 Added context clause for System.Threads.Initialization
40935 Added call to System.Threads.Initialization.Init_RTS
40937 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
40940 (Init_RTS): New procedure, for the initialization of the run-time lib.
40943 Remove dependancy on System.Init, so that this file can be used in the
40944 AE653 sequential run-time lib.
40946 2003-11-13 Robert Dewar <dewar@gnat.com>
40948 * bindgen.adb: Minor reformatting
40950 2003-11-13 Ed Schonberg <schonberg@gnat.com>
40953 (Apply_Discriminant_Check): Do no apply check if target type is derived
40954 from source type with no applicable constraint.
40957 (Ensure_System_Dependency): Do not apply the style checks that may have
40958 been specified for the main unit.
40961 (Find_Selected_Component): Further improvement in error message, with
40965 (Resolve): Handle properly the case of an illegal overloaded protected
40968 2003-11-13 Javier Miranda <miranda@gnat.com>
40971 (Has_Default_Init_Comps): New function to check the presence of
40972 default initialization in an aggregate.
40973 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
40974 extension aggregate of a limited record. In addition, a new formal
40975 was added to do not initialize the record controller (if any) during
40976 this recursive expansion of ancestors.
40977 (Init_Controller): Add support for limited record components.
40978 (Expand_Record_Aggregate): In case of default initialized components
40979 convert the aggregate into a set of assignments.
40981 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
40982 describing the new syntax.
40983 Nothing else needed to be done because this subprogram delegates part of
40984 its work to P_Precord_Or_Array_Component_Association.
40985 (P_Record_Or_Array_Component_Association): Give support to the new
40986 syntax for default initialization of components.
40989 (Resolve_Aggregate): Relax the strictness of the frontend in case of
40990 limited aggregates.
40991 (Resolve_Record_Aggregate): Give support to default initialized
40993 (Get_Value): In case of default initialized components, duplicate
40994 the corresponding default expression (from the record type
40995 declaration). In case of default initialization in the *others*
40996 choice, do not check that all components have the same type.
40997 (Resolve_Extension_Aggregate): Give support to limited extension
41001 (Check_Initialization): Relax the strictness of the front-end in case
41002 of aggregate and extension aggregates. This test is now done in
41003 Get_Value in a per-component manner.
41005 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
41006 expression corresponds to a limited aggregate. This test is now done
41009 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
41012 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
41013 present in an N_Component_Association node
41015 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
41017 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
41018 type-conformant entry only if they are homographs.
41020 2003-11-13 GNAT Script <nobody@gnat.com>
41022 * Make-lang.in: Makefile automatically updated
41024 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41026 * adadecode.c: Use <> form of include for ctype.h.
41027 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
41029 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41031 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
41032 Works around PR middle-end/6552.
41034 2003-11-10 Ed Falis <falis@gnat.com>
41036 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
41038 * 5zinit.adb: (Install_Handler): Moved back to spec
41039 (Install_Signal_Handlers): Deleted
41041 * 5zthrini.adb: Added context clause for System.Storage_Elements
41042 (Register): Only handles creation of taskVar; initialization moved to
41044 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
41045 Added declaration of environment task secondary stack and
41048 * s-thread.adb: Implement bodies for thread body processing
41051 Added comment identifying supported targets for pragma Thread_Body.
41053 2003-11-10 Pascal Obry <obry@gnat.com>
41055 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
41059 (Open): Properly check for string length before copying into the buffer.
41060 Raises Name_Error if buffer is too small. Note that this was a potential
41063 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
41065 * bindgen.adb, comperr.adb: Code clean ups.
41066 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
41068 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
41070 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
41072 2003-11-10 Vincent Celier <celier@gnat.com>
41075 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
41078 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
41080 * prj.adb: (Project_Empty): Add new boolean component Virtual
41082 * prj.ads: (Virtual_Prefix): New constant string
41083 (Project_Data): New boolean component Virtual
41085 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
41086 a library project is extended by a virtual extending project.
41089 Modifications throughout to implement extending-all project, including:
41090 (Virtual_Hash, Processed_Hash): New hash tables
41091 (Create_Virtual_Extending_Project): New procedure
41092 (Look_For_Virtual_Projects_For): New procedure
41095 (Process): After checking the projects, if main project is an
41096 extending-all project, set the object directory of all virtual extending
41097 project to the object directory of the main project.
41098 Adjust error message when a virtual extending project has the same
41099 object directory as an project being extended.
41100 (Recursive_Process): If name starts with the virtual prefix, set Virtual
41101 to True in the project data.
41104 (Default_Project_Node): Add new boolean component Extending_All
41105 (Is_Extending_All): New function
41106 (Set_Is_Extending_All): New procedure
41108 * prj-tree.ads: (Is_Extending_All): New function
41109 (Set_Is_Extending_All): New procedure
41110 (Project_Node_Record): New boolean component Extending_All
41112 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
41115 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
41117 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
41118 "gprcmd prefix" to define it.
41120 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
41122 * einfo.ads: Fix a typo and remove an extraneous word in comments.
41125 (Create_Dummy_Package_Unit): Set the scope of the entity for the
41126 created dummy package to Standard_Standard, not to itself, to
41127 defend other parts of the front-end against encoutering a cycle in
41131 (Analyze_With_Clause): When setting the entities for the successive
41132 N_Expanded_Names that constitute the name of a child unit, do not
41133 attempt to go further than Standard_Standard in the chain of scopes.
41134 This case arises from the placeholder units created by
41135 Create_Dummy_Package_Unit in the case of a with_clause for a
41136 nonexistent child unit.
41138 2003-11-10 Ed Schonberg <schonberg@gnat.com>
41141 (Expand_Thread_Body): Place subprogram on scope stack, so that new
41142 declarations are given the proper scope.
41145 (Check_Expr_Constants): Reject an expression that contains a constant
41146 created during expansion, and that appears after the object to which
41147 the address clause applies.
41149 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
41150 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
41151 that uses 'Range of a function call with controlled components, so
41152 that the function result can be finalized before starting the loop.
41155 (Find_Selected_Component): Improve error message when prefix is
41156 an implicit dereference of an incomplete type.
41158 2003-11-10 Robert Dewar <dewar@gnat.com>
41160 * opt.ads: New Print_Standard flag for -gnatS switch
41162 * sem_ch13.adb: Remove some additional checks for unaligned arrays
41164 * cstand.adb (Create_Standard): Print out package standard if -gnatS
41167 * debug.adb: Update doc for -gnatds to discuss relationship with new
41170 * sinfo.adb: Add new field Entity_Or_Associated_Node
41172 * sinfo.ads: Add new field Entity_Or_Associated_Node
41173 Update documentation for Associated_Node and Entity fields to clarify
41174 relationship and usage.
41177 (Write_Id): Properly process Associated_Node field in generic template
41180 Recognize new -gnatS switch for printing package Standard
41181 This replaces gnatpsta
41184 Add line for new -gnatS switch for printing package Standard
41185 This replaces gnatpsta
41187 2003-11-10 Andreas Jaeger <aj@suse.de>
41189 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
41192 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41194 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
41197 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41199 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
41202 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
41204 * sysdep.c: Add handling of cygwin.
41206 2003-11-10 GNAT Script <nobody@gnat.com>
41208 * Make-lang.in: Makefile automatically updated
41210 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
41213 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
41214 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
41215 Replace GNAT_ROOT by GCC_ROOT.
41217 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
41219 2003-11-06 Zack Weinberg <zack@codesourcery.com>
41221 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
41222 and update for changed meaning of GET_MODE_BITSIZE.
41224 2003-11-04 Doug Rupp <rupp@gnat.com>
41226 * sysdep.c: Problem discovered during IA64 VMS port.
41227 [VMS] #include <unixio.h> to get proper prototypes.
41230 Issues discovered/problems fixed during IA64 VMS port.
41231 [VMS] #define _POSIX_EXIT for proper semantics.
41232 [VMS] #include <unixio.h> for proper prototypes.
41233 [VMS] (fork): #define IA64 version.
41234 (__gnat_os_exit): Remove unnecessary VMS specific code.
41236 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41238 Part of PR ada/12806
41239 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
41243 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
41246 * targtyps.c, decl.c, misc.c,
41247 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
41248 routines to work around change in FP sizing semantics in GCC.
41251 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
41253 * gigi.h: (enumerate_modes): New function.
41255 * Make-lang.in: (ada/misc.o): Add real.h.
41257 * misc.c: (enumerate_modes): New function.
41259 2003-11-04 Robert Dewar <dewar@gnat.com>
41261 * 3vtrasym.adb: Minor reformatting
41262 Use terminology encoded/decoded name, rather than C++ specific notion
41263 of mangling (this is the terminology used throughout GNAT).
41265 * einfo.h: Regenerated
41267 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
41270 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
41272 * par-prag.adb: Add dummy entry for Thread_Body pragma
41275 Add entries for System.Threads entities for thread body processing
41278 (Analyze_Pragma, Access attributes): Check these are not applied to a
41279 thread body, since this is not permitted
41281 * sem_prag.adb: Add processing for Thread_Body pragma.
41285 (Resolve_Call): Check for incorrect attempt to call a thread body
41286 procedure with a direct call.
41288 * snames.ads, snames.adb: Add entry for Thread_Body pragma
41289 Add names associated with thread body expansion
41291 * snames.h: Add entry for Thread_Body pragma
41293 * s-thread.adb: Add entries for thread body processing
41294 These are dummy bodies so far
41296 * s-thread.ads: Add documentation on thread body handling.
41297 Add entries for thread body processing.
41299 2003-11-04 Javier Miranda <miranda@gnat.com>
41302 (Build_Limited_Views): Return after posting an error in case of limited
41303 with_clause on subprograms, generics, instances or generic renamings
41304 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
41305 on subprograms, generics, instances or generic renamings
41307 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
41309 * raise.c (setup_to_install): Correct mistake in last revision; two
41310 arguments out of order.
41312 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
41313 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
41314 notice, missed in previous change.
41315 Remove trailing blanks and other style errors introduced in previous
41318 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
41320 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
41321 rid of the wrapper for a LJM type, ensuring we don't do that if the
41322 field is addressable. This avoids potential low level type view
41323 mismatches later on, for instance in a by-reference argument passing
41326 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41328 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
41329 aligned at byte boundary.
41331 2003-11-04 Joel Brobecker <brobecker@gnat.com>
41333 * decl.c (components_to_record): Do not delete the empty variants from
41334 the end of the union type.
41336 2003-11-04 Ed Schonberg <schonberg@gnat.com>
41338 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
41339 operation for a derived type, an explicit declaration may use a local
41340 subtype of Boolean.
41342 2003-11-04 Vincent Celier <celier@gnat.com>
41344 * make.adb (Gnatmake): Allow main sources on the command line with a
41345 library project when it is only for compilation (no binding or
41348 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41350 * Makefile.in: Remove many duplicate variables.
41352 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
41354 * Make-lang.in (dvi): Move targets to $(docobjdir).
41355 (gnat_ug_vms.dvi): Simplify rule and adjust target.
41356 (gnat_ug_wnt.dvi): Likewise.
41357 (gnat_ug_unx.dvi): Likewise.
41358 (gnat_ug_vxw.dvi): Likewise.
41359 (gnat_rm.dvi): Likewise.
41360 (gnat-style.dvi): Likewise.
41362 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
41364 * gigi.h: Missed commit from update for C90.
41366 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
41368 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
41370 2003-10-31 Andreas Schwab <schwab@suse.de>
41372 * raise.c (get_action_description_for): Fix typo in last change.
41374 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
41377 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
41378 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
41380 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
41382 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
41383 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
41384 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
41385 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
41386 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
41388 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
41391 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
41392 numbers when symbol name is too long.
41394 2003-10-30 Ed Falis <falis@gnat.com>
41396 * g-signal.ads, g-signal.adb: New files
41398 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
41400 * Makefile.rtl: Introduce GNAT.Signals
41402 2003-10-30 Robert Dewar <dewar@gnat.com>
41404 * freeze.adb: Minor reformatting
41406 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
41408 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
41409 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
41410 New handling of Id_Check parameter to improve recognition of keywords
41411 used as identifiers.
41412 Update copyright notice to include 2003
41414 2003-10-29 Robert Dewar <dewar@gnat.com>
41416 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
41417 sem_ch10.adb: Minor reformatting
41419 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
41420 (Expand_Assign_Record): Test right hand side for bit unaligned as well
41422 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
41424 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
41425 Support for TBK$SYMBOLIZE-based symbolic traceback.
41427 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
41430 Revert previous change, that did not work well when pragma No_Run_Time
41431 was used in conjunction with a run-time other than ZFP.
41433 2003-10-29 Vincent Celier <celier@gnat.com>
41436 (Gnatmake): When there are no Ada mains in attribute Main, disable the
41437 bind and link steps only is switch -z is not used.
41439 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
41441 * Makefile.generic: Remove duplicated setting of CC.
41443 * Makefile.prolog: Set CC to gcc by default, to override make's
41446 * einfo.h: Regenerated.
41448 2003-10-29 Ed Schonberg <schonberg@gnat.com>
41450 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
41451 current body, after compiling subunit.
41453 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
41454 when in deleted code, because gigi needs properly ordered freeze
41455 actions to annotate types.
41457 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
41458 prevent the premature freezing of record type that contains
41459 subcomponents with a private type that does not yet have a completion.
41461 2003-10-29 Javier Miranda <miranda@gnat.com>
41464 (Analyze_Package_Instantiation): Check that instances can not be used in
41465 limited with_clauses.
41468 (Analyze_Package_Renaming): Check that limited withed packages cannot
41469 be renamed. Improve text on error messages related to limited
41472 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
41474 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
41475 Update copyright notice.
41477 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
41478 (Install_Limited_Context_Clauses): New subprogram that isolates all the
41479 checks required for limited context_clauses and installs the limited
41481 (Install_Limited_Withed_Unit): Complete its documentation.
41482 (Analyze_Context): Check that limited with_clauses are only allowed in
41484 (Install_Context): Call Install_Limited_Context_Clauses after the
41485 parents have been installed.
41486 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
41487 package as 'From_With_Type'; this mark indicates that the limited view
41488 is installed. Used to check bad usages of limited with_clauses.
41489 (Build_Limited_Views): Do not add shadow entities to the scope's list
41490 of entities. Do not add real entities to the Non_Limited_Views chain.
41491 Improve error notification.
41492 (Remove_Context_Clauses): Remove context clauses in two phases:
41493 limited views first and regular views later (to maintain the
41495 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
41496 its visible entities.
41498 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
41500 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
41501 with any type that Is_Fixed_Point_Type.
41503 * sinfo.ads: Fix documentation for Associated_Node attribute.
41505 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
41507 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
41508 both '-gnatc' and '-gnatt' are specified.
41510 * atree.adb (Initialize): Add initialization for Node_Count (set to
41513 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41515 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
41516 do not consider as Pure.
41518 Part of implementation of function-at-a-time:
41520 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
41521 (tree_transform): Add new argument to build_component_ref.
41522 (tree_transform, case N_Assignment_Statement): Make and return an
41524 (tree_transform): If result IS_STMT, set flags and return it.
41525 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
41527 * utils2.c (build_simple_component_ref, build_component_ref): Add new
41529 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
41530 (build_allocator): Likewise.
41532 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
41533 Add new arg to build_component_ref.
41534 (maybe_unconstrained_array, unchecked_convert): Likewise.
41536 * ada-tree.def (EXPR_STMT): New code.
41538 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
41540 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
41541 build_component_ref calls.
41543 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
41545 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
41546 (build_component_ref): Add new argument, NO_FOLD_P.
41548 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
41550 * Makefile.generic: Add missing substitution on object_deps handling.
41553 * Make-lang.in (check-ada): Enable ACATS test suite.
41555 2003-10-27 Robert Dewar <dewar@gnat.com>
41558 (Freeze_Array_Type): We do not need an initialization routine for types
41559 derived from String or Wide_String. They should be treated the same
41560 as String and Wide_String themselves. This caused problems with the
41561 use of Initialize_Scalars.
41564 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
41565 composites. This allows use of component clauses that are not byte
41569 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
41570 is an attempt to pack an array of atomic objects.
41572 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
41574 2003-10-27 Pascal Obry <obry@gnat.com>
41577 (Basename): Check for drive letters in a pathname only on DOS based OS.
41579 2003-10-27 Vincent Celier <celier@gnat.com>
41582 (Gnatmake): When unable to change dir to the object dir, display the
41583 content of the parent dir of the obj dir, to try to understand why this
41586 2003-10-27 GNAT Script <nobody@gnat.com>
41588 * Make-lang.in: Makefile automatically updated
41590 2003-10-27 Ed Schonberg <schonberg@gnat.com>
41593 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
41594 should not be done in Save/Restore_Scope_Stack, because it is performed
41598 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
41599 whether use clauses should be removed/restored.
41602 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
41603 whether use clauses should be removed/restored.
41605 2003-10-26 Andreas Jaeger <aj@suse.de>
41607 * Makefile.in: Remove duplicated lines.
41609 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
41611 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
41612 minimize the differences with ACT tree.
41614 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
41615 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
41616 Gnatvsn.Gnat_Static_Version_String to reduce differences between
41619 2003-10-24 Pascal Obry <obry@gnat.com>
41622 * adadecode.c (ostrcpy): New function.
41623 (__gnat_decode): Use ostrcpy of strcpy.
41624 (has_prefix): Set first parameter a const.
41625 (has_suffix): Set first parameter a const.
41626 Update copyright notice. Fix source name in header.
41627 Removes a trailing space.
41629 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
41632 Remove the test against being in No_Run_Time_Mode before generating a
41633 call to Register_Tag. It is redundant with the test against the
41634 availability of the function Register_Tag.
41636 2003-10-24 Vincent Celier <celier@gnat.com>
41638 * g-catiio.adb: (Month_Name): Correct spelling of February
41640 * make.adb: (Mains): New package
41641 (Initialize): Call Mains.Delete
41642 (Gnatmake): Check that each main on the command line is a source of a
41643 project file and, if there are several mains, each of them is a source
41644 of the same project file.
41645 (Gnatmake): When a foreign language is specified in attribute Languages,
41646 no main is specified on the command line and attribute Mains is not
41647 empty, only build the Ada main. If there is no Ada main, just compile
41648 the Ada sources and their closure.
41649 (Gnatmake): If a main is specified on the command line with directory
41650 information, check that the source exists and, if it does, that the path
41651 is the actual path of a source of a project.
41654 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
41655 Full_Path is True, return the full path instead of the simple file name.
41656 (Project_Of): New function
41659 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
41660 defaulted to False.
41661 (Project_Of): New function
41663 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
41665 * Makefile.generic:
41666 Ensure objects of main project are always checked and rebuilt if needed.
41667 Set CC to gcc by default.
41668 Prepare new handling of link by creating a global archive (not activated
41671 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
41672 stringt.h: Update copyright notice. Remove trailing blanks.
41673 Fix source name in header.
41675 2003-10-24 Robert Dewar <dewar@gnat.com>
41677 * sem_ch12.adb: Minor reformatting
41680 Minor reformatting (including new function return style throughout)
41683 Minor reformatting (including new function return style throughout)
41685 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
41687 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
41688 stringt.h: Update copyright notice. Remove trailing blanks.
41689 Fix source name in header.
41691 2003-10-24 GNAT Script <nobody@gnat.com>
41693 * Make-lang.in: Makefile automatically updated
41695 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
41697 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
41698 stringt.h: Convert to ISO C90 declarations and definitions.
41700 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
41703 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
41704 External_Tag attribute definition clauses.
41706 2003-10-23 Ed Schonberg <schonberg@gnat.com>
41709 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
41710 child unit, generate a fully qualified name to avoid spurious errors
41711 when the context contains renamings of different child units with
41712 the same simple name.
41714 * exp_dbug.ads: Add documentation on name qualification for renamings
41717 2003-10-23 Robert Dewar <dewar@gnat.com>
41719 * g-regpat.ads, g-regpat.adb: Minor reformatting
41721 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
41723 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
41725 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41727 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
41730 * urealp.h: (Machine): Update to proper definition.
41732 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
41734 * init.c, adaint.c: Minor reformatting.
41736 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
41738 * adaint.c (w32_epoch_offset): Define static const at file level.
41739 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
41740 rather than t_create, t_access in call to GetFileTime. Use union
41741 to convert between FILETIME and unsigned long long.
41742 (__gnat_file_time_name): Test for invalid file handle.
41743 (__gnat_set_filetime_name): Support win32 targets using
41744 w32api SetFileTime.
41746 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
41748 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
41750 * ctrl_c.c (__gnat_int_handler): Remove declaration.
41752 * decl.c (creat_concat_name): Const-ify prefix.
41754 * adaint.c: Include ctype.h if __MINGW32__.
41755 (__gnat_readlink): Mark arguments as possibly unused.
41756 (__gnat_symlink): Likewise.
41757 (__gnat_is_symbolic_link): Likewise.
41758 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
41760 (__gnat_file_time_name): Don't declare struct stat statbuf when
41762 (__gnat_is_absolute_path): Add parenthesis around condition of
41763 'if' statement to avoid warning.
41764 (__gnat_plist_init): Specify void as parameter.
41765 (plist_enter): Likewise.
41766 (plist_leave): Likewise.
41767 (remove_handle): Make static. Initialize prev.
41769 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
41772 * Makefile.in: Disable build of gnatpsta.
41773 * cstreams.c (__gnat_full_name): Minor improvements and clean up
41774 of previous change.
41776 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41778 * tracebak.c (MAX): Avoid redefinition warning.
41780 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
41781 Change msg to const char *.
41782 (__gnat_install_handler): Remove ss, unused.
41783 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
41785 * cstreams.c (__gnat_full_name): Declare p only when used.
41786 (__gnat_full_name) [sgi] Return buffer.
41788 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
41790 * mingw32.h: New file.
41791 * gnat_wrapper.adb: New file.
41793 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
41795 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
41796 string match a pre compiled regular expression (the corresponding
41797 version of the function working on a raw regular expression)
41798 Fix typos in various comments
41799 Update copyright notice in spec
41801 2003-10-21 Gary Dismukes <dismukes@gnat.com>
41804 (Component_Needs_Simple_Initialization): Return False when the type is a
41805 packed bit array. Revise spec comments to document this case.
41808 (Expand_Pragma_Import): Set any expression on the imported object to
41809 empty to avoid initializing imported objects (in particular this
41810 covers the case of zero-initialization of bit arrays).
41811 Update copyright notice.
41813 2003-10-21 Ed Schonberg <schonberg@gnat.com>
41816 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
41817 a subunit is missing.
41818 (Instantiate_Subprogram_Body): If body of function is missing, set type
41819 of return expression explicitly in dummy body, to prevent cascaded
41820 errors when a subunit is missing.
41824 (Access_Subprogram_Declaration): Verify that return type is valid.
41828 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
41833 (Corresponding_Discriminant): If the scope of the discriminant is a
41834 private type without discriminant, use its full view.
41837 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
41839 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
41840 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
41841 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
41842 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
41843 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
41844 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
41845 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41846 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
41847 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
41848 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
41849 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
41850 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
41851 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
41852 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
41853 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
41854 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
41855 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
41856 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
41857 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
41858 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
41859 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
41860 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
41861 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
41862 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
41863 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
41864 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
41865 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
41866 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
41867 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
41868 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
41869 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
41870 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
41871 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
41872 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
41873 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
41874 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
41875 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
41876 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
41877 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
41878 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
41879 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
41880 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
41881 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
41882 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
41883 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
41884 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
41885 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
41886 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
41887 vms_conv.ads, vms_conv.adb, vms_data.ads,
41888 vxaddr2line.adb: Files added. Merge with ACT tree.
41890 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
41891 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
41892 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
41893 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
41894 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
41895 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
41896 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
41897 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
41898 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
41899 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
41901 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
41902 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
41903 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
41904 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
41905 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
41906 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
41907 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
41908 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
41909 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
41910 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
41911 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
41912 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
41913 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
41914 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
41915 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
41916 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
41917 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
41918 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
41919 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
41920 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
41921 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
41922 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
41923 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
41924 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
41925 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
41926 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
41927 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
41928 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
41929 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
41930 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
41931 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
41932 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
41933 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41934 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
41935 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
41936 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
41937 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
41938 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
41939 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
41940 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
41941 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
41942 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
41943 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
41944 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
41945 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
41946 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
41947 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
41948 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
41949 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
41950 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
41951 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
41952 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
41953 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
41954 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
41955 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
41956 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
41957 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
41958 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
41959 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
41960 checks.adb, checks.ads, cio.c, comperr.adb,
41961 comperr.ads, csets.adb, cstand.adb, cstreams.c,
41962 debug_a.adb, debug_a.ads, debug.adb, decl.c,
41963 einfo.adb, einfo.ads, errout.adb, errout.ads,
41964 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
41965 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
41966 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
41967 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41968 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
41969 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
41970 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
41971 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
41972 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
41973 fe.h, fmap.adb, fmap.ads, fname.adb,
41974 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
41975 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
41976 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
41977 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
41978 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
41979 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
41980 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
41981 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
41982 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
41983 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
41984 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
41985 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
41986 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
41987 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
41988 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
41989 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
41990 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
41991 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
41992 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
41993 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
41994 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
41995 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
41996 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
41997 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
41998 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
41999 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
42000 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
42001 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
42002 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
42003 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
42004 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
42005 layout.adb, lib.adb, lib.ads, lib-list.adb,
42006 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
42007 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42008 link.c, live.adb, make.adb, make.ads,
42009 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
42010 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
42011 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
42012 misc.c, mkdir.c, mlib.adb, mlib.ads,
42013 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
42014 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
42015 namet.adb, namet.ads, namet.h, nlists.ads,
42016 nlists.h, nmake.adt, opt.adb, opt.ads,
42017 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
42018 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
42019 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42020 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
42021 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
42022 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
42023 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
42024 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
42025 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
42026 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
42027 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
42028 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
42029 prj-util.adb, prj-util.ads, raise.c, raise.h,
42030 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
42031 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
42032 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
42033 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
42034 scans.ads, scn.adb, scn.ads, s-crc32.adb,
42035 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
42036 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
42037 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
42038 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
42039 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
42040 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42041 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42042 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
42043 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
42044 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
42045 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
42046 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
42047 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
42048 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
42049 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42050 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
42051 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
42052 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
42053 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
42054 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
42055 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
42056 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
42057 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
42058 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
42059 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
42060 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
42061 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
42062 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
42063 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
42064 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
42065 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
42066 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
42067 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
42068 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
42069 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
42070 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
42071 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
42072 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
42073 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
42074 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
42075 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
42076 stringt.adb, stringt.ads, stringt.h, style.ads,
42077 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
42078 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
42079 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
42080 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
42081 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
42082 table.adb, table.ads, targparm.adb, targparm.ads,
42083 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
42084 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
42085 ttypes.ads, types.ads, types.h, uintp.adb,
42086 uintp.ads, uintp.h, uname.adb, urealp.adb,
42087 urealp.ads, urealp.h, usage.adb, utils2.c,
42088 utils.c, validsw.adb, validsw.ads, widechar.adb,
42089 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
42090 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
42091 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
42092 gnatvsn.ads: Merge with ACT tree.
42094 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
42096 2003-10-20 Mark Mitchell <mark@codesourcery.com>
42098 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
42099 (gnat_ug_vmx.info): Likewise.
42100 (gnat_ug_vxw.info): Likewise.
42101 (gnat_ug_wnt.info): Likewise.
42102 (gnat_rm.info): Likewise.
42103 (gnat-style.info): Likewise.
42105 * Make-lang.in (ada.install-info): Remove target.
42106 (info): New target.
42107 (install-info): Likewise.
42108 (gnat_ug_unx.info): Simplify rule.
42109 (gnat_ug_vmx.info): Likewise.
42110 (gnat_ug_vxw.info): Likewise.
42111 (gnat_ug_wnt.info): Likewise.
42112 (gnat_rm.info): Likewise.
42113 (gnat-style.info): Likewise.
42115 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
42117 * Make-lang.in: Replace uses of $(target_alias) with
42118 $(target_noncanonical).
42119 * ada/Makefile.in: Remove unused mention of $(target_alias).
42121 2003-10-06 Mark Mitchell <mark@codesourcery.com>
42123 * Make-lang.in (ada.info): Replace with ...
42125 (ada.dvi): Replace with ...
42128 2003-09-29 Zack Weinberg <zack@codesourcery.com>
42130 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
42131 initialize dconstp5 and dconstmp5.
42133 2003-09-28 Richard Henderson <rth@redhat.com>
42135 * trans.c (tree_transform): Update call to expand_asm_operands.
42137 2003-09-21 Richard Henderson <rth@redhat.com>
42139 * trans.c, utils.c: Revert.
42141 2003-09-21 Richard Henderson <rth@redhat.com>
42143 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
42146 2003-09-04 Michael Matz <matz@suse.de>
42148 * misc.c: Include "target.h".
42149 * Make-lang.in (misc.o): Add dependency on target.h.
42151 2003-09-03 DJ Delorie <dj@redhat.com>
42153 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
42156 2003-08-30 Zack Weinberg <zack@codesourcery.com>
42158 * Makefile.in: Update substitutions to match changes to
42159 configure. Use include directives instead of @-insertions
42160 to read in host and target fragments. Add a rule to
42161 regenerate ada/Makefile.
42163 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
42165 * lang-options.h: Remove.
42166 * lang.opt: Add help text.
42168 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
42170 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
42173 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
42175 * misc.c (gnat_handle_option): Don't handle filenames.
42177 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
42179 * Make-lang.in: Replace PWD with PWD_COMMAND.
42180 * Makefile.adalib: Likewise.
42181 * Makefile.in: Likewise.
42183 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
42185 * misc.c (gnat_argv): Revert last change.
42186 (gnat_handle_option, gnat_init_options): Copy arguments.
42188 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
42190 * misc.c (gnat_argv): Make const.
42192 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42194 * misc.c (save_argc, save_argv): Keep non-static!
42196 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
42198 * misc.c (save_argc, save_argv): Make static.
42199 (gnat_init_options): New prototype.
42200 (gnat_init_options): Update.
42202 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
42204 * gnat_ug.texi: Remove unlikely characters from @vars.
42205 * gnat_ug_vms.texi: Regenerate.
42207 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
42209 * misc.c (record_code_position): Adjust emit_note call.
42211 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
42213 * misc.c (gnat_handle_option): Don't check for missing arguments.
42215 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
42217 * utils.c (end_subprog_body): Adjust expand_function_end call.
42219 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
42221 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
42224 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
42226 * lang.opt: Declare Ada.
42227 * misc.c (gnat_init_options): Update.
42229 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
42231 * utils.c (begin_subprog_body): Adjust init_function_start call.
42233 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
42235 * Make-lang.in: Update to use options.c and options.h.
42236 * misc.c: Include options.h not aoptions.h.
42237 (gnat_handle_option): Abort on unrecognized switch.
42238 (gnat_init_options): Request Ada switches.
42240 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
42242 * lang.opt: Add -Wall.
42243 * misc.c (gnat_handle_option): Handle it.
42245 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
42247 * misc.c (gnat_handle_option): Fix warnings.
42249 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
42251 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
42253 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
42255 * Make-lang.in: Update to handle command-line options.
42256 * lang.opt: New file.
42257 * misc.c: Include aoptions.h.
42258 (cl_options_count, cl_options): Remove.
42259 (gnat_handle_option): New.
42260 (gnat_decode_option): Remove.
42261 (LANG_HOOKS_DECODE_OPTION): Remove.
42262 (LANG_HOOKS_HANDLE_OPTION): Override.
42264 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
42266 * init.c, misc.c, trans.c, utils.c: Remove dead code.
42268 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
42270 * Makefile.in: Replace "host_canonical" with "host" for autoconf
42273 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
42275 * Make-lang.in: Update.
42276 * misc.c: Include opts.h. Define cl_options_count and cl_options.
42278 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
42280 * misc.c (gnat_init_options): Update.
42282 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
42284 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
42285 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
42286 __attribute__ ((__unused__)).
42288 2003-06-05 Jan Hubicka <jh@suse.cz>
42290 * Make-lang.in: Add support for stageprofile and stagefeedback
42292 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
42294 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
42295 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
42297 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
42299 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
42300 Remove non-VMS directive.
42301 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
42303 (Examples of gnatls Usage): Remove VMS alternative.
42305 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
42308 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
42309 and turn ZCX_By_Default back to False since the underlying support
42310 is not quite there yet.
42312 2003-06-01 Andreas Jaeger <aj@suse.de>
42314 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
42315 and ROUND_TYPE_SIZE_UNIT.
42317 2003-05-22 Geert Bosch <bosch@gnat.com>
42319 * gnat_rm.texi : Remove reference to Ada Core Technologies.
42321 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
42323 * trans.c (tree_transform): Use location_t and input_location
42325 (build_unit_elab): Likewise.
42326 * utils.c (create_label_decl): Likewise.
42328 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
42330 * trans.c (tree_transform, build_unit_elab,
42331 set_lineno): Rename lineno to input_line.
42332 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
42333 end_subprog_body): Likewise.
42334 * utils2.c (build_call_raise): Likewise.
42336 2003-05-01 Laurent Guerby <guerby@acm.org>
42339 * 5iosinte.ads: Increase pthread_cond_t size to match recent
42340 LinuxThread and NPTL version, merge from ACT.
42342 2003-04-28 Zack Weinberg <zack@codesourcery.com>
42344 * utils.c (convert): No need to clear TREE_CST_RTL.
42346 2003-04-23 Geert Bosch <bosch@gnat.com>
42348 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
42349 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
42350 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
42351 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
42352 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
42353 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
42354 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
42355 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
42356 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
42357 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
42358 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
42359 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
42360 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
42361 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
42362 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
42363 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
42364 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
42365 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
42366 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
42367 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
42368 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
42369 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
42370 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
42371 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
42372 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
42373 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
42374 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
42375 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
42376 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
42377 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
42378 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
42379 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
42380 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
42381 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
42382 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
42383 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
42384 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
42385 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
42386 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
42387 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
42388 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
42389 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
42390 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
42391 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
42392 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
42393 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
42394 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
42395 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
42396 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
42397 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
42398 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
42399 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
42400 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
42401 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
42402 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
42403 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
42404 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
42405 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
42406 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
42407 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
42408 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
42409 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
42410 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
42411 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
42412 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
42413 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
42414 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
42415 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
42416 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
42417 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
42418 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
42419 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
42420 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
42421 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
42422 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
42423 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
42424 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
42425 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
42426 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
42427 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
42428 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
42429 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
42430 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
42431 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
42432 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
42433 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
42434 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
42435 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
42436 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
42437 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
42438 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
42439 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
42440 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
42441 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
42442 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
42443 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
42444 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
42445 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
42446 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
42447 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
42448 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
42449 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
42450 ali.adb, ali.ads, alloc.ads, argv.c,
42451 atree.adb, atree.ads, atree.h, aux-io.c,
42452 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
42453 binde.adb, binde.ads, binderr.adb, binderr.ads,
42454 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
42455 butil.adb, butil.ads, cal.c, calendar.ads,
42456 casing.adb, casing.ads, ceinfo.adb, checks.adb,
42457 checks.ads, cio.c, comperr.adb, comperr.ads,
42458 config-lang.in, csets.adb, csets.ads, csinfo.adb,
42459 cstand.adb, cstand.ads, cuintp.c, debug.adb,
42460 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
42461 dec-io.ads, dec.ads, deftarg.c, directio.ads,
42462 einfo.adb, einfo.ads, elists.adb, elists.ads,
42463 elists.h, errno.c, errout.adb, errout.ads,
42464 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
42465 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
42466 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
42467 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
42468 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
42469 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
42470 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
42471 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
42472 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
42473 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
42474 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
42475 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
42476 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
42477 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
42478 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
42479 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
42480 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
42481 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
42482 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
42483 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
42484 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
42485 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
42486 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
42487 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
42488 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
42489 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
42490 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
42491 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
42492 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
42493 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
42494 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
42495 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
42496 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
42497 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
42498 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
42499 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
42500 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
42501 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
42502 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
42503 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
42504 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
42505 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
42506 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
42507 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
42508 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
42509 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
42510 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
42511 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
42512 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
42513 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
42514 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
42515 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
42516 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
42517 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
42518 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
42519 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
42520 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
42521 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
42522 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
42523 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
42524 lib.adb, lib.ads, live.adb, live.ads,
42525 machcode.ads, make.adb, make.ads, makeusg.adb,
42526 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
42527 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
42528 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
42529 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
42530 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
42531 mlib.ads, namet.adb, namet.ads, nlists.adb,
42532 nlists.ads, opt.adb, opt.ads, osint-b.adb,
42533 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
42534 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
42535 osint.ads, output.adb, output.ads, par-ch10.adb,
42536 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
42537 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
42538 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
42539 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
42540 par-tchk.adb, par-util.adb, par.adb, par.ads,
42541 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
42542 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
42543 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
42544 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
42545 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
42546 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
42547 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
42548 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
42549 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
42550 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
42551 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
42552 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
42553 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
42554 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
42555 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
42556 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
42557 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
42558 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
42559 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
42560 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
42561 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
42562 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
42563 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
42564 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
42565 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
42566 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
42567 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
42568 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
42569 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
42570 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
42571 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
42572 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
42573 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
42574 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
42575 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
42576 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
42577 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
42578 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
42579 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
42580 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
42581 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
42582 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
42583 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
42584 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
42585 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
42586 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
42587 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
42588 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
42589 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
42590 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
42591 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
42592 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
42593 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
42594 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
42595 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
42596 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
42597 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
42598 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
42599 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
42600 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
42601 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
42602 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
42603 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
42604 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
42605 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
42606 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
42607 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
42608 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
42609 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
42610 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
42611 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
42612 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
42613 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
42614 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
42615 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
42616 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
42617 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
42618 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
42619 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
42620 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
42621 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
42622 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
42623 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
42624 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
42625 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
42626 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
42627 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
42628 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
42629 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
42630 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
42631 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
42632 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
42633 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
42634 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
42635 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
42636 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
42637 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
42638 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
42639 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
42640 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
42641 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
42642 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
42643 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
42644 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
42645 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
42646 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
42647 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
42648 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
42649 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
42650 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
42651 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
42652 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
42653 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
42654 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
42655 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
42656 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
42657 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
42658 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
42659 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
42660 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
42661 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
42662 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
42663 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
42664 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
42665 snames.ads, sprint.adb, sprint.ads, stand.adb,
42666 stand.ads, stringt.adb, stringt.ads, style.adb,
42667 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
42668 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
42669 switch-m.ads, switch.adb, switch.ads, system.ads,
42670 table.adb, table.ads, targparm.adb, targparm.ads,
42671 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
42672 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
42673 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
42674 ttypef.ads, ttypes.ads, types.adb, types.ads,
42675 uintp.adb, uintp.ads, uname.adb, uname.ads,
42676 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
42677 usage.adb, usage.ads, validsw.adb, validsw.ads,
42678 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
42679 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
42680 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
42681 formatting and other trivial changes from ACT.
42683 2003-04-12 Zack Weinberg <zack@codesourcery.com>
42685 * gigi.h, utils2.c (build_constructor):
42686 Rename gnat_build_constructor. Use build_constructor.
42687 * decl.c (gnat_to_gnu_entity)
42688 * trans.c (tree_transform, pos_to_constructor, extract_values)
42689 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
42690 (unchecked_convert)
42691 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
42692 (fill_vms_descriptor):
42695 2003-04-06 Zack Weinberg <zack@codesourcery.com>
42697 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
42698 * misc.c (gnat_tree_size): New function.
42699 (LANG_HOOKS_TREE_SIZE): Override.
42701 2003-04-03 Jason Merrill <jason@redhat.com>
42703 * misc.c (gnat_adjust_rli): #if 0.
42705 2003-03-31 Geert Bosch <bosch@gnat.com>
42708 * link.c : Fix misspelled "const" keyword
42710 2003-03-23 Mark Mitchell <mark@codesourcery.com>
42713 * utils2.c: Adjust calls to put_var_into_stack.
42715 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
42717 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
42719 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
42721 * misc.c (gnat_init): Update for new prototype.
42723 2003-03-05 Olivier Hainque <hainque@gnat.com>
42726 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
42727 warning, and fix return type for the IN_RTS && !SJLJ case.
42729 2003-03-04 Tom Tromey <tromey@redhat.com>
42731 * Make-lang.in (ada.tags): New target.
42733 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
42736 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
42737 wrapper, which name remains constant whatever underlying GCC
42740 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
42741 the stable interface needed for a-except.
42743 2003-03-02 Andreas Jaeger <aj@suse.de>
42745 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
42746 gnat_ug_wnt.texi: Regenerate.
42748 2003-03-02 Laurent Guerby <guerby@acm.org>
42750 * Makefile.in (install-gnatlib): Match previous change there
42753 2003-02-28 Andreas Schwab <schwab@suse.de>
42755 * Make-lang.in (install-gnatlib): Change to ada directory before
42756 running make instead of using ada/Makefile directly.
42758 2003-02-18 Ben Elliston <bje@redhat.com>
42760 Part of PR ada/9406
42761 * gnat_ug.texi (Binder output file): Grammar fix.
42763 2003-02-18 Ben Elliston <bje@redhat.com>
42766 * 5qtaprop.adb (Sleep): Fix typo in comment.
42768 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
42770 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
42771 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
42772 gnat_ug_wnt.texi: Regenerate.
42774 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
42776 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
42777 be created if necessary.
42778 (ada.install-common): Let $(DESTDIR)$(bindir) be created
42779 if necessary. Remove erroneous and redundant gnatchop
42780 installation commands. Test for gnatdll before attempting
42782 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
42783 and gnatdll from all plausible locations.
42785 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
42787 * utils2.c (build_unary_op): Don't check flag_volatile.
42788 * gnat_ug.texi: Remove -fvolatile from example.
42789 * gnat_ug_vxw.texi: Likewise.
42791 2003-01-29 Laurent Guerby <guerby@acm.org>
42794 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
42795 * Makefile.in: match previous change.
42796 * Make-lang.in: match previous change.
42798 2003-01-29 Joel Sherrill <joel@OARcorp.com>
42800 * 5rosinte.ads: Add SIGXCPU.
42801 * 5rtpopsp.adb: New file.
42802 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
42803 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
42804 specific file 5rtpopsp.adb.
42805 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
42806 is likely needed for all newlib targets.
42807 * init.c: Add RTEMS specific version of __gnat_initialize().
42809 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42811 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
42813 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42815 * init.c (__gnat_error_handler): Make msg const.
42817 * gmem.c (convert_addresses): Move declaration ...
42818 * adaint.h: ... here.
42819 * adaint.c (convert_addresses): Adapt addrs type to match
42822 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
42824 2003-01-24 Andreas Schwab <schwab@suse.de>
42826 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
42827 size_t to avoid warning.
42829 2003-01-21 Zack Weinberg <zack@codesourcery.com>
42831 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
42833 2003-01-09 Geoffrey Keating <geoffk@apple.com>
42835 * gnat_rm.texi: Remove RCS version number.
42837 * ada-tree.h (union lang_tree_node): Add chain_next option.
42839 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
42841 * Make-lang.in (ada.install-info, ada.install-common,
42842 ada.uninstall): Prepend $(DESTDIR) to the destination
42843 directory in all (un)installation commands.
42844 * Makefile.in (install-gnatlib, install-rts): Ditto.
42846 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
42848 * gnat_rm.texi, gnat_ug.texi: Use @copying.
42849 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
42850 gnat_ug_wnt.texi: Regenerate.
42852 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
42854 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
42856 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
42857 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
42858 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
42859 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
42860 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
42861 $(srcdir)/doc/include/gcc-common.texi.
42863 2002-12-15 Geert Bosch <bosch@gnat.com>
42865 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
42867 2002-12-14 Geert Bosch <bosch@gnat.com>
42870 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
42871 case of a body created for a Renaming_As_Body, on which
42872 conformance checks are not performed.
42874 2002-11-30 Zack Weinberg <zack@codesourcery.com>
42876 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
42877 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
42878 not already included.
42879 * Make-lang.in: Update dependencies.
42881 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
42882 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
42883 solution to buffer overflow bug on GNU/Linux.
42885 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
42889 * bindgen.adb: Remove all references to Public_Version.
42890 * comperr.adb: Remove all references to Public_Version and
42891 GNATPRO_Version; correct bug reporting instructions.
42892 * comperr.ads: Change to match bug box.
42893 * gnatvsn.ads: Remove all references to Public version and
42896 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
42899 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
42903 * config-lang.in: Remove diff_excludes.
42905 2002-11-05 Graham Stott <graham.stott@btinternet.com>
42908 * trans.c (gnu_pending_elaboration_lists): New GC root.
42909 (build_unit_elab): Use..
42911 2002-10-30 Geert Bosch <bosch@gnat.com>
42914 * misc.c : Include optabs.h
42916 * Make-lang.in (misc.o): Add dependency on optabs.h
42918 2002-10-29 Geert Bosch <bosch@gnat.com>
42921 * Make-lang.in (gnatbind): Depend on CONFIG_H
42923 2002-10-29 Geert bosch <bosch@gnat.com>
42926 * misc.c: Unrevert misc.c (1.13)
42928 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
42930 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
42931 maintainership comments.
42933 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
42936 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
42937 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
42938 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
42939 7staprop.adb: Correct statements in comments about
42940 maintainership of GNAT.
42943 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
42944 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
42945 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
42946 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
42947 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
42948 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
42949 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
42950 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
42951 comments about maintainership of GNAT.
42953 PR ada/6919 (forward port of patch for PR ada/5904)
42954 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
42955 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
42956 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
42957 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
42958 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
42959 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
42960 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
42961 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
42962 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
42963 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
42964 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
42965 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
42966 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
42967 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
42968 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
42969 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
42970 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
42971 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
42972 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
42973 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
42974 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
42975 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
42976 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
42977 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
42978 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
42979 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
42980 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
42981 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
42982 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
42983 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
42984 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
42985 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
42986 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
42987 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
42988 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
42989 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
42990 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
42991 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
42992 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
42993 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
42994 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
42995 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
42996 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
42997 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
42998 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
42999 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
43000 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
43001 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
43002 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
43003 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
43004 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
43005 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
43006 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
43007 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
43008 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
43009 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
43010 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
43011 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
43012 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
43013 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
43014 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
43015 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
43016 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
43017 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
43018 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
43019 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
43020 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
43021 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
43022 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
43023 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
43024 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
43025 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
43026 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
43027 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
43028 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
43029 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
43030 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
43031 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
43032 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
43033 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
43034 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
43035 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
43036 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
43037 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
43038 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
43039 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
43040 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
43041 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
43042 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
43043 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
43044 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
43045 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
43046 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
43047 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
43048 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
43049 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
43050 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
43051 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
43052 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
43053 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
43054 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
43055 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
43056 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
43057 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
43058 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
43059 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
43060 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
43061 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
43062 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
43063 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
43064 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
43065 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
43066 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
43067 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
43068 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
43069 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
43070 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
43071 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
43072 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
43073 par-endh.adb par-labl.adb par-load.adb par-prag.adb
43074 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
43075 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
43076 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
43077 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
43078 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
43079 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
43080 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
43081 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
43082 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
43083 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
43084 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
43085 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
43086 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
43087 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
43088 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
43089 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
43090 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
43091 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
43092 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
43093 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
43094 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
43095 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
43096 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
43097 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
43098 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
43099 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
43100 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
43101 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
43102 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
43103 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
43104 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
43105 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
43106 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
43107 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
43108 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
43109 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
43110 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
43111 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
43112 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
43113 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
43114 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
43115 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
43116 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
43117 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
43118 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
43119 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
43120 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
43121 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
43122 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
43123 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
43124 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
43125 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
43126 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
43127 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
43128 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
43129 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
43130 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
43131 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
43132 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
43133 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
43134 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
43135 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
43136 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
43137 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
43138 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
43139 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
43140 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
43141 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
43142 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
43143 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
43144 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
43145 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
43146 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
43147 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
43148 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
43149 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
43150 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
43151 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
43152 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
43153 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
43154 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
43155 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
43156 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
43157 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
43158 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
43159 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
43160 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
43161 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
43162 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
43163 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
43164 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
43165 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
43166 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
43167 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
43168 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
43169 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
43170 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
43171 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
43172 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
43173 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
43174 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
43175 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
43176 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
43177 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
43178 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
43179 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
43180 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
43181 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
43182 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
43183 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
43184 stringt.ads stringt.h style.adb style.ads stylesw.adb
43185 stylesw.ads switch.adb switch.ads sysdep.c system.ads
43186 table.adb table.ads targparm.adb targparm.ads targtyps.c
43187 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
43188 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
43189 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
43190 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
43191 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
43192 usage.ads utils.c utils2.c validsw.adb validsw.ads
43193 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
43194 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
43195 xtreeprs.adb: Correct statements in comments about maintainership
43198 2002-09-23 Zack Weinberg <zack@codesourcery.com>
43200 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
43201 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
43202 * gnatvsn.ads: Gnat_Version_String is now a function.
43203 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
43204 copy the C version_string into a String and return it.
43205 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
43206 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
43207 Remove pragma Ident (Gnat_Version_String). If this was the
43208 sole use of package Gnatvsn, remove the with statement too.
43209 * gnat1drv.adb: Tweak -gnatv output.
43211 2002-09-17 Richard Henderson <rth@redhat.com>
43213 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
43214 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
43215 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
43216 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
43217 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
43218 and real_2expN instead of a loop.
43219 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
43220 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
43222 2002-08-25 Andre Leis <a.leis@gmx.net>
43223 David Billinghurst <David.Billinghurst@riotinto.com>
43225 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
43227 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43229 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
43230 Remove $(CONFIG_H) dependency.
43232 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
43234 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
43236 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43238 * adadecode.c (ada_demangle): Use xstrdup in lieu of
43240 * misc.c (gnat_decode_option): Likewise.
43242 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
43244 * make.adb (Add_Switch): Make Generic_Position a procedure. The
43245 function approach did not work well because of a side effect (the
43246 function call could reallocate the table which was being indexed
43247 using its result). Fixes ada/4851. [RESURRECTED]
43249 2002-07-01 Roger Sayle <roger@eyesopen.com>
43251 * ada/utils.c (builtin_function): Accept an additional parameter.
43253 2002-06-28 Andreas Jaeger <aj@suse.de>
43256 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
43259 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43261 * Makefile.in (SHELL): Set to @SHELL@.
43263 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43265 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
43266 array size calculation.
43268 2002-06-04 Andreas Jaeger <aj@suse.de>
43270 * Make-lang.in (gnatbind): Readd rule that has been lost in last
43273 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
43275 Merge from pch-branch:
43277 * config-lang.in (gtfiles): Add ada-tree.h.
43278 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
43279 (SET_TYPE_MODULUS): New.
43280 (SET_TYPE_INDEX): New.
43281 (SET_TYPE_DIGITS_VALUE): New.
43282 (SET_TYPE_RM_SIZE): New.
43283 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
43284 (SET_TYPE_ADA_SIZE): New.
43285 (SET_TYPE_ACTUAL_BOUNDS): New.
43286 (SET_DECL_CONST_CORRESPONDING_VAR): New.
43287 (SET_DECL_ORIGINAL_FIELD): New.
43288 (TREE_LOOP_ID): Correct typo.
43289 * decl.c: Use new macros.
43290 * utils.c: Include debug.h, use new macros.
43291 * utils2.c: Use new macros.
43293 * ada-tree.h: Update all macros for new tree description.
43294 (struct tree_loop_id): New.
43295 (union lang_tree_node): New.
43296 (struct lang_decl): New.
43297 (struct lang_type): New.
43298 * misc.c (gnat_mark_tree): Delete.
43299 (LANG_HOOKS_MARK_TREE): Delete.
43300 * trans.c (tree_transform): No longer any need to cast
43303 * utils.c (struct language_function): New dummy structure.
43305 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
43306 (misc.o): Likewise.
43307 (utils.o): Likewise; also gtype-ada.h.
43308 * Make-lang.in (gnat1): Add dependency on s-gtype.
43309 (gnatbind): Add dependency on $(CONFIG_H).
43310 * utils.c: Correct last #include.
43311 (stuct e_stack): Remove unnecessary 'static'.
43312 (mark_e_stack): Remove unused prototype.
43314 * scn-nlit.adb: Remove whitespace after version number to
43315 keep lines under 80 chars.
43316 * snames.adb: Likewise.
43317 * treepr.ads: Likewise.
43319 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
43320 (misc.o): Likewise.
43321 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
43322 * config-lang.in (gtfiles): New.
43323 * decl.c: Use gengtype for roots.
43324 * gigi.h: Use gengtype for roots.
43325 * trans.c: Use gengtype for roots.
43326 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
43328 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
43330 * misc.c (gnat_init): Adjust setting of internal_error_function.
43332 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
43334 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
43335 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
43336 gnat_ug_wnt.texi: Regenerate.
43338 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
43340 * 5ntaprop.adb (with System.OS_Primitives): Remove.
43342 * cstreams.c (max_path_len): Move from here ...
43343 * adaint.c (__gnat_max_path_len): ... to here.
43344 * adaint.c (__gnat_max_path_len): Declare.
43345 * g-dirope.adb (Max_Path): Adjust.
43346 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
43347 * i-cstrea.ads (max_path_len): Adjust.
43348 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
43349 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
43351 * Makefile.in, Make-lang.in: Documentation is now built in
43352 Make-lang.in. Store Info and generated Texinfo files in the
43354 * gnat_ug.texi: Remove CVS keywords, correct version number.
43355 Set file name correctly.
43357 * gnat_ug_*.texi: Add.
43358 * .cvsignore: Ignore generated Texinfo files.
43360 2002-05-30 Zack Weinberg <zack@codesourcery.com>
43362 * ada.h: Add MI guard macro.
43363 (SUBTYPE): Define constants with an anonymous enum, not static
43365 (IN): Cast constants to appropriate type before use.
43367 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
43369 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
43372 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43374 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
43375 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
43376 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
43377 (ALL_ADA_CFLAGS): Likewise.
43378 (ADA_INCLUDES): Likewise.
43379 Adapt for new working dir.
43380 (GNATBIND): Use Makefile.in version.
43381 (.SUFFIXES): Copy from Makefile.in.
43382 (ada-warn): Define.
43383 (.adb.o, .ads.o): Copy from Makefile.in.
43384 Added $(OUTPUT_OPTION).
43385 (GNAT1_C_OBJS): Moved from Makefile.in.
43386 Prefix with ada subdir.
43387 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
43388 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
43389 Adapt for new working dir.
43390 (EXTRA_GNATBIND_OBJS): Likewise.
43391 (ADA_BACKEND): Moved from Makefile.in.
43392 Renamed to avoid conflict with global BACKEND.
43394 (TARGET_ADA_SRCS): Moved from Makefile.in.
43395 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
43397 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
43398 (ada_extra_files): Moved from Makefile.in.
43399 Prefix with ada subdir.
43400 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
43401 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
43402 (ada/nmake.ads): Likewise.
43403 (update-sources): Moved from Makefile.in.
43404 Prefix with ada subdir.
43405 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
43406 (ADA_TREE_H): Likewise.
43407 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
43408 (ada/memtrack.o): Likewise.
43409 (ada/adadecode.o): Likewise.
43410 Update dependencies.
43411 (ada/adaint.o): New.
43412 (ada/argv.o): Moved from Makefile.in.
43413 Prefix with ada subdir.
43414 Update dependencies.
43415 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
43416 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
43417 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
43418 Prefix with ada subdir.
43419 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
43420 (GNAT DEPENDENCIES): Regenerate.
43421 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
43422 toplevel Makefile.in.
43423 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
43424 (TARGET_ADA_SRCS): Removed.
43425 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
43426 (GNATBIND_OBJS): Likewise.
43427 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
43428 (BACKEND): Removed.
43429 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
43430 (TREE_H): Likewise.
43431 (ada_extra_files): Likewise.
43432 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
43433 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
43434 (update-sources): Likewise.
43435 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
43436 (ADA_TREE_H): Likewise.
43437 (adadecoce.o): Likewise.
43438 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
43439 (GNAT DEPENDENCIES): Likewise.
43441 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43443 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
43444 * Makefile.in: Likewise.
43446 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43448 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
43449 Restore $(CONFIG_H) and prefix.o dependencies.
43450 (ada.stage[1-4]): Depend on stage?-start.
43452 * Makefile.in (b_gnatb.c): Depend on interfac.o.
43454 2002-05-02 Jim Wilson <wilson@redhat.com>
43456 * utils.c (finish_record_type): Change record_size to record_type.
43458 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
43460 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
43461 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
43462 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
43464 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
43466 * misc.c (gnat_parse_file): Update.
43468 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
43470 * misc.c (gnat_init): Don't set lang_attribute_common.
43472 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
43474 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
43476 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
43478 * gnat_ug.texi: New file.
43480 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
43481 instead of gfdl.texi
43483 * xgnatug.adb, ug_words: New files.
43485 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
43486 gnat_rm and gnat-style manuals.
43488 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
43490 * gigi.h (incomplete_type_error): Remove.
43491 * utils.c (incomplete_type_error): Remove.
43493 2002-04-16 Mark Mitchell <mark@codesourcery.com>
43495 * trans.c (tree_transform): Add has_scope argument to
43496 expand_start_stmt_expr.
43498 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
43500 * gigi.h (truthvalue_conversion): Rename.
43501 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
43502 * trans.c (tree_transform): Update.
43503 * utils2.c (truthvalue_conversion): Rename, update.
43504 (build_binary_op, build_unary_op): Update.
43506 2002-04-04 Laurent Guerby <guerby@acm.org>
43508 * make.adb: Implement -margs, remove restriction about file name placement.
43509 * makeusg.adb: Documentation update.
43510 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
43511 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
43513 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
43515 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
43516 (builtin_function): Similarly.
43518 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
43520 * decl.c (gnat_to_gnu_entity): Update.
43521 * gigi.h (mark_addressable): Rename.
43522 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
43523 * trans.c (tree_transform): Update.
43524 * utils.c (create_var_decl): Update.
43525 * util2.c (build_binary_op, build_unary_op,
43526 fill_vms_descriptor): Update.
43527 (mark_addressable): Rename, update.
43529 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
43531 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
43533 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
43534 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
43535 * trans.c (tree_transform, convert_with_check): Update.
43536 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
43539 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
43541 * gigi.h (finish_incomplete_decl): Rename.
43542 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
43543 * utils.c (gnat_init_decl_processing): Don't set hook.
43544 (finish_incomplete_decl): Rename.
43546 2002-03-29 Andreas Schwab <schwab@suse.de>
43548 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
43551 2001-03-28 Robert Dewar <dewar@gnat.com>
43554 (Remove_Checks): New procedure
43557 (Remove_Checks): New procedure
43560 Use new Duplicate_Subexpr functions
43561 (Duplicate_Subexpr_No_Checks): New procedure
43562 (Duplicate_Subexpr_No_Checks_Orig): New procedure
43563 (Duplicate_Subexpr): Restore original form (checks duplicated)
43564 (Duplicate_Subexpr): Call Remove_Checks
43567 (Duplicate_Subexpr_No_Checks): New procedure
43568 (Duplicate_Subexpr_No_Checks_Orig): New procedure
43569 Add 2002 to copyright notice
43571 * sem_util.adb: Use new Duplicate_Subexpr functions
43574 (Eval_Indexed_Component): This is the place to call
43575 Constant_Array_Ref and to replace the value. We simply merge
43576 the code of this function in here, since it is now no longer
43577 used elsewhere. This fixes the problem of the back end not
43578 realizing we were clever enough to see that this was
43580 (Expr_Val): Remove call to Constant_Array_Ref
43581 (Expr_Rep_Val): Remove call to Constant_Array_Ref
43583 (Constant_Array_Ref): Deal with string literals (patch
43584 suggested by Zack Weinberg on the gcc list)
43586 2001-03-28 Ed Schonberg <schonber@gnat.com>
43588 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
43589 Duplicate_Subexpr_Move_Checks.
43591 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
43592 Duplicate_Subexpr_Move_Checks.
43594 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
43595 value of array exists before retrieving it (it may a private
43596 protected component in a function).
43598 2002-03-28 Geert Bosch <bosch@gnat.com>
43600 * prj-pp.adb : New file.
43602 * prj-pp.ads : New file.
43604 2002-03-28 Andreas Jaeger <aj@suse.de>
43606 * Makefile.in (stamp-sdefault): Fix path for Makefile.
43608 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
43610 * misc.c (gnat_expand_expr): Move prototype.
43612 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
43614 * misc.c (insert_default_attributes): Remove.
43616 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
43618 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
43619 (gnat_init): Don't set hook.
43620 (gnat_expand_expr): Fix prototype.
43622 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
43624 * misc.c (ggc_p): Remove.
43626 2002-03-27 Geert Bosch <bosch@gnat.com>
43628 * prj-makr.ads, prj-makr.adb : New files.
43630 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
43632 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
43633 (lang_mark_tree): Make static, rename.
43635 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
43637 * misc.c (maybe_build_cleanup): Remove.
43639 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
43641 * gigi.h (yyparse): Remove.
43643 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
43645 From Ben Brosgol <brosgol@gnat.com>
43646 * gnat_rm.texi: Sync with ACT version.
43648 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
43650 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
43651 (gnat_init): Remove old hook.
43653 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
43655 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
43656 (yyparse): Rename gnat_parse_file.
43658 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
43660 Delete all lines containing "$Revision:".
43661 * xeinfo.adb: Don't look for revision numbers.
43662 * xnmake.adb: Likewise.
43663 * xsinfo.adb: Likewise.
43664 * xsnames.adb: Likewise.
43665 * xtreeprs.adb: Likewise.
43667 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43669 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
43670 gnat_tree_code_name): Delete.
43671 (tree_code_type, tree_code_length, tree_code_name): Define.
43672 (gnat_init): Don't try to copy into the various tree_code
43675 2002-03-11 Richard Henderson <rth@redhat.com>
43677 * Makefile.in (.NOTPARALLEL): Add fake tag.
43679 2002-03-07 Geert Bosch <bosch@gnat.com>
43681 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
43682 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
43683 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43684 switch-m.adb, switch-m.ads : New files.
43686 2002-03-07 Geert Bosch <bosch@gnat.com>
43688 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
43689 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
43690 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
43691 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
43692 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
43693 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
43694 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
43695 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
43696 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
43697 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
43698 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
43699 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
43700 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
43701 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
43702 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
43703 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
43704 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
43705 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
43706 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
43707 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
43708 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
43709 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
43710 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
43711 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
43712 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
43713 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
43714 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
43715 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
43716 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
43717 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
43718 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
43719 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
43720 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
43721 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
43722 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
43723 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
43724 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
43725 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
43726 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
43727 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
43728 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
43729 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
43730 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
43731 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
43732 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
43733 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
43734 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
43735 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
43736 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
43737 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
43738 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
43739 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
43740 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
43741 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
43742 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
43743 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
43744 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
43745 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
43746 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
43747 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
43748 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
43749 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
43750 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
43751 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
43752 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
43753 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
43754 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
43755 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
43756 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
43757 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
43758 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
43759 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
43760 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
43761 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
43762 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
43763 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43764 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
43765 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
43766 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
43767 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
43768 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
43769 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
43770 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
43771 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
43772 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
43773 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
43774 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
43775 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
43776 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
43777 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
43778 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
43779 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
43780 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
43781 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
43782 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
43783 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
43784 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
43786 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
43787 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
43788 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
43789 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
43791 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
43792 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
43794 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
43795 to mdll-fil.ad[bs] and mdll-util.ad[bs]
43797 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
43798 from mdllfile.ad[bs] and mdlltool.ad[bs]
43800 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
43802 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
43803 lieu of explicit sizeof/sizeof.
43805 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
43807 * misc.c (copy_lang_decl): Remove.
43809 2002-02-27 Zack Weinberg <zack@codesourcery.com>
43811 * misc.c: Delete traditional-mode-related code copied from the
43812 C front end but not used, or used only to permit the compiler
43815 2002-02-07 Richard Henderson <rth@redhat.com>
43817 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
43818 * adaint.h (__gnat_to_gm_time): Update prototype.
43820 2002-01-30 Richard Henderson <rth@redhat.com>
43822 * trans.c (tree_transform) [N_Loop_Statement]: Use
43823 expand_exit_loop_top_cond.
43825 2001-12-23 Richard Henderson <rth@redhat.com>
43827 * utils.c (end_subprog_body): Push GC context around
43828 rest_of_compilation for nested functions.
43830 2001-12-23 Richard Henderson <rth@redhat.com>
43832 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
43834 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
43836 * gnat-style.texi (Declarations and Types): Remove ancient style
43837 rule which was mandated by code generation issues.
43839 * gnat-style.texi (header): Add @dircategory, @direntry.
43840 (title page): Remove date.
43841 (general) Add @./@: where approriate, and two spaces after the
43842 full stop at the end of a sentence. Use @samp markup when
43843 referring concrete lexical entities (keywords, attribute names
43844 etc.), and @syntax for ARM grammar elements. Use @r for English
43845 text in comments. Use @emph for emphasis. Change "if-statements"
43846 etc. to "if statements" (without @samp). Break long lines. Make
43847 casing of section names consistent.
43848 (Identifiers): Use @samp markup for variable names.
43849 (Comments): Use @samp markup for comment characters. Line-end
43850 comments may follow any Ada code, not just statements. Fix
43851 misspelling of "Integer" as "integer".
43852 (Loop statements): Do not use variable name "I", use "J".
43853 (Subprogram Declarations): Document alignment.
43854 (Subprogram Bodies, Block statements): Document empty line before
43857 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
43859 * make.adb (Add_Switch): Make Generic_Position a procedure. The
43860 function approach did not work well because of a side effect (the
43861 function call could reallocate the table which was being indexed
43862 using its result). Fixes ada/4851.
43864 2001-12-19 Robert Dewar <dewar@gnat.com>
43866 * bindgen.adb: Minor reformatting
43868 * cstand.adb: Minor reformatting
43870 * fmap.adb: Minor reformatting
43871 Change name from Add for Add_To_File_Map (Add is much too generic)
43872 Change Path_Name_Of to Mapped_Path_Name
43873 Change File_Name_Of to Mapped_File_Name
43874 Fix copyright dates in header
43877 Change name from Add for Add_To_File_Map (Add is much too generic)
43878 Change Path_Name_Of to Mapped_Path_Name
43879 Change File_Name_Of to Mapped_File_Name
43880 Fix copyright dates in header
43882 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
43883 Add use clause for Fmap.
43885 * make.adb: Minor reformatting
43887 * osint.adb: Minor reformatting. Change of names in Fmap.
43888 Add use clause for Fmap.
43890 * prj-env.adb: Minor reformatting
43892 * prj-env.ads: Minor reformatting
43894 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
43895 error found (there were odd exceptions to this general rule in
43896 -gnatec/-gnatem processing)
43898 2001-12-19 Olivier Hainque <hainque@gnat.com>
43900 * raise.c (__gnat_eh_personality): Exception handling personality
43901 routine for Ada. Still in rough state, inspired from the C++ version
43902 and still containing a bunch of debugging artifacts.
43903 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
43904 inspired from the C++ library.
43906 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
43907 exception handling integration.
43909 2001-12-19 Arnaud Charlet <charlet@gnat.com>
43911 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
43912 (HIE_SOURCES): Add s-secsta.ad{s,b}.
43913 (HIE_OBJS): Add s-fat*.o
43914 (RAVEN_SOURCES): Remove files that are no longer required. Add
43915 interrupt handling files.
43916 (RAVEN_MOD): Removed, no longer needed.
43918 2001-12-19 Robert Dewar <dewar@gnat.com>
43920 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
43921 Add 2001 to copyright date
43923 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
43924 need to force universal inlining for these cases.
43926 2001-12-19 Arnaud Charlet <charlet@gnat.com>
43928 * s-taprob.adb: Minor clean ups so that this unit can be used in
43931 * exp_ch7.adb: Allow use of secondary stack in HI mode.
43932 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
43934 2001-12-19 Vincent Celier <celier@gnat.com>
43936 * prj-tree.ads (Project_Node_Record): Add comments for components
43937 Pkg_Id and Case_Insensitive.
43939 2001-12-19 Pascal Obry <obry@gnat.com>
43941 * g-socket.adb: Minor reformatting. Found while reading code.
43943 2001-12-19 Robert Dewar <dewar@gnat.com>
43945 * prj-tree.ads: Minor reformatting
43947 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
43949 * config-lang.in (diff_excludes): Remove.
43951 2001-12-17 Ed Schonberg <schonber@gnat.com>
43953 * sem_res.adb (Resolve_Selected_Component): do not generate a
43954 discriminant check if the selected component is a component of
43955 the argument of an initialization procedure.
43957 * trans.c (tree_transform, case of arithmetic operators): If result
43958 type is private, the gnu_type is the base type of the full view,
43959 given that the full view itself may be a subtype.
43961 2001-12-17 Robert Dewar <dewar@gnat.com>
43963 * sem_res.adb: Minor reformatting
43965 * trans.c (tree_transform, case N_Real_Literal): Add missing third
43966 parameter in call to Machine (unknown horrible effects from this
43969 * urealp.h: Add definition of Round_Even for call to Machine
43970 Add third parameter for Machine
43972 2001-12-17 Ed Schonberg <schonber@gnat.com>
43974 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
43975 predefined units in No_Run_Time mode.
43977 2001-12-17 Richard Kenner <kenner@gnat.com>
43979 * misc.c (insn-codes.h): Now include.
43981 2001-12-17 Olivier Hainque <hainque@gnat.com>
43983 * a-except.adb: Preparation work for future integration of the GCC 3
43984 exception handling mechanism
43985 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
43986 to factorize previous code sequences and make them externally callable,
43987 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
43988 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
43989 Use the new notification routines.
43991 2001-12-17 Emmanuel Briot <briot@gnat.com>
43993 * prj-tree.ads (First_Choice_Of): Document the when others case
43995 2001-12-17 Arnaud Charlet <charlet@gnat.com>
43997 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
43998 HI-E mode, in order to support Ravenscar profile properly.
44000 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
44001 mode on 32 bits targets.
44003 2001-12-17 Vincent Celier <celier@gnat.com>
44005 * fmap.adb: Initial version.
44007 * fmap.ads: Initial version.
44009 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
44010 If search is successfully done, add to mapping.
44012 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
44015 (Gnatmake): Add new local variable Mapping_File_Name.
44016 Create mapping file when using project file(s).
44017 Delete mapping file before exiting.
44019 * opt.ads (Mapping_File_Name): New variable
44021 * osint.adb (Find_File): Use path name found in mapping, if any.
44023 * prj-env.adb (Create_Mapping_File): New procedure
44025 * prj-env.ads (Create_Mapping_File): New procedure.
44027 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
44030 * usage.adb: Add entry for new switch -gnatem.
44032 * Makefile.in: Add dependencies for fmap.o.
44034 2001-12-17 Ed Schonberg <schonber@gnat.com>
44036 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
44037 is a package instantiation rewritten as a package body.
44038 (Install_Withed_Unit): Undo previous change, now redundant.
44040 2001-12-17 Gary Dismuke <dismukes@gnat.com>
44043 (Compute_Length): Move conversion to Unsigned to callers.
44044 (Get_Max_Size): Convert Len expression to Unsigned after calls to
44045 Compute_Length and Determine_Range.
44046 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
44047 Compute_Length and Determine_Range.
44048 Above changes fix problem with length computation for supernull arrays
44049 where Max (Len, 0) wasn't getting applied due to the Unsigned
44050 conversion used by Compute_Length.
44052 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44055 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
44056 System.Secondary_Stack.
44057 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
44059 Remove unused entity RE_Exception_Data.
44061 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
44063 * rident.ads (No_Secondary_Stack): New restriction.
44065 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44067 * gnat_rm.texi: Fix minor typos. Found while reading the section
44068 regarding "Bit_Order Clauses" that was sent to a customer.
44069 Very interesting documentation!
44071 2001-12-17 Robert Dewar <dewar@gnat.com>
44073 * sem_case.adb (Choice_Image): Avoid creating improper character
44074 literal names by using the routine Set_Character_Literal_Name. This
44075 fixes bombs in certain error message cases.
44077 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44079 * a-reatim.adb: Minor reformatting.
44081 2001-12-17 Ed Schonberg <schonber@gnat.com>
44083 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
44084 case where the formal is an extension of another formal in the current
44085 unit or in a parent generic unit.
44087 2001-12-17 Arnaud Charlet <charlet@gnat.com>
44089 * s-tposen.adb: Update comments. Minor reformatting.
44090 Minor code clean up.
44092 * s-tarest.adb: Update comments. Minor code reorganization.
44094 2001-12-17 Gary Dismukes <dismukes@gnat.com>
44096 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
44099 2001-12-17 Robert Dewa <dewar@gnat.com>
44101 * exp_attr.adb: Minor reformatting
44103 2001-12-17 Ed Schonberg <schonber@gnat.com>
44105 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
44106 derivations nested within a child unit: verify that the parent
44107 type is declared in an outer scope.
44109 2001-12-17 Robert Dewar <dewar@gnat.com>
44111 * sem_ch12.adb: Minor reformatting
44113 2001-12-17 Ed Schonberg <schonber@gnat.com>
44115 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
44116 warning if current unit is a predefined one, from which bodies may
44119 2001-12-17 Robert Dewar <dewar@gnat.com>
44121 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
44122 Fix header format. Add 2001 to copyright date.
44124 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
44125 which caused CE during compilation if checks were enabled.
44127 2001-12-17 Vincent Celier <celier@gnat.com>
44130 (Switches_Of): New function
44131 (Test_If_Relative_Path): New procedure
44132 (Add_Switches): Use new function Switches_Of
44133 (Collect_Arguments_And_Compile): Use new function Switches_Of.
44134 When using a project file, test if there are any relative
44135 search path. Fail if there are any.
44136 (Gnatmake): Only add switches for the primary directory when not using
44137 a project file. When using a project file, change directory to the
44138 object directory of the main project file. When using a project file,
44139 test if there are any relative search path. Fail if there are any.
44140 When using a project file, fail if specified executable is relative
44141 path with directory information, and prepend executable, if not
44142 specified as an absolute path, with the exec directory. Make sure
44143 that only one -o switch is transmitted to the linker.
44145 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
44148 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
44149 when using a non standard naming scheme.
44150 (Check_Ada_Naming_Scheme): Make sure that error messages
44151 do not raise exceptions.
44152 (Is_Illegal_Append): Return True if there is no dot in the suffix.
44153 (Language_Independent_Check): Check the exec directory.
44155 * prj.adb (Project_Empty): Add new component Exec_Directory
44158 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
44159 (Project_Data): Add component Exec_Directory
44161 * snames.adb: Updated to match snames.ads revision 1.215
44163 * snames.ads: Added Exec_Dir
44165 2001-12-17 Robert Dewar <dewar@gnat.com>
44167 * make.adb: Minor reformatting
44169 * prj-nmsc.adb: Minor reformatting
44171 * snames.adb: Updated to match snames.ads
44173 * snames.ads: Alphebetize entries for project file
44175 2001-12-17 Ed Schonberg <schonber@gnat.com>
44177 * trans.c (process_freeze_entity): Do nothing if the entity is a
44178 subprogram that was already elaborated.
44180 2001-12-17 Richard Kenner <kenner@gnat.com>
44182 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
44183 and Esize if object is referenced via pointer.
44185 2001-12-17 Ed Schonberg <schonber@gnat.com>
44187 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
44188 is discrete before analyzing choices.
44190 2001-12-17 Joel Brobecker <brobecke@gnat.com>
44192 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
44193 containing the name of the Ada Main Program. This string is mainly
44194 intended for the debugger.
44195 (Gen_Output_File_C): Do the equivalent change when generating a C file.
44197 2001-12-17 Robert Dewar <dewar@gnat.com>
44199 * ali.adb: Set new Dummy_Entry field in dependency entry
44201 * ali.ads: Add Dummy_Entry field to source dependency table
44203 * bcheck.adb (Check_Consistency): Ignore dummy D lines
44205 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
44207 * lib-writ.ads: Document dummy D lines for missing files.
44209 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
44211 2001-12-17 Robert Dewar <dewar@gnat.com>
44213 * ali.adb: Type reference does not reset current file.
44215 * ali.adb: Recognize and scan renaming reference
44217 * ali.ads: Add spec for storing renaming references.
44219 * lib-xref.ads: Add documentation for handling of renaming references
44221 * lib-xref.adb: Implement output of renaming reference.
44224 (Determine_Range): Document local variables
44225 (Determine_Range): Make sure Hbound is initialized. It looks as though
44226 there could be a real problem here with an uninitialized reference
44227 to Hbound, but no actual example of failure has been found.
44229 2001-12-17 Laurent Pautet <pautet@gnat.com>
44232 Fix comment of Shutdown_Socket and Close_Socket. These functions
44233 should not fail silently because if they are called twice, this
44234 probably means that there is a race condition in the user program.
44235 Anyway, this behaviour is consistent with the rest of this unit.
44236 When an error occurs, an exception is raised with the error message
44237 as exception message.
44239 2001-12-17 Robert Dewar <dewar@gnat.com>
44241 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
44242 that it happens before modification of Sloc values for -gnatD.
44244 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
44245 so that it happens before modification of Sloc values for -gnatD.
44247 * switch.adb: Minor reformatting
44249 2001-12-15 Richard Henderson <rth@redhat.com>
44251 * sem_ch7.adb: Wrap comment.
44253 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
44255 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
44256 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
44257 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
44258 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
44259 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
44260 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
44261 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
44262 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
44263 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
44264 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
44265 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
44266 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
44267 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
44268 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
44269 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
44270 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
44271 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
44272 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
44273 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
44274 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
44275 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
44276 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
44277 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
44278 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
44281 2001-12-14 Vincent Celier <celier@gnat.com>
44283 * osint.adb(Create_Debug_File): When an object file is specified,
44284 put the .dg file in the same directory as the object file.
44286 2001-12-14 Robert Dewar <dewar@gnat.com>
44288 * osint.adb: Minor reformatting
44290 * lib-xref.adb (Output_Instantiation): New procedure to generate
44291 instantiation references.
44293 * lib-xref.ads: Add documentation of handling of generic references.
44295 * ali.adb (Read_Instantiation_Ref): New procedure to read
44296 instantiation references
44298 * ali.ads: Add spec for storing instantiation references
44300 * bindusg.adb: Minor reformatting
44302 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44304 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44306 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44308 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
44312 Add 2001 to copyright date
44313 Add entry for Latin-5 (Cyrillic ISO-8859-5)
44315 2001-12-14 Matt Gingell <gingell@gnat.com>
44317 * adaint.c: mktemp is a macro on Lynx and can not be used as an
44320 2001-12-14 Richard Kenner <kenner@gnat.com>
44322 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
44323 if operand is CONSTRUCTOR.
44325 2001-12-14 Ed Schonberg <schonber@gnat.com>
44327 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
44328 before emiting check on right-hand side, so that exception information
44331 2001-12-14 Richard Kenner <kenner@gnat.com>
44333 * utils.c (create_var_decl): Throw away initializing expression
44334 if just annotating types and non-constant.
44336 2001-12-14 Vincent Celier <celier@gnat.com>
44338 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
44341 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44343 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
44345 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
44347 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
44349 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
44351 * ChangeLog: Remove piece of diff output.
44353 2001-12-14 Geert Bosch <bosch@gnat.com>
44355 * config-lang.in: Update copyright notice
44357 * layout.adb: Remove commented out code.
44359 * mdllfile.ads: Update copyright notice. Fix header format.
44361 * sem_case.ads: Likewise.
44363 * sem_ch3.adb: Minor reformatting.
44365 2001-12-12 Geert Bosch <bosch@gnat.com>
44367 * freeze.ads: Update copyright date.
44369 * g-comlin.ads: Minor reformatting.
44371 * gnat-style.texi: Fix typo.
44373 2001-12-12 Geert Bosch <bosch@gnat.com>
44375 * einfo.h: Regenerate.
44377 2001-12-12 Ed Schonberg <schonber@gnat.com>
44379 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
44380 on known node types, rather than untyped fields. Further cleanups.
44382 2001-12-12 Robert Dewar <dewar@gnat.com>
44385 (Save_Entity_Descendant): Minor comment update.
44386 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
44387 of an N_Attribute_Reference node. As per note below, this does not
44388 eliminate need for Associated_Node in attribute ref nodes.
44389 (Associated_Node): Documentation explicitly mentions attribute
44390 reference nodes, since this field is used in such nodes.
44392 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
44394 2001-12-12 Robert Dewar <dewar@gnat.com>
44396 * s-stalib.adb: Add more comments on with statements being needed
44398 * par-ch12.adb: Minor reformatting
44400 * prj-dect.ads: Fix copyright header
44402 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
44403 inputs fit in 32 bits, but the result still overflows.
44405 * s-fatgen.ads: Minor comment improvement
44407 2001-12-12 Ed Schonberg <schonber@gnat.com>
44409 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
44410 formal derived type, look for an inherited component from the full
44411 view of the parent, if any.
44413 2001-12-12 Robert Dewar <dewar@gnat.com>
44415 * checks.ads (Apply_Alignment_Check): New procedure.
44417 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
44418 ensure that the alignment of objects with address clauses is
44419 appropriate, and raise PE if not.
44421 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
44422 Exp_Pakd.Known_Aligned_Enough
44424 * mdllfile.ads: Minor reformatting
44426 * mlib-fil.ads: Minor reformatting
44428 2001-12-12 Ed Schonberg <schonber@gnat.com>
44430 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
44431 fix to any component reference if enclosing record has non-standard
44434 2001-12-12 Vincent Celier <celier@gnat.com>
44436 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
44439 2001-12-12 Ed Schonberg <schonber@gnat.com>
44441 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
44444 2001-12-12 Robert Dewar <dewar@gnat.com>
44446 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
44448 2001-12-12 Emmanuel Briot <briot@gnat.com>
44450 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
44451 and it adds dependencies to system.io.
44453 2001-12-12 Pascal Obry <obry@gnat.com>
44455 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
44458 2001-12-11 Ed Schonberg <schonber@gnat.com>
44460 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
44461 that is the parent of other generics, the instance body replaces the
44462 instance node. Retrieve the instance of the spec, which is the one
44463 that is visible in clients and within the body.
44465 2001-12-11 Vincent Celier <celier@gnat.com>
44467 * gnatmain.adb: Initial version.
44469 * gnatmain.ads: Initial version.
44471 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
44473 * snames.adb: Updated to match snames.ads.
44475 * snames.ads: Added Gnatstub.
44477 2001-12-11 Vincent Celier <celier@gnat.com>
44479 * prj-attr.adb (Initialization_Data): Change name from
44480 Initialisation_Data.
44482 2001-12-11 Emmanuel Briot <briot@gnat.com>
44484 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
44485 + and * applied to backslashed expressions like \r.
44487 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
44489 * g-os_lib.ads: String_List type added, Argument_List type is now
44490 subtype of String_List.
44492 2001-12-11 Robert Dewar <dewar@gnat.com>
44494 * g-os_lib.ads: Change copyright to FSF
44495 Add comments for String_List type
44497 2001-12-11 Vincent Celier <celier@gnat.com>
44499 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
44500 string to the buffer).
44502 2001-12-11 Ed Schonberg <schonber@gnat.com>
44504 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
44507 * sem_attr.adb: Simplify previous fix for Address.
44508 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
44509 to avoid anomalies where the bound of the type appears to raise
44512 2001-12-11 Robert Dewar <dewar@gnat.com>
44514 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
44517 2001-12-11 Ed Schonber <schonber@gnat.com>
44519 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
44520 renamed unit before checking for recursive instantiations.
44522 2001-12-11 Emmanuel Briot <briot@gnat.com>
44524 * prj.ads: Add comments for some of the fields.
44526 2001-12-11 Robert Dewar <dewar@gnat.com>
44528 * lib-xref.adb (Output_Refs): Don't output type references outside
44529 the main unit if they are not otherwise referenced.
44531 2001-12-11 Ed Schonberg <schonber@gnat.com>
44533 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
44534 code and diagnose additional illegal uses
44536 * sem_util.adb (Is_Object_Reference): An indexed component is an
44537 object only if the prefix is.
44539 2001-12-11 Vincent Celier <celier@gnat.com>
44541 * g-diopit.adb: Initial version.
44543 * g-diopit.ads: Initial version.
44546 (Expand_Path): Avoid use of Unbounded_String
44547 (Find, Wildcard_Iterator): Moved to child package Iteration
44549 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
44551 2001-12-11 Robert Dewar <dewar@gnat.com>
44553 * sem_attr.adb: Minor reformatting
44555 2001-12-11 Ed Schonberg <schonber@gnat.com>
44557 * sem_ch3.adb: Clarify some ???.
44559 2001-12-11 Robert Dewar <dewar@gnat.com>
44561 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
44562 Exp_Pakd.Known_Aligned_Enough
44564 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
44565 version is moved to Exp_Ch13.
44567 2001-12-11 Robert Dewar <dewar@gnat.com>
44569 * einfo.ads: Minor reformatting
44571 * exp_ch5.adb: Add comment for previous.change
44573 * ali.adb: New interface for extended typeref stuff.
44575 * ali.ads: New interface for typeref stuff.
44577 * checks.adb (Apply_Alignment_Check): New procedure.
44579 * debug.adb: Add -gnatdM for modified ALI output
44581 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
44583 * lib-xref.adb: Extend generation of <..> notation to cover
44584 subtype/object types. Note that this is a complete rewrite,
44585 getting rid of the very nasty quadratic algorithm previously
44586 used for derived type output.
44588 * lib-xref.ads: Extend description of <..> notation to cover
44589 subtype/object types. Uses {..} for these other cases.
44590 Also use (..) for pointer types.
44592 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
44594 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
44595 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
44597 2001-12-11 Vincent Celier <celier@gnat.com>
44600 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
44601 Changed /BIND_ONLY to /ACTIONS=BIND
44602 Changed /LINK_ONLY to /ACTIONS=LINK
44604 2001-12-11 Ed Schonberg <schonber@gnat.com>
44606 * sem_ch8.adb (Find_Selected_Component): improved search for a
44607 candidate package in case of error.
44609 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
44610 chain back on scope stack before reinstalling use clauses.
44612 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
44613 is enabled, do not kill the code for the condition, to preserve
44616 2001-12-11 Robert Dewar <dewar@gnat.com>
44618 * checks.adb (Insert_Valid_Check): Apply validity check to expression
44619 of conversion, not to result of conversion.
44621 2001-12-11 Ed Schonberg <schonber@gnat.com>
44623 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
44624 before freezing parent. If the declarations are mutually recursive,
44625 an access to the current record type may be frozen before the
44626 derivation is complete.
44628 2001-12-05 Vincent Celier <celier@gnat.com>
44630 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
44631 -c /COMPILE_ONLY, -l /LINK_ONLY
44634 (Bind_Only): New Flag
44635 (Link_Only): New flag
44637 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
44640 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
44643 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
44644 (Gnatmake): Set the step flags. Only perform a step if the
44645 corresponding step flag is True.
44646 (Scan_Make_Arg): Reset the bind and link step flags when -u
44647 or -gnatc has been specified.
44649 2001-12-05 Ed Schonberg <schonber@gnat.com>
44651 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
44652 get bounds from right operand.
44654 * sem_eval.adb: Minor reformatting
44656 * exp_util.adb (Make_Literal_Range): use bound of literal rather
44657 than Index'First, its lower bound may be different from 1.
44659 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
44662 2001-12-05 Vincent Celier <celier@gnat.com>
44664 * prj-nmsc.adb Minor reformatting
44666 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
44667 set and libraries are not supported.
44669 2001-12-05 Ed Schonberg <schonber@gnat.com>
44671 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
44672 private view explicitly, so the back-end can treat as a global
44675 2001-12-05 Ed Schonberg <schonber@gnat.com>
44677 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
44678 unit, always replace instance node with new body, for ASIS use.
44680 2001-12-05 Vincent Celier <celier@gnat.com>
44682 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
44683 libraries are not supported and both attributes Library_Name and
44684 Library_Dir are specified.
44686 * prj-proc.adb (Expression): Set location of Result to location of
44689 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
44690 (prj-nmsc is now importing MLib.Tgt)
44692 * prj-proc.adb: Put the change indicated above that was forgotten.
44694 2001-12-05 Robert Dewar <dewar@gnat.com>
44696 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
44698 2001-12-05 Ed Schonberg <schonber@gnat.com>
44700 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
44701 constraint, introduce explicit subtype declaration and derive from it.
44703 * sem_ch3.adb: Minor reformatting
44705 2001-12-05 Robert Dewar <dewar@gnat.com>
44707 * checks.adb (Determine_Range): Increase cache size for checks.
44710 * exp_ch6.adb: Minor reformatting
44711 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
44712 a parameter whose root type is System.Address, since treating such
44713 subprograms as pure in the code generator is almost surely a mistake
44714 that will lead to unexpected results.
44716 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
44717 change handling of conversions.
44719 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
44721 2001-12-05 Ed Schonberg <schonber@gnat.com>
44723 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
44724 aggregate with static wrong size, attach generated Raise node to
44727 2001-12-05 Robert Dewar <dewar@gnat.com>
44729 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
44730 Fixes compilation abandoned bomb in B24009B.
44732 2001-12-05 Ed Schonberg <schonber@gnat.com>
44735 Document use of Associated_Node on Selected_Components.
44736 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
44737 to clarify use of untyped descendant fields.
44739 2001-12-05 Robert Dewar <dewar@gnat.com>
44741 * prj-dect.ads: Add ??? comment
44742 Add 2001 to copyright notice (was not done in after all)
44744 * prj-part.adb: Minor reformatting. Reword one awkward error message.
44746 * prj.ads: Minor reformatting throughout, and add some ??? comments
44748 * snames.ads: Minor reformatting
44750 2001-12-05 Geert Bosch <bosch@gnat.com>
44752 * snames.adb: Autoupdate
44754 2001-12-05 Vincent Celier <celier@gnat.com>
44756 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
44758 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
44760 * prj-env.adb: Minor comment changes (modifying -> extends).
44762 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
44764 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
44767 * prj.adb (Initialize): Change Modifying to Extends.
44769 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
44771 * prj.ads: Minor comment change (Modifying -> extending).
44773 * snames.ads: Change modifying to extends.
44775 2001-12-05 Robert Dewar <dewar@gnat.com>
44777 * sem_warn.adb: Remove stuff for conditionals, we are not going to
44780 * sem_warn.ads: Remove stuff for conditionals, we are not going to
44781 do this after all. Add 2001 to copyright notice
44783 2001-12-04 Geert Bosch <bosch@gnat.com>
44785 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
44787 2001-12-04 Robert Dewar <dewar@gnat.com>
44789 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
44790 location if we already have errors. Stops some cases of cascaded
44793 * errout.adb: Improve comment.
44795 2001-12-04 Robert Dewar <dewar@gnat.com>
44798 (Analyze_Formal_Type_Definition): Defend against Error.
44799 (Analyze_Formal_Subprogram): Defend against Error.
44801 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
44802 remove following semicolon if present. Removes cascaded error.
44804 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
44807 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
44808 exceptions equals 0.
44809 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
44810 Fixes PIWG E tests (which have to be run with -gnatL).
44812 2001-12-04 Robert Dewar <dewar@gnat.com>
44814 * einfo.ads: Minor reformatting
44816 2001-12-04 Ed Schonberg <schonber@gnat.com>
44818 * einfo.ads: Block_Node points to the identifier of the block, not to
44819 the block node itself, to preserve the link when the block is
44820 rewritten, e.g. within an if-statement with a static condition.
44822 * inline.adb (Cleanup_Scopes): recover block statement from block
44823 entity using new meaning of Block_Node.
44825 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
44826 identifier of block node, rather than to node itself.
44828 2001-12-04 Gary Dismukes <dismukes@gnat.com>
44831 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
44832 (Discrimify): Go back to setting the Etypes of the selected component
44833 because the Vname component does not exist at this point and will
44834 fail name resolution. Also set Analyzed.
44835 Remove with and use of Sem_Res.
44837 2001-12-04 Arnaud Charlet <charlet@gnat.com>
44839 * Makefile.in: (HIE_SOURCES): add s-fat*.
44841 2001-12-04 Robert Dewar <dewar@gnat.com>
44844 (Compile_Time_Known_Attribute): New procedure.
44845 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
44846 proper range check.
44848 2001-12-04 Ed Schonberg <schonber@gnat.com>
44850 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
44851 processing discriminants to diagnose illegal default values.
44853 2001-12-04 Ed Schonberg <schonber@gnat.com>
44855 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
44856 access discriminant within a type extension that constrains its
44857 parent discriminants.
44859 2001-12-04 Ed Schonberg <schonber@gnat.com>
44861 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
44862 is malformed, use instance of Any_Id to allow analysis to proceed.
44864 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
44865 type definition is illegal.
44866 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
44869 2001-12-04 Ed Schonberg <schonber@gnat.com>
44871 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
44874 2001-12-04 Robert Dewar <dewar@gnat.com>
44876 * errout.adb: Minor reformatting
44878 2001-12-04 Robert Dewar <dewar@gnat.com>
44880 * exp_util.adb: Minor reformatting from last change
44882 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
44883 which is a rewriting of an expression, traverse the original
44884 expression to remove warnings that may have been posted on it.
44886 2001-12-04 Ed Schonberg <schonber@gnat.com>
44888 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
44889 record that has other packed components.
44891 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
44893 * adaint.c: Minor cleanups.
44895 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
44897 * adaint.c: Do not use utime.h on vxworks.
44899 2001-12-04 Arnaud Charlet <charlet@gnat.com>
44901 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
44902 more confusion than it solves.
44904 2001-12-04 Geert bosch <bosch@gnat.com>
44906 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
44908 2001-12-04 Geert Bosch <bosch@gnat.com>
44910 * Makefile.in (update-sources): New target.
44911 For use by gcc_release script.
44913 2001-12-04 Ed Schonberg <schonber@gnat.com>
44915 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
44916 a configuration pragma, it is now legal wherever a pragma can appear.
44918 2001-12-04 Zack Weinberg <zack@codesourcery.com>
44920 * Makefile.in: Don't set ALL. Delete @cross_defines@,
44921 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
44922 is now @CROSS@ -DIN_GCC; update comment.
44924 2001-12-04 Robert Dewar <dewar@gnat.com>
44926 * einfo.adb (Has_Pragma_Pure_Function): New flag.
44927 Fix problem that stopped ceinfo from working
44929 * einfo.ads (Has_Pragma_Pure_Function): New flag.
44931 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
44933 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
44936 (File_Time_Stamp): New procedure.
44937 (Preserve_Mode): New boolean.
44938 (Write_Unit): Pass time stamp.
44939 Implement -p switch (preserve time stamps).
44941 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
44943 * gnatchop.adb: Do usage info for -p switch
44945 * adaint.h (__gnat_set_file_time_name): New function
44947 * adaint.c (__gnat_set_file_time_name): Implement
44949 * adaint.h: Fix typo
44951 2001-12-03 Robert Dewar <dewar@gnat.com>
44953 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
44954 have Associated_Node.
44956 2001-12-03 Robert Dewar <dewar@gnat.com>
44958 * prj-proc.adb: Minor reformatting
44960 * make.adb: Minor reformatting
44962 2001-12-03 Geert Bosch <bosch@gnat.com>
44964 * make.adb: Minor reformatting.
44966 2001-12-03 Robert Dewar <dewar@gnat.com>
44968 * sem_ch12.adb: Minor reformatting
44970 2001-12-03 Ed Schonberg <schonber@gnat.com>
44972 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
44973 push Standard on the stack before analyzing the instance body,
44974 in order to have a clean visibility environment.
44976 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
44978 2001-12-03 Ed Schonberg <schonber@gnat.com>
44980 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
44981 instantiation of a body that contains an inlined body.
44983 2001-12-03 Ed Schonberg <schonber@gnat.com>
44986 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
44987 to prevent freezing within formal packages.
44988 (Freeze_Subprogram_Body): If body comes from another instance that
44989 appeared before its own body, place freeze node at end of current
44990 declarative part, to prevent a back-end crash.
44991 (Inline_Instance_Body): Handle properly a package instance within
44992 a subprogram instance that is a child unit.
44994 2001-12-01 Graham Stott <grahams@redhat.com>
44996 * Makefile.in (misc.o): Add missing $(srcdir) prefix
44997 and add optabs.h dependency.
44999 * misc.c: Include optabs.h
45000 (gnat_tree_code_type): Make static and const.
45001 (gnat_tree_code_length): Likewise.
45002 (gnat_tree_code_name): Likewise.
45003 (update_setjmp_buf): Obtain operands mode from insn_data.
45005 2001-11-29 Richard Henderson <rth@redhat.com>
45007 * init.c: Remove obsolete dwarf2 frame.h section.
45009 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
45011 * Make-lang.in (ada.generated-manpages): New dummy target.
45013 2001-11-29 Ed Schonberg <schonber@gnat.com>
45015 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
45016 into Command, an array conversion is illegal here. Uncovered by
45019 2001-11-28 Geert Bosch <bosch@gnat.com>
45021 * init.c: Minor whitespace changes.
45023 2001-11-28 Doug Rupp <rupp@gnat.com>
45025 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
45028 2001-11-28 Zack Weinberg <zack@codesourcery.com>
45030 * misc.c (gnat_expand_constant): Move declaration above
45031 definition of lang_hooks.
45032 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
45033 (gnat_init): lang_expand_constant no longer exists.
45035 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
45036 always have vprintf.
45037 (gnat_init): Always call set_internal_error_function.
45039 2001-11-27 Andreas Jaeger <aj@suse.de>
45041 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
45043 2001-11-27 Laurent Guerby <guerby@acm.org>
45045 * Makefile.in: Regenerate Ada dependencies.
45047 2001-11-26 Richard Henderson <rth@redhat.com>
45049 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
45050 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
45051 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
45053 2001-11-25 Laurent Guerby <guerby@acm.org>
45055 * sysdep.c (rts_get_*): Fix style.
45057 2001-11-19 Laurent Guerby <guerby@acm.org>
45059 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
45060 since it is of no apparent use and cause warnings.
45062 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
45064 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
45066 (gnat_init): Don't return NULL.
45067 (finish_parse): Remove.
45069 2001-11-17 Laurent Guerby <guerby@acm.org>
45071 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
45072 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
45073 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
45074 * lang-spec.h: Add missing struct field to silence warnings.
45075 * sysdep.c (rts_get_*): Provide K&R prototype.
45076 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
45077 * traceback.c (Unlock_Task, Lock_Task): Likewise.
45078 * tracebak.c (__gnat_backtrace): Remove unused variable.
45079 * utils.c (end_subprog_body): Move to K&R style.
45081 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
45083 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
45085 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
45087 * misc.c (gnat_init): Change prototype. Include the
45088 functionality of the old init_parse and init_decl_processing.
45089 (gnat_init_decl_processing): New prototype.
45090 (init_parse): Remove.
45091 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
45093 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45095 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
45096 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
45097 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
45098 set_yydebug): Remove.
45100 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
45102 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
45103 (struct lang_hooks): Constify.
45104 (language_string, lang_identify): Remove.
45105 * utils.c (init_decl_processing): Update.
45107 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
45109 * misc.c: Include langhooks-def.h.
45110 * Makefile.in: Update.
45112 2001-10-30 Robert Dewar <dewar@gnat.com>
45115 (Check_Identifier): Rewrite circuit to be compatible with use of letters
45116 in the upper half of ASCII.
45117 (Check_Identifier): Minor reformatting
45119 2001-10-30 Geert Bosch <bosch@gnat.com>
45121 * (Associated_Node, Set_Associated_Node): Do not check for
45124 2001-10-30 Robert Dewar <dewar@gnat.com>
45126 * a-reatim.ads: Minor reformatting
45128 2001-10-30 Robert Dewar <dewar@gnat.com>
45130 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
45131 undocumented declarations.
45133 2001-10-30 Pascal Obry <obry@gnat.com>
45135 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
45136 to the binder and linker.
45139 * mdll.ads: Fix layout. Update copyright notice.
45141 * mdll.adb: Fix layout. Update copyright notice.
45143 2001-10-30 Robert Dewar <dewar@gnat.com>
45145 * usage.adb: Minor fix to output for -gnaty.
45147 2001-10-30 Ed Schonberg <schonber@gnat.com>
45149 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
45150 to accommodate all its possible values.
45152 * a-reatim.adb (Split): Special-case handling of Time_Span_First
45153 and of small absolute values of T.
45155 2001-10-30 Richard Kenner <kenner@gnat.com>
45157 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
45158 set_mem_attributes since not needed and wrong if RESULT if a REG;
45159 fixes ACATS failures.
45161 2001-10-30 Geert Bosch <bosch@gnat.com>
45163 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
45164 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
45166 2001-10-30 Robert Dewar <dewar@gnat.com>
45168 * bindusg.adb: Undocument -f switch.
45170 * gnatcmd.adb: Remove /FULL_ELABORATION.
45172 * opt.ads (Force_RM_Elaboration_Order): Document that this is
45175 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
45177 * gnatbind.adb: Minor update of warning msg.
45179 2001-10-30 Vincent Celier <celier@gnat.com>
45181 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
45182 for project file switches (-P (/PROJECT_FILE=),
45183 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
45186 2001-10-30 Geert Bosch <bosch@gnat.com>
45188 * decl.c: Minor whitespace fixes.
45190 2001-10-30 Richard Kenner <kenner@gnat.com>
45192 * utils2.c (build_allocator): Test for SIZE overflow in array case too
45194 2001-10-30 Geert Bosch <bosch@gnat.com>
45196 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
45197 Found due to GCC 3.0 warning of using uninitialized value.
45200 (Get_Max_Size): Use variant record for tracking value/expression.
45201 Makes logic clearer and prevents warnings for uninitialized variables.
45202 (Layout_Array_Type): Use variant record for tracking value/expression.
45203 Makes logic clearer and prevents warnings for uninitialized variables.
45205 2001-10-30 Robert Dewar <dewar@gnat.com>
45207 * lib.adb: Minor reformatting
45209 * s-taprop.ads: Minor reformatting
45211 2001-10-29 Laurent Guerby <guerby@acm.org>
45214 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
45216 (_gnat_error_handler): Make MSG const.
45218 2001-10-29 Richard Kenner <kenner@gnat.com>
45220 * sysdep.c: Fix localtime_r problem on LynxOS.
45221 Also remove #elif to avoid warnings.
45223 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45226 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
45228 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
45230 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
45231 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
45232 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
45233 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
45234 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
45235 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
45236 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
45237 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
45238 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
45239 types.ads, urealp.adb: Fix spelling errors.
45241 2001-10-27 Laurent Guerby <guerby@acm.org>
45243 * trans.c (gigi): Fix non determinism leading to bootstrap
45244 comparison failures for debugging information.
45246 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
45248 * gnat_rm.texi: Use @./@: where appropriate.
45250 2001-10-26 Robert Dewar <dewar@gnat.com>
45252 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
45254 2001-10-26 Richard Kenner <kenner@gnat.com>
45256 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
45258 2001-10-26 Richard Kenner <kenner@gnat.com>
45260 * decl.c (validate_size): Modify message for bad size to avoid
45261 implication that compiler is modifying the size.
45263 2001-10-26 Robert Dewar <dewar@gnat.com>
45265 * prj-util.adb: Minor reformatting. Fix bad header format.
45267 2001-10-26 Robert Dewar <dewar@gnat.com>
45269 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
45271 * sinfo.ads: Clarify use of Associated_Node (documentation only).
45273 * sem_ch12.adb: Change Node4 to Associated_Node. Change
45274 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
45275 much more narrowly in places where needed. These are cleanups.
45277 2001-10-26 Joel Brobecker <brobecke@gnat.com>
45279 * 5zosinte.ads (null_pthread): new constant.
45282 (Initialize_TCB): Initialize thread ID to null, to be able to verify
45283 later that this field has been set.
45284 (Finalize_TCB): ditto.
45285 (Suspend_Task): Verify that the thread ID is not null before using it.
45286 (Resume_Task): ditto.
45289 (Resume_All_Tasks): Lock the tasks list before using it.
45290 (Suspend_All_Tasks): ditto.
45292 2001-10-26 Richard Kenner <kenner@gnat.com>
45294 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
45295 Make constant variant of designated type for Is_Access_Constant.
45296 Call update_pointer_to with main variant.
45298 * trans.c (process_freeze_entity, process_type):
45299 Call update_pointer_to on main variant.
45301 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
45302 If main variant, update all other variants.
45304 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
45307 2001-10-26 Robert Dewar <dewar@gnat.com>
45309 * prj-util.adb: Minor reformatting
45311 2001-10-26 Robert Dewar <dewar@gnat.com>
45313 * prj-util.adb: Minor reformatting
45315 2001-10-26 Robert Dewar <dewar@gnat.com>
45317 * prj-attr.adb: Minor reformatting throughout
45319 2001-10-26 Robert Dewar <dewar@gnat.com>
45321 * prj-attr.ads: Minor reformatting
45322 Add ??? comment (this whole spec has almost no comments)
45324 2001-10-26 Vincent Celier <celier@gnat.com>
45326 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
45327 ("//") that precede the drive letter on Interix.
45329 2001-10-26 Geert Bosch <bosch@gnat.com>
45331 * gnat_rm.texi: Add GNAT Reference Manual.
45333 2001-10-25 Robert Dewar <dewar@gnat.com>
45335 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
45336 is Error. Similar change for other renaming cases.
45338 2001-10-25 Robert Dewar <dewar@gnat.com>
45340 * s-atacco.ads: Add pragma Inline_Always for functions.
45341 Fix header format. Add copyright 2001
45343 2001-10-25 Ed Schonberg <schonber@gnat.com>
45345 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
45346 return Error rather than Empty so that analysis can proceed.
45348 2001-10-25 Ed Schonberg <schonber@gnat.com>
45350 * sem_util.adb (Enter_Name): better handling of cascaded error
45351 messages when a unit appears in its own context.
45353 2001-10-25 Ed Schonberg <schonber@gnat.com>
45355 * sem_util.adb (Defining_Entity): in case of error, attach created
45356 entity to specification, so that semantic analysis can proceed.
45358 2001-10-25 Robert Dewar <dewar@gnat.com>
45361 (Defining_Entity): Deal with Error.
45362 (Process_End_Label): Deal with bad end label for.
45364 2001-10-25 Ed Schonberg <schonber@gnat.com>
45366 * sem_elab.adb (Check_A_Call): refine message when call is in an
45367 instance but callee is not declared in the generic unit.
45369 2001-10-25 Ed Schonberg <schonber@gnat.com>
45371 * sem_elab.adb (Check_A_Call): check for renaming before finding the
45372 enclosing unit, which may already be different from the calling unit.
45374 2001-10-25 Geert Bosch <bosch@gnat.com>
45376 * 4gintnam.ads: fix header format.
45378 2001-10-25 Ed Schonberg <schonber@gnat.com>
45380 * sem_res.adb (Resolve_Call): if the call is actually an indexing
45381 operation on the result of a parameterless call, perform elaboration
45382 check after the node has been properly rewritten.
45384 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
45385 inlined within the generic tree, the defining identifier is not a
45388 2001-10-25 Ed Schonberg <schonber@gnat.com>
45390 * sem_res.adb (Resolve): special-case resolution of Null in an
45391 instance or an inlined body to avoid view conflicts.
45393 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
45394 compatibility by retrieving the access type of the generic copy.
45396 2001-10-25 Robert Dewar <dewar@gnat.com>
45399 (Analyze_Number_Declaration): Handle error expression.
45400 (Signed_Integer_Type_Declaration): Handle error bound.
45401 (Analyze_Subtype_Indication): Handle error range.
45403 * sem_util.adb (Get_Index_Bounds): Check for Error.
45405 2001-10-25 Robert Dewar <dewar@gnat.com>
45407 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
45408 in no run time mode.
45410 2001-10-25 Pascal Obry <obry@gnat.com>
45412 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
45413 mode case for ALLOC case.
45415 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
45416 all platforms. Improvement of last change.
45418 2001-10-25 Robert Dewar <dewar@gnat.com>
45420 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
45422 2001-10-25 Geert Bosch <bosch@gnat.com>
45424 * osint.adb (Is_Relative): Remove duplicate.
45426 2001-10-25 Pascal Obry <obry@gnat.com>
45428 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
45429 pathnames in UNIX and DOS style with drive letter.
45430 (Is_Relative): new routine.
45432 * osint.adb: Minor reformatting
45434 * osint.adb (Is_Relative): implementation using
45435 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
45437 2001-10-25 Pascal Obry <obry@gnat.com>
45439 * g-dirope.adb (Basename): correctly compute offset between the
45440 original Path and the translated one.
45442 * g-dirope.adb: (Base_Name): add some comments.
45444 2001-10-25 Robert Dewar <dewar@gnat.com>
45446 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
45447 in HIE mode, avoids compilation abandoned message
45449 * exp_imgv.adb: Correct typo in previous change
45451 * exp_imgv.adb: Correct typo in previous change (not my day!)
45453 2001-10-25 Robert Dewar <dewar@gnat.com>
45455 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
45457 2001-10-25 Pascal Obry <obry@gnat.com>
45459 * g-awk.ads: Move all pragma inlines next to the routine
45460 declarations. This is more uniform with other GNAT spec.
45462 2001-10-22 Geert Bosch <bosch@gnat.com>
45464 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
45466 2001-10-19 Geert Bosch <bosch@gnat.com>
45468 * Makefile.in (tools, gnattools): Remove gnatmem.
45470 2001-10-17 Richard Henderson <rth@redhat.com>
45472 * Makefile.in (misc.o): Depend on langhooks.h.
45473 * misc.c: Include it.
45474 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
45475 (LANG_HOOKS_DECODE_OPTION): New.
45476 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
45478 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
45480 * trans.c (tree_transform): Adjust to recent change in
45481 expand_asm_operands to implement named asm operands.
45483 2001-10-11 Ed Schonberg <schonber@gnat.com>
45485 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
45486 renaming of discriminant for mutable record type.
45488 2001-10-11 Robert Dewar <dewar@gnat.com>
45490 * validsw.adb: Properly save -gnatVn status.
45492 2001-10-11 Robert Dewar <dewar@gnat.com>
45494 * usage.adb: Add lines for V switch.
45496 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
45497 (/VALIDITY_CHECKING).
45499 2001-10-11 Ed Schonberg <schonber@gnat.com>
45501 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45502 an extension of System is known to be visible.
45504 2001-10-11 Ed Schonberg <schonber@gnat.com>
45506 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
45507 properly. Fixes regression on ACATS C34005G.
45509 2001-10-11 Robert Dewar <dewar@gnat.com>
45511 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
45512 loop in generic instance, since this is likely not very useful.
45514 2001-10-11 Robert Dewar <dewar@gnat.com>
45516 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
45517 the error message for high integrity mode.
45519 * rtsfind.adb (RTE): Give message if we try to find an entity that
45520 is not available in high integrity mode.
45523 (OK_To_Use_In_HIE_Mode): New array.
45524 (RTE): May return Empty in high integrity mode.
45526 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
45527 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
45529 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
45530 unit if not inlined always and in no runtime mode. Fixes problem
45531 caused by new Rtsfind changes.
45533 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
45536 * rtsfind.adb (RTE): Make sure we do not try to load unit after
45537 giving message for entity not available in high integrity mode.
45539 2001-10-11 Pascal Obry <obry@gnat.com>
45541 * impunit.adb: Add GNAT.CRC32.
45543 2001-10-11 Ed Schonberg <schonber@gnat.com>
45545 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
45546 properly the case where one universal operand in a non-static
45547 exponentiation of a real literal.
45549 2001-10-11 Ed Schonberg <schonber@gnat.com>
45551 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
45552 clause, return the gobal finalization list, for lack of anthing else.
45554 2001-10-11 Ed Schonberg <schonber@gnat.com>
45556 * exp_ch7.adb (Make_Transient_Block): if statement is within
45557 exception handler, always use new transient scope to place Clean
45560 2001-10-11 Pascal Obry <obry@gnat.com>
45563 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
45564 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
45565 (GNATLS_RTL_OBJS): add g-crc32.o
45566 (GNATMAKE_RTL_OBJS): add g-crc32.o
45569 (CRC_Match): new function.
45570 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
45571 instead of the previous simple checksum algorithm.
45572 (Time_Stamp_Mismatch): use CRC_Match for comparison.
45573 (Set_Source_Table): idem.
45576 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
45577 instead of simple checksum.
45578 (CRC_Match): new function.
45579 (CRC_Error): new constant.
45581 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
45582 a CRC now and not a simple checksum. A CRC uses lower-case hex
45583 letters, fixes ambiguity in parsing.
45585 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
45586 is what this variable will store.
45588 * bcheck.adb: Change reference to chechsum in comments by CRC.
45589 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
45590 rename All_Checksum_Match to All_CRC_Match. Change due to API
45591 renaming since now GNAT does not use a simple checksum but a
45592 CRC using GNAT.CRC32.
45594 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
45595 now and not anymore a simple checksum.
45597 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
45600 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
45603 (Restore_Scan_State): rename Checksum to CRC.
45604 (Save_Scan_State): idem.
45608 (Checksum): rename to CRC.
45609 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
45611 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
45612 GNAT.CRC32). Update copyright notice.
45614 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
45615 GNAT.CRC32). Update copyright notice.
45618 (Accumulate_Checksum): removed.
45619 (Update): new procedure. Add a wide-character into the CRC.
45622 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
45623 (Load_File): fix initialization of S (change Source_Checksum to
45626 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
45627 Source_CRC in S initialization.
45629 * sinput.adb (Source_Checksum): renamed to Source_CRC.
45631 * sinput.ads (Source_Checksum): renamed to Source_CRC.
45632 Update comments for the CRC.
45634 * types.adb (Hex): Use lowercase for the letter part.
45636 * types.ads (Get_Hex_String): Returns the hexadecimal representation
45637 for a word. This is currently used only for CRC. In previous version,
45638 the checksum was using a representation with all letter being
45639 upper-case. With the new implementation (using CRC) we do not remove
45640 the 32th bit of the CRC, so we can have an upper-case starting letter
45641 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
45642 It is ambigous since the CRC was optional and could be followed by
45643 options like EB, EE. So now this routines uses lower-case letter for
45644 the hexadecimal representation. Strange enough only lower case letters
45645 where checked in Scan_ALI (even if this was not a possible case).
45647 * gnatvsn.ads (Library_Version): changed to 3.15a.
45649 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
45652 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
45655 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
45656 Add 2001 to copyright notice
45657 (Accumulate_Checksum): Modify to use System.CRC32.
45659 * ali-util.ads: Redo changes of previous revision to continue to use
45660 the word Checksum. Add 2001 to copyright notice.
45662 * ali.adb: Undo some of previous changes, not needed.
45663 Keep the change for lower case letters in the checksum.
45665 * ali.ads: Undo previous change not needed.
45667 * bcheck.adb: Undo most of previous change, not needed.
45668 But do use Checksums_Match for checksum comparison.
45670 * gnatls.adb: Undo most of previous change, not needed.
45671 But do use Checksums_Match for comparing checksums.
45673 * lib-load.adb: Undo previous change, not needed.
45675 * lib-writ.adb: Undo previous change, not needed.
45677 * lib-writ.ads: Document that checksums use lower case,
45678 not upper case letters.
45680 * scans.adb: Undo previous change, not needed
45682 * scans.ads: Undo previous change, not needed.
45684 * scn-nlit.adb: Undo previous changes, not needed.
45686 * scn-slit.adb: Undo previous change, not needed. Fix header format.
45689 (Accumulate_Checksum): Use System.CRC32.
45690 (Initialize_Checksum): New procedure.
45691 Remove other changes of previous revision.
45693 * sinput-p.adb: Undo previous change, not needed.
45695 * sinput.adb: Undo previous change, not needed.
45697 * sinput-l.adb: Undo previous change, not needed.
45699 * sinput.ads: Undo previous change, not needed. Keep only comment
45700 on new checksum algorithm
45702 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
45703 Also remove a-tags and a-stream from GNAT sources.
45705 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
45707 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
45709 2001-10-11 Geert Bosch <bosch@gnat.com>
45711 * einfo.h: Regenerate.
45713 * nmake.ads: Regenerate.
45715 * nmake.adb: Regenerate.
45717 * sinfo.h: Regenerate.
45719 * treeprs.adb: Regenerate.
45721 2001-10-10 Geert Bosch <bosch@gnat.com>
45723 * gnat-style.texi: New file describing coding guidelines for Ada.
45725 2001-10-10 Ed Schonberg <schonber@gnat.com>
45727 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
45730 2001-10-10 Geert Bosch <bosch@gnat.com>
45732 * snames.ads: Add new names for project facility.
45734 * snames.adb: Update to reflect snames.ads changes.
45736 * snames.h: Update to reflect snames.ads changes.
45738 2001-10-10 Vincent Celier <celier@gnat.com>
45741 (Add_Switches): reflect the changes for the switches attributes
45742 Default_Switches indexed by the programming language,
45743 Switches indexed by the file name.
45744 (Collect_Arguments_And_Compile): Idem.
45745 Reflect the attribute name changes.
45748 (Initialisation_Data): Change the names of some packages and
45750 (Initialize): process case insensitive associative arrays.
45753 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
45756 (Parse_Attribute_Declaration): For case insensitive associative
45757 arrays, set the index string to lower case.
45760 Reflect the changes of the project attributes.
45763 Replace Check_Naming_Scheme by Ada_Check and
45764 Language_Independent_Check.
45767 Replaced Check_Naming_Scheme by 2 procedures:
45768 Ada_Check and Language_Independent_Check.
45771 (Process_Declarative_Items): For case-insensitive associative
45772 arrays, set the index string to lower case.
45773 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
45774 Prj.Nmsc.Check_Naming_Scheme.
45777 (Case_Insensitive): New function
45778 (Set_Case_Insensitive): New procedure
45781 (Case_Insensitive): New function
45782 (Set_Case_Insensitive): New procedure
45783 (Project_Node_Record): New flag Case_Insensitive.
45786 (Value_Of): new function to get the string value of a single
45787 string variable or attribute.
45790 (Value_Of): new function to get the string value of a single
45791 string variable or attribute.
45794 (Ada_Default_Spec_Suffix): New function
45795 (Ada_Default_Impl_Suffix): New function
45796 Change definitions of several constants to reflect
45797 new components of record types.
45800 (Naming_Data): Change several components to reflect new
45801 elements of naming schemes.
45802 (Project_Data): New flags Sources_Present and
45803 Language_Independent_Checked.
45804 (Ada_Default_Spec_Suffix): New function.
45805 (Ada_Default_Impl_Suffix): New function.
45808 Modification of predefined names for project manager: added
45809 Implementation, Specification_Exceptions, Implementation_Exceptions,
45810 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
45811 Default_Switches, _Languages, Builder, Cross_Reference,
45812 Finder. Removed Body_Part, Specification_Append, Body_Append,
45813 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
45816 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45819 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
45820 not that it is Nil_Variable_Value.
45822 * prj.ads: Add ??? for uncommented declarations
45824 2001-10-10 Ed Schonberg <schonber@gnat.com>
45826 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
45827 constant, do not indicate possible modification, so that gigi can
45828 treat it as a bona fide constant.
45830 2001-10-10 Robert Dewar <dewar@gnat.com>
45832 * sem_prag.adb: Add processing for pragma External.
45834 * snames.ads: Add entry for pragma External.
45836 * par-prag.adb: Add pragma External.
45838 * snames.adb: Updated to match snames.ads.
45840 2001-10-10 Ed Schonberg <schonber@gnat.com>
45842 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
45843 a dynamic task if the allocator appears in an indexed assignment
45844 or selected component assignment.
45846 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
45847 For a dynamic task in an assignment statement, use target of
45848 assignment to generate meaningful name.
45850 2001-10-10 Ed Schonberg <schonber@gnat.com>
45852 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
45855 * einfo.ads: Body_Entity is also defined for generic package.
45856 Documentation change only
45858 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
45859 others_choice for a discriminated component initialization,
45860 convert discriminant references into the corresponding discriminals.
45862 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
45863 only if original type is private and expression has to be wrapped
45867 (Apply_Constraint_Check): Do not perform length check
45868 if expression is an aggregate with only an others_choice.
45869 (Length_N_Cond): two references to the same in_parameter
45870 (typically the discriminal in an init_proc) denote the same value.
45871 Two useful optimization uncovered by bugfixes above.
45873 2001-10-10 Robert Dewar <dewar@gnat.com>
45875 * xeinfo.adb: Change int to char in translation of enumeration types.
45876 This fixes a problem in the C representation of component alignment.
45877 Add 2001 to copyright notice
45879 2001-10-10 Richard Kenner <kenner@gnat.com>
45881 * decl.c: (validate_size): Do check size of object of integral type
45882 if it is a packed array type.
45884 2001-10-10 Richard Kenner <kenner@gnat.com>
45886 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
45887 VAR_DECL for constant if not Is_Public but -O0.
45889 2001-10-10 Richard Kenner <kenner@gnat.com>
45891 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
45893 2001-10-10 Geert Bosch <bosch@gnat.com>
45895 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
45896 use '/' as switch character, allowing for absolute file names.
45898 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
45900 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
45903 2001-10-08 Geert Bosch <bosch@gnat.com>
45905 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
45906 Automatically build utilities when files need to be regenerated.
45908 2001-10-08 Geert Bosch <bosch@gnat.com>
45910 * xsnames.adb: New utility for updating snames.ads and snames.adb
45912 2001-10-08 Zack Weinberg <zack@codesourcery.com>
45914 * Make-lang.in (ADAFLAGS): Add -W -Wall.
45915 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
45916 (gnat1): Also depend on attribs.o.
45917 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
45918 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
45919 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
45920 (ADAFLAGS): Add -W -Wall.
45921 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
45924 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
45925 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
45926 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
45927 Use $(ADAC), not $(CC), as compilation command.
45929 (gnattools): Depend directly on tools to build, don't use
45931 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
45933 * einfo.h, sinfo.h: New files (autogenerated).
45935 2001-10-08 Richard Henderson <rth@redhat.com>
45937 * comperr.adb (Abort_In_Progress): New.
45938 (Compiler_Abort): Use it to prevent recursion.
45940 2001-10-08 Robert Dewar <dewar@gnat.com>
45942 * atree.adb: Set Error_Posted in Error node, helps error recovery.
45944 * par-endh.adb (Output_End_Expected): We should also not test
45945 Error_Posted on the Error node, since now it is always set.
45947 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
45948 to help error recovery. Part of general work on 9407-004.
45950 * par.adb: Add ??? for misuse of error
45953 (Resolve): Defend against Error, fixes 9407-003.
45954 (Resolve_Discrete_Subtype_Indication): Defend against Error.
45956 * sinfo.ads (N_Error): Now has Etype field (which will be set
45957 to Any_Type to help error recovery).
45959 2001-10-08 Richard Kenner <kenner@gnat.com>
45961 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
45962 Consistently set MEM attributes from expression; fixes
45963 bootstrap failure on x86.
45965 2001-10-08 Geert Bosch <bosch@gnat.com>
45967 * 5oosinte.adb: Add 2001 to copyright notice.
45969 2001-10-08 Geert Bosch <bosch@gnat.com>
45971 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
45973 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
45975 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
45977 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
45979 2001-10-05 Geert Bosch <bosch@gnat.com>
45981 * adaint.h: Small formatting fix.
45983 2001-10-04 Geert Bosch <bosch@gnat.com>
45985 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
45986 Arg is int, not FILE *, in dummy version of functions.
45988 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
45989 Arg is int, not FILE *.
45991 2001-10-04 Geert Bosch <bosch@gnat.com>
45993 * 3lsoccon.ads: Added file, missed with initial check ins.
45995 * 4lintnam.ads: Fix header format.
45996 Change Linux to GNU/Linux.
45998 * 5iosinte.adb: Change Linux to GNU/Linux.
46000 * 5iosinte.ads: Change Linux to GNU/Linux.
46002 * 5itaprop.adb: Change Linux to GNU/Linux.
46004 * 5itaspri.ads: Change Linux to GNU/Linux.
46005 Update copyright notice.
46007 * 5lintman.adb: Change Linux to GNU/Linux.
46009 * 5lml-tgt.adb: Change Linux to GNU/Linux.
46011 * 5losinte.ads: Change Linux to GNU/Linux.
46013 * 5lsystem.ads: Change Linux to GNU/Linux.
46015 * 5qosinte.adb: Change Linux to GNU/Linux.
46017 * 5qosinte.ads: Change Linux to GNU/Linux.
46019 * 5qparame.ads: Change Linux to GNU/Linux.
46021 * 5qtaprop.adb: Change Linux to GNU/Linux.
46023 * 5qtaspri.ads: Change Linux to GNU/Linux.
46024 Add 2001 to copyright notice.
46026 * 5vintman.ads: Change Linux to GNU/Linux.
46027 Fix header format. Add 2001 to copyright notice.
46029 * g-soccon.ads: Change Linux to GNU/Linux.
46031 * g-trasym.ads: Change Linux to GNU/Linux.
46032 Add 2001 to copyright notice.
46034 * memtrack.adb: Change Linux to GNU/Linux.
46036 * s-intman.ads: Change Linux to GNU/Linux.
46037 Add 2001 to copyright notice. Fix header format.
46039 * s-stache.adb: Change Linux to GNU/Linux.
46041 * adaint.c: Change Linux to GNU/Linux.
46043 * cio.c: Change Linux to GNU/Linux.
46045 * cstreams.c: Change Linux to GNU/Linux.
46047 * init.c: Change Linux to GNU/Linux.
46049 * gmem.c: Change Linux to GNU/Linux.
46051 * tracebak.c: Change Linux to GNU/Linux.
46054 2001-10-02 Geert Bosch <bosch@gnat.com>
46056 * misc.c (insert_default_attributes): Add dummy version.