[multiple changes]
[gcc.git] / gcc / ada / ChangeLog
1 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
2
3 * adaint.h (__gnat_lwp_self): Declare on Linux.
4
5 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6
7 2009-04-20 Robert Dewar <dewar@adacore.com>
8
9 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
10 front-end part of -fpreserve-control-flow switch.
11
12 2009-04-20 Bob Duff <duff@adacore.com>
13
14 * rtsfind.adb: Minor comment fix
15
16 2009-04-20 Robert Dewar <dewar@adacore.com>
17
18 * exp_aggr.adb: Minor reformatting
19 Minor code reorganization (use Nkind_In)
20
21 * g-socket.adb: Minor reformatting
22
23 * g-socket.ads: Minor comment fix
24
25 * s-auxdec.ads: Minor comment and organization update.
26
27 * s-auxdec-vms_64.ads: Minor comment and organization update.
28
29 * sem_ch10.adb: Minor addition of ??? comment
30
31 * sem_disp.adb: Minor reformatting
32
33 2009-04-20 Ed Schonberg <schonberg@adacore.com>
34
35 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
36 list a caller of an inlined subprogram, if the caller itself is not
37 called.
38
39 2009-04-20 Pascal Obry <obry@adacore.com>
40
41 * adaint.c: Disable use of ACL on network drives.
42
43 2009-04-20 Arnaud Charlet <charlet@adacore.com>
44
45 * gnat_ugn.texi: Add examples.
46
47 2009-04-20 Thomas Quinot <quinot@adacore.com>
48
49 * g-socket.ads (Abort_Selector): Clarify documentation.
50
51 2009-04-20 Arnaud Charlet <charlet@adacore.com>
52
53 * opt.ads (Inspector_Mode): Update documentation of this flag.
54
55 2009-04-20 Thomas Quinot <quinot@adacore.com>
56
57 * g-socket.ads: Minor reformatting
58
59 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
60 consider S_resolvLib error codes since we only use the hostLib wrappers.
61
62 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
63
64 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
65 of the Underlying_Record_View after that of the derived type.
66
67 2009-04-20 Arnaud Charlet <charlet@adacore.com>
68
69 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
70 in inspector mode.
71
72 2009-04-20 Javier Miranda <miranda@adacore.com>
73
74 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
75
76 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
77 documentation.
78
79 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
80
81 * sem_disp.adb
82 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
83 in internally built overriding subprograms.
84
85 2009-04-20 Doug Rupp <rupp@adacore.com>
86
87 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
88
89 * s-auxdec.ads: Likewise
90
91 2009-04-20 Ed Schonberg <schonberg@adacore.com>
92
93 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
94 type by an interface.
95
96 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
97 minimze difference in expanded tree when compiled as spec of the main
98 unit, or as a spec in the context of another unit.
99
100 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
101
102 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
103 (localtime_tzoff): This routine no longer accepts an actual of type
104 tm_Pointer.
105 (UTC_Time_Offset): Remove local variable Secs_TM.
106
107 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
108 actual of type struct tm*. Add local variable of type struct tm for all
109 targets that provide localtime_r and need to invoke it.
110
111 2009-04-20 Thomas Quinot <quinot@adacore.com>
112
113 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
114 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
115 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
116
117 2009-04-20 Robert Dewar <dewar@adacore.com>
118
119 * sem_ch3.adb: Minor reformatting
120
121 * lib-load.adb: Minor reformatting
122
123 * sem_ch4.adb: Minor reformatting
124
125 2009-04-20 Robert Dewar <dewar@adacore.com>
126
127 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
128 (equal values => False).
129
130 2009-04-20 Ed Schonberg <schonberg@adacore.com>
131
132 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
133 to null procedures can be inlined unconditionally.
134
135 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
136
137 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
138 non-addressable parameter passed by reference, do not convert the
139 actual if its type is already the nominal type, unless it is of
140 self-referential size.
141
142 2009-04-20 Arnaud Charlet <charlet@adacore.com>
143
144 * gnat_ugn.texi: Fix typos.
145
146 2009-04-20 Robert Dewar <dewar@adacore.com>
147
148 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
149 Validate_Unchecked_Warnings to suppress warnings about size or
150 alignment or extra bits if either type involved has pragma Warnings
151 (Off) set for the type entity.
152
153 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
154
155 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
156 a builtin type and give it a name.
157
158 2009-04-17 Diego Novillo <dnovillo@google.com>
159
160 * gcc-interface/misc.c (gnat_expand_expr): Remove.
161 (LANG_HOOKS_EXPAND_EXPR): Remove.
162
163 2009-04-17 Robert Dewar <dewar@adacore.com>
164
165 * sem_ch3.adb: Minor reformatting
166
167 2009-04-17 Pascal Obry <obry@adacore.com>
168
169 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
170
171 2009-04-17 Ed Schonberg <schonberg@adacore.com>
172
173 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
174 illegal constraints on type derived from formal discrete types.
175
176 2009-04-17 Thomas Quinot <quinot@adacore.com>
177
178 PR ada/35953
179
180 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
181 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
182 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
183 g-socket.ads (GNAT.Sockets.Thin.C_Send,
184 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
185 Replace calls to send(2) with equivalent sendto(2) calls.
186 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
187 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
188 report an error in that case. Factor code common to the two versions
189 (datagram and stream) in common routine Stream_Write.
190
191 2009-04-17 Robert Dewar <dewar@adacore.com>
192
193 * exp_disp.adb: Minor reformatting
194 Minor code reorganization (use Nkind_In)
195
196 * prepcomp.adb: Minor reformatting
197
198 * sem_ch3.adb: Minor reformatting
199
200 * sem_res.adb: Minor comment addition
201
202 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
203 for address clause
204
205 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
206 setting Is_Referenced
207
208 * types.ads: Minor reformatting
209
210 2009-04-17 Arnaud Charlet <charlet@adacore.com>
211
212 * gnat_ugn.texi: Initial documentation on binding generator.
213
214 2009-04-17 Ed Schonberg <schonberg@adacore.com>
215
216 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
217 type extensions whose parent is a type with unknown discriminants.
218
219 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
220 aggregate has unknown discriminants, use the Underlying_Record_View to
221 obtain the discriminants of the ancestor part.
222
223 * exp_disp.adb (Build_Dispatch_Tables): Types that are
224 Underlying_Record_Views share the dispatching information of the
225 original record extension.
226
227 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
228 discriminants, propagate dispach table information to the
229 Underlying_Record_View.
230
231 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
232 discriminants and declaration is not a completion, generate
233 Underlying_Record_View to provide proper discriminant information to
234 the front-end and to gigi.
235
236 2009-04-17 Robert Dewar <dewar@adacore.com>
237
238 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
239 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
240 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
241 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
242 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
243 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
244 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
245 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
246 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
247 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
248 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
249 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
250 s-conca3.ads: Remove unneeded pragma Warnings
251
252 2009-04-17 Robert Dewar <dewar@adacore.com>
253
254 * g-moreex.adb: Add comments.
255
256 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
257
258 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
259 Warnings (Off)
260
261 * prepcomp.adb: Add ??? comment
262
263 * a-tasatt.adb: Minor reformatting
264
265 * g-trasym-vms-alpha.adb: Add ??? comment
266
267 * g-trasym-vms-ia64.adb: Add ??? comment
268
269 * xoscons.adb: Minor reformatting
270
271 * s-tassta.adb: Minor reformatting
272
273 * s-scaval.adb: Add ??? comment
274
275 * stand.ads: Minor code clean up (remove junk with of Namet)
276
277 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
278 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
279 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
280 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
281 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
282 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
283 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
284 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
285 Warnings off pragmas.
286
287 2009-04-17 Pascal Obry <obry@adacore.com>
288
289 * initialize.c: Fix test for reallocating the arguments array.
290
291 2009-04-17 Geert Bosch <bosch@adacore.com>
292
293 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
294 conversion truncate only for decimal fixed point types.
295
296 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
297
298 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
299 reinitialized.
300
301 2009-04-17 Robert Dewar <dewar@adacore.com>
302
303 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
304 Backwards_OK if either operand has an address clause.
305
306 2009-04-17 Pascal Obry <obry@adacore.com>
307
308 * initialize.c: Code clean up, use realloc.
309
310 2009-04-17 Pascal Obry <obry@adacore.com>
311
312 * initialize.c: Do not get Unicode command line if Unicode support not
313 activated.
314 Add support for wildcard expansion for Unicode parameters on Win32.
315
316 * mingw32.h: Add missing macros when Unicode support not activated.
317
318 2009-04-17 Javier Miranda <miranda@adacore.com>
319
320 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
321 avoid generating code that references the Current_Master
322 when compiling without tasks.
323
324 2009-04-17 Vincent Celier <celier@adacore.com>
325
326 * prj-attr.adb: New project level attribute Target
327
328 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
329 attribute Target
330
331 * prj.ads (Project_Configuration): New component Target
332
333 2009-04-17 Thomas Quinot <quinot@adacore.com>
334
335 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
336 case for the case of an aggregate component, the attach call for the
337 result is actually needed.
338
339 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
340 an array aggregate must be disabled if the component type requires
341 controlled actions.
342
343 * exp_ch3.adb: Minor reformatting
344
345 2009-04-17 Bob Duff <duff@adacore.com>
346
347 * output.ads (Indent,Outdent): New procedures for indenting the output.
348 (Write_Char): Correct comment -- LF _is_ allowed.
349
350 * output.adb (Indent,Outdent): New procedures for indenting the output.
351 Keep track of the indentation level, and make sure it doesn't get too
352 high.
353 (Flush_Buffer): Insert spaces at the beginning of each line, if
354 indentation level is nonzero.
355 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
356 indentation level.
357 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
358 "Next_Col := 1;". Flush_Buffer does that.
359
360 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
361 controlled by the -gnatdc switch. It now occurs on entry/exit to the
362 relevant analysis routines, and calls Indent/Outdent to make the
363 indentation reflect the nesting level. Add "helper" routines, since
364 otherwise lots of "return;" statements would skip the debugging output.
365
366 2009-04-17 Arnaud Charlet <charlet@adacore.com>
367
368 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
369 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
370 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
371
372 2009-04-17 Thomas Quinot <quinot@adacore.com>
373
374 * exp_aggr.adb: Minor code reorganization, no behaviour change.
375
376 2009-04-17 Ed Schonberg <schonberg@adacore.com>
377
378 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
379 clause in a unit that is a package body or a subunit, when the previous
380 clause appears in a spec or a parent.
381
382 2009-04-17 Thomas Quinot <quinot@adacore.com>
383
384 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
385
386 * exp_ch7.adb: Minor reformatting
387
388 2009-04-17 Bob Duff <duff@adacore.com>
389
390 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
391 allocator, check that the expression of the qualified expression obeys
392 the constraints of the subtype of the qualified expression.
393
394 2009-04-17 Thomas Quinot <quinot@adacore.com>
395
396 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
397
398 2009-04-17 Ed Schonberg <schonberg@adacore.com>
399
400 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
401 aggregate, using context imposed by subtype mark in allocator.
402
403 2009-04-17 Pascal Obry <obry@adacore.com>
404
405 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
406
407 2009-04-17 Nicolas Roche <roche@adacore.com>
408
409 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
410 argument length.
411
412 2009-04-17 Gary Dismukes <dismukes@adacore.com>
413
414 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
415 cover both calls and attribute references ("call" => "reference").
416
417 2009-04-17 Ed Schonberg <schonberg@adacore.com>
418
419 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
420 type for which Storage_Size is set to 0 is legal in a pure unit.
421
422 2009-04-17 Thomas Quinot <quinot@adacore.com>
423
424 * exp_ch7.adb: Minor reformatting
425
426 2009-04-17 Robert Dewar <dewar@adacore.com>
427
428 * restrict.adb (Check_Restriction_No_Dependence): Don't check
429 restriction if outside main extended source unit.
430
431 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
432 for parents of child units as well as the child unit itself.
433
434 2009-04-17 Bob Duff <duff@adacore.com>
435
436 * checks.ads: Minor comment fix
437
438 * exp_aggr.ads: Minor comment fix
439
440 2009-04-17 Nicolas Roche <roche@adacore.com>
441
442 * adaint.c: Improve cross compiler detection and handling.
443
444 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
445
446 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
447
448 2009-04-17 Pascal Obry <obry@adacore.com>
449
450 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
451 CurrentCodePage.
452
453 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
454 value when no encoding form paramter is set on Text_IO services.
455
456 * adaint.c: CurrentCodePage new variable on Windows.
457 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
458 ones.
459
460 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
461 ones.
462
463 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
464 environment variable value. Default is UTF-8.
465
466 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
467 fopen and freopen encoding parameter is now set to Unspecified.
468 The default value is in this case UTF-8 (as it was before) but
469 use the new macros that convert to/from the code page set
470 at runtime (CurrentCodePage).
471
472 * s-fileio.adb: When no encoding specified use Unspecified value.
473
474 2009-04-17 Ed Schonberg <schonberg@adacore.com>
475
476 * atree.adb, atree.ads: Remove dead code.
477
478 2009-04-17 Arnaud Charlet <charlet@adacore.com>
479
480 * gcc-interface/Make-lang.in: Update dependencies.
481
482 2009-04-17 Ed Schonberg <schonberg@adacore.com>
483
484 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
485 illegal uses of incomplete types in formal parts and return types.
486
487 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
488 access to subprograms.
489
490 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
491 Taft-amendment types as the return type of an access_to_function type.
492
493 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
494 type for access_to_subprograms. The check is performed on package exit.
495
496 2009-04-17 Ed Schonberg <schonberg@adacore.com>
497
498 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
499
500 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
501
502 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
503
504 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
505 semantic units, because the handling of itypes in the copied tree
506 requires semantic information that does not belong in atree.
507
508 2009-04-17 Robert Dewar <dewar@adacore.com>
509
510 * par-ch6.adb: Minor reformatting
511
512 * prj.adb: Minor reformatting
513
514 2009-04-17 Gary Dismukes <dismukes@adacore.com>
515
516 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
517 on protected subprogram bodies, so exclude the case where Pf_Flags is
518 Pf_Decl_Pbod from the error check.
519
520 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
521 indicators on subprograms in protected bodies, and proceed with parsing
522 the subprogram.
523
524 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
525 subprograms from the check for primitiveness on subprograms with
526 overriding indicators.
527 (Check_Overriding_Indicator): Include protected subprograms in the
528 style check for missing overriding indicators.
529
530 2009-04-17 Tristan Gingold <gingold@adacore.com>
531
532 * init.c: Fix stack checking for x86 Darwin.
533
534 2009-04-17 Vincent Celier <celier@adacore.com>
535
536 * prj-attr.adb: New project level attribute Object_File_Suffix
537 (<language>).
538
539 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
540 object file name
541 (Process_Compiler): Process attribute Object_File_Suffix
542
543 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
544 platform suffix, when specified.
545
546 * prj.ads (Language_Config): New component Object_File_Suffix,
547 defaulted to No_Name.
548 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
549
550 * snames.ads-tmpl: New standard name Object_File_Suffix
551
552 2009-04-17 Robert Dewar <dewar@adacore.com>
553
554 * gnat_rm.texi: Add documentation about No_Streams restriction
555
556 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
557 attributes when checking No_Streams restriction.
558
559 2009-04-17 Thomas Quinot <quinot@adacore.com>
560
561 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
562
563 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
564 missing calls to RE_Request_Destroy to deallocate request objects after
565 use.
566
567 2009-04-17 Nicolas Setton <setton@adacore.com>
568
569 * link.c: Fix support for passing a response file under Darwin.
570
571 2009-04-17 Emmanuel Briot <briot@adacore.com>
572
573 * prj.adb (Free): new subprogram.
574
575 2009-04-17 Ed Schonberg <schonberg@adacore.com>
576
577 * sem_ch3.adb: additional initialization on incomplete subtypes.
578
579 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
580 part and one of the formals is an incomplete tagged type, attach to
581 list of private dependends of the type for later validation.
582
583 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
584 primitive operations of a Taft-amendmment type.
585
586 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
587 type. The check is performed on package exit, possibly after the
588 subprogram is frozen.
589
590 2009-04-17 Vincent Celier <celier@adacore.com>
591
592 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
593 before looking for source directories, but make sure that there are nil
594 if they are not explicitely declared and there is explicitely no
595 sources in the project.
596
597 2009-04-17 Pascal Obry <obry@adacore.com>
598
599 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
600
601 * init.c: Fix minor typo and style fix.
602
603 2009-04-17 Robert Dewar <dewar@adacore.com>
604
605 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
606
607 * sem_attr.adb (Analyze_Attribute, case Address): Use
608 PE_Address_Of_Intrinsic.
609
610 * types.ads: Add PE_Address_Of_Intrinsic
611
612 * types.h: Add PE_Address_Of_Intrinsic
613
614 2009-04-17 Nicolas Setton <setton@adacore.com>
615
616 * gcc-interface/Makefile.in: Under darwin, build shared libraries
617 with install_name starting with "@rpath/".
618
619 2009-04-17 Nicolas Setton <setton@adacore.com>
620
621 * link.c: Add darwin section
622
623 2009-04-16 Robert Dewar <dewar@adacore.com>
624
625 * g-pehage.adb: Minor reformatting
626
627 * sem_ch12.adb: Minor reformatting
628
629 * exp_dist.adb: Minor reformatting
630
631 * bindgen.adb: Minor style fixes.
632
633 2009-04-16 Ed Schonberg <schonberg@adacore.com>
634
635 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
636 indexed components to the case where the prefix is a static string
637 literal.
638
639 2009-04-16 Javier Miranda <miranda@adacore.com>
640
641 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
642 objects avoid any further expansion of the expression initializing the
643 object.
644
645 2009-04-16 Ed Schonberg <schonberg@adacore.com>
646
647 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
648 that hides an outer homograph, make that homograph invisible when
649 analyzing the actuals, to to prevent illegal direct visibility on it.
650
651 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
652
653 * g-pehage.adb (Initialize): Fix off-by-one error.
654
655 2009-04-16 Tristan Gingold <gingold@adacore.com>
656
657 * init.c: Detect real stack overflow on Darwin.
658
659 * system-darwin-x86.ads: Use stack probing on darwin x86.
660
661 2009-04-16 Ed Schonberg <schonberg@adacore.com>
662
663 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
664 take the address of an intrinsic subprogram.
665
666 2009-04-16 Arnaud Charlet <charlet@adacore.com>
667
668 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
669 for the targets where GNAT.Traceback.Symbolic is not supported.
670
671 2009-04-16 Vincent Celier <celier@adacore.com>
672
673 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
674
675 * g-trasym.ads: Update comments.
676
677 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
678
679 * tracebak.c (STOP_FRAME): Verify validity of the current address
680 before dereferencing.
681
682 2009-04-16 Ed Schonberg <schonberg@adacore.com>
683
684 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
685 the original location of the index expressions and the index subtypes,
686 to prevent spurious out-of-scope references in gigi.
687
688 2009-04-16 Tristan Gingold <gingold@adacore.com>
689
690 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
691 Add support for stack checking on darwin.
692
693 2009-04-16 Vincent Celier <celier@adacore.com>
694
695 * prj-attr.adb: New attribute Runtime_Source_Dir
696
697 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
698 attribute Runtime_Source_Dir.
699 (Check_Naming_Schemes): Give default values to out parameters to avoid
700 invalid data.
701
702 * prj.ads (Language_Config): New component Runtime_Source_Dir
703
704 * snames.ads-tmpl: New standard name Runtime_Source_Dir
705
706 2009-04-16 Pascal Obry <obry@adacore.com>
707
708 * adaint.h, adaint.c (__gnat_rmdir): New routine.
709 Simple wrapper routines used to convert to proper encoding on
710 Windows.
711
712 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
713
714 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
715 twice.
716
717 2009-04-16 Pascal Obry <obry@adacore.com>
718
719 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
720
721 2009-04-16 Thomas Quinot <quinot@adacore.com>
722
723 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
724 integrated preprocessor.
725
726 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
727 (Initialize): Split into two subprograms, Initialize (to be called
728 prior to compiler command line processing) and Setup_Hooks (to be called
729 later on when the first source file is loaded).
730
731 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
732 Add call to Prep.Initialize.
733
734 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
735 to Prep.Setup_Hooks.
736
737 2009-04-16 Pascal Obry <obry@adacore.com>
738
739 * adaint.h, adaint.c (__gnat_chdir): New routine.
740 Simple wrapper routines used to convert to proper encoding on
741 Windows.
742
743 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
744
745 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
746
747 2009-04-16 Quentin Ochem <ochem@adacore.com>
748
749 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
750 of Source.Init.
751
752 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
753
754 * a-convec.ads (Is_Empty): Mark inline.
755
756 2009-04-16 Nicolas Roche <roche@adacore.com>
757
758 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
759
760 2009-04-16 Thomas Quinot <quinot@adacore.com>
761
762 * prepcomp.adb: Minor reformatting
763
764 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
765
766 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
767 Access_Subprogram types can also be imported.
768 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
769 names.
770
771 2009-04-16 Ed Schonberg <schonberg@adacore.com>
772
773 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
774 preserve homonym chain when the declaration is rewritten into a
775 renaming declaration, in order to preserve visibility structure.
776
777 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
778
779 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
780 taken into account for VM targets.
781
782 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
783
784 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
785 Year_Week_In_Year.
786 (Year_Week_In_Year): New routine which contains the original code from
787 Week_In_Year. Add the missing special case for January 1st falling on
788 a Monday.
789
790 2009-04-16 Thomas Quinot <quinot@adacore.com>
791
792 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
793 actual type, use the base type to build the To_Any function.
794 (Build_From_Any_Function): Remove junk, useless subtype conversion.
795
796 2009-04-16 Thomas Quinot <quinot@adacore.com>
797
798 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
799 restrict.adb: Minor code reorganization (use
800 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
801
802 2009-04-16 Bob Duff <duff@adacore.com>
803
804 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
805 unused.
806
807 2009-04-16 Thomas Quinot <quinot@adacore.com>
808
809 * sem_ch4.adb: Minor reformatting
810
811 * adaint.c: Remove junk duplicated code.
812
813 * sem_ch3.adb: Minor reformatting
814
815 * exp_dist.adb: Minor comment rewording
816
817 2009-04-16 Robert Dewar <dewar@adacore.com>
818
819 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
820 used together.
821
822 2009-04-16 Ed Schonberg <schonberg@adacore.com>
823
824 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
825 usable before calling Add_One_Interp, to resolve spurious ambiguities.
826
827 2009-04-16 Robert Dewar <dewar@adacore.com>
828
829 * Make-lang.in: Add entries for s-conca?.o
830
831 * Makefile.rtl: Add entries for s-conca?
832
833 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
834 of concatenation expansion
835
836 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
837 string cases instead of expanding assignments inline.
838
839 * opt.ads (Optimize_Size): New flag
840
841 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
842 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
843 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
844 s-conca9.adb, s-conca9.ads: New file.
845
846 2009-04-16 Robert Dewar <dewar@adacore.com>
847
848 * exp_ch6.adb: Add comments
849
850 * rtsfind.ads: Add entries for s-conca? routines
851
852 2009-04-16 Arnaud Charlet <charlet@adacore.com>
853
854 * gcc-interface/Make-lang.in: Update dependencies.
855
856 * gcc-interface/Makefile.in: Update translation for vms.
857
858 2009-04-16 Ed Schonberg <schonberg@adacore.com>
859
860 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
861 and made global, to be used when installing parents of a child
862 instance, to provide mappings for entities declared in formal packages
863 of ancestor units. Now called from Install_Formal_Packages.
864
865 2009-04-16 Doug Rupp <rupp@adacore.com>
866
867 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
868 notation for clarity.
869
870 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
871 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
872 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
873 (Initialize): Initialize Known_Tasks with Environment task.
874
875 * s-taskin.ads (Task_States): Move new states to end for the sake of
876 GDB compatibility.
877
878 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
879
880 2009-04-16 Ed Schonberg <schonberg@adacore.com>
881
882 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
883 operation has an inline pragma, propagate the flag to the internal
884 unprotected subprogram.
885
886 2009-04-16 Doug Rupp <rupp@adacore.com>
887
888 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
889 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
890 s-taprop-hpux-dce.adb, s-taprop-posix.adb
891 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
892
893 * s-taprop-vms.adb (Enter_Task): Likewise.
894 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
895
896 * s-tassta.adb (Activate_Tasks): After task creation set state to
897 Activating, vice Runnable. Initialize Known_Tasks, moved here from
898 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
899 Set state to Runnable after above.
900 (Task_Wrapper): Set Debug_Event_Run. In exception block set
901 Debug_Event_Terminated.
902
903 * s-taskin.ads (Task_States): Add new states Activiting and
904 Activator_Delay_Sleep.
905 (Bit_Array, Debug_Event_Array): New types.
906 (Global_Task_Debug_Event_Set: New flag.
907 (Common_ATCB): New field Debug_Events.
908
909 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
910
911 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
912 Activator_Sleep.
913
914 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
915 Activating and when Acceptor_Delay_Sleep.
916
917 * s-tasdeb.ads: Add constants for Debug_Events.
918 (Debug_Event_Kind_Type): New subtype.
919 (Signal_Debug_Event): New subprogram.
920
921 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
922
923 2009-04-16 Thomas Quinot <quinot@adacore.com>
924
925 * sem_elim.adb: Minor reformatting
926
927 * freeze.adb: Minor reformatting
928
929 * exp_ch4.adb: Minor reformatting
930
931 2009-04-16 Emmanuel Briot <briot@adacore.com>
932
933 * prj-nmsc.adb (Path_Name_Of): fix memory leak
934
935 2009-04-16 Robert Dewar <dewar@adacore.com>
936
937 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
938
939 2009-04-16 Vincent Celier <celier@adacore.com>
940
941 * fmap.adb (Initialize): Show the current line when the mapping file
942 is detected as "incorrectly formatted".
943
944 2009-04-16 Robert Dewar <dewar@adacore.com>
945
946 * sem_ch12.adb: Minor reformatting
947
948 * sem_ch5.adb: Minor comment addition
949
950 * sem_util.adb: Minor reformatting
951
952 * sinput-p.adb: Minor reformatting
953 Add missing pragma Warnings (On)
954
955 2009-04-16 Ed Falis <falis@adacore.com>
956
957 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
958
959 2009-04-16 Vincent Celier <celier@adacore.com>
960
961 * ali-util.adb: Minor comment spelling error fix
962
963 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
964
965 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
966 generate an assignment loop in case of overlap.
967
968 2009-04-16 Olivier Hainque <hainque@adacore.com>
969
970 * gnat_ugn.texi (gnatmem description): Make it explicit that
971 gnatmem is designed to work in association with static runtime
972 library only.
973
974 2009-04-16 Thomas Quinot <quinot@adacore.com>
975
976 * sem_type.adb: Minor reformatting
977
978 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
979
980 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
981 concerning return codes of gettimeofday and return value check.
982
983 2009-04-16 Ed Falis <falis@adacore.com>
984
985 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
986 body can be renaming of imported routines.
987
988 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
989
990 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
991 targeted fashion.
992
993 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
994
995 * exp_ch9.adb: Comment improvements.
996 (Build_Entry_Family_Name): Add parentheses around the index of a entry
997 family member.
998
999 2009-04-15 Bob Duff <duff@adacore.com>
1000
1001 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
1002 "while X /= null loop" where X is unchanged inside the loop. We were
1003 not warning in this case, because of the pointers -- we feared that the
1004 loop variable could be updated via a pointer, if there are any pointers
1005 around the place. But that is impossible in this case.
1006
1007 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
1008 the case of dereferences. In X.all, X cannot be an l-value. We now
1009 catch that case (and implicit dereferences, too).
1010
1011 2009-04-15 Vincent Celier <celier@adacore.com>
1012
1013 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
1014
1015 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1016
1017 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
1018 From code reading.
1019 (Analyze_Package_Instantiation): If generic unit in child instance is
1020 the same as generic unit in parent instance, look for an outer homonym
1021 to locate the desired generic.
1022
1023 2009-04-15 Bob Duff <duff@adacore.com>
1024
1025 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
1026 warnings unless the loop comes from source, because checking generated
1027 loops is a waste of time, and makes it harder to debug
1028 Check_Infinite_Loop_Warning.
1029
1030 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
1031 tested in the while loop is a renaming, do not warn. Otherwise, we get
1032 false alarms, because it's usually renaming something that we can't
1033 deal with (an indexed component, a global variable, ...).
1034
1035 * gnat_rm.texi: Fix typo
1036
1037 2009-04-15 Thomas Quinot <quinot@adacore.com>
1038
1039 * sem_ch6.adb: Minor reformatting
1040
1041 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1042
1043 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
1044 immediate parent of the controlled function call is a component
1045 association.
1046
1047 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1048
1049 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
1050 corresponding class-wide type is also in use.
1051
1052 2009-04-15 Thomas Quinot <quinot@adacore.com>
1053
1054 * frontend.adb: Minor comment fix
1055
1056 2009-04-15 Robert Dewar <dewar@adacore.com>
1057
1058 * gnatchop.adb (BOM_Length): New global variable
1059 (Write_Unit): Add new parameter Write_BOM
1060 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
1061 to Write_Unit
1062
1063 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
1064
1065 2009-04-15 Geert Bosch <bosch@adacore.com>
1066
1067 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
1068 (Backend_Overflow_Checks): Set to True.
1069
1070 2009-04-15 Gary Dismukes <dismukes@adacore.com>
1071
1072 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
1073 keyword is given in a record extension.
1074
1075 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1076
1077 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
1078 of a controlled function call in the context of a record aggregate.
1079 This does not apply to array aggregates since the call will be expanded
1080 into assignments.
1081
1082 2009-04-15 Ed Falis <falis@adacore.com>
1083
1084 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
1085 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
1086 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
1087 s-osinte-vxworks* and s-vxwext*.
1088
1089 2009-04-15 Arnaud Charlet <charlet@adacore.com>
1090
1091 * gcc-interface/Make-lang.in: Update dependencies.
1092
1093 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
1094 and s-vxwext*.
1095
1096 2009-04-15 Robert Dewar <dewar@adacore.com>
1097
1098 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
1099 of node for location for warning messages.
1100
1101 * gnatchop.adb: Minor reformatting
1102
1103 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1104
1105 * exp_ch6.adb: additional guard for renaming declarations for in
1106 parameters of an array type.
1107
1108 2009-04-15 Robert Dewar <dewar@adacore.com>
1109
1110 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
1111 in case they were rewritten by expander (Force_Evaluation).
1112
1113 * targparm.adb (Get_Target_Parameters): Correct check for
1114 Suppress_Exception_Locations.
1115
1116 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1117
1118 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
1119 inlined is of an array type that is not bit-packed, use a renaming
1120 declaration to capture its value, rather than a constant declaration.
1121
1122 2009-04-15 Robert Dewar <dewar@adacore.com>
1123
1124 * rtsfind.adb: Minor reformatting.
1125
1126 2009-04-15 Emmanuel Briot <briot@adacore.com>
1127
1128 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
1129 Restore, and free the saved context.
1130
1131 2009-04-15 Gary Dismukes <dismukes@adacore.com>
1132
1133 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
1134 for illegal private extension from a synchronized interface parent in
1135 front of check for illegal limited extension so that limited extension
1136 from a synchronized interface will be rejected.
1137 (Check_Ifaces): Check that a private extension that has a synchronized
1138 interface as a progenitor must be explicitly declared synchronized.
1139 Also check that a record extension cannot derive from a synchronized
1140 interface.
1141
1142 2009-04-15 Pascal Obry <obry@adacore.com>
1143
1144 * adaint.h (__gnat_unlink): Add spec.
1145 (__gnat_rename): Likewise.
1146
1147 2009-04-15 Vincent Celier <celier@adacore.com>
1148
1149 * prj-nmsc.adb: Minor spelling error corrections in error messages
1150
1151 2009-04-15 Robert Dewar <dewar@adacore.com>
1152
1153 * sinfo.ads: Minor comment update
1154
1155 * opt.ads: Minor comment updates
1156
1157 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
1158 modular type.
1159
1160 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1161
1162 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
1163 that generates the code needed to update a dispatch table when a
1164 primitive operation is declared with a subprogram body without previous
1165 spec. Insertion of the generated code is responsibility of the caller.
1166 (Make_DT): When building static tables, append the code created by
1167 Register_Primitive to update a secondary table after it has been
1168 constructed.
1169
1170 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
1171
1172 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
1173 on an overriding operation that implements an interface operation only
1174 if not building static dispatch tables.
1175
1176 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1177
1178 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
1179 does not cause overflow when converted to Duration. Use the safe value
1180 as the maximum allowable time delay..
1181
1182 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
1183
1184 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
1185 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
1186 translated to "-j 2".
1187
1188 2009-04-15 Bob Duff <duff@adacore.com>
1189
1190 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
1191 with_clauses, to avoid code duplication. Change this processing so we
1192 always add a with_clause on the main unit if needed.
1193
1194 2009-04-15 Pascal Obry <obry@adacore.com>
1195
1196 Add support for Win32 native encoding for delete/rename routines.
1197
1198 * adaint.c (__gnat_unlink): New routine.
1199 (__gnat_rename): New routine.
1200 Simple wrapper routines used to convert to proper encoding on
1201 Windows.
1202
1203 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
1204 call to the C library.
1205
1206 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
1207
1208 2009-04-15 Robert Dewar <dewar@adacore.com>
1209
1210 * s-tassta.adb: Minor reformatting
1211
1212 2009-04-15 Robert Dewar <dewar@adacore.com>
1213
1214 * frontend.adb (Frontend): Set proper default for
1215 Warn_On_Non_Local_Exception.
1216
1217 * opt.ads (Exception_Handler_Encountered): New flag
1218 (No_Warn_On_Non_Local_Exception): New flag
1219
1220 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
1221
1222 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
1223 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
1224
1225 2009-04-15 Cyrille Comar <comar@adacore.com>
1226
1227 * s-tassta.adb, a-exextr.adb, a-elchha.adb
1228 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
1229 message when exception traces are active since it would generate
1230 redundant information.
1231 (Exception_Traces.Notify_Exception): put message output by a critical
1232 section to avoid unsynchronized output.
1233 (Trace_Unhandled_Exception_In_Task): put message output by a critical
1234 section to avoid unsynchronized output.
1235
1236 2009-04-15 Emmanuel Briot <briot@adacore.com>
1237
1238 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
1239 (Free): New subprogram.
1240
1241 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1242
1243 * a-calend.adb: Add new constant Nanos_In_Four_Years.
1244 (Formatting_Operations.Time_Of): Change the way four year chunks of
1245 nanoseconds are added to the intermediate result.
1246
1247 2009-04-15 Nicolas Setton <setton@adacore.com>
1248
1249 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
1250 does not need to wait for a carriage return.
1251
1252 2009-04-15 Tristan Gingold <gingold@adacore.com>
1253
1254 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
1255 is set.
1256
1257 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1258
1259 * freeze.adb (Freeze_Entity): improve error message for improper use of
1260 incomplete types.
1261 Diagnose additional illegal uses of incomplete types in formal parts.
1262 appearing in formal parts.
1263
1264 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
1265
1266 2009-04-15 Robert Dewar <dewar@adacore.com>
1267
1268 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
1269
1270 2009-04-15 Nicolas Roche <roche@adacore.com>
1271
1272 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
1273 current thread.
1274
1275 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
1276
1277 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
1278
1279 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1280
1281 * sem_ch4.adb: improve error message on exponentiation.
1282
1283 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1284
1285 * a-calend.adb: Move constant Epoch_Offset from package
1286 Conversion_Operations to top level.
1287 (Delay_Operations.To_Duration): Define a constant which represents
1288 "end of time" and use it as a guard against very distant delay dates.
1289 Protect the code against overflow when performing the origin shift to
1290 Unix time.
1291
1292 2009-04-15 Robert Dewar <dewar@adacore.com>
1293
1294 * sem_prag.adb: Minor reformatting.
1295
1296 * sem_type.adb: Minor reformatting
1297
1298 2009-04-15 Javier Miranda <miranda@adacore.com>
1299
1300 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
1301 support to check eliminated subprograms.
1302
1303 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
1304
1305 * sem_elim.adb (Set_Eliminated): Add support for elimination of
1306 dispatching subprograms.
1307
1308 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
1309 operations. Initialize with "null" the slots of eliminated dispaching
1310 primitives.
1311 (Write_DT): Add output for eliminated primitives.
1312
1313 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
1314
1315 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1316
1317 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
1318 the second is redundant, regardless of scopes.
1319
1320 2009-04-15 Vincent Celier <celier@adacore.com>
1321
1322 * prj-nmsc.adb (Get_Directories): Check for sources before checking
1323 the object directory as when there are no sources, they may not be any
1324 object directory.
1325
1326 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
1327 directory, when there are no exec directory.
1328
1329 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1330
1331 * sem_type.adb (Remove_Conversions): In order to resolve spurious
1332 ambiguities, refine removal of universal interpretations from complex
1333 expressions with literal arguments, when some numeric operators have
1334 been declared abstract.
1335
1336 2009-04-15 Ed Falis <falis@adacore.com>
1337
1338 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
1339 and backward compatibility for targets using probing for stack overflow
1340
1341 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1342
1343 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
1344 after any declaration, including renaming declarations.
1345
1346 2009-04-15 Arnaud Charlet <charlet@adacore.com>
1347
1348 * gcc-interface/Make-lang.in: Update dependencies.
1349
1350 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
1351 Update xenomai target pairs.
1352
1353 2009-04-15 Javier Miranda <miranda@adacore.com>
1354
1355 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
1356
1357 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
1358 functions returning anonymous access to class-wide limited types. Mark
1359 also the containing scope as a task master.
1360
1361 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
1362 limited-withed packages. Required to restore their visibility after
1363 processing packages associated with implicit with-clauses.
1364
1365 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
1366 associated with return statements because this work is now done by
1367 Check_Anonymous_Return.
1368 (Build_Master): Code cleanup.
1369
1370 2009-04-15 Thomas Quinot <quinot@adacore.com>
1371
1372 * sem_warn.ads: Minor reformatting
1373
1374 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1375
1376 * sem_ch3.adb: better error message for illegal interfaces
1377
1378 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
1379 formal is an incomplete type from a limited_with clause.
1380
1381 2009-04-15 Vincent Celier <celier@adacore.com>
1382
1383 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
1384 Externally_Built indicating if the project is externally built. If it
1385 is, and --subdirs is specified, but the subdir does not exist, look
1386 for the specified directory, without the subdir.
1387
1388 2009-04-15 Gary Dismukes <dismukes@adacore.com>
1389
1390 * a-tasatt.adb: Fix typo, plus minor reformatting
1391
1392 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
1393
1394 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
1395
1396 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1397
1398 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
1399 private extension whose parent is a synchronized interface carries an
1400 explicit synchronized keyword.
1401
1402 2009-04-15 Thomas Quinot <quinot@adacore.com>
1403
1404 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
1405 instantiate generic shared object package with the corresponding
1406 record type.
1407
1408 2009-04-15 Arnaud Charlet <charlet@adacore.com>
1409
1410 * system-linux-sparc.ads: Remove obsolete entries.
1411
1412 2009-04-15 Thomas Quinot <quinot@adacore.com>
1413
1414 * s-tasuti.ads: Add ??? comment
1415
1416 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1417
1418 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
1419 type even if the designated type comes from a limited_with clause, to
1420 ensure that the symbol for the finalization list of the access type is
1421 created.
1422
1423 2009-04-10 Robert Dewar <dewar@adacore.com>
1424
1425 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
1426 for warning suppression.
1427
1428 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1429
1430 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
1431 identical, there is no redudancy to check.
1432
1433 2009-04-10 Gary Dismukes <dismukes@adacore.com>
1434
1435 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
1436 calls initializing SS_Allocator (which is initialized in following
1437 code).
1438 (Expand_Simple_Function_Return): Add comment about False value for
1439 Comes_From_Source on secondary-stack allocator.
1440
1441 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
1442 (Build_Entry_Name): Add comment.
1443
1444 2009-04-10 Robert Dewar <dewar@adacore.com>
1445
1446 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
1447
1448 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
1449 bound tested, since this is now done more generally in Sem_Res.
1450
1451 * sem_res.adb (Resolve_Comparison_Op): Add call to
1452 Check_Lower_Bound_Tested.
1453 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
1454
1455 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
1456 (Low_Bound_Tested): New name for Low_Bound_Known flag
1457
1458 * exp_ch5.adb: Minor reformatting
1459
1460 * exp_ch4.adb:
1461 Add comments on copying the Comes_From_Source flag for allocators
1462
1463 * sinfo.ads:
1464 Add comments on copying the Comes_From_Source flag for allocators
1465
1466 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
1467 Comes_From_Source flag from old allocator to new one.
1468
1469 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1470
1471 * sem_ch6.ads: Address missing documentation query
1472
1473 2009-04-10 Vincent Celier <celier@adacore.com>
1474
1475 * prj-attr.adb:
1476 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
1477 and Response_File_Switches.
1478
1479 * prj-nmsc.adb (Process_Linker): Process new attributes
1480 Max_Command_Line_Length, Response_File_Format and
1481 Response_File_Switches.
1482
1483 * prj.ads (Response_File_Format): New enumeration type
1484 (Project_Configuration): New componants Max_Command_Line_Length,
1485 Resp_File_Format and Resp_File_Options.
1486
1487 * snames.ads-tmpl: Add new standard names for linking response files
1488 for gprbuild: GNU, None, Object_List, Option_List,
1489 Max_Command_Line_Length, Response_File_Format and
1490 Response_File_Switches.
1491
1492 2009-04-10 Geert Bosch <bosch@adacore.com>
1493
1494 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
1495 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
1496 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
1497 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
1498 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
1499 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
1500 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
1501 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
1502 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
1503 system-vxworks-arm.ads, system-vxworks-m68k.ads,
1504 system-vxworks-mips.ads, system-vxworks-ppc.ads,
1505 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
1506 (Backend_Overflow_Checks): Set to True.
1507
1508 2009-04-10 Thomas Quinot <quinot@adacore.com>
1509
1510 * exp_attr.adb: Minor reformatting
1511
1512 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1513
1514 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
1515 analyze the expression for a postcondition, even if the compiler mode
1516 is Generate_Code.
1517
1518 2009-04-10 Robert Dewar <dewar@adacore.com>
1519
1520 * sem_aux.adb: Minor reformatting
1521
1522 2009-04-10 Ed Falis <falis@adacore.com>
1523
1524 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
1525
1526 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
1527
1528 2009-04-10 Thomas Quinot <quinot@adacore.com>
1529
1530 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
1531 undocumented formal.
1532 Minor reformatting
1533
1534 * a-direio.ads: Fix typo in comment
1535
1536 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
1537 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
1538 Use uniform phrasing for comment at start of subprogram body.
1539
1540 * xsnamest.adb: Add note to explain why we use specific names for the
1541 newly generated files instead of generating snames.{ads,adb,h} directly
1542
1543 2009-04-10 Sergey Rybin <rybin@adacore.com>
1544
1545 * vms_data.ads:
1546 Add qualifier for new gnatstub option '--no-exception'
1547
1548 * gnat_ugn.texi:
1549 Add the description of the new gnatstub option '--no-exception'
1550
1551 2009-04-10 Robert Dewar <dewar@adacore.com>
1552
1553 * rtsfind.adb: Minor reformatting
1554
1555 2009-04-10 Thomas Quinot <quinot@adacore.com>
1556
1557 * sem_disp.adb: Minor reformatting.
1558 Add comment pointing to RM clause for the case of warning against a
1559 (failed) attempt at declaring a primitive operation elsewhere than in a
1560 package spec.
1561
1562 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1563
1564 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
1565 an actual for a previous formal package of the current instance.
1566
1567 2009-04-10 Bob Duff <duff@adacore.com>
1568
1569 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
1570 them first, rather than on the extended main unit.
1571
1572 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1573
1574 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
1575 specification of full view carries a null exclusion indicator, create
1576 an itype for it, to check for conformance with partial view.
1577
1578 2009-04-10 Bob Duff <duff@adacore.com>
1579
1580 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
1581
1582 * rtsfind.adb: Minor comment changes, and remove useless code.
1583
1584 * sinfo.ads: Add ??? comment.
1585
1586 2009-04-10 Vincent Celier <celier@adacore.com>
1587
1588 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
1589
1590 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1591
1592 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
1593 type is a synchronized type, retrieve tag information from the
1594 corresponding record, which has the dispatch table link.
1595
1596 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
1597
1598 * g-comlin.adb (Group_Analysis): Take care of switches that might be
1599 decomposed afterwards, but are present as-is in the command line
1600 configuration, and thus should be kept as-is.
1601
1602 2009-04-10 Robert Dewar <dewar@adacore.com>
1603
1604 * gnat_rm.texi: Document that postconditions are tested on implicit
1605 returns.
1606
1607 * sem_aux.adb: Minor reformatting
1608
1609 2009-04-10 Gary Dismukes <dismukes@adacore.com>
1610
1611 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
1612 setting Etype.
1613
1614 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
1615 Null_Exclusion_In_Return_Present when an access-to-function type has a
1616 result type with an explicit not null.
1617
1618 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
1619 given on the result type, then create a null-excluding itype for the
1620 function.
1621
1622 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
1623 the case where a null exclusion is imposed on a named access type.
1624 (Analyze_Subprogram_Specification): Push and pop the scope of the
1625 function around the call to Analyze_Return_Type in the case of no
1626 formals, for consistency with handling when formals are present
1627 (Process_Formals does this). Ensures that any itype created for the
1628 return type will be associated with the proper scope.
1629
1630 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
1631 exclusion is given on a generic function's result type, then create a
1632 null-excluding itype for the generic function.
1633 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
1634 for an actual for a formal in object according to the setting on the
1635 formal. Ensures null exclusion checks are done when the association is
1636 elaborated.
1637
1638 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
1639 N_Access_Function_Definition.
1640
1641 * sinfo.adb: Add Get_ and Set_ operations for
1642 Null_Exclusion_In_Return_Present.
1643
1644 2009-04-10 Bob Duff <duff@adacore.com>
1645
1646 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
1647 call to the _Postconditions procedure in the case of implicit returns
1648 from analysis to expansion. This eliminates some duplicated code. Use
1649 the Postcondition_Proc to find the identity of this procedure during
1650 expansion.
1651
1652 2009-04-10 Robert Dewar <dewar@adacore.com>
1653
1654 * sem_ch6.adb: Minor code clean up.
1655
1656 * einfo.ads, sem_attr.adb: Minor comment fixes.
1657
1658 2009-04-10 Robert Dewar <dewar@adacore.com>
1659
1660 * sem_ch8.adb: Minor reformatting
1661
1662 2009-04-10 Robert Dewar <dewar@adacore.com>
1663
1664 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
1665 procedures.
1666
1667 * sem_ch6.adb: Minor code clean up.
1668
1669 2009-04-10 Robert Dewar <dewar@adacore.com>
1670
1671 * mlib-tgt-specific-xi.adb: Minor reformatting
1672
1673 2009-04-10 Bob Duff <duff@adacore.com>
1674
1675 * einfo.ads: Minor comment fixes
1676
1677 2009-04-10 Vincent Celier <celier@adacore.com>
1678
1679 * snames.ads-tmpl: Remove names that are no longer used in the
1680 Project Manager.
1681 Mark specifically those that are used only in gprbuild
1682
1683 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
1684
1685 * init.c: Adjust EH support code on Alpha/Tru64.
1686
1687 2009-04-10 Bob Duff <duff@adacore.com>
1688
1689 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
1690 procedure on every path that could return implicitly (not via a return
1691 statement) from a procedure.
1692
1693 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1694
1695 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
1696 valid scope for a task declarations and therefore for a master id.
1697
1698 2009-04-10 Robert Dewar <dewar@adacore.com>
1699
1700 * sem_aux.adb: Minor reformatting
1701
1702 2009-04-10 Vincent Celier <celier@adacore.com>
1703
1704 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
1705 True.
1706 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
1707 (Set_Obsolescent_Check): New procedure to change the value of
1708 Obsolescent_Check_Flag.
1709
1710 * scn.ads (Set_Obsolescent_Check): New procedure to control
1711 Obsolescent_Check.
1712
1713 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
1714 obsolescent features while preprocessing.
1715
1716 2009-04-10 Thomas Quinot <quinot@adacore.com>
1717
1718 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
1719 generated files on all platforms.
1720
1721 2009-04-10 Robert Dewar <dewar@adacore.com>
1722
1723 * sem_aux.adb: Minor reformatting
1724
1725 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1726
1727 * sem_ch3.adb (Access_Definition): Handle properly the case of a
1728 protected function with formals that returns an anonymous access type.
1729
1730 2009-04-10 Thomas Quinot <quinot@adacore.com>
1731
1732 * sem_disp.adb: Minor reformatting
1733
1734 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
1735
1736 * seh_init.c: Do not use the 32-bit specific implementation of
1737 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
1738 version TBD).
1739
1740 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1741
1742 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
1743 a '/' at the end so we better use the complete target name to determine
1744 whether it is a PowerPC 55xx target.
1745
1746 2009-04-10 Thomas Quinot <quinot@adacore.com>
1747
1748 * sem_eval.adb: Minor reformatting
1749
1750 2009-04-10 Thomas Quinot <quinot@adacore.com>
1751
1752 * snames.h, snames.ads, snames.adb: Remove files, now generated from
1753 templates.
1754
1755 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
1756 above.
1757
1758 * xsnamest.adb: New file.
1759
1760 * gcc-interface/Make-lang.in: New target for automated generation of
1761 snames.ads, snames.adb and snames.h
1762
1763 2009-04-10 Tristan Gingold <gingold@adacore.com>
1764
1765 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
1766 avoid compile time warnings.
1767 Do not add gcc/config in include search list while compiling the RTS.
1768 Pragma Thread_Local_Storage is available on any target.
1769
1770 2009-04-10 Bob Duff <duff@adacore.com>
1771
1772 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
1773
1774 2009-04-10 Tristan Gingold <gingold@adacore.com>
1775
1776 * init.c: Install signal handler on Darwin.
1777
1778 2009-04-10 Robert Dewar <dewar@adacore.com>
1779
1780 * sem_prag.adb: Minor reformatting
1781
1782 * exp_util.adb (Make_Non_Empty_Check): New function
1783 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
1784 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
1785
1786 2009-04-10 Arnaud Charlet <charlet@adacore.com>
1787
1788 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
1789
1790 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1791
1792 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
1793 tool prefix for AVR and PowerPC 55xx targets.
1794
1795 2009-04-10 Robert Dewar <dewar@adacore.com>
1796
1797 * sem_warn.adb (Within_Postcondition): New function
1798 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
1799
1800 2009-04-10 Robert Dewar <dewar@adacore.com>
1801
1802 * sem_warn.adb: Minor reformatting
1803
1804 * make.adb: Minor reformatting.
1805
1806 2009-04-10 Gary Dismukes <dismukes@adacore.com>
1807
1808 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
1809 entity and the scope is a subprogram, retrieve the Sloc of the
1810 subprogram's body rather than using the sloc of the spec, for better
1811 line-stepping behavior in gdb.
1812 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
1813 controller, use the Sloc of the first declaration of the containing list
1814 rather than that of the node that triggered creation of the list
1815 controller.
1816
1817 2009-04-10 Vincent Celier <celier@adacore.com>
1818
1819 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
1820 to avoid gcc warning.
1821
1822 2009-04-10 Robert Dewar <dewar@adacore.com>
1823
1824 * g-comlin.adb: Add ??? comment
1825
1826 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1827
1828 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
1829 unreferenced entities for a package with no visible declarations.
1830
1831 2009-04-10 Robert Dewar <dewar@adacore.com>
1832
1833 * exp_ch9.adb: Minor reformatting
1834
1835 2009-04-10 Thomas Quinot <quinot@adacore.com>
1836
1837 * sem_prag.adb: Minor reformatting
1838
1839 2009-04-10 Vincent Celier <celier@adacore.com>
1840
1841 * prj-nmsc.adb:
1842 (Check_Library_Attributes): For a project qualified as a library project
1843 that is not a library project, indicate in the error message which
1844 attributes are missing (Library_Dir and/or Library_Name).
1845
1846 2009-04-10 Bob Duff <duff@adacore.com>
1847
1848 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
1849 generated nodes, because it might confuse various circuits in the FE.
1850
1851 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1852
1853 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
1854 of pragma. It will be recopied and analyzed when used in call to
1855 Create_Task.
1856
1857 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
1858 initialization operations and recognize use of it in procedure calls
1859 within init_procs.
1860
1861 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
1862 argument, because it may have side-effects.
1863
1864 * exp_ch2.adb: Remove obsolete comments on default functions
1865
1866 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1867
1868 * adaint.c (RTX section): Do for RTX the same thing as we do for
1869 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
1870
1871 2009-04-10 Robert Dewar <dewar@adacore.com>
1872
1873 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
1874
1875 * sem_res.adb (Resolve_Call): Fix test for
1876 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
1877 a non-dynamic scope).
1878
1879 2009-04-10 Robert Dewar <dewar@adacore.com>
1880
1881 * make.adb: Add comment.
1882 Minor reformatting
1883
1884 2009-04-10 Nicolas Setton <setton@adacore.com>
1885
1886 * s-osprim-darwin.adb: New file.
1887
1888 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
1889
1890 2009-04-10 Thomas Quinot <quinot@adacore.com>
1891
1892 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
1893
1894 2009-04-09 Nick Clifton <nickc@redhat.com>
1895
1896 * adadecode.h: Change copyright header to refer to version
1897 3 of the GNU General Public License with version 3.1 of the
1898 GCC Runtime Library Exception and to point readers at the
1899 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
1900 page.
1901 * 9drpc.adb: Likewise.
1902 * a-assert.adb: Likewise.
1903 * a-astaco.adb: Likewise.
1904 * a-calari.adb: Likewise.
1905 * a-calcon.adb: Likewise.
1906 * a-calcon.ads: Likewise.
1907 * a-caldel.ads: Likewise.
1908 * a-calend-vms.adb: Likewise.
1909 * a-calend-vms.ads: Likewise.
1910 * a-calend.adb: Likewise.
1911 * a-calend.ads: Likewise.
1912 * a-calfor.adb: Likewise.
1913 * a-catizo.adb: Likewise.
1914 * a-cdlili.adb: Likewise.
1915 * a-cdlili.ads: Likewise.
1916 * a-cgaaso.adb: Likewise.
1917 * a-cgaaso.ads: Likewise.
1918 * a-cgarso.adb: Likewise.
1919 * a-cgcaso.adb: Likewise.
1920 * a-chacon.adb: Likewise.
1921 * a-chacon.ads: Likewise.
1922 * a-chahan.adb: Likewise.
1923 * a-chahan.ads: Likewise.
1924 * a-chlat9.ads: Likewise.
1925 * a-chtgke.adb: Likewise.
1926 * a-chtgke.ads: Likewise.
1927 * a-chtgop.adb: Likewise.
1928 * a-chtgop.ads: Likewise.
1929 * a-chzla1.ads: Likewise.
1930 * a-chzla9.ads: Likewise.
1931 * a-cidlli.adb: Likewise.
1932 * a-cidlli.ads: Likewise.
1933 * a-cihama.adb: Likewise.
1934 * a-cihama.ads: Likewise.
1935 * a-cihase.adb: Likewise.
1936 * a-cihase.ads: Likewise.
1937 * a-ciorma.adb: Likewise.
1938 * a-ciorma.ads: Likewise.
1939 * a-ciormu.adb: Likewise.
1940 * a-ciormu.ads: Likewise.
1941 * a-ciorse.adb: Likewise.
1942 * a-ciorse.ads: Likewise.
1943 * a-clrefi.adb: Likewise.
1944 * a-clrefi.ads: Likewise.
1945 * a-cohama.adb: Likewise.
1946 * a-cohama.ads: Likewise.
1947 * a-cohase.adb: Likewise.
1948 * a-cohase.ads: Likewise.
1949 * a-cohata.ads: Likewise.
1950 * a-coinve.adb: Likewise.
1951 * a-coinve.ads: Likewise.
1952 * a-colien.adb: Likewise.
1953 * a-colien.ads: Likewise.
1954 * a-colire.adb: Likewise.
1955 * a-colire.ads: Likewise.
1956 * a-comlin.adb: Likewise.
1957 * a-comlin.ads: Likewise.
1958 * a-convec.adb: Likewise.
1959 * a-convec.ads: Likewise.
1960 * a-coorma.adb: Likewise.
1961 * a-coorma.ads: Likewise.
1962 * a-coormu.adb: Likewise.
1963 * a-coormu.ads: Likewise.
1964 * a-coorse.adb: Likewise.
1965 * a-coorse.ads: Likewise.
1966 * a-coprnu.adb: Likewise.
1967 * a-coprnu.ads: Likewise.
1968 * a-crbltr.ads: Likewise.
1969 * a-crbtgk.adb: Likewise.
1970 * a-crbtgk.ads: Likewise.
1971 * a-crbtgo.adb: Likewise.
1972 * a-crbtgo.ads: Likewise.
1973 * a-crdlli.adb: Likewise.
1974 * a-crdlli.ads: Likewise.
1975 * a-cwila1.ads: Likewise.
1976 * a-cwila9.ads: Likewise.
1977 * a-decima.adb: Likewise.
1978 * a-decima.ads: Likewise.
1979 * a-diocst.adb: Likewise.
1980 * a-diocst.ads: Likewise.
1981 * a-direct.adb: Likewise.
1982 * a-direct.ads: Likewise.
1983 * a-direio.adb: Likewise.
1984 * a-direio.ads: Likewise.
1985 * a-dirval-mingw.adb: Likewise.
1986 * a-dirval-vms.adb: Likewise.
1987 * a-dirval.adb: Likewise.
1988 * a-dirval.ads: Likewise.
1989 * a-dynpri.adb: Likewise.
1990 * a-einuoc.adb: Likewise.
1991 * a-einuoc.ads: Likewise.
1992 * a-elchha.adb: Likewise.
1993 * a-elchha.ads: Likewise.
1994 * a-envvar.adb: Likewise.
1995 * a-excach.adb: Likewise.
1996 * a-except-2005.adb: Likewise.
1997 * a-except-2005.ads: Likewise.
1998 * a-except.adb: Likewise.
1999 * a-except.ads: Likewise.
2000 * a-excpol-abort.adb: Likewise.
2001 * a-excpol.adb: Likewise.
2002 * a-exctra.adb: Likewise.
2003 * a-exctra.ads: Likewise.
2004 * a-exetim-mingw.adb: Likewise.
2005 * a-exetim-mingw.ads: Likewise.
2006 * a-exexda.adb: Likewise.
2007 * a-exexpr-gcc.adb: Likewise.
2008 * a-exexpr.adb: Likewise.
2009 * a-exextr.adb: Likewise.
2010 * a-exstat.adb: Likewise.
2011 * a-filico.adb: Likewise.
2012 * a-filico.ads: Likewise.
2013 * a-finali.adb: Likewise.
2014 * a-finali.ads: Likewise.
2015 * a-interr.ads: Likewise.
2016 * a-intnam-aix.ads: Likewise.
2017 * a-intnam-darwin.ads: Likewise.
2018 * a-intnam-dummy.ads: Likewise.
2019 * a-intnam-freebsd.ads: Likewise.
2020 * a-intnam-hpux.ads: Likewise.
2021 * a-intnam-irix.ads: Likewise.
2022 * a-intnam-linux.ads: Likewise.
2023 * a-intnam-lynxos.ads: Likewise.
2024 * a-intnam-mingw.ads: Likewise.
2025 * a-intnam-rtems.ads: Likewise.
2026 * a-intnam-solaris.ads: Likewise.
2027 * a-intnam-tru64.ads: Likewise.
2028 * a-intnam-vms.ads: Likewise.
2029 * a-intnam-vxworks.ads: Likewise.
2030 * a-intsig.adb: Likewise.
2031 * a-intsig.ads: Likewise.
2032 * a-ngcefu.adb: Likewise.
2033 * a-ngcoar.adb: Likewise.
2034 * a-ngcoty.adb: Likewise.
2035 * a-ngcoty.ads: Likewise.
2036 * a-ngelfu.adb: Likewise.
2037 * a-ngrear.adb: Likewise.
2038 * a-ngrear.ads: Likewise.
2039 * a-nudira.adb: Likewise.
2040 * a-nudira.ads: Likewise.
2041 * a-nuflra.adb: Likewise.
2042 * a-nuflra.ads: Likewise.
2043 * a-numaux-darwin.adb: Likewise.
2044 * a-numaux-darwin.ads: Likewise.
2045 * a-numaux-libc-x86.ads: Likewise.
2046 * a-numaux-vxworks.ads: Likewise.
2047 * a-numaux-x86.adb: Likewise.
2048 * a-numaux-x86.ads: Likewise.
2049 * a-numaux.ads: Likewise.
2050 * a-rbtgso.adb: Likewise.
2051 * a-rbtgso.ads: Likewise.
2052 * a-reatim.ads: Likewise.
2053 * a-retide.adb: Likewise.
2054 * a-retide.ads: Likewise.
2055 * a-rttiev.adb: Likewise.
2056 * a-rttiev.ads: Likewise.
2057 * a-secain.adb: Likewise.
2058 * a-secain.ads: Likewise.
2059 * a-sequio.adb: Likewise.
2060 * a-sequio.ads: Likewise.
2061 * a-shcain.adb: Likewise.
2062 * a-shcain.ads: Likewise.
2063 * a-siocst.adb: Likewise.
2064 * a-siocst.ads: Likewise.
2065 * a-slcain.adb: Likewise.
2066 * a-slcain.ads: Likewise.
2067 * a-ssicst.adb: Likewise.
2068 * a-ssicst.ads: Likewise.
2069 * a-stboha.adb: Likewise.
2070 * a-stmaco.ads: Likewise.
2071 * a-storio.adb: Likewise.
2072 * a-strbou.adb: Likewise.
2073 * a-strbou.ads: Likewise.
2074 * a-stream.ads: Likewise.
2075 * a-strfix.adb: Likewise.
2076 * a-strhas.adb: Likewise.
2077 * a-strmap.adb: Likewise.
2078 * a-strmap.ads: Likewise.
2079 * a-strsea.adb: Likewise.
2080 * a-strsea.ads: Likewise.
2081 * a-strsup.adb: Likewise.
2082 * a-strsup.ads: Likewise.
2083 * a-strunb.adb: Likewise.
2084 * a-strunb.ads: Likewise.
2085 * a-ststio.adb: Likewise.
2086 * a-ststio.ads: Likewise.
2087 * a-stunau.adb: Likewise.
2088 * a-stunau.ads: Likewise.
2089 * a-stunha.adb: Likewise.
2090 * a-stwibo.adb: Likewise.
2091 * a-stwibo.ads: Likewise.
2092 * a-stwifi.adb: Likewise.
2093 * a-stwiha.adb: Likewise.
2094 * a-stwima.adb: Likewise.
2095 * a-stwima.ads: Likewise.
2096 * a-stwise.adb: Likewise.
2097 * a-stwise.ads: Likewise.
2098 * a-stwisu.adb: Likewise.
2099 * a-stwisu.ads: Likewise.
2100 * a-stwiun.adb: Likewise.
2101 * a-stwiun.ads: Likewise.
2102 * a-stzbou.adb: Likewise.
2103 * a-stzbou.ads: Likewise.
2104 * a-stzfix.adb: Likewise.
2105 * a-stzhas.adb: Likewise.
2106 * a-stzmap.adb: Likewise.
2107 * a-stzmap.ads: Likewise.
2108 * a-stzsea.adb: Likewise.
2109 * a-stzsea.ads: Likewise.
2110 * a-stzsup.adb: Likewise.
2111 * a-stzsup.ads: Likewise.
2112 * a-stzunb.adb: Likewise.
2113 * a-stzunb.ads: Likewise.
2114 * a-suteio.adb: Likewise.
2115 * a-suteio.ads: Likewise.
2116 * a-swbwha.adb: Likewise.
2117 * a-swmwco.ads: Likewise.
2118 * a-swunau.adb: Likewise.
2119 * a-swunau.ads: Likewise.
2120 * a-swuwha.adb: Likewise.
2121 * a-swuwti.adb: Likewise.
2122 * a-swuwti.ads: Likewise.
2123 * a-sytaco.adb: Likewise.
2124 * a-sytaco.ads: Likewise.
2125 * a-szbzha.adb: Likewise.
2126 * a-szmzco.ads: Likewise.
2127 * a-szunau.adb: Likewise.
2128 * a-szunau.ads: Likewise.
2129 * a-szuzha.adb: Likewise.
2130 * a-szuzti.adb: Likewise.
2131 * a-szuzti.ads: Likewise.
2132 * a-tags.adb: Likewise.
2133 * a-tags.ads: Likewise.
2134 * a-tasatt.ads: Likewise.
2135 * a-taside.adb: Likewise.
2136 * a-taside.ads: Likewise.
2137 * a-taster.adb: Likewise.
2138 * a-teioed.adb: Likewise.
2139 * a-teioed.ads: Likewise.
2140 * a-textio.adb: Likewise.
2141 * a-textio.ads: Likewise.
2142 * a-tiboio.adb: Likewise.
2143 * a-ticoau.adb: Likewise.
2144 * a-ticoau.ads: Likewise.
2145 * a-ticoio.adb: Likewise.
2146 * a-ticoio.ads: Likewise.
2147 * a-tideau.adb: Likewise.
2148 * a-tideau.ads: Likewise.
2149 * a-tideio.adb: Likewise.
2150 * a-tideio.ads: Likewise.
2151 * a-tienau.adb: Likewise.
2152 * a-tienau.ads: Likewise.
2153 * a-tienio.adb: Likewise.
2154 * a-tienio.ads: Likewise.
2155 * a-tifiio.adb: Likewise.
2156 * a-tifiio.ads: Likewise.
2157 * a-tiflau.adb: Likewise.
2158 * a-tiflau.ads: Likewise.
2159 * a-tiflio.adb: Likewise.
2160 * a-tiflio.ads: Likewise.
2161 * a-tigeau.adb: Likewise.
2162 * a-tigeau.ads: Likewise.
2163 * a-tiinau.adb: Likewise.
2164 * a-tiinau.ads: Likewise.
2165 * a-tiinio.adb: Likewise.
2166 * a-tiinio.ads: Likewise.
2167 * a-timoau.adb: Likewise.
2168 * a-timoau.ads: Likewise.
2169 * a-timoio.adb: Likewise.
2170 * a-timoio.ads: Likewise.
2171 * a-tiocst.adb: Likewise.
2172 * a-tiocst.ads: Likewise.
2173 * a-titest.adb: Likewise.
2174 * a-wichun.adb: Likewise.
2175 * a-wichun.ads: Likewise.
2176 * a-witeio.adb: Likewise.
2177 * a-witeio.ads: Likewise.
2178 * a-wtcoau.adb: Likewise.
2179 * a-wtcoau.ads: Likewise.
2180 * a-wtcoio.adb: Likewise.
2181 * a-wtcstr.adb: Likewise.
2182 * a-wtcstr.ads: Likewise.
2183 * a-wtdeau.adb: Likewise.
2184 * a-wtdeau.ads: Likewise.
2185 * a-wtdeio.adb: Likewise.
2186 * a-wtdeio.ads: Likewise.
2187 * a-wtedit.adb: Likewise.
2188 * a-wtedit.ads: Likewise.
2189 * a-wtenau.adb: Likewise.
2190 * a-wtenau.ads: Likewise.
2191 * a-wtenio.adb: Likewise.
2192 * a-wtenio.ads: Likewise.
2193 * a-wtfiio.adb: Likewise.
2194 * a-wtfiio.ads: Likewise.
2195 * a-wtflau.adb: Likewise.
2196 * a-wtflau.ads: Likewise.
2197 * a-wtflio.adb: Likewise.
2198 * a-wtflio.ads: Likewise.
2199 * a-wtgeau.adb: Likewise.
2200 * a-wtgeau.ads: Likewise.
2201 * a-wtinau.adb: Likewise.
2202 * a-wtinau.ads: Likewise.
2203 * a-wtinio.adb: Likewise.
2204 * a-wtmoau.adb: Likewise.
2205 * a-wtmoau.ads: Likewise.
2206 * a-wtmoio.adb: Likewise.
2207 * a-wtmoio.ads: Likewise.
2208 * a-wttest.adb: Likewise.
2209 * a-wwboio.adb: Likewise.
2210 * a-zchuni.adb: Likewise.
2211 * a-zchuni.ads: Likewise.
2212 * a-ztcoau.adb: Likewise.
2213 * a-ztcoau.ads: Likewise.
2214 * a-ztcoio.adb: Likewise.
2215 * a-ztcstr.adb: Likewise.
2216 * a-ztcstr.ads: Likewise.
2217 * a-ztdeau.adb: Likewise.
2218 * a-ztdeau.ads: Likewise.
2219 * a-ztdeio.adb: Likewise.
2220 * a-ztdeio.ads: Likewise.
2221 * a-ztedit.adb: Likewise.
2222 * a-ztedit.ads: Likewise.
2223 * a-ztenau.adb: Likewise.
2224 * a-ztenau.ads: Likewise.
2225 * a-ztenio.adb: Likewise.
2226 * a-ztenio.ads: Likewise.
2227 * a-ztexio.adb: Likewise.
2228 * a-ztexio.ads: Likewise.
2229 * a-ztfiio.adb: Likewise.
2230 * a-ztfiio.ads: Likewise.
2231 * a-ztflau.adb: Likewise.
2232 * a-ztflau.ads: Likewise.
2233 * a-ztflio.adb: Likewise.
2234 * a-ztflio.ads: Likewise.
2235 * a-ztgeau.adb: Likewise.
2236 * a-ztgeau.ads: Likewise.
2237 * a-ztinau.adb: Likewise.
2238 * a-ztinau.ads: Likewise.
2239 * a-ztinio.adb: Likewise.
2240 * a-ztmoau.adb: Likewise.
2241 * a-ztmoau.ads: Likewise.
2242 * a-ztmoio.adb: Likewise.
2243 * a-ztmoio.ads: Likewise.
2244 * a-zttest.adb: Likewise.
2245 * a-zzboio.adb: Likewise.
2246 * adadecode.c: Likewise.
2247 * adaint.c: Likewise.
2248 * adaint.h: Likewise.
2249 * alloc.ads: Likewise.
2250 * argv.c: Likewise.
2251 * arit64.c: Likewise.
2252 * atree.adb: Likewise.
2253 * atree.ads: Likewise.
2254 * aux-io.c: Likewise.
2255 * cal.c: Likewise.
2256 * casing.adb: Likewise.
2257 * casing.ads: Likewise.
2258 * cio.c: Likewise.
2259 * csets.adb: Likewise.
2260 * csets.ads: Likewise.
2261 * cstreams.c: Likewise.
2262 * ctrl_c.c: Likewise.
2263 * debug.adb: Likewise.
2264 * debug.ads: Likewise.
2265 * dec.ads: Likewise.
2266 * einfo.adb: Likewise.
2267 * einfo.ads: Likewise.
2268 * elists.adb: Likewise.
2269 * elists.ads: Likewise.
2270 * env.c: Likewise.
2271 * env.h: Likewise.
2272 * errno.c: Likewise.
2273 * exit.c: Likewise.
2274 * fe.h: Likewise.
2275 * final.c: Likewise.
2276 * fname.adb: Likewise.
2277 * fname.ads: Likewise.
2278 * g-allein.ads: Likewise.
2279 * g-alleve.adb: Likewise.
2280 * g-alleve.ads: Likewise.
2281 * g-altcon.adb: Likewise.
2282 * g-altcon.ads: Likewise.
2283 * g-altive.ads: Likewise.
2284 * g-alveop.adb: Likewise.
2285 * g-alveop.ads: Likewise.
2286 * g-alvety.ads: Likewise.
2287 * g-alvevi.ads: Likewise.
2288 * g-arrspl.adb: Likewise.
2289 * g-arrspl.ads: Likewise.
2290 * g-calend.ads: Likewise.
2291 * g-comlin.adb: Likewise.
2292 * g-debpoo.adb: Likewise.
2293 * g-debpoo.ads: Likewise.
2294 * g-eacodu-vms.adb: Likewise.
2295 * g-eacodu.adb: Likewise.
2296 * g-excact.adb: Likewise.
2297 * g-excact.ads: Likewise.
2298 * g-locfil.adb: Likewise.
2299 * g-os_lib.ads: Likewise.
2300 * g-rannum.adb: Likewise.
2301 * g-rannum.ads: Likewise.
2302 * g-regist.adb: Likewise.
2303 * g-regist.ads: Likewise.
2304 * g-signal.adb: Likewise.
2305 * g-signal.ads: Likewise.
2306 * g-soccon.ads: Likewise.
2307 * g-string.adb: Likewise.
2308 * g-string.ads: Likewise.
2309 * g-strspl.ads: Likewise.
2310 * g-timsta.adb: Likewise.
2311 * g-timsta.ads: Likewise.
2312 * g-trasym-vms-alpha.adb: Likewise.
2313 * g-trasym-vms-ia64.adb: Likewise.
2314 * g-utf_32.adb: Likewise.
2315 * g-utf_32.ads: Likewise.
2316 * g-wistsp.ads: Likewise.
2317 * g-zstspl.ads: Likewise.
2318 * gmem.c: Likewise.
2319 * gnatvsn.adb: Likewise.
2320 * gnatvsn.ads: Likewise.
2321 * gsocket.h: Likewise.
2322 * hostparm.ads: Likewise.
2323 * i-c.adb: Likewise.
2324 * i-cexten.ads: Likewise.
2325 * i-cobol.adb: Likewise.
2326 * i-cobol.ads: Likewise.
2327 * i-cpoint.adb: Likewise.
2328 * i-cpoint.ads: Likewise.
2329 * i-cpp.adb: Likewise.
2330 * i-cpp.ads: Likewise.
2331 * i-cstrea-vms.adb: Likewise.
2332 * i-cstrea.adb: Likewise.
2333 * i-cstrea.ads: Likewise.
2334 * i-cstrin.adb: Likewise.
2335 * i-cstrin.ads: Likewise.
2336 * i-forbla-darwin.adb: Likewise.
2337 * i-forbla-unimplemented.ads: Likewise.
2338 * i-forbla.adb: Likewise.
2339 * i-forbla.ads: Likewise.
2340 * i-forlap.ads: Likewise.
2341 * i-fortra.adb: Likewise.
2342 * i-pacdec.adb: Likewise.
2343 * i-pacdec.ads: Likewise.
2344 * i-vxwoio.adb: Likewise.
2345 * i-vxwoio.ads: Likewise.
2346 * indepsw-aix.adb: Likewise.
2347 * indepsw-gnu.adb: Likewise.
2348 * indepsw-mingw.adb: Likewise.
2349 * indepsw.adb: Likewise.
2350 * indepsw.ads: Likewise.
2351 * init.c: Likewise.
2352 * initialize.c: Likewise.
2353 * interfac.ads: Likewise.
2354 * krunch.adb: Likewise.
2355 * krunch.ads: Likewise.
2356 * lib-list.adb: Likewise.
2357 * lib-sort.adb: Likewise.
2358 * lib.adb: Likewise.
2359 * lib.ads: Likewise.
2360 * link.c: Likewise.
2361 * math_lib.adb: Likewise.
2362 * memtrack.adb: Likewise.
2363 * mingw32.h: Likewise.
2364 * mkdir.c: Likewise.
2365 * namet-sp.adb: Likewise.
2366 * namet-sp.ads: Likewise.
2367 * namet.adb: Likewise.
2368 * namet.ads: Likewise.
2369 * nlists.adb: Likewise.
2370 * nlists.ads: Likewise.
2371 * opt.adb: Likewise.
2372 * opt.ads: Likewise.
2373 * output.adb: Likewise.
2374 * output.ads: Likewise.
2375 * raise-gcc.c: Likewise.
2376 * raise.c: Likewise.
2377 * raise.h: Likewise.
2378 * repinfo.adb: Likewise.
2379 * repinfo.ads: Likewise.
2380 * repinfo.h: Likewise.
2381 * rident.ads: Likewise.
2382 * s-addima.adb: Likewise.
2383 * s-addima.ads: Likewise.
2384 * s-addope.adb: Likewise.
2385 * s-addope.ads: Likewise.
2386 * s-arit64.adb: Likewise.
2387 * s-arit64.ads: Likewise.
2388 * s-assert.adb: Likewise.
2389 * s-assert.ads: Likewise.
2390 * s-asthan-vms-alpha.adb: Likewise.
2391 * s-asthan.adb: Likewise.
2392 * s-asthan.ads: Likewise.
2393 * s-atacco.adb: Likewise.
2394 * s-atacco.ads: Likewise.
2395 * s-auxdec-empty.adb: Likewise.
2396 * s-auxdec-empty.ads: Likewise.
2397 * s-auxdec-vms_64.ads: Likewise.
2398 * s-auxdec.adb: Likewise.
2399 * s-auxdec.ads: Likewise.
2400 * s-bitops.adb: Likewise.
2401 * s-bitops.ads: Likewise.
2402 * s-boarop.ads: Likewise.
2403 * s-carsi8.adb: Likewise.
2404 * s-carsi8.ads: Likewise.
2405 * s-carun8.adb: Likewise.
2406 * s-carun8.ads: Likewise.
2407 * s-casi16.adb: Likewise.
2408 * s-casi16.ads: Likewise.
2409 * s-casi32.adb: Likewise.
2410 * s-casi32.ads: Likewise.
2411 * s-casi64.adb: Likewise.
2412 * s-casi64.ads: Likewise.
2413 * s-casuti.ads: Likewise.
2414 * s-caun16.adb: Likewise.
2415 * s-caun16.ads: Likewise.
2416 * s-caun32.adb: Likewise.
2417 * s-caun32.ads: Likewise.
2418 * s-caun64.adb: Likewise.
2419 * s-caun64.ads: Likewise.
2420 * s-chepoo.ads: Likewise.
2421 * s-crc32.adb: Likewise.
2422 * s-crc32.ads: Likewise.
2423 * s-crtl.ads: Likewise.
2424 * s-direio.adb: Likewise.
2425 * s-direio.ads: Likewise.
2426 * s-dsaser.ads: Likewise.
2427 * s-except.adb: Likewise.
2428 * s-except.ads: Likewise.
2429 * s-exctab.adb: Likewise.
2430 * s-exctab.ads: Likewise.
2431 * s-exnint.adb: Likewise.
2432 * s-exnint.ads: Likewise.
2433 * s-exnllf.adb: Likewise.
2434 * s-exnllf.ads: Likewise.
2435 * s-exnlli.adb: Likewise.
2436 * s-exnlli.ads: Likewise.
2437 * s-expint.adb: Likewise.
2438 * s-expint.ads: Likewise.
2439 * s-explli.adb: Likewise.
2440 * s-explli.ads: Likewise.
2441 * s-expllu.adb: Likewise.
2442 * s-expllu.ads: Likewise.
2443 * s-expmod.adb: Likewise.
2444 * s-expmod.ads: Likewise.
2445 * s-expuns.adb: Likewise.
2446 * s-expuns.ads: Likewise.
2447 * s-fatflt.ads: Likewise.
2448 * s-fatgen.adb: Likewise.
2449 * s-fatgen.ads: Likewise.
2450 * s-fatlfl.ads: Likewise.
2451 * s-fatllf.ads: Likewise.
2452 * s-fatsfl.ads: Likewise.
2453 * s-ficobl.ads: Likewise.
2454 * s-fileio.adb: Likewise.
2455 * s-fileio.ads: Likewise.
2456 * s-filofl.ads: Likewise.
2457 * s-finimp.adb: Likewise.
2458 * s-finimp.ads: Likewise.
2459 * s-finroo.adb: Likewise.
2460 * s-finroo.ads: Likewise.
2461 * s-fishfl.ads: Likewise.
2462 * s-fore.adb: Likewise.
2463 * s-fore.ads: Likewise.
2464 * s-fvadfl.ads: Likewise.
2465 * s-fvaffl.ads: Likewise.
2466 * s-fvagfl.ads: Likewise.
2467 * s-gearop.adb: Likewise.
2468 * s-gearop.ads: Likewise.
2469 * s-gecobl.adb: Likewise.
2470 * s-gecobl.ads: Likewise.
2471 * s-gecola.adb: Likewise.
2472 * s-gecola.ads: Likewise.
2473 * s-gerebl.adb: Likewise.
2474 * s-gerebl.ads: Likewise.
2475 * s-gerela.adb: Likewise.
2476 * s-gerela.ads: Likewise.
2477 * s-geveop.adb: Likewise.
2478 * s-geveop.ads: Likewise.
2479 * s-gloloc.adb: Likewise.
2480 * s-gloloc.ads: Likewise.
2481 * s-hibaen.ads: Likewise.
2482 * s-imenne.adb: Likewise.
2483 * s-imenne.ads: Likewise.
2484 * s-imgbiu.adb: Likewise.
2485 * s-imgbiu.ads: Likewise.
2486 * s-imgboo.adb: Likewise.
2487 * s-imgboo.ads: Likewise.
2488 * s-imgcha.adb: Likewise.
2489 * s-imgcha.ads: Likewise.
2490 * s-imgdec.adb: Likewise.
2491 * s-imgdec.ads: Likewise.
2492 * s-imgenu.adb: Likewise.
2493 * s-imgenu.ads: Likewise.
2494 * s-imgint.adb: Likewise.
2495 * s-imgint.ads: Likewise.
2496 * s-imgllb.adb: Likewise.
2497 * s-imgllb.ads: Likewise.
2498 * s-imglld.adb: Likewise.
2499 * s-imglld.ads: Likewise.
2500 * s-imglli.adb: Likewise.
2501 * s-imglli.ads: Likewise.
2502 * s-imgllu.adb: Likewise.
2503 * s-imgllu.ads: Likewise.
2504 * s-imgllw.adb: Likewise.
2505 * s-imgllw.ads: Likewise.
2506 * s-imgrea.adb: Likewise.
2507 * s-imgrea.ads: Likewise.
2508 * s-imguns.adb: Likewise.
2509 * s-imguns.ads: Likewise.
2510 * s-imgwch.adb: Likewise.
2511 * s-imgwch.ads: Likewise.
2512 * s-imgwiu.adb: Likewise.
2513 * s-imgwiu.ads: Likewise.
2514 * s-inmaop-dummy.adb: Likewise.
2515 * s-inmaop-vms.adb: Likewise.
2516 * s-inmaop.ads: Likewise.
2517 * s-interr-hwint.adb: Likewise.
2518 * s-interr-sigaction.adb: Likewise.
2519 * s-interr-vms.adb: Likewise.
2520 * s-interr.adb: Likewise.
2521 * s-interr.ads: Likewise.
2522 * s-intman-dummy.adb: Likewise.
2523 * s-intman-mingw.adb: Likewise.
2524 * s-intman-posix.adb: Likewise.
2525 * s-intman-solaris.adb: Likewise.
2526 * s-intman-vms.adb: Likewise.
2527 * s-intman-vms.ads: Likewise.
2528 * s-intman-vxworks.adb: Likewise.
2529 * s-intman-vxworks.ads: Likewise.
2530 * s-intman.ads: Likewise.
2531 * s-io.adb: Likewise.
2532 * s-io.ads: Likewise.
2533 * s-linux-alpha.ads: Likewise.
2534 * s-linux-hppa.ads: Likewise.
2535 * s-linux.ads: Likewise.
2536 * s-maccod.ads: Likewise.
2537 * s-mantis.adb: Likewise.
2538 * s-mantis.ads: Likewise.
2539 * s-mastop-irix.adb: Likewise.
2540 * s-mastop.adb: Likewise.
2541 * s-mastop.ads: Likewise.
2542 * s-memcop.ads: Likewise.
2543 * s-memory-mingw.adb: Likewise.
2544 * s-memory.adb: Likewise.
2545 * s-memory.ads: Likewise.
2546 * s-os_lib.ads: Likewise.
2547 * s-oscons-tmplt.c: Likewise.
2548 * s-osinte-aix.adb: Likewise.
2549 * s-osinte-darwin.adb: Likewise.
2550 * s-osinte-freebsd.adb: Likewise.
2551 * s-osinte-irix.adb: Likewise.
2552 * s-osinte-lynxos-3.adb: Likewise.
2553 * s-osinte-rtems.ads: Likewise.
2554 * s-osinte-tru64.adb: Likewise.
2555 * s-osinte-vxworks-kernel.adb: Likewise.
2556 * s-osinte-vxworks.adb: Likewise.
2557 * s-osprim-mingw.adb: Likewise.
2558 * s-osprim-posix.adb: Likewise.
2559 * s-osprim-solaris.adb: Likewise.
2560 * s-osprim-unix.adb: Likewise.
2561 * s-osprim-vms.adb: Likewise.
2562 * s-osprim-vms.ads: Likewise.
2563 * s-osprim-vxworks.adb: Likewise.
2564 * s-osprim.ads: Likewise.
2565 * s-pack03.adb: Likewise.
2566 * s-pack03.ads: Likewise.
2567 * s-pack05.adb: Likewise.
2568 * s-pack05.ads: Likewise.
2569 * s-pack06.adb: Likewise.
2570 * s-pack06.ads: Likewise.
2571 * s-pack07.adb: Likewise.
2572 * s-pack07.ads: Likewise.
2573 * s-pack09.adb: Likewise.
2574 * s-pack09.ads: Likewise.
2575 * s-pack10.adb: Likewise.
2576 * s-pack10.ads: Likewise.
2577 * s-pack11.adb: Likewise.
2578 * s-pack11.ads: Likewise.
2579 * s-pack12.adb: Likewise.
2580 * s-pack12.ads: Likewise.
2581 * s-pack13.adb: Likewise.
2582 * s-pack13.ads: Likewise.
2583 * s-pack14.adb: Likewise.
2584 * s-pack14.ads: Likewise.
2585 * s-pack15.adb: Likewise.
2586 * s-pack15.ads: Likewise.
2587 * s-pack17.adb: Likewise.
2588 * s-pack17.ads: Likewise.
2589 * s-pack18.adb: Likewise.
2590 * s-pack18.ads: Likewise.
2591 * s-pack19.adb: Likewise.
2592 * s-pack19.ads: Likewise.
2593 * s-pack20.adb: Likewise.
2594 * s-pack20.ads: Likewise.
2595 * s-pack21.adb: Likewise.
2596 * s-pack21.ads: Likewise.
2597 * s-pack22.adb: Likewise.
2598 * s-pack22.ads: Likewise.
2599 * s-pack23.adb: Likewise.
2600 * s-pack23.ads: Likewise.
2601 * s-pack24.adb: Likewise.
2602 * s-pack24.ads: Likewise.
2603 * s-pack25.adb: Likewise.
2604 * s-pack25.ads: Likewise.
2605 * s-pack26.adb: Likewise.
2606 * s-pack26.ads: Likewise.
2607 * s-pack27.adb: Likewise.
2608 * s-pack27.ads: Likewise.
2609 * s-pack28.adb: Likewise.
2610 * s-pack28.ads: Likewise.
2611 * s-pack29.adb: Likewise.
2612 * s-pack29.ads: Likewise.
2613 * s-pack30.adb: Likewise.
2614 * s-pack30.ads: Likewise.
2615 * s-pack31.adb: Likewise.
2616 * s-pack31.ads: Likewise.
2617 * s-pack33.adb: Likewise.
2618 * s-pack33.ads: Likewise.
2619 * s-pack34.adb: Likewise.
2620 * s-pack34.ads: Likewise.
2621 * s-pack35.adb: Likewise.
2622 * s-pack35.ads: Likewise.
2623 * s-pack36.adb: Likewise.
2624 * s-pack36.ads: Likewise.
2625 * s-pack37.adb: Likewise.
2626 * s-pack37.ads: Likewise.
2627 * s-pack38.adb: Likewise.
2628 * s-pack38.ads: Likewise.
2629 * s-pack39.adb: Likewise.
2630 * s-pack39.ads: Likewise.
2631 * s-pack40.adb: Likewise.
2632 * s-pack40.ads: Likewise.
2633 * s-pack41.adb: Likewise.
2634 * s-pack41.ads: Likewise.
2635 * s-pack42.adb: Likewise.
2636 * s-pack42.ads: Likewise.
2637 * s-pack43.adb: Likewise.
2638 * s-pack43.ads: Likewise.
2639 * s-pack44.adb: Likewise.
2640 * s-pack44.ads: Likewise.
2641 * s-pack45.adb: Likewise.
2642 * s-pack45.ads: Likewise.
2643 * s-pack46.adb: Likewise.
2644 * s-pack46.ads: Likewise.
2645 * s-pack47.adb: Likewise.
2646 * s-pack47.ads: Likewise.
2647 * s-pack48.adb: Likewise.
2648 * s-pack48.ads: Likewise.
2649 * s-pack49.adb: Likewise.
2650 * s-pack49.ads: Likewise.
2651 * s-pack50.adb: Likewise.
2652 * s-pack50.ads: Likewise.
2653 * s-pack51.adb: Likewise.
2654 * s-pack51.ads: Likewise.
2655 * s-pack52.adb: Likewise.
2656 * s-pack52.ads: Likewise.
2657 * s-pack53.adb: Likewise.
2658 * s-pack53.ads: Likewise.
2659 * s-pack54.adb: Likewise.
2660 * s-pack54.ads: Likewise.
2661 * s-pack55.adb: Likewise.
2662 * s-pack55.ads: Likewise.
2663 * s-pack56.adb: Likewise.
2664 * s-pack56.ads: Likewise.
2665 * s-pack57.adb: Likewise.
2666 * s-pack57.ads: Likewise.
2667 * s-pack58.adb: Likewise.
2668 * s-pack58.ads: Likewise.
2669 * s-pack59.adb: Likewise.
2670 * s-pack59.ads: Likewise.
2671 * s-pack60.adb: Likewise.
2672 * s-pack60.ads: Likewise.
2673 * s-pack61.adb: Likewise.
2674 * s-pack61.ads: Likewise.
2675 * s-pack62.adb: Likewise.
2676 * s-pack62.ads: Likewise.
2677 * s-pack63.adb: Likewise.
2678 * s-pack63.ads: Likewise.
2679 * s-parame-ae653.ads: Likewise.
2680 * s-parame-hpux.ads: Likewise.
2681 * s-parame-rtems.adb: Likewise.
2682 * s-parame-vms-alpha.ads: Likewise.
2683 * s-parame-vms-ia64.ads: Likewise.
2684 * s-parame-vms-restrict.ads: Likewise.
2685 * s-parame-vxworks.adb: Likewise.
2686 * s-parame-vxworks.ads: Likewise.
2687 * s-parame.adb: Likewise.
2688 * s-parame.ads: Likewise.
2689 * s-parint.adb: Likewise.
2690 * s-parint.ads: Likewise.
2691 * s-pooglo.adb: Likewise.
2692 * s-pooglo.ads: Likewise.
2693 * s-pooloc.adb: Likewise.
2694 * s-pooloc.ads: Likewise.
2695 * s-poosiz.adb: Likewise.
2696 * s-poosiz.ads: Likewise.
2697 * s-powtab.ads: Likewise.
2698 * s-proinf-irix-athread.adb: Likewise.
2699 * s-proinf-irix-athread.ads: Likewise.
2700 * s-proinf.adb: Likewise.
2701 * s-proinf.ads: Likewise.
2702 * s-purexc.ads: Likewise.
2703 * s-rannum.adb: Likewise.
2704 * s-rannum.ads: Likewise.
2705 * s-restri.adb: Likewise.
2706 * s-restri.ads: Likewise.
2707 * s-rident.ads: Likewise.
2708 * s-rpc.adb: Likewise.
2709 * s-rpc.ads: Likewise.
2710 * s-scaval.adb: Likewise.
2711 * s-scaval.ads: Likewise.
2712 * s-secsta.adb: Likewise.
2713 * s-secsta.ads: Likewise.
2714 * s-sequio.adb: Likewise.
2715 * s-sequio.ads: Likewise.
2716 * s-shasto.adb: Likewise.
2717 * s-shasto.ads: Likewise.
2718 * s-soflin.adb: Likewise.
2719 * s-soflin.ads: Likewise.
2720 * s-solita.adb: Likewise.
2721 * s-solita.ads: Likewise.
2722 * s-sopco3.adb: Likewise.
2723 * s-sopco3.ads: Likewise.
2724 * s-sopco4.adb: Likewise.
2725 * s-sopco4.ads: Likewise.
2726 * s-sopco5.adb: Likewise.
2727 * s-sopco5.ads: Likewise.
2728 * s-stache.adb: Likewise.
2729 * s-stache.ads: Likewise.
2730 * s-stalib.adb: Likewise.
2731 * s-stalib.ads: Likewise.
2732 * s-stausa.adb: Likewise.
2733 * s-stausa.ads: Likewise.
2734 * s-stchop-limit.ads: Likewise.
2735 * s-stchop-rtems.adb: Likewise.
2736 * s-stchop-vxworks.adb: Likewise.
2737 * s-stchop.adb: Likewise.
2738 * s-stchop.ads: Likewise.
2739 * s-stoele.adb: Likewise.
2740 * s-stoele.ads: Likewise.
2741 * s-stopoo.adb: Likewise.
2742 * s-stopoo.ads: Likewise.
2743 * s-stratt.adb: Likewise.
2744 * s-stratt.ads: Likewise.
2745 * s-strcom.adb: Likewise.
2746 * s-strcom.ads: Likewise.
2747 * s-string.adb: Likewise.
2748 * s-string.ads: Likewise.
2749 * s-strops.adb: Likewise.
2750 * s-strops.ads: Likewise.
2751 * s-strxdr.adb: Likewise.
2752 * s-ststop.adb: Likewise.
2753 * s-ststop.ads: Likewise.
2754 * s-taasde.adb: Likewise.
2755 * s-taasde.ads: Likewise.
2756 * s-tadeca.adb: Likewise.
2757 * s-tadeca.ads: Likewise.
2758 * s-tadert.adb: Likewise.
2759 * s-tadert.ads: Likewise.
2760 * s-taenca.adb: Likewise.
2761 * s-taenca.ads: Likewise.
2762 * s-taprob.ads: Likewise.
2763 * s-taprop-dummy.adb: Likewise.
2764 * s-taprop-hpux-dce.adb: Likewise.
2765 * s-taprop-irix.adb: Likewise.
2766 * s-taprop-linux.adb: Likewise.
2767 * s-taprop-lynxos.adb: Likewise.
2768 * s-taprop-mingw.adb: Likewise.
2769 * s-taprop-posix.adb: Likewise.
2770 * s-taprop-solaris.adb: Likewise.
2771 * s-taprop-tru64.adb: Likewise.
2772 * s-taprop-vms.adb: Likewise.
2773 * s-taprop-vxworks.adb: Likewise.
2774 * s-taprop.ads: Likewise.
2775 * s-tarest.adb: Likewise.
2776 * s-tarest.ads: Likewise.
2777 * s-tasdeb.adb: Likewise.
2778 * s-tasdeb.ads: Likewise.
2779 * s-tasinf-irix.ads: Likewise.
2780 * s-tasinf-linux.adb: Likewise.
2781 * s-tasinf-linux.ads: Likewise.
2782 * s-tasinf-mingw.adb: Likewise.
2783 * s-tasinf-mingw.ads: Likewise.
2784 * s-tasinf-solaris.adb: Likewise.
2785 * s-tasinf-solaris.ads: Likewise.
2786 * s-tasinf-tru64.ads: Likewise.
2787 * s-tasinf.adb: Likewise.
2788 * s-tasinf.ads: Likewise.
2789 * s-tasini.adb: Likewise.
2790 * s-tasini.ads: Likewise.
2791 * s-taskin.adb: Likewise.
2792 * s-taskin.ads: Likewise.
2793 * s-taspri-dummy.ads: Likewise.
2794 * s-taspri-hpux-dce.ads: Likewise.
2795 * s-taspri-mingw.ads: Likewise.
2796 * s-taspri-solaris.ads: Likewise.
2797 * s-taspri-tru64.ads: Likewise.
2798 * s-taspri-vms.ads: Likewise.
2799 * s-taspri-vxworks.ads: Likewise.
2800 * s-tasque.adb: Likewise.
2801 * s-tasque.ads: Likewise.
2802 * s-tasren.adb: Likewise.
2803 * s-tasren.ads: Likewise.
2804 * s-tasres.ads: Likewise.
2805 * s-tassta.adb: Likewise.
2806 * s-tassta.ads: Likewise.
2807 * s-tasuti.adb: Likewise.
2808 * s-tasuti.ads: Likewise.
2809 * s-tfsetr-default.adb: Likewise.
2810 * s-tfsetr-vxworks.adb: Likewise.
2811 * s-tpinop.adb: Likewise.
2812 * s-tpinop.ads: Likewise.
2813 * s-tpoben.adb: Likewise.
2814 * s-tpoben.ads: Likewise.
2815 * s-tpobop.adb: Likewise.
2816 * s-tpobop.ads: Likewise.
2817 * s-tpopde-vms.adb: Likewise.
2818 * s-tpopde-vms.ads: Likewise.
2819 * s-tpopsp-lynxos.adb: Likewise.
2820 * s-tpopsp-posix-foreign.adb: Likewise.
2821 * s-tpopsp-posix.adb: Likewise.
2822 * s-tpopsp-solaris.adb: Likewise.
2823 * s-tpopsp-vxworks.adb: Likewise.
2824 * s-tporft.adb: Likewise.
2825 * s-tposen.adb: Likewise.
2826 * s-tposen.ads: Likewise.
2827 * s-traceb.adb: Likewise.
2828 * s-traceb.ads: Likewise.
2829 * s-traces-default.adb: Likewise.
2830 * s-traces.adb: Likewise.
2831 * s-traces.ads: Likewise.
2832 * s-traent-vms.adb: Likewise.
2833 * s-traent-vms.ads: Likewise.
2834 * s-traent.adb: Likewise.
2835 * s-traent.ads: Likewise.
2836 * s-trafor-default.adb: Likewise.
2837 * s-trafor-default.ads: Likewise.
2838 * s-tratas-default.adb: Likewise.
2839 * s-tratas.adb: Likewise.
2840 * s-tratas.ads: Likewise.
2841 * s-unstyp.ads: Likewise.
2842 * s-utf_32.adb: Likewise.
2843 * s-utf_32.ads: Likewise.
2844 * s-vaflop-vms-alpha.adb: Likewise.
2845 * s-vaflop.adb: Likewise.
2846 * s-vaflop.ads: Likewise.
2847 * s-valboo.adb: Likewise.
2848 * s-valboo.ads: Likewise.
2849 * s-valcha.adb: Likewise.
2850 * s-valcha.ads: Likewise.
2851 * s-valdec.adb: Likewise.
2852 * s-valdec.ads: Likewise.
2853 * s-valenu.adb: Likewise.
2854 * s-valenu.ads: Likewise.
2855 * s-valint.adb: Likewise.
2856 * s-valint.ads: Likewise.
2857 * s-vallld.adb: Likewise.
2858 * s-vallld.ads: Likewise.
2859 * s-vallli.adb: Likewise.
2860 * s-vallli.ads: Likewise.
2861 * s-valllu.adb: Likewise.
2862 * s-valllu.ads: Likewise.
2863 * s-valrea.adb: Likewise.
2864 * s-valrea.ads: Likewise.
2865 * s-valuns.adb: Likewise.
2866 * s-valuns.ads: Likewise.
2867 * s-valuti.adb: Likewise.
2868 * s-valuti.ads: Likewise.
2869 * s-valwch.adb: Likewise.
2870 * s-valwch.ads: Likewise.
2871 * s-veboop.adb: Likewise.
2872 * s-veboop.ads: Likewise.
2873 * s-vector.ads: Likewise.
2874 * s-vercon.adb: Likewise.
2875 * s-vercon.ads: Likewise.
2876 * s-vmexta.adb: Likewise.
2877 * s-vmexta.ads: Likewise.
2878 * s-vxwext-kernel.ads: Likewise.
2879 * s-vxwext-rtp.adb: Likewise.
2880 * s-vxwext-rtp.ads: Likewise.
2881 * s-vxwext.ads: Likewise.
2882 * s-vxwork-arm.ads: Likewise.
2883 * s-vxwork-m68k.ads: Likewise.
2884 * s-vxwork-mips.ads: Likewise.
2885 * s-vxwork-ppc.ads: Likewise.
2886 * s-vxwork-sparcv9.ads: Likewise.
2887 * s-vxwork-x86.ads: Likewise.
2888 * s-wchcnv.adb: Likewise.
2889 * s-wchcnv.ads: Likewise.
2890 * s-wchcon.adb: Likewise.
2891 * s-wchcon.ads: Likewise.
2892 * s-wchjis.adb: Likewise.
2893 * s-wchjis.ads: Likewise.
2894 * s-wchstw.adb: Likewise.
2895 * s-wchstw.ads: Likewise.
2896 * s-wchwts.adb: Likewise.
2897 * s-wchwts.ads: Likewise.
2898 * s-widboo.adb: Likewise.
2899 * s-widboo.ads: Likewise.
2900 * s-widcha.adb: Likewise.
2901 * s-widcha.ads: Likewise.
2902 * s-widenu.adb: Likewise.
2903 * s-widenu.ads: Likewise.
2904 * s-widlli.adb: Likewise.
2905 * s-widlli.ads: Likewise.
2906 * s-widllu.adb: Likewise.
2907 * s-widllu.ads: Likewise.
2908 * s-widwch.adb: Likewise.
2909 * s-widwch.ads: Likewise.
2910 * s-win32.ads: Likewise.
2911 * s-winext.ads: Likewise.
2912 * s-wwdcha.adb: Likewise.
2913 * s-wwdcha.ads: Likewise.
2914 * s-wwdenu.adb: Likewise.
2915 * s-wwdenu.ads: Likewise.
2916 * s-wwdwch.adb: Likewise.
2917 * s-wwdwch.ads: Likewise.
2918 * scans.adb: Likewise.
2919 * scans.ads: Likewise.
2920 * seh_init.c: Likewise.
2921 * sfn_scan.adb: Likewise.
2922 * sinfo.adb: Likewise.
2923 * sinfo.ads: Likewise.
2924 * sinput.adb: Likewise.
2925 * sinput.ads: Likewise.
2926 * snames.adb: Likewise.
2927 * snames.ads: Likewise.
2928 * socket.c: Likewise.
2929 * stand.adb: Likewise.
2930 * stand.ads: Likewise.
2931 * stringt.adb: Likewise.
2932 * stringt.ads: Likewise.
2933 * sysdep.c: Likewise.
2934 * system-aix.ads: Likewise.
2935 * system-darwin-ppc.ads: Likewise.
2936 * system-darwin-x86.ads: Likewise.
2937 * system-darwin-x86_64.ads: Likewise.
2938 * system-freebsd-x86.ads: Likewise.
2939 * system-hpux-ia64.ads: Likewise.
2940 * system-hpux.ads: Likewise.
2941 * system-irix-n32.ads: Likewise.
2942 * system-irix-n64.ads: Likewise.
2943 * system-irix-o32.ads: Likewise.
2944 * system-linux-alpha.ads: Likewise.
2945 * system-linux-hppa.ads: Likewise.
2946 * system-linux-ia64.ads: Likewise.
2947 * system-linux-mips.ads: Likewise.
2948 * system-linux-mipsel.ads: Likewise.
2949 * system-linux-ppc.ads: Likewise.
2950 * system-linux-ppc64.ads: Likewise.
2951 * system-linux-s390.ads: Likewise.
2952 * system-linux-s390x.ads: Likewise.
2953 * system-linux-sh4.ads: Likewise.
2954 * system-linux-sparc.ads: Likewise.
2955 * system-linux-sparcv9.ads: Likewise.
2956 * system-linux-x86.ads: Likewise.
2957 * system-linux-x86_64.ads: Likewise.
2958 * system-lynxos-ppc.ads: Likewise.
2959 * system-lynxos-x86.ads: Likewise.
2960 * system-mingw-x86_64.ads: Likewise.
2961 * system-mingw.ads: Likewise.
2962 * system-rtems.ads: Likewise.
2963 * system-solaris-sparc.ads: Likewise.
2964 * system-solaris-sparcv9.ads: Likewise.
2965 * system-solaris-x86.ads: Likewise.
2966 * system-solaris-x86_64.ads: Likewise.
2967 * system-tru64.ads: Likewise.
2968 * system-vms-ia64.ads: Likewise.
2969 * system-vms-zcx.ads: Likewise.
2970 * system-vms.ads: Likewise.
2971 * system-vms_64.ads: Likewise.
2972 * system-vxworks-arm.ads: Likewise.
2973 * system-vxworks-m68k.ads: Likewise.
2974 * system-vxworks-mips.ads: Likewise.
2975 * system-vxworks-ppc.ads: Likewise.
2976 * system-vxworks-sparcv9.ads: Likewise.
2977 * system-vxworks-x86.ads: Likewise.
2978 * system.ads: Likewise.
2979 * table.adb: Likewise.
2980 * table.ads: Likewise.
2981 * targext.c: Likewise.
2982 * targparm.ads: Likewise.
2983 * tree_in.adb: Likewise.
2984 * tree_in.ads: Likewise.
2985 * tree_io.adb: Likewise.
2986 * tree_io.ads: Likewise.
2987 * types.adb: Likewise.
2988 * types.ads: Likewise.
2989 * uintp.adb: Likewise.
2990 * uintp.ads: Likewise.
2991 * uname.adb: Likewise.
2992 * uname.ads: Likewise.
2993 * urealp.adb: Likewise.
2994 * urealp.ads: Likewise.
2995 * vx_stack_info.c: Likewise.
2996 * widechar.adb: Likewise.
2997 * widechar.ads: Likewise.
2998 * exp_attr.adb: Change copyright header to refer to version
2999 3 of the GNU General Public License and to point readers at the
3000 COPYING3 file and the FSF's license web page.
3001 * sem.adb: Likewise.
3002 * sem_attr.ads: Likewise.
3003 * freeze.adb: Likewise.
3004 * freeze.ads: Likewise.
3005 * errout.ads: Likewise.
3006 * erroutc.adb: Likewise.
3007 * exp_ch11.ads: Likewise.
3008
3009 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3010
3011 * config-lang.in: Change copyright header to refer to version
3012 3 of the GNU General Public License and to point readers at the
3013 COPYING3 file and the FSF's license web page.
3014 * gcc-interface/trans.c: Likewise.
3015 * gnathtml.pl: Likewise.
3016 * gcc-interface/ada.h: Likewise. Remove runtime exception.
3017 * gcc-interface/gigi.h: Likewise.
3018 * gcc-interface/misc.c: Likewise.
3019 * gcc-interface/targtyps.c: Likewise.
3020
3021 2009-04-09 Nicolas Setton <setton@adacore.com>
3022
3023 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
3024
3025 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
3026 struct_timeval.
3027
3028 2009-04-09 Bob Duff <duff@adacore.com>
3029
3030 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
3031 internally-generated nodes related to select statements to avoid
3032 confusing the debugger.
3033
3034 2009-04-09 Pascal Obry <obry@adacore.com>
3035
3036 * make.adb: Ensure that all linker arguments are duplicated.
3037
3038 2009-04-09 Robert Dewar <dewar@adacore.com>
3039
3040 * sem_ch5.adb: Minor reformatting
3041
3042 2009-04-09 Vincent Celier <celier@adacore.com>
3043
3044 * vms_data.ads:
3045 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
3046 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
3047 New qualifier /LXDEBUG=nnn for -gnatDnnn
3048 For H820-010
3049
3050 * gnat_ugn.texi:
3051 Update documentation for VMS qualifiers equivalent to -gnatGnn and
3052 -gnatDnn
3053
3054 2009-04-09 Nicolas Setton <setton@adacore.com>
3055
3056 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
3057 to match layout of siginfo_t in sys/signal.h.
3058
3059 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
3060
3061 2009-04-09 Thomas Quinot <quinot@adacore.com>
3062
3063 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
3064
3065 2009-04-09 Nicolas Setton <setton@adacore.com>
3066
3067 * s-oscons-tmplt.c: Allow long lines in the generated spec.
3068 Add generation of Darwin-specific constants needed when binding to the
3069 pthread library.
3070
3071 2009-04-09 Robert Dewar <dewar@adacore.com>
3072
3073 * checks.adb:
3074 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
3075 when no invalid values exist, Avoid duplicate read of atomic variable.
3076
3077 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
3078 (Standard_Unsigned): Set Is_Known_Valid
3079
3080 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
3081 subtype declaration if no constraint.
3082 (Set_Modular_Size): Set Is_Known_Valid if appropriate
3083 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
3084
3085 2009-04-09 Robert Dewar <dewar@adacore.com>
3086
3087 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
3088 switch.ads: for numeric switches, an optional equal sign is always
3089 allowed.
3090
3091 2009-04-09 Vincent Celier <celier@adacore.com>
3092
3093 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
3094 the case of file names is not significant.
3095
3096 2009-04-09 Vincent Celier <celier@adacore.com>
3097
3098 * errout.adb: Remove dependency on package Style
3099
3100 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
3101 moved to Stylesw.
3102
3103 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
3104 Styleg.
3105
3106 * errutil.adb, par.adb: Import Stylesw
3107
3108 2009-04-09 Arnaud Charlet <charlet@adacore.com>
3109
3110 * opt.ads: Fix typos.
3111
3112 2009-04-09 Robert Dewar <dewar@adacore.com>
3113
3114 * einfo.adb: Minor reformatting
3115
3116 2009-04-09 Robert Dewar <dewar@adacore.com>
3117
3118 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
3119 units.
3120
3121 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
3122
3123 2009-04-09 Robert Dewar <dewar@adacore.com>
3124
3125 * g-comver.adb: Minor reformatting.
3126
3127 2009-04-09 Thomas Quinot <quinot@adacore.com>
3128
3129 * lib-load.ads (Load_Unit): Update documentation.
3130
3131 2009-04-09 Ed Schonberg <schonberg@adacore.com>
3132
3133 * lib-load.adb (Load_Unit): When loading the parent of a child unit
3134 named in a with_clause, retain the with_clause to preserve a
3135 limited_with indication.
3136
3137 2009-04-09 Robert Dewar <dewar@adacore.com>
3138
3139 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
3140 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
3141 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
3142 possible to replace an OR of two separate tests.
3143
3144 2009-04-09 Robert Dewar <dewar@adacore.com>
3145
3146 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
3147 Maximum_Messages.
3148
3149 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
3150 warning status as well.
3151
3152 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
3153
3154 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
3155 Maximum_Messages.
3156
3157 * bindusg.adb, usage.adb: Update line for -gnatm switch
3158
3159 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
3160 -mnn binder switch.
3161
3162 2009-04-09 Robert Dewar <dewar@adacore.com>
3163
3164 * sem_ch10.adb: Minor reformatting.
3165
3166 2009-04-09 Bob Duff <duff@adacore.com>
3167
3168 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
3169 Set Sloc of generated nodes for calls to Undefer_Aborts and
3170 Save_Occurrence to No_Location, so the debugger ignores them and
3171 therefore does not jump back and forth when single stepping.
3172
3173 2009-04-09 Robert Dewar <dewar@adacore.com>
3174
3175 * switch-b.adb: Minor reformatting.
3176
3177 2009-04-09 Robert Dewar <dewar@adacore.com>
3178
3179 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
3180 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
3181 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
3182 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
3183 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
3184 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
3185 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
3186 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
3187 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
3188 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
3189 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
3190
3191 2009-04-09 Robert Dewar <dewar@adacore.com>
3192
3193 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
3194
3195 * atree.h: Add Elist26
3196
3197 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
3198 backends.
3199
3200 2009-04-09 Javier Miranda <miranda@adacore.com>
3201
3202 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
3203 retrieve from the Dispatch_Table_Wrappers list the external name.
3204 Addition of documentation.
3205 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
3206 used to export secondary dispatch tables (in the previous version of
3207 the frontend only primary dispatch tables were exported). Addition of
3208 documentation.
3209 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
3210 dispatch table of a given tagged type.
3211 (Make_Tags): Modified to import secondary dispatch tables.
3212
3213 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
3214 (Constant_Redeclaration): Code cleanup.
3215
3216 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
3217 Dispatch_Table_Wrappers. Update documentation.
3218
3219 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
3220 Renamed to Dispatch_Table_Wrappers.
3221
3222 * sem_util.adb (Collect_Interface_Components): Improve handling of
3223 private types.
3224
3225 * atree.ads (Elist26, Set_Elist26): New subprograms
3226
3227 * atree.adb (Elist26, Set_Elist26): New subprograms
3228
3229 2009-04-09 Javier Miranda <miranda@adacore.com>
3230
3231 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
3232 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
3233 tagged types.
3234
3235 2009-04-09 Robert Dewar <dewar@adacore.com>
3236
3237 * s-direio.adb: Minor reformatting
3238
3239 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
3240
3241 2009-04-09 Robert Dewar <dewar@adacore.com>
3242
3243 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
3244
3245 2009-04-09 Pascal Obry <obry@adacore.com>
3246
3247 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
3248 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
3249 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
3250 a-filico.ads: Add some missing overriding keywords.
3251
3252 2009-04-09 Pascal Obry <obry@adacore.com>
3253
3254 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
3255 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
3256 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
3257 reformatting.
3258
3259 2009-04-09 Ed Schonberg <schonberg@adacore.com>
3260
3261 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
3262 missing overriding indicator if the new declaration is not seen as
3263 primitive.
3264
3265 2009-04-09 Thomas Quinot <quinot@adacore.com>
3266
3267 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
3268 overflows in computation of bounds.
3269
3270 2009-04-09 Pascal Obry <obry@adacore.com>
3271
3272 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
3273 typos in comment.
3274
3275 2009-04-09 Robert Dewar <dewar@adacore.com>
3276
3277 * sem_attr.adb (Check_Stream_Attribute): Check violation of
3278 restriction No_Streams
3279
3280 * gnat_rm.texi: Clarify No_Streams restriction
3281
3282 * g-socket.adb: Minor reformatting.
3283
3284 2009-04-09 Thomas Quinot <quinot@adacore.com>
3285
3286 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
3287
3288 2009-04-09 Geert Bosch <bosch@adacore.com>
3289
3290 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
3291 (Set_Result): Likewise.
3292 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
3293 conversion, as required by RM 4.6(31).
3294
3295 2009-04-08 Robert Dewar <dewar@adacore.com>
3296
3297 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
3298 suppressed.
3299
3300 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
3301 resolution steps.
3302
3303 2009-04-08 Robert Dewar <dewar@adacore.com>
3304
3305 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
3306 No_Local_Allocators restriction preventing local instantiation.
3307
3308 2009-04-08 Thomas Quinot <quinot@adacore.com>
3309
3310 * sem_eval.adb: Minor comment fix
3311
3312 2009-04-08 Thomas Quinot <quinot@adacore.com>
3313
3314 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
3315 New limited controlled type used to automate the initialization and
3316 finalization of the sockets implementation.
3317 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
3318
3319 2009-04-08 Vincent Celier <celier@adacore.com>
3320
3321 * prj-attr.adb: New read-only project-level attribute Project_Dir
3322
3323 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
3324 read-only attribute of the same name.
3325 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
3326 (Recursive_Process): Ditto
3327
3328 * snames.adb: Add new standard name Project_Dir
3329
3330 * snames.ads: Add new standard name Project_Dir
3331
3332 2009-04-08 Thomas Quinot <quinot@adacore.com>
3333
3334 * checks.adb: Minor reformatting
3335
3336 2009-04-08 Vincent Celier <celier@adacore.com>
3337
3338 * vms_data.ads: Add documentation for new style keyword
3339 OVERRIDING_INDICATORS
3340
3341 2009-04-08 Robert Dewar <dewar@adacore.com>
3342
3343 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
3344 spec is in the current unit.
3345
3346 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3347
3348 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
3349 presence of entity.
3350
3351 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
3352
3353 2009-04-08 Vincent Celier <celier@adacore.com>
3354
3355 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
3356
3357 2009-04-08 Thomas Quinot <quinot@adacore.com>
3358
3359 * checks.ads: Minor reformatting
3360
3361 2009-04-08 Robert Dewar <dewar@adacore.com>
3362
3363 * gnat_rm.texi: Update documentation of pragma Obsolescent
3364
3365 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
3366 be omitted, and allow Entity parameter to be omitted.
3367
3368 2009-04-08 Thomas Quinot <quinot@adacore.com>
3369
3370 * exp_util.adb: Minor comment fix
3371
3372 2009-04-08 Robert Dewar <dewar@adacore.com>
3373
3374 * g-socket.ads: Fix bad syntax in pragma Obsolescent
3375
3376 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
3377 argument with no identifier following one that has an identifier. Was
3378 missed in some cases.
3379
3380 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
3381 identifier.
3382 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
3383
3384 * snames.adb: Add Name_Policy
3385
3386 * snames.ads: Add Name_Policy
3387
3388 2009-04-08 Robert Dewar <dewar@adacore.com>
3389
3390 * gnat_rm.texi: Minor reformatting
3391
3392 * par-ch2.adb: Minor reformatting
3393
3394 2009-04-08 Robert Dewar <dewar@adacore.com>
3395
3396 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
3397
3398 2009-04-08 Robert Dewar <dewar@adacore.com>
3399
3400 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
3401 properly in the presence of Remote_Types or Remote_Call_Interface.
3402
3403 * sem_util.adb: Add comment.
3404
3405 2009-04-08 Robert Dewar <dewar@adacore.com>
3406
3407 * ug_words: Add /ASSUME_VALID for -gnatB
3408
3409 * vms_data.ads: Add /ASSUME_VALID for -gnatB
3410
3411 * sem_cat.adb: Add clarifying commment
3412
3413 * a-direio.ads (Bytes): Make sure value is non-zero
3414
3415 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3416
3417 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
3418 that does not come from source, check for a rewritten function call in
3419 prefixed notation before other forms of rewriting.
3420
3421 2009-04-08 Robert Dewar <dewar@adacore.com>
3422
3423 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
3424 these are now obsolescent units used only for bootrapping with an
3425 older compiler.
3426
3427 2009-04-08 Robert Dewar <dewar@adacore.com>
3428
3429 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
3430
3431 * sem_ch3.adb: Minor comment updates
3432
3433 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3434
3435 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
3436 that come from source.
3437
3438 2009-04-08 Tristan Gingold <gingold@adacore.com>
3439
3440 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
3441 * gcc-interface/decl.c (prepend_attributes): New case
3442 Pragma_Thread_Local_Storage.
3443 * gcc-interface/utils.c (process_attributes): New case
3444 ATTR_THREAD_LOCAL_STORAGE.
3445
3446 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3447
3448 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
3449 by the back-end if it contains a call to a subprogram without a
3450 previous spec that is declared in the same unit.
3451
3452 * errout.ads: Update comments on uses of dirs
3453
3454 2009-04-08 Robert Dewar <dewar@adacore.com>
3455
3456 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
3457
3458 2009-04-08 Tristan Gingold <gingold@adacore.com>
3459
3460 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
3461 variables.
3462 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
3463
3464 2009-04-08 Vincent Celier <celier@adacore.com>
3465
3466 * prj-nmsc.adb:
3467 (Add_Source): Add the mapping of the unit name to source file name in
3468 the Unit_Sources_HT hash table, if the unit name is not null.
3469
3470 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
3471
3472 * prj.ads (Unit_Sources_Htable): New hash table instantiation
3473 (Project_Tree_Data): New component Unit_Sources_HT
3474
3475 2009-04-08 Thomas Quinot <quinot@adacore.com>
3476
3477 * sem_ch8.adb: Minor reformatting.
3478 Minor code reorganization.
3479
3480 2009-04-08 Robert Dewar <dewar@adacore.com>
3481
3482 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
3483 snames.ads, freeze.adb, par-prag.adb: Add implementation of
3484 pragma Thread_Local_Storage, setting new flag
3485 Has_Pragma_Thread_Local_Storage in corresponding entities.
3486
3487 2009-04-08 Emmanuel Briot <briot@adacore.com>
3488
3489 * prj.ads: Update comment on switches file
3490
3491 * prj-nmsc.adb: Code clean up. Use renaming clauses.
3492
3493 2009-04-08 Robert Dewar <dewar@adacore.com>
3494
3495 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
3496
3497 2009-04-08 Thomas Quinot <quinot@adacore.com>
3498
3499 * ali-util.adb: Minor comment fix
3500
3501 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3502
3503 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
3504 appears in a context clause, and the enclosing package is mentioned in
3505 a limited_with_clause.
3506 (Use_One_Type): Reject clause if type is still incomplete.
3507
3508 2009-04-08 Emmanuel Briot <briot@adacore.com>
3509
3510 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
3511 avoid copies of Source_Data variables when possible, since these
3512 involve calls to memcpy() which are done too many times.
3513
3514 2009-04-08 Robert Dewar <dewar@adacore.com>
3515
3516 * exp_ch4.adb (Expand_Concatenate): Clean up code
3517
3518 2009-04-07 Thomas Quinot <quinot@adacore.com>
3519
3520 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
3521 type for the case of concatenating a constrained array indexed by an
3522 enumeration type.
3523
3524 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3525
3526 * sem_ch6.adb (Check_Conformance): when checking conformance of an
3527 operation that overrides an abstract operation inherited from an
3528 interface, return False if only one of the controlling formals is an
3529 access parameter.
3530
3531 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3532
3533 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
3534 mandated by AI05-105.
3535
3536 2009-04-07 Vincent Celier <celier@adacore.com>
3537
3538 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
3539
3540 2009-04-07 Thomas Quinot <quinot@adacore.com>
3541
3542 * usage.adb: Minor fix in usage message.
3543
3544 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
3545 match declaration; the correct subtype is Node_Id, not Entity_Id,
3546 because the expected node kind is an identifier, not a defining
3547 identifier.
3548
3549 * switch-c.adb: Minor reformatting.
3550
3551 * uintp.adb: Minor reformatting.
3552
3553 2009-04-07 Robert Dewar <dewar@adacore.com>
3554
3555 * exp_ch13.adb: Minor reformatting
3556
3557 2009-04-07 Robert Dewar <dewar@adacore.com>
3558
3559 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
3560 against missing parent.
3561
3562 2009-04-07 Thomas Quinot <quinot@adacore.com>
3563
3564 * xoscons.adb: Minor reformatting
3565
3566 2009-04-07 Robert Dewar <dewar@adacore.com>
3567
3568 * rtsfind.ads: Remove obsolete string concatenation entries
3569
3570 2009-04-07 Robert Dewar <dewar@adacore.com>
3571
3572 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
3573
3574 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3575
3576 * sem_ch10.adb (Check_Body_Required): Handle properly imported
3577 subprograms.
3578
3579 2009-04-07 Gary Dismukes <dismukes@adacore.com>
3580
3581 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
3582 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
3583 is of a scalar or string type then suppress the setting of the
3584 expression to Empty.
3585
3586 * freeze.adb (Warn_Overlay): Also emit the warnings about default
3587 initialization for the cases of scalar and string objects when
3588 Init_Or_Norm_Scalars is True.
3589
3590 2009-04-07 Bob Duff <duff@adacore.com>
3591
3592 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
3593
3594 2009-04-07 Bob Duff <duff@adacore.com>
3595
3596 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
3597 Form parameter of Text_Translation=No allows binary mode for Text_IO
3598 files.
3599
3600 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
3601
3602 2009-04-07 Javier Miranda <miranda@adacore.com>
3603
3604 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
3605 processing the bounds for bit packed arrays or VM target machines.
3606
3607 2009-04-07 Thomas Quinot <quinot@adacore.com>
3608
3609 * g-sothco.ads (Int_Access): Remove extraneous access type (use
3610 anonymous access instead).
3611 (Get_Socket_From_Set): Fix incorrectly reverted formals
3612 Last and Socket to match the underlying C routine.
3613
3614 * g-socket.adb, g-socket.ads
3615 (Get): Use named parameter associations instead of positional ones in
3616 call go Get_Socket_From_Set, since this routine has two formals of the
3617 same type.
3618 (Image): New procedure.
3619
3620 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3621 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
3622 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
3623 for type of Arg formal.
3624
3625 * sem_warn.adb: Minor reformatting
3626
3627 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3628
3629 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
3630 over record components.
3631
3632 2009-04-07 Nicolas Roche <roche@adacore.com>
3633
3634 * gsocket.h:
3635 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
3636 has disappeared between VxWorks 6.4 and VxWorks 6.5
3637 In RTP mode use time.h instead of times.h
3638
3639 2009-04-07 Robert Dewar <dewar@adacore.com>
3640
3641 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
3642
3643 2009-04-07 Kevin Pouget <pouget@adacore.com>
3644
3645 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
3646 expanded code for constrained types.
3647
3648 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3649
3650 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
3651 AI05-105: in an object renaming declaration, anonymousness is a name
3652 resolution rule.
3653
3654 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
3655
3656 2009-04-07 Arnaud Charlet <charlet@adacore.com>
3657
3658 * g-comlin.adb (Expansion): Fix old regression: also return directory
3659 names when matching.
3660
3661 2009-04-07 Robert Dewar <dewar@adacore.com>
3662
3663 * exp_ch4.adb:
3664 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
3665 (Expand_Concatenate): New name for Expand_Concatenate_String which has
3666 been rewritten to handle all types.
3667 (Expand_Concatenate_Other): Remove
3668
3669 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3670
3671 * lib-xref.adb (Generate_Reference): A default subprogram in an
3672 instance appears within the tree for the instance, but generates an
3673 implicit reference in the ALI.
3674
3675 2009-04-07 Javier Miranda <miranda@adacore.com>
3676
3677 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
3678 derived type that has discriminants, propagate the list of interfaces
3679 to the corresponding new base type. In addition, propagate also
3680 attribute Limited_Present (found working in this patch).
3681
3682 2009-04-07 Robert Dewar <dewar@adacore.com>
3683
3684 * exp_ch4.adb: Rewrite concatenation expansion.
3685
3686 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3687
3688 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
3689 relevant to packages.
3690
3691 2009-04-07 Robert Dewar <dewar@adacore.com>
3692
3693 * sem_attr.adb: Minor reformatting
3694
3695 * sem_ch6.adb: Minor reformatting
3696
3697 2009-04-07 Tristan Gingold <gingold@adacore.com>
3698
3699 * socket.c: Add more protections against S_resolvLib_ macros.
3700
3701 2009-04-07 Thomas Quinot <quinot@adacore.com>
3702
3703 * sem_attr.adb: Minor reformatting
3704
3705 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3706
3707 * sem_ch6.adb (New_Overloaded_Entity): New predicate
3708 Is_Overriding_Alias to handle properly types that inherit two homonym
3709 operations that have distinct dispatch table entries.
3710
3711 2009-04-07 Emmanuel Briot <briot@adacore.com>
3712
3713 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
3714 looking for the end of a parenthesis group
3715
3716 2009-04-07 Tristan Gingold <gingold@adacore.com>
3717
3718 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
3719
3720 * socket.c Don't use resolvLib_ macros if not defined.
3721
3722 2009-04-07 Robert Dewar <dewar@adacore.com>
3723
3724 * g-socket.adb: Minor reformatting.
3725
3726 * g-socthi-mingw.adb: Minor reformatting
3727
3728 * g-sothco.ads: Minor reformatting
3729
3730 * exp_ch4.adb:
3731 (Expand_Concatenate_String): Complete rewrite to generate efficient code
3732 inline instead of relying on external library routines.
3733
3734 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
3735 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
3736 obsolescent
3737
3738 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3739
3740 * sem_attr.adb:
3741 (Eval_Attribute): for attributes of array objects that are not strings,
3742 attributes are not static if nominal subtype of object is unconstrained.
3743
3744 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3745
3746 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
3747 operations for a type T in an instance do not override each other,
3748 when T is derived from a formal private type, the corresponding
3749 operations inherited by a type derived from T outside
3750 of the instance do not override each other either.
3751
3752 2009-04-07 Robert Dewar <dewar@adacore.com>
3753
3754 (Osint.Fail): Change calling sequence to have one string arg
3755 (Make.Make_Failed): Same change
3756 All callers are adjusted to use concatenation
3757
3758 2009-04-07 Robert Dewar <dewar@adacore.com>
3759
3760 * exp_ch4.adb: Fix documentation typo
3761
3762 2009-04-07 Robert Dewar <dewar@adacore.com>
3763
3764 * tbuild.ads: Minor reformatting
3765
3766 2009-04-07 Javier Miranda <miranda@adacore.com>
3767
3768 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
3769 when compiling under ZFP runtime.
3770
3771 2009-04-07 Robert Dewar <dewar@adacore.com>
3772
3773 * g-comlin.adb: Minor reformatting
3774
3775 2009-04-07 Thomas Quinot <quinot@adacore.com>
3776
3777 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3778 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3779 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
3780 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
3781
3782 2009-04-07 Robert Dewar <dewar@adacore.com>
3783
3784 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
3785
3786 * opt.ads (Sprint_Line_Limit): New parameter
3787
3788 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
3789
3790 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
3791
3792 * usage.adb: Output information for -gnatGnn -gnatDnn
3793
3794 2009-04-07 Robert Dewar <dewar@adacore.com>
3795
3796 * make.adb: Minor reformatting
3797
3798 2009-04-07 Robert Dewar <dewar@adacore.com>
3799
3800 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
3801
3802 2009-04-07 Robert Dewar <dewar@adacore.com>
3803
3804 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
3805
3806 2009-04-07 Robert Dewar <dewar@adacore.com>
3807
3808 * checks.adb:
3809 Remove Assume_Valid parameter from In_Subrange_Of calls
3810
3811 * sem_eval.adb:
3812 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
3813 (Is_In_Range): Remove incorrect use of Assume_Valid
3814 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
3815
3816 * sem_eval.ads:
3817 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
3818 (Is_In_Range): Documentation cleanup
3819 (Is_Out_Of_Range): Documentation cleanup
3820
3821 * gnat_rm.texi:
3822 Add documentation for Assume_No_Invalid_Values pragma
3823
3824 * sem_ch12.adb: Minor reformatting
3825
3826 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
3827
3828 * sem_prag.adb: Improve error message.
3829
3830 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
3831 LF/CR no longer recognized as line terminator
3832
3833 * switch.ads: Minor documentation improvement
3834
3835 * vms_data.ads: Minor reformatting
3836
3837 2009-04-07 Robert Dewar <dewar@adacore.com>
3838
3839 * checks.adb (Determine_Range): Add Assume_Valid parameter
3840
3841 * checks.ads (Determine_Range): Add Assume_Valid parameter
3842
3843 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
3844 Is_Null_Loop to suppress warnings in a loop body.
3845
3846 * exp_ch4.adb:
3847 (Rewrite_Comparison): Major rewrite to accomodate invalid values
3848
3849 * exp_ch5.adb:
3850 (Expand_N_Loop_Statement): Delete loop known not to execute
3851
3852 * opt.ads:
3853 (Assume_No_Invalid_Values): Now set to False, and as documented, this
3854 fully enables the proper handling of invalid values.
3855
3856 * sem_attr.adb:
3857 New calling sequence for Is_In_Range
3858
3859 * sem_ch5.adb:
3860 (Analyze_Iteration_Scheme): Accomodate possible invalid values
3861 in determining if a loop range is null.
3862
3863 * sem_eval.adb:
3864 (Is_In_Range): Add Assume_Valid parameter
3865 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3866 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
3867 also to do more accurate and complete range analysis, catching more
3868 cases.
3869
3870 * sem_eval.ads:
3871 (Is_In_Range): Add Assume_Valid parameter
3872 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3873
3874 * sem_util.adb:
3875 New calling sequence for Is_In_Range
3876
3877 * sinfo.adb:
3878 (Suppress_Loop_Warnings): New flag
3879
3880 * sinfo.ads:
3881 (Is_Null_Loop): Update documentation
3882 (Suppress_Loop_Warnings): New flag
3883
3884 * gnat_ugn.texi: Document -gnatB switch
3885
3886 2009-04-07 Arnaud Charlet <charlet@adacore.com>
3887
3888 * gnatvsn.ads: Bump version number.
3889
3890 2009-04-07 Thomas Quinot <quinot@adacore.com>
3891
3892 * exp_ch3.adb: Minor rewording (comments)
3893
3894 2009-04-07 Robert Dewar <dewar@adacore.com>
3895
3896 * exp_disp.adb: Minor reformatting
3897
3898 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3899
3900 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
3901 underlying type.
3902 * gcc-interface/trans.c (lvalue_required_p): Likewise.
3903
3904 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3905
3906 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
3907 Do not convert the result. Remove obsolete comment.
3908
3909 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3910
3911 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
3912 DECL_CONTEXT.
3913 (Subprogram_Body_to_gnu): Fix pasto.
3914
3915 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3916
3917 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
3918 (void_type_decl_node): Remove.
3919 (init_gigi_decls): Likewise.
3920 (gnat_install_builtins): Declare.
3921 (record_builtin_type): Likewise.
3922 (create_type_stub_decl): Likewise.
3923 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
3924 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
3925 artificial.
3926 <E_Array_Subtype>: Use the index types, not only their name, in the
3927 record giving the names of the bounds, if any.
3928 For a packed array type, make it artificial only if the base type
3929 was artificial as well. Remove redundant statement.
3930 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
3931 dummy types.
3932 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
3933 (rest_of_type_decl_compilation_no_defer): Likewise.
3934 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
3935 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
3936 and use create_type_stub_decl to build it.
3937 (gnat_pushdecl): Rewrite condition.
3938 (gnat_install_builtins): Remove bogus declaration.
3939 (record_builtin_type): New function.
3940 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
3941 of types.
3942 (create_type_stub_decl): New function.
3943 (create_type_decl): Assert that the type is not dummy. If the type
3944 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
3945 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
3946 (build_vms_descriptor): Likewise.
3947 (init_gigi_decls): Delete and move bulk of code to...
3948 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
3949 (emit_range_check): Add gnat_node parameter.
3950 (emit_index_check): Likewise.
3951 (emit_check): Likewise.
3952 (build_unary_op_trapv): Likewise.
3953 (build_binary_op_trapv): Likewise.
3954 (convert_with_check): Likewise.
3955 (Attribute_to_gnu): Adjust calls for above changes.
3956 (call_to_gnu): Likewise.
3957 (gnat_to_gnu): Likewise.
3958 (assoc_to_constructor): Likewise.
3959 (pos_to_constructor): Likewise.
3960 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
3961 (process_type): Do not create TYPE_DECL for dummy types.
3962
3963 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3964
3965 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
3966 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
3967 * gcc-interface/utils.c: Fix comments.
3968
3969 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3970
3971 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
3972 move around.
3973 (gnat_to_gnu_type): Move around.
3974 (get_unpadded_type): Likewise.
3975 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
3976 Tidy comments.
3977
3978 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3979
3980 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
3981 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
3982 (call_to_gnu): Invoke it instead of manually checking.
3983
3984 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
3985
3986 * gcc-interface/utils.c (finish_record_type): Force structural equality
3987 checks if the record type is discriminated.
3988
3989 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
3990
3991 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
3992 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
3993 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
3994 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
3995 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
3996 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
3997 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
3998
3999 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4000
4001 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
4002 of TREE_CONSTANT_OVERFLOW.
4003
4004 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4005
4006 PR rtl-optimization/323
4007 * gcc-interface/misc.c (gnat_post_options): Set
4008 flag_excess_precision_cmdline. Give an error for
4009 -fexcess-precision=standard for processors where the option is
4010 significant.
4011
4012 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4013
4014 PR c/39323
4015 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
4016 on bit_align.
4017
4018 2009-03-11 Olivier Hainque <hainque@adacore.com>
4019
4020 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
4021 checks processing, remove unintended TREE_TYPE walk on index type.
4022
4023 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
4024
4025 PR ada/39264
4026 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
4027 call make_packable_type on fat pointer types.
4028 <E_Array_Subtype>: Likewise.
4029 <E_Record_Subtype>: Call make_packable_type on all record types
4030 except for fat pointer types.
4031 (make_packable_type): Likewise.
4032 (gnat_to_gnu_field): Likewise.
4033
4034 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
4035
4036 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
4037 EH_MECHANISM change made on 2007-12-06.
4038
4039 2009-02-26 Andreas Schwab <schwab@suse.de>
4040
4041 PR ada/39172
4042 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
4043 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
4044 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
4045 (AWK): Substitute.
4046 (target_cpu_default): Substitute.
4047
4048 2009-02-25 Laurent GUERBY <laurent@guerby.net>
4049
4050 PR ada/39221
4051 * a-teioed.adb (Expand): Fix Result overflow.
4052
4053 2009-02-25 Laurent GUERBY <laurent@guerby.net>
4054
4055 * gcc-interface/Makefile.in: Fix multilib handling for
4056 sparc64-linux.
4057
4058 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4059
4060 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
4061
4062 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
4063
4064 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
4065
4066 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
4067
4068 * gcc-interface/deftarg.c: Remove.
4069
4070 2009-02-10 Olivier Hainque <hainque@adacore.com>
4071 Eric Botcazou <ebotcazou@adacore.com>
4072
4073 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
4074 (copy_alias_set): Rename into...
4075 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
4076 underlying array of unconstrained arrays for the new type as well.
4077 If the old and new alias sets don't conflict, make one a subset of
4078 the other as per the OP parameter.
4079 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
4080 <E_Record_Type>: Do not copy the alias set for derived types.
4081 For all types, make the alias set of derived types a superset of
4082 that of their parent type.
4083 (make_aligning_type): Adjust calls to copy_alias_set.
4084 (make_packable_type): Likewise.
4085 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
4086 Check for alias set conflict instead of strict equality to issue the
4087 warning.
4088
4089 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
4090
4091 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
4092 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
4093 (copy_alias_set): Assert that arrays have the same aliasing settings.
4094 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
4095
4096 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
4097
4098 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
4099 Set TYPE_NONALIASED_COMPONENT on the array type.
4100
4101 2009-01-31 Laurent GUERBY <laurent@guerby.net>
4102
4103 * gcc-interface/Makefile.in: Fix mipsel linux handling.
4104
4105 2009-01-16 Jakub Jelinek <jakub@redhat.com>
4106
4107 * gcc-interface/Makefile.in: Fix multilib handling for
4108 powerpc64-linux.
4109
4110 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
4111
4112 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
4113 only useless conversions around renamed objects.
4114
4115 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
4116
4117 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
4118 the _Tag field before any discriminants in the field list.
4119 (components_to_record): Remove obsolete comment.
4120
4121 2008-12-09 Jakub Jelinek <jakub@redhat.com>
4122
4123 PR ada/38450
4124 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
4125 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
4126 Likewise.
4127
4128 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
4129
4130 PR bootstrap/38262
4131 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
4132
4133 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
4134
4135 PR ada/30827
4136 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
4137
4138 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
4139
4140 * gcc-interface/decl.c: Fix various nits.
4141
4142 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
4143
4144 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
4145
4146 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
4147
4148 PR ada/38127
4149 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
4150 special-case boolean types. Propagate the name.
4151 * gcc-interface/targtyps.c: Tweak comment.
4152
4153 2008-11-15 Geert Bosch <bosch@adacore.com>
4154
4155 * gcc-interface/trans.c (emit_check): Put back a final save_expr
4156 to prevent exponential expansion during gimplification.
4157
4158 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
4159
4160 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
4161
4162 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
4163
4164 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
4165 initialized to a static constant to be statically allocated even if
4166 they are of a padding type, provided the original type also has
4167 constant size.
4168
4169 2008-11-15 Laurent Guerby <laurent@guerby.net>
4170
4171 PR ada/37993
4172 * gcc-interface/Makefile.in: Add multilib handling for x86_64
4173 on darwin.
4174 * system-darwin-x86_64.ads: New file.
4175
4176 2008-11-13 Olivier Hainque <hainque@adacore.com>
4177
4178 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
4179 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
4180 are explicit to the middle-end. Tidy.
4181
4182 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
4183
4184 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
4185 (MINUS_NOMOD_EXPR): Likewise.
4186 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
4187 unreachable.
4188 <PLUS_NOMOD_EXPR>: New case.
4189 <MINUS_NOMOD_EXPR>: Likewise.
4190 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
4191 assignment statement instead of using an increment operator.
4192
4193 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4194
4195 * system-irix-n64.ads: New file.
4196 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
4197 multilibs.
4198
4199 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4200
4201 PR ada/37681
4202 * system-solaris-x86_64.ads: New file.
4203 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
4204
4205 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
4206 Eric Botcazou <ebotcazou@adacore.com>
4207
4208 PR ada/34289
4209 * lib.ads: (Enable_Switch_Storing): Declare.
4210 * lib.adb: (Enable_Switch_Storing): New procedure.
4211 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
4212 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
4213 (Display): Never display -gnatea
4214 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
4215
4216 2008-11-07 Thomas Quinot <quinot@adacore.com>
4217
4218 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
4219 for empty range in original base type, not converted result type.
4220
4221 2008-11-07 Geert Bosch <bosch@adacore.com>
4222
4223 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
4224 and result for call to __gnat_mulv64.
4225
4226 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
4227
4228 * gcc-interface/trans.c: Fix formatting nits.
4229
4230 2008-11-07 Geert Bosch <bosch@adacore.com>
4231
4232 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
4233 overflow check for constant result.
4234
4235 2008-11-07 Geert Bosch <bosch@adacore.com>
4236
4237 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
4238 overflow check for addition/subtraction if neither operand is constant.
4239
4240 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4241
4242 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
4243 files for the target-dependent part of the runtime.
4244 (SPARC/Linux): Likewise.
4245
4246 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4247
4248 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
4249 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
4250 purposes.
4251
4252 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4253
4254 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
4255 in GC memory.
4256
4257 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4258
4259 PR ada/19419
4260 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
4261 Generate a call to memmove for an assignment between overlapping
4262 array slices.
4263
4264 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4265
4266 PR target/37977
4267 * gcc-interface/Makefile.in: Add multilib handling for
4268 s390-linux and s390x-linux.
4269
4270 2008-10-24 Jakub Jelinek <jakub@redhat.com>
4271
4272 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
4273 check-acats-subtargets and check-gnat-subtargets.
4274 (check_acats_targets): New variable.
4275 (check-acats-subtargets, check-acats%): New targets.
4276 (check-acats): If -j is used and CHAPTERS is empty, run the testing
4277 in multiple make goals, possibly parallel, and afterwards run
4278 dg-extract-results.sh to merge the sum and log files.
4279
4280 2008-10-17 Geert Bosch <bosch@adacore.com>
4281
4282 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
4283 to use only a single check instead of three, and avoid unnecessary
4284 COMPOUND_EXPR.
4285 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
4286 creating more opportunities for optimizations.
4287
4288 2008-10-13 Jakub Jelinek <jakub@redhat.com>
4289
4290 PR middle-end/37601
4291 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
4292 NULL TYPE_DOMAIN.
4293
4294 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
4295
4296 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
4297 dealing with volatileness to after code dealing with renaming.
4298
4299 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
4300
4301 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
4302 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
4303
4304 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
4305
4306 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
4307 (unchecked_convert): Use it to disable problematic folding with
4308 VIEW_CONVERT_EXPR in the general case. Always disable it for the
4309 special VIEW_CONVERT_EXPR built for integral types and cope with
4310 its addressability issues by preserving the first conversion.
4311
4312 2008-10-01 Andreas Schwab <schwab@suse.de>
4313
4314 * system-linux-ppc64.ads: New file.
4315 * gcc-interface/Makefile.in: Add multilib handling for
4316 powerpc-linux.
4317
4318 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
4319
4320 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
4321 to that of ptr_mode instead of word_mode.
4322
4323 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
4324
4325 PR ada/5911
4326 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
4327
4328 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
4329
4330 PR ada/37641
4331 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
4332 instead of deprecated FILE_WRITE_PROPERTIES.
4333
4334 2008-09-22 Olivier Hainque <hainque@adacore.com>
4335
4336 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
4337 are never assigned, volatile entities are not constant for code
4338 generation purposes.
4339
4340 2008-09-21 Laurent Guerby <laurent@guerby.net>
4341
4342 PR ada/5911
4343 * gcc-interface/Makefile.in: Add multilib handling for x86_64
4344 and sparc.
4345 * system-linux-sparcv9.ads: New file.
4346
4347 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
4348
4349 * exp_dbug.ads: Document new convention for the XVZ variable.
4350 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
4351 debug info if necessary for the type padding the component type.
4352 <E_Array_Subtype>: Likewise.
4353 (maybe_pad_type): Emit the XVZ variable in units.
4354 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
4355 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
4356 on statements generated to initialize the parameter attributes cache.
4357 Set the source line of the end label of the body on the special return
4358 statement built for a procedure with copy-in copy-out parameters.
4359
4360 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
4361
4362 PR ada/37585
4363 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
4364 inlined external functions if they contain a nested function not
4365 declared inline.
4366
4367 2008-09-18 Jan Hubicka <jh@suse.cz>
4368
4369 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
4370 (end_subprog_body): Do not set DECL_INLINE.
4371
4372 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
4373
4374 PR ada/21327
4375 * gnat_ugn.texi: Use proper format in direntry.
4376
4377 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
4378
4379 * gcc-interface/trans.c (gigi): Declare the name of the compilation
4380 unit as the first global name.
4381
4382 2008-09-14 Jan Hubicka <jh@suse.cz>
4383
4384 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
4385
4386 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4387
4388 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
4389 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
4390 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
4391 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
4392 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
4393 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
4394 gcc-interface/gigi.h, gcc-interface/trans.c,
4395 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
4396 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
4397 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
4398 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
4399 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
4400 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4401 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
4402 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
4403 comments.
4404 * gnathtml.pl: Fix typos.
4405
4406 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
4407
4408 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
4409 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
4410 layer. RTEMS binds to OS provided adapter routines so there are
4411 no modifications to s-osinte-rtems.adb.
4412
4413 2008-09-09 Arnaud Charlet <charlet@adacore.com>
4414 Joel Sherrill <joel.sherrill@oarcorp.com>
4415
4416 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
4417
4418 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
4419
4420 * s-interr-hwint.adb: New file.
4421
4422 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
4423 needed by s-interr-hwint.adb.
4424
4425 * s-osinte-vxworks-kernel.adb: New file.
4426
4427 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
4428
4429 * s-stchop-rtems.adb: Add file missed in early commit. Already
4430 referenced in gcc-interface/Makefile.in.
4431
4432 2008-08-30 Thomas Quinot <quinot@adacore.com>
4433
4434 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
4435 be built even without a separate libada directory.
4436
4437 2008-08-22 Arnaud Charlet <charlet@adacore.com>
4438
4439 * lib-xref.ads: Fix typo in subprogram reference definition.
4440
4441 2008-08-22 Robert Dewar <dewar@adacore.com>
4442
4443 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
4444 to avoid warning.
4445
4446 * g-trasym.adb: Ditto
4447
4448 * s-utf_32.adb (Get_Category): Fix obvious typo
4449
4450 * s-wwdcha.adb: Minor code reorganization
4451 Remove dead code
4452
4453 2008-08-22 Robert Dewar <dewar@adacore.com>
4454
4455 * checks.adb (Determine_Range): Deal with values that might be invalid
4456
4457 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
4458 configuration switches.
4459
4460 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
4461
4462 * sem_prag.adb: Implement pragma Assume_No_Default_Values
4463
4464 * snames.adb, snames.ads, snames.h:
4465 Add entries for pragma Assume_No_Invalid_Values
4466
4467 * switch-c.adb: Add processing for -gnatB switch
4468
4469 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
4470
4471 2008-08-22 Javier Miranda <miranda@adacore.com>
4472
4473 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
4474 init procedure all the expanded code associated with the spec of
4475 task types and protected types.
4476
4477 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4478
4479 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
4480 component expression copies rather than directly setting Etype and
4481 Is_Static_Expression.
4482
4483 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4484
4485 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
4486 private types to allow for types derived from a private type with
4487 preelaborable initialization, but return False for a private extension
4488 (unless it has the pragma).
4489
4490 2008-08-22 Robert Dewar <dewar@adacore.com>
4491
4492 * opt.ads: Minor code reorganization (put entries in alpha order)
4493
4494 2008-08-22 Pascal Obry <obry@adacore.com>
4495
4496 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
4497 spawn.
4498
4499 2008-08-22 Geert Bosch <bosch@adacore.com>
4500
4501 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
4502 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
4503
4504 2008-08-22 Doug Rupp <rupp@adacore.com>
4505
4506 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
4507 __gnat_set_features.
4508
4509 * init.c
4510 (__gnat_set_features): New function.
4511 (__gnat_features_set): New tracking variable.
4512 (__gl_no_malloc_64): New feature global variable
4513
4514 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4515
4516 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
4517 use_type_clause in an instance.
4518
4519 2008-08-22 Bob Duff <duff@adacore.com>
4520
4521 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
4522
4523 2008-08-22 Robert Dewar <dewar@adacore.com>
4524
4525 * exp_ch6.adb: Minor reformatting
4526
4527 * exp_ch7.adb: Minor reformatting
4528
4529 * exp_ch7.ads: Put routines in proper alpha order
4530
4531 * exp_dist.adb: Minor reformatting
4532
4533 2008-08-22 Vincent Celier <celier@adacore.com>
4534
4535 * prj.ads: Minor comment update
4536
4537 2008-08-22 Robert Dewar <dewar@adacore.com>
4538
4539 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
4540
4541 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4542
4543 * exp_tss.adb:
4544 (Base_Init_Proc): For a protected subtype, use the base type of the
4545 corresponding record to locate the propoer initialization procedure.
4546
4547 2008-08-22 Robert Dewar <dewar@adacore.com>
4548
4549 * checks.adb:
4550 (In_Subrange_Of): New calling sequence
4551 (Determine_Range): Prepare for new processing using base type
4552
4553 * exp_ch4.adb:
4554 (Compile_Time_Compare): Use new calling sequence
4555
4556 * exp_ch5.adb:
4557 (Compile_Time_Compare): Use new calling sequence
4558
4559 * sem_eval.adb:
4560 (Compile_Time_Compare): New calling sequence allows dealing with
4561 invalid values.
4562 (In_Subrange_Of): Ditto
4563
4564 * sem_eval.ads:
4565 (Compile_Time_Compare): New calling sequence allows dealing with
4566 invalid values.
4567 (In_Subrange_Of): Ditto
4568
4569 2008-08-22 Pascal Obry <obry@adacore.com>
4570
4571 * adaint.c: Fix possible race condition on win32_wait().
4572
4573 2008-08-22 Bob Duff <duff@adacore.com>
4574
4575 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
4576 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
4577 exp_intr.adb, exp_ch3.adb: Rename:
4578 Exp_Ch7.Controlled_Type => Needs_Finalization
4579 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
4580 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
4581 Has_Controlled_Parts
4582 (Has_Some_Controlled_Component): Fix bug in array case.
4583
4584 2008-08-22 Robert Dewar <dewar@adacore.com>
4585
4586 * sem_ch8.adb: Minor reformatting
4587
4588 2008-08-22 Kevin Pouget <pouget@adacore.com>
4589
4590 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
4591 Shared_Var_Close procedure specifications from package spec to package body.
4592
4593 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
4594 RE_Shared_Var_WOpen entries.
4595
4596 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
4597 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
4598
4599 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
4600
4601 * init.c: adjust EH support code on Alpha/Tru64 as well.
4602
4603 * raise-gcc.c: Add back a couple of comments.
4604
4605 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4606
4607 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
4608 involved and the return type is class-wide, use the type of the expression
4609 for the generated access type. Suppress useless discriminant checks on the
4610 allocator.
4611
4612 2008-08-22 Bob Duff <duff@adacore.com>
4613
4614 * exp_ch7.adb: Minor comment fix
4615
4616 * exp_ch6.ads: Minor comment fix
4617
4618 2008-08-22 Thomas Quinot <quinot@adacore.com>
4619
4620 * sem_ch8.adb: Minor reformatting
4621 Minor code reorganization (introduce subprogram to factor duplicated
4622 code).
4623
4624 2008-08-22 Sergey Rybin <rybin@adacore.com>
4625
4626 * gnat_ugn.texi: Change the description of gnatcheck default rule
4627 settings.
4628
4629 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
4630
4631 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
4632 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
4633 do not adjust the PC anymore.
4634 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
4635 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
4636
4637 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
4638 instead of _Unwind_GetIP.
4639
4640 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4641
4642 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
4643 with a range is transformed into a positional aggregate, any copied
4644 component literals should be marked Is_Static_Expression.
4645
4646 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
4647 not being known at at compile time when Configurable_Run_Time_Mode is
4648 true.
4649
4650 2008-08-22 Robert Dewar <dewar@adacore.com>
4651
4652 * exp_attr.adb:
4653 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
4654 Read or Input attribute.
4655
4656 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4657
4658 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
4659 clauses in related units is redundant, if one of the units is a package
4660 instantiation, use its instance_spec to determine which unit is the
4661 ancestor of the other.
4662
4663 2008-08-22 Javier Miranda <miranda@adacore.com>
4664
4665 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
4666 attributes add missing support to handle designated types that come
4667 from the limited view.
4668
4669 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
4670
4671 2008-08-22 Sergey Rybin <rybin@adacore.com>
4672
4673 * vms_data.ads: Add entry for new gnatcheck -mNNN option
4674
4675 * gnat_ugn.texi: Add description for gnatcheck option '-m'
4676
4677 2008-08-22 Sergey Rybin <rybin@adacore.com>
4678
4679 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
4680 acoording to the latest changes in the metric rule interface
4681
4682 2008-08-22 Vincent Celier <celier@adacore.com>
4683
4684 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
4685 (Check): Check if the file names registered in the ALI file for the
4686 spec, the body and each of the subunits are the ones expected.
4687
4688 2008-08-22 Robert Dewar <dewar@adacore.com>
4689
4690 * g-catiio.adb: Code cleanup.
4691
4692 2008-08-20 Vincent Celier <celier@adacore.com>
4693
4694 * make.adb (Gnatmake): Remove extra space in version line
4695
4696 * ali.adb:
4697 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
4698 as the name may already have been entered in the table by the Project
4699 Manager.
4700
4701 2008-08-20 Jose Ruiz <ruiz@adacore.com>
4702
4703 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
4704 weak symbols so we use the version provided by MaRTE when available.
4705
4706 2008-08-20 Emmanuel Briot <briot@adacore.com>
4707
4708 * g-catiio.ads, g-catiio.adb:
4709 (Value): Avoid an unnecessary system call to Clock in most cases.
4710 This call is only needed when only the time is provided in the string,
4711 and ignored in all other cases. This is more efficient.
4712
4713 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
4714
4715 * raise-gcc.c: Fix formatting nits.
4716
4717 2008-08-20 Robert Dewar <dewar@adacore.com>
4718
4719 * sem_ch13.adb:
4720 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
4721 non-existing component clause.
4722
4723 * exp_ch5.adb: Minor reformatting
4724
4725 * g-comlin.adb: Minor reformatting
4726
4727 * make.adb: Minor reformatting
4728
4729 * prj-proc.adb: Minor reformatting
4730
4731 * stylesw.ads: Minor reformatting
4732
4733 2008-08-20 Vincent Celier <celier@adacore.com>
4734
4735 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
4736 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
4737 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
4738 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
4739 and a switch is not recognized by gnatmake.
4740 (Gnatmake): Implement new scheme for gnatmake switches and global
4741 compilation switches.
4742 (Switches_Of): Try successively Switches (<file name>),
4743 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
4744
4745 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4746
4747 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
4748 implement style check that overriding operations are explicitly marked
4749 at such.
4750
4751 * style.ads (Missing_Overriding): new procedure that provides interface
4752 to previous one.
4753
4754 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
4755 that the declaration or body of overriding operations carries an
4756 explicit overriding indicator.
4757
4758 * sem_ch8.adb
4759 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
4760 explicit indicator should be present.
4761
4762 * sem_ch6.adb (Verify_Overriding_Indicator,
4763 Check_Overriding_Indicator): If operation is overriding, check whether
4764 declaration and/or body of subprogram should be present
4765
4766 2008-08-20 Vincent Celier <celier@adacore.com>
4767
4768 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
4769 gprbuild when casing is MixedCase, whatever the casing of the letters
4770 in the file name.
4771
4772 2008-08-20 Gary Dismukes <dismukes@adacore.com>
4773
4774 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
4775 creating dummy init proc.
4776 (Requires_Init_Proc): Return False in the case No_Default_Initialization
4777 is in force and the type does not have associated default
4778 initialization. Move test of Is_Public (with tests of restrictions
4779 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
4780 for default initialization.
4781
4782 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
4783
4784 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
4785 of any alias or prefix but having attached parameters (as \"-O2\").
4786
4787 2008-08-20 Robert Dewar <dewar@adacore.com>
4788
4789 * s-fileio.adb: Minor reformatting
4790
4791 2008-08-20 Thomas Quinot <quinot@adacore.com>
4792
4793 * exp_strm.adb (Build_Elementary_Input_Call,
4794 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
4795 selects the stream attribute routines for long float types.
4796
4797 2008-08-20 Vincent Celier <celier@adacore.com>
4798
4799 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
4800
4801 * prj.ads (Array_Data): Add a component Location
4802
4803 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4804
4805 * sem_prag.adb:
4806 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
4807 argument for ASIS and navigation use.
4808
4809 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4810
4811 * einfo.ads: Add comment.
4812
4813 2008-08-20 Bob Duff <duff@adacore.com>
4814
4815 * sem_eval.ads: Minor comment fix.
4816
4817 2008-08-20 Bob Duff <duff@adacore.com>
4818
4819 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
4820 folding. We were folding things like "False and then ...", but not
4821 "X and then ..." where X is a constant whose value is known at compile
4822 time.
4823
4824 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
4825
4826 * exp_ch5.adb (Controlled_Type): New routine.
4827 (Expand_N_Extended_Return_Statement): When generating a move of the
4828 final list in extended return statements, check the type of the
4829 function and in the case of double expanded return statements, the type
4830 of the returned object.
4831 (Expand_Simple_Function_Return): Perform an interface conversion when
4832 the type of the returned object is an interface and the context is an
4833 extended return statement.
4834
4835 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4836
4837 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
4838 and the full view is visible, set flag on full view as well.
4839
4840 2008-08-20 Thomas Quinot <quinot@adacore.com>
4841
4842 * g-comlin.adb: Minor reformatting
4843 Minor code reorganization.
4844
4845 * freeze.adb: Minor reformatting
4846
4847 2008-08-20 Vincent Celier <celier@adacore.com>
4848
4849 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
4850 source of another project.
4851
4852 2008-08-20 Pascal Obry <obry@adacore.com>
4853
4854 * s-os_lib.ads: Minor reformatting.
4855
4856 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4857
4858 * gnatvsn.ads: Minor reformatting.
4859
4860 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4861
4862 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
4863 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
4864 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
4865 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
4866 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
4867 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
4868 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
4869 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
4870 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
4871 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
4872 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
4873 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
4874 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
4875 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
4876 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
4877 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
4878 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
4879 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
4880 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
4881 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
4882 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
4883 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
4884 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
4885 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
4886 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
4887 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
4888 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
4889 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
4890 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
4891 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
4892 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
4893 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
4894 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
4895 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
4896 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
4897 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
4898 s-poosiz.adb, link.c: Fix copyright notice.
4899
4900 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4901
4902 * g-comlin.ads: Update comments.
4903
4904 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4905
4906 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
4907
4908 2008-08-20 Gary Dismukes <dismukes@adacore.com>
4909
4910 * exp_ch11.adb:
4911 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
4912 Make_Implicit_Exception_Handler when rewriting an exception handler with
4913 a choice parameter, and pass the handler's Sloc instead of that of the
4914 handled sequence of statements. Make_Implicit_Exception_Handler sets the
4915 Sloc to No_Location (unless debugging generated code), which we don't
4916 want for the case of a user handler.
4917
4918 2008-08-20 Robert Dewar <dewar@adacore.com>
4919
4920 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
4921
4922 * sem_ch13.adb:
4923 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
4924 now labeled as info msgs, not warnings.
4925
4926 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
4927
4928 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
4929
4930 * a-textio.adb: Remove redundant test.
4931
4932 * a-witeio.adb: Minor code reorganization
4933 Remove redundant test found working on another issue
4934
4935 * a-ztexio.adb: Minor code reorganization
4936 Remove redundant test found working on another issue
4937
4938 2008-08-20 Thomas Quinot <quinot@adacore.com>
4939
4940 * s-fileio.adb (Open) Use C helper function to determine whether a
4941 given errno value corresponds to a "file not found" error.
4942
4943 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
4944
4945 2008-08-20 Jose Ruiz <ruiz@adacore.com>
4946
4947 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
4948 to get access to the per-task errno variable.
4949 (__set_errno for MaRTE): Do not redefine this function here since it is
4950 already defined in MaRTE.
4951
4952 2008-08-20 Tristan Gingold <gingold@adacore.com>
4953
4954 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
4955
4956 2008-08-20 Robert Dewar <dewar@adacore.com>
4957
4958 * freeze.adb: Minor reformatting
4959
4960 * g-comlin.adb: Minor reformatting
4961
4962 * g-socket.adb: Minor reformatting
4963
4964 * g-socthi-mingw.adb: Minor reformatting
4965
4966 * g-stheme.adb: Minor reformatting
4967
4968 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4969
4970 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
4971 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
4972 confusion between partial and full views of an ancestor of the context
4973 type when the parent is a private extension declared in a parent unit,
4974 and full views are available for the context type.
4975
4976 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4977 Robert Dewar <dewar@adacore.com>
4978
4979 PR ada/30827
4980 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
4981 version string.
4982 Move comment in the right place.
4983 * g-comver.adb (Version): Look for a zero-termination in
4984 addition to a closing parenthesis.
4985
4986 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4987
4988 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
4989 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4990 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
4991 Is_Package_Or_Generic_Package instead of hand-crafted tests.
4992
4993 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4994
4995 PR ada/15808
4996 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
4997 as well.
4998
4999 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5000
5001 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
5002
5003 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
5006 for back-copy statements in lieu of that of the actual.
5007
5008 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5009
5010 PR ada/20548
5011 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
5012 setjmp test consistently. Adjust for new behavior of flag_stack_check.
5013 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
5014 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
5015
5016 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
5017
5018 PR ada/36777
5019 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
5020 * sem_attr.adb (Check_Type): The current instance of a protected
5021 object is not a type name.
5022 (Analyze_Access_Attribute): Accept instances of protected objects.
5023 (Analyze_Attribute, Attribute_Address clause): Ditto.
5024 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
5025 the prefix as being the current instance if needed.
5026
5027 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
5028
5029 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
5030 Remove duplicate s-win32.o. Add s-winext.o.
5031
5032 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
5033
5034 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
5035 with SOSC.SOCK__STREAM.
5036 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
5037 SOSC.MSG_OOB.
5038
5039 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5040
5041 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
5042 * gsocket.h, socket.c: Update to support RTEMS.
5043 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
5044
5045 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
5046 Robert Dewar <dewar@adacore.com>
5047
5048 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
5049 left argument even when right argument is 0.
5050 (Expand_N_Op_Mod): Ditto when right argument is 1.
5051 (Expand_N_Op_Multiply): Ditto when any argument is 0.
5052 (Expand_N_Op_Rem): Ditto when right argument is 1.
5053
5054 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5055
5056 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
5057 by warn_unused.
5058
5059 2008-08-08 Ed Schonberg <schonberg@adacore.com>
5060
5061 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
5062 from Freeze_Entity. Used to generate cross-reference information for
5063 types declared in generic packages.
5064
5065 2008-08-08 Thomas Quinot <quinot@adacore.com>
5066
5067 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
5068 compatibility shim.
5069
5070 2008-08-08 Thomas Quinot <quinot@adacore.com>
5071
5072 * gsocket.h:
5073 On Windows, include <errno.h> and redefine only selected errno values
5074 from their <winsock2.h> definitions.
5075
5076 * s-osinte-freebsd.ads: Minor reformatting
5077
5078 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
5079
5080 * g-soccon.ads: New file.
5081
5082 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
5083 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
5084 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
5085 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
5086 unit, to allow building software that depends on this internal unit
5087 with both older and newer compilers.
5088
5089 2008-08-08 Robert Dewar <dewar@adacore.com>
5090
5091 * s-strxdr.adb: Minor reformatting
5092
5093 2008-08-08 Bob Duff <duff@adacore.com>
5094
5095 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
5096 checking for integer operations (including division by zero)", which
5097 is wrong -- divide by zero is not part of overflow checking.
5098 Also added misc clarification about what check-suppression means.
5099
5100 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
5101
5102 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
5103
5104 * g-comlin.adb (Add_Switch): Handle addition of switches at the
5105 begining of the command line.
5106 (Append, Add): Renaming of Append to Add as this now allows addition
5107 at the begining of the list.
5108
5109 * g-comlin.ads (Add_Switch): Handle addition of switches at the
5110 begining of the command line.
5111
5112 2008-08-08 Thomas Quinot <quinot@adacore.com>
5113
5114 * g-sercom.ads:
5115 (Name): Document application scope (only legacy PC serial ports on
5116 Linux and Windows).
5117
5118 2008-08-08 Thomas Quinot <quinot@adacore.com>
5119
5120 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
5121 previous change, not needed after all.
5122
5123 2008-08-08 Ed Schonberg <schonberg@adacore.com>
5124
5125 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
5126 exclusion indicator is present
5127
5128 2008-08-08 Robert Dewar <dewar@adacore.com>
5129
5130 * g-comlin.adb: Minor code reorganization
5131 Minor reformatting
5132
5133 * g-comlin.ads: Minor reformatting
5134
5135 * s-fileio.adb: Minor reformatting
5136
5137 * sem_attr.adb: Minor code reorganization (use Nkind_In)
5138 Minor reformatting
5139
5140 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
5141
5142 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
5143 with s-oscons-tmplt.i.
5144
5145 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
5146
5147 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
5148
5149 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5150
5151 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
5152 of incomplete type.
5153
5154 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
5155 of a formal parameter of an incomplete type. Improve error message for
5156 other improper uses of incomplete types.
5157
5158 2008-08-06 Robert Dewar <dewar@adacore.com>
5159
5160 * gnat_ugn.texi: Clarify -gnato documentation
5161
5162 2008-08-06 Thomas Quinot <quinot@adacore.com>
5163
5164 * gcc-interface/Makefile.in,
5165 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
5166 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
5167 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
5168 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
5169 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
5170 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
5171 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
5172 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
5173 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
5174 Remove GNAT.Sockets.Constants. This internal package is replaced by
5175 System.OS_Constants.
5176
5177 2008-08-06 Thomas Quinot <quinot@adacore.com>
5178
5179 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
5180 Remove obsolete targets referencing gen-soccon
5181 When generating s-oscons.ads, use a file name that includes the
5182 THREAD_KIND, to ensure that the (potentially different) version from a
5183 previous build with a different threads flavour does not get reused.
5184
5185 2008-08-06 Thomas Quinot <quinot@adacore.com>
5186
5187 * sem_res.adb: Minor reformatting
5188
5189 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
5190 only when the operating system reports a non-existing file or directory
5191 (ENOENT), otherwise raise Name_Error.
5192
5193 * exp_ch11.adb: Minor reformatting
5194
5195 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5196
5197 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
5198 incomplete, add the access_to_subprogram type to the list of private
5199 dependents only if the incomplete type will be completed in the current
5200 scope.
5201 (Build_Discriminant_Constraints): If the type of the discriminant is
5202 access_to_variable, reject a constraint that is access_to_constant.
5203
5204 2008-08-06 Thomas Quinot <quinot@adacore.com>
5205
5206 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
5207 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
5208 g-sttsne-dummy.ads: New files.
5209
5210 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
5211 with pragma Unimplemented_Unit for sockets packages on Nucleus.
5212
5213 2008-08-06 Pascal Obry <obry@adacore.com>
5214
5215 * adaint.c: Another fix for ACL support on Windows.
5216
5217 2008-08-06 Javier Miranda <miranda@adacore.com>
5218
5219 * exp_disp (Expand_Interface_Actuals): Adds missing support for
5220 expansion of calls to subprograms using selected components.
5221
5222 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5223
5224 * sem_res.adb (Resolve_Call): Use base type to determine whether a
5225 dereference is needed because a subtype of an access_to_subprogram is
5226 simply an access-subtype
5227
5228 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
5229
5230 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
5231 parameters, always specify the expected separator.
5232
5233 2008-08-06 Thomas Quinot <quinot@adacore.com>
5234
5235 * xnmake.adb: Use new XUtil package for platform independent text
5236 output.
5237
5238 2008-08-06 Vincent Celier <celier@adacore.com>
5239
5240 * gnat_ugn.texi: Document compiler switch -gnateG
5241
5242 2008-08-06 Quentin Ochem <ochem@adacore.com>
5243
5244 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
5245 in the case of an empty pattern size.
5246 (Compute_Result): Do not do any computation in the case of an empty
5247 pattern size.
5248 (Report_Result): Fixed computation of the overflow guard.
5249
5250 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5251
5252 * g-awk.adb (Finalize): Do not use directly objects of the type in the
5253 finalization routine to prevent elaboration order anomalies in new
5254 finalization scheme.
5255
5256 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5257
5258 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
5259 declaration for the same type.
5260
5261 2008-08-06 Thomas Quinot <quinot@adacore.com>
5262
5263 * sem.adb: Minor rewording (comment)
5264
5265 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
5266
5267 * g-comlin.adb (Define_Switch, Get_Switches): New.
5268 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
5269 ungrouping switches.
5270 (For_Each_Simple_Switch): Allow more control over parameters handling.
5271 This generic method now allows ungrouping of switches with parameters
5272 and switches with more than one letter after the prefix.
5273 (Set_Command_Line): Take care of switches that are prefixed with a
5274 switch handling parameters without delimiter (-gnatya and -gnaty3 for
5275 example).
5276 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
5277 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
5278 the operation.
5279 (Start, Alias_Switches, Group_Switches): Take care of parameters
5280 possibly present inside a group.
5281
5282 * g-comlin.ads (Define_Switch): New method used to define a list of
5283 expected switches, that are necessary for correctly ungrouping switches
5284 with more that one character after the prefix.
5285 (Get_Switches): Method that builds a getopt string from the list of
5286 switches as set previously by Define_Switch.
5287 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
5288 status of the operation. Also allow the removal of switches with
5289 parameters only.
5290 (Command_Line_Configuration_Record): Maintain a list of expected
5291 switches.
5292
5293 2008-08-06 Doug Rupp <rupp@adacore.com>
5294
5295 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
5296 TARGET_MALLOC64 clear.
5297
5298 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
5299 if TARGET_MALLOC64 clear.
5300
5301 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
5302 (TARGET_MALLC64): New macro. Default to clear.
5303
5304 2008-08-06 Doug Rupp <rupp@adacore.com>
5305
5306 * gcc-interface/utils2.c (snames.h) Include
5307 (TARGET_ABI_OPEN_VMS): Initialize.
5308 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
5309 for Convention C.
5310
5311 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5312
5313 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
5314 null exclusion in a discriminant declaration
5315
5316 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
5317 indicators when type is not an access type.
5318
5319 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
5320 indicators when type is not an access type.
5321
5322 2008-08-06 Javier Miranda <miranda@adacore.com>
5323
5324 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
5325 with the target interface before expanding the code of the interface
5326 conversion.
5327
5328 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5329
5330 * freeze.adb:
5331 (Freeze_Entity): A deferred constant does not violate the restriction
5332 No_Default_Initialization,
5333
5334 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
5335 can carry a null exclusion indicator, and on which an error may be
5336 posted if the indicator is redundant.
5337
5338 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
5339 does not apply to a subtype mark that already excludes null.
5340
5341 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
5342 exclusion does not apply to a subtype mark that already excludes null.
5343
5344 2008-08-05 Thomas Quinot <quinot@adacore.com>
5345
5346 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
5347
5348 2008-08-05 Doug Rupp <rupp@adacore.com>
5349
5350 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
5351
5352 2008-08-05 Thomas Quinot <quinot@adacore.com>
5353
5354 * gsocket.h: Make this file includable in a Nucleus environment, which
5355 does not support sockets.
5356
5357 * socket.c: Remove Nucleus-specific hack.
5358
5359 2008-08-05 Pascal Obry <obry@adacore.com>
5360
5361 * adaint.c: Remove support for readable attribute on vxworks and nucleus
5362
5363 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5364
5365 * sem_attr.adb:
5366 (Analyze_Attribute, case 'Result): handle properly the case where some
5367 operand of the expression in a post-condition generates a transient
5368 block.
5369
5370 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
5371 right-hand side when it is an anonymous access_to_subprogram, to force
5372 static accessibility check when needed.
5373
5374 2008-08-05 Sergey Rybin <rybin@adacore.com>
5375
5376 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
5377 rule according to the change in the rule option.
5378 Add documentation for -gnatw.b/-gnatw.B
5379
5380 2008-08-05 Robert Dewar <dewar@adacore.com>
5381
5382 * ug_words: Add entries for -gnatw.b/-gnatw.B
5383
5384 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
5385
5386 2008-08-05 Vincent Celier <celier@adacore.com>
5387
5388 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
5389 (File).
5390
5391 * a-ztdeio.adb: Ditto.
5392
5393 2008-08-05 Pascal Obry <obry@adacore.com>
5394
5395 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
5396 readable attribute.
5397
5398 2008-08-05 Vincent Celier <celier@adacore.com>
5399
5400 * s-wchwts.adb:
5401 (Wide_String_To_String): Returns a String with the same 'First as its
5402 parameter S.
5403 (Wide_Wide_String_To_String): Ditto
5404
5405 * s-wchwts.ads:
5406 (Wide_String_To_String): Document that the lowest index of the returned
5407 String is equal to S'First.
5408
5409 2008-08-05 Thomas Quinot <quinot@adacore.com>
5410
5411 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
5412
5413 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
5414 s-oscons.ads
5415
5416 2008-08-05 Robert Dewar <dewar@adacore.com>
5417
5418 * opt.ads (Warn_On_Biased_Representation): New flag
5419
5420 * sem_ch13.adb:
5421 (Analyze_Attribute_Definition_Clause): Issue warning when biased
5422 representation is required.
5423 (Minimum_Size): Don't allow biasing if enum rep clause case
5424
5425 * sem_warn.adb:
5426 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
5427 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
5428
5429 * usage.adb: Add lines for -gnatw.b/B switches
5430
5431 2008-08-05 Pascal Obry <obry@adacore.com>
5432
5433 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
5434
5435 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
5436
5437 2008-08-05 Thomas Quinot <quinot@adacore.com>
5438
5439 * socket.c: Minor reformatting.
5440
5441 2008-08-05 Robert Dewar <dewar@adacore.com>
5442
5443 * sem_ch3.adb: Minor reformatting
5444
5445 * prj-nmsc.adb: Minor reformatting
5446
5447 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5448
5449 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
5450 visibility check on the component type if the simple test fails.
5451
5452 2008-08-05 Jose Ruiz <ruiz@adacore.com>
5453
5454 * init.c (__gnat_install_handler for linux): If we are building the
5455 Xenomai run time then we need to do two additional things: avoid
5456 memory swapping and transform the Linux environment task into a native
5457 Xenomai task.
5458
5459 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
5460 time): Use interface to Xenomai native skin and avoid linux-specific
5461 way of setting CPU affinity.
5462 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
5463
5464 2008-08-05 Bob Duff <duff@adacore.com>
5465
5466 * checks.ads: Minor comment fix
5467
5468 2008-08-05 Thomas Quinot <quinot@adacore.com>
5469
5470 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
5471 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
5472 CS8.
5473
5474 2008-08-05 Robert Dewar <dewar@adacore.com>
5475
5476 * mlib.adb: Minor code reorganization
5477 Minor reformatting
5478
5479 * make.adb: Minor reformatting
5480
5481 * prj-attr.ads: Minor reformatting
5482
5483 * s-os_lib.adb: Minor reformatting
5484
5485 * s-fileio.adb: Minor code reorganization
5486 Minor reformatting
5487
5488 * prj.ads: Minor reformatting
5489
5490 2008-08-05 Bob Duff <duff@adacore.com>
5491
5492 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
5493 unresolved initial value of "null", because it causes implicitly
5494 generated "=" operators to be ambiguous, and because this type should
5495 not be passed to gigi.
5496
5497 2008-08-05 Vincent Celier <celier@adacore.com>
5498
5499 * mlib.adb: Update comments.
5500
5501 * make.adb (Switches_Of): Check for Switches (others), before checking
5502 for Default_Switches ("Ada").
5503 (Gnatmake): Use Builder'Switches (others) in preference to
5504 Builder'Default_Switches ("Ada") if there are several mains.
5505
5506 * prj-attr-pm.adb:
5507 (Add_Attribute): Add component Others_Allowed in Attribute_Record
5508 aggregate.
5509
5510 * prj-attr.adb:
5511 Add markers to indicates that attributes Switches allow others as index
5512 (Others_Allowed_For): New Boolean function, returning True for
5513 attributes with the mark.
5514 (Initialize): Recognize optional letter 'O' as the marker for
5515 associative array attributes where others is allowed as the index.
5516
5517 * prj-attr.ads:
5518 (Others_Allowed_For): New Boolean function
5519 (Attribute_Record): New Boolean component Others_Allowed
5520
5521 * prj-dect.adb:
5522 (Parse_Attribute_Declaration): For associative array attribute where
5523 others is allowed as the index, allow others as an index.
5524
5525 * prj-nmsc.adb:
5526 (Process_Binder): Skip associative array attributes with index others
5527 (Process_Compiler): Ditto
5528
5529 * prj-util.adb:
5530 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
5531 index is All_Other_Names.
5532
5533 * prj.ads:
5534 (All_Other_Names): New constant
5535
5536 * prj-proc.adb:
5537 (Process_Declarative_Items): Skip associative array attribute when index
5538 is reserved word "others".
5539
5540 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
5541
5542 * gen-oscons.c: Adapt for VMS where termios.h is not available.
5543
5544 2008-08-05 Thomas Quinot <quinot@adacore.com>
5545
5546 * a-rttiev.adb: Minor reformatting (comments)
5547
5548 * gen-soccon.c: Rename to gen-oscons.c
5549
5550 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
5551 GNAT.Sockets.Constants.
5552 Add new constants for GNAT.Serial_Communications and System.File_IO.
5553
5554 2008-08-05 Javier Miranda <miranda@adacore.com>
5555
5556 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
5557 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
5558 implementation of this routine has been simplified.
5559
5560 2008-08-05 Pascal Obry <obry@adacore.com>
5561
5562 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
5563 Set_Read_Only Win32 implementation.
5564
5565 2008-08-05 Thomas Quinot <quinot@adacore.com>
5566
5567 * exp_strm.adb: Minor reformatting (comments)
5568
5569 * sem_ch12.adb: Minor reformatting.
5570
5571 2008-08-05 Robert Dewar <dewar@adacore.com>
5572
5573 * sem_ch3.adb: Minor reformatting
5574
5575 * checks.adb: Minor reformatting
5576
5577 2008-08-05 Thomas Quinot <quinot@adacore.com>
5578
5579 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
5580 restriction on Prefix.
5581
5582 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
5583
5584 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
5585 methods needed to handle switch sections when building a command line.
5586 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
5587 Current_Section): New public methods or methods modified to handle
5588 building command lines with sections.
5589 (Set_Command_Line): Take into account sections when analysing a switch
5590 string.
5591 (Start): Sort the switches by sections before iterating the command line
5592 elements.
5593
5594 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
5595 Is_New_Section, Current_Section): New methods or methods modified to
5596 handle building command lines with sections.
5597
5598 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5599
5600 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
5601 discriminants, indicate that the corresponding object declaration has
5602 no initialization, to prevent spurious warnings when the access type is
5603 null-excluding.
5604
5605 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5606
5607 * sem_res.adb (Resolve_Call): If this is a call to the predefined
5608 Abort_Task, warn if the call appears within a protected operation.
5609
5610 2008-08-04 Robert Dewar <dewar@adacore.com>
5611
5612 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
5613
5614 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5615
5616 * sem_ch3.adb:
5617 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
5618 anonymous access to protected subprogram that is the return type of the
5619 specification of a subprogram body.
5620
5621 * sem_ch6.adb:
5622 (Analyze_Subprogram_Body): if the return type is an anonymous access to
5623 subprogram, freeze it now to prevent access anomalies in the back-end.
5624
5625 * exp_ch9.adb: Minor code cleanup.
5626 Make sure that new declarations are inserted into the tree before
5627 analysis (from code reading).
5628
5629 2008-08-04 Robert Dewar <dewar@adacore.com>
5630
5631 * exp_ch5.adb:
5632 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
5633 at point of return.
5634
5635 2008-08-04 Thomas Quinot <quinot@adacore.com>
5636
5637 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
5638
5639 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
5640
5641 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
5642
5643 2008-08-04 Javier Miranda <miranda@adacore.com>
5644
5645 * sem_prag.adb (Process_Convention): Add missing support for
5646 N_Private_Extension_Declaration nodes.
5647
5648 2008-08-04 Robert Dewar <dewar@adacore.com>
5649
5650 * exp_ch4.adb: Minor reformatting
5651
5652 2008-08-04 Pascal Obry <obry@adacore.com>
5653
5654 * adaint.h: Add missing prototype.
5655
5656 * adaint.c: Refine support for Windows file attributes.
5657
5658 2008-08-04 Robert Dewar <dewar@adacore.com>
5659
5660 * sem_res.adb:
5661 (Valid_Conversion): Catch case of designated types having different
5662 sizes, even though they statically match.
5663
5664 2008-08-04 Javier Miranda <miranda@adacore.com>
5665
5666 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
5667 added in previous patch to handle access to subprograms.
5668
5669 2008-08-04 Robert Dewar <dewar@adacore.com>
5670
5671 * freeze.adb:
5672 (Freeze_Entity): Only check No_Default_Initialization restriction for
5673 constructs that come from source
5674
5675 2008-08-04 Thomas Quinot <quinot@adacore.com>
5676
5677 * exp_ch6.adb: Minor comment fix.
5678
5679 * sem_ch4.adb: Minor reformatting.
5680
5681 2008-08-04 Robert Dewar <dewar@adacore.com>
5682
5683 * sem_res.adb: (Large_Storage_Type): Improve previous change.
5684
5685 2008-08-04 Pascal Obry <obry@adacore.com>
5686
5687 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
5688 file attributes.
5689
5690 2008-08-04 Javier Miranda <miranda@adacore.com>
5691
5692 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
5693 for N_Formal_Object_Declaration nodes. Adding kludge required by
5694 First_Formal to provide its functionality with access to functions.
5695 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
5696 for anonymous access types returned by functions.
5697
5698 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
5699 conversion of null-excluding access types (required only once to force
5700 the generation of the required runtime check).
5701
5702 * sem_type.adb (Covers): minor reformating
5703
5704 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
5705 with internally generated nodes. Avoid generating the error inside init
5706 procs.
5707
5708 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
5709 (Resolve_Null): Generate the null-excluding check in case of assignment
5710 to a null-excluding object.
5711 (Valid_Conversion): Add missing support for anonymous access to
5712 subprograms.
5713
5714 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
5715 anonymous access types whose designated type is an itype. This case
5716 occurs with anonymous access to protected subprograms types.
5717 (Analyze_Return_Type): Add missing support for anonymous access to
5718 protected subprogram.
5719
5720 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
5721 subprograms addition of missing check on matching convention. Required
5722 to properly handle access to protected subprogram types.
5723
5724 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
5725 null excluding access types.
5726
5727 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5728
5729 * sem_ch12.adb: Add comments
5730
5731 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
5732 access type and the allocator is not initialized, warn rather than
5733 reporting an error.
5734
5735 2008-08-04 Robert Dewar <dewar@adacore.com>
5736
5737 * exp_ch4.adb: Minor reformatting
5738
5739 * exp_dist.adb: Minor reformatting
5740
5741 * g-comlin.adb: Minor reformatting
5742
5743 2008-08-04 Gary Dismukes <dismukes@adacore.com>
5744
5745 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
5746 target to the type of the aggregate in the case where the target object
5747 is class-wide.
5748
5749 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
5750 result type is class-wide and inherently limited, and the expression
5751 has a specific type, create a return object of the specific type, for
5752 more efficient handling of returns of build-in-place aggregates (avoids
5753 conversions of the class-wide return object to the specific type on
5754 component assignments).
5755
5756 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
5757 about a type mismatch for a class-wide function with a return object
5758 having a specific type when the object declaration doesn't come from
5759 source. Such an object can result from the expansion of a simple return.
5760
5761 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
5762
5763 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
5764
5765 * gcc-interface/Makefile.in: Use 64bit-specific system files when
5766 compiling for 64bit windows.
5767
5768 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
5769
5770 * g-comlin.adb (Group_Switches): Preserve the switch order when
5771 grouping and allow switch grouping of switches with more than one
5772 character extension (e.g. gnatw.x).
5773 (Args_From_Expanded): Remove this now obsolete method.
5774
5775 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5776
5777 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
5778 chain at once, to ensure that type is properly decorated for back-end,
5779 when allocator appears within a loop.
5780
5781 2008-08-04 Kevin Pouget <pouget@adacore.com>
5782
5783 * snames.h, snames.adb, snames.ads:
5784 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
5785
5786 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
5787 Build_To_Any_Call and Build_TypeCode_Call procedures.
5788
5789 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
5790
5791 * rtsfind.ads: Add corresponding names.
5792
5793 * tbuild.adb: Update prefix restrictions to allow '_' character.
5794
5795 2008-08-04 Doug Rupp <rupp@adacore.com>
5796
5797 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
5798 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
5799 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
5800 use it. Calculate pointer range overflow using 64bit types.
5801
5802 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5803
5804 * sem_ch3.adb (Access_Definition): A formal object declaration is a
5805 legal context for an anonymous access to subprogram.
5806
5807 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
5808 indirect call, report success to the caller to include possible
5809 interpretation.
5810
5811 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
5812 check when the type
5813 of the extended return is an anonymous access_to_subprogram type.
5814
5815 * sem_res.adb:
5816 (Resolve_Call): Insert a dereference if the type of the subprogram is an
5817 access_to_subprogram and the context requires its return type, and a
5818 dereference has not been introduced previously.
5819
5820 2008-08-04 Arnaud Charlet <charlet@adacore.com>
5821
5822 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
5823 gnatcheck support in GPS.
5824
5825 2008-08-04 Vincent Celier <celier@adacore.com>
5826
5827 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
5828 requested
5829
5830 2008-08-04 Vincent Celier <celier@adacore.com>
5831
5832 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
5833 variable, but don't check the resulting value as it has no impact on
5834 the processing.
5835
5836 * opt.ads:
5837 (Generate_Processed_File): New Boolean flag, set to True in the compiler
5838 when switch -gnateG is used.
5839
5840 * prep.adb:
5841 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
5842 when the source is modified by the preprocessor and there is no
5843 preprocessing errors.
5844
5845 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
5846
5847 * sinput-l.adb:
5848 (Load_File): Output the result of preprocessing if the source text was
5849 modified.
5850
5851 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
5852
5853 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
5854
5855 * ug_words: Add VMS equivalent for -gnateG
5856
5857 * vms_data.ads:
5858 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
5859
5860 2008-08-04 Doug Rupp <rupp@adacore.com>
5861
5862 * gcc-interface/utils2.c:
5863 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
5864 in 32bit descriptor.
5865
5866 2008-08-04 Robert Dewar <dewar@adacore.com>
5867
5868 * par-ch10.adb: Minor reformatting
5869
5870 * i-cobol.adb: Minor reformatting.
5871
5872 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5873
5874 * sem_ch3.adb (Access_Definition): Create an itype reference for an
5875 anonymous access return type of a regular function that is not a
5876 compilation unit.
5877
5878 2008-08-04 Vincent Celier <celier@adacore.com>
5879
5880 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
5881
5882 * snames.adb: New standard name Global_Compilation_Switches
5883
5884 * snames.ads: New standard name Global_Compilation_Switches
5885
5886 * make.adb: Correct spelling error in comment
5887
5888 2008-08-04 Arnaud Charlet <charlet@adacore.com>
5889
5890 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
5891 target.
5892
5893 2008-08-04 Thomas Quinot <quinot@adacore.com>
5894
5895 * sem_ch10.adb: Minor comment fix.
5896
5897 2008-08-04 Robert Dewar <dewar@adacore.com>
5898
5899 * restrict.adb: Improved messages for restriction warnings
5900
5901 * restrict.ads: Improved messages for restriction messages
5902
5903 * s-rident.ads (Profile_Name): Add No_Profile
5904
5905 2008-08-04 Robert Dewar <dewar@adacore.com>
5906
5907 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
5908
5909 2008-08-04 Robert Dewar <dewar@adacore.com>
5910
5911 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
5912
5913 2008-08-04 Vincent Celier <celier@adacore.com>
5914
5915 * prj-proc.adb:
5916 (Copy_Package_Declarations): When inheriting package Naming from a
5917 project being extended, do not inherit source exception names.
5918
5919 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5920
5921 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
5922 list of declaration to find previous subprogram, do not go to the
5923 original node of a generic unit.
5924
5925 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
5926
5927 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
5928 New case. Convert BOOLEAN_TYPE operation to the default integer type.
5929
5930 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5931
5932 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
5933 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
5934 and adjust for above renaming.
5935 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
5936 gnu_expr_alt_type parameter. Convert the expression to it instead
5937 of changing its type in place.
5938 (build_function_stub): Adjust call to above function.
5939
5940 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5941
5942 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
5943 code. Do not get full definition of deferred constants with address
5944 clause for a use. Do not ignore deferred constant definitions with
5945 address clause. Ignore constant definitions already marked with the
5946 error node.
5947 <object>: Remove obsolete comment. For a deferred constant with
5948 address clause, get the initializer from the full view.
5949 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
5950 Rework and remove obsolete comment.
5951 <N_Object_Declaration>: For a deferred constant with address clause,
5952 mark the full view with the error node.
5953 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
5954 formatting nits.
5955
5956 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
5957
5958 * rtsfind.ads: Add block IO versions of stream routines for Strings.
5959
5960 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
5961 sem_prag.adb, snames.adb, snames.ads, snames.h,
5962 par-prag.adb: Undo previous stream related changes.
5963
5964 * s-rident.ads: Add new restriction No_Stream_Optimizations.
5965
5966 * s-ststop.ads, s-ststop.adb: Comment reformatting.
5967 Define enumeration type to designate different IO mechanisms.
5968 Enchance generic package Stream_Ops_Internal to include an
5969 implementation of Input and Output.
5970
5971 * exp_attr.adb (Find_Stream_Subprogram): If restriction
5972 No_Stream_Optimization is active, choose the default byte IO
5973 implementations of stream attributes for Strings.
5974 Otherwise use the corresponding block IO version.
5975
5976 2008-08-01 Olivier Hainque <hainque@adacore.com>
5977
5978 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
5979 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
5980
5981 2008-08-01 Robert Dewar <dewar@adacore.com>
5982
5983 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
5984 convert plain identifier into defining identifier.
5985
5986 2008-08-01 Robert Dewar <dewar@adacore.com>
5987
5988 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
5989 warnings
5990
5991 * lib-xref.adb: Add error defense.
5992
5993 2008-08-01 Bob Duff <duff@adacore.com>
5994
5995 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
5996
5997 2008-08-01 Gary Dismukes <dismukes@adacore.com>
5998
5999 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
6000 correct accessibility levels. In the "when others" case, retrieve the
6001 access level of the Etype of Prev rather than Prev_Orig, because the
6002 original exression has not always been analyzed.
6003
6004 2008-08-01 Robert Dewar <dewar@adacore.com>
6005
6006 * prj-nmsc.adb: Minor reformatting
6007
6008 * sem_ch4.adb: Minor reformatting
6009 Minor code reorganization
6010
6011 * prj.ads: Minor reformatting
6012
6013 * s-os_lib.adb: Minor reformatting
6014
6015 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
6016 half encodings
6017
6018 * scans.ads: Minor reformatting.
6019
6020 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
6021 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
6022
6023 * sem_res.adb:
6024 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6025
6026 * sem_ch12.adb: Minor comment reformatting
6027
6028 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
6029 keyword
6030
6031 2008-08-01 Robert Dewar <dewar@adacore.com>
6032
6033 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
6034 generating code
6035
6036 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6037
6038 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
6039 converted is a real literal and the target type has static bounds,
6040 perform the conversion exactly to prevent floating-point anomalies on
6041 some targets.
6042
6043 2008-08-01 Vincent Celier <celier@adacore.com>
6044
6045 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
6046
6047 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
6048
6049 * prj.adb (Object_Exist_For): Use Object_Generated, not
6050 Objects_Generated that is removed and was never modified anyway.
6051
6052 * prj.ads:
6053 (Path_Syntax_Kind): New enumeration type
6054 (Language_Config): New component Path_Syntax, defaulted to Host.
6055 Components PIC_Option and Objects_Generated removed, as they are not
6056 used.
6057
6058 * snames.adb: New standard name Path_Syntax
6059
6060 * snames.ads: New standard name Path_Syntax
6061
6062 2008-08-01 Vincent Celier <celier@adacore.com>
6063
6064 * mlib-utl.adb:
6065 (Adalib_Path): New variable to store the path of the adalib directory
6066 when procedure Specify_Adalib_Dir is called.
6067 (Lib_Directory): If Adalib_Path is not null, return its value
6068 (Specify_Adalib_Dir): New procedure
6069
6070 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
6071
6072 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6073
6074 * sem_prag.adb:
6075 (Check_Precondition_Postcondition): If not generating code, analyze the
6076 expression in a postcondition that appears in a subprogram body, so that
6077 it is properly decorated for ASIS use.
6078
6079 2008-08-01 Gary Dismukes <dismukes@adacore.com>
6080
6081 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
6082 Orig_Prev to Prev in the case where the actual is N_Function_Call or
6083 N_Identifier. This was interfering with other cases that are rewritten
6084 as N_Identifier, such as allocators, resulting in passing of the wrong
6085 accessibility level, and based on testing this code is apparently no
6086 longer needed at all.
6087
6088 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6089
6090 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
6091 procedure call whose prefix
6092 is a parameterless function call that returns an access_to_procedure.
6093
6094 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6095
6096 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
6097 for RTX. Adding a suffix that is incremented at each iteration.
6098
6099 2008-08-01 Robert Dewar <dewar@adacore.com>
6100
6101 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
6102 Raise_Exception
6103
6104 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
6105
6106 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
6107 paths, which are authorized by Windows but can lead to errors when used
6108 elsewhere.
6109
6110 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6111
6112 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
6113 a pending instantiation for the body of a subprogram that is to be
6114 inlined.
6115
6116 * sem_ch12.adb:
6117 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
6118
6119 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
6120 create a pending instance for its body, so that calls to the subprogram
6121 can be inlined by the back-end.
6122
6123 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6124
6125 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
6126 rts-rtx-w32).
6127
6128 2008-08-01 Robert Dewar <dewar@adacore.com>
6129
6130 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
6131
6132 2008-08-01 Doug Rupp <rupp@adacore.com>
6133
6134 * gnat_rm.texi: Document new mechanism Short_Descriptor.
6135
6136 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
6137 mechanism values.
6138
6139 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
6140 mechanism and Short_Descriptor mechanism values.
6141
6142 * snames.adb (preset_names): Add short_descriptor entry.
6143
6144 * snames.ads: Add Name_Short_Descriptor.
6145
6146 * types.h: Add new By_Short_Descriptor mechanism values.
6147
6148 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
6149 mechanism and Short_Descriptor mechanism values.
6150
6151 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
6152 values.
6153 (Descriptor_Codes): Modify range for new mechanism values.
6154
6155 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
6156 mechanism values.
6157
6158 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
6159 (gnat_to_gnu_param): Handle By_Short_Descriptor.
6160
6161 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
6162 (build_vms_descriptor32): New prototype.
6163 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
6164
6165 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
6166 argument in call fill_vms_descriptor.
6167
6168 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
6169 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
6170 (build_vms_descriptor): Renamed from build_vms_descriptor64.
6171 (convert_vms_descriptor32): New function.
6172 (convert_vms_descriptor64): New function.
6173 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
6174 descriptors.
6175
6176 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
6177 no longer needed.
6178
6179 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6180
6181 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
6182 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
6183 name.
6184
6185 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6186
6187 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
6188 current directory so only fully qualified names are allowed.
6189
6190 2008-08-01 Robert Dewar <dewar@adacore.com>
6191
6192 * gnat_ugn.texi:
6193 Minor editing, remove uncomfortable use of semicolon
6194
6195 * s-ststop.adb: Add some ??? comments
6196
6197 * sem_ch10.adb: Minor reformatting
6198
6199 * snames.ads:
6200 Minor comment fixes, some pragmas were not properly
6201 categorized in the comments, documentation change only
6202
6203 * xref_lib.adb: Minor reformatting
6204
6205 * sinput.adb: Minor reformatting
6206
6207 * gnatchop.adb: Minor reformatting
6208
6209 * sem_util.ads: Minor reformatting.
6210
6211 * opt.ads: Minor documentation fix
6212
6213 * scng.adb: Minor reformatting
6214
6215 * prj-part.adb: Update comments
6216
6217 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6218
6219 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
6220 tagged synchronized type, use corresponding record type.
6221
6222 2008-08-01 Doug Rupp <rupp@adacore.com>
6223
6224 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
6225 dummy transfer address for debugging.
6226
6227 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
6228
6229 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
6230
6231 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
6232
6233 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
6234 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
6235
6236 2008-07-31 Pascal Obry <obry@adacore.com>
6237
6238 * prj-nmsc.adb: Keep Object and Exec directory casing.
6239
6240 2008-07-31 Jose Ruiz <ruiz@adacore.com>
6241
6242 * system-rtx-rtss.ads
6243 Change the default stack size. It is important to set the commit part.
6244
6245 * s-taprop-rtx.adb
6246 (Initialize): Get the clock resolution.
6247 (RT_Resolution): Return the clock resolution that is indicated by the
6248 system.
6249
6250 * s-parame-vxworks.adb
6251 Document that this body is used for RTX in RTSS (kernel) mode.
6252
6253 * gcc-interface/Makefile.in
6254 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
6255 s-parame-vxworks.adb body in order to have reasonable stack sizes in
6256 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
6257 cannot ask for too big values.
6258
6259 2008-07-31 Robert Dewar <dewar@adacore.com>
6260
6261 * exp_aggr.adb: Minor reformatting
6262
6263 * makeutl.adb: Minor reformatting
6264
6265 * prj-env.adb: Minor reformatting
6266
6267 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6268
6269 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
6270 tagged type is completed by a concurrent type.
6271
6272 2008-07-31 Gary Dismukes <dismukes@adacore.com>
6273
6274 * sem_aggr.adb:
6275 (Resolve_Record_Aggregate): Bypass error that a type without
6276 components must have a "null record" aggregate when compiling for Ada
6277 2005, since it's legal to give an aggregate of form (others => <>)
6278 for such a type.
6279
6280 2008-07-31 Javier Miranda <miranda@adacore.com>
6281
6282 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
6283 handle synchronized types. Required to handle well the object.operation
6284 notation applied to synchronized types.
6285
6286 2008-07-31 Quentin Ochem <ochem@adacore.com>
6287
6288 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
6289 anymore - just used internally.
6290 Added handling of very small tasks - when the theoretical size is
6291 already full at the point of the call.
6292 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
6293 not need to be added to the result.
6294
6295 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6296
6297 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
6298 corresponding spec is a primitive wrapper. Update comment.
6299
6300 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6301
6302 * bindgen.adb Comment reformatting. Update the list of run-time globals.
6303 (Gen_Adainit_Ada): Add the declaration, import and value set for
6304 configuration flag Canonical_Streams.
6305 (Gen_Adainit_C): Add the declaration and initial value of external
6306 symbol __gl_canonical_streams.
6307
6308 * init.c: Update the list of global values computed by the binder.
6309
6310 * opt.ads: Add flag Canonical_Streams.
6311
6312 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
6313 semantically handled pragmas.
6314
6315 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
6316 (Analyze_Pragma): Add case for pragma Canonical_Streams.
6317
6318 * snames.adb: Add character value for name Canonical_Streams.
6319
6320 * snames.ads:
6321 Add Name_Canonical_Streams to the list of configuration pragmas.
6322 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
6323
6324 * snames.h: Add a definition for Pragma_Canonical_Streams.
6325
6326 * s-ststop.adb:
6327 Add a flag and import to seize the value of external symbol
6328 __gl_canonical_streams. Update comment and initial value of constant
6329 Use_Block_IO.
6330
6331 * gnat_rm.texi: Add section of pragma Canonical_Streams.
6332
6333 * gnat_ugn.texi:
6334 Add pragma Canonical_Streams to the list of configuration pragmas.
6335
6336 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6337
6338 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
6339 has the form A.B.C and B is a unit renaming, analyze its compilation
6340 unit and add a with_clause on A.b to the context.
6341
6342 2008-07-31 Vincent Celier <celier@adacore.com>
6343
6344 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
6345 return the empty string, instead of raising Constraint_Error.
6346
6347 2008-07-31 Gary Dismukes <dismukes@adacore.com>
6348
6349 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
6350
6351 * checks.adb (Apply_Accessibility_Check): Insert the check on
6352 Insert_Node.
6353
6354 * exp_attr.adb:
6355 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
6356 to new parameter Insert_Node on call to Apply_Accessibility_Check.
6357 Necessary to distinguish the insertion node because the dereferenced
6358 formal may come from a rename, but the check must be inserted in
6359 front of the attribute.
6360
6361 * exp_ch4.adb:
6362 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
6363 call to Apply_Accessibility_Check.
6364 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
6365 on call to Apply_Accessibility_Check.
6366 Minor reformatting
6367
6368 2008-07-31 Javier Miranda <miranda@adacore.com>
6369
6370 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
6371 types when the candidate type is a synchronized type.
6372
6373 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
6374 types, and complete management of synchronized types adding missing
6375 code to handle formal that is a synchronized type.
6376
6377 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
6378 are not available and cause the compiler to blowup. Found compiling
6379 test with switch -gnatc
6380
6381 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
6382 Has_Correct_Formal_Mode plus code cleanup.
6383
6384 2008-07-31 Bob Duff <duff@adacore.com>
6385
6386 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
6387 recognized as two end-of-lines, but it should be just one.
6388
6389 2008-07-31 Thomas Quinot <quinot@adacore.com>
6390
6391 * exp_ch9.adb: Minor reformatting
6392
6393 * tbuild.ads: Fix several occurrences of incorrectly referring to
6394 Name_Find as Find_Name.
6395
6396 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6397
6398 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
6399 and the context is an object declaration with non-static bounds, treat
6400 the aggregate as non-static.
6401
6402 2008-07-31 Vincent Celier <celier@adacore.com>
6403
6404 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
6405 Move back spec of Parse_Single_Project to body, as it is not called
6406 outside of package Prj.Part.
6407 (Project_Data): Remove components Linker_Name, Linker_Path and
6408 Minimum_Linker_Options as they are no longer set.
6409 Remove function There_Are_Ada_Sources from package Prj and move code
6410 in the only place it was used, in Prj.Env.Set_Ada_Paths.
6411
6412 2008-07-31 Arnaud Charlet <charlet@adacore.com>
6413
6414 * mlib-utl.ads: Fix typo.
6415
6416 2008-07-31 Robert Dewar <dewar@adacore.com>
6417
6418 * sem_ch12.adb: Minor reformatting
6419
6420 2008-07-31 Sergey Rybin <rybin@adacore.com>
6421
6422 * gnat_ugn.texi: Change the description of the
6423 Overly_Nested_Control_Structures: now the rule always requires a
6424 positive parameter for '+R' option
6425
6426 2008-07-31 Thomas Quinot <quinot@adacore.com>
6427
6428 * g-pehage.adb: Minor reformatting
6429
6430 2008-07-31 Pascal Obry <obry@adacore.com>
6431
6432 * s-finimp.ads: Minor reformatting.
6433
6434 2008-07-31 Vincent Celier <celier@adacore.com>
6435
6436 * s-regexp.ads: Minor comment fix
6437
6438 2008-07-31 Arnaud Charlet <charlet@adacore.com>
6439
6440 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
6441 so that we can compile this file successfully with -gnatc.
6442
6443 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6444
6445 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
6446 of the type when looking for stream subprograms for type String,
6447 Wide_String and Wide_Wide_String.
6448
6449 * s-ststop.adb: Change the initialization expression of constant
6450 Use_Block_IO.
6451
6452 2008-07-31 Geert Bosch <bosch@adacore.com>
6453
6454 * arit64.c:
6455 New file implementing __gnat_mulv64 signed integer multiplication with
6456 overflow checking
6457
6458 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
6459
6460 * gcc-interface/gigi.h:
6461 (standard_types): Add ADT_mulv64_decl
6462 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
6463
6464 * gcc-interface/utils.c:
6465 (init_gigi_decls): Add initialization of mulv64_decl
6466
6467 * gcc-interface/trans.c:
6468 (build_unary_op_trapv): New function
6469 (build_binary_op_trapv): New function
6470 (gnat_to_gnu): Use the above functions instead of
6471 build_{unary,binary}_op
6472
6473 * gcc-interface/Makefile.in
6474 (LIBGNAT_SRCS): Add arit64.c
6475 (LIBGNAT_OBJS): Add arit64.o
6476
6477 2008-07-31 Vincent Celier <celier@adacore.com>
6478
6479 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
6480 Linker'Default_Switches are declared. Warn if they are declared.
6481
6482 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6483
6484 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
6485 Insert_Actions to place the pointer declaration in the code, rather
6486 than Insert_Before_And_Analyze, so that insertions of temporaries are
6487 kept in the proper order when transient scopes are present.
6488
6489
6490 2008-07-31 Robert Dewar <dewar@adacore.com>
6491
6492 * einfo.adb (Spec_PPC): Now defined for generic subprograms
6493
6494 * einfo.ads (Spec_PPC): Now defined for generic subprograms
6495
6496 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
6497 subprogram case
6498
6499 2008-07-31 Vincent Celier <celier@adacore.com>
6500
6501 * s-os_lib.adb: Minor comment fix
6502
6503 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6504
6505 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
6506 transfer pre/postconditions from generic copy to original tree, so that
6507 they will appear in each instance.
6508 (Process_PPCs): Do not transform postconditions into a procedure in a
6509 generic context, to prevent double expansion of check pragmas.
6510
6511 * sem_attr.adb: In an instance, the prefix of the 'result attribute
6512 can be the renaming of the
6513 current instance, so check validity of the name accordingly.
6514
6515 2008-07-31 Robert Dewar <dewar@adacore.com>
6516
6517 * mlib-utl.ads: Minor reformatting
6518
6519 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6520
6521 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
6522 from context. This attribute must be usable in Ada95 mode.
6523 The attribute can appear in the body of a function marked
6524 Inline_Always, but in this case the postocondition is not enforced.
6525
6526 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
6527 of an inlined call pre- and postconditions are legal
6528
6529 2008-07-31 Vincent Celier <celier@adacore.com>
6530
6531 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
6532 were for gprmake only
6533
6534 2008-07-31 Robert Dewar <dewar@adacore.com>
6535
6536 * gnat_ugn.texi: Update -gnatN documentation.
6537
6538 * gnat_rm.texi: Add note about pre/postcondition
6539 pragmas not checked in conjunction with front-end inlining.
6540
6541 2008-07-31 Robert Dewar <dewar@adacore.com>
6542
6543 * g-pehage.adb, g-pehage.ads: Minor reformatting
6544
6545 2008-07-31 Arnaud Charlet <charlet@adacore.com>
6546
6547 * mlib-utl.ads, prj-makr.ads: Add comments.
6548
6549 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6550
6551 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
6552 [WINDOWS]: Add s-winext.o.
6553
6554 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
6555
6556 PR ada/36554
6557 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
6558 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
6559 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
6560 Set precision to 1 for subtype of BOOLEAN_TYPE.
6561 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
6562 (make_type_from_size): Deal with BOOLEAN_TYPE.
6563 * gcc-interface/misc.c (gnat_print_type): Likewise.
6564 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
6565 Set boolean_type_node as its translation in the table, as well
6566 as boolean_false_node for False and boolean_true_node for True.
6567 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
6568 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
6569 (create_param_decl): Deal with BOOLEAN_TYPE.
6570 (build_vms_descriptor): Likewise.
6571 (build_vms_descriptor64): Likewise.
6572 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
6573
6574 2008-07-30 Robert Dewar <dewar@adacore.com>
6575
6576 * exp_ch9.adb: Minor reformatting
6577
6578 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
6579 if no primitive operation is found.
6580
6581 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
6582
6583 * sem_ch8.adb: Minor reformatting
6584
6585 2008-07-30 Laurent Pautet <pautet@adacore.com>
6586
6587 * g-pehage.adb:
6588 Remove a limitation on the length of the words handled by the minimal
6589 perfect hash function generator.
6590
6591 * g-pehage.ads:
6592 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
6593 Fix some typos.
6594
6595 2008-07-30 Robert Dewar <dewar@adacore.com>
6596
6597 * gnatlink.adb: Minor reformatting
6598
6599 2008-07-30 Thomas Quinot <quinot@adacore.com>
6600
6601 * rtsfind.adb (Check_RPC): Check version consistency even when not
6602 generating RCI stubs. Provide more detailed error message in case of
6603 mismatch.
6604
6605 2008-07-30 Ed Schonberg <schonberg@adacore.com>
6606
6607 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
6608 as a actual in an instance, check for a missing attribute to prevent
6609 program_error on an illegal program.
6610
6611 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
6612 error if primitive is not found, so that exception can be handled
6613 elsewhere on illegal programs.
6614
6615 2008-07-30 Robert Dewar <dewar@adacore.com>
6616
6617 * uintp.adb (UI_GCD): Fix potential overflow
6618
6619 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
6620
6621 * einfo.adb: Flag245 is now used.
6622 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
6623 check to include functions.
6624 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
6625 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
6626 include functions.
6627 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
6628 to the list of displayed flags.
6629
6630 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
6631 Wrapped_Entity. These two flags are now present in functions.
6632 New flag Is_Private_Primitive.
6633 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
6634
6635 * exp_ch9.adb:
6636 (Build_Wrapper_Bodies): New subprogram.
6637 (Build_Wrapper_Body): The spec and body have been moved to in
6638 Build_Wrapper_ Bodies. Code cleanup.
6639 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
6640 Wrappers are now generated for primitives declared between the private
6641 and full view of a concurrent type that implements an interface.
6642 (Build_Wrapper_Specs): New subprogram.
6643 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
6644 creation mechanism with a call to Build_Wrapper_Bodies.
6645 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
6646 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
6647 (Expand_N_Task_Body): Replace the wrapper body creation
6648 mechanism with a call to Build_Wrapper_Bodies.
6649 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
6650 creation mechanism with a call to Build_Wrapper_Specs.
6651 (Is_Private_Primitive_Subprogram): New subprogram.
6652 (Overriding_Possible): Code cleanup.
6653 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
6654
6655 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
6656
6657 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
6658 (Process_Full_View): Build wrapper specs for all primitives
6659 that belong to a private view completed by a concurrent type
6660 implementing an interface.
6661
6662 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
6663 is a primitive of a
6664 concurrent type with a private view that implements an interface, try to
6665 find the proper spec.
6666 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
6667 primitive if the type of its first parameter is a non-generic tagged
6668 private type.
6669 (Analyze_Subprogram_Specification): Code reformatting.
6670 (Disambiguate_Spec): New routine.
6671 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
6672 (Is_Private_Concurrent_Primitive): New routine.
6673
6674 * sem_ch6.ads:
6675 (Find_Corresponding_Spec): Add a formal to control the output of errors.
6676
6677 2008-07-30 Doug Rupp <rupp@adacore.com>
6678
6679 * gigi.h (build_vms_descriptor64): New function prototype.
6680 (fill_vms_descriptor): Modified function prototype.
6681
6682 * utils.c (build_vms_descriptor64): New function.
6683
6684 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
6685
6686 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
6687 argument.
6688
6689 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
6690 64bit and 32bit descriptor and save the 64bit version as an alternate
6691 TREE_TYPE in the parameter.
6692 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
6693 thin pointer.
6694
6695 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
6696
6697 2008-07-30 Robert Dewar <dewar@adacore.com>
6698
6699 * make.adb: Minor reformatting
6700
6701 * mlib-utl.adb: Minor reformatting
6702
6703 * osint.ads: Minor reformatting
6704
6705 2008-07-30 Jose Ruiz <ruiz@adacore.com>
6706
6707 * adaint.c
6708 (__gnat_file_exists): Do not use __gnat_stat for RTX.
6709 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
6710 avoid the use of this symbol from libgcc.a in RTX kernel mode.
6711
6712 * cio.c
6713 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
6714 the function RtPrintf for console output.
6715
6716 * argv.c Do not use the environ variable for RTX.
6717
6718 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
6719 been moved before the call to Osint.Add_Default_Search_Dirs in order
6720 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
6721 from the appropriate run time.
6722
6723 * targparm.ads
6724 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
6725 target is a RTSS module for RTX.
6726
6727 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
6728 RTX_RTSS_Kernel_Module
6729 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
6730
6731 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
6732 exception handling mechanism for Windows and RTX in Win32 mode, but
6733 not for RTX in kernel mode (RTSS).
6734 (LIBGNAT_SRCS): Remove ada.h
6735
6736 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
6737
6738 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
6739 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
6740 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
6741 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
6742 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
6743 ALL_ADA_CFLAGS): Remove.
6744 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
6745 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
6746 (GCC_CFLAGS): Remove X_CFLAGS.
6747 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
6748 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
6749 (ADA_CFLAGS): Substitute.
6750
6751 2008-07-30 Laurent Guerby <laurent@guerby.net>
6752
6753 PR ada/5911
6754 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
6755 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
6756 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
6757 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
6758 by stamp-gnatlib2-rts.
6759
6760 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6761
6762 PR documentation/15479
6763 * gnat-style.texi: Remove AdaCore copyright statement and GPL
6764 statement for GNAT. Add @copying stanza, use it. Update to
6765 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
6766 title as Front-Cover Text.
6767 * gnat_rm.texi: Likewise.
6768 * gnat_ugn.texi: Likewise.
6769
6770 2008-07-29 Jan Hubicka <jh@suse.cz>
6771
6772 * trans.c (process_inlined_subprograms): Remove tree_really_inline
6773 check.
6774
6775 2008-07-29 Arnaud Charlet <charlet@adacore.com>
6776
6777 * gcc-interface: New directory.
6778
6779 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
6780 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
6781 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
6782 to gcc-interface subdirectory.
6783
6784 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6785
6786 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
6787
6788 2008-07-28 Jan Hubicka <jh@suse.cz>
6789
6790 * misc.c (gnat_post_options): Do not set flag_no_inline.
6791
6792 2008-07-28 Richard Guenther <rguenther@suse.de>
6793
6794 Merge from gimple-tuples-branch.
6795
6796 2008-07-22 Olivier Hainque <hainque@adacore.com>
6797
6798 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
6799 this is called for an elab proc to be discarded if empty.
6800 * utils.c (end_subprog_body): Honor ELAB_P.
6801 (build_function_stub): Adjust call to end_subprog_body.
6802 * trans.c (Subprogram_Body_to_gnu): Likewise.
6803 (gigi): Reorganize processing of elab procs to prevent
6804 gimplifying twice, using the new end_subprog_body argument.
6805
6806 2008-07-19 Richard Guenther <rguenther@suse.de>
6807
6808 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
6809 (utils.o): Likewise.
6810 * trans.c: Include tree-iterator.h.
6811 (gnat_gimplify_expr): Adjust prototype. Fix typo.
6812 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
6813 (set_expr_location_from_node): Likewise.
6814 (gigi): Tuplify.
6815 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
6816 of GENERIC_NEXT.
6817 * utils.c: Include tree-iterator.h.
6818 * gigi.h (gnat_gimplify_expr): Adjust prototype.
6819
6820 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
6821
6822 * trans.c: Include gimple.h instead of tree-gimple.h.
6823 * utils.c: Same.
6824
6825 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
6826
6827 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
6828
6829 2008-07-25 Jan Hubicka <jh@suse.cz>
6830
6831 * utils.c (end_subprog_body): Remove inline trees check.
6832 * misc.c (gnat_post_options): Do not set flag_inline_trees.
6833
6834 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6835
6836 * raise-gcc.c: Move tsystem.h before tm.h.
6837
6838 2008-07-20 Arnaud Charlet <charlet@adacore.com>
6839
6840 * gnathtml.pl: New file.
6841
6842 2008-07-19 Olivier Hainque <hainque@adacore.com>
6843
6844 * targtyps.c (get_target_default_allocator_alignment): Use
6845 MALLOC_ABI_ALIGNMENT.
6846
6847 2008-07-17 Olivier Hainque <hainque@adacore.com>
6848
6849 * adaint.c (__MINGW32__ section): Include ctype.h and define
6850 a fallback ISALPHA if IN_RTS.
6851 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
6852
6853 2008-07-17 Olivier Hainque <hainque@adacore.com>
6854
6855 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
6856 argument, to apply to references in addition to definitions. Prevent
6857 setting TREE_STATIC on externals.
6858 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
6859
6860 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6861
6862 PR documentation/15479
6863 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
6864 Replace backets around optional parameters with @ovar
6865 where possible, use @r{[}, @r{]} otherwise.
6866 Replace some @r, @i, and @emph with @var where appropriate.
6867
6868 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
6869
6870 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
6871
6872 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6873
6874 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
6875 -Wc++-compat warnings.
6876 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
6877 __gnat_locate_exec_on_path): Likewise.
6878 * decl.c (annotate_value): Likewise.
6879 * misc.c (gnat_handle_option): Likewise.
6880 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
6881 post_error_ne_tree): Likewise.
6882
6883 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
6884
6885 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
6886 version of its type, attempt to first convert its elements.
6887
6888 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
6889
6890 * Makefile.in: Fix *86 kfreebsd target specific pairs.
6891
6892 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
6893
6894 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
6895
6896 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
6897
6898 * utils2.c (known_alignment): Derive the alignment from pointed-to
6899 types only if it is otherwise unknown.
6900 <INTEGER_CST>: Tidy.
6901 <MULT_EXPR>: Likewise.
6902 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
6903 that of the base.
6904
6905 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6906
6907 PR ada/36573
6908 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
6909
6910 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6911
6912 * gnat_rm.texi (Implementation Defined Characteristics)
6913 (Standard Library Routines): Use @smallexample for indented
6914 text. Drop Indentation outside examples.
6915 * gnat_ugn.texi: Likewise.
6916
6917 2008-06-13 Olivier Hainque <hainque@adacore.com>
6918
6919 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
6920 if undefined.
6921 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
6922 realignment with force_align_arg_pointer attribute on foreign
6923 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
6924
6925 2008-06-13 Olivier Hainque <hainque@adacore.com>
6926
6927 * utils.c (rest_of_record_type_compilation): When computing
6928 encodings for the components of a variable size type, early
6929 strip conversions on the current position expression to make
6930 sure it's shape is visible. Use remove_conversions for this
6931 purpose.
6932
6933 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
6934
6935 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
6936 constrained subtype of a discriminated type, discard the fields that
6937 are beyond its limits according to its size.
6938
6939 2008-06-10 Olivier Hainque <hainque@adacore.com>
6940
6941 * utils.c (create_subprog_decl): If this is for the 'main' entry
6942 point according to the asm name, redirect main_identifier_node.
6943
6944 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
6945
6946 * decl.c (components_to_record): Adjust the packedness for the
6947 qualified union as well.
6948
6949 2008-06-09 Arnaud Charlet <charlet@adacore.com>
6950
6951 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
6952 checks non fatal.
6953
6954 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
6955
6956 * sem_res.adb (Large_Storage_Type): A type is large if it
6957 requires as many bits as Positive to store its values and its
6958 bounds are known at compile time.
6959 * sem_ch13.adb (Minimum_Size): Note that this function returns
6960 0 if the size is not known at compile time.
6961
6962 2008-06-06 Nicolas Setton <setton@adacore.com>
6963 Olivier Hainque <hainque@adacore.com>
6964
6965 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
6966 attribute, parallel descriptive type attached to another
6967 type for debug info generation purposes.
6968 * utils.c (add_parallel_type): New function, register
6969 parallel type to be attached to a type.
6970 (get_parallel_type): New function, fetch a registered
6971 parallel type, if any.
6972 (rest_of_record_type_compilation): Register the parallel
6973 type we make for variable size records.
6974 * gigi.h (add_parallel_type, get_parallel_type): Declare.
6975 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
6976 parallel debug types we make.
6977 * trans.c (extract_encoding, decode_name): New functions.
6978 (gigi): If the DWARF attribute extensions are available, setup
6979 to use them.
6980 * lang.opt: Register language specific processing request
6981 for -gdwarf+.
6982 * misc.c (gnat_dwarf_extensions): New global variable. How much
6983 do we want of our DWARF extensions. 0 by default.
6984 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
6985 (gnat_post_options): Map gnat_dwarf_extensions to the
6986 commonuse_gnu_debug_info_extensions for later processing.
6987
6988 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
6989
6990 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
6991
6992 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6993
6994 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
6995 * gnat_ugn.texi (Style Checking)
6996 (Adding the Results of Compiler Checks to gnatcheck Output)
6997 (Example of Binder Output File): Fix typos.
6998 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
6999 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
7000 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
7001 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
7002 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
7003 sinfo.ads, utils.c: Fix typos in comments.
7004 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
7005
7006 2008-05-29 Thomas Quinot <quinot@adacore.com>
7007
7008 * sem_eval.adb: Minor reformatting
7009
7010 2008-05-29 Ed Schonberg <schonberg@adacore.com>
7011
7012 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
7013 is abstract, do not apply abstractness check on subprogram if this is
7014 a renaming declaration.
7015
7016 2008-05-29 Arnaud Charlet <charlet@adacore.com>
7017
7018 PR ada/864
7019 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
7020 allow recognition of program suffix in addition to prefix.
7021
7022 * gnatchop.adb (Locate_Executable): Add support for prefix.
7023
7024 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
7025 mlib-utl.adb: Adjust calls to Program_Name.
7026
7027 2008-05-29 Robert Dewar <dewar@adacore.com>
7028
7029 * sem_ch3.adb: Minor reformatting
7030 * sem_prag.adb: Minor reformatting
7031 * sem_res.adb: Minor reformatting
7032 * sinput-p.ads: Minor reformatting
7033
7034 2008-05-29 Javier Miranda <miranda@adacore.com>
7035
7036 * sem_util.adb:
7037 (Abstract_Interface_List): Add missing support for full type-declaration
7038 associated with synchronized types.
7039
7040 2008-05-29 Robert Dewar <dewar@adacore.com>
7041
7042 * sem_eval.adb (Is_Same_Value): Take care of several more cases
7043
7044 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7045
7046 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
7047 access type, wrap the expression in a conversion to force an
7048 accessibility check.
7049
7050 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
7051 accessibility checks even when expansion is disabled in order to
7052 generate messages in the presence of previous errors or in
7053 semantics-only mode.
7054
7055 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
7056
7057 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
7058 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
7059
7060 2008-05-28 Vincent Celier <celier@adacore.com>
7061
7062 PR ada/34446
7063 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
7064 preprocessing expressions
7065
7066 2008-05-28 Vincent Celier <celier@adacore.com>
7067
7068 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
7069 for preprocessing
7070
7071 * sinput-p.ads: Minor comment update and reformatting
7072
7073 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7074
7075 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
7076 type has a deeper level than any master only when it is the type of an
7077 access parameter.
7078
7079 2008-05-28 Javier Miranda <miranda@adacore.com>
7080
7081 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
7082
7083 2008-05-28 Javier Miranda <miranda@adacore.com>
7084
7085 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
7086 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
7087 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
7088 Add code that was previously located in
7089 Find_Overridden_Synchronized_Primitive because it is only used here.
7090
7091 2008-05-28 Sergey Rybin <rybin@adacore.com>
7092
7093 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
7094 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
7095
7096 2008-05-28 Robert Dewar <dewar@adacore.com>
7097
7098 * restrict.ads:
7099 Add missing restrictions, and properly label all GNAT defined ones
7100
7101 * rtsfind.ads:
7102 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
7103 Add entry for Ada.Task_Termination.Set_Specific_Handler
7104 Add entry for Ada.Task_Termination.Specific_Handler
7105
7106 * s-rident.ads:
7107 Add missing restrictions and properly mark all gnat defined ones
7108
7109 * sem_ch3.adb:
7110 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
7111
7112 * sem_res.adb:
7113 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
7114
7115 * gnat_rm.texi: Add missing restrictions, and properly label all
7116 GNAT defined ones
7117
7118 2008-05-28 Robert Dewar <dewar@adacore.com>
7119
7120 * restrict.adb:
7121 (Check_Restriction): violation of restriction No_Finalization is
7122 treated as a serious error to stop expansion
7123
7124 2008-05-28 Robert Dewar <dewar@adacore.com>
7125
7126 * exp_util.adb: Minor reformatting
7127 * exp_util.ads: Minor reformatting.
7128
7129 2008-05-28 Arnaud Charlet <charlet@adacore.com>
7130
7131 * Make-lang.in: Remove gprmake.
7132
7133 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
7134
7135 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7136
7137 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
7138 improper progenitor names, and avoid cascaded errors.
7139
7140 2008-05-28 Robert Dewar <dewar@adacore.com>
7141
7142 * gnat_rm.texi: Add note on Old giving warning when applied to constant
7143
7144 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
7145 a constant
7146
7147 2008-05-28 Robert Dewar <dewar@adacore.com>
7148
7149 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
7150 size
7151
7152 2008-05-28 Robert Dewar <dewar@adacore.com>
7153
7154 * exp_ch5.adb:
7155 (Expand_Simple_Function_Return): Copy unaligned result into temporary
7156
7157 2008-05-28 Javier Miranda <miranda@adacore.com>
7158
7159 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
7160 for user-defined predefined primitives.
7161
7162 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
7163 (Find_Overridden_Synchronized_Primitive): Ditto.
7164
7165 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
7166
7167 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7168
7169 * a-ststio.adb, s-direio.adb:
7170 Further code clean up of previous change.
7171 Update comments.
7172
7173 2008-05-27 Vincent Celier <celier@adacore.com>
7174
7175 * prj-nmsc.adb: Minor reformatting
7176
7177 2008-05-27 Bob Duff <duff@adacore.com>
7178
7179 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
7180 untagged private type with a tagged full type, where the full type has
7181 a self reference, create the corresponding class-wide type early, in
7182 case the self reference is "access T'Class".
7183
7184 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7185
7186 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
7187 tasks and context is an object declaration. create master entity before
7188 expansion.
7189
7190 2008-05-27 Robert Dewar <dewar@adacore.com>
7191
7192 * mlib-prj.adb: Minor reformatting
7193
7194 * prj-part.adb: Minor reformatting
7195
7196 * prj.ads: Minor reformatting
7197
7198 * exp_ch3.adb: Minor reformatting.
7199
7200 * sem_ch3.ads: Minor reformatting
7201
7202 * sem_eval.adb: Minor reformatting
7203
7204 2008-05-27 Vincent Celier <celier@adacore.com>
7205
7206 * gnatcmd.adb:
7207 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
7208
7209 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7210
7211 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
7212 tasks, create an activation chain now, before the expansion into
7213 assignments and build-in-place calls that require the presence of an
7214 activation chain.
7215 (Backend_Processing_Possible): If the component type is inherently
7216 limited, the aggregate must be expanded into individual built-in-place
7217 assignments.
7218
7219 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
7220 determine whether an allocation extra parameter must be built, to
7221 handle case of a private type whose full type is a discriminated type
7222 with defaults.
7223
7224 2008-05-27 Bob Duff <duff@adacore.com>
7225
7226 * gnat_rm.texi:
7227 Document the new behavior regarding trampolines.
7228
7229 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7230
7231 * a-direio.adb, a-sequio.adb: Replace address clause by
7232 unrestricted_access, simpler and compatible with .NET.
7233
7234 2008-05-27 Vincent Celier <celier@adacore.com>
7235
7236 * prj-part.adb:
7237 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
7238 a project file, so that symbolic links are not resolved.
7239
7240 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7241
7242 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
7243 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
7244 portable across GNAT targets, since this kind of address clause is not
7245 supported by VM back-ends (.NET/JGNAT).
7246
7247 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7248
7249 * bindgen.adb: Update comments.
7250
7251 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
7252
7253 2008-05-27 Vincent Celier <celier@adacore.com>
7254
7255 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
7256 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
7257 mlib-tgt.adb, prj-env.adb, prj-env.ads:
7258 (Path_Information): New record type
7259 Use component of type Path_Information when there are two paths, one in
7260 canonical format and one in display format.
7261 Update the project manager to these new components.
7262
7263 2008-05-27 Robert Dewar <dewar@adacore.com>
7264
7265 * makeutl.adb: Minor reformatting
7266 * prj-nmsc.adb: Minor reformatting
7267 * s-stausa.adb: Minor reformatting
7268 * s-stausa.ads: Minor reformatting
7269 * sem_ch6.adb: Minor reformatting
7270
7271 2008-05-27 Thomas Quinot <quinot@adacore.com>
7272
7273 * sem_res.adb: Minor comment fixes
7274
7275 2008-05-27 Thomas Quinot <quinot@adacore.com>
7276
7277 * makeutl.adb: Minor code reorganization
7278
7279 * exp_aggr.adb: Add ??? comment
7280 Fix typo
7281
7282 * exp_ch6.adb: Minor reformatting
7283
7284 2008-05-27 Quentin Ochem <ochem@adacore.com>
7285
7286 * s-stausa.adb (Initialize): Updated result initialization, and
7287 initialization of environment stack.
7288 (Fill_Stack): Improved computation of the pattern zone, taking into
7289 account already filled at the calling point.
7290 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
7291 Measure and Overflow_Guard.
7292 (Report_Result): Fixed computation of the result using new fields of
7293 Stack_Analyzer.
7294
7295 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
7296 params by more explicit Stack_Size / Max_Pattern_Size params.
7297 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
7298 Added Stack_Used_When_Filling field.
7299 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
7300 Min_Measure and Max_Measure fields.
7301
7302 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
7303
7304 2008-05-27 Vincent Celier <celier@adacore.com>
7305
7306 * prj-nmsc.adb:
7307 (Check_File): Make sure that a unit that replaces the same unit in a
7308 project being extended is properly processed.
7309
7310 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7311
7312 * sem_ch3.adb:
7313 (Get_Discr_Value): Remove obsolete code that failed to find the value
7314 of a discriminant for an inherited task component appearing in a type
7315 extension.
7316
7317 2008-05-27 Thomas Quinot <quinot@adacore.com>
7318
7319 (System.File_IO.{Close, Delete, Reset}):
7320 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
7321
7322 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
7323 Pass File parameter by reference.
7324
7325 2008-05-27 Vincent Celier <celier@adacore.com>
7326
7327 * prj-nmsc.adb:
7328 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
7329 sources of the same project that have the same object file name.
7330 (Find_Explicit_Sources): Always remove a source exception that was not
7331 found.
7332
7333 2008-05-27 Thomas Quinot <quinot@adacore.com>
7334
7335 * sem_ch3.adb: Minor reformatting
7336
7337 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7338
7339 * sem_ch6.adb:
7340 (Is_Interface_Conformant): Handle properly a primitive operation that
7341 overrides an interface function with a controlling access result.
7342 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
7343 inherited and overriding operations, omit as well the conformance check
7344 on result types, to prevent spurious errors.
7345
7346 2008-05-27 Vincent Celier <celier@adacore.com>
7347
7348 * makeutl.ads, makeutl.adb:
7349 (Set_Location): New procedure
7350 (Get_Location): New function
7351 (Update_Main): New procedure
7352
7353 2008-05-27 Vincent Celier <celier@adacore.com>
7354
7355 * prj-nmsc.adb:
7356 (Check_Library): Allow standard project to be extended as a static
7357 library project.
7358 (Get_Mains): Do not inherit attribute Main in an extending library
7359 project.
7360
7361 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
7362
7363 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
7364 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
7365 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
7366 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
7367 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
7368 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
7369 * system-mingw.ads (Always_Compatible_Rep): Likewise.
7370 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
7371 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
7372 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
7373
7374 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7375
7376 * sem_attr.adb: add guard to previous patch.
7377
7378 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7379
7380 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
7381 a synchronized tagged type, do not attempt to build dispatch table for
7382 full view. The table is built for the corresponding record type, which
7383 has its own declaration.
7384
7385 2008-05-27 Gary Dismukes <dismukes@adacore.com>
7386
7387 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
7388 to the known type entity E, rather than setting it to Any_Type. Fixes
7389 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
7390 for objects whose type had an illegal constraint.
7391
7392 2008-05-27 Vincent Celier <celier@adacore.com>
7393
7394 * gnat_ugn.texi:
7395 Add succinct documentation for attribute Excluded_Source_List_File
7396
7397 2008-05-27 Vincent Celier <celier@adacore.com>
7398
7399 * prj-attr.adb: Add new project level attribute Map_File_Option
7400
7401 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
7402
7403 * prj.ads: Minor reformatting and comment update
7404 (Project_Configuration): New component Map_File_Option
7405
7406 * snames.adb: New standard name Map_File_Option
7407
7408 * snames.ads: New standard name Map_File_Option
7409
7410 2008-05-27 Vincent Celier <celier@adacore.com>
7411
7412 * xsnames.adb: Remove unused variable Oname
7413
7414 2008-05-27 Doug Rupp <rupp@adacore.com>
7415
7416 * exp_ch6.adb:
7417 (Expand_N_Function_Call): Fix comments. Minor reformatting.
7418
7419 * exp_vfpt.ads:
7420 (Expand_Vax_Foreign_Return): Fix comments.
7421
7422 2008-05-27 Thomas Quinot <quinot@adacore.com>
7423
7424 * exp_dist.adb: Minor reformating
7425
7426 2008-05-26 Gary Dismukes <dismukes@adacore.com>
7427
7428 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
7429 No_Default_Initialization, which is now delayed until the freeze point
7430 of the object. Add a comment about deferral of the check.
7431
7432 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
7433 on objects is moved here.
7434
7435 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
7436
7437 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
7438 (Compare_Array_S16): Adjust for above change.
7439 * s-casi32.adb (Uword): Likewise.
7440 (Compare_Array_S32): Likewise.
7441 * s-casi64.adb (Uword): Likewise.
7442 (Compare_Array_S64): Likewise.
7443 * s-caun16.adb (Uhalf): Likewise.
7444 (Compare_Array_U16): Likewise.
7445 * s-caun32.adb (Uword): Likewise.
7446 (Compare_Array_U32): Likewise.
7447 * s-caun64.adb (Uword): Likewise.
7448 (Compare_Array_U64): Likewise.
7449
7450 2008-05-26 Robert Dewar <dewar@adacore.com>
7451
7452 * exp_ch6.adb: Add ??? comment for previous change
7453
7454 * exp_vfpt.adb: Minor reformatting
7455
7456 * exp_vfpt.ads: Add ??? comment for last change
7457
7458 * sem_attr.adb: Add some ??? comments for previous change
7459
7460 * s-vaflop.ads: Add comments for previous change
7461
7462 2008-05-26 Doug Rupp <rupp@adacore.com>
7463
7464 * s-vaflop-vms-alpha.adb:
7465 Remove System.IO use clause, to prevent spurious ambiguities when
7466 package is access through rtsfind.
7467
7468 2008-05-26 Sergey Rybin <rybin@adacore.com>
7469
7470 * tree_io.ads (ASIS_Version_Number): Update because of the changes
7471 made in front-end
7472
7473 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7474
7475 * sem_attr.adb:
7476 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
7477 converted to S (A)'address only if A .. B is known to be a non-null
7478 range.
7479
7480 2008-05-26 Doug Rupp <rupp@adacore.com>
7481
7482 * s-vaflop.adb:
7483 (Return_D, Return_F, Return_G): New functions.
7484
7485 * s-vaflop.ads:
7486 (Return_D, Return_F, Return_G): New functions.
7487
7488 * exp_vfpt.adb:
7489 (Expand_Vax_Foreign_Return): New procedure
7490
7491 * exp_vfpt.ads:
7492 (Expand_Vax_Foreign_Return): New procedure
7493
7494 * rtsfind.ads:
7495 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
7496 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
7497
7498 * exp_ch6.adb:
7499 Import Exp_Vfpt
7500 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
7501
7502 * s-vaflop-vms-alpha.adb:
7503 (Return_D, Return_F, Return_G): New functions.
7504
7505 2008-05-26 Gary Dismukes <dismukes@adacore.com>
7506
7507 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
7508 init proc entity when there is actual default initialization associated
7509 with the component type, to avoid spurious errors on objects of scalar
7510 array types that are marked Is_Public when No_Default_Initialization
7511 applies.
7512
7513 2008-05-26 Thomas Quinot <quinot@adacore.com>
7514
7515 * rtsfind.ads, rtsfind.adb:
7516 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
7517 (Check_RPC): Support per-PCS-kind API versioning.
7518
7519 exp_dist.ads, exp_dist.adb:
7520 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
7521 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
7522 library function Get_RACW.
7523 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
7524 library function Get_Reference.
7525 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
7526 through an intermediate Any.
7527 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
7528 going through an intermediate Any.
7529
7530 * sem_dist.adb: Minor reformatting.
7531
7532 2008-05-26 Javier Miranda <miranda@adacore.com>
7533
7534 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
7535 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
7536 (Is_Internal): Adding documentation on internal entities that have
7537 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
7538
7539 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
7540 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
7541 Added assertion to force entities with this attribute to have
7542 attribute Is_Internal set to True.
7543 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
7544
7545 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
7546 renamed as Derive_Progenitor_Subprograms. In addition, its code is
7547 a new implementation.
7548 (Add_Interface_Tag_Components): Remove special management of
7549 synchronized interfaces.
7550 (Analyze_Interface_Declaration): Minor reformating
7551 (Build_Derived_Record_Type): Minor reformating
7552 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
7553 predefined primitive inherited from interface type because the body of
7554 internally generated predefined primitives of tagged types are generated
7555 later by Freeze_Type
7556 (Derive_Subprogram): Avoid generating an internal name if the parent
7557 subprogram overrides an interface primitive.
7558 (Derive_Subprograms): New implementation that keeps separate the
7559 management of tagged types not implementing interfaces, from tagged
7560 types that implement interfaces.
7561 (Is_Progenitor): New implementation.
7562 (Process_Full_View): Add documentation
7563 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
7564 by call to Derive_Progenitor_Subprograms.
7565
7566 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
7567 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
7568 Skip_Controlling_Formals.
7569
7570 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
7571 (Check_Conventions): New implementation. Remove local subprogram
7572 Skip_Check. Remove formal Search_From of routine Check_Convention.
7573 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
7574 Skip_Controlling_Formals.
7575 (New_Overloaded_Entity): Enable addition of predefined dispatching
7576 operations.
7577
7578 * sem_disp.ads
7579 (Find_Primitive_Covering_Interface): New subprogram.
7580
7581 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
7582 the task body procedure as a primitive of the corresponding tagged
7583 type.
7584 (Check_Operation_From_Private_Type): Avoid adding twice an entity
7585 to the list of primitives.
7586 (Find_Primitive_Covering_Interface): New subprogram.
7587 (Override_Dispatching_Operation): Add documentation.
7588
7589 * sem_type.adb (Covers): Minor reformatings
7590
7591 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
7592 Collect_Interfaces.
7593 Rename formal.
7594 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
7595 (Implements_Interface): New subprogram.
7596 (Is_Parent): Removed.
7597 (Primitive_Names_Match): New subprogram.
7598 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
7599 (Ultimate_Alias): New subprogram.
7600
7601 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
7602 Collect_Interfaces.
7603 Remove special management for synchronized types. Rename formal. Remove
7604 internal subprograms Interface_Present_In_Parent and Add_Interface.
7605 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
7606 on non-record types by code to return false in such case.
7607 (Implements_Interface): New subprogram.
7608 (Is_Parent): Removed. No special management is now required for
7609 synchronized types covering interfaces.
7610 (Primitive_Names_Match): New subprogram.
7611 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
7612 (Ultimate_Alias): New subprogram.
7613
7614 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
7615 Add internal entities associated with secondary dispatch tables to
7616 the list of tagged type primitives that are not interfaces.
7617 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
7618 (Make_Predefined_Primitive_Specs): Code reorganization to improve
7619 the management of predefined equality operator. In addition, if
7620 the type has an equality function corresponding with a primitive
7621 defined in an interface type, the inherited equality is abstract
7622 as well, and no body can be created for it.
7623
7624 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
7625 exp_util to exp_disp.
7626 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
7627 an entity corresponds with one of the predefined primitives required
7628 to implement interfaces.
7629 Update copyright notice.
7630
7631 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
7632 final check on abstract subprograms all the primitives associated with
7633 interface primitives because they must be visible in the public and
7634 private part.
7635 (Write_DT): Use Find_Dispatching_Type to locate the name of the
7636 interface type. This allows the use of this routine, for debugging
7637 purposes, when the tagged type is not fully decorated.
7638 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
7639 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
7640 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
7641 entity corresponds with one of the predefined primitives required to
7642 implement interfaces.
7643
7644 * exp_util.adb (Find_Interface_ADT): New implementation
7645 (Find_Interface): Removed.
7646
7647 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
7648 list of interfaces associated with nodes
7649 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
7650
7651 2008-05-26 Thomas Quinot <quinot@adacore.com>
7652
7653 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
7654 condition for assignment to temporary.
7655
7656 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7657
7658 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
7659 checks on the upper bound if the index type is a modular type, to
7660 prevent wrap-around computations when size is close to upper bound of
7661 type.
7662
7663 2008-05-26 Robert Dewar <dewar@adacore.com>
7664
7665 * sem_ch3.adb: Minor reformatting
7666
7667 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7668
7669 * sem_ch12.adb (Remove_Parent): Use specification of instance
7670 to retrieve generic parent,
7671 to handle properly the case where the instance is a child unit.
7672 Add guard to handle properly wrapper packages.
7673 Minor reformatting
7674
7675 2008-05-26 Thomas Quinot <quinot@adacore.com>
7676
7677 * sinfo.ads: Minor reformatting
7678
7679 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
7680
7681 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
7682 Generate a tag check when the result subtype of a function, defined by
7683 an access definition, designates a specific tagged type.
7684 (Make_Tag_Check): New routine.
7685
7686 2008-05-26 Arnaud Charlet <charlet@adacore.com>
7687
7688 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
7689
7690 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
7691
7692 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
7693 (builtin_decl_for): Likewise.
7694 * trans.c (gigi): Likewise.
7695 * utils.c (def_builtin_1): Fix formatting.
7696
7697 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
7698
7699 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
7700 Create the statements which map a string name to protected or task
7701 entry indix.
7702
7703 * exp_ch9.adb: Add with and use clause for Stringt.
7704 Minor code reformatting.
7705 (Build_Entry_Names): New routine.
7706 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
7707 for flag Build_Entry_Names which controls the allocation of the data
7708 structure for the string names of entries.
7709
7710 * exp_ch9.ads (Build_Entry_Names): New subprogram.
7711
7712 * exp_util.adb (Entry_Names_OK): New function.
7713
7714 * exp_util.ads (Entry_Names_OK): New function.
7715
7716 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
7717 enumerations RE_Id and RE_Unit_Table.
7718
7719 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
7720 (Free_Entry_Names_Array): New routine.
7721
7722 * s-taskin.ads: Comment reformatting.
7723 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
7724 Add component Entry_Names to record Ada_Task_Control_Block.
7725 (Free_Entry_Names_Array): New routine.
7726
7727 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
7728 dynamically allocate an array
7729 of string pointers. This structure holds string entry names.
7730 (Free_Entry_Names): New routine.
7731 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
7732 (Set_Entry_Names): New routine.
7733
7734 * s-tassta.ads:
7735 (Create_Task): Add formal Build_Entry_Names. The flag is used to
7736 control the allocation of the data structure which stores entry names.
7737 (Set_Entry_Name): New routine.
7738
7739 * s-tpoben.adb:
7740 Add with and use clause for Ada.Unchecked_Conversion.
7741 (Finalize): Deallocate the entry names array.
7742 (Free_Entry_Names): New routine.
7743 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
7744 create an array of string pointers to hold the entry names.
7745 (Set_Entry_Name): New routine.
7746
7747 * s-tpoben.ads:
7748 Add field Entry_Names to record Protection_Entries.
7749 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
7750 (Set_Entry_Name): New routine.
7751
7752 2008-05-26 Vincent Celier <celier@adacore.com>
7753
7754 * prj-nmsc.adb:
7755 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
7756
7757 * prj.ads:
7758 (Project_Configuration): New component Shared_Lib_Driver
7759
7760 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7761
7762 * inline.adb:
7763 (Cleanup_Scopes): For a protected operation, transfer finalization list
7764 to protected body subprogram, to force cleanup actions when needed.
7765
7766 2008-05-26 Robert Dewar <dewar@adacore.com>
7767
7768 * sem_cat.adb: Minor reformatting
7769
7770 * gnatname.adb: Minor reformatting
7771
7772 * osint.ads: Minor reformatting
7773
7774 * s-carun8.ads: Minor reformatting
7775
7776 * g-heasor.ads: Minor comment fix (unit is now pure)
7777
7778 2008-05-26 Robert Dewar <dewar@adacore.com>
7779
7780 * exp_ch2.adb:
7781 (Expand_Current_Value): Properly type generated integer literal
7782
7783 2008-05-26 Sergey Rybin <rybin@adacore.com>
7784
7785 * gnat_ugn.texi: Add description for the new gnatcheck rule -
7786 Separate_Numeric_Error_Handlers.
7787
7788 2008-05-26 Pascal Obry <obry@adacore.com>
7789
7790 * sem_aggr.adb: Minor reformatting.
7791
7792 2008-05-26 Jose Ruiz <ruiz@adacore.com>
7793
7794 * s-osinte-aix.adb:
7795 (To_Target_Priority): Setting the time slice value to 0 or greater sets
7796 the scheduling policy to FIFO within priorities or round-robin
7797 respectively.
7798 Hence, the priority must be set in this case to the one selected by the
7799 user.
7800
7801 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7802
7803 * sem_ch12.adb:
7804 (Remove_Parent): If the enclosing scope is an instance whose generic
7805 parent is declared within some parent scope of the just completed
7806 instance, make full views of the entities in that parent visible, when
7807 applicable.
7808
7809 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
7810
7811 * mingw32.h (STD_MINGW): Set to true for target w64.
7812
7813 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7814
7815 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
7816 instead of TREE_STATIC on the ADDR_EXPR.
7817
7818 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
7819
7820 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
7821 (Sloc_to_locus): Do not overwrite known GCC locations when translating
7822 GNAT standard locations.
7823
7824 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7825
7826 * gigi.h (mark_visited): Declare.
7827 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
7828 only the topmost node of expressions.
7829 (elaborate_expression_1): Look deeper for read-only variables.
7830 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
7831 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
7832 (mark_visited_r): New function.
7833
7834 2008-05-23 Vincent Celier <celier@adacore.com>
7835
7836 * snames.adb: New standard name Excluded_Source_List_File.
7837
7838 * snames.ads: New standard name Excluded_Source_List_File.
7839
7840 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
7841
7842 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
7843 Get excluded sources from
7844 file indicated by attribute Excluded_Source_List_File, when present and
7845 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
7846
7847 2008-05-23 Robert Dewar <dewar@adacore.com>
7848
7849 * exp_dist.adb: Minor reformatting
7850
7851 2008-05-23 Ed Schonberg <schonberg@adacore.com>
7852
7853 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
7854 slice, convert it to an indexed component, which is equivalent, more
7855 efficient, and usable even if the slice itself is not addressable.
7856
7857 2008-05-23 Olivier Hainque <hainque@adacore.com>
7858
7859 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
7860 convention also allows access to named compiler built-in subprograms
7861 such as the GCC __builtin family.
7862
7863 2008-05-23 Vincent Celier <celier@adacore.com>
7864
7865 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
7866 sep. If there are several possibilities, choose the one with the
7867 longer prefix.
7868
7869 2008-05-23 Vincent Celier <celier@adacore.com>
7870
7871 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
7872 back end switches when executable specified with --GCC= is same as
7873 default, even if there are additional options.
7874
7875 * gnat_ugn.texi:
7876 Document when the back end switches from the ALI file are taken into
7877 account when gnatlink is invoked with --GCC=
7878
7879 2008-05-23 Thomas Quinot <quinot@adacore.com>
7880
7881 * s-os_lib.adb:
7882 (copy_File): Do not open destination file if source file is unreadable.
7883
7884 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7885
7886 * utils.c (handle_type_generic_attribute): Adjust to accept
7887 fixed arguments before an elipsis.
7888
7889 2008-05-21 Thomas Quinot <quinot@adacore.com>
7890
7891 * g-sothco.ads, g-sothco.adb: New files.
7892
7893 2008-05-20 Thomas Quinot <quinot@adacore.com>
7894
7895 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
7896
7897 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
7898 Add missing "with" of Ada.Unchecked_Conversion
7899
7900 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
7901 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
7902 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7903 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7904 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7905 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
7906 Move common code out of GNAT.Sockets.Thin implementations and into
7907 Thin_Common.
7908 New constant SIZEOF_fd_set
7909 New flag Has_Sockaddr_Len
7910 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7911
7912 * g-stsifd-sockets.adb
7913 (Create): Remove call to Set_Length; use Set_Family to set the family
7914 and (on appropriate platforms) length fields in struct sockaddr.
7915
7916 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
7917 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
7918 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
7919 Move common code out of GNAT.Sockets.Thin implementations and into
7920 Thin_Common.
7921
7922 * g-socket.ads, g-socket.adb:
7923 Move common code out of GNAT.Sockets.Thin implementations and into
7924 Thin_Common.
7925 (Connect_Socket, Accept_Socket): Provide new versions of these two
7926 routines that operate with a user specified timeout.
7927 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
7928 this is now handled automatically by Set_Family on platforms that
7929 require it.
7930
7931 * gen-soccon.c:
7932 Move common code out of GNAT.Sockets.Thin implementations and into
7933 Thin_Common.
7934 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
7935 this constant to 0 (not -1) because we use it to initialize an
7936 unsigned_char value.
7937 Align values for numeric constants only.
7938 Handle the case of systems that do not support AF_INET6.
7939 New constant SIZEOF_fd_set
7940 New flag Has_Sockaddr_Len
7941 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7942
7943 * gsocket.h: New flag Has_Sockaddr_Len
7944 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7945
7946 2008-05-20 Santiago Uruena <uruena@adacore.com>
7947
7948 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
7949
7950 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7951
7952 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
7953 the underlying issue with malloc/free has been fixed. Remove associated
7954 comments.
7955 Minor reformatting.
7956 Related to PR ada/24533
7957
7958 2008-05-20 Robert Dewar <dewar@adacore.com>
7959
7960 * ali.adb: Correct casing of ASCII.NUL
7961
7962 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
7963 properly.
7964
7965 2008-05-20 Robert Dewar <dewar@adacore.com>
7966 Gary Dismukes <dismukes@adacore.com>
7967
7968 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
7969 overflow if result converted to wider integer type.
7970 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
7971 discriminated types when discriminant checks are suppressed.
7972
7973 2008-05-20 Vincent Celier <celier@adacore.com>
7974
7975 * cstand.adb (Print_Standard): Issue the correct Size clause for type
7976 Wide_Wide_Character.
7977
7978 2008-05-20 Tristan Gingold <gingold@adacore.com>
7979
7980 * decl.c: Do not emit a variable for a object that has an address
7981 representation clause whose value is known at compile time.
7982 When a variable has an address clause whose value is known at compile
7983 time, refer to this variable by using directly the address instead of
7984 dereferencing a pointer.
7985
7986 2008-05-20 Robert Dewar <dewar@adacore.com>
7987
7988 PR ada/30740
7989 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
7990 subtypes, always False for non-modular types.
7991 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
7992 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
7993 for Shared_Storage package.
7994 (Is_RACW_Stub_Type): New entity flag.
7995
7996 * exp_ch4.adb
7997 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
7998 case where we have a modular type with a non-binary modules.
7999 Comments reformattings.
8000
8001 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
8002 all types.
8003
8004 2008-05-20 Javier Miranda <miranda@adacore.com>
8005
8006 * exp_aggr.adb
8007 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
8008 tests did not covered the case in which the type of the aggregate has
8009 no progenitors but some its parents has progenitors.
8010
8011 2008-05-20 Gary Dismukes <dismukes@adacore.com>
8012 Hristian Kirtchev <kirtchev@adacore.com>
8013
8014 * exp_ch3.adb
8015 (Expand_N_Object_Declaration): Correct the condition which triggers the
8016 generation of a call to Displace when initializing a class-wide object.
8017 (Build_Dcheck_Functions): Build discriminant-checking for null variants
8018 when Frontend_Layout_On_Target is true to ensure that they're available
8019 for calling when a record variant size function is built in Layout.
8020
8021 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8022
8023 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
8024 procedure for a derived type retrieve the discriminant values from the
8025 parent using the corresponding discriminant.
8026 (Expand_N_Assignment_Statement): Skip generation of implicit
8027 if-statement associated with controlled types if we are
8028 compiling with restriction No_Finalization.
8029
8030 2008-05-20 Vincent Celier <celier@adacore.com>
8031
8032 * prj.adb (Hash (Project_Id)): New function
8033 (Project_Empty): Add new component Interfaces_Defined
8034
8035 * prj.ads (Source_Data): New component Object_Linked
8036 (Language_Config): New components Object_Generated and Objects_Linked
8037 (Hash (Project_Id)): New function
8038 (Source_Data): New Boolean components In_Interfaces and
8039 Declared_In_Interfaces.
8040 (Project_Data): New Boolean component Interfaces_Defined
8041
8042 * prj-attr.adb:
8043 New project level attribute Object_Generated and Objects_Linked
8044 Add new project level attribute Interfaces
8045
8046 * prj-dect.adb: Use functions Present and No throughout
8047 (Parse_Variable_Declaration): If a string type is specified as a simple
8048 name and is not found in the current project, look for it also in the
8049 ancestors of the project.
8050
8051 * prj-makr.adb:
8052 Replace procedure Make with procedures Initialize, Process and Finalize
8053 to implement H414-023: process different directories with different
8054 patterns.
8055 Use functions Present and No throughout
8056
8057 * prj-makr.ads:
8058 Replace procedure Make with procedures Initialize, Process and Finalize
8059
8060 * prj-nmsc.adb
8061 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
8062 the language configuration.
8063 (Process_Project_Level_Array_Attributes): Process new attributes
8064 Object_Generated and Object_Linked.
8065 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
8066 False, to indicate that the erreor/warning is a continuation.
8067 (Check): Call Report_No_Sources with Contnuation = True after the first
8068 call.
8069 (Error_Msg): Process successively contnuation character and warning
8070 character.
8071 (Find_Explicit_Sources): Check that all declared sources have been found
8072 (Check_File): Indicate in hash table Source_Names when a declared source
8073 is found.
8074 (Check_File): Set Other_Part when found
8075 (Find_Explicit_Sources): In multi language mode, check if all exceptions
8076 to the naming scheme have been found. For Ada, report an error if an
8077 exception has not been found. Otherwise, disregard the exception.
8078 (Check_Interfaces): New procedure
8079 (Add_Source): When Other_Part is defined, set mutual pointers in spec
8080 and body.
8081 (Check): In multi-language mode, call Check_Interfaces
8082 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
8083 for an excluded source.
8084 (Remove_Source): A source replacing a source in the interfaces is also
8085 in the interfaces.
8086
8087 * prj-pars.adb: Use function Present
8088
8089 * prj-part.adb: Use functions Present and No throughout
8090 (Parse_Single_Project): Set the parent project for child projects
8091 (Create_Virtual_Extending_Project): Register project with no qualifier
8092 (Parse_Single_Project): Allow an abstract project to be extend several
8093 times. Do not allow an abstract project to extend a non abstract
8094 project.
8095
8096 * prj-pp.adb: Use functions Present and No throughout
8097 (Print): Take into account the full associative array attribute
8098 declarations.
8099
8100 * prj-proc.adb: Use functions Present and No throughout
8101 (Expression): Call itself with the same From_Project_Node for the
8102 default value of an external reference.
8103
8104 * prj-strt.adb: Use functions Present and No throughout
8105 (Parse_Variable_Reference): If a variable is specified as a simple name
8106 and is not found in the current project, look for it also in the
8107 ancestors of the project.
8108
8109 * prj-tree.ads, prj-tree.adb (Present): New function
8110 (No): New function
8111 Use functions Present and No throughout
8112 (Parent_Project_Of): New function
8113 (Set_Parent_Project_Of): New procedure
8114
8115 * snames.ads, snames.adb:
8116 Add new standard names Object_Generated and Objects_Linked
8117
8118 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8119
8120 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
8121 and the derived type are of the same kind.
8122 (Expand_Call): Generate type conversions for actuals of
8123 record or array types when the parent and the derived types differ in
8124 size and/or packed status.
8125
8126 2008-05-20 Javier Miranda <miranda@adacore.com>
8127 Ed Schonberg <schonberg@adacore.com>
8128
8129 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
8130 generating dispatch tables of locally defined tagged types statically.
8131 Remove implicit if-statement that is no longer required.
8132 (Expand_Dispatching_Call): If this is a call to an instance of the
8133 generic dispatching constructor, the type of the first argument may be
8134 a subtype of Tag, so always use the base type to recognize this case.
8135
8136 2008-05-20 Thomas Quinot <quinot@adacore.com>
8137
8138 * exp_dist.adb
8139 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
8140 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
8141 assigning NULL into the result, to avoid a spurious warning.
8142 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
8143 is not frozen.
8144 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
8145 type.
8146 (Build_From_Any_Function, Build_To_Any_Function,
8147 Build_TypeCode_Function): For a type that has user-specified stream
8148 attributes, use an opaque sequence of octets as the representation.
8149
8150 2008-05-20 Kevin Pouget <pouget@adacore.com>
8151
8152 * exp_smem.ads, exp_smem.adb: Construction of access and assign
8153 routines has been replaced by an instantiation of
8154 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
8155 shared variable declaration.
8156 Calls to access and assign routines have been replaced by calls to
8157 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
8158 instantiated package.
8159
8160 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
8161 It identifies the new generic package added in s-shasto.
8162
8163 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
8164 is instantiated for each shared passive variable. It provides
8165 supporting procedures called upon each read or write access by the
8166 expanded code.
8167
8168 * sem_attr.adb:
8169 For this runtime unit (always compiled in GNAT mode), we allow
8170 stream attributes references for limited types for the case where
8171 shared passive objects are implemented using stream attributes,
8172 which is the default in GNAT's persistent storage implementation.
8173
8174 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8175
8176 * freeze.adb
8177 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
8178 convention from its base type, do not set the type to that of integer,
8179 because it may inherit a size clause.
8180 Warn on a size clause with a size different
8181 from that of Integer, if the type has convention C.
8182
8183 2008-05-20 Vincent Celier <celier@adacore.com>
8184
8185 * gnatname.adb
8186 (Scan_Args): Rewrite to take into account new switch --and to separate
8187 arguments into sections.
8188 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
8189 section, then Finalize.
8190
8191 2008-05-20 Tristan Gingold <gingold@adacore.com>
8192
8193 * init.c: Enable stack probing on ppc-linux.
8194
8195 * tracebak.c: Add symbolic traceback for ppc-linux.
8196
8197 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
8198
8199 2008-05-20 Arnaud Charlet <charlet@adacore.com>
8200
8201 * Makefile.in
8202 (common-tools): New rule, to avoid parallel build failure on gnat tools.
8203 Reenable parallel builds on this Makefile.
8204
8205 * Make-lang.in: Update dependencies.
8206
8207 2008-05-20 Robert Dewar <dewar@adacore.com>
8208
8209 * opt.ads (Treat_Restrictions_As_Warnings): New switch
8210
8211 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
8212 Treat_Restrictions_As_Warnings.
8213
8214 * switch-c.adb: Recognize new switch -gnatr
8215
8216 * usage.adb: Add line for -gnatr
8217
8218 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8219
8220 * par-ch3.adb
8221 (P_Access_Definition): Change the error message when parsing "access
8222 all" in Ada 95 mode. The message no longer forces the user to recompile
8223 in 05 mode only to discover that anonymous access types are not allowed
8224 to have "all".
8225
8226 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8227
8228 * par-ch9.adb
8229 (P_Protected): Update the error message on missing "-gnat05" switch when
8230 using interfaces in conjunction with protected types. Remove the
8231 incorrect error message associated with the presence of "private" after
8232 a "with".
8233
8234 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8235
8236 * sem_aggr.adb: Update comments.
8237 Improve previous change for PR ada/17985
8238
8239 2008-05-20 Thomas Quinot <quinot@adacore.com>
8240
8241 * sem_cat.adb
8242 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
8243 the visible part of the spec of a remote types unit.
8244 (Validate_Remote_Access_Object_Type_Declaration):
8245 New local subprogram Is_Valid_Remote_Object_Type, replaces
8246 Is_Recursively_Limited_Private.
8247 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
8248 non-controlling formals (and the return type, even though this is not
8249 explicit in the standard) must support external streaming.
8250 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
8251 as above for of RAS types and RCI subprograms. (The return type is not
8252 checked yet).
8253 Update comments related to RACWs designating limited interfaces per
8254 ARG ruling on AI05-060.
8255
8256 * sem_util.ads, sem_util.adb
8257 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
8258 Is_Remote_Call_Interface to identify RACW types in a stable and
8259 consistent way. We used to rely in this predicate on the privateness of
8260 the designated type and its ancestors, but depending on the currently
8261 visible private parts, this caused false negatives. We now uniformly
8262 rely on checks made at the point where the RACW type is declared.
8263 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
8264
8265 2008-05-20 Javier Miranda <miranda@adacore.com>
8266 Ed Schonberg <schonberg@adacore.com>
8267 Hristian Kirtchev <kirtchev@adacore.com>
8268
8269 * sem_ch3.adb
8270 (Analyze_Object_Declaration): Fix over-conservative condition
8271 restricting use of predefined assignment with tagged types that have
8272 convention CPP.
8273 (Analyze_Object_Declaration): Relax the check regarding deferred
8274 constants declared in scopes other than packages since they can be
8275 completed with pragma Import.
8276 Add missing escaping of all-caps word 'CPP' in error messages.
8277 (Build_Discriminated_Subtype): Do not inherit representation clauses
8278 from parent type if subtype already carries them, because they are
8279 inherited earlier during derivation and already include those that may
8280 come from a partial view.
8281
8282 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
8283 Check the declarations of a subprogram body for proper deferred
8284 constant completion.
8285
8286 * sem_ch7.ads, sem_ch7.adb
8287 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
8288
8289 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8290 Thomas Quinot <quinot@adacore.com>
8291
8292 * sem_ch4.adb
8293 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
8294 F is a parameterless function that returns an array, and S is a subtype
8295 mark.
8296 (Analyze_Call): Insert dereference when the prefix is a parameterless
8297 function that returns an access to subprogram and the call has
8298 parameters.
8299 Reject a non-overloaded call whose name resolves to denote
8300 a primitive operation of the stub type generated to support a remote
8301 access-to-class-wide type.
8302
8303 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8304
8305 * sem_ch8.adb
8306 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
8307 when there is a use clause for the same entity in the context.
8308 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
8309 created for a stream attribute of an abstract type or interface type.
8310
8311 2008-05-20 Thomas Quinot <quinot@adacore.com>
8312
8313 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
8314 subprogram.
8315
8316 * sem_type.adb
8317 (Add_One_Interp): Ignore any interpretation that is a primitive
8318 operation of an RACW stub type (these primitives are only executed
8319 through dispatching, never through static calls).
8320 (Collect_Interps): When only one interpretation has been found, set N's
8321 Entity and Etype to that interpretation, otherwise Entity and Etype may
8322 still refer to an interpretation that was ignored by Add_One_Interp,
8323 in which case would end up with being marked as not overloaded but with
8324 an Entity attribute not pointing to its (unique) correct interpretation.
8325
8326 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8327
8328 * sem_eval.adb
8329 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
8330 denotes the whole array of its prefix.
8331
8332 2008-05-20 Robert Dewar <dewar@adacore.com>
8333
8334 * sem_res.adb (Resolve_Op_Not): Warn on double negation
8335
8336 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8337
8338 * sprint.adb
8339 (Print_Itype): Do not modify the sloc of the component type of a
8340 (packed) array itype, because it is an unrelated type whose source
8341 location is independent of the point of creation of the itype itself.
8342
8343 2008-05-20 Thomas Quinot <quinot@adacore.com>
8344
8345 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
8346 Append.
8347
8348 2008-05-20 Robert Dewar <dewar@adacore.com>
8349 Vincent Celier <celier@adacore.com>
8350
8351 * vms_data.ads: Add entry for -gnatr
8352 Put GNAT SYNC section in proper alpha order
8353 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
8354
8355 * gnat_ugn.texi: Add documentation for new gnatname switch --and
8356 Update the style checks section
8357 Add documentation of -gnatr
8358 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
8359 subsection the explanation how compiler checks should be disabled for
8360 gnatcheck.
8361 Update the list of Ada 95 reserved words used by in the project language
8362 Add documentation for project qualifiers.
8363 Document that abstract projects may be extended by different projects in
8364 the same project tree.
8365 Add documentation for gnatmake switch -d
8366
8367 * ug_words: Add -gnatyy VMS equivalence string.
8368 Add entry for -gnatr
8369
8370 2008-05-20 Bob Duff <duff@adacore.com>
8371
8372 * a-rttiev.adb
8373 (Set_Handler): Remove code from both of these that implements
8374 RM-D.15(15/2), because it causes a race condition and potential
8375 deadlock.
8376 (Process_Queued_Events): Add comment explaining "exception when others
8377 => null". Add clarifying ".all", even though implicit .all is legal
8378 here.
8379
8380 2008-05-20 Arnaud Charlet <charlet@adacore.com>
8381
8382 * s-winext.ads: Replace representation clause by pragma Pack. Gives
8383 equivalent representation, but has the advantage of allowing
8384 compilation of this file under 64 bits platforms.
8385
8386 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
8387
8388 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
8389
8390 * adaint.c:
8391 Don't define dummy implementation of convert_addresses on ppc-linux.
8392
8393 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8394
8395 * exp_ch7.adb
8396 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
8397 if expression is aggregate component.
8398
8399 2008-05-20 Robert Dewar <dewar@adacore.com>
8400
8401 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
8402 sem_ch12.adb: Update comments. Minor reformatting.
8403
8404 * exp_ch2.adb: Typo
8405
8406 * s-unstyp.ads: Fixed some typos in comments.
8407
8408 2008-05-20 Arnaud Charlet <charlet@adacore.com>
8409
8410 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
8411 type/constant.
8412
8413 * g-socthi-vxworks.ads: Update to latest socket changes.
8414
8415 * a-caldel-vms.adb: Resync with a-caldel spec.
8416
8417 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
8418 Update comments.
8419
8420 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
8421
8422 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
8423 for dummy types pointed to by the converted pointer types.
8424
8425 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
8426
8427 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
8428 of records and unions.
8429 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
8430
8431 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
8432 Robert Dewar <dewar@adacore.com>
8433
8434 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
8435 restrictions to the prefix of 'Old.
8436 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
8437 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
8438 variables.
8439
8440 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
8441
8442 PR ada/24880
8443 PR ada/26635
8444 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
8445 expression to an integral type with lower precision, use NOP_EXPR
8446 directly in a couple of special cases.
8447
8448 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
8449 Ed Schonberg <schonberg@adacore.com>
8450
8451 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
8452 constraint expressions.
8453
8454 2008-05-12 Tomas Bily <tbily@suse.cz>
8455
8456 * utils2.c (known_alignment, contains_save_expr_p)
8457 (gnat_mark_addressable): Use CASE_CONVERT.
8458 * decl.c (annotate_value): Likewise.
8459 * trans.c (maybe_stabilize_reference): Likewise.
8460 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
8461 * utils.c (rest_of_record_type_compilation): Likewise.
8462 * trans.c (protect_multiple_eval, Attribute_to_gnu)
8463 (protect_multiple_eval): Likewise.
8464
8465 2008-05-08 Andreas Schwab <schwab@suse.de>
8466
8467 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
8468 DECL_IS_PURE to DECL_PURE_P.
8469
8470 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
8471
8472 * decl.c (maybe_pad_type): Add ??? comment.
8473
8474 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
8475
8476 * decl.c (components_to_record): Zero the alignment of the qualified
8477 union built for the variant part upon creating it.
8478
8479 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
8480
8481 * decl.c (maybe_pad_type): Try to get a form of the type with integral
8482 mode even if the alignment is not a factor of the original size. But
8483 make sure to create the inner field with the original size. Reorder.
8484 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
8485 record as always addressable.
8486 * utils.c (convert): Deal specially with conversions between original
8487 and packable versions of a record type.
8488 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
8489 recognizing an assignment between padded objects.
8490
8491 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8492
8493 * decl.c (make_packable_type): Resize the last component to its RM size
8494 only if it is of an aggregate type.
8495 * trans.c (call_to_gnu): Fix nit in comment.
8496 (gnat_to_gnu): Likewise.
8497
8498 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
8499
8500 * Makefile.in: Adapt sh4-linux target.
8501
8502 2008-04-29 Ed Schonberg <schonberg@adacore.com>
8503
8504 PR ada/35792
8505 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
8506 tagged type by an untagged protected or task type.
8507
8508 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
8509 Tristan Gingold <gingold@adacore.com>
8510
8511 PR ada/36007
8512 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
8513 of aliased objects with an unconstrained nominal subtype.
8514 Cap the promotion to the effective alignment of the word mode.
8515
8516 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8517
8518 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
8519 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
8520 Use '&&' instead of ';'.
8521
8522 2008-04-24 Olivier Hainque <hainque@adacore.com>
8523
8524 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
8525 doesn't require signed arithmetic anymore.
8526
8527 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8528
8529 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
8530 (call_to_gnu): Don't set TREE_INVARIANT.
8531 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
8532
8533 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
8534
8535 * s-osinte-rtems.adb: Add sigalstack function.
8536 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
8537 function. Add Alternate_Stack and Alternate_Stack_Size.
8538 Add missing process_shared field to pthread_condattr_t
8539 and change ss_low_priority to int from timespec.
8540
8541 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
8542
8543 * i-forbla.adb: Link against -llapack and -lblas by default
8544 instead of the private -lgnalasup.
8545
8546 2008-04-21 Olivier Hainque <hainque@adacore.com>
8547
8548 Access to most C builtins from Ada
8549 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
8550 (handle_pure_attribute, handle_novops_attribute,
8551 handle_nonnull_attribute, handle_sentinel_attribute,
8552 handle_noreturn_attribute, handle_malloc_attribute,
8553 handle_type_generic_attribute): New attribute handlers, from C fe.
8554 (gnat_internal_attribute_table): Map the new handlers.
8555 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
8556 (init_gigi_decls): ... here.
8557 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
8558 Move to a section dedicated to builtins processing.
8559 (build_void_list_node, builtin_type_for_size): New functions.
8560 (def_fn_type, get_nonnull_operand): Likewise.
8561 (install_builtin_elementary_type, install_builtin_function_types,
8562 install_builtin_attributes): Likewise.
8563 (fake_attribute_handler): Fake handler for attributes we don't
8564 support in Ada.
8565 (def_builtin_1): New function, worker for DEF_BUILTIN.
8566 (install_builtin_functions): New function.
8567 (gnat_install_builtins): Move to the builtins processing section.
8568 Now calling the newly introduced installers.
8569
8570 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
8571
8572 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
8573 constant objects, but not exceptions.
8574 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
8575 compatibility test.
8576 * utils.c (create_var_decl_1): Likewise.
8577 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
8578 the type when copying to padded object and the source is a constructor.
8579
8580 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8581
8582 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
8583 alignment, reset it to zero if it would end up not being greater
8584 than that of the type.
8585
8586 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8587
8588 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
8589 the padded type has a variable size.
8590
8591 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8592
8593 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
8594 target pointer mechanism as soon as the size is not constant.
8595
8596 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8597
8598 * gigi.h (create_var_decl_1): Declare.
8599 (create_var_decl): Turn into a macro invoking create_var_decl_1.
8600 (create_true_var_decl): Likewise.
8601 * utils.c (create_var_decl_1): Make global and reorder parameters.
8602 (create_var_decl): Delete.
8603 (create_true_var_decl): Likewise.
8604
8605 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
8606
8607 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
8608 objects by default.
8609 * fe.h (Debug_Flag_Dot_A): Delete.
8610 * debug.adb (-gnatd.a): Update documentation.
8611
8612 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
8613
8614 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
8615 "not null" parameter.
8616
8617 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
8618
8619 * g-socket.adb: Add a message "IPv6 not supported" to the
8620 Socket_Error exception.
8621
8622 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
8623
8624 PR ada/29015
8625 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
8626 the type is known instead of the underlying type.
8627
8628 2008-04-15 Ed Schonberg <schonberg@adacore.com>
8629
8630 PR ada/22387
8631 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
8632 procedure for a derived type retrieve the discriminant values from
8633 the parent using the corresponding discriminant.
8634
8635 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
8636 Gary Dismukes <dismukes@adacore.com>
8637
8638 PR ada/28733
8639 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
8640 which is not an entity (and hence not a package).
8641 (End_Use_Package): Ditto.
8642
8643 2008-04-15 Ed Schonberg <schonberg@adacore.com>
8644
8645 PR ada/16086
8646 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
8647 protected operation that matches the signature, not only an entry, a
8648 regular subprogram or a literal.
8649
8650 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8651
8652 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
8653 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
8654 if a size or alignment is specified. Do not take into account
8655 alignment promotions for the computation of the object's size.
8656 <type>: Call maybe_pad_type only if a size or alignment is specified.
8657 (maybe_pad_type): Really reuse the RM_Size of the original type if
8658 requested.
8659 * trans.c (Attribute_to_gnu): Fix a couple of nits.
8660 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
8661 statements. Use the padded view of the type when copying between
8662 padded objects of the same underlying type.
8663
8664 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8665
8666 * vms_data.ads: Fix typo in constant.
8667 * gen-soccon.c: Fix typo in error string.
8668 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
8669 Fix typos.
8670 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
8671 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
8672 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
8673 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
8674 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
8675 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
8676 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
8677 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
8678 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
8679 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
8680 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
8681 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
8682 sinfo.ads: Fix typos in comments.
8683
8684 2008-04-14 Robert Dewar <dewar@adacore.com>
8685
8686 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
8687 to every non-object and change error message.
8688
8689 2008-04-14 Robert Dewar <dewar@adacore.com>
8690
8691 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
8692 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
8693 directly.
8694
8695 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8696
8697 PR ada/18680
8698 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
8699 apply pragma Linker_Section on type.
8700
8701 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8702
8703 PR ada/16098
8704 * sem_prag.adb (Error_Pragma_Ref): New.
8705 (Process_Convention): Specialized message for non-local
8706 subprogram renaming. Detect the problem in homonyms as well.
8707
8708 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8709
8710 PR ada/15915
8711 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
8712 * sem_ch12.adb (Instantiate_Object): Use it.
8713 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
8714 storage pool denotes a variable as per RM 13.11(15).
8715
8716 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8717
8718 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
8719 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
8720
8721 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
8722
8723 PR ada/20822
8724 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
8725 line endings even on non-Unix platforms.
8726
8727 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8728
8729 PR ada/35050
8730 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
8731 renaming information.
8732
8733 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
8734
8735 PR ada/17985
8736 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
8737 itself.
8738
8739 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8740
8741 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
8742 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
8743 snames.ads, sprint.adb, stand.ads, stringt.ads,
8744 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
8745 switch.ads, sysdep.c, table.adb, table.ads,
8746 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
8747 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
8748 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
8749 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
8750 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
8751 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
8752 Fix comment typos.
8753
8754 * sem_ch10.adb, sem_ch10.ads,
8755 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
8756 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
8757 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8758 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
8759 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
8760 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
8761 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
8762 sem_warn.ads: Fix comment typos.
8763
8764 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
8765 s-soflin.ads, s-stalib.ads, s-stausa.adb,
8766 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
8767 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
8768 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
8769 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8770 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
8771 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
8772 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
8773 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
8774 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
8775 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
8776 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
8777 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
8778 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
8779 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
8780 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
8781 sem_cat.adb, sem_cat.ads: Fix comment typos.
8782
8783 2008-04-12 Joel Sherrill <joel@oarcorp.com>
8784
8785 PR ada/35825
8786 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
8787
8788 2008-04-12 Arnaud Charlet <charlet@adacore.com>
8789
8790 * s-linux-hppa.ads: Fix syntax errors.
8791
8792 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8793
8794 * gnat_ugn.texi: Fix typos.
8795 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
8796 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
8797 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
8798 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
8799 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
8800 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
8801 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
8802 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
8803 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
8804 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
8805 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
8806 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
8807 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
8808 s-osinte-darwin.ads, s-osinte-freebsd.ads,
8809 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
8810 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
8811 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
8812 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
8813 s-parame-hpux.ads, s-parame-vms-alpha.ads,
8814 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
8815 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
8816 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
8817 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
8818 s-rident.ads: Fix comment typos.
8819
8820 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
8821
8822 PR ada/28305
8823 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
8824 environment if generic instance is a top-level one.
8825
8826 2008-04-09 Doug Rupp <rupp@adacore.com>
8827
8828 * decl.c (validate_size): Set minimum size for fat pointers same as
8829 access types. Code clean ups.
8830
8831 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
8832 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
8833
8834 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
8835
8836 * s-crtl.ads (malloc32) New function, alias for malloc
8837 (realloc32) New function, alias for realloc
8838
8839 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
8840
8841 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
8842 allocator size is 32 and default pointer size is 64.
8843 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
8844 lhs type if smaller, whatever the modes.
8845
8846 * gigi.h (malloc32_decl): New macro definition
8847
8848 * utils.c (init_gigi_decls): New malloc32_decl
8849 Various code clean ups.
8850
8851 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8852 Task_Address vice System.Address.
8853
8854 * s-taspri-vms.ads: Import System.Aux_DEC
8855 (Task_Address): New subtype of System.Aux_DEC.Short_Address
8856 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
8857
8858 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8859 Task_Address vice System.Address.
8860
8861 * s-inmaop-vms.adb: Import System.Task_Primitives
8862 (To_Address): Unchecked convert to Task_Address vice System.Address
8863
8864 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
8865 expires now.
8866 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
8867 (To_Address) Unchecked convert to Task_Address vice System.Address
8868
8869 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
8870
8871 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
8872
8873 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8874
8875 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
8876 (fdesc_type_node): Define.
8877 (null_fdesc_node): Likewise.
8878 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
8879 uses descriptors for vtables and the type comes from a dispatch table,
8880 return the descriptor type.
8881 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
8882 uses descriptors for vtables and the type comes from a dispatch table,
8883 build a descriptor in the static case and copy the existing one in the
8884 non-static case.
8885 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
8886 the type is a pointer-to-subprogram coming from a dispatch table,
8887 return the null descriptor.
8888 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
8889 vtables, the source type is the descriptor type and the target type
8890 is a pointer type, first build the pointer.
8891 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
8892 build the descriptor type and the null descriptor.
8893
8894 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8895
8896 * decl.c (prepend_attributes): Fix typo.
8897 * trans.c (Pragma_to_gnu): Likewise.
8898 * utils.c (gnat_genericize): Likewise.
8899
8900 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8901 Richard Kenner <kenner@adacore.com>
8902
8903 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
8904 * decl.c (gnat_to_gnu_entity): Adjust for above change.
8905 <E_Record_Type>: Try to get a better form of the component for
8906 packing, even if it has an integral mode.
8907 <E_Record_Subtype>: Likewise.
8908 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
8909 exception suppressing the final conversion between record types.
8910
8911 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8912
8913 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
8914 alignment for space, promote the alignment of non-scalar variables with
8915 no size and alignment.
8916 * gigi.h (gnat_types_compatible_p): Declare.
8917 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
8918 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
8919 * utils.c (gnat_types_compatible_p) : New predicate.
8920 (convert): Use it throughout to test for cases where a mere view
8921 conversion is sufficient.
8922 * utils2.c (build_binary_op): Minor tweaks.
8923 (build_unary_op): Likewise.
8924
8925 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8926
8927 * decl.c (adjust_packed): Expand comment.
8928
8929 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8930
8931 * s-tasuti.ads: Use Task_Address instead of System.Address.
8932
8933 * makeutl.adb (Path_Or_File_Name): New function
8934
8935 * nlists.ads, itypes.ads: Update comments.
8936
8937 * s-crtl.ads (malloc32, realloc32): New functions.
8938
8939 * s-auxdec.ads (Short_Address_Size): New constant.
8940
8941 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
8942
8943 * s-ststop.ads, s-ststop.adb: New file.
8944
8945 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
8946 Minor reformatting.
8947
8948 2008-04-08 Pascal Obry <obry@adacore.com>
8949
8950 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
8951 (Stop_Bits_Number): New type.
8952 (Parity_Check): Likewise.
8953 (Set): Add parameter to set the number of stop bits and
8954 the parity. Parameter timeout is now a duration instead
8955 of a plain integer.
8956
8957 * g-sercom-linux.adb:
8958 Implement the stop bits and parity support for GNU/Linux.
8959 Fix handling of timeout, it must be given in tenth of seconds.
8960
8961 * g-sercom-mingw.adb:
8962 Implement the stop bits and parity support for Windows.
8963 Use new s-win32.ads unit instead of declaring Win32 services
8964 directly into this body.
8965 Update handling of timeout as now a duration.
8966
8967 * s-win32.ads, s-winext.ads: New files.
8968
8969 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8970 Arnaud Charlet <charlet@adacore.com>
8971
8972 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
8973
8974 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
8975 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
8976
8977 * s-osinte-lynxos-3.ads,
8978 (Alternate_Stack): Remove when not needed. Simplify declaration
8979 otherwise.
8980 (Alternate_Stack_Size): New constant.
8981
8982 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
8983 'Unrestricted_Access.
8984
8985 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
8986 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
8987 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
8988 s-osinte-solaris.ads, s-osinte-vms.ads
8989 (SA_ONSTACK): New constant.
8990 (stack_t): New record type.
8991 (sigaltstack): New imported function.
8992 (Alternate_Stack): New imported variable.
8993 (Alternate_Stack_Size): New constant.
8994
8995 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
8996
8997 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
8998 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
8999 s-taspri-vms.ads (Task_Address): New subtype of System.Address
9000 (Task_Address_Size): New constant size of System.Address
9001 (Alternate_Stack_Size): New constant.
9002
9003 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
9004 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
9005 Establish the alternate stack if the platform makes use of n alternate
9006 signal stack for stack overflows.
9007 (Create_Task): Take into account the alternate stack in the stack size.
9008 (Initialize): Save the address of the alternate stack into the ATCB for
9009 the environment task.
9010 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
9011
9012 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
9013
9014 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
9015
9016 * s-intman-posix.adb:
9017 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
9018 alternate signal stack for stack overflows.
9019
9020 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
9021 x86-64, adjust the saved value of the stack pointer if the signal was
9022 raised by a stack checking probe.
9023 (HP-UX section): Use global __gnat_alternate_stack as signal handler
9024 stack and only for SIGSEGV.
9025 (Linux section): Likewise on x86 and x86-64.
9026 [VxWorks section]
9027 (__gnat_map_signal): Now static.
9028 (__gnat_error_handler): Not static any more.
9029 (__gnat_adjust_context_for_raise): New function. Signal context
9030 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
9031 propagation circuitry.
9032 (__gnat_error_handler): Second argument of a sigaction handler is a
9033 pointer, not an int, and is unused.
9034 Adjust signal context before mapping to exception.
9035 Install signal handlers for LynxOS case.
9036
9037 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
9038 (Task_Id): Set size to Task_Address_Size
9039 (To_Task_id): Unchecked convert from Task_Address vice System.Address
9040 (To_Address): Unchecked convert to Task_Address vice System.Address
9041
9042 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
9043 address into the ATCB if the platform makes use of an alternate signal
9044 stack for stack overflows.
9045 (Free_Task): Add call to Finalize_Attributes_Link.
9046 Add argument Relative_Deadline to pass the value specified for
9047 the task. This is not yet used for any target.
9048
9049 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
9050 the value specified for the task.
9051
9052 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9053
9054 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
9055 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
9056 s-vxwext-rtp.adb): New files.
9057
9058 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
9059 Minor updates to accomodate changes above.
9060
9061 2008-04-08 Pascal Obry <obry@adacore.com>
9062
9063 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
9064 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
9065 Use new s-win32.ads unit instead of declaration
9066 from s-osinte-mingw.ads.
9067
9068 * s-osinte-mingw.ads:
9069 Move all non tasking based interface to s-win32.ads.
9070
9071 * s-osprim-mingw.adb:
9072 Remove duplicated declarations and use s-win32.ads
9073 unit instead.
9074
9075 2008-04-08 Vincent Celier <celier@adacore.com>
9076 Arnaud Charlet <charlet@adacore.com>
9077
9078 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
9079 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
9080 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
9081 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9082 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
9083
9084 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
9085 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
9086 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
9087 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
9088 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
9089 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
9090 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
9091 mlib-tgt-specific-mingw.adb: New names.
9092
9093 * Makefile.in:
9094 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
9095 Get rid of gnatbl.
9096 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
9097 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
9098 Minor updates for VMS
9099
9100 * gnatbl.c: Removed.
9101
9102 2008-04-08 Thomas Quinot <quinot@adacore.com>
9103
9104 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
9105 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
9106 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
9107 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
9108 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
9109 ASCII.NUL throughout.
9110
9111 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9112 Matthew Heaney <heaney@adacore.com>
9113
9114 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
9115 renaming.
9116
9117 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
9118 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
9119 to convention for non-RM specs.
9120 Add descriptive header, and documented each operation
9121 document each operation
9122
9123 2008-04-08 Robert Dewar <dewar@adacore.com>
9124 Bob Duff <duff@adacore.com>
9125 Gary Dismukes <dismukes@adacore.com>
9126 Ed Schonberg <schonberg@adacore.com>
9127
9128 * alloc.ads: Add entries for Obsolescent_Warnings table
9129
9130 * einfo.ads, einfo.adb: Minor reformatting.
9131 (Is_Discriminal): New subprogram.
9132 (Is_Prival): New subprogram.
9133 (Is_Protected_Component): New subprogram.
9134 (Is_Protected_Private): Removed.
9135 (Object_Ref, Set_Object_Ref): Removed.
9136 (Prival, Set_Prival): Change assertion.
9137 (Privals_Chain, Set_Privals_Chain): Removed.
9138 (Prival_Link, Set_Prival_Link): New subprogram.
9139 (Protected_Operation, Set_Protected_Operation): Removed.
9140 (Protection_Object, Set_Protection_Object): New subprogram.
9141 (Write_Field17_Name): Remove case for Object_Ref.
9142 (Write_Field20_Name): Add case for Prival_Link.
9143 (Write_Field22_Name): Remove case for Protected_Operation,
9144 Privals_Chain.
9145 Add case for Protection_Object.
9146 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
9147 so clients
9148 (Overlays_Constant): New flag
9149 (Is_Constant_Object): New predicate
9150 (Is_Standard_Character_Type): New predicate
9151 (Optimize_Alignment_Space): New flag
9152 (Optimize_Alignment_Time): New flag
9153 (Has_Postconditions): New flag
9154 (Obsolescent_Warrning): Field removed
9155 (Spec_PPC_List): New field
9156 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
9157 subprograms to get and set the relative deadline associated to a task.
9158
9159 * exp_attr.adb (May_Be_External_Call): Account for the case where the
9160 Access attribute is part of a named parameter association.
9161 (Expand_Access_To_Protected_Op): Test for the attribute occurring
9162 within an init proc and use that directly as the scope rather than
9163 traversing up to the protected operation's enclosing scope. Only apply
9164 assertion on Is_Open_Scopes in the case the scope traversal is done.
9165 For the init proc case use the address of the first formal (_init) as
9166 the protected object reference.
9167 Implement Invalid_Value attribute
9168 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
9169 contents of the dispatch table there is no need to duplicate the
9170 itypes associated with record types (i.e. the implicit full view
9171 of private types).
9172 Implement Enum_Val attribute
9173 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
9174 within _Postconditions procedure
9175 (Expand_N_Attribute_Reference, case Result): Implement new attribute
9176
9177 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
9178 a return statement calls a function that is not available in
9179 configurable runtime.
9180 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
9181 (Expand_Non_Function_Return): Generate call to _Postconditions proc
9182 (Expand_Simple_Function_Return): Ditto
9183
9184 * frontend.adb: Add call to Sem_Aux.Initialize
9185
9186 * sem_aux.ads, sem_aux.adb: New file.
9187
9188 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
9189 Add new Pragma_Relative_Deadline.
9190 Add support for pragmas Check and Check_Policy
9191
9192 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
9193 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
9194 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
9195 missing check because they are not allowed in CPP tagged types.
9196 Add Sure parameter to Note_Possible_Modification calls
9197 Add implementation of Invalid_Value attribute
9198 Implement new attribute Has_Tagged_Values
9199 Implement Enum_Val attribute
9200 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
9201 generated attributes.
9202 (Analyze_Attribute, case Result): If prefix of the attribute is
9203 overloaded, it always resolves to the enclosing function.
9204 (Analyze_Attribute, case Result): Properly deal with analysis when
9205 Postconditions are not active.
9206 (Resolve_Attribute, case Result): Properly deal with appearence during
9207 preanalysis in spec.
9208 Add processing for attribute Result
9209
9210 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
9211 for operators.
9212 (Analyze_Subprogram_Body): Install private_with_clauses when the body
9213 acts as a spec.
9214 (Check_Inline_Pragma): recognize an inline pragma that appears within
9215 the subprogram body to which it applies.
9216 (Analyze_Function_Return): Check that type of the expression of a return
9217 statement in a function with a class-wide result is not declared at a
9218 deeper level than the function.
9219 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
9220 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
9221 user- defined operators.
9222 (Install_Formals): Moved to spec to allow use from Sem_Prag for
9223 analysis of precondition/postcondition pragmas.
9224 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
9225 Last_Formal, along with lots of comments on what this is about
9226 (Analyze_Subprogram_Body): Fix case where we move entities from the
9227 spec to the body when there are no body entities (now possible with
9228 precondition and postcondition pragmas).
9229 (Process_PPCs): New procedure
9230 (Analyze_Subprogram_Body): Add call to Process_PPCs
9231
9232 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
9233 clause.
9234 (Pop_Scope): Restore Check_Policy_List on scope exit
9235 (Push_Scope): Save Check_Policy_List on scope entry
9236 Change name In_Default_Expression => In_Spec_Expression
9237 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9238 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9239 (Analyze_Object_Renaming): Allow 'Reference as object
9240 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
9241 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
9242 of restriction identifier.
9243 Add Sure parameter to Note_Possible_Modication calls
9244
9245 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
9246 Don't check for primitive operations when calling Rep_Item_Too_Late.
9247 (Process_Import_Or_Interface): Do not place flag on formal
9248 subprograms.
9249 (Analyze_Pragma, case Export): If the entity is a deferred constant,
9250 propagate information to full view, which is the one elaborated by the
9251 back-end.
9252 (Make_Inline): the pragma is effective if it applies to an internally
9253 generated subprogram declaration for a body that carries the pragma.
9254 (Analyze_Pragma, case Optimize_Alignment): Set new flag
9255 Optimize_Alignment_Local.
9256 (Analyze_PPC_In_Decl_Part): New procedure
9257 (Get_Pragma_Arg): Moved to outer level
9258 (Check_Precondition_Postcondition): Change to allow new visibility
9259 rules for package spec
9260 (Analyze_Pragma, case Check_Policy): Change placement rules to be
9261 same as pragma Suppress/Unsuppress.
9262 Change name In_Default_Expression => In_Spec_Expression
9263 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9264 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9265 (Check_Precondition_Postcondition): Do proper visibility preanalysis
9266 for the case of these pragmas appearing in the spec.
9267 (Check_Enabled): New function
9268 (Initialize): New procedure
9269 (Tree_Read): New procedure
9270 (Tree_Write): New procedure
9271 (Check_Precondition_Postcondition): New procedure
9272 Implement pragmas Check and Check_Policy
9273 Merge Assert processing with Check
9274
9275 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
9276 New warning flag -gnatw.e
9277
9278 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
9279 returning whether a task (or main procedure) has a pragma
9280 Relative_Deadline.
9281 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
9282 (or main procedure) has a pragma Relative_Deadline.
9283 Add Next_Pragma field to N_Pragma node
9284 (PPC_Enabled): New flag
9285 (Next_Pragma): Now used for Pre/Postcondition processing
9286
9287 * snames.h, snames.ads, snames.adb: New standard name
9288 Inherit_Source_Path
9289 Add entry for 'Invalid_Value attribute
9290 Add entry for new attribute Has_Tagged_Values
9291 Add entry for Enum_Val attribute
9292 Add new standard names Aggregate, Configuration and Library.
9293 Add _Postconditions
9294 Add _Result
9295 Add Pragma_Precondition
9296 Add Pragma_Postcondition
9297 Add Attribute_Result
9298 New standard name Archive_Builder_Append_Option
9299 (Preset_Names): Add _relative_deadline and relative_deadline definitions
9300 There was also a missing non_preemptive_within_priorities.
9301 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
9302 Relative_Deadline.
9303 Add support for pragmas Check and Check_Policy
9304
9305 * tree_gen.adb: Call Sem_Aux.Tree_Write
9306
9307 * tree_in.adb: Call Sem_Aux.Tree_Read
9308
9309 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
9310 sequence
9311
9312 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
9313 sequence
9314
9315 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
9316 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
9317 Relative_Deadline.
9318 (Expand_Pragma_Check): New procedure
9319
9320 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
9321 buffer.
9322
9323 * sinfo.adb (PPC_Enabled): New flag
9324
9325 2008-04-08 Robert Dewar <dewar@adacore.com>
9326 Gary Dismukes <dismukes@adacore.com>
9327 Javier Miranda <miranda@adacore.com>
9328 Ed Schonberg <schonberg@adacore.com>
9329
9330 * fe.h: Remove global Optimize_Alignment flag, no longer used
9331
9332 * layout.adb: Test Optimize_Alignment flags rather than global switch
9333
9334 * lib.ads, lib.adb: New OA_Setting field in library record
9335
9336 * lib-load.adb: New OA_Setting field in library record
9337
9338 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
9339 units mentioned in limited_with_ clauses in the ali file, with an
9340 'Y' marker.
9341 New Ox fields in U line
9342
9343 * opt.adb: New flag Optimize_Alignment_Local
9344 (Check_Policy_List[_Config]): New flags
9345
9346 * opt.ads (Invalid_Value_Used): New flag
9347 New switch Optimize_Alignment_Local
9348 (Warn_On_Parameter_Order): New flag
9349 (Check_Policy_List[_Config]): New flags
9350
9351 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
9352 limited_with clauses.
9353 New data structures for Optimize_Alignment
9354
9355 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
9356 New procedure
9357 (Check_Consistent_Optimize_Alignment): Rework for new structure
9358 (Check_Consistent_Restrictions): Fix incorrect error message
9359
9360 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
9361 created class-wide type (to the Parent field of the specific type).
9362 (Install_Siblings): Handle properly private_with_clauses on subprogram
9363 bodies and on generic units.
9364 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
9365 illegal limited_with_clause that names a non-existent package.
9366 (Check_Body_Required): Determine whether a unit named a limited_with
9367 clause needs a body.
9368 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
9369 Capture Optimize_Alignment settings to set new OA_Setting field in
9370 library record.
9371 (Build_Limited_Views): Include task and protected type declarations.
9372
9373 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
9374 case of a possible constant redeclaration where the current object is
9375 an entry index constant.
9376 (Analyze_Object_Declaration): Generate an error in case of CPP
9377 class-wide object initialization.
9378 (Analyze_Object_Declaration): Add extra information on warnings for
9379 declaration of unconstrained objects.
9380 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
9381 conflicts with the setting of Stored_Constraint in the case where the
9382 access type entity has already been created as an E_Incomplete_Type due
9383 to a limited with clause.
9384 Use new Is_Standard_Character_Type predicate
9385 (Analyze_Object_Declaration): Apply access_constant check only after
9386 expression has been resolved, given that it may be overloaded with
9387 several access types.
9388 (Constant_Redeclaration): Additional legality checks for deferred
9389 constant declarations tha involve anonymous access types and/or null
9390 exclusion indicators.
9391 (Analyze_Type_Declaration): Set Optimize_Alignment flags
9392 (Analyze_Subtype_Declaration): Ditto
9393 (Analyze_Object_Declaration): Ditto
9394 (Analyze_Object_Declaration): Don't count tasks in generics
9395 Change name In_Default_Expression => In_Spec_Expression
9396 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9397 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9398 (Process_Discriminants): Additional check for illegal use of default
9399 expressions in access discriminant specifications in a type that is not
9400 explicitly limited.
9401 (Check_Abstract_Overriding): If an inherited function dispaches on an
9402 access result, it must be overridden, even if the type is a null
9403 extension.
9404 (Derive_Subprogram): The formals of the derived subprogram have the
9405 names and defaults of the parent subprogram, even if the type is
9406 obtained from the actual subprogram.
9407 (Derive_Subprogram): In the presence of interfaces, a formal of an
9408 inherited operation has the derived type not only if it descends from
9409 the type of the formal of the parent operation, but also if it
9410 implements it. This is relevant for the renamings created for the
9411 primitive operations of the actual for a formal derived type.
9412 (Is_Progenitor): New predicate, to determine whether the type of a
9413 formal in the parent operation must be replaced by the derived type.
9414
9415 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
9416 predicate recursive to handle components that have a user-defined
9417 Initialize procedure. Handle controlled derived types whose ancestor
9418 has a user-defined Initialize procedured.
9419 (Note_Possible_Modification): Add Sure parameter, generate warning if
9420 sure modification of constant
9421 Use new Is_Standard_Character_Type predicate
9422 (Find_Parameter_Type): when determining whether a protected operation
9423 implements an interface operation, retrieve the type of the formal from
9424 the entity when the formal is an access parameter or an
9425 anonymous-access-to-subprogram.
9426 Move Copy_Parameter_List to sem_util, for use when building stubbed
9427 subprogram bodies.
9428 (Has_Access_Values): Tagged types now return False
9429 (Within_HSS_Or_If): New procedure
9430 (Set_Optimize_Alignment_Flags): New procedure
9431 Change name In_Default_Expression => In_Spec_Expression
9432 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9433 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9434
9435 2008-04-08 Tristan Gingold <gingold@adacore.com>
9436
9437 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
9438
9439 2008-04-08 Tristan Gingold <gingold@adacore.com>
9440
9441 PR ada/10768
9442
9443 * cuintp.c: Fix 16 bits issue for AVR.
9444 On AVR, integer is 16 bits, so it can't be used to do math with
9445 Base (=32768).
9446 So use long_integer instead.
9447
9448 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9449
9450 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
9451 System.OS_Primitives.
9452 Change type of various constants, parameters and local variables from
9453 Time to representation type OS_Time.
9454 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
9455 Remove the declaration of constant Mili_F from several routines. New
9456 body for internal package Conversions_Operations.
9457 (Time_Of): Add default parameters for several formals.
9458
9459 * a-caldel.adb: Minor reformatting
9460
9461 * a-calend.ads, a-calend.adb: New body for internal package
9462 Conversions_Operations.
9463 (Time_Of): Add default parameters for several formals.
9464
9465 * Makefile.rtl: Add a-ststop
9466 Add Ada.Calendar.Conversions to the list of runtime files.
9467 Add g-timsta
9468
9469 * a-calcon.adb, a-calcon.ads: New files.
9470
9471 2008-04-08 Jose Ruiz <ruiz@adacore.com>
9472 Tristan Gingold <gingold@adacore.com>
9473
9474 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
9475 (Install_Restricted_Handlers): New procedure
9476 which is a simplified version of Install_Handlers that does not store
9477 previously installed.
9478
9479 * s-interr-vxworks.adb: Fix ACATS cxc3001
9480 On VxWorks interrupts can't be detached.
9481 (Install_Restricted_Handlers): New procedure.
9482
9483 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
9484 procedure.
9485
9486 2008-04-08 Olivier Hainque <hainque@adacore.com>
9487
9488 * s-intman-vxworks.ads, s-intman-vxworks.adb
9489 (Map_And_Raise_Exception): Remove. Was an import of only part of the
9490 required services already implemented elsewhere.
9491 (Notify_Exception): Delete body, import __gnat_error_handler instead.
9492 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
9493 argument passed to the handler, which we need for ZCX propagation
9494 purposes.
9495
9496 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9497
9498 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
9499
9500 * g-timsta.adb, g-timsta.ads: New files.
9501
9502 2008-04-08 Robert Dewar <dewar@adacore.com>
9503
9504 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
9505 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
9506 (Raise_Exception_Always): Fix documentation accordingly
9507
9508 2008-04-08 Robert Dewar <dewar@adacore.com>
9509
9510 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
9511 Stream_Convert)
9512
9513 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
9514 FOnly
9515
9516 2008-04-08 Javier Miranda <miranda@adacore.com>
9517 Robert Dewar <dewar@adacore.com>
9518 Ed Schonberg <schonberg@adacore.com>
9519
9520 * a-tags.adb (Register_Interface_Offset): New subprogram.
9521 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
9522 (To_Predef_Prims_Table_Ptr): Removed.
9523 (Acc_Size): Removed.
9524 (To_Acc_Size): Removed.
9525 (Parent_Size): Modified to the call the subprogram returning the size of
9526 the parent by means of the new TSD component Size_Func.
9527
9528 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
9529 (DT_Offset_To_Top_Offset): New constant value that is used to generate
9530 code referencing the Offset_To_Top component of the dispatch table's
9531 prologue.
9532 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
9533 use of 'address to initialize dispatch table slots.
9534 (Size_Func): New component of the TSD. Used by the run-time to call the
9535 size primitive of the tagged type.
9536
9537 * checks.adb (Apply_Access_Check): Avoid check when accessing the
9538 Offset_To_Top component of a dispatch table.
9539 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
9540 deferred constant declaration. do not add a null expression, to prevent
9541 spurious errors when full declaration is analyzed.
9542 (Apply_Discriminant_Check): If both discriminant constraints share a
9543 node which is not static but has no side effects, do not generate a
9544 check for that discriminant.
9545 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
9546 subexpr, since the prefix of an attribute is a name.
9547
9548 * checks.ads: Fix nit in comment.
9549
9550 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
9551 and body of predefined primitives in case of CPP tagged type
9552 derivations.
9553 (Freeze_Type): Deal properly with no storage pool case
9554 (Make_Predefined_Primitive_Specs): Generate specification of abstract
9555 primitive Deep_Adjust if a nonlimited interface is derived from a
9556 limited interface.
9557 (Build_Dcheck_Functions): Create discriminant-checking functions only
9558 for variants that have some component(s).
9559 (Build_Slice_Assignment): In expanded code for slice assignment, handle
9560 properly the case where the slice bounds extend to the last value of the
9561 underlying representation.
9562 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
9563 (Is_Variable_Size_Record): An array component has a static size if
9564 index bounds are enumeration literals.
9565
9566 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
9567 an external tag has been specified for the type.
9568 (Building_Static_DT): Add missing support for private types.
9569 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
9570 to the entity associated with the parent of Typ. This is done to
9571 avoid wrong access when the parent is a private type.
9572 (Expand_Interface_Conversion): Improve error message when the
9573 configurable runtime has no support for dynamic interface conversion.
9574 (Expand_Interface_Thunk): Add missing support to interface types in
9575 configurable runtime.
9576 (Expand_Dispatching_Call): remove obsolete code.
9577 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
9578 ensure that all subtypes and aggregates associated with dispatch
9579 tables have the attribute Is_Dispatch_Table_Entity set to true.
9580 (Register_Primitive): Rename one variable to improve code reading.
9581 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
9582 of the pointer to the 'size primitive in the TSD.
9583
9584 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
9585 (RE_Offset_To_Top_Ptr): New entity.
9586 (RE_Register_Interface_Offset): New entity.
9587 (RE_Set_Dynamic_Offset_To_Top): New entity.
9588 (RE_Set_Offset_To_Top): Removed entity.
9589 (RE_Prim_Ptr): New entity
9590 (RE_Size_Func): New entity
9591 (RE_Size_Ptr): New entity
9592 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
9593 (Ada_Dispatching_Child): Define this new subrange.
9594 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
9595 RE_Time_Span, and RE_Time_Span_Zero).
9596 (RE_Unit_Table): Add new required run-time calls
9597
9598 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
9599 children.
9600
9601 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
9602 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
9603 initializes the Offset_To_Top component of a dispatch table.
9604 (Build_Predef_Prims): Removed.
9605 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
9606 its actual code.
9607 (Build_Set_Size_Function): New subprogram.
9608
9609 * exp_ch13.adb: Do not generate storage variable for storage_size zero
9610 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
9611
9612 2008-04-08 Robert Dewar <dewar@adacore.com>
9613
9614 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
9615 computing Fore when Exp > 0
9616
9617 2008-04-08 Robert Dewar <dewar@adacore.com>
9618
9619 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
9620
9621 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
9622 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
9623
9624 * fmap.adb: Remove Big_String declarations (now in Types)
9625 (No_Mapping_File): New Boolean global variable
9626 (Initialize): When mapping file cannot be read, set No_Mapping_File to
9627 False.
9628 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
9629 tables were empty before adding entries, open the mapping file
9630 with Truncate = True, instead of delete/re-create.
9631
9632 * fname-sf.adb: Remove Big_String declarations (now in Types)
9633
9634 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
9635 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
9636 big pointer types
9637
9638 * table.ads: Add for Table_Ptr'Storage_Size use 0
9639
9640 * types.ads: Add Big_String declarations
9641 Add Size_Clause of zero for big pointer types
9642
9643 2008-04-08 Vincent Celier <celier@adacore.com>
9644
9645 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
9646 (Usage): Add line for switch --subdirs=
9647 Add new switch -eL, to follow symbolic links when processing project
9648 files.
9649
9650 * gnatcmd.adb: Process switches -eL and --subdirs=
9651 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
9652 Program_Name to get proper tool names when AAMP_On_Target is set.
9653 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
9654 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
9655 Osint.Program_Name).
9656
9657 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
9658 (Usage): Add lines for switches -eL and --subdirs=
9659
9660 * makeusg.adb: Add line for switch --subdirs=
9661
9662 * prj.ads:
9663 (Source_Data): New Boolean component Compiled, defaulted to True
9664 (Empty_File_Name: New global variable in private part, initialized in
9665 procedure Initialize.
9666 (Subdirs_Option): New constant string
9667 (Subdirs): New String_Ptr global variable
9668 (Language_Config): New component Include_Compatible_Languages
9669 (Project_Qualifier): New type for project qualifiers
9670 (Project_Data): New component Qualifier
9671 (Project_Configuration): New component Archive_Builder_Append_Option
9672
9673 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
9674 another imported project indicate the name of this imported project.
9675 (Check_File): When a unit is in two project files, indicate the project
9676 names and the paths of the source files for each project.
9677 (Add_Source): Set Compiled to False if compiler driver is empty. Only
9678 set object, dependency and switches file names if Compiled is True.
9679 (Process_Compiler): Allow the empty string for value of attribute Driver
9680 (Get_Directories): When Subdirs is not null and Object_Dir is not
9681 specified, locate and create if necessary the actual object dir.
9682 (Locate_Directory): When Subdirs is not empty and Create is not the
9683 empty string, locate and create if necessary the actual directory
9684 as a subdirectory of directory Name.
9685 (Check_Library_Attributes.Check_Library): Allow a project where the only
9686 "sources" are header files of file based languages to be imported by
9687 library projects, in multi-language mode (gprbuild).
9688 (Check_Library_Attributes.Check_Library): In multi-language mode
9689 (gprbuild), allow a library project to import a project with no
9690 sources, even when this is not declared explicitly.
9691 (Check_If_Externally_Built): A virtual project extending an externally
9692 built project is also externally built.
9693 (Check_Library_Attributes): For a virtual project extending a library
9694 project, inherit the library directory.
9695 (Process_Project_Level_Array_Attributes): Process new attribute
9696 Inherit_Source_Path.
9697 For projects with specified qualifiers "standard", "library" or
9698 "abstract", check that the project conforms to the qualifier.
9699 (Process_Project_Level_Simple_Attributes): Process new attribute
9700 Archive_Builder_Append_Option.
9701
9702 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
9703 (Normalize_Compiler_Switches): Only keep compiler switches that are
9704 passed to gnat1 by the gcc driver and that are stored in the ALI file
9705 by gnat1.
9706 Do not take into account switc -save-temps
9707
9708 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
9709 gprmake is called with -eL.
9710 (Scan_Arg): Recognize switch -eL
9711 (Usage): Add line for switch -eL
9712
9713 * prj.adb (Initialize): Initialize Empty_File_Name
9714 (Project_Empty): New component Qualifier
9715
9716 * prj-attr.ads, prj-attr.adb: New project level attribute
9717 Inherit_Source_Path.
9718 New project level attribute Archive_Builder_Append_Option
9719
9720 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
9721
9722 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
9723 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
9724 upward compatibility.
9725
9726 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
9727 each Trying ..." on different lines.
9728 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
9729 is "configuration" when not in configuration. Fail when in configuration
9730 when a specified qualifier is other than "configuration".
9731
9732 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
9733 full associative array together.
9734 (Recursive_Process): Put the project qualifier in the project data
9735
9736 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
9737 (Set_Project_Qualifier_Of): New procedure
9738
9739 2008-04-08 Robert Dewar <dewar@adacore.com>
9740
9741 * errout.ads: Update comments for new handling of info: messages
9742
9743 * erroutc.adb (Matches): New procedure
9744 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
9745 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
9746 info messages as well as style messages.
9747
9748 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
9749
9750 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
9751 subprograms.
9752 (Check_A_Call): Special "info: " warnings now have ? in the text
9753 (Elab_Warning): Use info message in static case
9754
9755 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9756
9757 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
9758 whether an array aggregate with static bounds and scalar components
9759 should be expanded into a static constant.
9760
9761 2008-04-08 Gary Dismukes <dismukes@adacore.com>
9762 Ed Schonberg <schonberg@adacore.com>
9763 Robert Dewar <dewar@adacore.com>
9764
9765 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
9766 Has_Stream_Attribute_ Definition when checking for available stream
9767 attributes on parameters of a limited type in Ada 2005. Necessary for
9768 proper recognition of visible stream attribute clauses.
9769 (Has_Stream_Attribute_Definition): If the type is derived from a
9770 private type, then use the derived type's underlying type for checking
9771 whether it has stream attributes.
9772 (Validate_Object_Declaration): The check for a user-defined Initialize
9773 procedure applies also to types with controlled components or a
9774 controlled ancestor.
9775 Reject an object declaration in a preelaborated unit if the type is a
9776 controlled type with an overriding Initialize procedure.
9777 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
9778 checking when the parent of a dereference is a selected component and
9779 the name has not been analyzed.
9780
9781 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
9782 prefixes that are invalid explicit dereferences of remote
9783 access-to-class-wide values, first checking whether the selected
9784 component is a prefixed form of call to a tagged operation.
9785 (Analyze_Call): Remove code that issues an error for limited function
9786 calls in illegal contexts, as we now support all of the contexts that
9787 were forbidden here.
9788 Allow a function call that returns a task.and appears as the
9789 prefix of a selected component.
9790 (Analyze_Reference): Give error message if we try to make a 'Reference
9791 for an object that is atomic/aliased without its type having the
9792 corresponding attribute.
9793 (Analyze_Call): Remove condition checking for attributes to allow
9794 calls to functions with inherently limited results as prefixes of
9795 attributes. Remove related comment about Class attributes.
9796 (Analyze_Selected_Component): If the prefix is a remote type, check
9797 whether this is a prefixed call before reporting an error.
9798 (Complete_Object_Operation): If the controlling formal is an access to
9799 variable reject an actual that is a constant or an access to one.
9800 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
9801 primitive operations from base type.
9802
9803 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
9804 build-in-place
9805 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
9806 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
9807 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
9808 (Expand_N_Slice): Test for prefix that is a build-in-place function call
9809 and call Make_Build_In_Place_Call_In_Anonymous_Context.
9810 (Analyze_Call): Remove code that issues an error for limited function
9811 calls in illegal contexts, as we now support all of the contexts that
9812 were forbidden here.
9813 New calling sequence for Get_Simple_Init_Val
9814 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
9815 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
9816
9817 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9818 Ed Schonberg <schonberg@adacore.com>
9819 Robert Dewar <dewar@adacore.com>
9820
9821 * exp_ch2.adb: Minor reformatting.
9822 (Expand_Entry_Index_Parameter): Set the type of the identifier.
9823 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
9824 (Expand_Protected_Component): New routine.
9825 (Expand_Protected_Private): Removed.
9826 Add Sure parameter to Note_Possible_Modification calls
9827
9828 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
9829 generated subprogram declaration must inherit the overriding indicator
9830 from the instantiation node.
9831 (Validate_Access_Type_Instance): If the designated type of the actual is
9832 a limited view, use the available view in all cases, not only if the
9833 type is an incomplete type.
9834 (Instantiate_Object): Actual is illegal if the formal is null-excluding
9835 and the actual subtype does not exclude null.
9836 (Process_Default): Handle properly abstract formal subprograms.
9837 (Check_Formal_Package_Instance): Handle properly defaulted formal
9838 subprograms in a partially parameterized formal package.
9839 Add Sure parameter to Note_Possible_Modification calls
9840 (Validate_Derived_Type_Instance): if the formal is non-limited, the
9841 actual cannot be limited.
9842 (Collect_Previous_Instances): Generate instance bodies for subprograms
9843 as well.
9844
9845 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
9846 try to set RM_Size.
9847 Add Sure parameter to Note_Possible_Modification calls
9848 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
9849 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
9850 constant overlaid by variable and issue warning.
9851 Use new Is_Standard_Character_Type predicate
9852 (Analyze_Record_Representation_Clause): Check that the specified
9853 Last_Bit is not less than First_Bit - 1.
9854 (Analyze_Attribute_Definition_Clause, case Address): Check for
9855 self-referential address clause
9856
9857 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
9858 detection mechanism when the lhs is a prival.
9859 (Analyze_Assignment): Call Check_Unprotected_Access to detect
9860 assignment of a pointer to protected data, to an object declared
9861 outside of the protected object.
9862 (Analyze_Loop_Statement): Check for unreachable code after loop
9863 Add Sure parameter to Note_Possible_Modication calls
9864 Protect analysis from previous syntax error such as a scope mismatch
9865 or a missing begin.
9866 (Analyze_Assignment_Statement): The assignment is illegal if the
9867 left-hand is an interface.
9868
9869 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
9870 violation of restriction No_Implicit_Conditionals
9871 Add Sure parameter to Note_Possible_Modication calls
9872 Use new Is_Standard_Character_Type predicate
9873 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
9874 call as operator. Fixes problems (e.g. validity checking) which
9875 come from the result looking as though it does not come from source).
9876 (Resolve_Call): Check case of name in named parameter if style checks
9877 are enabled.
9878 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
9879 from the checking that such calls should not occur from an entry body.
9880 (Resolve_Call): If the return type of an Inline_Always function
9881 requires the secondary stack, create a transient scope for the call
9882 if the body of the function is not available for inlining.
9883 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
9884 that are actuals for in-out formals.
9885 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
9886 primitive operations from base type.
9887 (Analyze_Selected_Component): If the context is a call to a protected
9888 operation the parent may be an indexed component prior to expansion.
9889 (Resolve_Actuals): If an actual is of a protected subtype, use its
9890 base type to determine whether a conversion to the corresponding record
9891 is needed.
9892 (Resolve_Short_Circuit): Handle pragma Check
9893
9894 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
9895 Use new Is_Standard_Character_Type predicate
9896 (Eval_Relational_Op): Catch more cases of string comparison
9897
9898 2008-04-08 Robert Dewar <dewar@adacore.com>
9899 Gary Dismukes <dismukes@adacore.com>
9900
9901 * s-rident.ads: Add No_Default_Initialization restriction
9902
9903 * exp_tss.adb:
9904 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
9905 (Set_TSS): Handle No_Default_Initialization case
9906
9907 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
9908 No_Default_Initialization
9909 (Expand_N_Subprogram_Body): Remove redundant initialization of out
9910 parameters when Normalize_Scalars is active.
9911 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
9912 Fix casing error in formal parameter name in call
9913 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
9914 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9915 dispatching call on VM targets.
9916
9917 2008-04-08 Gary Dismukes <dismukes@adacore.com>
9918 Thomas Quinot <quinot@adacore.com>
9919
9920 * exp_ch7.adb (Find_Final_List): Change the test for generating a
9921 selected component from an access type's Associated_Final_Chain to
9922 check for the presence of that field, rather than assuming it exists
9923 for all named access types.
9924 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
9925 procedure to call at the end of the generated cleanup procedure.
9926 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
9927 and an At_End_Proc already exists in the handled sequence of statements
9928 for which cleanup actions are being expanded, the original cleanup
9929 action must be preserved.
9930
9931 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9932 Ed Schonberg <schonberg@adacore.com>
9933 Robert Dewar <dewar@adacore.com>
9934 Gary Dismukes <dismukes@adacore.com>
9935
9936 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
9937 Build_Unprotected_Subprogram_Body): Generate debug info for
9938 declarations related to the handling of private data in task and
9939 protected types.
9940 (Debug_Private_Data_Declarations): New subprogram.
9941 (Install_Private_Data_Declarations): Remove all debug info flagging.
9942 This is now done by Debug_Private_Data_Declarations at the correct
9943 stage of expansion.
9944 (Build_Simple_Entry_Call): If the task name is a function call, expand
9945 the prefix into an object declaration, and make the surrounding block a
9946 task master.
9947 (Build_Master_Entity): An internal block is a master if it wraps a call.
9948 Code reformatting, update comments. Code clean up.
9949 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
9950 (Replicate_Entry_Formals): If the formal is an access parameter or
9951 anonymous access to subprogram, copy the original tree to create new
9952 entities for the formals of the subprogram.
9953 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
9954 for tasks to store the value passed using pragma Relative_Deadline.
9955 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
9956 run-time call to create a task.
9957 (Build_Wrapper_Spec): If the controlling argument of the interface
9958 operation is an access parameter with a non-null indicator, use the
9959 non-null indicator on the wrapper.
9960
9961 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
9962 present, which it may not be in the case where the type entity is an
9963 incomplete view brought in by a limited with.
9964 (Analyze_Task_Type): Only retrieve the full view when present, which it
9965 may not be in the case where the type entity is an incomplete view brought
9966 in by a limited with.
9967 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
9968 private components of a protected type, to prevent the generation of freeze
9969 nodes for which there is no proper scope of elaboration.
9970
9971 * exp_util.ads, exp_util.adb
9972 (Remove_Side_Effects): If the expression is a function call that returns a
9973 task, expand into a declaration to invoke the build_in_place machinery.
9974 (Find_Protection_Object): New routine.
9975 (Remove_Side_Effects): Also make a copy of the value
9976 for attributes whose result is of an elementary type.
9977 (Silly_Boolean_Array_Not_Test): New procedure
9978 (Silly_Boolean_Array_Xor_Test): New procedure
9979 (Is_Volatile_Reference): New function
9980 (Remove_Side_Effects): Use Is_Volatile_Reference
9981 (Possible_Bit_Aligned_Component): Handle slice case properly
9982
9983 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
9984 case test to Exp_Util
9985 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
9986
9987 2008-04-08 Thomas Quinot <quinot@adacore.com>
9988
9989 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
9990 in call
9991 (Add_RACW_Features): When processing an RACW in another unit than the
9992 main unit, set Body_Decls to No_List to indicate that the bodies of
9993 the type's TSS must not be generated.
9994 (GARLIC_Support.Add_RACW_Read_Attribute,
9995 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
9996 Body_Decls is No_List.
9997 (PolyORB_Support.Add_RACW_Read_Attribute,
9998 PolyORB_Support.Add_RACW_Write_Attribute,
9999 PolyORB_Support.Add_RACW_From_Any,
10000 PolyORB_Support.Add_RACW_To_Any,
10001 PolyORB_Support.Add_RACW_TypeCode): Same.
10002 (Transmit_As_Unconstrained): New function.
10003 (Build_Ordered_Parameters_List): Use the above to order parameters.
10004 (GARLIC_Support.Build_General_Calling_Stubs):
10005 Use the above to determine which parameters to unmarshall using 'Input
10006 at the point where their temporary is declared (as opposed to later on
10007 with a 'Read call).
10008 (PolyORB_Support.Build_General_Calling_Stubs):
10009 Use the above to determine which parameters to unmarshall using From_Any
10010 at the point where their temporary is declared (as opposed to later on
10011 with an assignment).
10012
10013 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10014
10015 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
10016 an Input function for an access type, do not perform default
10017 initialization on the local variable that receives the value, to
10018 prevent spurious warnings when the type is null-excluding.
10019
10020 2008-04-08 Robert Dewar <dewar@adacore.com>
10021 Ed Schonberg <schonberg@adacore.com>
10022
10023 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
10024 units.
10025 (Size_Known): Generic formal scalar types have known at compile
10026 time size, so remove check.
10027 Fix casing error in formal parameter name in call
10028 (Freeze_Subprogram): If the subprogram is a user-defined operator,
10029 recheck its overriding indication.
10030
10031 2008-04-08 Vincent Celier <celier@adacore.com>
10032
10033 * gnat1drv.adb: Send all messages indicating an error to standard error
10034
10035 2008-04-08 Robert Dewar <dewar@adacore.com>
10036
10037 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
10038 (List_Applicable_Restrictions): Do not list existing restrictions
10039
10040 2008-04-08 Thomas Quinot <quinot@adacore.com>
10041
10042 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
10043 add a pointer to generic sockets literature
10044 do not mention that the given example is "typical" usage.
10045 Remove obsolete comment about multicast not being supported on Windows.
10046 (Connect_Socket): Make Server mode IN rather than IN OUT
10047 since this formal is never modified.
10048
10049 2008-04-08 Robert Dewar <dewar@adacore.com>
10050
10051 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
10052 the declaration for some different entity.
10053 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
10054 list is precent (following the parent subtype indication), display
10055 appropriate "and" keyword.
10056
10057 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
10058 Remove unnecessary calls to Init_Size_Align and Init_Esize.
10059 Add notes on use of Parent field of an Itype
10060
10061 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10062 Robert Dewar <dewar@adacore.com>
10063 Gary Dismukes <dismukes@adacore.com>
10064
10065 * lib-xref.adb (Is_On_LHS): Remove dead code
10066 (Output_Overriden_Op): If the overridden operation is itself inherited,
10067 list the ancestor operation, which is the one whose body or absstract
10068 specification is actually being overridden. For source navigation
10069 purposes.
10070
10071 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
10072 operation is primitive for the type.
10073 (Declare_Inherited_Private_Subprograms): If the new operation overrides
10074 an inherited private subprogram, set properly the Overridden_Operation
10075 attribute, for better cross-reference information.
10076 (Analyze_Package_Specification): Do late analysis of spec PPCs
10077 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
10078 properly the full view and underlying full views of a private type in a
10079 child unit, whose full view is derived from a private type in a parent
10080 unit, and whose own full view becomes visible in the child body.
10081
10082 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
10083 primitive operation after the type has been frozen, add an explicit
10084 reference to the type and the operation, because other primitive
10085 references have been emitted already.
10086 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
10087 dispatching call on VM targets.
10088
10089 2008-04-08 Vincent Celier <celier@adacore.com>
10090 Thomas Quinot <quinot@adacore.com>
10091
10092 * make.adb: (Gnatmake_Called): Remove, no longer necessary
10093 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
10094 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
10095 (Insert_Project_Sources): Take into account index in multi-unit source
10096 files.
10097 After building a library project, delete all temporary files.
10098 (Initialize): Reset current output after parsing project file.
10099 (Collect_Arguments_And_Compile): Never insert in the queue the sources
10100 of library projects that are externally built.
10101 Put file name in error and inform messages if -df is used
10102 (Display): If invoked with -d7, do not display path names, but only
10103 file names.
10104
10105 * makeutl.ads (Path_Or_File_Name): New function
10106 (Path_Or_File_Name): New function
10107
10108 2008-04-08 Arnaud Charlet <charlet@adacore.com>
10109
10110 * Make-lang.in: Disable warnings during first stage of bootstrap
10111 Get rid of gnatbl.
10112 Update dependencies.
10113
10114 2008-04-08 Vincent Celier <celier@adacore.com>
10115
10116 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
10117 case to decide if ALI object file is included in library.
10118 (Build_Library): Never attempt to build a library if the project is
10119 externally built.
10120
10121 2008-04-08 Thomas Quinot <quinot@adacore.com>
10122
10123 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
10124 (No_List) is defined to return Empty.
10125
10126 2008-04-08 Jose Ruiz <ruiz@adacore.com>
10127
10128 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
10129 documentation.
10130 Update comments.
10131 (Read_Default_Search_Dirs): Do not consider spaces as path separators
10132 because spaces may be part of legal paths.
10133
10134 2008-04-08 Robert Dewar <dewar@adacore.com>
10135
10136 * par-ch11.adb (P_Exception_Handler): Check indentation level for
10137 handler
10138
10139 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10140
10141 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
10142 in a type declaration, if this is not an interface declaration or
10143 private type extension.
10144
10145 2008-04-08 Vincent Celier <celier@adacore.com>
10146
10147 * prj-util.adb (Executable_Of): New String parameter Language. When
10148 Ada_Main is False and Language is not empty, attempt to remove the body
10149 suffix or the spec suffix of the language to get the base of the
10150 executable file name.
10151 (Put): New Boolean parameter Lower_Case, defauilted to False. When
10152 Lower_Case is True, put the value in lower case in the name list.
10153 (Executable_Of): If there is no executable suffix in the configuration,
10154 then do not modify Executable_Extension_On_Target.
10155
10156 * prj-util.ads (Executable_Of): New String parameter Language,
10157 defaulted to the empty string.
10158 (Put): New Boolean parameter Lower_Case, defauilted to False
10159
10160 2008-04-08 Robert Dewar <dewar@adacore.com>
10161
10162 * scng.adb (Scan_Identifier): Handle case of identifier starting with
10163 wide character using UTF-8 encoding.
10164
10165 2008-04-08 Javier Miranda <miranda@adacore.com>
10166
10167 * sem.adb (Analyze): Consider case in which we analyze an empty node
10168 that was generated by a call to a runtime function that is not
10169 available under the configurable runtime.
10170
10171 * sem.ads (Inside_Freezing_Actions): New flag.
10172 (Save_Check_Policy_List): New field in scope stack entry
10173
10174 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10175 Robert Dewar <dewar@adacore.com>
10176
10177 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
10178 the ancestor part of an extension aggregate for a limited type.
10179 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
10180 enumeration index bounds.
10181 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
10182 when array is too short.
10183 (Check_Expr_OK_In_Limited_Aggregate): Move function
10184 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
10185 change name).
10186 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
10187 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
10188 component associations.
10189 (Check_Non_Limited_Type): Moved to outer level and renamed.
10190 (Resolve_Record_Aggregate): In an extension aggregate, an association
10191 with a box initialization can only designate a component of the
10192 extension, not a component inherited from the given ancestor
10193
10194 * sem_case.adb: Use new Is_Standard_Character_Type predicate
10195
10196 2008-04-08 Robert Dewar <dewar@adacore.com>
10197
10198 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
10199 negative scale
10200 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
10201 Properly handle case where Aft > Scale and input number is less than
10202 one.
10203
10204 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10205
10206 * s-stoele.ads, s-soflin.ads: Move the location of
10207 Dummy_Communication_Block from System.Storage_Elements to
10208 System.Soft_Links.
10209
10210 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
10211 emulate Communication_Block in certain scenarios.
10212
10213 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10214
10215 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
10216 subprogram.
10217 Add new subtype S_WWC, unchecked conversion routines From_WWC and
10218 To_WWC.
10219 (I_WWC, O_WWC): New routines for input and output of
10220 Wide_Wide_Character.
10221
10222 2008-04-08 Robert Dewar <dewar@adacore.com>
10223
10224 * stringt.adb (Write_String_Table_Entry): Handle wide characters
10225 properly
10226
10227 2008-04-08 Robert Dewar <dewar@adacore.com>
10228
10229 * styleg.adb (Check_Comment): Allow special char after -- in
10230 non-end-of-line case
10231
10232 2008-04-08 Robert Dewar <dewar@adacore.com>
10233
10234 * stylesw.adb: Implement -gnaty + - y options
10235 (Set_GNAT_Style_Check_Options): Includ I in style check string
10236
10237 * stylesw.ads: Add comments for new style switch options
10238
10239 2008-04-08 Sergey Rybin <rybin@adacore.com>
10240
10241 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
10242 to the set of the GNAT components needed by ASIS.
10243
10244 2008-04-08 Bob Duff <duff@adacore.com>
10245
10246 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
10247
10248 2008-04-08 Tristan Gingold <gingold@adacore.com>
10249
10250 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
10251 Improve error message generation.
10252
10253 2008-04-08 Vincent Celier <celier@adacore.com>
10254
10255 * a-direct.adb (Start_Search): Check for Name_Error before checking for
10256 Use_Error, as specified in the RM. Check if directory is open and raise
10257 Use_Error if it is not.
10258
10259 2008-04-08 Vincent Celier <celier@adacore.com>
10260 Robert Dewar <dewar@adacore.com>
10261
10262 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
10263 AAMP_On_Target is set.
10264
10265 * vms_data.ads: Add NOxxx to style check switch list
10266 Add entry COMPONENTS for -gnatVe
10267 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
10268 (/SUBDIRS=).
10269 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
10270 Add qualifiers for gnatmetric coupling options
10271 Add note that -gnata enables all checks
10272 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
10273 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
10274 New warning flag -gnatw.e
10275
10276 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
10277 Add entry for -gnatyN (forgotten before)
10278 Line for new warning switch -gnatw.p
10279 New warning flag -gnatw.e
10280
10281 * gnat_ugn.texi: Add documentation fpr project file switch -aP
10282 Document -gnaty - + y
10283 Replace occurences of "package specification" with "package spec"
10284 Define preprocessing symbols in documentation of gnatprep
10285 Clarify reason for distinguishing overflow checking
10286 Add documentation for project-aware tool switches -eL and --subdirs=
10287 Complete list of configuration pragmas
10288 Specify that, even when gnatmake switch -x is used, mains on the command
10289 line need to be sources of project files.
10290 Editing of gnatcheck/gnatmetric doc.
10291 Add documentation for -gnatw.p/-gnatw.P
10292 Add missing documentation for -fno-inline-functions.
10293 Add documentation for -gnatw.e
10294
10295 * gnat_rm.texi: Add documentation for No_Default_Initialization
10296 Replace occurences of "package specification" with "package spec"
10297 Document use of * in Warnings Off string
10298 Update documentation of alignment/component clauses.
10299 Add documentation for Invalid_Value
10300 Document new consistency rule for Optimize_Alignment
10301 Add documentation for Precondition and Postcondition pragmas
10302 Add documentation for Check and Check_Policy pragmas
10303 Document new Enum_Val attribute
10304 Remove requirement for static string in pragma Assert
10305 Add documentation on GNAT.Time_Stamp
10306
10307 * ug_words: add entry for -gnatVe
10308 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
10309 Add entry for -gnatw.e
10310
10311 * debug.adb: Add missing documentation for d.a flag
10312 Document new -gnatd.a switch.
10313 Add documentation for new gnatmake debug switch -df
10314
10315 2008-04-08 Thomas Quinot <quinot@adacore.com>
10316
10317 * gen-soccon.c: Bump year in copyright notices.
10318
10319 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
10320
10321 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
10322
10323 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
10324 Minor reformatting.
10325
10326 2008-04-08 Robert Dewar <dewar@adacore.com>
10327 Bob Duff <duff@adacore.com>
10328
10329 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
10330 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
10331
10332 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
10333
10334 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
10335
10336 * g-trasym.ads: Minor comment improvements
10337
10338 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
10339
10340 * a-sequio.ads, a-direio.ads: improve message for tagged type
10341
10342 * a-strunb.ads: Minor reformatting
10343
10344 * a-tifiio.adb: Minor reformatting
10345
10346 * atree.adb (Fix_Parents): Use clearer names for formals
10347 Cleanup and simplify code
10348 Use named notation in calls
10349
10350 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
10351 confusing calls
10352
10353 * uintp.adb: Used named notation for some confusing calls
10354
10355 * bindusg.adb: Minor change in one line of output
10356
10357 * cstand.adb: Minor reformatting of src representation of Standard
10358
10359 * a-assert.ads: Add comment.
10360
10361 * g-decstr.adb: Fix bad indentation
10362
10363 * expander.ads, expander.adb: Code clean up.
10364
10365 * sem_dist.ads: Minor comment improvement
10366
10367 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
10368 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
10369
10370 * i-cstrin.adb: Fix casing error in formal parameter name in call
10371
10372 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10373
10374 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
10375 mentioned in limited_with_clauses to do create semantic dependencies
10376 even though they appear in the ali file.
10377
10378 2008-04-08 Emmanuel Briot <briot@adacore.com>
10379
10380 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
10381 statement.
10382 (Get_Configuration): New subprogram.
10383
10384 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
10385 These optional parameters help preserve the casing of the project's name
10386 when pretty-printing.
10387
10388 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
10389 Arnaud Charlet <charlet@adacore.com>
10390
10391 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
10392 then use __gnat_set_exit_status to report the returned status code.
10393
10394 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
10395 messages on .NET, since some constructs of the language are not
10396 properly supported.
10397
10398 * gnatlink.adb (Gnatlink): In case the command line is too long for the
10399 .NET linker, gnatlink now concatenate all .il files and pass this to
10400 ilasm.
10401
10402 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
10403 Xavier Grave <grave@ipno.in2p3.fr>
10404
10405 * Makefile.in: Add make ifeq define for mips/mipsel support.
10406 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
10407 system-linux-mips.ads: New files.
10408
10409 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
10410
10411 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
10412 detect systems using GNU libc.
10413 * gsocket.h: ditto.
10414 * socket.c: ditto.
10415 * adaint.c: ditto.
10416 * link.c: ditto.
10417
10418 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
10419
10420 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
10421 constant constant for sysconf call.
10422 (bit_field): New packed boolean type used by cpu_set_t.
10423 (cpu_set_t): New type corresponding to the C type with
10424 the same name. Note that on the Ada side we use a bit
10425 field array for the affinity mask. There is not need
10426 for the C macro for setting individual bit.
10427 (pthread_setaffinity_np): New imported routine.
10428 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
10429 on GNU/kFreeBSD.
10430
10431 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10432
10433 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
10434
10435 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
10436
10437 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
10438 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
10439 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
10440 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
10441 Return by Depressed Stack Pointer.
10442
10443 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
10444
10445 * decl.c (is_variable_size): Do not unconditionally return false
10446 on non-strict alignment platforms.
10447
10448 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
10449
10450 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
10451 used to process all the variants of the specified type.
10452 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
10453 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
10454 (rest_of_type_decl_compilation): Likewise.
10455 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
10456
10457 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10458
10459 * gigi.h (insert_block): Kill.
10460 * utils.c (insert_block): Kill.
10461
10462 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
10463
10464 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
10465 type has self-referential size, get the size from the initializing
10466 expression directly if it is also a constant whose nominal type
10467 has self-referential size.
10468
10469 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10470
10471 PR ada/33688
10472 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
10473
10474 PR ada/33857
10475 * env.c: Always include crt_externs.h if __APPLE__ is defined.
10476 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
10477
10478 2008-04-01 Andreas Jaeger <aj@suse.de>
10479
10480 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
10481 IP_PKTINFO.
10482
10483 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10484
10485 * g-table.adb, g-tasloc.adb, g-traceb.ads,
10486 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
10487 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
10488 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
10489 gnatlink.adb, gnatmem.adb, gprep.adb,
10490 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
10491 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
10492 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
10493 lib-xref.ads, lib.adb, link.c, live.ads,
10494 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
10495 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
10496 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
10497 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
10498 namet.adb, namet.h, nlists.adb, nlists.ads,
10499 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
10500 osint-c.ads, osint.adb, osint.ads, output.ads,
10501 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
10502 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
10503 par-endh.adb, par-labl.adb, par-prag.adb,
10504 par-sync.adb, par-tchk.adb, par-util.adb,
10505 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
10506 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
10507 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
10508 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
10509
10510 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
10511
10512 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
10513 size if it has overflowed.
10514
10515 2008-03-31 Olivier Hainque <hainque@adacore.com>
10516 Eric Botcazou <ebotcazou@adacore.com>
10517
10518 * utils2.c (find_common_type): Document assumption on t1/t2 vs
10519 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
10520
10521 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10522
10523 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
10524 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
10525 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10526 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
10527 exp_tss.ads, exp_util.adb, exp_util.ads,
10528 exp_vfpt.adb, freeze.adb, freeze.ads,
10529 frontend.adb, g-alleve.adb, g-altcon.adb,
10530 g-altive.ads, g-alveop.ads, g-alvevi.ads,
10531 g-arrspl.adb, g-busorg.ads, g-calend.adb,
10532 g-calend.ads, g-casuti.ads, g-cgideb.adb,
10533 g-comlin.adb, g-comlin.ads, g-curexc.ads,
10534 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
10535 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
10536 g-dyntab.adb, g-encstr.ads, g-excact.ads,
10537 g-except.ads, g-expect.ads, g-heasor.adb,
10538 g-hesora.adb, g-hesorg.adb, g-htable.ads,
10539 g-locfil.ads, g-md5.adb, g-md5.ads,
10540 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
10541 g-pehage.adb, g-pehage.ads, g-regexp.adb,
10542 g-regexp.ads, g-regpat.adb, g-regpat.ads,
10543 g-soccon-aix.ads, g-soccon-darwin.ads,
10544 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
10545 g-soccon-hpux.ads, g-soccon-irix.ads,
10546 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
10547 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
10548 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
10549 g-soccon-solaris.ads, g-soccon-tru64.ads,
10550 g-soccon-vms.ads, g-soccon-vxworks.ads,
10551 g-soccon.ads, g-socket.adb, g-socket.ads,
10552 g-socthi-mingw.adb, g-socthi-vms.adb,
10553 g-socthi-vxworks.adb, g-soliop-mingw.ads,
10554 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
10555 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
10556 typos.
10557
10558 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
10559
10560 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
10561 if the procedure is imported.
10562
10563 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10564
10565 * adaint.c: Fix warnings.
10566
10567 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10568
10569 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
10570
10571 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10572
10573 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
10574 Fix problem of status check for null file
10575
10576 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10577
10578 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
10579 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
10580 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
10581 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
10582 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
10583 comments.
10584
10585 2008-03-26 Thomas Quinot <quinot@adacore.com>
10586
10587 PR ada/33688
10588 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
10589 Get_Socket_Option): Add support for Receive_Packet_Info.
10590
10591 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
10592 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
10593 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
10594 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
10595 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
10596 new constants SO_REUSEPORT and IP_PKTINFO
10597
10598 2008-03-26 Robert Dewar <dewar@adacore.com>
10599
10600 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
10601 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
10602 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
10603 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
10604 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
10605 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
10606 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
10607 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10608 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
10609 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
10610 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
10611 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
10612 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
10613 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
10614 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
10615 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
10616 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
10617 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
10618 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
10619 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
10620 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
10621 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
10622 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
10623 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
10624 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
10625 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
10626 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
10627 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
10628 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
10629 s-tasloc.adb: Minor reformatting.
10630 Update comments.
10631 Remove "used for" sections from comments.
10632
10633 2008-03-26 Robert Dewar <dewar@adacore.com>
10634
10635 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10636 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10637 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10638 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10639 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10640 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10641 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10642 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10643 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10644 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10645 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10646 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10647 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10648 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10649 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10650 double spaced if it fits on one line and otherwise single spaced.
10651
10652 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10653
10654 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
10655 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
10656 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
10657 or task info if the thread could not be created.
10658
10659 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10660
10661 * gnatvsn.ads (Library_Version): Bump to 4.4.
10662 (Current_Year): Bump to 2008.
10663
10664 2008-03-26 Robert Dewar <dewar@adacore.com>
10665
10666 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
10667
10668 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
10669
10670 * debug.adb: Add debug flags d.r and d.v
10671 Add debug flag .T (Optimize_Alignment (Time))
10672 Add debug flag .S (Optimize_Alignment (Space))
10673
10674 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
10675 depending on setting of relevant debug flags.
10676 Replace use of Warnings_Off by Has_Warnings_Off
10677 (Freeze_Entity): In circuit for warning on suspicious convention
10678 actuals, do not give warning if subprogram has same entity as formal
10679 type, or if subprogram does not come from source.
10680 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
10681 if Optimize_Alignment set to Space.
10682
10683 * frontend.adb: Add call to Sem_Warn.Initialize
10684 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
10685 Reset Optimize_Alignment mode from debug switches .S and .T
10686
10687 * layout.adb (Layout_Composite_Object): Rewritten for
10688 Optimize_Aligment pragma.
10689
10690 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
10691 mode.
10692
10693 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
10694
10695 * par-prag.adb (N_Pragma): Chars field removed, use Chars
10696 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
10697 this change. Add entry for pragma Optimize_Alignment
10698
10699 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
10700 (Pragma_Identifier (..
10701 instead, adjustments throughout to accomodate this change.
10702 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
10703 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
10704 Add implementation of pragma Optimize_Alignment
10705
10706 2008-03-26 Vincent Celier <celier@adacore.com>
10707
10708 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
10709 Improve memory usage to avoid use of stack.
10710
10711 2008-03-26 Robert Dewar <dewar@adacore.com>
10712
10713 * a-teioed.ads: Correct value of Default_Fill
10714
10715 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
10716
10717 2008-03-26 Robert Dewar <dewar@adacore.com>
10718
10719 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
10720 with Current_Output (introduce Self).
10721
10722 2008-03-26 Robert Dewar <dewar@adacore.com>
10723
10724 * checks.adb (Ensure_Valid): Capture valid status if possible
10725 (eliminate checks)
10726
10727 2008-03-26 Robert Dewar <dewar@adacore.com>
10728
10729 * stand.ads: Deal with reordering of package standard declarations
10730
10731 * cstand.adb: Put package Standard declarations in proper order
10732
10733 2008-03-26 Robert Dewar <dewar@adacore.com>
10734
10735 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
10736 (Pragma_Identifier (.. instead.
10737 (OK_To_Reorder_Components): New flag
10738 (Has_Entries): Code cleanup.
10739 (Warnings_Off_Used): New flag
10740 (Warnings_Off_Used_Unmodified): New flag
10741 (Warnings_Off_Used_Unreferenced): New flag
10742 (Has_Warnings_Off): New function
10743 (Has_Unmodified): New function
10744 (Has_Unreferenced): New function
10745 (Is_Trivial_Subprogram): New flag
10746 (Is_Static_Dispatch_Table_Entity): New attribute.
10747 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
10748 (more consistent with other similar names)
10749 (Access_Subprogram_Type): New classification function
10750
10751 2008-03-26 Robert Dewar <dewar@adacore.com>
10752
10753 * errout.ads: Document new !! insertion sequence
10754
10755 * errout.adb (N_Pragma): Chars field removed, use Chars
10756 (Pragma_Identifier (.. instead.
10757 Replace use of Warnings_Off by Has_Warnings_Off
10758 (Error_Msg_Internal): Don't delete warning ending in !!
10759
10760 2008-03-26 Robert Dewar <dewar@adacore.com>
10761
10762 * par.adb (Check_No_Right_Paren): Removed no longer used
10763
10764 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
10765 (Pragma_Identifier (.. instead.
10766
10767 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
10768
10769 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
10770 par-ch4.adb: Minor improvements in error recovery and messages.
10771
10772 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
10773 non-serious
10774
10775 * par-ch9.adb: Minor improvements in error recovery and messages
10776 (P_Protected): Better error recovery for "protected type x;"
10777
10778 * par-util.adb: Minor improvements in error recovery and messages
10779 (Check_No_Right_Paren): Removed no longer used
10780
10781 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10782
10783 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
10784 that the prefix of an attribute is the type of the aggregate being
10785 expanded.
10786
10787 2008-03-26 Javier Miranda <miranda@adacore.com>
10788 Robert Dewar <dewar@adacore.com>
10789
10790 * exp_attr.adb (N_Pragma): Chars field removed.
10791 (Expand_N_Attribute_Reference): If the designated type associated with
10792 attribute 'Unrestricted_Access is a subprogram entity then replace it
10793 by an E_Subprogram_Type itype.
10794 Implement attribute Old
10795
10796 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
10797
10798 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
10799 Replace call to
10800 New_Internal_Entity by call to Create_Itype to centralize calls
10801 building itypes, ad propagate the convention of the designated
10802 subprogram. In addition, disable the machinery cleaning constant
10803 indications from all entities in current scope when 'Unrestricted_Access
10804 corresponds with a node initializing a dispatch table slot.
10805 (Analyze_Attribute): Parameterless attributes returning a string or a
10806 type will not be called with improper arguments, so we can remove junk
10807 code that was dealing with this case.
10808 Implement attribute Old
10809
10810 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
10811 Add entry for pragma Optimize_Alignment
10812 New standard names Sync and Synchronize
10813
10814 2008-03-26 Robert Dewar <dewar@adacore.com>
10815 Arnaud Charlet <charlet@adacore.com>
10816
10817 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
10818 stmt.
10819 (No_Exception_Propagation_Active): New function.
10820 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
10821 Update comments, and review all uses of No_Exception_Propagation, which
10822 are now correct and in sync with what gigi expects.
10823
10824 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
10825 function.
10826 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
10827 Update comments, and review all uses of No_Exception_Propagation, which
10828 are now correct and in sync with what gigi expects.
10829
10830 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10831
10832 * sem_ch3.adb (Access_Definition): If the access type is the return
10833 result of a protected function, create an itype reference for it
10834 because usage will be in an inner scope from the point of declaration.
10835 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
10836 OK_To_Reorder_Components.
10837 (Make_Index): If an overloaded range includes a universal integer
10838 interpretation, resolve to Standard.Integer.
10839 (Analyze_Subtype_Indication): Copy Convention to subtype
10840 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
10841 limited an synchronized progenitors in type declaration and private
10842 extension declarations.
10843
10844 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
10845 protected subprogram body, determine proper scope from subprogram
10846 declaration.
10847
10848 2008-03-26 Robert Dewar <dewar@adacore.com>
10849
10850 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
10851 No_Run_Time_Mode
10852
10853 2008-03-26 Gary Dismukes <dismukes@adacore.com>
10854
10855 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
10856 of a heap allocator for a limited unconstrained function return when
10857 resstriction No_Allocators is active.
10858 (Analyze_Allocator): The restriction No_Allocators is now only checked
10859 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10860
10861 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
10862 of a heap allocator for a limited unconstrained function return when
10863 resstriction No_Allocators is active.
10864 (Analyze_Allocator): The restriction No_Allocators is now only checked
10865 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10866 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
10867 operands are fixed-point types, the universal_fixed predefined operation
10868 is used, regardless of whether the operand type (s) have a primitive
10869 operation of the same name.
10870
10871 2008-03-26 Javier Miranda <miranda@adacore.com>
10872
10873 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
10874 Is_Static_Dispatch_Table
10875 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
10876 to Exchange_Declarations to exchange the private and full-view. Bug
10877 found working in this issue.
10878 (Expand_Dispatching_Call): Propagate the convention of the subprogram
10879 to the subprogram pointer type.
10880 (Make_Secondary_DT): Replace generation of Prim'Address by
10881 Address (Prim'Unrestricted_Access)
10882 (Make_DT): Replace generation of Prim'Address by
10883 Address (Prim'Unrestricted_Access)
10884 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
10885 simple call form for single entry.
10886 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
10887 tables of predefined primitives).
10888 (Make_Secondary_DT): Add support to handle access to dispatch tables of
10889 predefined primitives.
10890 (Make_Tags): Add entities to Access_Dispatch_Table associated with
10891 access to dispatch tables containing predefined primitives.
10892
10893 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
10894 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
10895 this change.
10896 (Register_Predefined_DT_Entry): Updated to handle the new contents
10897 of attribute Access_Disp_Table (pointers to dispatch tables containing
10898 predefined primitives).
10899
10900 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
10901 subprogram.
10902 (Find_Interface_ADT): Updated to skip the new contents of attribute
10903 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10904 primitives).
10905
10906 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
10907 concurrent types.
10908 (Set_Convention): Use new function Is_Access_Subprogram_Type
10909 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
10910 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10911 primitives).
10912
10913 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
10914 expanded code avoiding calls to Build_Predef_Prims.
10915 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
10916 call to Build_Get_Predefined_Prim_Op_Address.
10917
10918 2008-03-26 Javier Miranda <miranda@adacore.com>
10919
10920 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
10921 subprogram Corresponding_Runtime_Package to know the runtime package
10922 that will provide support to a given protected type.
10923
10924 * exp_ch9.adb (Add_Private_Declarations,
10925 Build_Protected_Subprogram_Call,
10926 Build_Protected_Entry, Build_Simple_Entry_Call,
10927 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
10928 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
10929 cleanup using the new centralized subprogram Corresponding_Runtime
10930 Package to know the runtime package that provides support to
10931 a given protected type.
10932
10933 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10934
10935 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
10936 assignment is within the initialization procedure for a packed array,
10937 and Initialize_Scalars is enabled, compile right-hand side with checks
10938 off, because the value is purposely out of range.
10939
10940 2008-03-26 Vincent Celier <celier@adacore.com>
10941
10942 * gnatcmd.adb: Add processing for GNAT SYNC
10943
10944 * vms_conv.ads: (Command_Type): Add command Sync
10945
10946 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
10947
10948 * vms_data.ads: Add entries for -gnatw.w
10949 Add qualifier for gnatstub --header-file option
10950 Add switches for GNAT SYNC
10951
10952 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
10953 (Add_Package_Name): New procedure
10954 (Package_Name_List): New function
10955 (Initialize): Add known package names to the list
10956 (Register_New_Package): Add the new package name to the list
10957
10958 2008-03-26 Robert Dewar <dewar@adacore.com>
10959
10960 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
10961 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
10962 Raise_Exception by "raise with" construct.
10963
10964 2008-03-26 Pascal Obry <obry@adacore.com>
10965
10966 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
10967 supported platforms.
10968
10969 * Makefile.rtl: Add g-sercom.o.
10970
10971 * impunit.adb: Add g-sercom.adb.
10972
10973 * s-crtl.ads (open): New routine.
10974 (close): Likewise.
10975 (write): Likewise.
10976
10977 * s-osinte-mingw.ads (BYTE): New type.
10978 (CHAR): Likewise.
10979 (OVERLAPPED): Likewise.
10980 (GENERIC_READ): New constant.
10981 (GENERIC_WRITE): Likewise.
10982 (OPEN_EXISTING): Likewise.
10983 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
10984 type instead.
10985 (CreateFile): New routine.
10986 (WriteFile): Likewise.
10987 (ReadFile): Likewise.
10988 (CloseHandle): Move next to the other file oriented routines.
10989
10990 * g-sercom.ads: New unit.
10991
10992 * g-sercom.adb: Default implementation, calls to this unit will raise
10993 a program error exception.
10994
10995 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
10996 GNU/Linux implementations.
10997
10998 2008-03-26 Robert Dewar <dewar@adacore.com>
10999
11000 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
11001
11002 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
11003 unchecked conversion for different conventions only for subprogram
11004 pointers or on VMS.
11005
11006 2008-03-26 Vincent Celier <celier@adacore.com>
11007
11008 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
11009 to check if the specified object file is correct.
11010
11011 2008-03-26 Thomas Quinot <quinot@adacore.com>
11012
11013 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
11014 Comes_From_Source to exclude primitives from being checked. We want to
11015 exclude predefined primitives only, so use the appropriate specific
11016 predicate. Also, flag a formal parameter of an anonymous
11017 access-to-subprogram type as illegal for a primitive operation of a
11018 remote access to class-wide type.
11019
11020 2008-03-26 Vincent Celier <celier@adacore.com>
11021
11022 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
11023 known, check if it may be a missspelling of a known package name. In
11024 not verbose, not mode, issue warnings only if the package name is a
11025 possible misspelling.
11026 In verbose mode, always issue a warning for a not known package name,
11027 plus a warning if the name is a misspelling of a known package name.
11028
11029 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
11030 limited withs or limited withs are parse during one call.
11031 (Parse_Single_Project): Post parse context clause in two passes: non
11032 limited withs before current project and limited withs after current
11033 project.
11034
11035 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
11036 project with the name With_Name, even if it is only extended indirectly.
11037 (Recursive_Process): Process projects in order: first single withs, then
11038 current project, then limited withs.
11039
11040 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
11041 project with the name With_Name, even if it is only extended indirectly.
11042
11043 2008-03-26 Robert Dewar <dewar@adacore.com>
11044
11045 * scn.adb (Initialize_Scanner): Format messages belong on standard error
11046
11047 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11048
11049 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
11050 a generic subprogram that is imported, do not attempt to compile
11051 non-existent body.
11052
11053 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
11054 imported, do not generate a raise_program_error for the non-existent
11055 body.
11056 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
11057 perform minimal name resolution on the generic to avoid spurious
11058 warnings.
11059 (Find_Actual_Type): the designated type of the actual in a child unit
11060 may be declared in a parent unit without being an actual.
11061
11062 2008-03-26 Robert Dewar <dewar@adacore.com>
11063
11064 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
11065 * sinfo.ads, sinfo.adb (From_At_End): New flag
11066
11067 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11068
11069 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
11070 operations that have an interface parameter.
11071 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
11072 Don't treat No_Return call as raise.
11073
11074 * sem_disp.adb (Check_Dispatching_Operations): apply check for
11075 non-primitive interface primitives to access parameters, not to all
11076 parameters of an access type.
11077
11078 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11079
11080 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
11081 declarations of a parent unit are made visible when compiling a child
11082 instance, the parent is not a hidden open scope, even though it may
11083 contain other pending instance.
11084
11085 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
11086 hidden open scope for some child instance, it does affect the
11087 visibility status of other stach entries.
11088 (Analyze_Object_Renaming): Check that a class-wide object cannot be
11089 renamed as an object of a specific type.
11090
11091 2008-03-26 Robert Dewar <dewar@adacore.com>
11092
11093 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
11094 recursion and raise SE directly.
11095 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
11096 set for formal type for IN mode parameter.
11097
11098 2008-03-26 Robert Dewar <dewar@adacore.com>
11099
11100 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
11101 (Initialize): New procedure
11102 (Output_Warnings_Off_Warnings): New procedure
11103 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
11104 (Output_Non_Modifed_In_Out_Warnings): Ditto
11105 (Warn_On_Unreferenced_Entity): Ditto
11106
11107 2008-03-26 Vincent Celier <celier@adacore.com>
11108
11109 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
11110 readable.
11111
11112 2008-03-26 Matthew Heaney <heaney@adacore.com>
11113
11114 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
11115 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
11116 Marked with clauses as private, and controlled operations as overriding
11117
11118 2008-03-26 Robert Dewar <dewar@adacore.com>
11119
11120 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
11121
11122 2008-03-26 Robert Dewar <dewar@adacore.com>
11123
11124 * back_end.adb, back_end.ads: Minor reformatting
11125
11126 * bindgen.adb: Minor clarification of comments
11127
11128 * fname.ads: Minor comment fixes
11129
11130 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
11131 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
11132
11133 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
11134 xsnames.adb: Remove warnings off pragma no longer needed
11135
11136 * a-catizo.ads, a-calari.ads, a-calfor.adb,
11137 a-calfor.ads: Fix header.
11138
11139 2008-03-26 Tristan Gingold <gingold@adacore.com>
11140
11141 * init.c: Do not adjust pc for HPARITH on alpha/vms.
11142
11143 2008-03-26 Robert Dewar <dewar@adacore.com>
11144
11145 * lib-xref.adb: (OK_To_Set_Reference): New function
11146 (Generate_Reference): Don't set referenced from occurrence in Warnings,
11147 Unmodified, or Unreferenced pragma
11148
11149 2008-03-26 Robert Dewar <dewar@adacore.com>
11150
11151 * alloc.ads: Add entries for Warnings_Off_Pragmas table
11152
11153 2008-03-26 GNAT Script <nobody@adacore.com>
11154
11155 * Make-lang.in: Makefile automatically updated
11156
11157 2008-03-26 Robert Dewar <dewar@adacore.com>
11158
11159 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
11160 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
11161 removed, use Chars (Pragma_Identifier (.. instead, adjustments
11162 throughout to accomodate this change.
11163
11164 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
11165
11166 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
11167 Einfo.Set_Needs_Debug_Info)
11168
11169 2008-03-26 Robert Dewar <dewar@adacore.com>
11170
11171 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
11172 Add description for the new gnatstub option '--header-file'
11173 clarification of -gnatwz/-gnatwZ
11174 Add a "Irix-Specific Considerations" section to document the need to
11175 set LD_LIBRARY_PATH when using the default shared runtime library.
11176 Added documentation for both gcov and gprof.
11177
11178 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
11179 messages that are not suppressed when clients are compiled.
11180 Add documentation of s-pooglo s-pooloc
11181 Document the new GNAT.Serial_Communications API.
11182 Add documentation for 'Old attribute
11183 Add description of pragma Optimize_Alignment
11184
11185 * ug_words: Add entries for -gnatw.w -gnatw.W
11186
11187 * usage.adb: Add line for -gnatw.w (warn on warnings off)
11188
11189 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
11190
11191 Revert
11192 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
11193 PR ada/35186
11194 * decl.c (maybe_pad_type): Avoid padding an integral type when
11195 bumping its alignment is sufficient.
11196
11197 2008-03-25 Arnaud Charlet <charlet@adacore.com>
11198
11199 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
11200 Fix wrong formatting (lines too long)
11201
11202 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11203
11204 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
11205 a-calend-vms.adb, a-calend.adb, a-calend.ads,
11206 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
11207 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
11208 a-cohama.ads, a-comlin.ads, a-coorse.adb,
11209 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
11210 a-except-2005.ads, a-except.adb, a-except.ads,
11211 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
11212 a-exextr.adb, a-filico.ads, a-finali.ads,
11213 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
11214 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
11215 a-sequio.ads, a-strbou.ads, a-strfix.adb,
11216 checks.adb, exp_ch3.adb, exp_ch4.adb,
11217 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
11218 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
11219 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
11220 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
11221 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
11222
11223 2008-03-24 Robert Dewar <dewar@adacore.com>
11224
11225 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
11226 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
11227 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
11228 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
11229 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
11230 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
11231 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11232 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
11233 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
11234 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
11235 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
11236 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
11237 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
11238 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
11239 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
11240 double spaced if it fits on one line and otherwise single spaced.
11241
11242 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11243
11244 PR documentation/15479
11245 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
11246 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
11247 (doc/gnat_ugn.info): Renamed from ...
11248 (doc/gnat_ugn_unw.info): ... this.
11249 (doc/gnat_ugn.dvi): Renamed from ...
11250 (doc/gnat_ugn_unw.dvi): ... this.
11251 (doc/gnat_ugn.pdf): Renamed from ...
11252 (doc/gnat_ugn_unw.pdf): ... this.
11253 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
11254 Adjusted.
11255 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
11256 unconditionally to gnat_ugn.info. Fix cross references to the
11257 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
11258 and GNU make manuals to be proper texinfo links.
11259 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
11260
11261 2008-03-21 Olivier Hainque <hainque@adacore.com>
11262
11263 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
11264 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
11265
11266 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
11267
11268 * trans.c (addressable_p): Add notes on addressability issues.
11269
11270 2008-03-21 Olivier Hainque <hainque@adacore.com>
11271 Ed Schonberg <schonberg@adacore.com>
11272
11273 * trans.c (addressable_p): Accept COND_EXPR when both arms
11274 are addressable.
11275 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
11276 (call_to_gnu): Do not use name reference in the error message
11277 for a misaligned by_reference_parameter. The actual may be a
11278 general expression.
11279
11280 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11281
11282 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11283
11284 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11285
11286 * gnat_rm.texi (Implementation Defined Characteristics)
11287 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
11288 appropriate.
11289 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
11290 (Switches for gnatchop, Installing a library): Likewise.
11291
11292 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
11293
11294 * trans.c (emit_range_check): Do not emit the check if the base type
11295 of the expression is the type against which its range must be checked.
11296
11297 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11298
11299 * decl.c (maybe_pad_type): Use value_factor_p.
11300
11301 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11302
11303 * lang.opt (nostdlib): Move around.
11304 * misc.c (gnat_handle_option): Fix formatting.
11305 (gnat_dwarf_name): Move around.
11306 * trans.c (Case_Statement_to_gnu): Fix formatting.
11307 (gnat_to_gnu): Likewise.
11308 * utils.c (aggregate_type_contains_array_p): Likewise.
11309 (create_subprog_decl): Likewise.
11310
11311 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11312
11313 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
11314 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
11315
11316 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11317
11318 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
11319 BIGGEST_ALIGNMENT when capping the alignment of records with
11320 strict alignment and size clause.
11321
11322 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11323
11324 * lang-specs.h: Pass -gnatwa if -Wall is passed.
11325 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
11326 and -Wuninitialized.
11327 (gnat_post_options): Clear warn_unused_parameter.
11328
11329 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11330
11331 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
11332 aligned bit-fields, bumping the alignment of the record type if deemed
11333 profitable.
11334 (value_factor_p): Return false instead of 0.
11335
11336 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11337
11338 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
11339 for scalar types with small alignment.
11340
11341 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11342
11343 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
11344 from that of the front-end's end label.
11345 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
11346 from that of the loop label.
11347
11348 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
11349
11350 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
11351 comment for the packed array type case.
11352 * utils.c (build_template): Use a loop to strip padding or
11353 containing records for justified modular types.
11354
11355 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
11356
11357 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
11358 large alignments specified for types.
11359 (validate_alignment): Minor cleanup.
11360
11361 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
11362
11363 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
11364 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
11365 the component for packing, if possible, as well as if a component
11366 size clause is specified.
11367 <E_Record_Subtype>: For an array type used to implement a packed
11368 array, get the component type from the original array type.
11369 Try to get a smaller form of the component for packing, if possible,
11370 as well as if a component size clause is specified.
11371 (round_up_to_align): New function.
11372 (make_packable_type): Add in_record parameter.
11373 For a padding record, preserve the size. If not in_record and the
11374 size is too large for an integral mode, attempt to shrink the size
11375 by lowering the alignment.
11376 Ditch the padding bits of the last component.
11377 Compute sizes and mode manually, and propagate the RM size.
11378 Return a BLKmode record type if its size has shrunk.
11379 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
11380 Use Original_Array_Type to retrieve the type in case of an error.
11381 Adjust call to make_packable_type.
11382 (gnat_to_gnu_field): Likewise.
11383 (concat_id_with_name): Minor tweak.
11384 * trans.c (larger_record_type_p): New predicate.
11385 (call_to_gnu): Compute the nominal type of the object only if the
11386 parameter is by-reference. Do the conversion actual type -> nominal
11387 type if the nominal type is a larger record.
11388 (gnat_to_gnu): Do not require integral modes on the source type to
11389 avoid the conversion for types with identical names.
11390 (addressable_p): Add gnu_type parameter. If it is specified, do not
11391 return true if the expression is not addressable in gnu_type.
11392 Adjust recursive calls.
11393 * utils.c (finish_record_type): Remove dead code.
11394
11395 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
11396
11397 PR ada/35186
11398 * decl.c (maybe_pad_type): Avoid padding an integral type when
11399 bumping its alignment is sufficient.
11400
11401 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11402
11403 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
11404 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
11405 statement.
11406 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
11407 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
11408 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
11409 code output strings.
11410 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
11411 system-vms_64.ads: Fix typos in ada source code comments.
11412 * sinfo-cn.adb: Remove incomplete sentence.
11413
11414 PR documentation/15479
11415 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
11416
11417 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
11418
11419 PR ada/22255
11420 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
11421
11422 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
11423
11424 PR ada/34799
11425 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
11426 that underlying type is present.
11427
11428 2008-02-26 Tom Tromey <tromey@redhat.com>
11429
11430 * misc.c (internal_error_function): Remove test of
11431 USE_MAPPED_LOCATION.
11432 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
11433 (Sloc_to_locus): Remove old location code.
11434
11435 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11436
11437 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
11438 `i.e.' by adding comma or `@:' as appropriate.
11439 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
11440 plain characters `C', use `@samp{C}'.
11441 * gnat_ugn.texi (File Naming Rules, About gnatkr)
11442 (Krunching Method): Likewise.
11443
11444 * gnat_ugn.texi (Conventions): List environment variables and
11445 metasyntactic variables.
11446 (Compiling Programs): Fix notation of metasyntactic variables.
11447 Add @file where appropriate. Use @file for file extensions,
11448 @samp for strings.
11449 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
11450 instead of @file, @env instead of @code.
11451
11452 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11453
11454 PR documentation/15479
11455 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
11456 and `...' with `@dots{}' or `@enddots{}'.
11457
11458 PR documentation/15479
11459 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
11460 use @command instead of @code, @option instead of @samp or @code,
11461 @code instead of @var, @samp instead of @file.
11462
11463 PR documentation/15479
11464 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
11465 in Makefile rules, by using `&&' rather than `;'.
11466
11467 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11468
11469 PR documentation/15479
11470 * gnat_ugn.texi: In non-code, avoid space before colon.
11471 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
11472 (Examples of gnatxref Usage): Use @command{vi} instead of
11473 @file{vi}.
11474 (Character Set Control): Do not use @code for UTF-8.
11475 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
11476 use @code for IEEE.
11477 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
11478 sample.
11479 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
11480
11481 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
11482
11483 PR ada/35143
11484 * env.c: Add __rtems__ to if defined.
11485 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
11486 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
11487 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
11488 pragma Convention as required.
11489 * gsocket.h: Make compile in and out of RTS.
11490 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
11491 Use g-soccon-rtems.ads.
11492 * g-soccon-rtems.ads, system-rtems.ads: New files.
11493
11494 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11495
11496 PR other/35107
11497 * Make-lang.in (gnat1): Add $(GMPLIBS).
11498
11499 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
11500
11501 * decl.c (components_to_record): Improve comment.
11502
11503 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11504
11505 * decl.c (components_to_record): Do not reuse the empty union type
11506 if there is a representation clause on the record.
11507 * trans.c (addressable_p): Return true for INTEGER_CST.
11508
11509 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
11510
11511 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
11512 in pointer arithmetics.
11513 * utils2.c (build_allocator): Likewise.
11514
11515 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
11516
11517 * utils.c (build_function_stub): Properly build the call expression.
11518
11519 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
11520
11521 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
11522 before converting the expression to the type of the object.
11523 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
11524 Stabilize constructors for special wrapping types.
11525
11526 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
11527
11528 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
11529 when necessary. Merge some conditional statements. Update comments.
11530 Rename unchecked_convert_p local variable to suppress_type_conversion.
11531 Do not suppress conversions in the In case.
11532 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
11533 into account on non strict-alignment platforms.
11534
11535 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11536
11537 * utils.c (aggregate_type_contains_array_p): New predicate.
11538 (create_field_decl): In a packed record, force byte alignment
11539 for fields without specified position that contain an array.
11540
11541 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11542
11543 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
11544
11545 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
11546
11547 PR ada/34466
11548 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
11549 sysconf call.
11550 (bit_field): New packed boolean type used by cpu_set_t.
11551 (cpu_set_t): New type corresponding to the C type with
11552 the same name. Note that on the Ada side we use a bit
11553 field array for the affinity mask. There is not need
11554 for the C macro for setting individual bit.
11555 (pthread_setaffinity_np): New imported routine.
11556
11557 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
11558
11559 PR ada/34647
11560 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
11561 on OpenBSD as is done on other BSD systems.
11562
11563 PR ada/34645
11564 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
11565 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
11566 I/O.
11567
11568 PR ada/34644
11569 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
11570 clearenv().
11571
11572 PR ada/34646
11573 * init.c (__gnat_error_handler, __gnat_install_handler,
11574 __gnat_init_float): Define for OpenBSD.
11575
11576 * initialize.c (__gnat_initialize): Define for OpenBSD.
11577
11578 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
11579
11580 PR ada/34553
11581 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
11582 instead of mktemp() or tmpnam() on NetBSD.
11583
11584 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
11585
11586 * trans.c (call_to_gnu): Make the temporary for non-addressable
11587 In parameters passed by reference.
11588 (addressable_p): Return true for STRING_CST and CALL_EXPR.
11589
11590 2007-12-19 Robert Dewar <dewar@adacore.com>
11591
11592 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
11593 Add pragma Warnings (Off) for unassigned IN OUT arguments
11594
11595 * sem_warn.adb (Output_Reference): Suppress messages for internal names
11596 (Check_References): Extensive changes to tune up warnings
11597 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
11598 (Has_Pragma_Unmodifed_Check_Spec): New function
11599 (Check_References): Implement pragma Unmodified
11600 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
11601
11602 * par-prag.adb: Dummy entry for pragma Unmodified
11603
11604 * sem_prag.adb: Implement pragma Unmodified
11605
11606 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
11607 (Proc_Next_Component_Or_Discriminant): Fix typo.
11608 Update comments.
11609
11610 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
11611 Unmodified.
11612 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
11613 because the former already takes care of discarding the result.
11614 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
11615 Add comment.
11616
11617 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
11618
11619 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
11620
11621 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
11622 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
11623 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
11624 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
11625 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11626 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11627 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
11628 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11629 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11630 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
11631 (Dynamic_Trampolines_Used): Delete.
11632
11633 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
11634 Turn on stack probing mechanism on LynxOS.
11635
11636 2007-12-19 Bob Duff <duff@adacore.com>
11637
11638 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
11639 the resulting tail recursion by hand. This prevents running out of
11640 memory on deeply nested concatenations, since Field2 is where the left
11641 operand of concatenations is stored.
11642 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
11643 clarify that it can only return OK or Abandon.
11644
11645 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
11646 operand by iteration, in order to avoid running out of memory on
11647 deeply-nested concatenations. Use the Parent pointer to get back up the
11648 tree.
11649 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
11650 Resolve_Op_Concat_Rest): New procedures split out of
11651 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
11652 clearer.
11653
11654 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
11655 Traverse_Func, because the former already takes care of discarding the
11656 result.
11657
11658 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
11659 because the former already takes care of discarding the result.
11660 (Remove_Warning_Messages): Use appropriate subtype for Status and
11661 Discard
11662
11663 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11664
11665 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
11666 discriminants forces expansion of the aggregate into assignments.
11667 (Init_Record_Controller): If the type of the aggregate is untagged and
11668 is not inherently limited, the record controller is not limited either.
11669
11670 2007-12-19 Robert Dewar <dewar@adacore.com>
11671
11672 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
11673 handling compile time known size of record or array (case of front end
11674 layout active, e.g. in GNAAMP).
11675
11676 2007-12-19 Javier Miranda <miranda@adacore.com>
11677
11678 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
11679 that forces the construction of static dispatch tables in case of
11680 record subtypes.
11681
11682 2007-12-19 Robert Dewar <dewar@adacore.com>
11683
11684 * exp_ch9.adb (Null_Statements): Moved to library level
11685 (Trivial_Accept_OK): New function
11686 (Expand_Accept_Declaration): Use Trivial_Accept_OK
11687 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
11688
11689 2007-12-19 Robert Dewar <dewar@adacore.com>
11690
11691 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
11692 in complex case where array is Volatile.
11693
11694 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11695
11696 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
11697 properly the Ada2005 rules concerning when the current instance of a
11698 record type is aliased.
11699
11700 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11701
11702 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
11703 mangled declaration
11704 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
11705 declarations.
11706 (P_Variant_Part): Cleaner patch for parenthesized discriminant
11707
11708 2007-12-19 Vincent Celier <celier@adacore.com>
11709
11710 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
11711 package is not known
11712
11713 * prj-attr.ads (Unknown_Package): New constant
11714 Do not crash when an unknown package is in several projects
11715
11716 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
11717 ignored
11718
11719 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
11720 existing package Language_Processing.
11721
11722 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11723 Gary Dismukes <dismukes@adacore.com>
11724 Samuel Tardieu <sam@rfc1149.net>
11725
11726 PR ada/15803, ada/15805
11727 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
11728 illegal access subtypes when there is a constrained partial view.
11729 (Check_For_Premature_Usage): New procedure inside
11730 Access_Subprogram_Declaration for checking that an access-to-subprogram
11731 type doesn't reference its own name within any formal parameters or
11732 result type (including within nested anonymous access types).
11733 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
11734 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
11735 context is an access_to_variable, the expression cannot be an
11736 access_to_constant.
11737
11738 2007-12-19 Bob Duff <duff@adacore.com>
11739
11740 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
11741 (Analyze_Concatenation): Use iteration instead of recursion in order
11742 to avoid running out of stack space for deeply nested concatenations.
11743
11744 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11745 Gary Dismukes <dismukes@adacore.com>
11746
11747 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
11748 whose renamed entity is a subprogram that requires overriding.
11749 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
11750 issuing an error for premature usage and issue a message that says
11751 'type' rather than 'object'.
11752
11753 2007-12-19 Gary Dismukes <dismukes@adacore.com>
11754
11755 PR ada/34149
11756 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
11757 presence of a statically tagged operand (Present (Static_Tag)) with
11758 test for Indeterm_Ancestor_Call when determining whether to propagate
11759 the static tag to tag-indeterminate operands (which forces dispatching
11760 on such calls).
11761 (Check_Controlling_Formals): Ada2005, access parameters can have
11762 defaults.
11763 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
11764 not insert subprogram in list of primitive operations if already there.
11765
11766 2007-12-19 Tristan Gingold <gingold@adacore.com>
11767
11768 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
11769 global variable.
11770
11771 2007-12-19 Thomas Quinot <quinot@adacore.com>
11772
11773 Part of PR ada/33688
11774 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
11775 datagram info on Linux.
11776
11777 2007-12-19 Vincent Celier <celier@adacore.com>
11778
11779 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
11780 that the source path name is always found in the dependencies.
11781
11782 2007-12-19 Robert Dewar <dewar@adacore.com>
11783
11784 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
11785 Fix name of Wide_Wide_Latin_1/9 file names
11786 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
11787 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
11788 Add missing documentation for Ada.Command_Line.Response_File
11789 Update list of warning letters for Warnings pragma
11790 Add documentation for pragma Unmodified
11791
11792 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
11793
11794 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
11795
11796 2007-12-17 Arnaud Charlet <charlet@adacore.com>
11797
11798 * s-vxwork-alpha.ads: Removed, no longer used.
11799
11800 2007-12-15 Jakub Jelinek <jakub@redhat.com>
11801
11802 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
11803
11804 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
11805
11806 PR ada/34360
11807 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
11808 mlib-tgt-specific.adb.
11809
11810 2007-12-13 Bob Duff <duff@adacore.com>
11811
11812 * trans.c (Attribute_to_gnu): Check for violations of the
11813 No_Implicit_Dynamic_Code restriction. This checking used to be done in
11814 the front end, but is moved here so we can make it more accurate.
11815
11816 2007-12-13 Pascal Obry <obry@adacore.com>
11817
11818 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
11819 version is provided for older GNU/Linux distribution not
11820 supporting thread affinity sets.
11821
11822 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
11823 call.
11824 (bit_field): New packed boolean type used by cpu_set_t.
11825 (cpu_set_t): New type corresponding to the C type with
11826 the same name. Note that on the Ada side we use a bit
11827 field array for the affinity mask. There is not need
11828 for the C macro for setting individual bit.
11829 (pthread_setaffinity_np): New imported routine.
11830
11831 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
11832 no null.
11833 (Create_Task): Set the processor affinity mask if information
11834 is present.
11835
11836 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
11837
11838 2007-12-13 Robert Dewar <dewar@adacore.com>
11839
11840 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11841 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
11842 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
11843 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
11844 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
11845 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
11846 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
11847 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
11848 for subprogram pointers.
11849
11850 * g-ctrl_c.adb: New file.
11851
11852 * g-ctrl_c.ads (Install_Handler): New body.
11853
11854 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
11855 instead of obsolete function Is_Always_Inlined.
11856 (Freeze_Entity): check for tagged type in imported C subprogram
11857 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
11858 (Freeze_Entity): check for convention Ada subprogram pointer in
11859 imported C subprogram.
11860 (Freeze_Fixed_Point_Type): In the case of a base type where the low
11861 bound would be chopped off and go from negative to zero, force
11862 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
11863 bound) so that the size computation for the base type will take
11864 negative values into account.
11865
11866 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
11867 Bob Duff <duff@adacore.com>
11868 Tristan Gingold <gingold@adacore.com>
11869
11870 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11871 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11872 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11873 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
11874 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11875 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11876 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11877 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
11878 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
11879 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
11880 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
11881 (Always_Compatible_Rep): New flag to control trampolines globally.
11882 (Dynamic_Trampolines_Used): New flag for implementing the
11883 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
11884 and not yet set correctly for some targets).
11885
11886 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
11887 Simply indirectly call s-stchop when a task is created.
11888
11889 * ali.ads:
11890 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
11891 appears as an argument (entries A) in an ALI file.
11892
11893 * fe.h (Stack_Check_Limits): Declare new target parameter.
11894 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
11895
11896 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
11897 This variable is declared in C to be sure not subject to elaboration
11898 code.
11899 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
11900 Storage_Error.
11901
11902 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
11903 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
11904
11905 * s-stchop.ads: Add comments.
11906
11907 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
11908 limit method of stack checking.
11909
11910 * s-stchop-limit.ads: New file.
11911
11912 2007-12-13 Robert Dewar <dewar@adacore.com>
11913
11914 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
11915 a-cihama.adb, g-awk.adb,
11916 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
11917 warnings
11918
11919 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
11920
11921 * sem.adb: Update handling of assigned value/unreferenced warnings
11922
11923 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
11924
11925 * lib-xref.ads: Improve documentation for k xref type
11926
11927 * lib-xref.adb:
11928 Update handling of assigned value/unreferenced warnings
11929 (Generate_Reference): Warning for reference to entity for which a
11930 pragma Unreferenced has been given should be unconditional.
11931 If the entity is a discriminal, mark the original
11932 discriminant as referenced.
11933
11934 * sem_warn.ads, sem_warn.adb
11935 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
11936 no entities referenced in package
11937 (Check_One_Unit): Don't give message about no entities referenced in
11938 a package if a pragma Unreferenced has appeared.
11939 Handle new warning flag -gnatw.a/-gnatw.A
11940 Update handling of assigned value/unreferenced warnings
11941
11942 * atree.h: Add flags up to Flag247
11943 (Flag231): New macro.
11944
11945 2007-12-13 Jose Ruiz <ruiz@adacore.com>
11946
11947 * adaint.h: (__gnat_plist_init): Not defined for RTX.
11948
11949 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
11950 RTX systems.
11951
11952 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
11953 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
11954 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
11955 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
11956
11957 * mingw32.h:
11958 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
11959
11960 * sysdep.c (winflush_function for RTX): Procedure that does nothing
11961 since we only have problems with Windows 95/98, which are not
11962 supported by RTX.
11963 (__gnat_ttyname): Return the empty string on Nucleus, just as
11964 done on vxworks.
11965
11966 2007-12-13 Robert Dewar <dewar@adacore.com>
11967
11968 * a-textio.adb, a-textio.ads:
11969 Extensive changes to private part for wide character encoding
11970
11971 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
11972 (Look_Ahead): Fix mishandling of encoded sequences
11973 Move declaration of Wch_Con to private part (should not be visible)
11974
11975 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
11976 UTF-8. Probably this is never used, but if it is, brackets is
11977 clearly correct.
11978
11979 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
11980 setting wide character encoding for no main program case and when
11981 encoding is specified using -W?
11982 Initialize stack limit of environment task if stack limit method of
11983 stack checking is enabled.
11984 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
11985 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
11986 (Get_Main_Unit_Name): New function.
11987 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
11988 (Gen_Output_File): Set Bind_Main_Program to True for .NET
11989
11990 * bindusg.adb: Add line for -Wx switch
11991
11992 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
11993 Add comments
11994 Add new useful constant WC_Longest_Sequences
11995
11996 * switch-b.adb: Clean up handling of -Wx switch
11997 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11998
11999 * switch-c.adb: -gnatg activates warning on assertion errors
12000 For -gnatWx, set Wide_Character_Encoding_Method_Specified
12001
12002 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
12003
12004 2007-12-13 Robert Dewar <dewar@adacore.com>
12005 Ed Schonberg <schonberg@adacore.com>
12006
12007 * a-ngcoty.adb: New pragma Fast_Math
12008
12009 * opt.adb: New pragma Fast_Math
12010
12011 * par-prag.adb:
12012 Add Implemented_By_Entry to the list of pragmas which do not require any
12013 special processing.
12014 (Favor_Top_Level): New pragma.
12015 New pragma Fast_Math
12016
12017 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
12018 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
12019 Expand_Allocator_Expression): Take into account VM_Target
12020 (Expand_Attribute, case 'Identity): Handle properly the case where
12021 the prefix is a task interface.
12022 New pragma Fast_Math
12023
12024 * par.adb (Next_Token_Is): New function
12025 (P_Pragma): Add Skipping parameter
12026 (U_Left_Paren): New procedure
12027 (U_Right_Paren): New procedure
12028 New pragma Fast_Math
12029
12030 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
12031 subunit
12032 New pragma Fast_Math
12033
12034 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
12035 Implemented_By_Entry.
12036 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
12037 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
12038 items, since it can apply to more than one overloadable entity. Set
12039 new flag Has_Pragma_Inline_Always for Inline_Always case.
12040 (Analyze_Pragma, case Complex_Representation): Improve error message.
12041 (Analyze_Pragma, case Assert): When assertions are disabled build the
12042 rewritten code with Sloc of expression rather than pragma, so new
12043 warning about failing is not deleted.
12044 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
12045 protected types and update error message to reflect that. Test whether
12046 the protected type is allowed for the pragma (an error is issued if the
12047 type has any entries, or components that do not have preelaborable
12048 initialization).
12049 New pragma Fast_Math
12050 (Analyze_Pragma, case No_Return): Handle generic instance
12051
12052 * snames.h, snames.ads, snames.adb:
12053 Add new predefined name for interface primitive _Disp_Requeue.
12054 New pragma Fast_Math
12055
12056 * a-tags.ads, a-tags.adb: New calling sequence for
12057 String_To_Wide_[Wide_]String
12058 (Secondary_Tag): New subprogram.
12059
12060 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
12061 from Exp_Attr
12062 New calling sequence for String_To_Wide_[Wide_]String
12063 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
12064 the use of the secondary stack for image routines.
12065
12066 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
12067 calling sequence for String_To_Wide_[Wide_]String
12068
12069 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
12070 Ada 95 mode
12071 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
12072 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12073
12074 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
12075 (P_Formal_Part): Use Skipping parameter in P_Pragma call
12076 to improve error recovery
12077
12078 * par-util.adb (Next_Token_Is): New function
12079 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
12080
12081 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
12082 semicolon if missing
12083 (P_Pragma): Implement new Skipping parameter
12084 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12085 Fix location of flag for unrecognized pragma message
12086
12087 * par-tchk.adb (U_Left_Paren): New procedure
12088 (U_Right_Paren): New procedure
12089
12090 2007-12-13 Geert Bosch <bosch@adacore.com>
12091
12092 * a-tifiio.adb:
12093 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
12094 the second or later Scaled_Divide would omit leading zeroes,
12095 resulting in too few digits produced and a Layout_Error as result.
12096 (Put): Initialize Pos.
12097
12098 2007-12-13 Robert Dewar <dewar@adacore.com>
12099
12100 atree.ads, atree.adb (Flag231..Flag247): New functions
12101 (Set_Flag231..Set_Flag247): New procedures
12102 (Basic_Set_Convention): Rename Set_Convention to be
12103 Basic_Set_Convention
12104 (Nkind_In): New functions
12105 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12106
12107 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
12108 instead
12109 of obsolete function Is_Always_Inlined
12110 (Register_Predefined_DT_Entry): Initialize slots of the second
12111 secondary dispatch table.
12112 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12113 (Expand_N_Function_Call): Remove special provision for stack checking.
12114
12115 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
12116 Include _Disp_Requeue in the list of predefined operations.
12117 (Find_Interface_ADT): Modified to fulfill the new specification.
12118 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12119
12120 * par-ch4.adb, nlists.ads, nlists.adb:
12121 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12122
12123 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
12124 Fix location of flag for unrecognized pragma message
12125
12126 * sem_ch7.adb: Use Nkind_In
12127
12128 2007-12-13 Vincent Celier <celier@adacore.com>
12129
12130 * opt.ads:
12131 Indicate what flags are used by the Project Manager, gprbuild and
12132 gprclean.
12133 (Opt.Follow_Links_For_Dirs): New flag
12134 (Warn_On_Assertion_Failure): New flag
12135 (Wide_Character_Encoding_Method_Specified): New flag
12136 (Suppress_All_Inlining): New switch set by -fno-inline
12137 (Real_VMS_Target): New flag
12138 New pragma Fast_Math
12139
12140 2007-12-13 Robert Dewar <dewar@adacore.com>
12141
12142 * back_end.adb: Recognize -fno-inline
12143
12144 2007-12-13 Robert Dewar <dewar@adacore.com>
12145
12146 * checks.adb: Fix optimization problem with short-circuited form
12147
12148 2007-12-13 Bob Duff <duff@adacore.com>
12149
12150 * clean.adb (Usage): Add line for -aP
12151 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
12152 with a parameter "procedure Usage", instead of passing a pointer to a
12153 procedure. This is to eliminate trampolines (since the Usage procedure
12154 is often nested in a main procedure, and it would be inconvenient to
12155 unnest it).
12156
12157 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
12158 to be generic, with a parameter "procedure Callback (...)", instead of
12159 passing a pointer to a procedure. This is to eliminate trampolines
12160 (since the Callback procedure is usually nested).
12161
12162 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
12163 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
12164 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
12165
12166 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
12167 Use the generic Heap_Sort_G instead of Heap_Sort_A.
12168
12169 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12170
12171 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
12172 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
12173 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
12174 (Renamed_In_Spec): New flag
12175 (Has_Pragma_Inline_Always): New flag
12176 Add missing doc for pragma Obsolescent_Warning
12177 Add missing doc for 17 additional unused flags (230-247)
12178 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
12179 Alphabetize with clauses.
12180 Separate Is_Thunk and Has_Thunks flags
12181 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
12182 (Related_Interface): Renamed to Related_Type.
12183 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
12184 (Set_Is_Flag): Restrict the assertion.
12185
12186 2007-12-13 Vincent Celier <celier@adacore.com>
12187
12188 * errout.adb (Output_Source_Line): Do not keep a trailing space after
12189 the source line number if the source line is empty.
12190
12191 2007-12-13 Geert Bosch <bosch@adacore.com>
12192
12193 * eval_fat.adb (Decompose_Int): Handle argument of zero.
12194 (Compose): Remove special casing of zero.
12195 (Exponent): Likewise.
12196 (Fraction): Likewise.
12197 (Machine): Likewise.
12198 (Decompose): Update comment.
12199
12200 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12201
12202 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
12203 limited ancestor part, initialize controllers of enclosing record
12204 before expanding ancestor aggregate.
12205 (Gen_Assign): If a component of the aggregate is box-initialized, add
12206 code to call Initialize if the component is controlled, and explicit
12207 assignment of null if the component is an access type.
12208
12209 Handle properly aggregates for limited types that appear in object
12210 declarations when the aggregate contains controlled values such as
12211 protected types.
12212 When expanding limited aggregates into individual components, do not
12213 call Adjust on controlled components that are limited.
12214
12215 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12216
12217 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
12218
12219 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12220
12221 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
12222 predefined primitive _Disp_Requeue.
12223 (Make_Predefined_Primitive_Specs): Create the spec for predefined
12224 primitive _Disp_Requeue.
12225 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
12226 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
12227 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
12228 an interface type. In case of limited interfaces we now declare all the
12229 predefined primitives associated with synchronized interfaces as
12230 abstract.
12231 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
12232 declarations.
12233 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
12234 tagged type is an interface type and there is no user-defined equality
12235 function.
12236 Add also bodies of predefined primitives associated with synchronized
12237 interfaces.
12238 (Freeze_Record_Type): Do not build bodies of predefined primitives of
12239 interface types because they are now defined abstract.
12240 Add missing documentation.
12241 (Expand_Record_Controller): Update occurrence of Related_Interface
12242 to Related_Type.
12243 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
12244 (Expand_N_Object_Declaration): Take into account VM_Target when handling
12245 class wide interface object declaration.
12246 (Expand_Previous_Access_Type): Do not create a duplicate master entity
12247 if the access type already has one.
12248 (Expand_N_Object_Declaration): Defend against attempt to validity check
12249 generic types. Noticed for -gnatVcf specified with previous errors.
12250
12251 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12252
12253 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
12254 Expand_Allocator_Expression): Take into account VM_Target
12255
12256 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
12257 secondary stack when VM_Target /= No_VM
12258
12259 2007-12-13 Javier Miranda <miranda@adacore.com>
12260 Ed Schonberg <schonberg@adacore.com>
12261
12262 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
12263 Is_Complation_Unit by Is_Library_Level_Entity in the code
12264 that decides if the static dispatch tables need to be built.
12265 (Wrap_Transient_Declaration): Do not generate a finalization call if
12266 this is a renaming declaration and the renamed object is a component
12267 of a controlled type.
12268
12269 2007-12-13 Gary Dismukes <dismukes@adacore.com>
12270
12271 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
12272 In the case where the renamed subprogram is a dereference, call
12273 Force_Evaluation on the prefix.
12274
12275 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12276 Ed Schonberg <schonberg@adacore.com>
12277
12278 * exp_ch9.adb (Expand_N_Asynchronous_Select,
12279 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
12280 comment reformatting.
12281 (Set_Privals): Inherit aliased flag from formal. From code reading.
12282 (Build_Simple_Entry_Call): Out parameters of an access type are passed
12283 by copy and initialized from the actual. This includes entry parameters.
12284 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
12285 and Ada 2005 models of requeue.
12286 (Null_Statements): Still connsider do-end block null if it contains
12287 Unreferenced and Warnings pragmas.
12288 (Expand_N_Accept_Statement): Do not optimize away null do end if
12289 dispatching policy is other than defaulted.
12290 (Expand_N_Timed_Entry_Call): When the triggering statement is a
12291 dispatching call, manually analyze the delay statement.
12292 (Find_Parameter_Type): Move subprogram to Sem_Util.
12293
12294 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12295 Javier Miranda <miranda@adacore.com>
12296
12297 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
12298 _Disp_Requeue occupies dispatch table slot number 15. Move
12299 _Disp_Timed_Select to slot 16.
12300 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
12301 generate the spec and body of _Disp_Reqeueue.
12302 (Make_DT): Build and initialize the second dispatch table.
12303 Handle initialization of RC_Offset when the parent
12304 is a private type with variable size components.
12305 (Make_Secondary_DT): Complete documentation. Add support to
12306 initialize the second dispatch table.
12307 (Make_Tags): Generate the tag of the second dispatch table.
12308 (Register_Primitive): Add support to register primitives in the
12309 second dispatch table.
12310
12311 2007-12-13 Pascal Obry <obry@adacore.com>
12312
12313 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
12314 Windows. This signal is used by gnatmake to kill child processes for
12315 example.
12316
12317 2007-12-13 Javier Miranda <miranda@adacore.com>
12318
12319 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
12320 support for generic dispatching constructor calls in which we need to
12321 locate the tag of a secondary dispatch table associated with an
12322 interface type to properly dispatch the call.
12323 (Expand_N_Attribute_Reference [case Address],
12324 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
12325 handling of VM targets.
12326
12327 2007-12-13 Robert Dewar <dewar@adacore.com>
12328 Ed Schonberg <schonberg@adacore.com>
12329
12330 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
12331 assert fail
12332
12333 * ug_words: Add entries for -gnatw.a -gnatw.A
12334
12335 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
12336 literal is a subtype with non-static constraints, use the base type of
12337 the context as the base of the string subtype, to prevent type
12338 mismatches in gigi.
12339 (Resolve_Actuals): If the actual is an entity name, generate a
12340 reference before the actual is resolved and expanded, to prevent
12341 spurious warnings on formals of enclosing protected operations.
12342 (Analyze_Overloaded_Selected_Component): If type of prefix if
12343 class-wide, use visible components of base type.
12344 (Resolve_Selected_Component): Ditto.
12345 (Resolve_Short_Circuit): Detect case of pragma Assert argument
12346 evaluating to False, and issue warning message.
12347
12348 * usage.adb: Add lines for -gnatw.a and -gnatw.A
12349
12350 2007-12-13 Emmanuel Briot <briot@adacore.com>
12351
12352 * g-calend.ads (No_Time): New constant, to represent an uninitialized
12353 time value
12354
12355 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
12356 formats.
12357 (Month_Name_To_Number): New subprogram
12358
12359 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
12360 letter to upper-case.
12361
12362 2007-12-13 Robert Dewar <dewar@adacore.com>
12363 Ed Schonberg <schonberg@adacore.com>
12364
12365 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
12366
12367 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
12368 context is a limited view, use non-limited view when available. If the
12369 non-limited view is an unconstrained array, this enforces consistency
12370 requirements in 3.10.2 (27).
12371 (Layout_Type): For an access type whose designated type is a limited
12372 view, examine its declaration to determine if it is an unconstrained
12373 array, and size the access type accordingly.
12374 (Layout_Type): Do not force 32-bits for convention c subprogram
12375 pointers in -gnatdm mode, only if real vms target.
12376
12377 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
12378 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
12379 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
12380 violations of the No_Implicit_Dynamic_Code restriction.
12381 (Resolve_Attribute, case 'Access): If designated type of context is a
12382 limited view, use non-limited view when available. If the non-limited
12383 view is an unconstrained array, this enforces consistency requirements
12384 in 3.10.2 (27).
12385 (Layout_Type): For an access type whose designated type is a limited
12386 view, examine its declaration to determine if it is an unconstrained
12387 array, and size the access type accordingly.
12388
12389 2007-12-13 Vincent Celier <celier@adacore.com>
12390
12391 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
12392 object directory of main project does not exist.
12393 On VMS, correctly set then environment variable for the source
12394 directories.
12395
12396 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
12397
12398 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
12399 set to True this procedure will create the value of type REG_EXPAND_SZ.
12400 It was only possible to create REG_SZ values before.
12401
12402 2007-12-13 Robert Dewar <dewar@adacore.com>
12403
12404 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
12405 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
12406 namet-sp.adb, namet-sp.ads: New files.
12407
12408 * g-speche.adb: Use generic routine in g-spchge
12409
12410 * s-wchcnv.ads, s-wchcnv.adb:
12411 Minor code cleanup (make formal type consistent with spec)
12412
12413 * namet.adb: Update comments.
12414
12415 * par-endh.adb (Evaluate_End_Entry): Use new
12416 Namet.Sp.Is_Bad_Spelling_Of function
12417
12418 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
12419
12420 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
12421 ancestor is an access type initialized with a box, set its type
12422 explicitly, for use in subsequent expansion.
12423 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
12424 function
12425
12426 2007-12-13 Robert Dewar <dewar@adacore.com>
12427
12428 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
12429 access Vstring)
12430
12431 2007-12-13 Robert Dewar <dewar@adacore.com>
12432
12433 * inline.adb (Back_End_Cannot_Inline): Use new flag
12434 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
12435
12436 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
12437 Has_Pragma_Inline_Always instead.
12438 of obsolete function Is_Always_Inlined
12439 (Build_Body_To_Inline): Same change
12440 (Cannot_Inline): Same change
12441 Do not give warning on exception raise in No_Return function
12442
12443 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
12444 component has two inconsistent component clauses in the same record
12445 representation clause, favor the message that complains about
12446 duplication rather than inconsistency.
12447 Update comments.
12448 (Record_Representation_Clause): Do not warn on missing component
12449 clauses for inherited components of a type extension.
12450 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
12451 an overloadable item if it is a pragma that can apply to multiple
12452 overloadable entities (e.g. Inline) because a pragma cannot be on
12453 more than one chain at a time.
12454 (Validate_Unchecked_Conversion): Add code to warn on unchecked
12455 conversion where one of the operands is Ada.Calendar.Time.
12456 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
12457 For now, ignore Component_Size clause on VM targets, as done for
12458 pragma Pack.
12459
12460 2007-12-13 Emmanuel Briot <briot@adacore.com>
12461 Vincent Celier <celier@adacore.com>
12462
12463 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
12464 string
12465 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
12466 prj.ads
12467 (Hash): Move instantiation of System.HTable.Hash from spec to body
12468 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
12469 systems, since we do not need to recompute the Name_Id for the canonical
12470 file name.
12471 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
12472 as a parameter. This parameter is in fact always "ada" in all calls, and
12473 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
12474 while loading a project with 40000 files
12475
12476 * prj-attr.adb: Fix name of attribute Dependency_Driver
12477 Change the kind of indexing for attribute Root
12478
12479 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
12480 variables already declared, in case constructions.
12481
12482 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
12483 Current_Object_Path_File to No_Path.
12484
12485 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
12486 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
12487
12488 * prj-makr.adb: new parameter Current_Dir
12489
12490 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
12491 Ada sources when language is not Ada.
12492 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
12493 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
12494 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
12495 (Locate_Directory): Always resolve links when computing Canonical_Path
12496 (Look_For_Sources): Make sure that Name_Buffer contains the file name
12497 in Source_Files before checking for the presence of a directory
12498 separator.
12499 Optimize calls to Name_Find when on case sensitive systems.
12500 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
12501 as a parameter.
12502 (Prj.Nmsc.Check): new parameter Current_Dir
12503 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
12504 cannot be empty and the spec suffix cannot be the same as the body or
12505 separate suffix.
12506 (Get_Unit): When a file name can be of several unit kinds (spec, body or
12507 subunit), always consider the longest suffix.
12508 (Check_Configuration): Do not issue an error if there is no compiler
12509 for a language. Just issue a warning and ignore the sources for the
12510 language.
12511 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
12512 not empty.
12513 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
12514 (Unit_Exceptions): New hash table
12515 (Check_Naming_Schemes): Check if a file that could be a unit because of
12516 the naming scheme is not in fact a source because there is an exception
12517 for the unit.
12518 (Look_For_Sources): Put the unit exceptions in hash table
12519 Unit_Exceptions
12520 (Get_Unit_Exceptions): Give initial value No_Source to local variable
12521 Other_Part to avoid exception when code is compiled with validity
12522 checking.
12523 (Get_Sources_From_File): Check that there is no directory information
12524 in the file names.
12525 (Look_For_Sources): Check that there is no directory information in the
12526 list of file names in Source_Files.
12527 (Look_For_Sources): In multi-language mode, do not allow exception file
12528 names that are excluded.
12529 (Excluded_Sources_Htable): New hash table
12530 (Search_Directories.Check_File): New procedure to simplify
12531 Search_Directories.
12532 (Search_Directories): Do not consider excluded sources
12533 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
12534 Search_Directories.
12535 (Get_Exceptions): Set component Lang_Kind of Source_Data
12536 (Get_Unit_Exceptions): Ditto
12537 (Search_Directories): Ditto
12538
12539 * prj-pars.adb: new parameter Current_Dir
12540
12541 * prj-part.ads, prj-part.adb:
12542 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
12543 (Opt.Follow_Links_For_Dirs): New flag
12544 (Project_Path_Name_Of): Cache information returned by this routine as
12545 Locate_Regular_File is a costly routine. The code to output a log
12546 information and the effective call to Locate_Regular_File is now
12547 factorized into a routine (code clean-up).
12548 (Parse, Parse_Single_Project): new parameter Current_Dir
12549 When main project file cannot be found, indicate in the error
12550 message the project path that was used to do the search.
12551
12552 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
12553 (Prj.Proc.Process*): new parameter Current_Dir
12554
12555 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
12556
12557 2007-12-13 Bob Duff <duff@adacore.com>
12558
12559 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
12560 procedure to be called from the back end to check the
12561 No_Implicit_Dynamic_Code restriction.
12562
12563 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12564
12565 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
12566 Fixes another case where RTE_Available_Call was ignored instead of being
12567 taken into account.
12568 (Load_Fail): Ditto.
12569
12570 * rtsfind.ads: Add new entries.
12571
12572 2007-12-13 Robert Dewar <dewar@adacore.com>
12573
12574 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
12575 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
12576
12577 * scn.adb: Implement BOM recognition
12578
12579 2007-12-13 Thomas Quinot <quinot@adacore.com>
12580 Ed Schonberg <schonberg@adacore.com>
12581
12582 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
12583 subprogram body that acts as its own spec may not have a non-private
12584 WITH clause on a private sibling.
12585 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
12586 child unit is a renaming, create an implicit with_clause on that
12587 parent, and not on the unit it renames, to prevent visibility errors
12588 in the current unit.
12589
12590 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12591
12592 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
12593 renaming declaration, use the Slocs of the formal parameters from the
12594 declaration of the formal subprogram when creating the formal parameter
12595 entities in the renaming declaration.
12596 (Analyze_Formal_Type_Declaration): Change the placement of the error
12597 message concerning illegal known discriminants. It is now posted on the
12598 type rather than on the first discriminant. This change ensures early
12599 error report.
12600 (Freeze_Subprogram_Body): If the generic subprogram is nested within
12601 the package body that contains the instance, do not generate an
12602 out-of-place freeze node for the enclosing package.
12603 (Collect_Previous_Instantiations): Ignore internal instantiations
12604 generated for formal packages.
12605 (Validate_Derived_Type_Instance): Add a check that when a formal
12606 derived type is Known_To_Have_Preelab_Init then the actual type must
12607 have preelaborable initialization, and issue an error when this
12608 condition is violated.
12609
12610 2007-12-13 Robert Dewar <dewar@adacore.com>
12611
12612 * s-imenne.adb, s-imenne.ads: New files.
12613
12614 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
12615 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
12616 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
12617 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
12618 s-imgwch.ads: New calling sequence for Image routines to avoid sec
12619 stack usage.
12620
12621 2007-12-13 Javier Miranda <miranda@adacore.com>
12622 Ed Schonberg <schonberg@adacore.com>
12623
12624 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
12625 generation of spurious error if parent is an interface type; caused
12626 because predefined primitive bodies will be generated later by
12627 Freeze_Record_Type.
12628 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
12629 flag.
12630 (Derive_Subprograms): Handle derivations of predefined primitives
12631 after all the user-defined primitives to ensure that they are
12632 found in proper order in instantiations.
12633 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
12634 of Related_Interface to Related_Type.
12635 (Record_Type_Declaration): Minor reordering of calls to decorate the
12636 Tag component because the entity must have set its Ekind attribute
12637 before setting its Is_Tag attribute.
12638 (Analyze_Subtype_Declaration): In the case of subtypes with
12639 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
12640
12641 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12642 Ed Schonberg <schonberg@adacore.com>
12643
12644 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
12645 statement to the list of contexts where a selected component with a
12646 concurrent tagged type prefix should yield a primitive operation.
12647 (Find_Primitive_Operation): Handle case of class-wide types.
12648 (Analyze_Overloaded_Selected_Component): If type of prefix is
12649 class-wide, use visible components of base type.
12650 (Resolve_Selected_Component): Ditto.
12651 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
12652 formal of a generic subprogram. find candidate interpretations by
12653 scanning the list of generic formal declarations.:
12654 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
12655 type from a limited_with_clause, and the full view is available, use it
12656 for subsequent semantic checks.
12657 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
12658 (Find_Primitive_Operation): New function.
12659 (Analyze_Overloaded_Selected_Component): insert explicit dereference
12660 only once if several interpretations of the prefix yield an access type.
12661 (Try_Object_Operation): Code and comment cleanup.
12662 (Analyze_Selected_Component): Reorder local variables. Minot comment and
12663 code reformatting. When the type of the prefix is tagged concurrent, a
12664 correct interpretation might be available in the primitive and
12665 class-wide operations of the type.
12666
12667 2007-12-13 Robert Dewar <dewar@adacore.com>
12668 Ed Schonberg <schonberg@adacore.com>
12669
12670 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
12671 renaming entry as subprogram using rename-as-body if subprogram spec
12672 frozen.
12673 (Use_One_Type): The clause is legal on an access type whose designated
12674 type has a limited view.
12675 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
12676 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
12677 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
12678 operation denoted by a selected component.
12679 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
12680 it can be an expression, possibly overloaded, that returns a task or
12681 an access to one.
12682
12683 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12684 Gary Dismukes <dismukes@adacore.com>
12685
12686 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
12687 requeue statement is dispatching. Do not emit an error when the name is
12688 not an entry and the context is a dispatching select. Add code to
12689 perform subtype conformance between the formals of the current entry
12690 and those of the target interface primitive.
12691 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
12692 Timed_Entry_Call): Analyze the triggering statement as the first step of
12693 the processing. If this is a dispatching select, postpone the analysis
12694 of all select statements until the Expander transforms the select. This
12695 approach avoids generating duplicate identifiers after the Expander has
12696 replicated some of the select statements. In case the Expander is
12697 disabled, perform regular analysis.
12698 (Check_Triggering_Statement): New routine.
12699 (Analyze_Requeue): Exclude any interpretations that are not entries when
12700 checking overloaded names in a requeue. Also test type conformance for
12701 matching interpretations rather than requiring subtype conformance at
12702 that point to conform with the RM's resolution rule for requeues.
12703
12704 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12705
12706 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
12707 inherited operation is a defaulted tag-indeterminate call, and there is
12708 a statically tagged actual, use the static tag as a controlling actual
12709 for the defaulted actual.
12710
12711 2007-12-13 Geert Bosch <bosch@adacore.com>
12712
12713 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
12714 context, so do not call Check_Non_Static_Context.
12715
12716 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12717
12718 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
12719 whether formal E is an entity which may have parameters.
12720
12721 2007-12-13 Bob Duff <duff@adacore.com>
12722 Javier Miranda <miranda@adacore.com>
12723 Robert Dewar <dewar@adacore.com>
12724
12725 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
12726 (Set_Convention): New procedure to set the Convention flag, and in
12727 addition make sure the Favor_Top_Level flag is kept in sync (all
12728 foreign-language conventions require Favor_Top_Level = True).
12729 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
12730 to Related_Type.
12731 (Collect_Interfaces_Info): Minor update to handle the two secondary
12732 dispatch tables. Update occurrence of Related_Interface to Related_Type.
12733 (Generate_Parent_Ref): Add parameter to specify entity to check
12734 (Is_Preelaborable_Expression): Allow the name of a discriminant to
12735 initialize a component of a type with preelaborable initialization.
12736 This includes the case of a discriminal used in such a context.
12737 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
12738 latest Ada 2005 rules about renaming and 'Access of
12739 discriminant-dependent components.
12740 (Check_Nested_Access): Add handling when there are no enclosing
12741 subprograms (e.g. case of a package body).
12742 (Find_Parameter_Type): Factor routine from several other compiler files.
12743 Remove routine from Find_Overridden_Synchronized_Primitive.
12744
12745 2007-12-13 Thomas Quinot <quinot@adacore.com>
12746
12747 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
12748 an invalid access to an uninitialized slot in the
12749 Source_File_Index_Table.
12750
12751 2007-12-13 Thomas Quinot <quinot@adacore.com>
12752
12753 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
12754
12755 2007-12-13 Bob Duff <duff@adacore.com>
12756
12757 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
12758 access-to-subprogram types in this package.
12759
12760 2007-12-13 Olivier Hainque <hainque@adacore.com>
12761
12762 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
12763 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
12764 Stack_Overlay_Address and document that we are using an internal
12765 abstraction.
12766 (Byte_Size, Unsigned_32_Size): Remove, now useless.
12767 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
12768 consistently throughout the various implementation pieces.
12769
12770 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
12771 overlay we are using to fill the stack area with patterns.
12772 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
12773 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
12774 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
12775
12776 2007-12-13 Robert Dewar <dewar@adacore.com>
12777
12778 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
12779
12780 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12781
12782 * s-tassta.adb:
12783 (Create_Task): Take into account tasks created by foreign threads.
12784 Code clean up: use constants instead of hard coded values.
12785
12786 2007-12-13 Robert Dewar <dewar@adacore.com>
12787
12788 * styleg.adb (Check_Comment): More liberal rules for comment placement
12789
12790 2007-12-13 Olivier Hainque <hainque@adacore.com>
12791
12792 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
12793 of Procedure Value instead of Frame Pointer as the invocation
12794 identifier associated with the instruction pointer in each traceback
12795 entry.
12796
12797 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
12798 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
12799 Pointer as the invocation identifier passed to tbk$symbolize.
12800
12801 * s-traent-vms.ads, s-traent-vms.adb
12802 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
12803 Procedure Value instead of Frame Pointer as the invocation identifier
12804 passed to tbk$symbolize.
12805
12806 2007-12-13 Robert Dewar <dewar@adacore.com>
12807
12808 * tbuild.ads, tbuild.adb:
12809 Fix location of flag for unrecognized pragma message
12810
12811 2007-12-13 Robert Dewar <dewar@adacore.com>
12812
12813 * treepr.ads, treepr.adb: (pl): implement use of positive value
12814 shorthands
12815
12816 2007-12-13 Robert Dewar <dewar@adacore.com>
12817
12818 * xeinfo.adb: Remove warnings
12819 * xnmake.adb: Remove warnings
12820 * xsinfo.adb: Remove warnings
12821 * xtreeprs.adb: Remove warnings
12822 * xsnames.adb: Remove warnings
12823
12824 * a-ngcoar.adb: Fix typo.
12825 * s-interr.adb: Minor reformatting
12826 * env.c: Minor reformatting.
12827 * g-bytswa.adb: Minor reformatting.
12828 * g-rannum.ads: Minor documentation improvements
12829 * s-tasinf-mingw.adb: Minor header fix
12830 * a-clrefi.adb: Minor reformatting
12831 * g-sttsne.ads: Minor documentation improvement
12832 * g-sttsne-locking.ads: Minor documentation improvement
12833 * g-soliop-solaris.ads: Minor documentation improvement
12834 * g-soliop-mingw.ads: Minor documentation improvement
12835 * g-soliop.ads: Minor documentation improvement
12836 * exp_aggr.ads: Minor reformatting
12837 * debug.adb: Add documentation for the gprbuild debug flags
12838 * exp_ch2.adb: Use Nkind_In to simplify code throughout
12839 * exp_pakd.adb: Minor reformatting
12840
12841 * g-altive.ads, g-alleve.adb: Remove assertions.
12842 Add comment about minor differences between targets regarding
12843 floating-point operations.
12844
12845 * g-thread.adb: Remove pragma unreferenced.
12846 * lib.ads: Minor reformatting
12847 * par-ch9.adb: Minor reformatting of error messages
12848 * sem_case.adb: Minor reformatting
12849 * s-fileio.adb: Minor reformattinng
12850 * s-vmexta.ads: Minor typo
12851 * vxaddr2line.adb:
12852 Take into account 'Success' value as per new GNAT warning.
12853
12854 2007-12-13 Vincent Celier <celier@adacore.com>
12855
12856 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
12857 even on Windows
12858
12859 2007-12-13 Robert Dewar <dewar@adacore.com>
12860 Bob Duff <duff@adacore.com>
12861
12862 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
12863 Document that suffixes may be terminations of each others
12864 Add doc for -gnatw.a and -gnatw.A
12865 Document gnatbind -Wx switch
12866 Document BOM recognition
12867 Document pragma Implemented_By_Entry.
12868 Document new units.
12869
12870 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
12871 Add doc for pragma Unreferenced suppressing no entities referenced msg
12872 Add documentation of GNAT.Directory_Operations.Iteration
12873 Add documentation of GNAT.Random_Numbers
12874 Add documentation for pragma Shared.
12875 Correct documentation for Bit_Order
12876 Add documentation for the Pool_Address attribute.
12877 Fix and improve documentation of pragma machine_attribute.
12878 New pragma Fast_Math
12879 Document BOM recognition
12880
12881 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
12882 Add /Wide_Character_Encoding for binder
12883 Add qualifier for the new gnatpp option --no-separate-loop-then
12884
12885 2007-12-13 Matthew Heaney <heaney@adacore.com>
12886
12887 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
12888 which generic formal operations are called for each operation.
12889
12890 2007-12-13 Olivier Hainque <hainque@adacore.com>
12891
12892 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
12893 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
12894
12895 2007-12-13 Emmanuel Briot <briot@adacore.com>
12896
12897 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
12898 Reference_Dir unless we actually need it.
12899
12900 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
12901 Tristan Gingold <gingold@adacore.com>
12902
12903 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
12904
12905 * s-osprim-vms.adb,
12906 a-calend-vms.adb: Remove pragma warning off and add pragma
12907 unreferenced.
12908
12909 2007-12-13 Robert Dewar <dewar@adacore.com>
12910
12911 * impunit.adb: Add entries for missing units
12912
12913 * Makefile.rtl: Add new run-time units.
12914
12915 * Make-lang.in: Update dependencies.
12916
12917 2007-12-13 Bob Duff <duff@adacore.com>
12918
12919 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
12920 types, set Can_Use_Internal_Rep appropriately, based on
12921 Always_Compatible_Rep_On_Target.
12922
12923 2007-12-13 Gary Dismukes <dismukes@adacore.com>
12924 Arnaud Charlet <charlet@adacore.com>
12925
12926 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
12927 it to the front end and setting the aamp_target environment variable
12928 to the switch's argument to ensure that gnaampbind and gnaamplink will
12929 take the specified library into account.
12930 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
12931 target, since the CIL compiler supports an "object" file (.il files).
12932
12933 2007-12-13 Vincent Celier <celier@adacore.com>
12934
12935 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
12936 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
12937
12938 2007-12-13 Geert Bosch <bosch@adacore.com>
12939
12940 * s-parame-vxworks.adb:
12941 Update comments to reflect usage of this package by Nucleus.
12942
12943 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12944
12945 * i-vxwork.ads: Kill new warning on Convention C, since changing the
12946 spec would break code.
12947
12948 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
12949
12950 * system-vxworks-alpha.ads: Removed.
12951
12952 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
12953
12954 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
12955
12956 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
12957
12958 PR ada/34366
12959 * sem_ch3.adb (Designates_T): New function.
12960 (Mentions_T): Factor reusable part of the logic into Designates_T.
12961 Consider non-access parameters and access and non-access result.
12962 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
12963 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
12964
12965 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
12966
12967 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
12968
12969 PR ada/34361
12970 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
12971 the new implementation of target-specific calls.
12972
12973 2007-12-07 Olivier Hainque <hainque@adacore.com>
12974
12975 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
12976 the designated full view, only follow a second level Full_View link
12977 for Non_Limited_Views of from_limited_with references.
12978
12979 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
12980
12981 PR ada/15805
12982 * sem_ch6.adb (Process_Formals): Prevent an access type formal
12983 to be initialized with an access to constant object.
12984
12985 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
12986 when an access to constant is used to initialize an access
12987 value.
12988
12989 PR ada/21346
12990 * a-direct.adb (Compose): Containing_Directory can be an empty string.
12991
12992 2007-12-07 Olivier Hainque <hainque@adacore.com>
12993
12994 PR ada/34173
12995 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
12996 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
12997 this is from an alignment clause on the GNAT entity.
12998 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
12999 to distinguish the case where we set it from the type's alignment.
13000 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
13001 whether this alignment was set from an explicit alignment clause.
13002
13003 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
13004
13005 * decl.c (make_packable_type): Revert last change.
13006 (gnat_to_gnu_field): Avoid setting size and position multiple times.
13007 * utils.c (finish_record_type): Retrieve the real name of the type.
13008
13009 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
13010
13011 * trans.c (lvalue_required_p): Take base node directly instead
13012 of its parent. Rename second parameter to 'gnu_type'.
13013 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
13014 <N_Slice>: Likewise.
13015 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
13016 Adjust calls to lvalue_required_p.
13017
13018 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
13019
13020 PR ada/21489
13021 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
13022 parameters of an entry call.
13023
13024 2007-12-03 Robert Dewar <dewar@adacore.com>
13025 Samuel Tardieu <sam@rfc1149.net>
13026
13027 PR ada/34287
13028 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
13029 of variables declared in a library-level package.
13030
13031 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
13032
13033 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
13034 of Empty_String'Unchecked_Access.
13035
13036 * Makefile.in: Add support for sh4-linux.
13037
13038 * system-linux-sh4.ads: New file.
13039
13040 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
13041
13042 PR ada/33722
13043 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
13044 and its argument must not be free()ed.
13045
13046 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
13047
13048 * decl.c (make_packable_type): Retrieve the real name of the type.
13049 (maybe_pad_type): Simplify similar code.
13050
13051 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
13052
13053 PR ada/15804
13054 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
13055 than an identifier is used after "case" in a variant_part.
13056
13057 PR ada/17318
13058 * par-ch4.adb (Is_Parameterless_Attribute): New map.
13059 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
13060 attribute name or not depending on the new map.
13061
13062 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
13063 returning a string or a type will not be called with improper
13064 arguments.
13065
13066 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
13067
13068 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
13069
13070 PR ada/32792
13071 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
13072 Signal an error when attribute argument is a fixed-point value of
13073 an unknown type.
13074
13075 PR ada/22559
13076 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
13077 a derived ordinary fixed point type.
13078
13079 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
13080 RM_Size when a Small clause is found.
13081
13082 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
13083
13084 PR 34081/C++
13085 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
13086 Pass 'false' for the new allocate_struct_function parameter.
13087 * utils.c (build_function_stub): Likewise.
13088
13089 2007-11-25 Richard Guenther <rguenther@suse.de>
13090
13091 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
13092 (gnat_poplevel): Likewise.
13093
13094 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
13095
13096 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
13097 strict alignment, no alignment clause and a known static size, cap
13098 the type alignment to the greatest power of 2 factor of the size.
13099 (gnat_to_gnu_field): If the field has a component clause, is aliased
13100 or of a type with strict alignment, require that its size be equal to
13101 that of the type.
13102 (validate_size): Use the type size as the minimum size for a type with
13103 strict alignment.
13104
13105 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
13106
13107 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
13108 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
13109 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
13110 Use 'Access instead of 'Unchecked_Access in second and third
13111 arguments of pthread_sigmask.
13112
13113 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
13114
13115 * decl.c (ceil_alignment): New function.
13116 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
13117 (make_packable_type): Likewise.
13118
13119 2007-11-22 Olivier Hainque <hainque@adacore.com>
13120
13121 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
13122 to fit in 80 columns.
13123
13124 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
13125
13126 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
13127 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
13128
13129 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
13130
13131 PR ada/34098
13132 * misc.c (gnat_adjust_rli): Delete.
13133 (gnat_init): Do not initialize the translation code here.
13134 Do not call set_lang_adjust_rli.
13135 * trans.c (init_code_table): Make static.
13136 (gnat_init_stmt_group): Delete.
13137 (gigi): Initialize the translation code entirely here.
13138 Emit debug info for the common types here instead of...
13139 * utils.c (gnat_init_decl_processing): ...here.
13140 * gigi.h (init_code_table): Delete.
13141 (gnat_init_stmt_group): Likewise.
13142
13143 2007-11-16 Olivier Hainque <hainque@adacore.com>
13144
13145 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
13146 retrieving an allocator return value from a super-aligned address from
13147 here to ...
13148 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
13149 expect a super-aligned address for a fat or thin pointer.
13150
13151 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
13152
13153 * trans.c (call_to_gnu): Always set the source location on the call
13154 expression. If the function returns-by-target, also set it on the
13155 address expression.
13156
13157 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
13158
13159 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
13160 sections of non-supported Interix target.
13161
13162 * s-osinte-interix.ads: Removed.
13163
13164 * i-cstrin.ads (chars_ptr): Make it a C convention type.
13165
13166 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
13167
13168 * a-tasatt.adb: Add a comment at the beginning of the package
13169 explaining why in general 'Unchecked_Access must be used instead
13170 of 'Access.
13171
13172 * sem_prag.adb (Process_Convention): Move the test for the
13173 entity on which the Convention pragma applies down to also
13174 forbid pragma Convention on enumeration literals reached
13175 through renamings.
13176
13177 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
13178
13179 * a-tasatt.adb: Revert previous change for this file as it will
13180 generate an error when this package is instantiated from a
13181 local context.
13182
13183 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
13184
13185 * a-tasatt.adb: Type Wrapper should be declared in comment instead
13186 of already declared type Node_Access.
13187 Use 'Access instead of 'Unchecked_Access when applicable. Local
13188 lifetime is the one of the package.
13189 (Set_Value): W is allocated on the heap.
13190
13191 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
13192 applicable.
13193 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
13194 access type.
13195 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
13196 access type.
13197
13198 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
13199 applicable.
13200 (elaboration code): Timer_Queue lifetime is the one of the
13201 package.
13202
13203 * tracebak.c (i386 alternative): Remove useless comparaison
13204 which is always false; LOWEST_ADDRESS is 0 and is never greater
13205 than an unsigned integer.
13206
13207 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
13208 embedded check for "Ada_Version >= Ada_05".
13209
13210 2007-11-07 Olivier Hainque <hainque@adacore.com>
13211
13212 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
13213 craft and expand comment.
13214
13215 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
13216
13217 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
13218
13219 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
13220
13221 * misc.c (gnat_handle_option): Replace call to abort with
13222 call to gcc_unreachable.
13223 (gnat_init): Likewise.
13224 (gnat_expand_expr): Likewise.
13225 (fp_prec_to_size): Likewise.
13226 (fp_size_to_prec): Likewise.
13227
13228 2007-10-23 Richard Guenther <rguenther@suse.de>
13229
13230 PR bootstrap/33608
13231 * tracebak.c: #undef abort after including system.h.
13232
13233 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
13234
13235 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
13236 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
13237 for win32 targets.
13238 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
13239
13240 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
13241
13242 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
13243 Set the protection status of the guard page based on the value of On.
13244
13245 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
13246
13247 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
13248 (Exit_Task): Pass False to Hide_Yellow_Zone.
13249
13250 2007-10-15 Robert Dewar <dewar@adacore.com>
13251
13252 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
13253 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
13254 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
13255 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
13256 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
13257 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
13258 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
13259 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
13260 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
13261 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
13262 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
13263 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
13264 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
13265 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
13266 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
13267 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
13268 Minor reformatting.
13269 Add Unreferenced and Warnings (Off) pragmas for cases of
13270 variables modified calls where they are IN OUT or OUT parameters and
13271 the resulting values are not subsequently referenced. In a few cases,
13272 we also remove redundant code found by the new warnings.
13273
13274 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
13275 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
13276 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
13277 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
13278 warning controlled by -gnatw.o that warns on cases of out parameter
13279 values being ignored.
13280
13281 2007-10-15 Geert Bosch <bosch@adacore.com>
13282
13283 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
13284
13285 * expect.c: Initial port to arm-mentor-nucleus.
13286 Use kill for __gnat_kill() on VMS.
13287
13288 2007-10-15 Emmanuel Briot <briot@adacore.com>
13289
13290 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
13291 value.
13292 (Xref_Record): Change type for Line, since in the case of a reference to
13293 a predefined entity (as happens for array index types), the line is set
13294 to 0.
13295 Add support for parsing multiple array index types info, or
13296 multiple inherited interfaces info. This information cannot be stored
13297 in Xref_Entity_Record, which only supports a single instance of Tref_*,
13298 and is therefore stored in the list of references instead. It has a
13299 special treatement later on in tools that use this information.
13300
13301 2007-10-15 Tristan Gingold <gingold@adacore.com>
13302
13303 * debug.adb: Document use of -gnatd.a and -gnatd.I
13304
13305 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
13306
13307 2007-10-15 Javier Miranda <miranda@adacore.com>
13308
13309 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
13310 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
13311 care of access to class-wide interface types plus removal of bizarre
13312 conversion of tagged object to access type (reported by Gary
13313 Dismukes). After this patch there is no need to perform any
13314 additional management on these nodes in Expand_Interface_Actuals.
13315
13316 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
13317 that handles use of 'Access and 'Unchecked_Access applied to
13318 actuals covering interface types. Such code is now
13319 centralized in Expand_N_Attribute_Reference.
13320
13321 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13322
13323 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
13324 of tagged types whose ultimate ancestor is a CPP type.
13325 (Freeze_Array_Type): For a packed array type, generate an initialization
13326 procedure if the type is public, to handle properly a client that
13327 specifies Normalize_Scalars.
13328
13329 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
13330
13331 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
13332 inside a generic body, retrieve the full view of the entry family
13333 discrete subtype if available.
13334
13335 2007-10-15 Thomas Quinot <quinot@adacore.com>
13336
13337 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
13338 attempt to generate stubs for hidden primitive operations.
13339
13340 2007-10-15 Vincent Celier <celier@adacore.com>
13341
13342 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
13343 returning None, used when there is no platform specific body for
13344 MLib.Tgt.Specific.
13345
13346 2007-10-15 Bob Duff <duff@adacore.com>
13347
13348 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
13349 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
13350 the generic Heap_Sort_G, in order to avoid trampolines.
13351
13352 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
13353 Jose Ruiz <ruiz@adacore.com>
13354
13355 * vx_stack_info.c: New file.
13356
13357 * i-forbla-unimplemented.ads: New file.
13358
13359 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
13360 for unsupported configurations; use it on VMS targets instead of the
13361 real one.
13362 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
13363 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
13364 used by VxWorks targets to have access to task-specific data and be
13365 able to extract the stack boundaries for stack checking.
13366 Use system-vms-ia64.ads on ivms.
13367
13368 * Make-lang.in: Update dependencies.
13369
13370 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
13371 (vx_stack_info.c).
13372
13373 2007-10-15 Vincent Celier <celier@adacore.com>
13374
13375 * snames.adb, snames.ads: Add new standard name runtime_library_dir
13376
13377 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
13378
13379 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
13380
13381 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
13382 the source is unknown.
13383
13384 * prj-ext.adb: Spelling error fix
13385
13386 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
13387 95 reserved word in its name.
13388 (Process_Project_Level_Array_Attributes): Process new attribute
13389 Runtime_Library_Dir.
13390
13391 * prj-part.adb (Parse_Single_Project): Do not check the name of the
13392 config project against the user project names.
13393
13394 * prj-proc.adb (Expression): In multi-language mode, indexes that do
13395 not include a dot are always case insensitive.
13396 (Process_Declarative_Items): Ditto
13397 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
13398 detected.
13399
13400 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
13401 True, compare both indexes in lower case.
13402
13403 2007-10-15 Robert Dewar <dewar@adacore.com>
13404
13405 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
13406
13407 2007-10-15 Gary Dismukes <dismukes@adacore.com>
13408
13409 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
13410 association for an access component, add an association with null as
13411 the expression. Remove testing for array subtypes and the setting in
13412 that case of Ctyp to the array component type, which prevented proper
13413 inclusion of an association for null-initialized arrays. Collapse
13414 condition that tests for array subtypes into just a test of
13415 Is_Partially_Initialized_Type (which already covers arrays anyway).
13416
13417 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
13418
13419 * sem_ch12.adb: Minor code reformatting.
13420 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
13421 find the parent package which may have been hidden by local
13422 declarations.
13423
13424 2007-10-15 Gary Dismukes <dismukes@adacore.com>
13425
13426 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
13427 flag of derived concurrent types, taking into account the flag setting
13428 on the parent subtype and any new set of discriminants.
13429
13430 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
13431
13432 * sem_ch4.adb: Minor code and comment reformatting.
13433 (Analyze_Allocator): When the designated type of an unconstrained
13434 allocator is a record with unknown discriminants or an array with
13435 unknown range bounds, emit a detailed error message depending on the
13436 compilation mode and whether the designated type is limited.
13437
13438 2007-10-15 Tristan Gingold <gingold@adacore.com>
13439
13440 * system-vms-ia64.ads: New file.
13441
13442 * system-vms_64.ads: Minor comment fix.
13443
13444 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13445
13446 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
13447 body generated for a function with a controlling result that is a null
13448 extension, discard the generated body in favor of the current explicit
13449 one.
13450
13451 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13452
13453 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
13454 examining its original form, to handle properly operator calls that
13455 have been rewritten.
13456
13457 2007-10-15 Olivier Hainque <hainque@adacore.com>
13458
13459 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
13460 instead of a procedure value in each traceback entry.
13461
13462 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
13463 instead of procedure value to TBK$SYMBOLIZE.
13464
13465 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
13466 field.
13467 (TB_Entry_For): Account for the PV/FP renaming.
13468
13469 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
13470 add comment.
13471 (Null_TB_Entry): Account for change of component name.
13472 (PV_For): Rename as FP_For.
13473
13474 2007-10-15 Tristan Gingold <gingold@adacore.com>
13475
13476 * trans.c (gnat_to_gnu): Remove the padding structure more often.
13477 This optimize assignment to over-aligned record.
13478
13479 2007-10-15 Emmanuel Briot <briot@adacore.com>
13480
13481 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
13482 interfaces.
13483
13484 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
13485 type, for dispatching calls.
13486
13487 2007-10-15 Vincent Celier <celier@adacore.com>
13488 Robert Dewar <dewar@adacore.com>
13489
13490 * gnat_ugn.texi: Add documentation for switches --version and --help
13491 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
13492 gnatxref, gnatfind, gnatls, and gnatclean.
13493 Document -gnatw.o.
13494 Mention attribute Excluded_Source_Dirs
13495 Replace obsolescent attribute Locally_Removed_Files with attribute
13496 Excluded_Source_Files.
13497 Improve documentation of -u (gnatbind)
13498 Document how to do reliable stack checking for the environmental task
13499 on iVMS.
13500
13501 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
13502 Document attribute Excluded_Source_Files and indicate that attribute
13503 Locally_Removed_Files is obsolescent.
13504
13505 2007-10-15 Thomas Quinot <quinot@adacore.com>
13506
13507 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
13508
13509 * gen-soccon.c:
13510 Update documentation to note that OpenVMS 8.3 or later must be used
13511 to generate g-soccon-vms.ads.
13512
13513 * atree.adb: Add ??? comment
13514
13515 * exp_util.adb: Minor reformatting.
13516 Add ??? comment in Kill_Dead_Code.
13517
13518 2007-10-15 Robert Dewar <dewar@adacore.com>
13519
13520 * errout.ads: Comment clarification
13521
13522 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
13523 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
13524
13525 * lib.ads: Comment update
13526
13527 * init.c: Minor reformatting.
13528
13529 * sem_attr.adb: Minor formatting
13530
13531 * osint-b.ads: Minor reformatting
13532
13533 * sem_ch9.adb: Implement -gnatd.I switch
13534
13535 * g-comlin.adb: (Start): Fix handling of empty command line.
13536
13537 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
13538 even when -rules follows the -cargs section.
13539
13540 2007-10-08 Ollie Wild <aaw@google.com>
13541
13542 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
13543 gnat_return_tree.
13544 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
13545 gnat_return_tree.
13546 (gnat_eh_runtime_type): Removed.
13547 (gnat_return_tree): New function.
13548
13549 2007-10-08 Ben Elliston <bje@au.ibm.com>
13550
13551 PR ada/33454
13552 Revert:
13553 2007-08-31 Ben Elliston <bje@au.ibm.com>
13554
13555 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13556 when compiling for powerpc64-*-linux.
13557 * system-linux-ppc64.ads: New file.
13558
13559 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
13560
13561 Mapped location support
13562 * back_end.adb (Call_Back_End): Pass information about source
13563 files instead of units to gigi.
13564 * gigi.h (struct File_Info_Type): New.
13565 (gigi): Rename and change type of number_units parameter, change
13566 type of file_info_ptr parameter.
13567 * trans.c (number_files): New global variable.
13568 (gigi): Rename and change type of number_units parameter, change
13569 type of file_info_ptr parameter.
13570 If mapped location support is enabled, create the isomorphic mapping
13571 between source files and line maps.
13572 (Sloc_to_locus): If mapped location support is enabled, translate
13573 source location into mapped location.
13574 (annotate_with_node): Rename into set_expr_location_from_node.
13575 Call set_expr_location instead of annotate_with_locus.
13576 (Pragma_to_gnu): Adjust for above change.
13577 (Loop_Statement_to_gnu): Likewise.
13578 (call_to_gnu): Likewise.
13579 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
13580 (gnat_to_gnu): Likewise.
13581 (add_stmt_with_node): Likewise.
13582 (add_cleanup): Likewise.
13583 * utils.c (gnat_init_decl_processing): Do not set input_line.
13584
13585 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13586
13587 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
13588 (Applicable_Use): Emit a warning when a package tries to use itself.
13589 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
13590 is already in use or the package where it is declared is in use or is
13591 declared in the current package.
13592 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
13593
13594 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
13595 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
13596 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
13597
13598 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13599
13600 * a-calend-vms.adb, a-calend.adb:
13601 Add a section on leap seconds control along with two entities used to
13602 enable and disable leap seconds support. The array Leap_Second_Times is
13603 now constant and contains hard time values pre-generated. Remove
13604 all elaboration code used to populate the table of leap seconds.
13605
13606 * bindgen.adb:
13607 Add entity Leap_Seconds_Support to the list of global run-time variables
13608 along with a comment on its usage and values.
13609 (Gen_Adainit_Ada): Add code to generate the declaration and import of
13610 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
13611 or one (enabled) depending on the presence of binder switch "-y".
13612 (Gen_Adainit_C): Add code to generate the declaration of external int
13613 __gl_leap_seconds_support. Set is value to zero (disabled) or one
13614 (enabled) depending on the presence of binder switch "-y".
13615
13616 * init.c: Add __gl_leap_seconds_support to the list of global values
13617 computed by the binder.
13618
13619 2007-09-26 Jerome Guitton <guitton@adacore.com>
13620
13621 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13622 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
13623 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
13624 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
13625
13626 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
13627
13628 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
13629 function which can be called by the debugger to interrupt the tasks of
13630 an Ada application asynchronously, as needed on VxWorks.
13631 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
13632
13633 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
13634 renamed from Stop_All_Tasks. Update comments.
13635 (Stop_All_tasks): New function declaration.
13636
13637 2007-09-26 Olivier Hainque <hainque@adacore.com>
13638
13639 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
13640 #include <utime.h> and #define GCC_RESOURCE_H before
13641 #include <sys/wait.h>.
13642 Add more protections in __gnat_translate_vms.
13643
13644 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
13645 #include <sys/wait.h>.
13646
13647 2007-09-26 Thomas Quinot <quinot@adacore.com>
13648 Sergey Rybin <rybin@adacore.com>
13649
13650 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
13651
13652 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
13653 where it belongs.
13654
13655 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
13656
13657 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
13658 where it belongs.
13659
13660 * sem_dist.ads: Minor comment fix
13661
13662 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
13663
13664 2007-09-26 Javier Miranda <miranda@adacore.com>
13665 Eric Botcazou <ebotcazou@adacore.com>
13666
13667 * a-tags.adb:
13668 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
13669 indirection added to the HT_Link component of the TSD. This is required
13670 to statically allocate the TSD.
13671
13672 * a-tags.ads:
13673 Minor reordering of the declarations in the private part. Required to
13674 add a level of indirection to the contents of the TSD component HT_Link.
13675 This is required to statically allocate the TSD.
13676
13677 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
13678 Is_Statically_Allocated set from constant objects.
13679 Do not make exported constants created by the compiler volatile.
13680 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
13681 as read-only.
13682
13683 * trans.c (Identifier_to_gnu): For constants, unshare initializers
13684 before returning them.
13685
13686 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
13687 public part of the package.
13688 (Make_DT): Move HT_Link component out of the TSD record. For this
13689 purpose Make_DT now declares a separate object that stores the
13690 HT_Link value, and initializes the TSD component with the address
13691 of this new object. The addition of this level of indirection is
13692 required to statically allocate the TSD because the TSD cannot
13693 have variable components.
13694 (Expand_Interface_Conversion): Improve the expanded code.
13695 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
13696
13697 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
13698 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
13699 if we are building static dispatch tables then we must not generate
13700 extra code to register the primitive because the dispatch table will
13701 be built at the end of the library package; otherwise we notify that
13702 we cannot build the static dispatch table.
13703
13704 2007-09-26 Robert Dewar <dewar@adacore.com>
13705
13706 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
13707 overlays.
13708
13709 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
13710 (Analyze_Record_Representation_Clause): Suppress junk warning for
13711 missing component clause.
13712 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
13713 tests for controlled type overlay to composites with controlled
13714 components.
13715 (Analyze_Record_Representation_Clause): Add reference for component name
13716
13717 2007-09-26 Javier Miranda <miranda@adacore.com>
13718 Gary Dismukes <dismukes@adacore.com>
13719
13720 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
13721 for thunks associated with interface types.
13722
13723 * einfo.ads: Improve documentatation of Is_Internal
13724 (Is_Thunk): New attribute applicable to subprograms. True for thunks
13725 associated with interface types.
13726 Extensive comment fixes regarding flags that appear in all entities. The
13727 documentation is now consistent for all such flags (there were a number
13728 of errors in the documentation in this regard).
13729
13730 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
13731
13732 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
13733 of these procedures are passed a function call that already has
13734 build-in-place actuals (testing new flag
13735 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
13736 the case where processing continues.
13737 (Expand_Call): If the call is generated from a thunk body then we
13738 propagate the extra actuals associated with the accessibility
13739 level of the access type actuals.
13740
13741 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
13742 of each extra formal of a protected operation to reference the
13743 corresponding extra formal of the subprogram denoted by the
13744 operation's Protected_Body_Subprogram.
13745
13746 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
13747 N_Function_Call nodes.
13748
13749 2007-09-26 Robert Dewar <dewar@adacore.com>
13750
13751 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
13752
13753 * debug.adb: Add d.s flag.
13754
13755 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13756
13757 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
13758 debug variable so that it won't be initialized when pragma
13759 Initialize_Scalars is in effect.
13760
13761 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13762
13763 * freeze.adb (Freeze_Entity): Remove check for preelaborable
13764 initialization of a full view. This is moved to
13765 Analyze_Package_Specification.
13766
13767 * sem_ch7.adb (Analyze_Package_Specification): Add check for
13768 preelaborable initialization of a full view in entity loop.
13769 (Uninstall_Declarations): If entity is a use-visible compilation unit,
13770 its child units are use-visible only if they are visible child units.
13771
13772 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
13773 whether an expression can be used within a type declaration that
13774 requires preelaborable init.
13775 (Check_Components): Replace inline code that does partial checking for
13776 preelaborable default expressions with call to
13777 Is_Preelaborable_Expression.
13778 (Has_Preelaborable_Initialization): In the case of a generic actual
13779 subtype, (that is, Is_Generic_Actual is True), return the result of
13780 applying Has_Preelaborable_Initialization to the generic actual's base
13781 type.
13782
13783 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13784
13785 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
13786 call to Jan_1_Day _Of_Week to optimize its performance.
13787 (Is_Leap): Move the routine to the scope of Week_In_Year.
13788 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
13789 weekday on which January 1 falls of Year - 1 and Year + 1. This function
13790 avoids calling Time_Of and Split, thus making it more efficent.
13791 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
13792
13793 * g-calend.ads (Week_In_Year): Change comment to reflect new
13794 implementation.
13795
13796 2007-09-26 Emmanuel Briot <briot@adacore.com>
13797
13798 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
13799 Command_Line): New types
13800 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
13801 support for defining how switches can be grouped on a command line (as
13802 is the case for -gnatw... for GNAT), and how simple switches can be
13803 used as aliases for more complex switches (-gnatwa is same as
13804 -gnatwbcef...)
13805 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
13806 (Start, Current_*): New subprograms
13807 Added support for parsing an array of strings in addition to the real
13808 command line.
13809 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
13810 be moved from the body to the private part of the spec.
13811 (*): All subprograms now have an extra parameter with default value to
13812 specify which parser should be used. For backward compatibility, it
13813 defaults to parsing the command line of the application. They were also
13814 modified to properly handle cases where each of the argument does not
13815 start at index 1 (which is always true for Ada.Command_Line, but not
13816 when processing any Argument_List).
13817 (Free): New subprogram
13818 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
13819 Argument): New subprograms
13820 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
13821 special characters like ':', '=',... are now handled in a single place,
13822 which makes the code more extensible eventually.
13823 (Getopt, Full_Switch): When the switch was returned as part of the
13824 special character '*', make sure it is prepended by the switch character
13825 ('-' in general), so that the application knows whether "foo" or "-foo"
13826 was specified on the command line.
13827
13828 2007-09-26 Florian Villoing <villoing@adacore.com>
13829
13830 * g-dirope.adb (Remove_Dir): In case we are removing directories
13831 recursively, make sure that if an exception is raised during the
13832 processing, the current working directory is reset to its initial
13833 value before propagating the exception.
13834
13835 2007-09-26 Vincent Celier <celier@adacore.com>
13836
13837 * gnatbind.adb: If there are several ALI files specified and there is
13838 a main program to bind, the first ALI is expected to contain the main
13839 subprogram and the names of the binder generated files will be derived
13840 from the first ALI file name.
13841 (Gnatbind): Fix insertion character in invocation of Error_Msg
13842
13843 2007-09-26 Vincent Celier <celier@adacore.com>
13844
13845 * gnatcmd.adb (Check_Files): Do not include sources that have been
13846 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
13847
13848 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13849
13850 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
13851 information about each of its index types, following the type
13852 reference for its component type.
13853
13854 2007-09-26 Vincent Celier <celier@adacore.com>
13855
13856 * make.adb: (Kill): New procedure (__gnat_kill imported)
13857 (Running_Compile, Outstanding_Compiles): Global variables that
13858 were previously local to procedure Compile_Sources.
13859 (Sigint_Intercepted): Send signal SIGINT to all outstanding
13860 compilation processes.
13861
13862 (Gnatmake): If project files are used, create the mapping of all the
13863 sources, so that the correct paths will be found.
13864
13865 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
13866
13867 2007-09-26 Vincent Celier <celier@adacore.com>
13868
13869 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
13870
13871 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
13872 Replace components Compiler_Min_Options and Binder_Min_Options with
13873 Compiler_Required_Switches and Binder_Required_Switches in record
13874 Language_Config.
13875 Remove components Default_Language and Config in Project_Tree_Data,
13876 no longer used.
13877
13878 * prj-attr.adb: New attributes Required_Switches (<language>) in
13879 packages Compiler and Binder.
13880
13881 * prj-nmsc.adb: Major rewrite of the processing of configuration
13882 attributes for gprbuild. No impact on GNAT tools.
13883
13884 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
13885 process configuration attributes: this is done in Prj.Nmsc.Check.
13886 (Recursive_Process): Make a full copy of packages inherited from project
13887 being extended, instead of a shallow copy.
13888 (Process_Project_Tree_Phase_1): New procedure
13889 (Process_Project_Tree_Phase_1): New procedure
13890 (Process): Implementation now uses the two new procedures
13891
13892 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
13893 from the project config, not the tree config that no longer exists.
13894
13895 2007-09-26 Vincent Celier <celier@adacore.com>
13896
13897 * Make-lang.in: Update dependencies..
13898
13899 2007-09-26 Vincent Celier <celier@adacore.com>
13900
13901 * osint.adb, osint.ads: Minor reformatting
13902
13903 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
13904
13905 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13906
13907 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
13908 message to cite use of <> in aggregate component associations rather
13909 than wrongly indicating use of limited aggregates.
13910
13911 2007-09-26 Robert Dewar <dewar@adacore.com>
13912
13913 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
13914 Address_Taken.
13915
13916 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13917
13918 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
13919 ancestor of the derived type, the operations are inherited from the
13920 primary dispatch table of the parent.
13921 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
13922 when the context is an explicit type conversion.
13923
13924 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13925
13926 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
13927 rule for qualified expressions properly, to detect improper conversions
13928 and resolve some cases of overloading.
13929
13930 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13931
13932 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
13933 proper kind of reference to the primitive operation, for better source
13934 navigation.
13935 (Valid_Conversion): A tagged conversion is legal if both operands are
13936 tagged.
13937
13938 2007-09-26 Robert Dewar <dewar@adacore.com>
13939
13940 * sem_warn.adb (Check_References): Catch more cases of unreferenced
13941 packages.
13942
13943 2007-09-26 Vincent Celier <celier@adacore.com>
13944
13945 * snames.adb, snames.ads: Change Include_Option to Include_Switches
13946
13947 2007-09-26 Robert Dewar <dewar@adacore.com>
13948
13949 * s-wchstw.adb: provide messages for run time unit exceptions
13950
13951 * a-witeio.adb: Minor reformatting
13952
13953 * exp_ch13.adb: Minor reformatting
13954
13955 2007-09-26 Sergey Rybin <rybin@adacore.com>
13956
13957 * vms_data.ads: Revise gnatmetric qualifiers.
13958 Add qualified for the new gnatbind option '-y'
13959
13960 * gnat_ugn.texi: Revise the gnatmetric section.
13961 Add entry for new gnatbind option '-y'.
13962
13963 * gnat_rm.texi: Minor spelling correction.
13964 Document restriction on overlaying controlled types
13965
13966 2007-09-26 Vincent Celier <celier@adacore.com>
13967
13968 * makegpr.adb (Link_Executables): Do not fail when the root project has
13969 no sources, but is an extending project.
13970
13971 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
13972
13973 * trans.c: Fix misplaced #define.
13974
13975 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
13976
13977 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
13978 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
13979
13980 2007-09-21 Olivier Hainque <hainque@adacore.com>
13981
13982 * utils.c (type_for_nonaliased_component_p): Return false for
13983 all AGGREGATE_TYPEs.
13984
13985 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
13986
13987 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
13988 object covered by 13.3(19) volatile.
13989
13990 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
13991
13992 PR ada/26797
13993 PR ada/32407
13994 * utils.c (unchecked_convert): Use a subtype as the intermediate type
13995 in the special VIEW_CONVERT_EXPR case.
13996
13997 2007-09-12 Robert Dewar <dewar@adacore.com>
13998
13999 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
14000
14001 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
14002 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
14003 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
14004 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
14005 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
14006 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
14007 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
14008 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
14009 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
14010 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
14011 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
14012 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
14013 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
14014 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
14015 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
14016 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
14017 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
14018 pragma Compiler_Unit and adds it to relevant library units.
14019
14020 2007-09-12 Ed Schonberg <schonberg@adacore.com>
14021
14022 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
14023 a box need not correspond to any component.
14024
14025 2007-09-12 Robert Dewar <dewar@adacore.com>
14026
14027 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
14028 the tasking version of the Ada run time when foreign threads are
14029 present and there are no explicit Ada tasks or tasking constructs.
14030
14031 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
14032
14033 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
14034
14035 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
14036 the usage of switch -y.
14037
14038 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
14039 when switch -y is present.
14040
14041 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
14042 leap seconds in Ada.Calendar and its children.
14043
14044 2007-09-12 Jose Ruiz <ruiz@adacore.com>
14045
14046 * a-extiti.ads (Timer): The discriminant is a "not null access
14047 constant" in the Reference Manual.
14048 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
14049
14050 2007-09-12 Robert Dewar <dewar@adacore.com>
14051
14052 * a-swuwha.adb: Remove junk RM header
14053
14054 2007-09-12 Vincent Celier <celier@adacore.com>
14055
14056 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
14057 indicator
14058
14059 * g-bytswa.ads: Minor reformatting
14060
14061 2007-09-12 Thomas Quinot <quinot@adacore.com>
14062
14063 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
14064 Add new constant Thread_Blocking_IO, always True by default, set False
14065 on a per-runtime basis.
14066 (Need_Netdb_Buffer): New constant.
14067
14068 2007-09-12 Arnaud Charlet <charlet@adacore.com>
14069
14070 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
14071 Added renames for corresponding functions in System.Partition_Interface.
14072
14073 2007-09-12 Doug Rupp <rupp@adacore.com>
14074
14075 * Makefile.in: Remove VMS specific System.CRTL packages which are no
14076 longer needed.
14077
14078 * s-crtl-vms64.ads: Removed.
14079
14080 2007-09-12 Olivier Hainque <hainque@adacore.com>
14081
14082 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
14083 with discriminant constraints, generalize the code for BIT_FIELDs
14084 to PACKED fields of constant size and propagate DECL_PACKED.
14085
14086 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
14087
14088 * decl.c (array_type_has_nonaliased_component): New predicate.
14089 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
14090 set the TYPE_NONALIASED_COMPONENT flag on the type.
14091 <E_Array_Subtype>: Likewise.
14092 * gigi.h (type_for_nonaliased_component_p): Declare.
14093 * utils.c (type_for_nonaliased_component_p): New predicate.
14094 (create_field_decl): Invoke the above predicate to set the
14095 DECL_NONADDRESSABLE_P flag on the field.
14096
14097 2007-09-11 Javier Miranda <miranda@adacore.com>
14098
14099 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
14100 in library level record type entities if we are generating statically
14101 allocated dispatch tables.
14102
14103 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
14104 importing/exporting the _tag declaration by new code
14105 importing/exporting the dispatch table wrapper. This change allows us
14106 to statically allocate of the TSD.
14107 (Make_DT.Export_DT): New procedure.
14108 (Build_Static_DT): New function.
14109 (Has_DT): New function.
14110
14111 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
14112 True_Constant and Current_Value. Required to statically
14113 allocate the dispatch tables.
14114 (Check_Allocator): Make function iterative instead of recursive.
14115 Also return inner allocator node, when present, so that we do not have
14116 to look for that node again in the caller.
14117
14118 2007-09-11 Jan Hubicka <jh@suse.cz>
14119
14120 * misc.c (gnat_expand_body): Kill.
14121 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
14122
14123 2007-09-10 Robert Dewar <dewar@adacore.com>
14124
14125 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
14126 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14127 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14128 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
14129 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
14130 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
14131 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
14132 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
14133 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
14134 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
14135 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
14136 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
14137 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
14138 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
14139 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
14140 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
14141 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
14142 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
14143 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
14144 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
14145 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
14146 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
14147 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
14148 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
14149 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
14150 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
14151 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
14152 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
14153 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
14154 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
14155 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
14156 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
14157 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
14158 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
14159 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
14160 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
14161 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
14162 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
14163 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
14164 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
14165 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
14166 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
14167 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
14168 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
14169 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
14170 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
14171 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
14172 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
14173 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
14174 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
14175 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
14176 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
14177 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
14178 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
14179 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
14180 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
14181 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
14182 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
14183 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
14184 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
14185 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
14186 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14187 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
14188 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
14189 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
14190 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
14191 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
14192 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
14193 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
14194 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
14195 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
14196 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
14197 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
14198 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
14199 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
14200 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
14201 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
14202 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
14203 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
14204 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
14205 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
14206 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
14207 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
14208
14209 2007-09-10 Emmanuel Briot <briot@adacore.com>
14210
14211 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
14212 classes ("[]").
14213
14214 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
14215
14216 * adaint.c (__gnat_translate_vms): new function.
14217
14218 2007-09-10 Gary Dismukes <dismukes@adacore.com>
14219 Thomas Quinot <quinot@adacore.com>
14220
14221 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
14222 create an abstract subprogram in the case of 'Input. For 'Output we now
14223 create a real spec/body when the type is abstract, since it can
14224 potentially be called.
14225 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
14226 body for 'Output when the type is abstract (only the creation of the
14227 body for 'Input is excluded when the type is abstract).
14228 (Stream_Operation_OK): Add an additional condition in the return
14229 statement, so that False will be returned for TTS_Stream_Input if the
14230 associated tagged type is an abstract extension. Add comments for
14231 return statement.
14232 (Expand_N_Object_Declaration): For the case of a shared passive
14233 variable, insert init proc call only after the shared variable
14234 procedures have been processed, because the IP call needs to undergo
14235 shared passive variable reference expansion, which requires these
14236 procedures to be available (and elaborated).
14237
14238 2007-09-10 Vincent Celier <celier@adacore.com>
14239
14240 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
14241 parameter Runtime_Project.
14242
14243 2007-09-10 Ed Schonberg <schonberg@adacore.com>
14244
14245 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
14246 given a box association, the type of the component is discriminated,
14247 and the value of the discriminant is the discriminant of the enclosing
14248 type, retrieve its value from the aggregate itself, where it must have
14249 been supplied.
14250
14251 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
14252 to remove other spurious ambiguities on arithmetic operations involving
14253 literals and addresses, on systems where Address is a visible integer
14254 type, when the operator is called in functional notation.
14255 (Try_Primitive_Operation): Within an instance, a call in prefixed form
14256 is legal when the types match, even if the operation is currently
14257 hidden.
14258
14259 2007-09-10 Ed Schonberg <schonberg@adacore.com>
14260
14261 * sem_ch12.adb (Build_Local_Package): A formal package with no
14262 associations is legal if all formals have defaults. It is not
14263 equivalent to a formal declared with a box.
14264
14265 2007-09-10 Sergey Rybin <rybin@adacore.com>
14266
14267 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
14268
14269 2007-09-10 Sergey Rybin <rybin@adacore.com>
14270
14271 * gnat_ugn.texi: Add description of the new '-lratio' option
14272 Update 7.3.1 section about availability of the feature.
14273
14274 2007-09-10 Thomas Quinot <quinot@adacore.com>
14275
14276 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
14277 inserted node.
14278
14279 2007-09-10 Olivier Hainque <hainque@adacore.com>
14280
14281 * Makefile.in: (mips-irix section): Activate build of libgmem.
14282
14283 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
14284
14285 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
14286 x87 registers.
14287
14288 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
14289
14290 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
14291 a debug renaming declaration specially.
14292
14293 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
14294
14295 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
14296 which a constant renaming is treated as a normal object declaration.
14297 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
14298 the N_Indexed_Component case.
14299 <N_Indexed_Component>: Fall through to above case.
14300 <N_Object_Renaming_Declaration>: Return true for all composite types.
14301
14302 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
14303
14304 * decl.c (make_packable_type): If the new type has been given BLKmode,
14305 try again to get an integral mode for it.
14306
14307 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
14308
14309 Re-apply accidentally reverted change:
14310
14311 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14312
14313 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14314 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14315 and _Unwind_SWord with _sleb128_t.
14316
14317 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
14318
14319 * trans.c (convert_with_check): Update call to real_2expN.
14320
14321 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
14322
14323 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
14324 * utils.c (end_subprog_body): Likewise.
14325
14326 2007-09-03 Nick Clifton <nickc@redhat.com>
14327
14328 * Make-lang.in: Change copyright header to refer to version 3 of
14329 the GNU General Public License and to point readers at the
14330 COPYING3 file and the FSF's license web page.
14331 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
14332 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
14333 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
14334 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
14335 Likewise.
14336
14337 2007-08-31 Vincent Celier <celier@adacore.com>
14338
14339 PR ada/4720
14340
14341 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
14342 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
14343 (Check_Version_And_Help): New procedure in package Switch to process
14344 switches --version and --help.
14345 Use Check_Version_And_Help in GNAT tools
14346
14347 * make.adb: Ditto.
14348 (Compile_Sources): Make sure that sources that are "excluded" are not
14349 compiled.
14350 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
14351 project file is used.
14352 (Version_Switch): Remove, moved to Switch
14353 (Help_Switch): Remove, moved to Switch
14354 (Display_Version): Remove, moved to Switch
14355
14356 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
14357 package Switch to process switches --version and --help.
14358 (Display_Version): New procedure
14359
14360 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
14361
14362 2007-08-31 Javier Miranda <miranda@adacore.com>
14363
14364 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
14365 internal tags.
14366
14367 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
14368
14369 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
14370 (Mark_Non_Null): If the node for which we just generated an access check
14371 is a reference to an *in* parameter and the reference appears in the
14372 declarative part of a subprogram body, mark the node as known non null.
14373
14374 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
14375
14376 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
14377 structure of E_Exception to reflect the new flag.
14378 (Is_Raised, Set_Is_Raised): New inlined routines.
14379 Update the usage of available flag to reflect the addition of Is_Raised.
14380 (Is_Raised, Set_Is_Raised): Bodies of new routines.
14381 (Write_Entity_Flags): Write the status of flag Is_Raised.
14382 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
14383 spurious ambiguities when integer literals appear in the context of an
14384 address type that is a visible integer type.
14385
14386 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
14387 exceptions never being raised.
14388 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
14389 explicitly raised.
14390
14391 2007-08-31 Javier Miranda <miranda@adacore.com>
14392
14393 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
14394 statement when compiling under restriction No_Exceptions_Proparation.
14395
14396 2007-08-31 Ed Schonberg <schonberg@adacore.com>
14397
14398 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
14399 initialization aggregate for the type, generate itype references for
14400 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
14401
14402 2007-08-31 Gary Dismukes <dismukes@adacore.com>
14403
14404 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
14405 library-level package renaming, pass the declaration associated with
14406 the renaming's special debug variable to Qualify_Entity_Names to ensure
14407 that its encoded name is properly qualified.
14408
14409 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
14410 occurring in the list of entities to qualify, and do not attempt to
14411 traverse an entity list in that case. Variables associated with
14412 ` library-level package renamings can now occur in the table.
14413
14414 * exp_dbug.ads: Revise documentation of the encoding for renaming
14415 declarations.
14416
14417 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14418
14419 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
14420 access type points to an unconstrained array.
14421
14422 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
14423
14424 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
14425 conversion.
14426
14427 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
14428 simple redundant qualifications. The check is performed whenever the
14429 expression is a non-overloaded identifier.
14430 (Resolve_Type_Conversion): Enchance the redundant type conversion check
14431 to include loop parameters.
14432 (Valid_Conversion): Avoid generation of spurious error message.
14433
14434 2007-08-31 Bob Duff <duff@adacore.com>
14435
14436 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
14437 concatenations of string literals into a single literal, in order to
14438 avoid very deep recursion in the front end, which was causing stack
14439 overflow.
14440
14441 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
14442 string, and the right operand is a string literal (the case of "" &
14443 "..."), optimize by avoiding copying the right operand -- just use the
14444 value of the right operand directly.
14445
14446 * stringt.adb (Store_String_Chars): Optimize by growing the
14447 String_Chars table all at once, rather than appending characters one by
14448 one.
14449 (Write_String_Table_Entry): If the string to be printed is very long,
14450 just print the first few characters, followed by the length. Otherwise,
14451 doing "pn(n)" in the debugger can take an extremely long time.
14452
14453 * sem_prag.adb (Process_Interface_Name): Replace loop doing
14454 Store_String_Char with Store_String_Chars.
14455
14456 2007-08-31 Vincent Celier <celier@adacore.com>
14457
14458 * prj-attr.adb: Add new attribute Excluded_Source_Files
14459
14460 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
14461 Locally_Removed_Files.
14462
14463 * snames.ads, snames.adb: New standard name Excluded_Source_Files
14464
14465 2007-08-31 Ed Schonberg <schonberg@adacore.com>
14466
14467 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
14468 clauses of subunits, ignore limited_with_clauses that are illegal and
14469 have not been fully analyzed.
14470
14471 2007-08-31 Ed Schonberg <schonberg@adacore.com>
14472
14473 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
14474 flag, for effiency. It is called when analyzing arithmetic operators
14475 and also for actuals in calls that are universal_integers. The flag is
14476 set for the predefined type address, and for any type or subtype
14477 derived from it.
14478
14479 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
14480 Universal_Integer, when the formal is a descendent of address and the
14481 call appears in user code.
14482 (Analyze_Selected_Component): if the prefix is a private extension, the
14483 tag component is visible.
14484
14485 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
14486 entity flag.
14487
14488 2007-08-31 Robert Dewar <dewar@adacore.com>
14489
14490 * s-fileio.adb (Open): Normalize file name to lower case in non-case
14491 sensitive file name systems to avoid unexpected mismatch in Vista.
14492
14493 2007-08-31 Vincent Celier <celier@adacore.com>
14494
14495 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
14496
14497 2007-08-31 Vincent Celier <celier@adacore.com>
14498
14499 * symbols-vms.adb (Initialize): Read symbol files with continuation
14500 lines
14501 (Finalize): If symbol is long, split the line
14502
14503 2007-08-31 Vincent Celier <celier@adacore.com>
14504
14505 * fmap.ads: Minor comment updates
14506
14507 2007-08-31 GNAT Script <nobody@adacore.com>
14508
14509 * Make-lang.in: Makefile automatically updated
14510
14511 2007-08-31 Bob Duff <duff@adacore.com>
14512
14513 * sinfo.ads: Minor comment fix.
14514
14515 2007-08-31 Thomas Quinot <quinot@adacore.com>
14516
14517 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
14518 with implementation.
14519 Documentation cleanup only.
14520
14521 2007-08-31 Sergey Rybin <rybin@adacore.com>
14522
14523 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
14524 gnatpp '--separate-stmt-name' option.
14525 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
14526 option.
14527
14528 * gnat_ugn.texi: Add description for the new gnatpp
14529 '--separate-stmt-name' and '--use-on-new-line' options.
14530
14531 2007-08-31 Ben Elliston <bje@au.ibm.com>
14532
14533 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
14534 when compiling for powerpc64-*-linux.
14535 * system-linux-ppc64.ads: New file.
14536
14537 2007-08-22 Krister Walfridsson <cato@df.lth.se>
14538
14539 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
14540 NetBSD.
14541
14542 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14543
14544 * misc.c (gnat_type_max_size): Constify.
14545
14546 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14547
14548 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
14549 associated with Standard_Debug_Renaming_Type, to be used as the type of
14550 the special variables whose names provide debugger encodings for
14551 renaming declarations.
14552
14553 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
14554 (Set_Debug_Renaming_Link): Change to set Node25.
14555 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
14556 (Write_Field25_Name): Add case for E_Variable to output
14557 "Debug_Renaming_Link".
14558 (Write_Field23_Name): Correct the output string for "Limited_View".
14559
14560 * exp_dbug.adb: Add with and use of Tbuild.
14561 (Debug_Renaming_Declaration): Replace creation of an enumeration type
14562 and literal with creation of a variable of type
14563 Standard_Debug_Renaming_Type whose name encodes both the renamed object
14564 and the entity of the renaming declaration.
14565 (Qualify_Entity_Name): Add the delayed qualification of the entity name
14566 part of the name of a variable that has a Debug_Renaming_Link.
14567
14568 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
14569 special type to be associated with variables that provide debugger
14570 encodings for renaming declarations.
14571
14572 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14573 Ed Schonberg <schonberg@adacore.com>
14574 Javier Miranda <miranda@adacore.com>
14575
14576 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
14577 ancestor part given by an aggregate to test for an unchecked conversion,
14578 since this can occur in some cases when the ancestor part is a function
14579 call, and we don't want to fall into the recursive call to this
14580 procedure in that case.
14581
14582 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
14583 stream attributes on limited types to account for user-specified
14584 attributes as well as whether Input (resp. Output) becomes available
14585 due to Read (resp. Write) being available for the type. Change Boolean
14586 variable to the more accurate name
14587 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
14588 double-"not" predicate at beginning of return statement to more
14589 understandable form.
14590
14591 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
14592 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
14593 in a block statement and use that as the first statement of the
14594 expanded return rather than incorrectly using the handled sequence as
14595 the first statement.
14596
14597 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
14598 operation, generate an explicit freeze node for it rather than
14599 generating extra formals, to ensure that gigi has the proper order of
14600 elaboration for anonymous subtypes in the signature of the subprograms.
14601 (Build_In_Place_Formal): Move assertion to beginning of loop.
14602 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
14603 applied to a function call (occurs for some cases of 'Input).
14604 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
14605 applied to a function call (occurs for some cases of 'Input).
14606
14607 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
14608 2005, generate an extended return statement enclosing the result object
14609 and 'Read call.
14610
14611 * freeze.adb (Freeze_Record_Type): Extend the current management of
14612 components that are access type with an allocator as default value: add
14613 missing support to the use of qualified expressions of the
14614 allocator (which also cause freezing of the designated type!)
14615 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
14616 dispatching operation, since extra formals may be needed by calls to
14617 build-in-place functions (such as stream 'Input).
14618
14619 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
14620 formals for 'Constrained and accessibility level in the case of a
14621 predefined dispatching operation.
14622
14623 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
14624 point, no need to find the parent node.
14625
14626 2007-08-16 Javier Miranda <miranda@adacore.com>
14627
14628 * exp_attr.adb (Attribute_Priority): Add missing support for entries
14629 and entry barriers.
14630
14631 2007-08-16 Javier Miranda <miranda@adacore.com>
14632
14633 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
14634 is not really required and can introduce regression with the debugger.
14635 The original problem is fixed with the patch written for checks.adb.
14636
14637 2007-08-16 Thomas Quinot <quinot@adacore.com>
14638
14639 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
14640 Range_Check on Allocated_Table.
14641
14642 2007-08-16 Vincent Celier <celier@adacore.com>
14643
14644 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
14645 Including_Non_Switch set to False.
14646 (Gnatmake): For the compiler, call Test_If_Relative_Path with
14647 Including_Non_Switch set to False.
14648
14649 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
14650 parameter Including_Non_Switch, defaulted to True. When
14651 Including_Non_Switch is False, options that are not switches and
14652 appear as relative path are not converted to absolute paths.
14653
14654 2007-08-16 Nicolas Roche <roche@adacore.com>
14655
14656 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
14657 makefiles
14658
14659 * Make-lang.in: Update dependencies
14660
14661 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
14662
14663 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
14664 currently inspected is a selected component, retrieve the entity of
14665 its selector.
14666 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
14667 from the immediate ancestor of Main_Unit_Entity.
14668 (Install_Limited_Withed_Unit): Do not install the limited view of
14669 package P if P is reachable through an ancestor chain from package C
14670 and C also has a with clause for P in its body.
14671 (Has_Limited_With_Clause): New routine.
14672 (Has_With_Clause): New routine.
14673
14674 2007-08-16 Ed Schonberg <schonberg@adacore.com>
14675
14676 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
14677 generic for an enclosing instance is a global reference, even though
14678 its scope is the enclosing instance.
14679
14680 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14681 Javier Miranda <miranda@adacore.com>
14682
14683 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
14684 initialize a limited object.
14685 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
14686 13/2 and 14/2.
14687 Make sure Has_Complex_Representation is inherited by derived type.
14688
14689 2007-08-16 Robert Dewar <dewar@adacore.com>
14690
14691 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
14692 exception case
14693
14694 2007-08-16 Ed Schonberg <schonberg@adacore.com>
14695
14696 * sem_disp.adb (Check_Dispatching_Operation): If the operation
14697 implements an operation inherited from a progenitor interface, verify
14698 that they are subtype-conformant.
14699
14700 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
14701 Bob Duff <duff@adacore.com>
14702 Nicolas Setton <setton@adacore.com>
14703
14704 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
14705 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
14706 the statement which is being resolved comes from a predefined library
14707 unit, all non-predefined library interpretations are skipped.
14708 (Resolve_Op_Concat): If string concatenation was folded in the parser,
14709 but the "&" is user defined, give an error, because the folding would
14710 be wrong.
14711
14712 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
14713 the parser has folded a long sequence of concatenations of string
14714 literals.
14715
14716 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
14717 and "JMP_BUF" variables as artificial.
14718 (N_String_Literal): Do not use alloca for very long string literals. Use
14719 xmalloc/free instead. Otherwise the stack might overflow.
14720
14721 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
14722 compiler.
14723
14724 2007-08-16 Vincent Celier <celier@adacore.com>
14725
14726 * vms_conv.adb (Process_Argument): Ensure that project related options
14727 are not put in the -cargs section when using GNAT COMPILE.
14728
14729 2007-08-16 Robert Dewar <dewar@adacore.com>
14730
14731 * gnat_ugn.texi: Add note on preprocessing (output file not written)
14732
14733 2007-08-16 Thomas Quinot <quinot@adacore.com>
14734
14735 * a-tags.adb: Minor reformatting.
14736
14737 2007-08-16 Bob Duff <duff@adacore.com>
14738
14739 * sem_type.ads, sem_ch4.adb: Minor reformatting.
14740
14741 2007-08-14 Thomas Quinot <quinot@adacore.com>
14742
14743 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
14744 s-osinte-interix.ads, system-interix.ads: Removed.
14745
14746 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14747
14748 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
14749 calls to Check_Within_Time_Bounds.
14750 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
14751 (Difference): Account for possible rounding of the resulting difference
14752
14753 2007-08-14 Robert Dewar <dewar@adacore.com>
14754
14755 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
14756 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
14757 s-osinte-solaris.adb, s-osinte-solaris.ads,
14758 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
14759
14760 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
14761 switch -gnatyS. Enable -gnatyS in GNAT style check mode
14762
14763 2007-08-14 Robert Dewar <dewar@adacore.com>
14764 Ed Schonberg <schonberg@adacore.com>
14765
14766 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
14767 Suppress unmodified in-out parameter warning in some cases
14768 This patch is a also fairly significant change to the way suppressible
14769 checks are handled.
14770
14771 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
14772 needed for access to concurrent record types generated by the expander.
14773 (Generate_Range_Check): When generating a temporary to capture the
14774 value of a conversion that requires a range check, set the type of the
14775 temporary before rewriting the node, so that the type is always
14776 properly placed for back-end use.
14777 (Apply_Float_Conversion_Check): Handle case where the conversion is
14778 truncating.
14779 (Get_Discriminal): Code reformatting. Climb the scope stack looking
14780 for a protected type in order to examine its discriminants.
14781
14782 2007-08-14 Robert Dewar <dewar@adacore.com>
14783 Gary Dismukes <dismukes@adacore.com>
14784 Ed Schonberg <schonberg@adacore.com>
14785 Thomas Quinot <quinot@adacore.com>
14786
14787 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
14788 a-stwisu.adb, a-strsup.adb: Fix warnings for range
14789 tests optimized out.
14790
14791 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
14792 (Get_Allocator_Final_List): For the case of an anonymous access type
14793 that has a specified Associated_Final_Chain, do not go up to the
14794 enclosing scope.
14795 (Expand_N_Type_Conversion): Test for the case of renamings of access
14796 parameters when deciding whether to apply a run-time accessibility
14797 check.
14798 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
14799 aggregate code before allocator, and ahead of declaration for
14800 temporary, to prevent access before elaboration when the allocator is
14801 an actual for an access parameter.
14802 (Expand_N_Type_Conversion): On an access type conversion involving an
14803 access parameter, do not apply an accessibility check when the
14804 operand's original node was an attribute other than 'Access. We now
14805 create access conversions for the expansion of 'Unchecked_Access and
14806 'Unrestricted_Access in certain cases and clearly accessibility should
14807 not be checked for those.
14808
14809 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
14810 includes a type conversion of a packed component that has been expanded,
14811 recover the original expression for the object, and use this expression
14812 in the post-call assignment statement, so that the assignment is made
14813 to the object and not to a back-end temporary.
14814 (Freeze_Subprogram): In case of primitives of tagged types not defined
14815 at the library level force generation of code to register the primitive
14816 in the dispatch table. In addition some code reorganization has been
14817 done to leave the implementation clear.
14818 (Expand_Call): When expanding an inherited implicit conversion,
14819 preserve the type of the inherited function after the intrinsic
14820 operation has been expanded.
14821
14822 * exp_ch2.ads, exp_ch2.adb
14823 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
14824 of an entry formal appearing in an assignment statement does not assign
14825 to the formal.
14826 (Expand_Current_Value): Instead of calling a routine to determine
14827 whether the prefix of an attribute reference should be optimized or
14828 not, prevent the optimization of such prefixes all together.
14829
14830 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
14831 component whose prefix is known to be of an access type is an implicit
14832 dereference and does not assign to the prefix.
14833
14834 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14835 Robert Dewar <dewar@adacore.com>
14836
14837 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
14838 itype is visited, make an entry into table to link associated node and
14839 new itype.
14840 Add comments and correct harmless error in Build_NCT_Hash_Tables
14841 (Array_Aggr_Subtype): Associate each itype created for an index type to
14842 the corresponding range construct, and not to the aggregate itself. to
14843 maintain a one-to-one correspondence between itype and its associated
14844 node, to prevent errors when complex expression is copied.
14845 Fix mishandling of multiple levels of parens
14846
14847 * sem_aggr.adb: Create a limited view of an incomplete type, to make
14848 treatment of limited views uniform for all visible declarations in a
14849 limited_withed package.
14850 (New_Copy_Tree): If hash table is being used and itype is visited,
14851 make an entry into table to link associated node and new itype.
14852 (Resolve_Record_Aggregate): Do not add an others box association for a
14853 discriminated record component that has only discriminants, when there
14854 is a box association for the component itself.
14855
14856 * par-ch4.adb: Fix mishandling of multiple levels of parens
14857
14858 2007-08-14 Robert Dewar <dewar@adacore.com>
14859
14860 * comperr.adb: Fix problem with suppressing warning messages from gigi
14861
14862 * erroutc.ads, erroutc.adb, errout.ads,
14863 errout.adb (Write_Eol): Remove trailing spaces before writing the line
14864 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14865 possible trailing spaces.
14866 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14867 Fix problem with suppressing warning messages from back end
14868 Improve handling of deleted warnings
14869
14870 * gnat1drv.adb:
14871 Fix problem with suppressing warning messages from back end
14872 Handle setting of Static_Dispatch_Tables flag.
14873
14874 * prepcomp.adb:
14875 Fix problem with suppressing warning messages from back end
14876
14877 * exp_intr.adb: Improve handling of deleted warnings
14878
14879 2007-08-14 Robert Dewar <dewar@adacore.com>
14880
14881 * debug.adb: Improve -gnatdI to cover all cases of serialization
14882 Add documentation of dZ, d.t
14883
14884 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
14885 serialization.
14886 (Sprint_Node_Actual): Generate new output associated with implicit
14887 importation and implicit exportation of object declarations.
14888
14889 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14890 Robert Dewar <dewar@adacore.com>
14891 Javier Miranda <miranda@adacore.com>
14892 Gary Dismukes <dismukes@adacore.com>
14893
14894 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
14895 to make treatment of limited views uniform for all visible declarations
14896 in a limited_withed package.
14897 Improve warnings for in out parameters
14898 (Set_Related_Interaface/Related_Interface): Allow the use of this
14899 attribute with constants.
14900 (Write_Field26_Name): Handle attribute Related_Interface in constants.
14901 Warn on duplicate pragma Preelaborable_Initialialization
14902
14903 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
14904 generation of a freezing node to ensure proper management of null
14905 excluding access types in the backend.
14906 (Create_Extra_Formals): Test base type of the formal when checking for
14907 the need to add an extra accessibility-level formal. Pass the entity E
14908 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
14909 originally being done in a couple of cases), to ensure that the
14910 Extra_Formals list gets set on the entity E when the first entity is
14911 added.
14912 (Conforming_Types): Add missing calls to Base_Type to the code that
14913 handles anonymous access types. This is required to handle the
14914 general case because Process_Formals builds internal subtype entities
14915 to handle null-excluding access types.
14916 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14917 functions that need it, even when not marked Requires_Overriding.
14918 Improve warnings for in out parameters
14919 (Analyze_Function_Return): Warn for disallowed null return
14920 Warn on return from procedure with unset out parameter
14921 Ensure consistent use of # in error messages
14922 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
14923 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
14924 the implicit conversion of the expression done for anonymous access
14925 types. This is required to generate the code of the null excluding
14926 check (if required).
14927
14928 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
14929 A formal parameter is never publicly referenceable outside of its body.
14930 (Check_References): For an unreferenced formal parameter in an accept
14931 statement, use the same warning circuitry as for subprogram formal
14932 parameters.
14933 (Warn_On_Unreferenced_Entity): New subprogram, taken from
14934 Output_Unreferenced_Messages, containing the part of that routine that
14935 is now reused for entry formals as described above.
14936 (Goto_Spec_Entity): New function
14937 (Check_References): Do not give IN OUT warning for dispatching operation
14938 Improve warnings for in out parameters
14939 (Test_Ref): Check that the entity is not undefinite before calling
14940 Scope_Within, in order to avoid infinite loops.
14941 Warn on return from procedure with unset out parameter
14942 Improved warnings for unused variables
14943
14944 2007-08-14 Robert Dewar <dewar@adacore.com>
14945 Javier Miranda <miranda@adacore.com>
14946 Gary Dismukes <dismukes@adacore.com>
14947
14948 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
14949 (Expand_N_Attribute_Reference): Further unify the handling of the
14950 three forms of access attributes, using common code now for all three
14951 cases. Add a test for the case of applying an access attribute to
14952 an explicit dereference when the context is an access-to-interface
14953 type. In that case we need to apply the conversion to the prefix
14954 of the explicit dereference rather than the prefix of the attribute.
14955 (Attribute_Version, UET_Address): Set entity as internal to ensure
14956 proper dg output of implicit importation.
14957 (Expand_Access_To_Type): Removed.
14958 (Expand_N_Attribute_Reference): Merge the code from the three cases
14959 of access attributes, since the processing is largely identical for
14960 these cases. The substantive fix here is to process the case of a
14961 type name prefix (current instance case) before handling the case
14962 of interface prefixes.
14963
14964 2007-08-14 Thomas Quinot <quinot@adacore.com>
14965 Ed Schonberg <schonberg@adacore.com>
14966 Javier Miranda <miranda@adacore.com>
14967 Robert Dewar <dewar@adacore.com>
14968
14969 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
14970 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
14971 type that is an anonymous access to controlled object, establish
14972 an associated finalization chain to avoid corrupting the global
14973 finalization list when a dynamically allocated object designated
14974 by such a component is deallocated.
14975 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14976 functions that need it, even when not marked Requires_Overriding.
14977 (Initialize_Tag): Replace call to has_discriminants by call to
14978 Is_Variable_Size_Record in the circuitry that handles the
14979 initialization of secondary tags.
14980 (Is_Variable_Size_Record): New implementation.
14981 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
14982 Suppress_Initialization pragma for a derived type.
14983 (Is_Variable_Size_Record): New subprogram.
14984 (Build_Offset_To_Top_Functions): New implementation that simplifies the
14985 initial version of this routine and also fixes problems causing
14986 incomplete initialization of the table of interfaces.
14987 (Build_Init_Procedure): Improve the generation of code to initialize the
14988 the tag components of secondary dispatch tables.
14989 (Init_Secondary_Tags): New implementation that simplifies the previous
14990 version of this routine.
14991 (Make_DT): Add parameter to indicate when type has been frozen by an
14992 object declaration, for diagnostic purposes.
14993 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
14994 diagnose attemps to freeze a subprogram when some untagged type of its
14995 profile is a private type whose full view has not been analyzed yet.
14996 (Freeze_Array_Type): Generate init proc for packed array if either
14997 Initialize or Normalize_Scalars is set.
14998 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
14999 constructing the new profile, copy the null_exclusion indicator for each
15000 parameter, to ensure full conformance of the new body with the spec.
15001
15002 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
15003 Create wrappers for constructor functions that need it, even when not
15004 marked Requires_Overriding.
15005 (Covers): Handle properly designated types of anonymous access types,
15006 whose non-limited views are themselves incomplete types.
15007 (Add_Entry): Use an entity to store the abstract operation which hides
15008 an interpretation.
15009 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
15010 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
15011 initialization aggregate.
15012 (Function_Interp_May_Be_Hidden): Rename to
15013 Function_Interp_Has_Abstract_Op.
15014 (Has_Compatible_Type): Remove machinery that skips interpretations if
15015 they are labeled as potentially hidden by an abstract operator.
15016 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
15017 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
15018 (Write_Overloads): Output the abstract operator if present.
15019 (Add_Entry): Before inserting a new entry into the interpretation table
15020 for a node, determine whether the entry will be disabled by an abstract
15021 operator.
15022 (Binary_Op_Interp_May_Be_Hidden): New routine.
15023 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
15024 aggregate.
15025 (Function_Interp_May_Be_Hidden): New routine.
15026 (Has_Compatible_Type): Do not consider interpretations hidden by
15027 abstract operators when trying to determine whether two types are
15028 compatible.
15029 (Has_Hidden_Interp): New routine.
15030 (Set_May_Be_Hidden_Interp): New routine.
15031 (Write_Overloads): Write the status of flag May_Be_Hidden.
15032
15033 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15034 Javier Miranda <miranda@adacore.com>
15035
15036 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
15037 types declared in the declarative part of a nested package body or in
15038 the proper body of a stub.
15039 (Set_All_DT_Position): Add missing check to avoid wrong assignation
15040 of the same dispatch table slot to renamed primitives.
15041 (Make_Select_Specific_Data_Table): Handle private types.
15042 (Tagged_Kind): Handle private types.
15043 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
15044 output of implicit importation and exportation.
15045 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
15046 first formal of the thunk is always associated with the controlling
15047 type. In addition perform the following code cleanup: remove formal
15048 Thunk_Alias which is no longer required, cleanup evaluation of the
15049 the controlling type, and update the documentation.
15050 Replace occurrence of Default_Prim_Op_Count by
15051 Max_Predef_Prims. Addition of compile-time check to verify
15052 that the value of Max_Predef_Prims is correct.
15053 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
15054 (Make_DT): Add parameter to indicate when type has been frozen by an
15055 object declaration, for diagnostic purposes.
15056 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
15057 construction of statically allocated dispatch tables.
15058 (Make_DT): In case of library-level tagged types export the declaration
15059 of the primary tag. Remove generation of tags (now done by Make_Tags).
15060 Additional modifications to handle non-static generation of dispatch
15061 tables. Take care of building tables for asynchronous interface types
15062 (Make_Tags): New subprogram that generates the entities associated with
15063 the primary and secondary tags of Typ and fills the contents of Access_
15064 Disp_Table. In case of library-level tagged types imports the forward
15065 declaration of the primary tag that will be declared later by Make_DT.
15066 (Expand_Interface_Conversion): In case of access types to interfaces
15067 replace an itype declaration by an explicit type declaration to avoid
15068 problems associated with the scope of such itype in transient blocks.
15069
15070 2007-08-14 Robert Dewar <dewar@adacore.com>
15071 Ed Schonberg <schonberg@adacore.com>
15072 Javier Miranda <miranda@adacore.com>
15073
15074 * exp_util.ads, exp_util.adb:
15075 This patch replaces a number of occurrences of explicit tests for N_Null
15076 with calls to Known_Null. This improves tracking of null values, since
15077 Known_Null also catches null constants, and variables currently known to
15078 be null, so we get better tracking.
15079 (Ensure_Defined): create an itype reference only in the scope of the
15080 itype.
15081 (Side_Effect_Free): A selected component of an access type that
15082 denotes a component with a rep clause must be treated as not
15083 side-effect free, because if it is part of a linked structure its
15084 value may be affected by a renaming.
15085 (Expand_Subtype_From_Expr): For limited objects initialized with build
15086 in place function calls, do nothing; otherwise we prematurely introduce
15087 an N_Reference node in the expression initializing the object, which
15088 breaks the circuitry that detects and adds the additional arguments to
15089 the called function. Bug found working in the new patch for statically
15090 allocated dispatch tables.
15091 (Is_Library_Level_Tagged_Type): New subprogram.
15092 (Remove_Side_Effects): If the expression of an elementary type is an
15093 operator treat as a function call.
15094 (Make_Literal_Range): If the index type of the array is not integer, use
15095 attributes properly to compute the constraint on the resulting aggregate
15096 which is a string.
15097
15098 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
15099 class-wide type whose base type is an incomplete private type, leave
15100 class-wide type unfrozen so that freeze nodes can be generated
15101 properly at a later point.
15102 (Freeze_Entity, array case): Handle case of pragma Pack and component
15103 size attributre clause for same array.
15104
15105 2007-08-14 Vincent Celier <celier@adacore.com>
15106
15107 * prj.ads, prj.adb: Update Project Manager to new attribute names for
15108 gprbuild.
15109 Allow all valid declarations in configuration project files
15110 (Reset): Initialize all tables and hash tables in the project tree data
15111 Major update of the Project Manager and of the project aware tools,
15112 including gprmake, so that the same sources in the GNAT repository
15113 can be used by gprbuild.
15114 (Slash_Id): Change type to be Path_Name_Type
15115 (Slash): Return a Path_Name_Type instead of a File_Name_Type
15116
15117 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
15118 gprbuild.
15119 Update Project Manager to new attribute names for ghprbuild
15120 Allow all valid declarations in configuration project files
15121 Major update of the Project Manager and of the project aware tools,
15122 including gprmake, so that the same sources in the GNAT repository
15123 can be used by gprbuild.
15124
15125 * prj-com.ads:
15126 Major update of the Project Manager and of the project aware tools,
15127 including gprmake, so that the same sources in the GNAT repository
15128 can be used by gprbuild.
15129
15130 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
15131 insensitive flag for attributes with optional index.
15132 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
15133 array attribute, put the index in lower case.
15134 Update Project Manager to new attribute names for ghprbuild
15135 Allow all valid declarations in configuration project files
15136 Major update of the Project Manager and of the project aware tools,
15137 including gprmake, so that the same sources in the GNAT repository
15138 can be used by gprbuild.
15139
15140 * prj-env.ads, prj-env.adb:
15141 Major update of the Project Manager and of the project aware tools,
15142 including gprmake, so that the same sources in the GNAT repository
15143 can be used by gprbuild.
15144 (Get_Reference): Change type of parameter Path to Path_Name_Type
15145
15146 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
15147 removing '-' from the path to start with the first character of the
15148 next directory.
15149 Major update of the Project Manager and of the project aware tools,
15150 including gprmake, so that the same sources in the GNAT repository
15151 can be used by gprbuild.
15152 Major update of the Project Manager and of the project aware tools,
15153 including gprmake, so that the same sources in the GNAT repository
15154 can be used by gprbuild.
15155
15156 * prj-nmsc.ads, prj-nmsc.adb:
15157 Update Project Manager to new attribute names for ghprbuild
15158 Allow all valid declarations in configuration project files
15159 (Search_Directories): Detect subunits that are specified with an
15160 attribute Body in package Naming. Do not replace a source/unit in the
15161 same project when the order of the source dirs are known. Detect
15162 duplicate sources/units in the same project when the order of the
15163 source dirs are not known.
15164 (Check_Ada_Name): Allow all identifiers that are not reserved words
15165 in Ada 95.
15166 Major update of the Project Manager and of the project aware tools,
15167 including gprmake, so that the same sources in the GNAT repository
15168 can be used by gprbuild.
15169 (Look_For_Sources): If the list of sources is empty, set the object
15170 directory of non extending project to nil.
15171 Change type of path name variables to be Path_Name_Type
15172 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
15173 otherwise creating missing directories will fail.
15174
15175 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
15176 prj-part.ads, prj-part.adb:
15177 Major update of the Project Manager and of the project aware tools,
15178 including gprmake, so that the same sources in the GNAT repository
15179 can be used by gprbuild.
15180
15181 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
15182 insensitive flag for attributes with optional index.
15183 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
15184 array attribute, put the index in lower case.
15185 (Parse_Variable_Reference): Allow the current project name to be used in
15186 the prefix of an attribute reference.
15187
15188 * prj-util.ads, prj-util.adb
15189 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
15190 defaulted to False. When True, always check against indexes in lower
15191 case.
15192
15193 * snames.ads, snames.h, snames.adb:
15194 Update Project Manager to new attribute names for gprbuild
15195 Allow all valid declarations in configuration project files
15196
15197 2007-08-14 Robert Dewar <dewar@adacore.com>
15198 Ed Schonberg <schonberg@adacore.com>
15199
15200 * opt.ads: Warning for non-local exception propagation now off by
15201 default
15202 New switch -gnatI to disable representation clauses
15203 Implement new pragma Implicit_Packing
15204
15205 * usage.adb:
15206 Warning for non-local exception propagation now off by default
15207 Add warning for unchecked conversion of pointers wi different
15208 conventions.
15209 New switch -gnatI to disable representation clauses
15210
15211 * usage.adb: new switch -gnatyS
15212
15213 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
15214 note that aggregates of anonymous array types are not flagged.
15215 -gnatwc now includes membership tests optimized away
15216 -gnatw.x warnings are now off by default
15217 Added conditional compilation Appendix
15218 Add documentation of -gnatI
15219 Add documentation for new -gnatyS style check
15220 Update documentation about SAL and auto-init on Windows.
15221
15222 * gnat_rm.texi:
15223 Add documentation for pragma Check_Name and 'Enabled attribute
15224 Document that Eliminate on dispatching operation is ignored
15225 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
15226 Document pragma Main
15227 Document pragma Implicit_Packing
15228
15229 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
15230 different conventions
15231 New switch -gnatI to disable representation clauses
15232
15233 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
15234 recognized, report the invalid characters including "-gnat" instead of
15235 just the first character in the switch.
15236 New switch -gnatI to disable representation clauses
15237 Set Warn_On_Object_Renames_Function true for -gnatg
15238
15239 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
15240 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
15241 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
15242 to switch -aP (add directory to project search dir).
15243
15244 * par-prag.adb: Implement new pragma Implicit_Packing
15245
15246 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
15247 type as having a non-standard representation, to force expansion on
15248 conversion to related types.
15249 (Analyze_Pragma): Warn on misspelled pragma
15250 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
15251 Ensure consistent use of # in error messages
15252 Implement pragma Implicit_Packing
15253
15254 2007-08-14 Olivier Hainque <hainque@adacore.com>
15255 Eric Botcazou <ebotcazou@adacore.com>
15256
15257 * targtyps.c (get_target_maximum_default_alignment): New function.
15258 Maximum alignment
15259 that the compiler might choose by default for a type or object.
15260 (get_target_default_allocator_alignment): New function. Alignment known
15261 to be honored by the target default allocator.
15262 (get_target_maximum_allowed_alignment): New function. Maximum alignment
15263 we might accept for any type or object on the target.
15264 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
15265
15266 * gigi.h (get_target_maximum_default_alignment): Declare new function.
15267 (get_target_default_allocator_alignment): Likewise.
15268 (get_target_maximum_allowed_alignment): Likewise.
15269
15270 PR ada/19037
15271 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
15272 result of a function call, first try to use a stabilized reference for
15273 a constant renaming too.
15274 (validate_alignment): Use target_maximum_allowed_alignment instead of
15275 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
15276 (gnat_to_gnu_entity): Use common nodes directly.
15277 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
15278 alignment and size for the object.
15279 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
15280 and N_Procedure_Call_Statement.
15281 (takes_address): Rename to lvalue_required_p, add third parameter
15282 'aliased' and adjust recursive calls.
15283 <N_Indexed_Component>: Update 'aliased' from the array type.
15284 <N_Selected_Component>: New case.
15285 <N_Object_Renaming_Declaration>: New Likewise.
15286 (Identifier_to_gnu): Adjust for above changes.
15287 (maybe_stabilize_reference) <CONST_DECL>: New case.
15288
15289 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
15290 between type variants.
15291 (build_simple_component_ref): Likewise.
15292 (build_call_alloc_dealloc): Use target_default_allocator_alignment
15293 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
15294 aligning type circuitry for allocations from the default storage pool.
15295 (build_allocator): Likewise.
15296 (build_simple_component_ref): Manually fold the reference for a
15297 constructor if the record type contains a template.
15298
15299 * utils.c (value_zerop): Delete.
15300 (gnat_init_decl_processing): Emit debug info for common types.
15301 (rest_of_record_type_compilation): If a union contains a field
15302 with a non-constant qualifier, treat it as variable-sized.
15303 (finish_record_type): Give the stub TYPE_DECL a name.
15304 (rest_of_record_type_compilation): Likewise.
15305 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
15306 types are equivalent array types.
15307 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
15308 even if the type is not passed by reference.
15309 (static_ctors, static_dtors): Delete.
15310 (end_subprog_body): Do not record constructors and destructors.
15311 (build_global_cdtor): Delete.
15312 (gnat_write_global_declarations): Do not call build_global_cdtor.
15313
15314 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
15315 -fRTS=rtp is specified.
15316 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
15317 specified.
15318
15319 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
15320 of the personality function with SJLJ exceptions.
15321
15322 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
15323 the name of the personality function with SJLJ exceptions.
15324
15325 2007-08-14 Robert Dewar <dewar@adacore.com>
15326 Ed Schonberg <schonberg@adacore.com>
15327
15328 * par.ads, par.adb: Improve handling of extra right parens.
15329 (Par): Remove flag From_Limited_With_Clause.
15330
15331 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
15332 Improve handling of extra right parens.
15333
15334 2007-08-14 Robert Dewar <dewar@adacore.com>
15335
15336 * par-tchk.adb (TF_Semicolon): Improve error recovery
15337
15338 2007-08-14 Robert Dewar <dewar@adacore.com>
15339 Ed Schonberg <schonberg@adacore.com>
15340
15341 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
15342 enumeration type, mark all literals as referenced.
15343 (Eval_Attribute, case 'Image): If the argument is an enumeration
15344 literal and names are available, constant-fold but mark nevertheless as
15345 non-static.
15346 Clean up function names.
15347 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
15348 comment.
15349 (Requires_Simple_Name_Prefix): Removed.
15350
15351 2007-08-14 Robert Dewar <dewar@adacore.com>
15352 Ed Schonberg <schonberg@adacore.com>
15353
15354 * sem_ch11.adb: Improved warnings for unused variables
15355
15356 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
15357 is a synchronized interface, the derived type is limited.
15358 (Analyze_Object_Declaration): Mark the potential coextensions in the
15359 definition and expression of an object declaration node.
15360 (Build_Derived_Type): For the completion of a private type declaration
15361 with a derived type declaration, chain the parent type's representation
15362 items to the last representation item of the derived type (not the
15363 first one) if they are not present already.
15364 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
15365 object declaration of forward references to tags.
15366 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
15367 subprogram types can appear as access discriminants of synchronized
15368 types.
15369 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
15370 given in prefixed form as a selected component.
15371 (Process_Discriminants): If not all discriminants have defaults, place
15372 error message on a default that is present.
15373 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
15374 extend a synchronized tagged type.
15375 Improved warnings for unused variables
15376 (Is_Visible_Component): Fix a visibility hole on a component inherited
15377 by a private extension when parent is itself declared as a private
15378 extension, and the derivation is in a child unit.
15379 (Find_Hidden_Interface): Move spec from the package body.
15380
15381 2007-08-14 Robert Dewar <dewar@adacore.com>
15382 Ed Schonberg <schonberg@adacore.com>
15383
15384 * sem_ch5.adb: Improve warnings on redundant assignments
15385
15386 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
15387 parameter
15388 (Is_Synchronized_Tagged_Type): New subprogram that returns true
15389 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
15390 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
15391 is set to False. Improves handling of Known_[Not_]Null.
15392 (Wrong_Type): Special case address arithmetic attempt
15393 (Collect_Abstract_Interfaces): Add new formal to allow collecting
15394 abstract interfaces just using the partial view of private types.
15395 (Has_Abstract_Interfaces): Add new formal to allow checking types
15396 covering interfaces using the partial view of private types.
15397 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
15398 component still needs to be defined in this case, but is never
15399 initialized as VMs are using other dispatching mechanisms.
15400 (Abstract_Interface_List): For a protected type, use base type to get
15401 proper declaration.
15402 Improve warnings on redundant assignments
15403 (Is_Variable): Handle properly an implicit dereference of a prefixed
15404 function call.
15405 (Build_Actual_Subtype): If this is an actual subtype for an
15406 unconstrained formal parameter, use the sloc of the body for the new
15407 declaration, to prevent anomalises in the debugger.
15408
15409 2007-08-14 Robert Dewar <dewar@adacore.com>
15410
15411 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
15412 dispatching operation
15413
15414 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15415 Gary Dismukes <dismukes@adacore.com>
15416
15417 * exp_aggr.ads,
15418 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
15419 expanded aggregate code before allocator, and ahead of declaration for
15420 temporary, to prevent access before elaboration when the allocator is
15421 an actual for an access parameter.
15422 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
15423 the TSD and the table of interfaces.
15424 (Convert_To_Assignments): Augment the test for delaying aggregate
15425 expansion for limited return statements to include the case of extended
15426 returns, to prevent creation of an unwanted transient scope.
15427 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
15428 (Expand_Array_Aggregate): Handle aggregates associated with
15429 statically allocated dispatch tables.
15430 (Expand_Record_Aggregate): Handle aggregates associated with
15431 statically allocated dispatch tables.
15432 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
15433 of anonymous access type.
15434
15435 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15436
15437 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
15438 is a variable that renames a slice, use the variable itself in the
15439 expannsion when the renamed expression itself may be modified between
15440 the declaration of the renaming and the array assignment.
15441
15442 2007-08-14 Jerome Guitton <guitton@adacore.com>
15443
15444 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
15445 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15446 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
15447 New functions; dummy implementations.
15448
15449 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
15450 functions, used to implement the multi-tasks mode routines on VxWorks.
15451
15452 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
15453 New functions, thin
15454 binding to the VxWorks routines which have changed between VxWorks 5
15455 and 6.
15456 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
15457 which are not callable from a RTP.
15458
15459 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
15460 implemented for the multi-tasks mode on VxWorks 5 and 6.
15461
15462 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
15463
15464 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
15465 functions.
15466
15467 2007-08-14 Vincent Celier <celier@adacore.com>
15468
15469 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
15470 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
15471 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
15472 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15473 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15474 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
15475 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
15476 procedure.
15477 (Major_Id_Name): New function.
15478 mlib-tgt.ads/mlib.tgt.adb:
15479 (Library_Major_Minor_Id_Supported): New function, default returns True
15480 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
15481 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
15482 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
15483 Implementation of Library_Major_Minor_Id_Supported returns False
15484 clean.adb:
15485 (Clean_Library_Directory): If major/minor ids are supported, clean all
15486 library files.
15487 Major update of the Project Manager and of the project aware tools,
15488 including gprmake, so that the same sources in the GNAT repository
15489 can be used by gprbuild.
15490
15491 2007-08-14 Olivier Hainque <hainque@adacore.com>
15492
15493 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
15494 (GCC_ZCX_Support): Switch to True.
15495
15496 * s-intman-solaris.adb (Notify_Exception): Call
15497 Adjust_Context_For_Raise before raising, as expected for signal
15498 handlers in general.
15499
15500 * s-intman-posix.adb (Notify_Exception): Remove declaration of
15501 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
15502 to other implementation bodies.
15503
15504 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
15505 be visible by multiple implementation bodies.
15506
15507 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
15508 only for conditions coming from hardware.
15509 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
15510 adjustments to signal context prior to exception raise from signal
15511 handler.
15512 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
15513 mode.
15514 Solaris section: (__gnat_adjust_context_for_raise): New function.
15515 Implementation of the machine context adjustments to perform prior to
15516 raise from a signal handler. Version for both sparc and x86.
15517 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
15518 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
15519 prior to raising as expected for any handler, before possible nested
15520 faults to make sure all the contexts in a chain have been adjusted by
15521 the time we propagate.
15522
15523 2007-08-14 Pascal Obry <obry@adacore.com>
15524
15525 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
15526 (SYSTEM_INFO): New record.
15527 (SetThreadIdealProcessor): New imported routine needed for supporting
15528 task_info pragma on Windows.
15529
15530 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
15531 info can be applied to the current host.
15532 (Create_Task): Set the ideal processor if information is present.
15533
15534 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
15535 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
15536
15537 2007-08-14 Olivier Hainque <hainque@adacore.com>
15538
15539 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
15540 stack size and initial stack pointer value for a given task.
15541 (Enter_Task): Get the stack attributes of the task we are entering and
15542 let the stack checking engine know about them.
15543
15544 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
15545 Let the stack-checking engine know about the initial sp value and stack
15546 size associated with the current task.
15547 (Set_Stack_Info): If a stack base has been notified for the current
15548 task, honor it. Fallback to the previous less accurate method otherwise.
15549
15550 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
15551
15552 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15553
15554 * sem_ch10.adb: Create a limited view of an incomplete type, to make
15555 treatment of limited views uniform for all visible declarations in a
15556 limited_withed package.
15557 Set flag indicating that a subprogram body for a child unit has a
15558 generated spec.
15559 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
15560 separate declaration, remove the unit name from visibility after
15561 compilation, so that environment is clean for subsequent compilations.
15562 (Install_Limited_Context_Clauses): Do not install a
15563 limited_private_with_clause unless the current unit is a body or a
15564 private child unit.
15565 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
15566 in the same fashion.
15567 (Install_Limited_Withed_Unit): Do not install a limited with clause if
15568 it applies to the declaration of the current package body.
15569 (Remove_Private_With_Clauses): If there is a regular with_clause for
15570 the unit, delete Private_With_Clause from context, to prevent improper
15571 hiding when processing subsequent nested packages and instantiations.
15572
15573 2007-08-14 Jose Ruiz <ruiz@adacore.com>
15574
15575 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
15576 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
15577 representing absolute path names.
15578 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
15579
15580 * cstreams.c (__gnat_full_name for VxWorks): Use
15581 __gnat_is_absolute_path to detect whether we need to add the current
15582 directory to normalize the path.
15583
15584 2007-08-14 Javier Miranda <miranda@adacore.com>
15585
15586 * a-tags.ads,
15587 a-tags.adb (Displace): Associate a message with the raised CE
15588 exception.
15589 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
15590 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
15591 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
15592 spec.
15593 (Default_Prim_Op_Count): Removed.
15594 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
15595 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
15596 Remove pragma Inline_Always.
15597
15598 * rtsfind.ads (Default_Prim_Op_Count): Removed
15599 (Max_Predef_Prims): New entity
15600 (RE_Expanded_Name): Removed
15601 (RE_HT_Link): Removed
15602 (RE_Iface_Tag): Remmoved
15603 (RE_Ifaces_Table): Removed
15604 (RE_Interfaces_Array): Removed
15605 (RE_Interface_Data_Element): Removed
15606 (RE_Nb_Ifaces): Removed
15607 (RE_RC_Offset): Removed
15608 (RE_Static_Offset_To_Top): Removed
15609
15610 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
15611 formal.
15612 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
15613 Prim_Op_Count by Max_Predef_Prims.
15614
15615 2007-08-14 Thomas Quinot <quinot@adacore.com>
15616 Vincent Celier <celier@adacore.com>
15617
15618 * binde.adb (Elab_All_Links): Remove unnecessary call to
15619 Generic_Separately_Compiled (if a unit satisfies this predicate, there
15620 won't be an associated Afile).
15621 (Elab_All_Links): Fail if a referenced unit cannot be found
15622
15623 * bindgen.adb:
15624 Fix comments in bindgen regarding consistency checks done in Bcheck:
15625 the checks are made across units within a partition, not across several
15626 partitions.
15627 Fix generation of C binder file for VxWorks.
15628
15629 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
15630 Generic_May_Lack_ALI, more descriptive of the current use of the
15631 predicate, and update documentation.
15632
15633 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
15634 reorganization and documentation update for the case of predefined
15635 library generics (for which we do not reference an Afile).
15636
15637 2007-08-14 Robert Dewar <dewar@adacore.com>
15638
15639 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
15640 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
15641 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
15642 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
15643 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
15644 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
15645 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
15646 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
15647 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
15648 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
15649 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
15650 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
15651 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
15652 g-altcon.adb: Minor reformatting
15653
15654 ada-tree.h: Delete empty line.
15655
15656 ali.ads: Minor reformatting
15657 Clarification of comments.
15658 Minor spelling correction
15659
15660 * exp_dbug.adb: Add Warnings Off to suppress new warning
15661
15662 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
15663 formal
15664
15665 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
15666 value
15667
15668 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
15669
15670 * a-textio.ads: Reorder the standard input/output/error declarations
15671 for consistency.
15672
15673 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
15674
15675 * par-ch2.adb: Recognize RM specially in errout
15676 Change 'R'M to RM in all error messages
15677
15678 * scng.adb: Recognize RM specially in errout
15679
15680 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
15681 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
15682
15683 * s-direio.adb: Add missing routine header box.
15684
15685 * sem_attr.ads: Add ??? comments
15686
15687 * sem_eval.adb: Recognize RM specially in errout
15688 Change 'R'M to RM in all error messages
15689
15690 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
15691
15692 * s-tasinf.ads: Fix minor comment typo.
15693
15694 * a-cihama.adb: Minor comment addition
15695
15696 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
15697 formal
15698
15699 * s-tasinf-tru64.ads: Fix minor comment typo.
15700
15701 * itypes.ads: Comment update.
15702
15703 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
15704 anymore.
15705
15706 * argv.c: Added protection against null gnat_argv and gnat_envp.
15707
15708 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
15709 warning message when Tolerate_Consistency_Errors is True.
15710
15711 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
15712 Any_Id, as this subprogram is only applicable to *type* entities (it
15713 sets RM_Size). Instead initialize just Esize and Alignment.
15714
15715 2007-08-14 Bob Duff <duff@adacore.com>
15716
15717 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
15718 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
15719 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
15720 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
15721 a-coorse.ads (Next): Applied pragma Inline.
15722 Make all Containers packages Remote_Types (unless they are already
15723 Pure).
15724 (Previous): applied pragma Inline
15725 (Elements_Type): is now a record instead of an array
15726
15727 2007-08-14 Thomas Quinot <quinot@adacore.com>
15728
15729 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
15730 of Set_Item.
15731 (Set_Item): When the new item is an element of the currently allocated
15732 table passed by reference, save a copy on the stack if we're going
15733 to reallocate. Also, in Table.Set_Item, make sure we test the proper
15734 variable to determine whether to call Set_Last.
15735
15736 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
15737 symbols-vms.adb, symbols-processing-vms-alpha.adb,
15738 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
15739 some occurrences of the pattern
15740 T.Increment_Last;
15741 T.Table (T.Last) := Value;
15742 with a cleaner call to
15743 T.Append (Value);
15744
15745 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15746 Gary Dismukes <dismukes@adacore.com>
15747 Thomas Quinot <quinot@adacore.com>
15748
15749 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
15750 derived type with interface progenitors use the analyzed formal as the
15751 parent of the actual, to create renamings for all the inherited
15752 operations in Derive_Subprograms.
15753 (Collect_Previous_Instances): new procedure within of
15754 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
15755 unit being loaded, to ensure that the generation of global symbols is
15756 consistent in different compilation modes.
15757 (Is_Tagged_Ancestor): New function testing the ancestor relation that
15758 takes progenitor types into account.
15759 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
15760 traversing over the primitives of the formal and actual types to locate
15761 any abstract subprograms of the actual type that correspond to a
15762 nonabstract subprogram of the formal type's ancestor type(s), and issue
15763 an error if such is found.
15764 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
15765 Instantiate_Package_Body, Instantiate_Subprogram_Body):
15766 Remove bogus guard around calls to Inherit_Context.
15767 (Reset_Entity): If the entity is the selector of a selected component
15768 that denotes a named number, propagate constant-folding to the generic
15769 template only if the named number is global to the generic unit.
15770 (Set_Instance_Env): Only reset the compilation switches when compiling
15771 a predefined or internal unit.
15772
15773 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15774
15775 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
15776 parameter to determine whether operation applies to the prefix.
15777 (Complete_Object_Operation): If actual has an access type and
15778 controlling formal is not an in_parameter, reject the actual if it is
15779 an access_to_constant type.
15780 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
15781 type, the candidate operations are found in the scope of declaration of
15782 the type, because the type has no primitive subprograms.
15783 (Analyze_Selected_Component): If prefix is class-wide, and root type is
15784 a private extension, only examine visible components before trying to
15785 analyze as a prefixed call.
15786 Change Entity_List to Type_To_Use, for better readability.
15787 (Has_Fixed_Op): Use base type when checking whether the type of an
15788 operator has a user-defined multiplication/division
15789 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
15790 user-defined operators are available for fixed-point types.
15791
15792 2007-08-14 Thomas Quinot <quinot@adacore.com>
15793 Ed Schonberg <schonberg@adacore.com>
15794
15795 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
15796 formal At_Any_Place indicating, when True, that we want to test for
15797 availability of the stream attribute at any place (as opposed to the
15798 current visibility context only).
15799 (Missing_Read_Write_Attributes): A stream attribute is missing for the
15800 purpose of enforcing E.2.2(8) only if it is not available at any place.
15801 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
15802 when checking the legality of an extension aggregate in a preelaborable
15803 package. Treat the literal null as a valid default expression in a
15804 component declaration for a type with preelaborable initialization.
15805 A limited interface is a legal progenitor for the designated type of a
15806 remote access to class-wide type.
15807
15808 2007-08-14 Thomas Quinot <quinot@adacore.com>
15809 Ed Schonberg <schonberg@adacore.com>
15810
15811 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
15812 reference): Use correct entity as denoted entity for the selector of
15813 the rewritten node.
15814 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
15815 setting the Referenced_As_LHS flag for entities that are implicitly
15816 dereferenced.
15817 (Find_Type): If the type is an internally generated incomplete type,
15818 mark the full view as referenced, to prevent spurious warnings.
15819 (Find_Selected_Component, Has_Components): Handle properly non-limited
15820 views that are themselves incomplete types.
15821 Handle interfaces visible through limited-with clauses.
15822 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
15823 subprogram generic actual for which we have generated a renaming.
15824 Warn when the renaming introduces a homonym of
15825 the renamed entity, and the renamed entity is directly visible.
15826
15827 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15828 Hristian Kirtchev <kirtchev@adacore.com>
15829
15830 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
15831 appear in the subtree to the current allocator if it is not a static
15832 coextension.
15833 (Resolve_Allocator): Perform cleanup if resolution has determined that
15834 the allocator is not a coextension.
15835 (Resolve): Skip an interpretation hidden by an abstract operator only
15836 when the type of the interpretation matches that of the context.
15837 (Resolve): When looping through all possible interpretations of a node,
15838 do not consider those that are hidden by abstract operators.
15839 (Resolve_Actuals): When verifying that an access to class-wide object
15840 is an actual for a controlling formal, ignore anonymous access to
15841 subprograms whose return type is an access to class_wide type.
15842 (Resolve_Slice): If the prefix of the slice is a selected component
15843 whose type depends on discriminants, build its actual subtype before
15844 applying range checks on the bounds of the slice.
15845 (Valid_Conversion): In an instance or inlined body, compare root types,
15846 to prevent anomalies between private and public views.
15847 (Resolve): Improve error message for ambiguous fixed multiplication
15848 expressions that involve universal_fixed multiplying operations.
15849
15850 2007-08-14 Javier Miranda <miranda@adacore.com>
15851 Hristian Kirtchev <kirtchev@adacore.com>
15852
15853 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
15854 location to allow the correct generation of errors in case of
15855 restrictions applied to the expanded code.
15856 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
15857 function if the condition does not reference them.
15858 (Expand_Entry_Body_Declarations): Mark the index constant as having a
15859 valid value.
15860
15861 2007-08-14 Thomas Quinot <quinot@adacore.com>
15862 Pablo Oliveira <oliveira@adacore.com>
15863
15864 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
15865 typecode parameters for a union (in a variant record), remove
15866 extraneous layer of Any wrapping for member label.
15867 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
15868 elabration statements, register the package with the name server
15869 at the beginning, not at the end, of the elaboration statements so
15870 that they can create remote access to subprogram values that designate
15871 remote subprograms from the package.
15872
15873 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15874
15875 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
15876 values to compute the number of seconds since the Unix Epoc in order to
15877 account for Daylight Savings Time. Perform special processing for dates
15878 that are earlier than the Unix Epoc to obtain a negative number.
15879
15880 2007-08-14 Emmanuel Briot <briot@adacore.com>
15881
15882 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
15883 switches.
15884
15885 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
15886
15887 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
15888 binder-generated file is not in Ada.
15889 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
15890 recorded in the ALI file.
15891 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
15892
15893 2007-08-14 Vincent Celier <celier@adacore.com>
15894
15895 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
15896 (Output_Source): Do nothing if parameter is No_Sdep_Id
15897
15898 * make.adb (Gnatmake): Do not rebuild an archive simply because a
15899 shared library it imports has a later time stamp.
15900 (Check): Resolve the symbolic links in the path name of the object
15901 directory.
15902 Check that the ALI file is in the correct object directory
15903 Check if a file name does not correspond to the mapping of units
15904 to file names.
15905 (Display_Version): New procedure
15906 (Initialize): Process switches --version and --help
15907 Use type Path_Name_Type for path name
15908
15909 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
15910
15911 * impunit.adb: Re-organize System.Random_Numbers and
15912 GNAT.Random_Numbers and add to builds.
15913
15914 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
15915
15916 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
15917
15918 * a-assert.ads, a-assert.adb: New files.
15919
15920 2007-08-14 Gary Dismukes <dismukes@adacore.com>
15921
15922 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
15923 if AAMP_On_Target is True, then the size of the type encompasses two
15924 addresses (a static link and a subprogram address), except in the case
15925 of library-level access types.
15926
15927 2007-08-14 Vincent Celier <celier@adacore.com>
15928
15929 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
15930 writing the line.
15931 (Write_Eol_Keep_Blanks): New procedure to write a line, including
15932 possible trailing spaces.
15933 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
15934
15935 2007-08-14 Javier Miranda <miranda@adacore.com>
15936
15937 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
15938 null-excluding access types.
15939
15940 2007-08-14 Javier Miranda <miranda@adacore.com>
15941
15942 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
15943 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
15944 of private types add missing check on matching interfaces in the
15945 partial and full declarations.
15946 (Analyze_Protected_Type): Code cleanup.
15947 (Analyze_Task_Type): Code cleanup.
15948
15949 2007-08-14 Javier Miranda <miranda@adacore.com>
15950
15951 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
15952 generated interface thunk.
15953
15954 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15955
15956 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
15957 obsolescent warning on application of 'Class to an incomplete type.
15958
15959 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
15960 prevent obsolescent warning on application of 'Class to an incomplete
15961 type.
15962
15963 2007-08-14 Pascal Obry <obry@adacore.com>
15964
15965 * s-fileio.adb (Is_Open): Add check for usability of the underlying
15966 file stream.
15967
15968 2007-08-14 Cyrille Comar <comar@adacore.com>
15969
15970 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
15971 since it is potentially used in cases implying double finalization of
15972 the same object.
15973
15974 2007-08-14 Jose Ruiz <ruiz@adacore.com>
15975
15976 * s-tasini.adb (Get_Stack_Info): Move this function to
15977 System.Soft_Links.Tasking because it is common to the full and the
15978 restricted run times.
15979 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
15980 in SSL.Tasking.Init_Tasking_Soft_Links.
15981
15982 * s-solita.adb (Get_Stack_Info): Function moved from
15983 System.Tasking.Initialization because it is common to the full and the
15984 restricted run times.
15985 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
15986
15987 2007-08-14 Arnaud Charlet <charlet@adacore.com>
15988
15989 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
15990 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
15991 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
15992 parameter.
15993
15994 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
15995 guard to 12K.
15996
15997 2007-08-14 Gary Dismukes <dismukes@adacore.com>
15998
15999 * s-veboop.adb (SU): New named number initialized to
16000 System.Storage_Unit.
16001 (True_Val): The initialization expression is revised to use SU (=
16002 Storage_Unit) rather than assuming 8 for the component size of an
16003 unpacked Boolean array.
16004
16005 2007-08-14 Tristan Gingold <gingold@adacore.com>
16006
16007 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
16008
16009 * tb-ivms.c: New file.
16010
16011 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
16012
16013 2007-08-14 Geert Bosch <bosch@adacore.com>
16014
16015 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
16016 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
16017 Add required linker pragmas for automatically linking with the gnalasup
16018 linear algebra support library, and the systems math library.
16019 Rename cdot to cdotu and zdot to zdotu.
16020 Update header comment to describe purpose of package.
16021
16022 2007-08-14 Thomas Quinot <quinot@adacore.com>
16023
16024 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
16025 an explicitly specified Associated_Final_Chain, use that list.
16026 (Expand_N_Package_Body): Build dispatch tables of library level tagged
16027 types.
16028 (Expand_N_Package_Declaration): Build dispatch tables of library level
16029 tagged types. Minor code cleanup.
16030
16031 2007-08-14 Vincent Celier <celier@adacore.com>
16032
16033 * gnatchop.adb (Terminate_Program): Remove exception and use
16034 Types.Terminate_Program instead.
16035
16036 * osint.ads, osint.adb (Current_Exit_Status): New global variable
16037 (Find_Program_Name): Added protection against empty name.
16038 (OS_Exit_Through_Exception): New procedure
16039
16040 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
16041 (OS_Exit_Default): New procedure that contains the previous
16042 implementation of procedure OS_Exit.
16043 (Final_Value): Remove obsolete Interix stuff.
16044
16045 2007-08-14 Thomas Quinot <quinot@adacore.com>
16046
16047 * g-socket.ads: Reorganize example code so that it also works on
16048 Windows XP.
16049
16050 2007-08-14 Tristan Gingold <gingold@adacore.com>
16051
16052 * g-trasym.ads: AIX now supports symbolic backtraces.
16053
16054 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16055
16056 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
16057 units being loaded to detect circularities. A circularity may be
16058 present even if the current chain of pending units to load starts from
16059 a limited_with_clause.
16060
16061 * lib-load.ads: Change profile of Load_Unit to use a with_clause
16062 rather than a boolean flag, in order to detect circularities in
16063 with_clauses.
16064
16065 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
16066 than propagating the From_Limited_With flag, in order to handle
16067 properly circularities involving with_clauses.
16068
16069 2007-08-14 Nicolas Setton <setton@adacore.com>
16070
16071 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
16072 warnings.
16073
16074 2007-08-14 Arnaud Charlet <charlet@adacore.com>
16075
16076 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
16077 to build for libgnala.
16078 libgnat: Add rules to build libgnala.a
16079 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
16080 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
16081 Add s-osinte-vxworks-kernel.adb to the target pairs of the
16082 kernel run-time lib for VxWorks 6, which would provide a different
16083 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
16084 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
16085 running ZCX by default.
16086 Add g-sttsne-locking to LynxOS version.
16087 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
16088 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
16089
16090 * system-darwin-x86.ads: New file.
16091
16092 * Make-lang.in: Delete files before copying onto them, so if they are
16093 read-only, the copy won't fail.
16094 Update dependencies
16095
16096 2007-08-14 Pascal Obry <obry@adacore.com>
16097
16098 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
16099 naming scheme.
16100
16101 2007-08-14 Vincent Celier <celier@adacore.com>
16102
16103 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
16104 (Gcc): Initialize Gcc_Name at the first call
16105
16106 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16107
16108 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
16109 with_clauses of the enclosing unit when analyzing the package
16110 specification of a nested instance.
16111
16112 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
16113
16114 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
16115 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
16116 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
16117 layout of N_Allocator.
16118
16119 2007-08-14 Thomas Quinot <quinot@adacore.com>
16120
16121 * rtsfind.adb (Check_RPC): Add PCS version check.
16122
16123 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
16124 (Gnat_Free_Software): New function.
16125
16126 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
16127 the PCS_Version value from s-parint, used to check that it is consistent
16128 with what exp_dist expects.
16129
16130 * s-parint.ads (PCS_Version): New entity for checking consistency
16131 between exp_dist and PCS.
16132
16133 * gen-soccon.c: (SO_REUSEPORT): New constant.
16134
16135 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
16136
16137 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
16138 variable Sub_Second to Duration in order to accomodate a larger range
16139 of arithmetic operations.
16140
16141 2007-08-14 Bob Duff <duff@adacore.com>
16142
16143 * g-sttsne-locking.ads: Move comments from spec to body.
16144 * g-sttsne-locking.adb: Move comments from spec to body.
16145 * g-sttsne-vxworks.ads: Removed.
16146 * g-sttsne-vxworks.adb: Removed.
16147
16148 2007-08-11 Ian Lance Taylor <iant@google.com>
16149
16150 * misc.c (gnat_get_alias_set): Change return type to
16151 alias_set_type.
16152
16153 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16154
16155 * decl.c, utils2.c: Fix whitespace in last change.
16156
16157 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16158
16159 * decl.c (compare_field_bitpos): Constify.
16160 * utils2.c (compare_elmt_bitpos): Likewise.
16161
16162 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
16163
16164 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
16165 anonymous access type.
16166 (pthread_sigmask): Now take an access sigset_t.
16167
16168 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
16169
16170 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
16171
16172 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
16173
16174 PR tree-optimization/25737
16175 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
16176
16177 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
16178
16179 * trans.c (Attribute_to_gnu): When subtracting an
16180 offset from a pointer, use POINTER_PLUS_EXPR with
16181 NEGATE_EXPR instead of MINUS_EXPR.
16182 (gnat_to_gnu): Likewise.
16183 * utils.c (convert): When converting between
16184 thin pointers, use POINTER_PLUS_EXPR and sizetype
16185 for the offset.
16186 * utils2.c (known_alignment): POINTER_PLUS_EXPR
16187 have the same semantics as PLUS_EXPR for alignment.
16188 (build_binary_op): Add support for the semantics of
16189 POINTER_PLUS_EXPR's operands.
16190 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
16191
16192 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
16193
16194 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
16195 of get_signed_or_unsigned_type.
16196 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
16197
16198 2007-06-11 Bob Duff <duff@adacore.com>
16199 Thomas Quinot <quinot@adacore.com>
16200
16201 * g-stsifd-sockets.adb (Create): Work around strange behavior of
16202 'bind' on windows that causes 'connect' to fail intermittently, by
16203 retrying the 'bind'.
16204 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16205
16206 2007-06-10 Duncan Sands <baldrick@free.fr>
16207
16208 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
16209 than to void, for the fields when making a new fat pointer type.
16210 (gnat_substitute_in_type): Now substitute_in_type.
16211 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
16212 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
16213 * utils.c (update_pointer_to): Update fat pointers by updating the
16214 dummy node pointers used for the fields.
16215
16216 2007-06-06 Thomas Quinot <quinot@adacore.com>
16217 Bob Duff <duff@adacore.com>
16218
16219 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
16220 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16221 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
16222 constant Thread_Blocking_IO, always True by default, set False
16223 on a per-runtime basis.
16224 (Need_Netdb_Buffer): New constant.
16225
16226 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
16227 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
16228 files.
16229
16230 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
16231 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
16232 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
16233 child package Task_Safe_NetDB
16234 (Host_Error_Messages): Add stub body.
16235 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16236
16237 * g-soccon-mingw.ads: Add Windows-specific constants.
16238 (Need_Netdb_Buffer): New constant.
16239 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
16240 wrapper and import inet_addr(3) from the standard sockets library
16241 directly instead.
16242 (In_Addr): Add alignment clause.
16243 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16244
16245 2007-06-06 Robert Dewar <dewar@adacore.com>
16246
16247 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
16248 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
16249 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
16250 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
16251 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
16252 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
16253 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
16254 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
16255 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
16256 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
16257 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
16258 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
16259 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
16260 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
16261 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
16262 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
16263 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
16264 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
16265 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
16266 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
16267 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
16268 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
16269 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
16270 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
16271 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
16272 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
16273 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
16274 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
16275 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
16276 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
16277 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
16278 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
16279 Unchecked_* by Ada.Unchecked_*
16280
16281 2007-06-06 Robert Dewar <dewar@adacore.com>
16282
16283 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
16284 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
16285 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
16286 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
16287 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
16288 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
16289
16290 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
16291 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
16292 s-tasloc.adb, s-tasloc.ads: New files.
16293
16294 2007-06-06 Bob Duff <duff@adacore.com>
16295
16296 * g-expect-vms.adb:
16297 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
16298 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
16299 (Send_Signal, Close): Raise Invalid_Process if the process id is
16300 invalid.
16301 (Pattern_Matcher_Access): Is now a general access type to be able to
16302 use aliased string.
16303
16304 2007-06-06 Thomas Quinot <quinot@adacore.com>
16305 Arnaud Charlet <charlet@adacore.com>
16306
16307 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
16308 (SIGEMT is now used instead of SIGTERM on AIX).
16309
16310 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
16311 (Time_Slice_Supported): Set to True.
16312 Use SIGEMT instead of SIGTERM as SIGADAABORT.
16313
16314 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16315
16316 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
16317 (Time, Time)): Use To_Relative_Time rather than manual calculation to
16318 express the bounds of Duration as Time. Raise Time_Error when the
16319 result is greater or equal to the higher bound of Duration (on the
16320 margin case).
16321 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
16322 Ada_High_And_Leaps.
16323 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
16324 Ada_High_And_Leaps.
16325 ("-" (Time, Time)): Reorder code.
16326 (All_Leap_Seconds): Removed.
16327 (Arithmetic_Operations.Add): Remove sign related kludge.
16328 (Arithmetic_Operations.Difference): Control the leaps seconds processing
16329 with flag Leap_Support.
16330 (Arithmetic_Operations.Subtract): Remove sign related kludge.
16331 (Check_Within_Time_Bounds): New procedure.
16332 (Clock): Control the leap seconds processing with flag Leap_Support.
16333 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
16334 (Formatting_Operations.Split): Control the leap seconds processing with
16335 flag Leap_Support.
16336 (Formatting_Operations.Time_Of): Control the leaps seconds processing
16337 with flag Leap_Support. Adjust the year, month and day (if applicable)
16338 when the value of day seconds designates a new day.
16339 (Split): Use parameter associations for better readability. Integrate
16340 flag Is_Ada_05.
16341 (Time_Of): Use parameter associations for better readability. Integrate
16342 flag Is_Ada_05.
16343
16344 * a-calfor.adb (Split): Use parameter associations for better
16345 readability. Integrate flag Is_Ada_05.
16346 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
16347 better readability. Integrate flag Is_Ada_05.
16348
16349 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16350
16351 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
16352 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
16353 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
16354 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
16355 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
16356 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
16357 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
16358 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
16359 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
16360 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
16361 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
16362 time when entering this routine to detect a backward clock setting
16363 (manual setting or DST adjustment), to avoid waiting for a longer delay
16364 than needed.
16365 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
16366 Remove handling of deferred priority change, and replace by setting the
16367 task priority directly, as required by AI-188.
16368 Update comments.
16369 (Max_Task_Image_Length): New constant.
16370 Replace Warnings (Off) by Unreferenced pragma, cleaner.
16371 (Dynamic_Priority_Support): Removed, no longer needed.
16372 (Poll_Base_Priority_Change): Ditto.
16373 (Set_Ceiling): Add this procedure to change the ceiling priority
16374 associated to a lock. This is a dummy implementation because dynamic
16375 priority ceilings are not supported by the underlying system.
16376
16377 * a-dynpri.adb (Set_Priority): Take into account case where Target is
16378 accepting a RV with its priority boosted.
16379 Remove handling of deferred priority change, and replace by setting the
16380 task priority directly, as required by AI-188.
16381
16382 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
16383 Succeeded = True.
16384 Remove handling of deferred priority change, and replace by setting the
16385 task priority directly, as required by AI-188.
16386 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
16387 of Self_Id earlier.
16388
16389 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
16390 (Poll_Base_Priority_Change): Removed.
16391 Code clean up: use SSL.Current_Target_Exception.
16392
16393 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
16394 to run as this is a potentially dispatching point.
16395 (Call_Synchronous): Use Local_Defer_Abort.
16396 (Callable): Relax assertion.
16397 (Selective_Wait): Relax assertion in case abort is not allowed.
16398 Remove handling of deferred priority change, and replace by setting the
16399 task priority directly, as required by AI-188.
16400
16401 * s-tasuti.adb (Make_Passive): Adjust assertions.
16402 Remove handling of deferred priority change, and replace by setting the
16403 task priority directly, as required by AI-188.
16404
16405 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16406
16407 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16408 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
16409 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
16410 system-vxworks-mips.ads, system-vxworks-alpha.ads,
16411 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
16412 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
16413 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
16414 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
16415 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
16416 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
16417 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
16418 This patch changes the largest non-binary modulus from 2**31-1 to
16419 2**32-1.
16420 (Compiler_System_Version): Removed, no longer used.
16421 Clean up system files by removing flags only used on a single target.
16422 Also remove obsolete flags, only used during bootstrap from system.ads
16423 (Address): Add a pragma Preelaborable_Initialization.
16424
16425 * system-aix.ads: Ditto.
16426 (GCC_ZCX_Support): Set to true.
16427 Update priority range on AIX and map Ada priorities to target
16428 priorities appropriately for different scheduling policies.
16429
16430 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
16431
16432 2007-06-06 Vincent Celier <celier@adacore.com>
16433
16434 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
16435 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
16436
16437 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
16438 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
16439 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
16440 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
16441 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
16442 MLib.Tgt, containing the default versions of the exported subprograms.
16443 For each platform, create a specific version of the body of new child
16444 package MLib.Tgt.Specific that contains only the body of subprograms
16445 that are different from the default.
16446 (Archive_Builder_Append_Options): New function.
16447
16448 2007-06-06 Matthew Gingell <gingell@adacore.com>
16449
16450 * s-osinte-aix.adb: Map Ada priorities to target priorities
16451 appropriately for different scheduling policies.
16452
16453 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16454
16455 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
16456 its C counterpart.
16457 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
16458 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
16459
16460 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
16461
16462 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
16463 Noop on VMS, added for interface commonality.
16464
16465 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
16466 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16467 Olivier Hainque <hainque@adacore.com>
16468
16469 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
16470 renamed expression of a full renaming at toplevel.
16471 (gnat_to_gnu_entity, case object): If not defining, do not look inside
16472 the values the constant is initialized to if it is an N_Allocator.
16473 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
16474 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
16475 (make_aligning_type): Accept an extra ROOM argument for storage to be
16476 made available before the aligned field, and an extra BASE_ALIGN
16477 argument for callers to pass the alignment guaranteed to be honored for
16478 the whole aligning object. Avoid call to finish_record_type, which only
16479 interferes with the sizes we want to set.
16480 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
16481 make_aligning_type for super-aligned objects on stack.
16482 (components_to_record): Pass the adjusted size of the type when creating
16483 fields in the qualified union for the variant part.
16484 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
16485 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
16486 packed array type.
16487 (maybe_pad_type): Set TYPE_USER_ALIGN.
16488 (make_aligning_type): Likewise.
16489 ALIGN argument is unsigned int.
16490 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
16491 (gnat_to_gnu_param): Likewise, for parameters.
16492 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
16493 if it is constant and stems from a function call.
16494 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
16495 of the record is specified. Adjust accordingly.
16496 (adjust_packed): New static function.
16497 (gnat_to_gnu_field): Use it to adjust the packedness setting.
16498 (components_to_record): Likewise.
16499 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
16500 side-effects if the object is deemed constant.
16501 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
16502 type instead of merely finalizing it. Tidy.
16503 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
16504 <E_Access_Type>: Likewise.
16505 (defer_debug_incomplete_list): Rename to defer_finalize_list.
16506 (defer_debug_level): Delete.
16507 (gnat_to_gnu_entity) <debug_deferred>: Likewise
16508 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
16509 type.
16510 <E_Record_Type>: Do not explicitly defer finalizing the type.
16511 Adjust for write_record_type_debug_info renaming.
16512 <E_Subprogram_Type>: Likewise.
16513 Finalize deferred types right after deferred incomplete types are
16514 expanded.
16515 (rest_of_type_decl_compilation): New global function.
16516 (components_to_record): Rename defer_debug parameter to do_not_finalize.
16517 (components_to_record): Propagate the packedness to the fields of the
16518 qualified union type if there is a variant part.
16519 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
16520 instead of inline code to adjust the XUT field offsets.
16521 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
16522 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
16523 and write the debug info if the type derives from a discriminated one.
16524 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
16525 <E_Array_Subtype>: Likewise.
16526 <E_String_Literal_Subtype>: Likewise.
16527 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
16528 an alignment clause.
16529 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
16530 before giving warning.
16531 (prepend_one_attribute_to): New function, helper to prepend an attribute
16532 to an attribute list.
16533 (gnat_to_gnu_entity) <E_Procedure>: Use it.
16534 (prepend_attributes): Likewise.
16535 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
16536 <E_Array_Type>: Declare the padding type for the element type, if any.
16537 <E_Array_Subtype>: Likewise.
16538 (defer_limited_with): New variable.
16539 (Gigi_Equivalent_Type): New function.
16540 (gnat_to_gnu_entity): Use it at start and use result throughout.
16541 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
16542 Gigi_Equivalent_Type, support Limited_With, allow two levels of
16543 indirection, precompute if unconstrained array to simplify logic, and
16544 use defer_limited_with to defer elaboration of some types from limited
16545 with.
16546 (finalize_from_with_types): New function.
16547
16548 2007-06-06 Gary Dismukes <dismukes@adacore.com>
16549 Eric Botcazou <ebotcazou@adacore.com>
16550 Tristan Gingold <gingold@adacore.com>
16551 Olivier Hainque <hainque@adacore.com>
16552
16553 * trans.c (Identifier_to_gnu): Change test for deferred constant by
16554 adding guard that the entity is an E_Constant before testing presence
16555 of Full_view (and remove unnecessary test that entity is not a type).
16556 For a CONST_DECL used by reference, manually retrieve
16557 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
16558 (struct language_function): Move from utils.c to here.
16559 (struct parm_attr): New structure.
16560 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
16561 (f_parm_attr_cache): New macro.
16562 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
16563 expressions for the 'First, 'Last and 'Length attributes of the
16564 unconstrained array IN parameters.
16565 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
16566 Allocate the information structure for the function earlier, as well
16567 as the language-specific part.
16568 If the parameter attributes cache has been populated, evaluate the
16569 cached expressions on entry.
16570 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
16571 N_Procedure_Call_Statement and N_Indexed_Component.
16572 (Pragma_to_gnu): Translate inspection_point to an asm statement
16573 containaing a comment and a reference to the object (either its address
16574 for BLKmode or its value).
16575 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
16576 to go to DECL_INITIAL. Together with the size constraint relaxation
16577 in create_var_decl, enlarges the set of situations in which an
16578 identifier may be used as an initializer without implying elaboration
16579 code.
16580 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
16581 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
16582 node.
16583 (maybe_stabilize_reference): Remove lvalues_only parameter.
16584 (gnat_stabilize_reference): Adjust for above change.
16585 (gnat_to_gnu): Do not set location information on the result
16586 if it is a reference.
16587 (add_cleanup): Add gnat_node parameter and set the location of the
16588 cleanup to it.
16589 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
16590 (Exception_Handler_to_gnu_zcx): Likewise.
16591 (gigi): Remove the cgraph node if the elaboration procedure is empty.
16592 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
16593 the former right after the latter.
16594 (start_stmt_group): Make global.
16595 (end_stmt_group): Likewise.
16596 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
16597 vars.
16598 (gnu_program_error_label_stack): Likewise.
16599 (gigi): Initialize them.
16600 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
16601 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
16602 New cases.
16603 (push_exception_label_stack): New function.
16604 (takes_address): New function.
16605
16606 * utils.c (struct language_function): Move to trans.c from here.
16607 (unchecked_convert): Do not wrap up integer constants in
16608 VIEW_CONVERT_EXPRs.
16609 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
16610 the latter for aggregate types, unexpected by later passes, and relax an
16611 arbitrary size constraint on the former.
16612 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
16613 to compare the sizes.
16614 (convert_vms_descriptor): When converting to a fat pointer type, be
16615 prepared for a S descriptor at runtime in spite of a SB specification.
16616 (shift_unc_components_for_thin_pointers): New function.
16617 (write_record_type_debug_info): For variable-sized fields, cap the
16618 alignment of the pointer to the computed alignment.
16619 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
16620 If REP_LEVEL is 2, do not compute the sizes.
16621 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
16622 (build_unc_object_type): Likewise.
16623 (declare_debug_type): New function.
16624
16625 * ada-tree.def: USE_STMT: removed (not emitted anymore).
16626
16627 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
16628 no statement is expandable anymore.
16629 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
16630 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
16631 when the user requested it explicitely.
16632 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
16633 to 0 for Ada.
16634 (get_alias_set): Return alias set 0 for a type if
16635 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
16636
16637 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
16638 (DECL_FUNCTION_STUB): New accessor macro.
16639 (SET_DECL_FUNCTION_STUB): New setter macro.
16640
16641 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
16642
16643 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
16644 declarations.
16645
16646 2007-06-06 Jose Ruiz <ruiz@adacore.com>
16647
16648 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
16649 Rename to Abort_Task_Interrupt to be able to keep the same interface
16650 as the rest of the targets.
16651
16652 * s-osinte-vxworks.ads s-osinte-vxworks.adb
16653 (To_VxWorks_Priority): Remove explicit "in" mode indicator
16654
16655 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
16656 New files.
16657
16658 2007-06-06 Robert Dewar <dewar@adacore.com>
16659
16660 * a-chahan.ads: Remove obsolescent pragmas
16661
16662 * a-chlat1.ads: Minor reformatting
16663
16664 2007-06-06 Robert Dewar <dewar@adacore.com>
16665
16666 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
16667 for Errout
16668
16669 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
16670 implementation
16671
16672 * errout.ads (Finalize): Changed interface
16673 (Output_Messages): New procedure
16674 (Compilation_Errors): New Interface
16675
16676 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
16677 Finalize/Output_Messages interface for Errout
16678 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
16679 Errout.
16680
16681 2007-06-06 Thomas Quinot <quinot@adacore.com>
16682 Olivier Hainque <hainque@adacore.com>
16683 Robert Dewar <dewar@adacore.com>
16684
16685 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
16686 check.
16687 (Raise_Current_Excep): Call Debug_Raise_Exception just before
16688 propagation starts, to let debuggers know about the event in a reliable
16689 fashion.
16690 (Local_Raise): Moved to System.Exceptions
16691 More convenient to have this as a separate unit
16692
16693 * s-except.adb, s-except.ads: New files.
16694
16695 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
16696 Debug_Unhandled_Exception in System.Exceptions where it belongs
16697 together with a couple of other debug helpers.
16698 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
16699 the former Unhandled_Exception.
16700
16701 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
16702 (Warn_No_Exception_Propagation): New procedure
16703 (Warn_If_No_Propagation): Rewritten for new warning generation
16704 (Expand_Exception_Handlers): New warning generation
16705 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
16706 (Add_Exception_Label): Use Special_Exception_Package_Used for test
16707 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
16708 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
16709 even if restriction is set (makes life easier in Check_Returns)
16710 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
16711 checking exception identities.
16712 (Expand_Local_Exception_Handlers): Do not optimize when all others case
16713 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
16714 block for handler (used by Check_Returns)
16715 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
16716 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
16717 remove all exception handlers when optimizing local raise statements.
16718 (Find_Local_Handler): Use Get_Renamed_Entity
16719 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
16720 marked analyzed after expanding exception handlers, do not generate
16721 redundant cleanup actions, because they have been constructed already.
16722
16723 2007-06-06 Thomas Quinot <quinot@adacore.com>
16724
16725 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
16726 presence of this categorization pragma is mandated by the language.
16727 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
16728 for this type.
16729
16730 2007-06-06 Vincent Celier <celier@adacore.com>
16731 Robert Dewar <dewar@adacore.com>
16732
16733 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
16734 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
16735 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
16736 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
16737 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
16738 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
16739 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
16740 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
16741 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
16742 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
16743 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
16744 ali.ads, ali.adb:
16745 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
16746 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
16747 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
16748 Use variables of types File_Name_Type and Unit_Name_Type in error
16749 messages.
16750 (Get_Name): Add parameter Ignore_Special, and set it reading file name
16751 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
16752 here.
16753 Define flags Flag217-Flag230 with associated subprograms
16754 (Flag_Word5): New record type.
16755 (Flag_Word5_Ptr): New access type.
16756 (To_Flag_Word5): New unchecked conversion.
16757 (To_Flag_Word5_Ptr): Likewise.
16758 (Flag216): New function.
16759 (Set_Flag216): New procedure.
16760
16761 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16762
16763 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
16764 instead of 'Size.
16765
16766 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
16767
16768 2007-06-06 Javier Miranda <miranda@adacore.com>
16769
16770 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
16771 the package.
16772 (Object_Specific_Data_Array): This is now internal to the package.
16773 (Object_Specific_Data): This is now internal to the package.
16774 (Select_Specific_Data_Element): This is now internal to the package.
16775 (Select_Specific_Data_Array): This is now internal to the package.
16776 (Select_Specific_Data): This is now internal to the package.
16777 (Offset_To_Top_Function_Ptr): This is now public.
16778 (To_Offset_To_Top_Function_Ptr): Removed.
16779 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
16780 local to subprogram Offset_To_Top.
16781 (Predefined_DT): Removed.
16782 (Typeinfo_Ptr): Removed.
16783 (OSD): This function is now internal to this package.
16784 (SSD): This function is now internal to this package.
16785 (DT): New function that displaces the pointer to the table of primitives
16786 to get access to the enclosing wrapper record.
16787 (IW_Membership): Code cleanup.
16788 (Offset_To_Top): Code cleanup.
16789 (Predefined_DT): Removed.
16790 (Register_Interface_Tag): Removed.
16791 (Set_Interface_Table): Removed.
16792 (Set_Offset_Index): Removed.
16793 (Set_Offset_To_Top): Code cleanup.
16794 (Set_OSD): Removed.
16795 (Set_Signature): Removed.
16796 (Set_SSD): Removed.
16797 (Set_Tagged_Kind): Removed.
16798 (Typeinfo_Ptr): Removed.
16799 (TSD): Removed.
16800 (Displace): Add missing check on null actual.
16801
16802 * exp_disp.ads, exp_disp.adb
16803 (Select_Expansion_Utilities): Removed.
16804 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
16805 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
16806 the interface requires a new parameter.
16807 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16808 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
16809 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
16810 Done to remove package Select_Expansion_Utilities.
16811 (Make_DT): New implementation for statically allocated dispatch tables.
16812 (Make_Secondary_DT): Moved to the scope of Make_DT.
16813 (Register_Primitive): Code cleanup plus incoporate the use of the new
16814 function DT_Address_Attribute.
16815 (Expand_Interface_Thunk): The profile of this subprogram has been
16816 changed to return the Thunk_Id and the corresponding code.
16817 (Fill_DT_Entry): Removed. Its functionality is now provided by
16818 subprogram Register_Primitive.
16819 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
16820 subprogram Register_Primitive.
16821 (Register_Primitive): New subprogram that incorporates the previous
16822 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
16823 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
16824 was only required to call Make_DT_Access_Action, which is now removed.
16825 (Ada_Actions): Removed
16826 (Action_Is_Proc): Removed
16827 (Action_Nb_Arg): Removed
16828 Replace all the calls to Make_DT_Access_Action by direct calls to
16829 Make_Procedure_Call_Statement or Make_Function_Call.
16830 (Set_DTC_Entity_Value): New subprogram.
16831 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
16832 (Expand_Interface_Thunk): Add missing support for primitives that are
16833 functions with a controlling result (case in which there is no need
16834 to generate the thunk).
16835
16836 * exp_atag.ads, exp_atag.adb
16837 (Build_DT): New subprogram that displaces the pointer to reference the
16838 base of the wrapper record.
16839 (Build_Typeinfo_Offset): Removed.
16840 (RTE_Tag_Node): Removed.
16841 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
16842 (Build_Get_RC_Offset): Removed.
16843 (Build_Inherit_Predefined_Prims): Removed.
16844 (Build_Inherit_TSD: Removed.
16845 (Build_New_TSD): Removed.
16846 (Build_Set_External_Tag): Removed.
16847 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
16848 (Build_Set_Prim_Op_Address): Add documentation.
16849 (Build_Set_TSD): Removed.
16850
16851 * rtsfind.ads, rtsfind.adb
16852 (Load_Fail): If load fails and we are not in configurable run-time
16853 mode, then raise Unrecoverable_Error.
16854 (Text_IO_Kludge): Generate an error message if a run-time library is
16855 not available in a given run-time (ie. zfp run-time).
16856 (RTE_Record_Component): Add code to check that the component we search
16857 for is not found in two records in the given run-time package.
16858 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
16859 (RE_DT_Predef_Prims_Offset): New entity
16860 (RE_Static_Offset_To_Top): New entity
16861 (RE_HT_Link): New entity.
16862 (System_Address_Image): Addition of this run-time package.
16863 (RE_Address_Image): New entity.
16864 (RE_Abstract_Interface): Removed.
16865 (RE_Default_Prim_Op_Count): Removed.
16866 (RE_DT_Entry_Size): Removed.
16867 (RE_DT_Min_Prologue_Size): Removed.
16868 (RE_DT_Prologue_Size): Removed.
16869 (RE_Ifaces_Table_Ptr): Removed.
16870 (RE_Interface_Data_Ptr): Removed.
16871 (RE_Type_Specific_Data): Removed.
16872 (RE_Primary_DT): Removed.
16873 (RE_Register_Interface_Tag): Removed.
16874 (RE_Set_Offset_Index): Removed.
16875 (RE_Set_OSD): Removed.
16876 (RE_Set_SSD): Removed.
16877 (RE_Set_Signature): Removed.
16878 (RE_Set_Tagged_Kind): Removed.
16879 (RE_Address_Array): New entity.
16880 (RE_DT): New entity.
16881 (RE_Iface_Tag): New entity.
16882 (RE_Interfaces_Table): New entity.
16883 (RE_No_Dispatch_Table): New entity.
16884 (RE_NDT_Prims_Ptr): New entity.
16885 (RE_NDT_TSD): New entity.
16886 (RE_Num_Prims): New entity.
16887 (RE_Offset_To_Top_Function_Ptr): New entity.
16888 (RE_OSD_Table): New entity.
16889 (RE_OSD_Num_Prims): New entity.
16890 (RE_Predef_Prims): New entity
16891 (RE_Predef_Prims_Table_Ptr): New entity.
16892 (RE_Primary_DT): New entity.
16893 (RE_Signature): New entity.
16894 (RE_SSD): New entity.
16895 (RE_TSD): New entity.
16896 (RE_Type_Specific_Data): New entity.
16897 (RE_Tag_Kind): New entity.
16898
16899 2007-06-06 Thomas Quinot <quinot@adacore.com>
16900
16901 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
16902 C imported variable.
16903 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
16904 on entry.
16905
16906 2007-06-06 Robert Dewar <dewar@adacore.com>
16907
16908 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
16909 character
16910
16911 2007-06-06 Vincent Celier <celier@adacore.com>
16912
16913 * a-tifiio.adb (Put, internal): For negative numbers, check that there
16914 is room for at least one digit and the minus sign.
16915 (Put.Put_Character): Never put a character outside of the range of
16916 string To.
16917
16918 2007-06-06 Olivier Hainque <hainque@adacore.com>
16919 Eric Botcazou <ebotcazou@adacore.com>
16920
16921 * utils2.c (build_allocator): Provide the extra arguments to
16922 make_aligning_type for super-aligned objects allocated from the default
16923 pool. Leave enough room for a pointer before the aligning field, and
16924 store the system's allocator return value there.
16925 (build_call_alloc_dealloc): When releasing a super-aligned object,
16926 retrieve the system's allocator return value from where build_allocator
16927 has stored it, just ahead of the adjusted address we are passed.
16928 (build_call_raise): Handle properly the generation of line numbers when
16929 the node is marked No_Location.
16930 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
16931 by using DECL_UID on ties.
16932 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
16933 main variant.
16934 (build_call_raise): Handle converting exception into goto; support new
16935 argument KIND.
16936 (build_component_ref): Add new arg to build_call_raise.
16937
16938 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16939
16940 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
16941 "." in the case of nnn.xxx when nnn terminates with an underscore.
16942 Parse the remaining "#" or ":" in the case of nnn#.xxx#
16943
16944 2007-06-06 Robert Dewar <dewar@adacore.com>
16945
16946 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
16947
16948 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16949 Vincent Celier <celier@adacore.com>
16950 Robert Dewar <dewar@adacore.com>
16951
16952 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
16953 needed.
16954 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
16955 ((destructor)) for adafinal, even when switch -a is used.
16956 Do not issue pragma Linker_Destructor for adafinal when switch -a is
16957 used.
16958 (Gen_Object_Files_Options): Add formatting of Linker Options, when
16959 Output_Linker_Option_List is set. Suppress this formatting when
16960 Zero_Formatting is set.
16961 Add case for CLI_Target.
16962 (System_Restrictions_Used): New flag, used to avoid generating with of
16963 System_Restrictions and initialization of the data unless there is
16964 some use of System.Restrictions in the partition.
16965 (Check_System_Restrictions_Used): New procedure
16966
16967 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
16968 since we only with this unit in the binder file if it is used elsewhere
16969 in the partition.
16970
16971 2007-06-06 Vincent Celier <celier@adacore.com>
16972
16973 * bindusg.adb: Add line for @<response file>
16974 Add lines for new switches -R and -Z
16975
16976 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
16977 hierarchy in the list of files of the closure when -R is used
16978 (Gnatbind): Accept arguments starting with '@' to indicate response
16979 files and take the arguments from the response files.
16980 If List_Closure is set, display the referenced files
16981
16982 2007-06-06 Javier Miranda <miranda@adacore.com>
16983 Robert Dewar <dewar@adacore.com>
16984 Ed Schonberg <schonberg@adacore.com>
16985
16986 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
16987 which the address-clause is applied to in-mode actuals (allowed by
16988 13.1(22)).
16989 (Apply_Discriminant_Check): Do not generate a check if the type is
16990 constrained by a current instance.
16991 (Activate_Division_Check): New procedure
16992 (Activate_Overflow_Check): New procedure
16993 (Activate_Range_Check): New procedure
16994 Call these new Activate procedures instead of setting flags directly
16995 (Apply_Array_Size_Check): Removed, no longer needed.
16996 Code clean up: remove obsolete code related to GCC 2.
16997 (Get_E_Length): Protect against bomb in case scope is standard
16998 (Selected_Range_Checks): If the node to be checked is a conversion to
16999 an unconstrained array type, and the expression is a slice, use the
17000 bounds of the slice to construct the required constraint checks.
17001 Improve NOT NULL error messages
17002 (Apply_Constraint_Check): If the context is a null-excluding access
17003 type, diagnose properly the literal null.
17004
17005 2007-06-06 Pascal Obry <obry@adacore.com>
17006
17007 * clean.adb (Clean_Archive): Use untouched casing for the archive name
17008 and the corresponding .deps file.
17009 (Clean_Interface_Copy_Directory): Use untouched casing for the library
17010 src directory. Minor code-clean-up. Use untouched casing for files
17011 read into the library src dir.
17012 (Clean_Library_Directory): Idem.
17013 (Parse_Cmd_Line): Accept new switch -aP
17014
17015 2007-06-06 Javier Miranda <miranda@adacore.com>
17016 Ed Schonberg <schonberg@adacore.com>
17017 Robert Dewar <dewar@adacore.com>
17018 Eric Botcazou <ebotcazou@adacore.com>
17019 Arnaud Charlet <charlet@adacore.com>
17020
17021 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
17022 applicable to types that have the With_Type flag set. Returns the
17023 non-limited view of the type, if available, otherwise the type itself.
17024 For class-wide types, there is no direct link in the tree, so we have
17025 to retrieve the class-wide type of the non-limited view of the Etype.
17026 New attributes Static_Initialization and Static_Elaboration_Desired.
17027 Remove the pragma Thread_Body, and the associated flag
17028 Is_Thread_Body in entities, and all related code.
17029 (Suppress_Value_Tracking_On_Call): New flag
17030 E_Exception has Esize and Alignment fields
17031 (Universal_Aliasing): New function.
17032 (Set_Universal_Aliasing): New procedure.
17033 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
17034 (Check_Nested_Access): New procedure.
17035 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17036 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17037 (Related_Interface): New attribute. Present in dispatch table pointer
17038 components of records. Set to point to the entity of the corresponding
17039 interface type.
17040 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
17041 (Original_Access_Type): Remove, not needed.
17042 (Root_Type): Handle properly subtypes of class-wide-types.
17043 Update comments.
17044
17045 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
17046 class-wide types visible through limited-with clauses.
17047 (Try_Primitive_Operation): When examining all primitive operations of a
17048 tagged type, do not consider subprograms labeled as hidden unless they
17049 belong to a private generic type with a tagged parent.
17050 (Try_Object_Operation): Extensive rewriting, to handle properly various
17051 overloading cases, when several ancestors may have class-wide operations
17052 that are possible candidates, and when the overloaded functions return
17053 array types and have defaulted parameters so that the call may be
17054 interpreted as an indexing.
17055 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
17056 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
17057 successive actuals before analyzing the call itself.
17058 (Try_Primitive_Operation): A primitive operation is compatible with the
17059 prefix if the prefix has a synchronized type and the type of the formal
17060 is its corresponding record, as can be the case when the primitive
17061 operation is declared outside of the body of the type.
17062 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
17063 perform homonym traversal, looking for class-wide operation matches
17064 (formerly done in statements of Try_Class_Wide_Operation). Matches on
17065 access parameters are now restricted to anonymous access types.
17066 (Mark_Allocator): An allocator with a discriminant association parent is
17067 a coextension.
17068 (Try_One_Prefix_Interpretation): If the type of the object is
17069 incomplete, as can be happen when it is a limited view obtained through
17070 a limited_with_clause, the selected component is not part of a prefixed
17071 call.
17072 (Complete_Object_Operation): Diagnose properly an object that is not
17073 aliased when the corresponding controlling formal is an access
17074 parameter.
17075 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
17076 ambiguous calls in prefixed notation, where two primitives differ only
17077 in that the controlling argument of one is an access parameter.
17078
17079 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
17080 whether a function that returns an unconstrained type can be inlined.
17081 (Process_Formals): Diagnose properly the illegal use of an incomplete
17082 type in the profile of an access_to_subprogram declaration.
17083 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
17084 operations are attached to the corresponding record.
17085 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
17086 When processing a primitive of a concurrent type which implements an
17087 interface change the type of all controlling formals to that of the
17088 corresponding record type.
17089 (Check_Synchronized_Overriding): Relax the conditional logic when trying
17090 to determine the tagged type to which a primitive belongs.
17091 (Check_Conventions): Capture condition to ignore a primitive operation
17092 (which is shared between the loop in Check_Conventions and the one in
17093 Check_Convention) in a new local function Skip_Check.
17094 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
17095 confusion with Check_Conventions' own Prim_Op local variable.
17096 (Create_Extra_Formals): Test for a tagged result type rather than a
17097 controlling result when determining whether to add a BIP_Alloc_Form
17098 formal and a BIP_Final_List formal to the function.
17099 (Check_Conformance); For parameters that are anonymous access types,
17100 subtype conformance requires that the not null and the constant
17101 indicators must match
17102 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
17103 to retrieve the appropriate type when processing a concurrent type
17104 declared within a generic. Minor comment reformatting. Change invocation
17105 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
17106 mitive.
17107 (Analyze_Subprogram_Body): If the return type of a function is an
17108 anonymous access to the limited view of a class-wide type, and the
17109 non-limited view of the type is available, update the type of the
17110 function so that code can be generated.
17111 (Process_Formals): In case of access-subtype itype whose designated
17112 type is also an itype (situation that happens now with access to
17113 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
17114 attribute to avoid backend problems.
17115 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
17116 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
17117 anonymous types' designated types are same before testing
17118 Subtypes_Statically_Match.
17119 (Create_Extra_Formals): Test for a named access parameter that is a
17120 controlling formal as an additional condition for adding an
17121 accessibility level formal. This can occur in the subp type created for
17122 dispatching calls in Expand_Dispatching_Call, and allows calling
17123 Create_Extra_Formals from that procedure rather than special-casing the
17124 extra formals there.
17125 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
17126 when the function has a controlling result.
17127 (Check_Returns): Add much more knowledge of the optimization of local
17128 raise statements to gotos, to retain proper warnings in this case.
17129 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
17130 nodes when looking for last statement.
17131
17132 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
17133 class-wide types visible through limited with clauses.
17134 (Add_One_Interp): If the operands are anonymous access types, the
17135 predefined operator on universal_access is immediately visibles
17136 (Find_Unique_Type): Handle anonymous access to subprogram types just as
17137 other anonymous access types.
17138 (Disambiguate): Take into account CIL convention.
17139 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
17140
17141 2007-06-06 Robert Dewar <dewar@adacore.com>
17142
17143 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
17144 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
17145 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
17146 Fix lower bound of tables.
17147 Add rep clauses.
17148
17149 * nlists.adb: Ditto.
17150 (Prev_Node, Next_Node): Change index type to Int so that it properly
17151 covers the range First_Node_Id - 1 up.
17152
17153 2007-06-06 Javier Miranda <miranda@adacore.com>
17154 Ed Schonberg <schonberg@adacore.com>
17155 Bob Duff <duff@adacore.com>
17156 Hristian Kirtchev <kirtchev@adacore.com>
17157
17158 * exp_aggr.ads, exp_aggr.adb:
17159 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
17160 in extension aggregates.
17161 (Flatten): Other conditions being met, an aggregate is static if the
17162 low bound given by component associations is different from the low
17163 bound of the base index type.
17164 (Packed_Array_Aggregate_Handled): If the component type is itself a
17165 packed array or record, the front-end must expand into assignments.
17166 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
17167 Init_Pr, instead of Ancestor_Is_Expression.
17168 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
17169 coextension chain root, either generate a list controller or use the
17170 already existing one.
17171 (Static_Array_Aggregate): New procedure to construct a positional
17172 aggregate that can be handled by the backend, when all bounds and
17173 components are compile-time known constants.
17174 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
17175 types covering interface types into assignments.
17176 (Replace_Type): move to Build_Record_Aggr_Code.
17177 (Expand_Record_Aggr_Code): if the target of the aggregate is an
17178 interface type, convert to the definite type of the aggregate itself,
17179 so that needed components are visible.
17180 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
17181 components and the context is an extended return statement do not
17182 create a transient block for it, to prevent premature finalization
17183 before the return is executed.
17184 (Gen_Assign): Do not generate a call to deep adjust routine if the
17185 component type is itself an array of controlled (sub)-components
17186 initialized with an inner aggregate.
17187 (Component_Check): New name for Static_Check. This name is now more
17188 appropriate, and documentation is added which was missing.
17189 (Component_Check): Add test for bit aligned component value
17190 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
17191 Tagged_Comps, name is more appropriate given added function below.
17192 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
17193
17194 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17195 Javier Miranda <miranda@adacore.com>
17196 Robert Dewar <dewar@adacore.com>
17197
17198 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
17199 Terminated: Add unchecked type conversion from System.Address to
17200 System.Tasking.Task_Id when calling the predefined primitive
17201 _disp_get_task_id.
17202 Disable new Ada 05 accessibility check for JVM.NET targets, which
17203 cannot be implemented in a practical way.
17204 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
17205 the sources always references the tag of the actual object. Therefore,
17206 if 'Tag is applied in the sources to class-wide interface objects we
17207 generate code that displaces "this" to reference the base of the object.
17208 (Expand_N_Attribute_Reference, case Size): Return specified size if
17209 known to front end.
17210 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
17211 has code that displaces the pointer of the object to manage interface
17212 types. However this code must not be executed when the prefix is a
17213 subprogram. This bug caused the wrong expansion of the internally
17214 generated assignment that fills the dispatch table when the primitive
17215 is a function returning a class-wide interface type.
17216 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
17217 Set_Attribute_Name for Name_Unaligned_Valid.
17218
17219 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17220 Gary Dismukes <dismukes@adacore.com>
17221
17222 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
17223 If the initialization is the equivalent aggregate of the initialization
17224 procedure of the type, do not remove it.
17225 (Expand_N_Attribute_Definition_Clause): Exclude access variables
17226 initialized to null from having their expression reset to empty and
17227 note this exception in the comment.
17228
17229 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17230 Robert Dewar <dewar@adacore.com>
17231 Ed Schonberg <schonberg@adacore.com>
17232 Gary Dismukes <dismukes@adacore.com>
17233
17234 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
17235 Add "with" and "use" clauses for Sem_Attr.
17236 (Expand_Current_Value): Do not replace occurences of attribute
17237 references where the prefix must be a simple name.
17238
17239 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
17240 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
17241 Attribute_Requires_Simple_Name_Prefix.
17242 (Name_Modifies_Prefix): Body of new function.
17243 (Requires_Simple_Name_Prefix): Body of new function.
17244 (Resolve_Attribute, case Access): Improve error message for case of
17245 mismatched conventions.
17246 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
17247 incomplete type.
17248 (Analyze_Attribute, case 'Access): If the type of the prefix is a
17249 constrained subtype for a nominal unconstrained type, use its base type
17250 to check for conformance with the context.
17251 (Resolve_Attribute): Remove test of the access type being associated
17252 with a return statement from condition for performing accessibility
17253 checks on access attributes, since this case is now captured by
17254 Is_Local_Anonymous_Access.
17255 (Analyze_Access_Attribute): Set Address_Taken on entity
17256 (Analyze_Attribute, case Address): Set Address_Taken on entity
17257 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
17258 validating an access attribute whose prefix is a current instance.
17259 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
17260 applied to dispatching operations, if freezing is required then we set
17261 the attribute Has_Delayed_Freeze in the prefix's entity.
17262 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
17263 current scope if access of local subprogram taken
17264 (Analyze_Access_Attribute): Check legality of self-reference even if the
17265 expression comes from source, as when a single component association in
17266 an aggregate has a box association.
17267 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
17268 the prefix if it is a protected operation and the attribute is
17269 Unrestricted_Access.
17270 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
17271 reference to the base type of the context, to force a constraint check
17272 when the context is an access subtype with an explicit constraint.
17273 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
17274 node is rewritten as an interface conversion. leave unanalyzed after
17275 resolution, to ensure that type checking against the context will take
17276 place.
17277
17278 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17279 Javier Miranda <miranda@adacore.com>
17280 Robert Dewar <dewar@adacore.com>
17281
17282 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
17283 wrapper when the full view of the controlling type of an inherited
17284 function that dispatches on result implements interfaces.
17285 (Expand_N_Object_Declaration): In cases where the type of the
17286 declaration is anonymous access, create finalization list for it.
17287 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
17288 if the object has no explicit initialization, to match description of
17289 functionality of pragam Persistent_BSS.
17290 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
17291 new function to build static aggregates, to replace initialization call
17292 when static initialization is desired.
17293 (Freeze_Type): Generate a list controller for an access type whenever
17294 its designated type has controlled anonymous access discriminants.
17295 (Build_Equivalent_Aggregate): New procedure to compute a static
17296 aggregate to be used as default initialization for composite types,
17297 instead of a generating a call to the initialization procedure for the
17298 type.
17299 (Build_Initialization_Call): When available, replace a call to the
17300 initialization procedure with a copy of the equivalent static aggregate
17301 for the type.
17302 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
17303 declarations for objects of a class-wide interface type, rather than
17304 just identifiers, to prevent visibility problems.
17305 (Expand_N_Object_Declaration): When expanding the declaration for an
17306 object of a class-wide interface type, preserve the homonym chain of
17307 the original entity before exchanging it with that of the generated
17308 renaming declaration.
17309 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
17310 active, because there is no way to handle the exception.
17311 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
17312 to do a minimum decoration of the Access_Disp_Table list.
17313 (Expand_Record_Controller): Avoid the addition of the controller between
17314 the component containing the tag of a secondary dispatch table and its
17315 adjacent component that stores the offset to the base of the object.
17316 This latter component is only generated when the parent type has
17317 discriminants ---documented in Add_Interface_Tag_Components).
17318 (Apply_Array_Size_Check): Removed, no longer needed.
17319 (Expand_N_Full_Type_Declaration): If the type has anonymous access
17320 components, create a Master_Entity for it only if it contains tasks.
17321 (Build_Init_Procedure): Suppress the tag assignment compiling under
17322 no run-time mode.
17323 (Freeze_Record_Type): Remove code associated with creation of dispatch
17324 table.
17325 (Init_Secondary_Tags): Update type of actuals when generating calls to
17326 Ada.Tags.Set_Offset_To_Top
17327 (Stream_Operation_OK): Disable use of streams compiling under no
17328 run-time mode
17329 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
17330 if Has_Init_Expression set.
17331 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
17332 Register_Primitive, which provides the same functionality.
17333 (Requires_Init_Proc): Return false in case of interface types.
17334 (Add_Secondary_Tables): Use the new attribute Related_Interface to
17335 cleanup the code.
17336 (Predefined_Primitive_Freeze): Do not assume that an internal entity
17337 is always associated with a predefined primitive because the internal
17338 entities associated with interface types are not predefined primitives.
17339 Therefore, the call to Is_Internal is replaced by a call to the
17340 function Is_Predefined_Dispatching_Operation.
17341 (Make_Eq_If): When generating the list of comparisons for the
17342 components of a given variant, omit the controller component that is
17343 present if the variant has controlled components.
17344
17345 2007-06-06 Javier Miranda <miranda@adacore.com>
17346 Hristian Kirtchev <kirtchev@adacore.com>
17347 Bob Duff <duff@adacore.com>
17348
17349 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
17350 handle the creation of finalization lists and calls for nested
17351 coextensions when the root of the chains is part of a return statement.
17352 (Inside_A_Return_Statement): New function inside Complete_Coextension_
17353 Finalization.
17354 (Expand_Record_Equality): Skip components that are interface types.
17355 (Displace_Allocator_Pointer): Add missing support for interface subtypes
17356 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
17357 with Rewrite_Coextension. Change the condition for detecting coextension
17358 root nodes.
17359 (Is_Local_Access_Discriminant): Removed.
17360 (Rewrite_Coextension): New routine which rewrites a static coextension
17361 as a temporary and uses its unrestricted access in the construction of
17362 the outer object.
17363 (Complete_Coextension_Finalization): New routine. Generate finalization
17364 attachment calls to all delayed coextensions.
17365 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
17366 the allocator is not a coextension itself and has delayed coextensions.
17367 If the current allocator is controlled, but also a coextension, delay
17368 the generation of the finalization attachment call.
17369 Rename local variable "Node" to "Nod" in order to avoid confusion with
17370 "Elists.Node".
17371 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
17372 limited types that are not inherently limited. Such an allocator is
17373 illegal, but is generated by the expander for a return statement, to
17374 copy the result onto the secondary stack. This is the only case where a
17375 limited object can be copied. Generate code to displace the pointer
17376 to the object if the qualified expression is a class-wide interface
17377 object. Such displacement was missing and hence the copy of the object
17378 was wrong.
17379 (Apply_Accessibility_Check): Handle allocated objects initialized in
17380 place.
17381 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
17382 and Expand_Allocator_Expression. Allocating class-wide interface objects
17383 this routine displaces the pointer to the allocated object to reference
17384 the component referencing the corresponding secondary dispatch table.
17385 Expand_Allocator_Expression): Add missing support to allocate class-wide
17386 interface objects initialized with a qualified expression.
17387 (Get_Allocator_Final_List): Test for an anonymous access type that is a
17388 function result type, and use the finalization list associated with the
17389 function scope in that case (such an anonymous type should not be
17390 treated like an access parameter's type).
17391
17392 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17393 Gary Dismukes <dismukes@adacore.com>
17394 Javier Miranda <miranda@adacore.com>
17395
17396 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
17397 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
17398 required exception handler.
17399 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
17400 properly the case of a function whose return type is a limited
17401 class-wide interface type. Modify the code of the accessibility
17402 check to handle class-wide interface objects. In this case we need to
17403 displace "this" to reference the primary dispatch table to get access
17404 to the TSD of the object (to evaluate its accessibility level).
17405 (Expand_N_Extended_Return_Statement): Test for a tagged result type
17406 rather than a controlling result as one of the conditions for
17407 generating tests of the implicit BIP_Alloc_Form formal. The
17408 initialization assignment is also handled according to whether the
17409 result is tagged instead of controlling.
17410 In the case where the init assignment is inserted in the "then" part of
17411 the allocation conditional, rewrite the target to be a dereference of
17412 the implicit BIP_Object_Access formal.
17413 If the returned value is unconstrained and created on the secondary
17414 stack, mark the enclosing block and function so that the secondary
17415 stack is not reclaimed on return.
17416 Treat returns from functions with controlling results similarly to
17417 returns from functions with unconstrained result subtypes.
17418 If the object returned is unconstrained, and an allocator must be
17419 created for it, analyze the allocator once the block for the extended
17420 return is installed, to ensure that finalizable components
17421 of the expression use the proper finalization list. Guard the call to
17422 Move_Final_List with a check that there is something to finalize.
17423 (Make_Tag_Ctrl_Assignment): Use "old" handling
17424 of controlled type assignment for virtual machines, since new code uses
17425 unsupported features (such as direct access to bytes in memory).
17426
17427 2007-06-06 Gary Dismukes <dismukes@adacore.com>
17428 Ed Schonberg <schonberg@adacore.com>
17429
17430 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
17431 accessibility actual, check for the case of an aliased object that has
17432 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
17433 we fall into processing for the attribute rather than the name of the
17434 object.
17435 (Expand_Inline_Call): If an actual is a literal, and the corresponding
17436 formal has its address taken in the body, create a temporary to capture
17437 value. If the return type is a limited interface, do not treat the
17438 return value as Controlled.
17439 (Is_In_Place_Function): If the return type is a limited interface,
17440 treat as returning in place. The actual returned object may not always
17441 be limited, but the caller has to assume that it is returned in place.
17442 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
17443 context of an allocator, use the correct finalization chain (that is,
17444 the chain belonging to the access type, rather than the chain belonging
17445 to the current scope).
17446 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
17447 result type rather than a controlling result as a precondition for
17448 adding an allocation form actual to a build-in-place call.
17449 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
17450 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
17451 primitive in the dispatch tables. This work is now done by Make_DT when
17452 the type is frozen.
17453 (Register_Predefined_DT_Entry): Removed.
17454 (Add_Return): If end label is not present, use sloc of last statement
17455 for generated return statement in procedure, for better gdb behavior
17456 on expanded code.
17457 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
17458 object address nodes to ensure proper processing by routines like
17459 Insert_After*.
17460 (Expand_Call): Fix generation of validity check for parameter
17461 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
17462 the allocation form parameter if the result subtype is constrained,
17463 except when the function has a controlling result.
17464 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
17465 rather than Is_Controlled and Has_Controlled_Component, since we want to
17466 include class-wide result types in this treatment. Also test for a
17467 controlling result, since that also requires passing a finalization
17468 list.
17469 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
17470 even when the result subtype is constrained, to handle calls involving
17471 controlling results.
17472 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
17473 is now called even when the result subtype is constrained, to handle
17474 calls involving controlling results.
17475 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
17476 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
17477 now performs the test).
17478 (Make_Build_In_Place_Call_In_Object_Declaration):
17479 Add_Alloc_Form_Actual_* is now called even when the result subtype is
17480 constrained, to handle calls involving controlling results.
17481 (Add_Return): Accomodate rewritten pattern from local raise to goto
17482 transformation, so that we still recognize an transfer statement
17483 and do the right thing here in that case.
17484 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
17485 and end of subprogram code.
17486 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
17487 support for primitives that are functions (without formals) with a
17488 controlling result.
17489 (Inherited_From_Formal): If the actual subtype has not generic parent
17490 type, it is not an actual for a formal derived type, and there is no
17491 operation to inherit from the formal.
17492
17493 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17494 Thomas Quinot <quinot@adacore.com>
17495
17496 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
17497 inserted cleanup code appropriately for GDB use.
17498 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
17499 exception handler for Deep_Adjust or Deep_Finalize.
17500 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
17501 Raise_From_Controlled_Operation is available, use a call to that
17502 subprogram instead of a plain "raise Program_Error" node to raise
17503 Program_Error if an exception is propagated from an Adjust or Finalize
17504 operation.
17505 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
17506 appears in the optional statement list of a triggering alternative, the
17507 scope actions can be inserted directly there, and not in the list that
17508 includes the asynchronous select itself.
17509
17510 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17511 Robert Dewar <dewar@adacore.com>
17512 Hristian Kirtchev <kirtchev@adacore.com>
17513
17514 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
17515 generated exception handler appropriately when debugging generated code.
17516 Deal properly with No_Exception_Propagation restriction mode.
17517 (Expand_N_Abort_Statement): Add an unchecked type conversion from
17518 System.Address to System.Tasking.Task_Id when processing the result of
17519 the predefined primitive _disp_get_task_id.
17520 (Expand_N_Asynchronous_Select): Clarify comment.
17521 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
17522 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
17523 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
17524 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
17525 privals and for generated call to Complete_Entry_Body, for better gdb
17526 behavior.
17527 (Copy_Result_Type): Utility to construct a parameter and result profile
17528 for protected functions whose return type is an anonymous access to
17529 subprogram.
17530 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
17531 call the above.
17532 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
17533 point when the local-raise-to-goto transformation has taken place.
17534
17535 2007-06-06 Javier Miranda <miranda@adacore.com>
17536 Nicolas Setton <setton@adacore.com>
17537
17538 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
17539 functionality when the backend is generating code.
17540 Otherwise any serious error
17541 reported by the backend calling the frontend routine Error_Msg
17542 changes the Compilation_Mode to Check_Semantics, disables the
17543 functionality of this routine and causes the generation of
17544 spureous additional errors.
17545
17546 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
17547 debugging information now generated by the compiler for fat-pointer
17548 types.
17549 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
17550 DWARF2/3.
17551 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
17552
17553 2007-06-06 Thomas Quinot <quinot@adacore.com>
17554
17555 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
17556 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
17557 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
17558 For a remote call to a function with a classwide return type, apply an
17559 E.4(18) check to the returned value.
17560 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
17561 stream attributes of the designated type of an RACW, as they are not
17562 dispatching primitive operations.
17563
17564 2007-06-06 Geert Bosch <bosch@adacore.com>
17565
17566 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
17567 negative literal
17568 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
17569 positive
17570 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
17571 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
17572 positive
17573 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
17574
17575 2007-06-06 Javier Miranda <miranda@adacore.com>
17576
17577 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
17578 attribute compiling package Ada.Tags under No_Run_Time_Mode.
17579
17580 2007-06-06 Javier Miranda <miranda@adacore.com>
17581
17582 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
17583 deallocation of class-wide interface objects.
17584 (Expand_Dispatching_Constructor_Call): Take into account that if the
17585 result of the dispatching constructor is an interface type, the
17586 function returns a class-wide interface type; otherwise the returned
17587 object would be actual. The frontend previously accepted returning
17588 interface types because Expand_Interface_Actuals silently performed
17589 the management of the returned type "as if" it were a class-wide
17590 interface type.
17591 (Expand_Dispatching_Constructor_Call): Replace call to
17592 Make_DT_Access_Action by direct call to Make_Function_Call.
17593
17594 2007-06-06 Robert Dewar <dewar@adacore.com>
17595 Ed Schonberg <schonberg@adacore.com>
17596
17597 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
17598 compute masking constant, since we now set Esize properly to the
17599 underlying size.
17600 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
17601 to match the alignment.
17602 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
17603 packed arrays of 8 bits or less.
17604
17605 * freeze.adb (Freeze_Entity): When freezing the formals of a
17606 subprogram, freeze the designated type of a parameter of an access type
17607 only if it is an access parameter.
17608 Increase size of C convention enumeration object
17609 (Freeze_Entity, array type case): Make sure Esize value is properly
17610 adjusted for the alignment if it is known.
17611 (Freeze_Entity, array type case): When checking bit packed arrays for
17612 the size being incorrect, check RM_Size, not Esize.
17613 (Freeze_Record_Type): Check for bad discriminated record convention
17614 (In_Exp_Body): Return true if the body is generated for a subprogram
17615 renaming, either an attribute renaming or a renaming as body.
17616 (Check_Itype): If the designated type of an anonymous access component
17617 is a non-protected subprogram type, indicate that it is frozen, to
17618 prevent out-of-scope freeze node at some subsequent call.
17619 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
17620 only if the subprogram is neither imported nor exported, as well as the
17621 NCA descriptor class if the subprogram is exported.
17622
17623 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17624 Arnaud Charlet <charlet@adacore.com>
17625 Robert Dewar <dewar@adacore.com>
17626 Gary Dismukes <dismukes@adacore.com>
17627
17628 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
17629 default initialization on an imported object, when there is no
17630 initialization call generated for it.
17631 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
17632 restriction
17633
17634 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
17635 Static_Elaboration_Desired.
17636 Remove pragma Thread_Body.
17637 Implement a new pragma No_Body
17638 Removes the Explicit_Overriding pragma
17639 Remove Optional_Overriding pragma
17640 (Prag): Deal with Universal_Aliasing.
17641 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17642 Pragma_CIL_Constructor): New names.
17643
17644 * sem_cat.adb (Validate_Object_Declaration): An initialization that
17645 uses the equivalent aggregate of a type must be treated as an implicit
17646 initialization.
17647 (Get_Categorization): Check a unit for pragma Preelaborate only if it
17648 has none of the other categories.
17649 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
17650 to apply Import to an object renaming declaration.
17651
17652 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
17653 from a C++ class should be declared as limited and that it will be
17654 considererd limited.
17655 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
17656 should be declared as limited and that it will be considererd limited.
17657 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
17658 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
17659 (Analyze_Pragma): Deal with Universal_Aliasing.
17660 (Sig_Flags): Likewise.
17661 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
17662 (Overflow_Checks_Unsuppressed): New flag.
17663 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
17664 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
17665 case of JVM or .NET targets, and compiling user code.
17666 Add debugging convenience routine rv
17667
17668 2007-06-06 Robert Dewar <dewar@adacore.com>
17669
17670 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
17671 are interface type.
17672 (Build_Elementary_Input_Call): For floating-point use right type in the
17673 absence of strange size or stream size clauses.
17674 (Build_Elementary_Write_Call): Same fix
17675 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
17676 set to value that does not match base type size.
17677
17678 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17679
17680 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
17681 object of a limited type can be initialized with a call to a function
17682 that returns in place. If the limited type has unknown discriminants,
17683 and the underlying type is a constrained composite type, build an actual
17684 subtype from the function call, as is done for private types.
17685 (Side_Effect_Free): An expression that is the renaming of an object or
17686 whose prefix is the renaming of a object, is not side-effect free
17687 because it may be assigned through the renaming and its value must be
17688 captured in a temporary.
17689 (Has_Controlled_Coextensions): New routine.
17690 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
17691 as is done for other limited types.
17692 (Non_Limited_Designated_Type): new predicate.
17693 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
17694 objects.
17695 Remove all handling of with_type clauses.
17696
17697 * par-ch10.adb: Remove all handling of with_type clauses.
17698
17699 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
17700 checksum if the main source could not be parsed.
17701 (Loat_Unit): When processing a child unit, determine properly whether
17702 the parent unit is a renaming when the parent is itself a child unit.
17703 Remove handling of with_type clauses.
17704
17705 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
17706 (Set_Is_Static_Coextension): New procedure.
17707 (Has_Local_Raise): New function
17708 (Set_Has_Local_Raise): New procedure
17709 (Renaming_Exception): New field
17710 (Has_Init_Expression): New flag
17711 (Delay_Finalize_Attach): Remove because flag is obsolete.
17712 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
17713 Remove all handling of with_type clauses.
17714 (Exception_Junk): Can now be set in N_Block_Statement
17715
17716 2007-06-06 Vincent Celier <celier@adacore.com>
17717 Robert Dewar <dewar@adacore.com>
17718
17719 * frontend.adb (Frontend): Return immediately if the main source could
17720 not be parsed, because of preprocessing errors.
17721
17722 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
17723 (Gnat1drv): Exit with errors if the main source could not be parsed,
17724 because of preprocessing errors.
17725 (Check_Rep_Info): New procedure
17726
17727 2007-06-06 Robert Dewar <dewar@adacore.com>
17728
17729 * g-hesorg.ads, g-heasor.ads,
17730 g-busorg.ads, g-bubsor.ads: Update documentation
17731 GNAT.Heap/Bubble_Sort_G is now pure
17732
17733 2007-06-06 Robert Dewar <dewar@adacore.com>
17734
17735 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
17736
17737 2007-06-06 Robert Dewar <dewar@adacore.com>
17738 Ed Schonberg <schonberg@adacore.com>
17739
17740 * g-comlin.ads, g-comlin.adb:
17741 Add new warning for renaming of function return objects
17742
17743 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
17744 (Tree_Read): Use size of object instead of type'object_size, since the
17745 latter is incorrect for packed array types.
17746 (Tree_Write): Same fix
17747
17748 * opt.ads: Add new warning for renaming of function return objects
17749 (Generating_Code): New boolean variable used to indicate that the
17750 frontend as finished its work and has called the backend to process
17751 the tree and generate the object file.
17752 (GCC_Version): Is now private
17753 (Static_Dispatch_Tables): New constant declaration.
17754 (Overflow_Checks_Unsuppressed): New flag.
17755 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
17756 (List_Closure): New flag for gnatbind (-R)
17757 Zero_Formatting: New flag for gnatbind (-Z)
17758 (Special_Exception_Package_Used): New flag.
17759 (Warn_On_Unrepped_Components): New flag.
17760
17761 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
17762 unit is a compilation unit, rather than relying on its scope, so that
17763 Standard can be renamed.
17764 (Analyze_Object_Renaming): Add new warning for renaming of function
17765 return objects.
17766 Also reject attempt to rename function return object in Ada 83 mode.
17767 (Attribute_Renaming): In case of tagged types, add the body of the
17768 generated function to the freezing actions of the type.
17769 (Find_Type): A protected type is visible right after the reserved word
17770 "is" is encountered in its type declaration. Set the entity and type
17771 rather than emitting an error message.
17772 (New_Scope): Properly propagate Discard_Names to inner scopes
17773 (Check_Nested_Access): New procedure.
17774 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
17775 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17776
17777 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
17778 Add new warning for renaming of function return objects
17779 (Check_References): Suppress warnings for objects whose type or
17780 base type has Warnings suppressed.
17781 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
17782 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
17783
17784 2007-06-06 Vincent Celier <celier@adacore.com>
17785 Emmanuel Briot <briot@adacore.com>
17786 Olivier Hainque <hainque@adacore.com>
17787
17788 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
17789 absolute value of Header.Block_Size when displaying the freed physical
17790 memory in traces.
17791 (Allocate): Compute Storage_Address using Integer_Address, not
17792 Storage_Offset, because the range of Storage_Offset may not be large
17793 enough.
17794 (Configure): New parameter Low_Level_Traces
17795 (Allocate, Deallocation, Free_Physically): Added low-level traces
17796 (Configure): new parameter Errors_To_Stdout.
17797 (Output_File): new subprogram
17798 (Deallocate, Dereference): Send error messages to the proper stream
17799 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
17800 documented. Previous code would send it to the current output file
17801 defined in GNAT.IO, which might not be stdout
17802 (Is_Valid): Adjust comment to mention that a positive reply means that
17803 Header_Of may be used to retrieve the allocation header associated with
17804 the subprogram Storage address argument. Return False early if this
17805 address argument is misaligned.
17806
17807 2007-06-06 Vincent Celier <celier@adacore.com>
17808
17809 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
17810 switch -P
17811 (ASIS_Main): New global variable
17812 (Get_Closure): New procedure
17813 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
17814 check, metric or pretty. Call Get_Closure in this case.
17815 (Check_Files): For GNAT LIST, check all sources of all projects when
17816 All_Projects is True.
17817 (GNATCmd): Accept -U for GNAT LIST
17818
17819 2007-06-06 Vincent Celier <celier@adacore.com>
17820
17821 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
17822 has been specified
17823 Correct error message when invocation of the linker fails
17824 Add explicit size clause for the C imported variables
17825 Object_List_File_Supported and Using_GNU_Linker to emphasize that
17826 we expect char size.
17827 Read target parameters earlier, since this is needed to set
17828 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
17829 targets.
17830
17831 2007-06-06 Vincent Celier <celier@adacore.com>
17832
17833 * gnatls.adb:
17834 Add 3 spaces before the default project directory when displaying
17835 the project search path.
17836 Add new command line switch '-l' to display license information.
17837
17838 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
17839
17840 * gmem.c: Add support for timestamps on memory operations.
17841
17842 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
17843 operations (not used currently, just foundation for future
17844 enhancements). Add possibility to perform full dump of gmem.out file.
17845 (Print_Back_Traces): Declare accesses to root arrays constants since
17846 they aren't modified.
17847 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
17848
17849 2007-06-06 Vincent Celier <celier@adacore.com>
17850
17851 * gnatsym.adb: Update Copyright notice
17852 (Parse_Cmd_Line): Accept new switch -D
17853 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
17854 file.
17855
17856 * prj.ads (Policy): New policy Direct
17857 (Yes_No_Unknown): New enumeration type
17858 (Project_Data): New component Libgnarl_Needed
17859
17860 * prj-nmsc.adb (Check_For_Source): When recording a source file make
17861 use the untouched pathname casing.
17862 (Get_Directories): Ensure that the Display_Exec_Directory is using the
17863 proper casing on non case-sensitive platforms like Windows.
17864 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
17865 on all platforms, as it is not possible to know which one is allowed
17866 before processing the project files.
17867 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
17868 specified when symbol policy is Direct. Check that when there is a
17869 symbol file defined (either by default or with attribute
17870 Library_Symbol_File) it is not the same as the reference symbol file.
17871 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
17872 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
17873 extending projects.
17874 (Record_Ada_Source): Record a source that has been locally removed in an
17875 imported project.
17876
17877 * symbols.ads (Policy): New policy Direct
17878
17879 * symbols-vms.adb (Initialize): Take new policy Direct in case
17880 statement
17881
17882 2007-06-06 Vincent Celier <celier@adacore.com>
17883
17884 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
17885 Correct obvious bug (return Dir; instead of return Directory;).
17886 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
17887
17888 2007-06-06 Thomas Quinot <quinot@adacore.com>
17889
17890 * g-pehage.adb (Produce): Open output files in Binary mode, so that
17891 they have UNIX line endings (LF only) even on Windows, and thus pass
17892 all GNAT style checks.
17893
17894 2007-06-06 Emmanuel Briot <briot@adacore.com>
17895
17896 * g-regpat.adb (Quote): Fix improper quoting of '.'
17897
17898 2007-06-06 Thomas Quinot <quinot@adacore.com>
17899
17900 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
17901 default, set False on a per-runtime basis.
17902 (Need_Netdb_Buffer): New constant.
17903
17904 * g-socket.ads, g-socket.adb: Import new package
17905 GNAT.Sockets.Thin.Task_Safe_NetDB.
17906 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
17907 binding to obtain proper message.
17908 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
17909 Replace various occurrences of Arry (Arry'First)'Address with the
17910 equivalent Arry'Address (GNAT always follows implementation advice from
17911 13.3(14)).
17912 (Get_Host_By_Address, Get_Host_By_Name,
17913 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
17914 instead, rely on platform-specific task safe netdb operations provided
17915 by g-socthi.
17916
17917 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
17918 parameter Process_Blocking_IO.
17919 (Host_Error_Messages): Add stub body.
17920 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
17921 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
17922 Safe_Getservbyport): Move functions into new child package
17923 Task_Safe_NetDB.
17924 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
17925 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
17926 (In_Addr): Add alignment clause.
17927
17928 2007-06-06 Robert Dewar <dewar@adacore.com>
17929
17930 * g-trasym.ads, g-traceb.ads: Update list of supported targets
17931 Add note about symbolic traceback
17932
17933 2007-06-06 Pascal Obry <obry@adacore.com>
17934
17935 * hostparm.ads (Normalized_CWD): Use the host directory separator
17936 instead of the hardcoded forward slash which is not the proper
17937 character on Windows for example.
17938 (Java_VM): Removed.
17939
17940 2007-06-06 Vincent Celier <celier@adacore.com>
17941 Arnaud Charlet <charlet@adacore.com>
17942
17943 * a-clrefi.adb, a-clrefi.ads: New files
17944
17945 * impunit.adb: Add s-os_lib in the list of user visible units.
17946 (Non_Imp_File_Names_95): Add a-clrefi to this list
17947 Remove obsolete run-time entries.
17948 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
17949 "a-exetim" -- Ada.Execution_Time
17950 "a-extiti" -- Ada.Execution_Time.Timers
17951
17952 * mlib-prj.ads, mlib-prj.adb
17953 (Build_Library): Use untouched object dir and library dir. At the
17954 same time makes sure that the checks are done using the canonical
17955 form. Removes hard-coded directory separator and use the proper host
17956 one instead.
17957 (Process_Project): Do not look in object directory to check if libgnarl
17958 is needed for a library, if there is no object directory.
17959 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
17960 linking.
17961 (Build_Library): When invoking gnatbind, use a response file if the
17962 total size of the arguments is too large.
17963
17964 * Makefile.rtl: (g-sttsne): New object file.
17965 Add entry for a-clrefi, s-utf_32, System.Exceptions
17966
17967 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
17968 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
17969 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
17970 Change g-string to s-string, g-os_lib to s-os_lib
17971 Change all g-utf_32 references to s-utf_32
17972
17973 2007-06-06 Tristan Gingold <gingold@adacore.com>
17974 Olivier Hainque <hainque@adacore.com>
17975
17976 * init.c: Do not adjust IP of an imported VMS exception of ia64.
17977 LIB$STOP is called to raise an exception and the IP of the exception
17978 is the instruction right after the call.
17979 (__gnat_adjust_context_for_raise, AIX): Implement.
17980 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
17981 adjust_context_for_raise before Raise_From_Signal_Hanler.
17982 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
17983 siginfo is passed to the handler, necessary to let the zcx propagation
17984 engine unwind past it.
17985
17986 2007-06-06 Olivier Hainque <hainque@adacore.com>
17987
17988 * initialize.c (__gnat_initialize for vxworks): Update documentation
17989 on the ZCX support, using different sets of crtstuff objects than with
17990 GCC 3.4.
17991
17992 2007-06-06 Robert Dewar <dewar@adacore.com>
17993
17994 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
17995 spec from body
17996 (Layout_Type): Fix recomputation of size from alignment.
17997
17998 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17999 Javier Miranda <miranda@adacore.com>
18000
18001 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
18002 association in an instance.
18003 (Copy_Generic_Node): If the node is a string literal, no need to copy
18004 its descendants.
18005 (Is_Generic_Formal): For a formal subprogram, the declaration is the
18006 grandparent of the entity.
18007 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
18008 to simplify handling of formal interfaces that derive from other formal
18009 interfaces.
18010 (Instantiate_Subprogram_Body): The defining unit name of the body of
18011 the instance should be a defining identifier.
18012 (Install_Formal_Packages): make global to the package, for use in
18013 instantiations of child units.
18014 (Analyze_Package_Instantiation): Do not attempt to set information on an
18015 enclosing master of an entry when expansion is disabled.
18016 (Instantiate_Type): If the actual is a tagged synchronized type and the
18017 generic ancestor is an interface, create a generic actual for the
18018 corresponding record.
18019 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
18020 declaration, to ensure that the interface list is processed correctly.
18021 (Inline_Instance_Body): If enclosing scope is an instance body, remove
18022 its entities from visibiility as well.
18023 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
18024 given with a named association, analyze the expression only, not the
18025 discriminant association itself.
18026 (Reset_Entity): If the analysis of a selected component is transformed
18027 into an expanded name in the prefix of a call with parameters, do not
18028 transform the original node into an expanded name, to prevent visibility
18029 errors in the case of nested generics.
18030 (Check_Private_View): For an array type, check whether the index types
18031 may need exchanging.
18032
18033 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18034 Vincent Celier <celier@adacore.com>
18035
18036 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
18037 since both are separated.
18038 Add support for imported CIL packages.
18039 Add further special handling of "value_type" for CIL.
18040 Add special handling of pragma Import for CIL.
18041
18042 * make.ads, make.adb: When switch -eS is used, direct all outputs to
18043 standard output instead of standard error, except errors.
18044 (Absolute_Path): Use untouched casing for the parent directory.
18045 (Add_Library_Search_Dir): Use the untouched directory name.
18046 (Add_Source_Search_Dir): Idem.
18047 (Change_To_Object_Directory): Update output to use proper casing.
18048 (Create_Binder_Mapping_File): Use the untouched filename to set
18049 ALI_Name.
18050 (Gnatmake): Use untouched library and executable directory names.
18051 (Insert_Project_Sources): Use untouched filename for spec and body.
18052 (Is_In_Object_Directory): Use untouched object directory.
18053 (Mark_Directory): Idem.
18054 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
18055 contains the non-canonical filename in all cases.
18056 (Change_To_Object_Directory): In verbose mode, display the name of the
18057 object directory we're changing to.
18058 (Compile_Sources): Make sure, when a project file is used, to compile
18059 the body of the unit, when there is one, even when only the spec is
18060 recorded in an ALI file.
18061 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
18062 spec to the body.
18063 (Report_Compilation_Failed): New procedure
18064 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
18065 procedures moved from the spec to the body.
18066 (Extract_Failure): Removed, not used
18067 Replace explicit raises of exception Bind_Failed and Link_Failed with
18068 calls to Make_Failed with the proper message.
18069 Replace explicit raises of exception Compilation_Failed with calls to
18070 procedure Report_Compilation_Failed.
18071 (Initialize): Create mapping files unconditionally when using project
18072 files.
18073
18074 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
18075 Pragma_CIL_Constructor): New names.
18076
18077 * targparm.ads, targparm.adb
18078 (Compiler_System_Version): Removed, no longer used.
18079 (Get_Target_Parameters): Relax checks on system.ads validity. Add
18080 handling of two new system flags: JVM and CLI.
18081
18082 2007-06-06 Jose Ruiz <ruiz@adacore.com>
18083 Arnaud Charlet <charlet@adacore.com>
18084
18085 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
18086 time, use the default s-interr body that provides interrupt support
18087 based on signals.
18088 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
18089 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
18090 g-soccon.ads, and s-taprop.adb for the marte run time.
18091 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
18092 timers are supported on marte.
18093 (EH_MECHANISM for marte): Do not use ZCX.
18094 (THREADSLIB for marte): Use -lmarte.
18095 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
18096 Add mlib-tgt-specific.o to gnatmake objects
18097 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
18098 longer of MLib.Tgt.
18099 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
18100 6, either kernel or rtp, use a specialized version of s-osinte.ads.
18101
18102 2007-06-06 Pascal Obry <obry@adacore.com>
18103
18104 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
18105
18106 2007-06-06 Vincent Celier <celier@adacore.com>
18107
18108 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
18109 separator, use instead the proper host directory separator.
18110 (Copy_ALI_Files): Make sure that an already existing ALI file in the
18111 ALI copy dir is writable, before doing the copy.
18112
18113 * mlib-utl.ads, mlib-utl.adb:
18114 (Gcc): If length of command line is too long, put the list of object
18115 files in a response file, if this is supported by the platform.
18116 (Ar): If invocation of the archive builder is allowed to be done in
18117 chunks and building it in one shot would go above an OS dependent
18118 limit on the number of characters on the command line, build the archive
18119 in chunks.
18120
18121 2007-06-06 Vincent Celier <celier@adacore.com>
18122
18123 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
18124 of specified object file is not equal to base name of source.
18125
18126 2007-06-06 Javier Miranda <miranda@adacore.com>
18127 Hristian Kirtchev <kirtchev@adacore.com>
18128 Ed Schonberg <schonberg@adacore.com>
18129
18130 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
18131 the full type declaration.
18132 (Analyze_Component_Declaration): Add local variable E to capture the
18133 initialization expression of the declaration. Replace the occurences of
18134 Expression (N) with E.
18135 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
18136 limited interface object with a function call.
18137 (Array_Type_Declaration): If the declaration lacks subtype marks for
18138 indices, create a simple index list to prevent cascaded errors.
18139 (Is_Null_Extension): Ignore internal components created for secondary
18140 tags when checking whether a record extension is a null extension.
18141 (Check_Abstract_Interfaces): Add missing support for interface subtypes
18142 and generic formals.
18143 (Derived_Type_Declaration): Add missing support for interface subtypes
18144 and generic formals.
18145 (Analyze_Object_Declaration): If an initialization expression is
18146 present, traverse its subtree and mark all allocators as static
18147 coextensions.
18148 (Add_Interface_Tag_Component): When looking for components that may be
18149 secondary tags, ignore pragmas that can appear within a record
18150 declaration.
18151 (Check_Abstract_Overriding): an inherited function that dispatches on
18152 result does not need to be overriden if the controlling type is a null
18153 extension.
18154 (Mentions_T): Handle properly a 'class attribute in an anonymous access
18155 component declaration, when the prefix is an expanded name.
18156 (Inherit_Component): If the derivation is for a private extension,
18157 inherited components remain visible and their ekind should not be set
18158 to Void.
18159 (Find_Type_Of_Object): In the case of an access definition, always set
18160 Is_Local_Anonymous_Access. We were previously not marking the anonymous
18161 access type of a return object as a local anonymous type.
18162 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
18163 range with character literal bounds.
18164 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
18165 (Access_Subprogram_Declaration): Indicate that the type declaration
18166 depends on an incomplete type only if the incomplete type is declared
18167 in an open scope.
18168 (Analyze_Subtype_Declaration): Handle properly subtypes of
18169 synchronized types that are tagged, and that may appear as generic
18170 actuals.
18171 (Access_Subprogram_Declaration): An anonymous access to subprogram can
18172 appear as an access discriminant in a private type declaration.
18173 (Add_Interface_Tag_Components): Complete decoration of the component
18174 containing the tag of a secondary dispatch table and the component
18175 containing the offset to the base of the object (this latter component
18176 is only generated when the parent type has discriminants --as documented
18177 in this routine).
18178 (Inherit_Components): Use the new decoration of the tag components to
18179 improve the condition that avoids inheriting the components associated
18180 with secondary tags of the parent.
18181 (Build_Discriminanted_Subtype): Indicate to the backend that the
18182 size of record types associated with dispatch tables is known at
18183 compile time.
18184 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
18185 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
18186 to include task, protected, and synchronized interfaces as limited
18187 interfaces.
18188 (Process_Discriminants): Remove the setting of
18189 Is_Local_Anonymous_Access on the type of (anonymous) access
18190 discriminants of nonlimited types.
18191 (Analyze_Interface_Type_Declaration): Complete the decoration of the
18192 class-wide entity it is is already present. This situation occurs if
18193 the limited-view has been previously built.
18194 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
18195 field.
18196 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
18197 Related_Interface.
18198
18199 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18200
18201 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
18202 of the type that specify the position of interface tags when the type
18203 inherits discriminated array components from the parent type.
18204 If a component is initialized with a box, check for the presence of a
18205 default expression in its declaration before using its default
18206 initialization procedure.
18207 (Resolve_Record_Aggregate): If a component is box-initialized, and the
18208 component type has a discriminants, create a partial aggregate for it
18209 by copying the discriminants of the component subtype.
18210 Reject attempt to initialize a discriminant with a box.
18211 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
18212 associated with dispatch tables is known at compile time.
18213 (Get_Value): If an association in a record aggregate has a box
18214 association, and the corresponding record component has a default
18215 expression, always copy the default expression, even when the
18216 association has a single choice, in order to create a proper
18217 association for the expanded aggregate.
18218
18219 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18220 Robert Dewar <dewar@adacore.com>
18221
18222 * par-ch12.adb (P_Generic_Associations): The source position of an
18223 Others association is that of the others keyword, not that of the token
18224 that follows the box.
18225 (P_Formal_Type_Definition): Handle formal access types that carry a
18226 not null indicator.
18227
18228 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
18229 multiple identifier are present, save Scan_State before scanning the
18230 colon, to ensure that separate trees are constructed for each
18231 declaration.
18232 (P_Identifier_Declarations): For object declaration, set new flag
18233 Has_Init_Expression if initialization expression present.
18234 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
18235 Improve NOT NULL error messages
18236
18237 2007-06-06 Robert Dewar <dewar@adacore.com>
18238
18239 * par-ch4.adb: (P_Name): Recover from literal used as name
18240
18241 2007-06-06 Vincent Celier <celier@adacore.com>
18242
18243 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
18244 defaulted to False.
18245 In the "not" case, recursive call with Complemented set to True.
18246 Do not allow "or" or "and" operators when Complemented is True.
18247
18248 2007-06-06 Vincent Celier <celier@adacore.com>
18249
18250 * prj.adb (Project_Empty): Gives default value for new component
18251 Libgnarl_Needed
18252
18253 * prj-attr.ads: Minor reformatting
18254
18255 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
18256 directory using the untouched casing.
18257 (For_All_Source_Dirs): Idem.
18258
18259 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
18260 directories specified with switches -aP.
18261 (Add_Search_Project_Directory): New procedure
18262 (Initialize_Project_Path): Put the directories in table
18263 Search_Directories in the project search path.
18264 (Initialize_Project_Path): For VMS, transform into canonical form the
18265 project path.
18266
18267 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18268
18269 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
18270 true if configurable run-time or No_Run_Time is set.
18271 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
18272 processing an unit which is not the one being compiled.
18273
18274 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18275
18276 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
18277 Replace UC by Ada.UC
18278
18279 * s-bitops.adb: Get rid of System.Pure_Exceptions.
18280 Replace UC by Ada.UC
18281
18282 2007-06-06 Robert Dewar <dewar@adacore.com>
18283
18284 * scng.adb: (Check_End_Of_Line): Deal with very long lines
18285
18286 2007-06-06 Robert Dewar <dewar@adacore.com>
18287
18288 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
18289 Remove no longer used nodes.
18290
18291 2007-06-06 Javier Miranda <miranda@adacore.com>
18292 Ed Schonberg <schonberg@adacore.com>
18293 Robert Dewar <dewar@adacore.com>
18294
18295 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
18296 on obsolescent withed unit in case of limited-withed units.
18297 (Analyze_Compilation_Unit): Add guard to code that removed an
18298 instantiation from visibility, to prevent compiler aborts when
18299 instantiation is abandoned early on.
18300 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
18301 current unit being analyzed, and Distinguish local incomplete types
18302 from limited views of types declared elsewhere.
18303 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
18304 to state that the class-wide entity is shared by the limited-view
18305 and the full-view.
18306 (Analyze_With_Clause): Improve placement of flag for case of
18307 unimplemented unit.
18308 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
18309 manner similar to GNAT.Current_Exception. This is a violation of
18310 restriction (No_Exception_Propagation), and also inhibits the
18311 optimization of local raise to goto.
18312 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
18313 and if so set Most_Recent_Exception_Used flag in Opt, and also check
18314 for violation of restriction No_Exception_Propagation.
18315
18316 2007-06-06 Javier Miranda <miranda@adacore.com>
18317 Hristian Kirtchev <kirtchev@adacore.com>
18318 Gary Dismukes <dismukes@adacore.com>
18319
18320 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
18321 use of entity Exception_Occurrence if it is not available in the
18322 target run-time.
18323
18324 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
18325 concurrent types are declared within an Ada 2005 generic, build their
18326 corresponding record types since they are needed for overriding-related
18327 semantic checks.
18328 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
18329 protected type does not implement a task interface or a nonlimited
18330 interface.
18331 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
18332 type does not implement a protected interface or a nonlimited interface.
18333 (Single_Task_Declaration, Single_Protected_Declaration): use original
18334 entity for variable declaration, to ensure that debugging information
18335 is correcty generated.
18336 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
18337 routines if the expander is not active.
18338 (Analyze_Task_Body): Mark all handlers to stop optimization of local
18339 raise, since special things happen for task exception handlers.
18340
18341 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
18342 concurrent types declared within a generic.
18343 (Check_Dispatching_Operation): Do not emit warning about late interface
18344 operations in the context of an instance.
18345 (Check_Dispatching_Call): Remove restriction against calling a
18346 dispatching operation with a limited controlling result.
18347 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
18348 Register_Interface_DT_Entry by calls to Register_Primitive.
18349 (Check_Dispatching_Formals): Handle properly a function with a
18350 controlling access result.
18351
18352 2007-06-06 Robert Dewar <dewar@adacore.com>
18353 Arnaud Charlet <charlet@adacore.com>
18354
18355 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
18356 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
18357 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
18358 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
18359 message when using a VM, since this attribute is not supported.
18360 (Analyze_Record_Representation_Clause): Give unrepped component warnings
18361
18362 * usage.adb: Add new warning for renaming of function return objects
18363 Indicate that -gnatwp and -gnatwP concern front-end inlining
18364 Add line for -gnatyg
18365 Add usage information for -gnatw.c/C
18366
18367 2007-06-06 Robert Dewar <dewar@adacore.com>
18368 Ed Schonberg <schonberg@adacore.com>
18369
18370 * sem_ch5.adb
18371 (Find_Var): Do not consider function call in test for infinite loop
18372 warning if warnings set off for function entity.
18373 (One_Bound): Do not create a temporary for a loop bound if it is a
18374 character literal.
18375 (Analyze_Assignment): Traverse the right hand side of an assignment and
18376 mark all allocators as static coextensions.
18377 (Analyze_Assignment): Exempt assignments involving a dispatching call
18378 to a function with a controlling access result from the check requiring
18379 the target to be class-wide.
18380
18381 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
18382 Ed Schonberg <schonberg@adacore.com>
18383 Robert Dewar <dewar@adacore.com>
18384 Javier Miranda <miranda@adacore.com>
18385
18386 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
18387 chain of coextensions when an allocator serves as the root of such a
18388 chain.
18389 (Propagate_Coextensions): Remove the test for the root being an
18390 allocator.
18391 (Resolve_Allocator): Add condition to ensure that all future decoration
18392 occurs on an allocator node. Add processing and cleanup for static
18393 coextensions.
18394 (Valid_Conversion): If the operand type is the limited view of a
18395 class-wide type, use the non-limited view is available to determine
18396 legality of operation.
18397 (Ambiguous_Character): move to spec, for use elsewhere.
18398 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
18399 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
18400 character literals.
18401 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
18402 Do_Division_Check flag explicitly.
18403 (Resolve_Actuals): If the actual is of a synchronized type, and the
18404 formal is of the corresponding record type, this is a call to a
18405 primitive operation of the type, that is declared outside of the type;
18406 the actual must be unchecked-converted to the type of the actual
18407 (Resolve_Call): Kill all current values for any subprogram call if
18408 flag Suppress_Value_Tracking_On_Call is set.
18409 (Resolve_Type_Conversion): Generate error message the the operand
18410 or target of interface conversions come from a limited view.
18411 (Check_Infinite_Recursion): Ignore generated calls
18412 (Check_Allocator_Discrim_Accessibility): New procedure for checking
18413 that an expression that constrains an access discriminant in an
18414 allocator does not denote an object with a deeper level than the
18415 allocator's access type.
18416 (Resolve_Allocator): In the case of an allocator initialized by an
18417 aggregate of a discriminated type, check that associations for any
18418 access discriminants satisfy accessibility requirements by calling
18419 Check_Allocator_Discrim_Accessibility.
18420 (Resolve_Equality_Op): Handle comparisons of anonymous access to
18421 subprogram types in the same fashion as other anonymous access types.
18422 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
18423 message that is not a continuation message.
18424 (Resolve_Type_Conversion): Add missing support for conversion to
18425 interface type.
18426 (Resolve_Actuals): Introduce a transient scope around the call if an
18427 actual is a call to a function returning a limited type, because the
18428 resulting value must be finalized after the call.
18429 (Resolve_Actuals): If the call was given in prefix notations, check
18430 whether an implicit 'Access reference or implicit dereference must be
18431 added to make the actual conform to the controlling formal.
18432
18433 2007-06-06 Robert Dewar <dewar@adacore.com>
18434 Javier Miranda <miranda@adacore.com>
18435
18436 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
18437 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
18438 overriding of an inherited private subprogram now there is no need to
18439 inherit its dispatching slot and reduce the size of the dispatch table.
18440 Set_All_DT_Position now ensures that the same slot is now assigned to
18441 both entities. This is required to statically build the dispatch table.
18442 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
18443 of calling Set_All_DT_Position to re-evaluate the position of the
18444 entries in the dispatch table. Such reevaluation is not desired if
18445 the tagged type is already frozen.
18446
18447 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
18448 Gary Dismukes <dismukes@adacore.com>
18449 Robert Dewar <dewar@adacore.com>
18450 Javier Miranda <miranda@adacore.com>
18451
18452 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
18453 reference acts as an lvalue when the attribute name modifies the prefix
18454 (Is_Coextension_Root): New routine.
18455 (Mark_Static_Coextensions): New routine.
18456 (Type_Access_Level): Revise code for checking the level of the
18457 anonymous access type of a return object.
18458 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
18459 (Matches_Prefixed_View_Profile): Remove the no longer necessary
18460 retrieval of the corresponding controlling record type.
18461 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
18462 concurrent types declared within a generic as well as class wide types.
18463 Emit a mode incompatibility error whenever a protected entry or routine
18464 override an interface routine whose first parameter is not of mode
18465 "out", "in out" or access to variable.
18466 (Overrides_Synchronized_Primitive): Rename to
18467 Find_Overridden_Synchronized_Primitive.
18468 (Collect_Interface_Components): New subprogram that collects all the
18469 components of a tagged record containing tags of secondary dispatch
18470 tables.
18471 (Add_Global_Declaration): New procedure
18472 (Abstract_Interface_List): Handle properly the case of a subtype of a
18473 private extension.
18474 (Type_Access_Level): In the case of a type whose parent scope is a
18475 return statement, call Type_Access_Level recursively on the enclosing
18476 function's result type to determine the level of the return object's
18477 type.
18478 (Build_Elaboration_Entity): Build name of elaboration entity from the
18479 scope chain of the entity, rather than the unit name of the file name.
18480 (Check_Nested_Access): New procedure.
18481 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
18482 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
18483 (Get_Renamed_Entity): Utility routine for performing common operation
18484 of chasing the Renamed_Entity field of an entity.
18485
18486 2007-06-06 Robert Dewar <dewar@adacore.com>
18487
18488 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
18489 elaboration model
18490 (Check_A_Call): Add check for entry call which was causing blowup
18491
18492 2007-06-06 Olivier Hainque <hainque@adacore.com>
18493
18494 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
18495 special code on ia64-vms to handle major incompatibilities between the
18496 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
18497 this routine with a very different set of arguments and expectations on
18498 the return value.
18499
18500 2007-06-06 Thomas Quinot <quinot@adacore.com>
18501
18502 * socket.c (__gnat_close_signalling_fd): New function.
18503 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
18504 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
18505 New supporting functions for task safe Netdb operations.
18506
18507 2007-06-06 Thomas Quinot <quinot@adacore.com>
18508 Olivier Hainque <hainque@adacore.com>
18509
18510 * a-except-2005.ads, a-except-2005.adb
18511 (Raise_From_Controlled_Operation): New procedure in
18512 (private part of) Ada.Exceptions (standard runtime version). Used to
18513 provide informational exception message when Program_Error is raised as
18514 a result of an Adjust or Finalize operation propagating an exception.
18515 (Rmsg_28): Fix description for E.4(18) check.
18516 (Raise_Current_Excep): Call Debug_Raise_Exception just before
18517 propagation starts, to let debuggers know about the event in a reliable
18518 fashion.
18519 Take the address of E and dereference to make sure it is homed on stack
18520 and prevent the stores from being deleted, necessary for proper
18521 debugger behavior on "break exception" hits.
18522 (Local_Raise): Moved to System.Exceptions
18523
18524 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
18525 exception message from the current occurrence and raise Program_Error
18526 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
18527
18528 2007-06-06 Jose Ruiz <ruiz@adacore.com>
18529 Arnaud Charlet <charlet@adacore.com>
18530
18531 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
18532 lock, if needed.
18533
18534 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
18535 priority associated to a lock.
18536
18537 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
18538 assertion to take into account case of no abort restriction.
18539 (Initialize_Protection_Entries): Add initialization for the field
18540 New_Ceiling associated to the protected object.
18541 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
18542 needed.
18543
18544 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
18545 since this function needs to be set consistently with Update_Exception.
18546
18547 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
18548 since this function needs to be set consistently with Update_Exception.
18549
18550 * s-taskin.ads: Update comments on
18551 Interrupt_Server_Blocked_On_Event_Flag.
18552 (Unbind_Handler): Fix handling of server_task wakeup
18553 (Server_Task): Set self's state so that Unbind_Handler can take
18554 appropriate actions.
18555 (Common_ATCB): Now use a constant from System.Parameters to determine
18556 the max size of the Task_Image field.
18557
18558 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
18559 Initialize_Analyzer function.
18560 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
18561 take into account case of no abort restriction.
18562 ([Vulnerable_]Complete_Master): Modify assertion.
18563
18564 * s-tataat.adb (Finalize): Use the nestable versions of
18565 Defer/Undefer_Abort.
18566
18567 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
18568
18569 * s-tpobop.ads: Update comments.
18570
18571 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
18572 of locking the object manually, to avoid inconsistencies between
18573 Lock/Unlock_Entry assertions.
18574
18575 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
18576 terminating
18577 application and System.Parameters.No_Abort is True.
18578 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
18579 (Unbind_Handler): Fix handling of server_task wakeup
18580 (Server_Task): Set self's state so that Unbind_Handler can take
18581 appropriate actions.
18582
18583 2007-06-06 Thomas Quinot <quinot@adacore.com>
18584
18585 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
18586 declarations instead of an explicit null body, for conciseness.
18587
18588 2007-06-06 Robert Dewar <dewar@adacore.com>
18589
18590 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
18591 illegal aggregate and the type is still Any_Composite.
18592 (Subtypes_Statically_Match): Fix problem of empty discriminant list
18593
18594 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18595
18596 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
18597 to prevent subsequent expansion.
18598
18599 2007-06-06 Robert Dewar <dewar@adacore.com>
18600
18601 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
18602
18603 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18604 Robert Dewar <dewar@adacore.com>
18605
18606 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
18607 exceptions.
18608 (Write_Itype): Handle case of string literal subtype, which
18609 comes up in this context.
18610 (Update_Itype): when debugging expanded code, update sloc of itypes
18611 associated with defining_identifiers and ranges, for gdb use.
18612 (Sprint_Node_Actual): Add static keyword to object or exception
18613 declaration output if Is_Statically_Allocated is True.
18614 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
18615 or task body, so that the tree carries the proper Sloc information for
18616 debugging use.
18617 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
18618
18619 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18620
18621 * s-secsta.adb (Chunk): Ensure this object has a static size known at
18622 compile time, to avoid dynamic memory allocation
18623 (Elaboration code): Only use dynamic memory allocation when needed.
18624
18625 2007-06-06 Quentin Ochem <ochem@adacore.com>
18626
18627 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
18628 "Overflow_Guard".
18629 (Stack_Analyzer): Added field "Overflow_Guard"
18630 (Task_Result): Added field "Overflow_Guard".
18631 (Index_Str): New constant.
18632 (Task_Name_Str): New constant.
18633 (Actual_Size_Str): New constant.
18634 (Pattern_Array_Element_Size): New constant.
18635 (Get_Usage_Range): New subprogram.
18636 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
18637 Now align the output.
18638 Added comments.
18639 (Initialize): Added value for Overflow_Guard.
18640 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
18641 Update the value of the overflow guard according to the actual
18642 beginning of the pattern array.
18643 (Initialize_Analyzer): Added parameter Overflow_Guard.
18644 Take this parameter into accound when computing the max size.
18645 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
18646 (Report_Result): Removed extra useless procedure.
18647 Updated call to Output_Result.
18648 Moved full computation of the Task_Result here.
18649
18650 2007-06-06 Thomas Quinot <quinot@adacore.com>
18651
18652 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
18653 Thread_Blocking_IO, always True by default, set False on a per-runtime
18654 basis.
18655 Add Windows-specific constants
18656 Add new constant Need_Netdb_Buffer.
18657 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
18658 not, whether to use getXXXbyYYY_r.
18659
18660 * gsocket.h: Add new constant Need_Netdb_Buffer.
18661 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
18662 not, whether to use getXXXbyYYY_r.
18663
18664 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
18665
18666 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
18667 than their first call.
18668 Add type Dummy_Communication_Block used in the generation of the pre-
18669 defined dispatching primitive _disp_asynchronous_select.
18670 (Storage_Element): Put Pragma Universal_Aliasing on it.
18671
18672 2007-06-06 Vincent Celier <celier@adacore.com>
18673
18674 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
18675 function.
18676
18677 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
18678 letter if it is not followed by a '/' or a '\'.
18679 (Windows): New Boolean function
18680
18681 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
18682 Ada 2005.
18683 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
18684 drive letter.
18685 (Containing_Directory): Raise Use_Error when the directory is a root
18686 directory.
18687 (Extension): When returning the result, use a conversion to Result_Type,
18688 not a qualification.
18689
18690 2007-06-06 Robert Dewar <dewar@adacore.com>
18691
18692 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
18693 (Set_Style_Check_Options): Recognize new -gnatyg style switch
18694
18695 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
18696 Warn_On_Non_Local_Exception to False, to turn off warnings for
18697 No_Exception_Propagation in ZFP runtime.
18698 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
18699 back-ends.
18700 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
18701
18702 2007-06-06 Vincent Celier <celier@adacore.com>
18703
18704 * switch-b.adb (Scan_Binder_Switches): Add processing for new
18705 switches -R and -Z
18706
18707 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
18708 (Scan_Make_Switches): Recognize new switch -aP
18709
18710 2007-06-06 Matthew Gingell <gingell@adacore.com>
18711 Jose Ruiz <ruiz@adacore.com>
18712
18713 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
18714 VxWorks task descriptor in the Ada run time, call a C subprogram
18715 (__gnat_get_stack_info) that extracts the required information.
18716
18717 * sysdep.c: Back out temporary lynxos workaround.
18718 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
18719 time the stack information associated to the currently executing task.
18720 Only VxWorks systems require this function.
18721
18722 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
18723
18724 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
18725 add the stack bias if the offset is computed from a frame address.
18726 (__gnat_backtrace): Adjust for above change.
18727
18728 2007-06-06 Thomas Quinot <quinot@adacore.com>
18729
18730 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
18731 PE_Non_Transportable_Actual.
18732 (By_Descriptor_Last): New constant.
18733 (By_Copy_Return): Likewise.
18734
18735 2007-06-06 Vincent Celier <celier@adacore.com>
18736
18737 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
18738 is.
18739
18740 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
18741 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
18742 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
18743 Add missing comment for /OPTIMIZE=SPACE
18744 Add entry for OPTIMIZE=SPACE
18745 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
18746 Add documentation for new qualifiers corresponding to -gnatw.c/.C
18747
18748 2007-06-06 Vincent Celier <celier@adacore.com>
18749 Robert Dewar <dewar@adacore.com>
18750
18751 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
18752 -gnatw.C)
18753
18754 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
18755 Document gnatbind switch -a
18756 (case Constructions): Document that variables declarations are allowed
18757 for previously declared variables.
18758 Fix external lib project example
18759 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
18760 Indicate that "#if not X or Y then" is not allowed in input files to
18761 gnatprep.
18762 Document gnatw.x and gnatw.X warning flags
18763 Mention -Winline switch to activate warnings when back-end inlining is
18764 ineffective.
18765 Add gnatcheck rule descriptions
18766 Describe how to use the GNAT driver to call a tool on a closure.
18767 Describe how to run project-wide checks or metrics.
18768 Document gnatbind's -R option
18769 Updated to account for Ada 2005 support
18770
18771 * gnat_rm.texi (Case Construction): Allow variable declarations for
18772 previously declared variables.
18773 (Representation Clauses and Pragmas): Lift restriction on alignment
18774 clauses for record types.
18775 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
18776 Document No_Exception_Propagation restriction
18777 Document No_Body pragma
18778 Updated to account for Ada 2005 support; corrected some typos
18779 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
18780
18781 * gnat-style.texi: Make it clear that we never use mode IN for
18782 procedures or functions
18783
18784 * ug_words: Add entries for -gnatw.x and -gnatw.X
18785 Add entries for -gnatw.c/.C
18786
18787 2007-06-06 Pascal Obry <obry@adacore.com>
18788 Vincent Celier <celier@adacore.com>
18789
18790 * makegpr.adb (Add_Archive_Path): Use untouched object and library
18791 dirs and library name.
18792 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
18793 comments.
18794 (Build_Library): Idem.
18795 (Compile_Individual_Sources): Idem.
18796 (Compile_Link_With_Gnatmake): Idem.
18797 (Compile_Sources): Idem.
18798 (Get_Imported_Directories): Idem.
18799 (Link_Executables): Idem. Same change for the executable dir.
18800 (Check_Compilation_Needed): C_Source_Path new variable containing
18801 the canonical form of Source_Path to check against the source names
18802 in the dependency file.
18803 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
18804 verbose mode, display the name of the object directory we're changing
18805 to.
18806 (Saved_Switches): New name of table X_Switches
18807 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
18808 (Usage): New line for switch -aP
18809 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
18810 testing if a directory should be added to the search path.
18811
18812 2007-06-06 Javier Miranda <miranda@adacore.com>
18813
18814 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
18815 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
18816 declaration after freezing point of all its associated tagged types;
18817 otherwise such types are frozen too early.
18818
18819 2007-06-06 Robert Dewar <dewar@adacore.com>
18820
18821 * a-reatim.adb: Documentation addition
18822
18823 * g-cgideb.adb: Minor code reorganization
18824
18825 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
18826 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
18827 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
18828
18829 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
18830 function. Change name New_Scope to Push_Scope
18831 (Get_Debug_Flag_K): Remove unused obsolete function.
18832
18833 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
18834 Push_Scope.
18835
18836 * makeusg.adb: Update Copyright notice
18837 Add line for switch -aP
18838
18839 * makeusg.adb: Fix wording of some usage messages
18840
18841 * s-assert.adb (Raise_Assert_Failure): Add call to
18842 Debug_Raise_Assert_Failure.
18843
18844 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
18845 (2, Standard'Alignment) for compatibility with AAMP (where alignment
18846 is restricted to 1).
18847
18848 * s-wchjis.adb: Remove use of System.Pure_Exceptions
18849
18850 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
18851 node location to No_Location when we're not debugging the expanded
18852 code.
18853
18854 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
18855
18856 * misc.c (enumerate_modes): Consider log2_b to always be one.
18857
18858 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
18859
18860 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
18861
18862 2007-05-02 Pascal Obry <obry@adacore.com>
18863
18864 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
18865 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
18866 encoding support of Stream_IO.
18867 (Write_Unit): Idem.
18868
18869 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
18870 filename and corresponding encoding to match the OS requirement.
18871 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
18872 routine will fail on specific devices like CON: AUX: ...
18873
18874 PR ada/29856: Add missing braces
18875
18876 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
18877
18878 PR ada/31660
18879 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
18880
18881 2007-04-21 Jan Hubicka <jh@suse.cz>
18882
18883 * misc.c (gnat_expand_body): Don't call target for destructors,
18884 avoid redundant check on syntax errors.
18885
18886 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18887
18888 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
18889 instead of checking GIMPLE_STMT_P in chain_next.
18890
18891 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
18892
18893 PR ada/31576
18894 * system-linux-alpha.ads: Disable constant condition warning for the
18895 Default_Bit_Order variable.
18896 * system-linux-s390.ads: Likewise.
18897 * system-linux-s390x.ads: Likewise.
18898 * system-linux-sparc.ads: Likewise.
18899
18900 2007-04-06 Javier Miranda <miranda@adacore.com>
18901 Matt Heaney <heaney@adacore.com>
18902 Robert Dewar <dewar@adacore.com>
18903
18904 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
18905 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
18906 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
18907 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18908 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
18909 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
18910 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
18911 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
18912 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
18913 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
18914 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
18915 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
18916 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
18917 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
18918 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
18919 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
18920 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
18921 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
18922 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
18923 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
18924 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
18925 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
18926 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
18927 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
18928 s-taprop-tru64.adb, s-taprop-irix.adb,
18929 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
18930 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
18931 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
18932 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
18933 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
18934 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
18935 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
18936 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
18937 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
18938 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
18939 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
18940 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18941 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
18942 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
18943 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
18944 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
18945 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
18946 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
18947 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
18948 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
18949 access types.
18950 Update documentation.
18951 Minor rewording.
18952
18953 2007-04-06 Robert Dewar <dewar@adacore.com>
18954
18955 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
18956 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
18957 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
18958 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18959 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
18960 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
18961 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18962 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
18963 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
18964 system-hpux-ia64.ads, targparm.adb,
18965 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
18966
18967 * system.ads: Move Functions_Return_By_DSP to obsolete section,
18968 kept for bootstrap purposes only.
18969
18970 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18971
18972 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
18973 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
18974 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
18975 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
18976
18977 2007-04-06 Robert Dewar <dewar@adacore.com>
18978
18979 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
18980 (Local_Raise): New dummy procedure called when a raise is converted
18981 to a local goto. Used for debugger to detect that the exception
18982 is raised.
18983
18984 * debug.adb: Document new d.g flag (expand local raise statements to
18985 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
18986
18987 * exp_sel.adb: Use Make_Implicit_Exception_Handler
18988
18989 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
18990 suppress warnings for unused handlers.
18991 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
18992 warnings for raise statements not handled locally.
18993 (Get_RT_Exception_Entity): New function
18994 (Get_Local_Call_Entity): New function
18995 (Find_Local_Handler): New function
18996 (Warn_If_No_Propagation): New procedure
18997 (Expand_At_End_Handler): Call Make_Implicit_Handler
18998 (Expand_Exception_Handlers): Major additions to deal with local handlers
18999 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
19000 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
19001 for local raise
19002
19003 * exp_ch11.ads (Get_RT_Exception_Entity): New function
19004 (Get_Local_Call_Entity): New function
19005
19006 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
19007 of restrictions that the binder will never suggest adding.
19008
19009 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
19010 to No_Elist.
19011
19012 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
19013 be with'ed in the presence of pragma Restriction
19014 (No_Exception_Propagation).
19015
19016 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
19017
19018 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
19019 parameter, then the handler is not a suitable target for a local raise,
19020 and this is a violation of restriction No_Exception_Propagation.
19021 (Analyze_Handled_Statements): Analyze choice parameters in exception
19022 handlers before analyzing statement sequence (needed for proper
19023 detection of local raise statements).
19024 (Analyze_Raise_Statement): Reraise statement is a violation of the
19025 No_Exception_Propagation restriction.
19026
19027 * s-rident.ads: Add new restriction No_Exception_Propagation
19028
19029 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
19030 function, like Make_Exception_Handler but sets Local_Raise_Statements
19031 to No_List.
19032 (Add_Unique_Serial_Number): Deal with case where this is called during
19033 processing of configuration pragmas.
19034
19035 2007-04-06 Thomas Quinot <quinot@adacore.com>
19036 Pat Rogers <rogers@adacore.com>
19037 Pascal Obry <obry@adacore.com>
19038
19039 * g-stsifd-sockets.adb: New file.
19040
19041 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
19042 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
19043 g-socthi-vms.adb: Move signalling
19044 fd management to a nested package, so that they can conveniently be
19045 moved to a subunit that is shared across Windows, VMS, and VxWorks
19046 (Ada implementation) or completed with imported bodies from socket.c
19047 (UNIX case).
19048 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
19049 subprograms.
19050 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
19051 the signalling file descriptor.
19052 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
19053 signalling file descriptor.
19054 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
19055 instead of creating a pair of sockets for signalling here.
19056
19057 * g-socthi.adb: Ditto.
19058 Set the runtime process to ignore SIGPIPEs on platforms that support
19059 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
19060
19061 * g-socthi-mingw.adb: Ditto.
19062 (WS_Version): Use Windows 2.2.
19063 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
19064
19065 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
19066 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
19067
19068 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
19069 added GNAT byte swapping facility
19070 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
19071
19072 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
19073
19074 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
19075 New subprograms.
19076 (__gnat_create_signalling_fds): New subprogram.
19077 Set the runtime process to ignore SIGPIPEs on platforms that support
19078 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
19079
19080 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
19081 Vincent Celier <celier@adacore.com>
19082
19083 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
19084 New version of Ada.Calendar which supports the new upper bound of Ada
19085 time (2399-12-31 86_399.999999999).
19086 The following modifications have been made to the package:
19087 - New representation of time as count of nanoseconds since the start of
19088 Ada time (1901-1-1 0.0).
19089 - Target independent Split and Time_Of routines which service both
19090 Ada 95 and Ada 2005 code.
19091 - Target independent interface to the Ada 2005 children of Calendar.
19092 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
19093 - Handling of non-leap centenial years.
19094 - Updated clock function.
19095 - Updated arithmetic and comparison operators.
19096
19097 * a-caldel.adb (To_Duration): Add call to target independent routine in
19098 Ada.Calendar to handle the conversion of time to duration.
19099
19100 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
19101 (UTC Offset).
19102 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
19103 set off to 0.
19104 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
19105 targets do not have a natural time zone, GMT is used as a default.
19106 (__gnat_get_task_options): New.
19107
19108 * a-direct.adb (Modification_Time): Add with and use clauses for
19109 Ada.Calendar and Ada.
19110 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
19111 since it is no longer needed.
19112 (Duration_To_Time): Removed.
19113 (OS_Time_To_Long_Integer): Removed.
19114 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
19115 Formatting Time_Of routines which automatically handle time zones,
19116 buffer periods and leap seconds.
19117
19118 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
19119 target independent routines in Ada.Calendar.
19120
19121 * a-calfor.ads, a-calfor.adb:
19122 Code cleanup and addition of validity checks in various routines.
19123 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
19124 Ada.Calendar.
19125
19126 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
19127 independent routine in Ada.Calendar.
19128
19129 2007-04-06 Olivier Hainque <hainque@adacore.com>
19130
19131 * adaint.c:
19132 (convert_addresses): Adjust prototype and dummy definition to expect an
19133 extra file_name argument.
19134
19135 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
19136 filling the now expected file_name argument with the appropriate
19137 argv[0] expansion.
19138 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
19139 (tracebk): Array of void * instead of char *, corresponding to what
19140 convert_addresses expects.
19141 (exename): New static global, to hold the executable file name to be
19142 used in all convert_addresses invocations.
19143 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
19144 change.
19145 (__gnat_gmem_a2l_initialize): Resolve exename.
19146 (__gnat_convert_addresses): Use exename as the convert_addresses
19147 file_name argument.
19148
19149 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
19150 "convert_addresses", now expecting a filename argument. Import the
19151 necessary entities to compute the filename to use and pass it to
19152 convert_addresses.
19153
19154 2007-04-06 Matt Gingell <gingell@adacore.com>
19155
19156 * system-aix.ads: Back out previous change.
19157 (Functions_Return_By_DSP): Removed
19158
19159 2007-04-06 Pascal Obry <obry@adacore.com>
19160
19161 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
19162 or the monotonic used by Ada.Real_Time) to compute the sleep duration
19163 on Windows.
19164
19165 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19166
19167 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
19168 function. Its value changes in different VxWorks versions, and it is
19169 now handled by the function __gnat_get_task_options.
19170
19171 * s-taprop-vxworks.adb (Create_Task): Call the function
19172 __gnat_get_task_options to get the required options for creating a task.
19173
19174 2007-04-06 Pascal Obry <obry@adacore.com>
19175 Thomas Quinot <quinot@adacore.com>
19176
19177 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
19178 dealing with filename.
19179 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
19180 filename from a standard string to a wide-string depending on the
19181 encoding value.
19182 (__gnat_freopen): Idem.
19183 (__gnat_current_time): New function (wrapper for time(3) standard C
19184 function).
19185
19186 * g-os_lib.ads (Current_Time): New function. Returns the current
19187 system time as an OS_Time value.
19188
19189 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
19190 (Monotonic_Clock): Same.
19191
19192 2007-04-06 Quentin Ochem <ochem@adacore.com>
19193
19194 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
19195 not on a natural.
19196 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
19197
19198 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19199
19200 * a-retide.adb: Add elaboration code to ensure that the tasking run
19201 time is initialized when using delay operations even when no task is
19202 created.
19203
19204 2007-04-06 Javier Miranda <miranda@adacore.com>
19205
19206 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
19207 component Num_Prim_Ops.
19208 (Set_Num_Prim_Ops): Removed.
19209 Remove all the assertions because all the routines of this
19210 package are inline always.
19211 (Get_Offset_Index): Add support to primary dispatch tables.
19212 Move the documentation about the dispatch table to a-tags.ads
19213 (Set_External_Tag): Removed
19214 (Inherit_TSD): Removed.
19215 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
19216 moved to a-tags.ads
19217 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
19218 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
19219 of the TSD field "Table" because this field has been renamed to
19220 "Ifaces_Table".
19221 (Inherit_CPP_DT): Removed.
19222 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
19223 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
19224 declarations have been moved to a-tags.ads
19225 (Check_Size): Removed.
19226 (Expanded_Name): Updated to get access to the new field of TSD
19227 containing the address of the expanded name.
19228 (Get_Access_Level/Set_Access_Level): Removed.
19229 (Get_Predefined_Prim_Op_Address): Removed.
19230 (Set_Predefined_Prim_Op_Address): Removed.
19231 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
19232 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
19233 (Set_Expanded_Name): Removed.
19234 (Inherit_DT): Removed.
19235 (Inherit_CPP_DT): Removed.
19236 (Set_RC_Offset): Removed.
19237 (Set_TSD): Removed.
19238 (Base_Address): New function that displaces "this" to point to the base
19239 of the object (that is, to point to the primary tag of the object).
19240
19241 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19242 Javier Miranda <miranda@adacore.com>
19243
19244 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
19245 anonymous access component, do not create a master_id if type already
19246 has one, as may happen if the type is a subcomponent of a packed array
19247 type.
19248 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
19249 Initialize_Tag): Remove code associated with the old CPP pragmas.
19250 CPP_Virtual and CPP_Vtable are no longer supported.
19251 (Build_Offset_To_Top_Internal): Add support for concurrent record types
19252 (Build_Offset_To_Top_Functions): Add support for concurrent record types
19253 (Freeze_Record_Type): Remove call to
19254 Init_Predefined_Interface_Primitives.
19255 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
19256 code required to initialize the tags of the secondary dispatch tables.
19257 This leaves the algoritm more clear.
19258 (Init_Secondary_Tags): Add support for concurrent record types
19259 (Make_Predefined_Primitive_Specs): Code cleanup.
19260 (Predefined_Primitive_Bodies): Code cleanup.
19261 (Build_Master_Renaming): New local subprogram.
19262 (Expand_N_Full_Type_Declaration): Build the master_id associated with
19263 anonymous access to task type components.
19264 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
19265 subtype indication are resolved during analysis, and must not be done
19266 here.
19267 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
19268
19269 2007-04-06 Geert Bosch <bosch@adacore.com>
19270 Ed Schonberg <schonberg@adacore.com>
19271 Javier Miranda <miranda@adacore.com>
19272 Bob Duff <duff@adacore.com>
19273
19274 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
19275 for conversion of a Float_Type'Truncation to integer.
19276
19277 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
19278 check if a node is an attribute that can be handled directly by the
19279 back end.
19280 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
19281 attributes that can be handled directly by the back end.
19282 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
19283 use new predicate Is_Access_Protected_Subprogram_Type.
19284 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
19285 and Unchecked_Union if it is generated as part of the default Output
19286 procedure for a type with default discriminants.
19287 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
19288 if we are compiling under restriction No_Dispatching_Calls.
19289 (Constrained): Use Underlying_Type, in case the type is private without
19290 discriminants, but the full type has discriminants.
19291 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
19292 call to Build_Get_Access_Level.
19293 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
19294 interface objects requires a call to the run-time subprogram that
19295 returns the base address of the object.
19296 (Valid_Conversion): Improve error message on illegal attempt to store
19297 an anonymous access to subprogram value into a record component.
19298
19299 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
19300 null".
19301 (Simplify_Type_Conversion): New procedure that performs simplification
19302 of Int_Type (Float_Type'Truncation (X)).
19303 (Resolve_Type_Conversion): Call above procedure after resolving operand
19304 and before performing checks. This replaces the existing ineffective
19305 code in Exp_Ch4.
19306 (Set_String_Literal_Subtype): When creating the internal static lower
19307 bound subtype for a string literal, use a newly created copy of the
19308 subtree representing the lower bound.
19309 (Resolve_Call): Exclude build-in-place function calls from transient
19310 scope treatment. Update comments to describe this exception.
19311 (Resolve_Equality_Op): In case of dispatching call check violation of
19312 restriction No_Dispatching_Calls.
19313 (Resolve_Call): If the call returns an array, the context imposes the
19314 component type of the array, and the function has one non-defaulted
19315 parameter, rewrite the call as the indexing of a call with a single
19316 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
19317 in prefix form.
19318 (Resolve_Actuals): If an actual is an allocator for an access parameter,
19319 the master of the created object is the innermost enclosing statement.
19320 (Remove_Conversions): For a binary operator, check if type of second
19321 formal is numeric, to check if an abstract interpretation is present
19322 in the case of exponentiation as well.
19323
19324 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19325 Bob Duff <duff@adacore.com>
19326
19327 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
19328 copying a parameter list in a call, set properly the First_Named_Formal
19329 and Next_Named_Formal fields in the new list and in the enclosing call.
19330 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
19331 names, to ease typing in the debugger. Improve comments.
19332 (Watch_Node): New variable, intended to be set in the debugger.
19333 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
19334 called when the watched node is created.
19335 (New_Node_Debugging_Output): Combined version of local procedures
19336 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
19337 with a parameter so that conditional breakpoints like "if Node = 12345"
19338 work.
19339 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
19340 Add Elist1 function
19341
19342 2007-04-06 Thomas Quinot <quinot@adacore.com>
19343 Ed Schonberg <schonberg@adacore.com>
19344 Gary Dismukes <dismukes@adacore.com>
19345
19346 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
19347 required for a conversion between two access-to-unconstrained-array
19348 types.
19349 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
19350 to discriminant constraints on discriminant objects. This rule must
19351 apply as well to discriminants of protected types in private components.
19352 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
19353 object of a null-excluding access type then don't require the
19354 the object declaration to have an expression and don't emit a
19355 run-time check.
19356
19357 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19358 Eric Botcazou <botcazou@adacore.com>
19359
19360 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
19361 and made constant.
19362
19363 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
19364 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
19365 carry any.
19366
19367 * fe.h (Compiler_Abort): Add third parameter.
19368
19369 * misc.c (internal_error_function): Build third argument from current
19370 input location and pass it to Compiler_Abort.
19371
19372 2007-04-06 Gary Dismukes <dismukes@adacore.com>
19373
19374 * cstand.adb (Create_Standard): When the target's storage unit size is
19375 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
19376 Standard_String.
19377
19378 2007-04-06 Nicolas Roche <roche@adacore.com>
19379
19380 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
19381 absolute path can have the following form: device:/a/b. In this case
19382 '/' should be inserted between the path and the filename.
19383
19384 2007-04-06 Olivier Hainque <hainque@adacore.com>
19385 Eric Botcazou <botcazou@adacore.com>
19386
19387 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
19388 VAR_DECL to a CONST_DECL we make for a public constant when we know the
19389 corresponding definition has created the so made visible variable.
19390 Handle anonymous access to protected subprogram.
19391 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
19392 object with an address clause volatile. Re-enable original fix.
19393 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
19394 too.
19395 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
19396 associated with either the Equivalent or Root type, instead of the
19397 naked type node.
19398 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
19399 subtree for every field of a global record type.
19400 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
19401 discriminants, invoke again variable_size on its newly computed sizes.
19402
19403 2007-04-06 Robert Dewar <dewar@adacore.com>
19404 Thomas Quinot <quinot@adacore.com>
19405 Ed Schonberg <schonberg@adacore.com>
19406 Bob Duff <duff@adacore.com>
19407
19408 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
19409 (Next_Component_Or_Discriminant): New function and procedure
19410 (First_Index, First_Literal, Master_Id,
19411 Set_First_Index, Set_First_Literal, Set_Master_Id):
19412 Add missing Ekind assertions.
19413 (Is_Access_Protected_Subprogram_Type): New predicate.
19414 (Has_RACW): New entity flag, set on package entities to indicate that
19415 the package contains the declaration of a remote accecss-to-classwide
19416 type.
19417 (E_Return_Statement): This node type has the Finalization_Chain_Entity
19418 attribute, in case the result type has controlled parts.
19419 (Requires_Overriding): Add this new flag, because "requires
19420 overriding" is subtly different from "is abstract" (see AI-228).
19421 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
19422 Is_Abstract_Type. Make sure these are called only when appropriate.
19423 (Has_Pragma_Unreferenced_Objects): New flag
19424
19425 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
19426 class-wide, the tag of the right-hand side must be an exact match, not
19427 an ancestor of that of the object on left-hand side.
19428 (Move_Activation_Chain): New procedure to create the call to
19429 System.Tasking.Stages.Move_Activation_Chain.
19430 (Expand_N_Extended_Return_Statement): Generate code to call
19431 System.Finalization_Implementation.Move_Final_List at the end of a
19432 return statement if the function's result type has controlled parts.
19433 Move asserts to Build_In_Place_Formal.
19434 (Move_Final_List): New function to create the call statement.
19435 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
19436 tagged type, replace generation of call to the run-time subprogram
19437 CW_Membership by call to Build_CW_Membership.
19438 (Expand_N_Return_Statement): Replace generation of call to the run-time
19439 subprogram Get_Access_Level by call to Build_Get_Access_Level.
19440 (Expand_N_Simple_Function_Return): Replace generation of call to the
19441 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
19442
19443 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
19444 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
19445 access to protected operations.
19446 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
19447 master and chain actual parameters to a build-in-place function call
19448 involving tasks.
19449 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
19450 statement.
19451 (Make_Build_In_Place_Call_In_Allocator,
19452 Make_Build_In_Place_Call_In_Anonymous_Context,
19453 Make_Build_In_Place_Call_In_Assignment,
19454 Make_Build_In_Place_Call_In_Object_Declaration): Call
19455 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
19456 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
19457 stubbed procedure with a null body, replace the call with a null
19458 statement without using the full inlining machinery, for efficiency
19459 and to avoid invalid values in source file table entries.
19460
19461 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
19462 renamings of calls to build-in-place functions.
19463
19464 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
19465 provides the functionality of RTE_Available to record components.
19466 (RTU_Entity): The function Entity has been renamed to RTU_Entity
19467 to avoid undesired overloading.
19468 (Entity): New subprogram that returns the entity for the referened
19469 unit. If this unit has not been loaded, it returns Empty.
19470 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
19471 Remove no longer used entities.
19472 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
19473 (RE_Type_Specific_Data): New entity.
19474 (RE_Move_Any_Value): New entity.
19475 (RE_TA_A, RE_Get_Any_Type): New entities.
19476 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
19477 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
19478 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
19479 (Entity): New subprogram that returns the entity for the referened
19480 unit. If this unit has not been loaded, it returns Empty.
19481 (RTE): Addition of a new formal that extends the search to the scopes
19482 of the record types found in the chain of the package.
19483
19484 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
19485 "abstract subprograms must be visible" message, whether or not the type
19486 is an interface; that is, remove the special case for interface types.
19487 (Analyze_Function_Return): Remove error message "return of task objects
19488 is not yet implemented" because this is now implemented.
19489 (Create_Extra_Formals): Add the extra master and activation chain
19490 formals in case the result type has tasks.
19491 Remove error message "return of limited controlled objects is not yet
19492 implemented".
19493 (Create_Extra_Formals): Add the extra caller's finalization list formal
19494 in case the result type has controlled parts.
19495 (Process_Formals): In case of access formal types there is no need
19496 to continue with the analysis of the formals if we already notified
19497 errors.
19498 (Check_Overriding_Indicator): Add code to check overriding of predefined
19499 operators.
19500 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
19501 flags for formals that do not require them,.
19502 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
19503 hidden entity is use visible or directly visible.
19504 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
19505 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
19506 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
19507 New_Overloaded_Entity): Split Is_Abstract flag into
19508 Is_Abstract_Subprogram and Is_Abstract_Type.
19509
19510 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
19511 a return statement's finalization list to the caller's list, used for
19512 build-in-place functions with result type with controlled parts.
19513 Remove no longer used entities.
19514
19515 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
19516 longer needed, because the full type is now limited, and therefore a
19517 pass-by-reference type.
19518 (Foreign_Task_Level): New constant.
19519
19520 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
19521 move tasks from the activation chain belonging to a return statement to
19522 the one passed in by the caller, and update the master to the one
19523 passed in by the caller.
19524 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
19525 of unactivated tasks, so we don't kill the ones that are being returned
19526 by a build-in-place function.
19527 (Create_Task): Ignore AI-280 for foreign threads.
19528
19529 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19530 Robert Dewar <dewar@adacore.com>
19531 Bob Duff <duff@adacore.com>
19532 Gary Dismukes <dismukes@adacore.com>
19533
19534 * errout.adb (Unwind_Internal_Type): Use predicate
19535 Is_Access__Protected_Subprogram_Type.
19536
19537 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
19538 (Freeze_Entity, packed array case): Do not override explicitly set
19539 alignment and size clauses.
19540 (Freeze_Entity): An entity declared in an outer scope can be frozen if
19541 the enclosing subprogram is a child unit body that acts as a spec.
19542 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
19543 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
19544 Remove all code for DSP option
19545
19546 * layout.adb (Layout_Record_Type): Use First/
19547 Next_Component_Or_Discriminant
19548 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
19549 to handle properly the anonymous access case.
19550
19551 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
19552 for all access attributes, because overload resolution should work the
19553 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
19554 causes the error message for the ambiguous "X'Access = Y'Access" and
19555 "X'Unrestricted_Access = Y'Access" and so forth to match.
19556 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
19557 now that anonymous access to protected operations have their own kind.
19558 (Resolve_Attribute): In case of dispatching call check the violation of
19559 restriction No_Dispatching_Calls.
19560 (Check_Array_Type): Check new -gnatyA array index style option
19561
19562 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
19563 attempt to derive from a synchronized tagged type.
19564 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
19565 type, inherit the class-wide type already created, because it may
19566 already have been used in a self-referential anonymous access component.
19567 (Mentions_T): Recognize self-referential anonymous access components
19568 that use (a subtype of) the class-wide type of the enclosing type.
19569 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
19570 Derived_Type for Prev formal on call to
19571 Check_Anonymous_Access_Components rather than Empty.
19572 (Make_Incomplete_Type_Declaration): Add test for case where the type has
19573 a record extension in deciding whether to create a class-wide type,
19574 rather than just checking Tagged_Present.
19575 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
19576 to stand-alone object declarations as well as component declarations.
19577 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
19578 prevent accidental overwriting when enclosing package appears in
19579 a limited_with_clause.
19580 (Array_Type_Declaration): If the component type is an anonymous access,
19581 the associated_node for the itype is the type declaration itself.
19582 (Add_Interface_Tag_Components): Modified to support concurrent
19583 types with abstract interfaces.
19584 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
19585 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
19586 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
19587 to complete the decoration of synchronized interface types. Add also
19588 a call to Check_Abstract_Interfaces to verify the ARM rules.
19589 (Derive_Interface_Subprograms): Modified to support concurrent types
19590 with abstract interfaces.
19591 (Analyze_Subtype_Indication): Resolve the range with the given subtype
19592 mark, rather than delaying the full resolution depending on context.
19593 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
19594 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
19595 Array_Type_Declaration,Build_Derived_Record_Type,
19596 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
19597 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
19598 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
19599 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19600 called only when appropriate.
19601 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
19602 to private type.
19603 (Analyze_Subtype_Declaration): For an access subtype declaration, create
19604 an itype reference for the anonymous designated subtype, to prevent
19605 scope anonmalies in gigi.
19606 (Build_Itype_Reference): New utility, to simplify construction of such
19607 references.
19608
19609 2007-04-06 Vincent Celier <celier@adacore.com>
19610
19611 * errutil.adb (Initialize): Initialize warnings table, if all warnings
19612 are suppressed, supply an initial dummy entry covering all possible
19613 source locations.
19614
19615 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
19616 and start with only one, such as "-RTS=none".
19617 (Collect_Arguments): Do not check for sources outside of projects.
19618 Do not collect arguments if project is externally built.
19619 (Compile_Sources): Do nothing, not even check if the source is up to
19620 date, if its project is externally built.
19621 (Compile): When compiling a predefined source, add -gnatpg
19622 as the second switch, after -c.
19623 (Compile_Sources): Allow compilation of Annex J renames without -a
19624 (Is_In_Object_Directory): Check if the ALI file is in the object
19625 even if there is no project extension.
19626 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
19627 gnatbind if the ALI file effectively exists.
19628 (Initialize): Add the directory where gnatmake is invoked in front of
19629 the path if it is invoked from a bin directory, even without directory
19630 information, so that the correct GNAT tools will be used when spawned
19631 without directory information.
19632
19633 * makeusg.adb: Change switch -S to -eS
19634 Add lines for new switches -we, -wn and -ws
19635 Add line for new switch -p
19636
19637 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
19638 Treat_As_Error and there are warnings.
19639
19640 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
19641 -gnatww Change gnatmake switch -S to -eS
19642 (Scan_Make_Switches): Code reorganisation. Process separately multi
19643 character switches and single character switches.
19644 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
19645 False when switch is not recognized by gnatmake.
19646 (Scan_Make_Switches): Set Setup_Projects True when -p or
19647 --create-missing-dirs is specified.
19648
19649 * fname.adb (Is_Predefined_File_Name): Return True for annex J
19650 renamings Calendar, Machine_Code, Unchecked_Conversion and
19651 Unchecked_Deallocation only when Renamings_Included is True.
19652
19653 * par.adb: Allow library units Calendar, Machine_Code,
19654 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
19655 when -gnatg is not specified.
19656 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19657 there is no need to generate always a record_definition_node in case
19658 of synchronized interface types.
19659 (SIS_Entry_Active): Initialize global variable to False
19660 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
19661 indicate cases where AI-447 says "not null" is legal.
19662
19663 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
19664
19665 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
19666 files with with several lines starting with the object fileb name.
19667 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
19668 is specified.
19669 (Initialize): Add the directory where gprmake is invoked in front of the
19670 path, if it is invoked from a bin directory or with directory
19671 information, so that the correct GNAT tools will be used when invoked
19672 directly.
19673 (Check_Compilation_Needed): Process correctly backslashes on Windows.
19674
19675 * vms_data.ads: Update switches/qualifiers
19676
19677 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19678 Thomas Quinot <quinot@adacore.com>
19679
19680 * exp_aggr.adb:
19681 If the array component is a discriminated record, the array aggregate
19682 is non-static even if the component is given by an aggregate with
19683 static components.
19684 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
19685 (Convert_Aggr_In_Allocator): If the allocator is for an access
19686 discriminant and the type is controlled. do not place on a finalization
19687 list at this point. The proper list will be determined from the
19688 enclosing object.
19689 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
19690 initialize record controller if needed, before the components, to ensure
19691 that they are properly finalized.
19692 (Build_Record_Aggr_Code): For the case of an array component that has a
19693 corresponding array aggregate in the record aggregate, perform sliding
19694 if required.
19695
19696 2007-04-06 Javier Miranda <miranda@adacore.com>
19697 Gary Dismukes <dismukes@adacore.com>
19698 Ed Schonberg <schonberg@adacore.com>
19699
19700 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
19701 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
19702
19703 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
19704 accessibility on class-wide allocators if the allocator occurs at the
19705 same scope level as the allocator's type. The check is guaranteed to
19706 succeed in that case, even when the expression originates from a
19707 parameter of the containing subprogram.
19708 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
19709 under No_Dispatching_Calls restriction. During the semantic analysis
19710 we already notified such violation.
19711 (Tagged_Membership): Constant folding. There is no need to check
19712 the tag at run-time if the type of the right operand is non
19713 class-wide abstract.
19714 Replace call to Is_Ancestor by call to Is_Parent
19715 to support concurrent types with interface types.
19716 (Expand_N_Allocator): Add an assertion associated with the generation
19717 of the master_id.
19718 (Expand_N_Slice): Do not enable range check to nodes associated
19719 with the frontend expansion of the dispatch table.
19720 (Is_Local_Access_Discriminant): Subsidiary function to
19721 Expand_N_Allocator.
19722 (Tagged_Membership): Replace generation of call to the run-time
19723 subprogram CW_Membership by call to Build_CW_Membership.
19724 (Expand_Allocator_Expression): Replace generation of call to the
19725 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
19726
19727 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
19728 initialize most the TSD components by means of an aggregate.
19729 Modify the declaration of the object containing the TSD
19730 because we now expand code that has a higher level of abstraction.
19731 The TSD has a discriminant containing the Inheritance Depth Level,
19732 value that is used in the membership test but also to fix the size
19733 of the table of ancestors.
19734 (Expand_Interface_Conversion): Insert function body at the closest place
19735 to the conversion expression, to prevent access-before-elaboration
19736 errors in the backend.
19737 Code improved to reduce the size of the dispatch table if
19738 compiling under restriction No_Dispatching_Calls plus code cleanup.
19739 Code reorganization plus removal of calls to Set_Num_Prim_Ops
19740 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
19741 (Expand_Dispatching_Call): Minor code reorganization plus addition of
19742 code to return immediately if compiling under No_Dispatching_Calls
19743 restriction.
19744 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
19745 CPP_Virtual and CPP_Vtable are no longer supported.
19746 (Expand_Interface_Conversion): Add missing support for interface type
19747 derivations.
19748 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
19749 Is_Parent to support concurrent types with interfaces.
19750 (Init_Predefined_Interface_Primitives): Removed.
19751 (Make_Secondary_DT): Modified to support concurrent record types.
19752 (Set_All_DT_Position): Modified to support concurrent record types.
19753 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
19754 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
19755 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
19756 with CW_Membership.
19757 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
19758 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
19759 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
19760 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
19761 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
19762 (Expand_Dispatching_Call): Replace generation of call to the run-time
19763 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
19764 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
19765 Address.
19766 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
19767 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
19768 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
19769 Build_Set_Prim_Op_Address.
19770 (Get_Remotely_Callable): Subprogram removed.
19771 (Init_Predefined_Interface_Primitives): Replace generation of call to
19772 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
19773 Prims.
19774
19775 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
19776 First (Parameter_Associations ()) with the call to First_Actual that
19777 returns an actual parameter expression for both named and positional
19778 associations.
19779
19780 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
19781 check violation of restriction No_Dispatching_Calls.
19782 (Check_Controlling_Type): A formal of a tagged incomplete type is a
19783 controlling argument.
19784
19785 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
19786 First/Next_Component_Or_Discriminant
19787 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
19788 (Find_Implemented_Interface): Removed. All the calls to this subprogram
19789 specify Any_Limited_Interface, and this functionality is already
19790 provided by the function Has_Abstract_Interfaces.
19791 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
19792 support concurrent types implementing interfaces.
19793 (Find_Implemented_Interface): Removed. All the calls to this subprogram
19794 specify kind Any_Limited_Interface, and this functionality is already
19795 provided by the function Has_Abstract_Interfaces.
19796 (Remove_Side_Effects): replace Controlled_Type by
19797 CW_Or_Controlled_Type whenever the issue is related to
19798 using or not the secondary stack.
19799
19800 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
19801 P_Interface_Type_Definition to fulfill the new interface (the formal
19802 Is_Synchronized is no longer required).
19803
19804 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
19805 Update dependencies.
19806
19807 * exp_atag.ads, exp_atag.adb: New file
19808
19809 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19810 Bob Duff <duff@adacore.com>
19811 Cyrille Comar <comar@adacore.com>
19812
19813 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
19814 anonymous, use finalization list of enclosing dynamic scope.
19815 (Expand_N_Package_Declaration): For a library package declaration
19816 without a corresponding body, generate RACW subprogram bodies in the
19817 spec (just as we do for the task activation call).
19818 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
19819 Is_Abstract_Type. Make sure these are called only when appropriate.
19820 Remove all code for DSP option
19821 (CW_Or_Controlled_Type): new subprogram.
19822
19823 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19824 Ed Schonberg <schonberg@adacore.com>
19825 Gary Dismukes <dismukes@adacore.com>
19826
19827 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
19828 parameter. If it is set to true, return a result capped according to
19829 the global upper bound for the index of an entry family.
19830 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
19831 (Build_Find_Body_Index): Adjust for above change.
19832 (Entry_Index_Expression): Likewise.
19833 (Is_Potentially_Large_Family): New function extracted from...
19834 (Collect_Entry_Families): ...here. Call it to detect whether the family
19835 is potentially large.
19836 (Build_Entry_Count_Expression): If the family is potentially large, call
19837 Family_Size with 'Cap' set to true.
19838 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
19839 a protected version of an operation declared in the private part of
19840 a protected object, because they may be invoked through a callback.
19841 (Set_Privals): If the type of a private component is an anonymous access
19842 type, do not create a new itype for each protected body.
19843 If the body of a protected operation creates
19844 controlled types (including allocators for class-widetypes), the
19845 body of the corresponding protected subprogram must include a
19846 finalization list.
19847 (Build_Activation_Chain_Entity): Build the chain entity for extended
19848 return statements.
19849 (Type_Conformant_Parameters): Use common predicate Conforming_Types
19850 to determine whether operation overrides an inherited primitive.
19851 (Build_Wrapper_Spec): Add code to examine the parents while looking
19852 for a possible overriding candidate.
19853 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
19854 hold an actual parameter value since its initialization is separated
19855 from the the declaration. Prevents errors on null-excluding access
19856 formals.
19857
19858 2007-04-06 Thomas Quinot <quinot@adacore.com>
19859 Pablo Oliveira <oliveira@adacore.com>
19860
19861 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
19862 Do an Unchecked_Conversion to handle the passage from the Underlying
19863 Type to the Base Type when calling Build_To_Any_Call and
19864 Build_From_Any_Call.
19865 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
19866 E_Constant, depending upon Variable formal.
19867 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19868 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
19869 parameter that requires an extra constrained parameter, declare
19870 temporary for actual as a variable, not a constant.
19871 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
19872 the unit being compiled is the one that contains the stub type.
19873 Change primitive operation name for the RACW associated with a RAS
19874 from Call to _Call so it cannot clash with any legal identifier.
19875 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
19876 Is_RAS.
19877 (Append_RACW_Bodies): New subprogram.
19878 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
19879 Add_Receiving_Stubs_To_Declarations functions.
19880 When expanding a package body, this list correspond to the
19881 statements in the HSS at the end of the pacakge.
19882 When expanding a package spec, this list correspond to the
19883 spec declarations.
19884 (Add_Receiving_Stubs_To_Declarations): Append the function
19885 registering the receiving stubs at the end of the 'Stmts' list.
19886 (RCI_Package_Locator): Pass the new Version generic formal when
19887 instantiating a RCI_Locator package.
19888 (Build_From_Any_Function): To compute the High bound for an
19889 unconstrained array actual, we add the Low bound with the length.
19890 Thus we must convert the low bound and the length to an appropriate
19891 type before doing the sum.
19892 (Build_Subprogram_Receiving_Stubs, PolyORB):
19893 * Retrieve the extra formals parameters at the
19894 end of the parameter stream.
19895 * Use Move_Any_Value to write back out parameters
19896 after executing the request as it is more efficient
19897 than Copy_Any_Value.
19898 * Build the any containing Extra Formals with the
19899 appropriate typecode.
19900 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
19901 empty Component_List.
19902 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
19903 the tree the declaration for an object that serves as actual parameter
19904 in server-side stubs.
19905 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19906 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
19907 Use Build_Actual_Object_Declaration to prepare the actuals.
19908 (Add_Parameter_To_NVList): Set the parameter mode to In for
19909 Extra Constrained Parameters.
19910 (Build_General_Calling_Stubs): Set the parameter type to boolean for
19911 Extra Constrained parameters.
19912 (Build_To_Any_Function, Build_From_Any_Function,
19913 Built_TypeCode_Function): When Typ is implicit, call the correct
19914 function with the first not implicit parent type.
19915 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
19916 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
19917 typecode from the Etype. Therefore we retrieve the correct typecode
19918 with a call to Get_Any_Type.
19919 (Copy_Specification): Do controlling formal type substitution based on
19920 Is_Controlling_Formal flag, instead of caller-provided object type.
19921 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
19922 a RACW primitive operation, we might get a subprogram declaration for an
19923 ancestor of the RACW designated type (not for the designated type
19924 itself), in the case where this operation is inherited. In this case we
19925 have no easy means of determining the original tagged type for which
19926 the primitive was declared, so instead we now rely on
19927 Copy_Specification to use the Is_Controlling_Formal flag to determine
19928 which formals require type substitution.
19929
19930 2007-04-06 Robert Dewar <dewar@adacore.com>
19931 Ed Schonberg <schonberg@adacore.com>
19932
19933 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
19934 GNAT.Current_Exception are not allowed if pragma Restrictions
19935 (No_Exception_Propagation) is set and in any case make the associated
19936 handler unsuitable as a target for a local raise statement.
19937 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
19938 run-time subprogram CW_Membership by call to Build_CW_Membership.
19939 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
19940 by a function call, a temporary must be created before expanding the
19941 Constructor_Call itself, to prevent out-of-order elaboration in the
19942 back-end when stack checking is enabled..
19943
19944 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19945
19946 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
19947 result are the bounds of the left operand, not the right.
19948
19949 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19950
19951 * exp_strm.adb
19952 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
19953 discriminant defaults.
19954 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
19955 (Make_Component_List_Attributes): Ditto.
19956
19957 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19958 Bob Duff <duff@adacore.com>
19959
19960 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
19961 an association with a box as providing a value even though the
19962 initialization procedure for the type is not available.
19963 (Resolve_Record_Aggregate): Check that a choice of an association with a
19964 box corresponds to a component of the type.
19965 (Resolve_Record_Aggregate): Split Is_Abstract flag into
19966 Is_Abstract_Subprogram and Is_Abstract_Type.
19967
19968 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
19969 assert.
19970
19971 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
19972 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19973 called only when appropriate.
19974
19975 2007-04-06 Olivier Hainque <hainque@adacore.com>
19976
19977 * g-alleve.ads (Low Level Vector type definitions): Map each to the
19978 associated vector view instead of all to the unsigned char view.
19979
19980 * g-altcon.adb (Generic_Conversions): New internal generic package,
19981 offering facilities for all the Vector/View conversion routines
19982 implemented by this unit.
19983 (To_View/To_Vector - all versions): Reimplemented in a systematic
19984 manner, using the internal Generic_Conversions facilities.
19985
19986 2007-04-06 Pascal Obry <obry@adacore.com>
19987
19988 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
19989 string.
19990 (Create): Free the source string before storing the new one.
19991
19992 2007-04-06 Vincent Celier <celier@adacore.com>
19993
19994 * g-debpoo.adb (Validity): New package with a complete new
19995 implementation of subprograms Is_Valid and Set_Valid.
19996 (Is_Valid): Move to local package Validity
19997 (Set_Valid): Move to local package Validity
19998
19999 2007-04-06 Arnaud Charlet <charlet@adacore.com>
20000 Pablo Oliveira <oliveira@adacore.com>
20001
20002 * g-expect.adb (Get_Command_Output): When expanding the output buffer
20003 we must ensure that there is enough place for the new data we are going
20004 to copy in.
20005
20006 2007-04-06 Thomas Quinot <quinot@adacore.com>
20007
20008 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
20009 computation.
20010
20011 2007-04-06 Jose Ruiz <ruiz@adacore.com>
20012 Vincent Celier <celier@adacore.com>
20013
20014 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
20015 (Stack_String): Add this String that contains the name of the Stack
20016 package in the project file.
20017 (Packages_To_Check_By_Stack): Add this list that contains the packages
20018 to be checked by gnatstack, which are the naming and the stack packages.
20019 (Check_Files): If no .ci files were specified for gnatstack we add all
20020 the .ci files belonging to the projects, including binder generated
20021 files.
20022 (Non_VMS_Usage): Document that gnatstack accept project file switches.
20023 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
20024 Add gnatstack to the list of commands that use project file related
20025 switches, and get the single attribute Switches from the stack package
20026 in a project file when calling gnatstack. Parse the -U flag for
20027 processing files belonging to all projects in the project tree.
20028 Remove all processing for command Setup
20029
20030 * prj-attr.adb: Add new package Stack with single attribute Switches
20031
20032 * vms_conv.ads (Command_Type): Add command Stack.
20033 Move to body declarations that are only used in the body: types Item_Id,
20034 Translation_Type, Item_Ptr, Item and its subtypes.
20035
20036 * vms_conv.adb: (Initialize): Add data for new command Stack.
20037 Add declarations moved from the spec: types Item_Id, Translation_Type,
20038 Item_Ptr, Item and its subtypes.
20039 (Cargs_Buffer): New table
20040 (Cargs): New Boolean global variable
20041 (Process_Buffer): New procedure to create arguments
20042 (Place): Put character in table Buffer or Cargs_Buffer depending on the
20043 value of Cargs.
20044 (Process_Argument): Set Cargs when processing qualifiers for GNAT
20045 COMPILE
20046 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
20047 empty, for table Cargs_Buffer.
20048 (Initialize): Remove component Setup in Command_List
20049
20050 2007-04-06 Vincent Celier <celier@adacore.com>
20051
20052 * gprep.adb (Process_Files.Process_One_File): Use full file name when
20053 issuing pragma Source_Reference.
20054
20055 2007-04-06 Emmanuel Briot <briot@adacore.com>
20056
20057 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
20058 [[:xdigit:]] character class.
20059 Also raise an exception when an invalid character class is used.
20060
20061 2007-04-06 Pascal Obry <obry@adacore.com>
20062
20063 * i-cstrea.ads: (fopen): Add encoding parameter.
20064 (freopen): Idem.
20065 Change reference from a-sysdep.c to sysdep.c in comment.
20066 Update copyright notice.
20067 This set of patch add support for the encoding form parameter.
20068
20069 * mingw32.h (S2WSU): New macro to convert from a string to a
20070 wide-string using the UTF-8 encoding. The S2WS macro supports now only
20071 standard 8bits encoding.
20072 (WS2SU): As above but converting from wide-sring to string.
20073 This is needed as it is necessary to have access to both versions in the
20074 runtime for the form parameter encoding support.
20075 This set of patch add support for the encoding form parameter.
20076 (S2WS): Improve implementation to handle cases where the filename is not
20077 UTF-8 encoded. In this case we default to using the current code page
20078 for the conversion.
20079
20080 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
20081 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
20082 the constants defined in adaint.h.
20083 (fopen): Add encoding parameter.
20084 (freopen): Idem.
20085
20086 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
20087 encoding. This is needed for the Reset routine (freopen low level-call).
20088
20089 * s-fileio.adb (Open): Decode encoding form parameter and set the
20090 corresponding encoding value into AFCB structure.
20091 (Reset): Pass the encoding value to freopen.
20092 (Close): Move the call to Lock_Task to the beginning of the procedure.
20093
20094 2007-04-06 Geert Bosch <bosch@adacore.com>
20095 Robert Dewar <dewar@adacore.com>
20096
20097 * i-fortra.ads: Add Double_Complex type.
20098
20099 * impunit.adb: (Is_Known_Unit): New function
20100 Add Gnat.Byte_Swapping
20101 Add GNAT.SHA1
20102 Add new Ada 2005 units
20103 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
20104 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
20105 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
20106 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
20107
20108 * impunit.ads (Is_Known_Unit): New function
20109
20110 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
20111 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
20112 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
20113 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
20114 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
20115 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
20116 New files.
20117
20118 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
20119
20120 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
20121
20122 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20123 Arnaud Charlet <charlet@adacore.com>
20124
20125 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
20126 __gnat_adjust_context_for_raise.
20127 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
20128 implementation of floating point operations as native x86 targets.
20129 So the FPU should be initialized in the same way using finit. Fix
20130 floating point operations accuracy issues.
20131 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
20132 member in struct sigaction, so as to avoid warning for incompatible
20133 pointer types.
20134
20135 2007-04-06 Serguei Rybin <rybin@adacore.com>
20136
20137 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
20138 switches from previously loaded tree
20139
20140 2007-04-06 Thomas Quinot <quinot@adacore.com>
20141
20142 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
20143 cases where a given dependency has a body or not.
20144 (Write_With_File_Names): New subprogram, common code for the two cases
20145 above.
20146
20147 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20148 Javier Miranda <miranda@adacore.com>
20149
20150 * lib-xref.ads, lib-xref.adb:
20151 Modify the loop that collects type references, to include interface
20152 types that the type implements. List each of these interfaces when
20153 building the entry for the type.
20154 (Generate_Definition): Initialize component Def and Typ of new entry
20155 in table Xrefs, to avoid to have these components unitialized.
20156 (Output_References): Split Is_Abstract flag into
20157 Is_Abstract_Subprogram and Is_Abstract_Type.
20158 (Generate_Reference): Add barrier to do not generate the warning
20159 associated with Ada 2005 entities with entities generated by the
20160 expander.
20161
20162 2007-04-06 Robert Dewar <dewar@adacore.com>
20163 Arnaud Charlet <charlet@adacore.com>
20164 Vincent Celier <celier@adacore.com>
20165
20166 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
20167 Update 'Exception Handling Control' chapter which was outdated.
20168 Minor fix to documentation of -gnatwq
20169 Remove section "Adapting the Run Time to a New C++ Compiler" because
20170 it is now obsolete.
20171 Add passage on need of -nostart-files in some non-ada-main cases.
20172 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
20173 Update documentation about Interfacing with C++
20174 Add documentation for new gnatmake switch -p
20175 Add missing protocol part in URLs.
20176 Document -gnatyA
20177 Document pragma Compile_Time_Error
20178 Add documentation for Object_Size indicating that stand alone
20179 objects can have a larger size in some cases.
20180 Add node for GNAT.Byte_Swapping, GNAT.SHA1
20181 Update reference to the Ravenscar profile.
20182 Document pragma Unreferenced_Objects
20183
20184 * gnat-style.texi: Fix typo
20185
20186 2007-04-06 Vincent Celier <celier@adacore.com>
20187
20188 * mlib.adb (Building_Library): Only output "building a library..." in
20189 verbose mode
20190
20191 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
20192 files in verbose mode.
20193
20194 * mlib-utl.adb (Ar): Only output the first object files when not in
20195 verbose mode.
20196 (Gcc): Do not display all the object files if not in verbose mode, only
20197 the first one.
20198
20199 2007-04-06 Robert Dewar <dewar@adacore.com>
20200
20201 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
20202 it no longer destroys the contents of Name_Buffer or Name_Len and
20203 non-standard and invalid names are handled better.
20204 (Get_Decoded_Name_String): Improve performance by using
20205 Name_Has_No_Encodings flag in the name table.
20206 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
20207 Used for debugging printouts.
20208
20209 2007-04-06 Robert Dewar <dewar@adacore.com>
20210 Javier Miranda <miranda@adacore.com>
20211 Bob Duff <duff@adacore.com>
20212
20213 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
20214 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
20215 there is no need to generate always a record_definition_node in case
20216 of synchronized interface types.
20217 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
20218 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
20219 illegal in Ada 95, in cases where it is legal. Change the warnings to
20220 errors in other cases. Don't give the error unless the "not null"
20221 parses properly. Correct the source position at which the error occurs.
20222 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
20223 P_Null_Exclusion, to suppress "not null" warnings.
20224 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
20225 associated goto statements.
20226
20227 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
20228 of END RECORD
20229
20230 * scans.ads (Type_Token_Location): New flag
20231
20232 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
20233 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
20234 P_Null_Exclusion, to suppress "not null" warnings.
20235
20236 2007-04-06 Robert Dewar <dewar@adacore.com>
20237 Javier Miranda <miranda@adacore.com>
20238 Bob Duff <duff@adacore.com>
20239 Vincent Celier <celier@adacore.com>
20240
20241 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
20242 (Extensions_Allowed): No longer sets Ada_Version
20243 Entry for pragma Unreferenced_Objects
20244
20245 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
20246 system.tasking if pragma priority used in a procedure
20247 (Analyze_Pragma, case Warning): Handle dot warning switches
20248 (Process_Compile_Time_Warning_Or_Error): New procedure
20249 (Analyze_Pragma): Add processing for Compile_Time_Error
20250 Add support for extra arguments External_Name and Link_Name.
20251 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
20252 (Process_Import_Or_Interface): Add support for the use of pragma Import
20253 with tagged types.
20254 (Extensions_Allowed): No longer affects Ada_Version
20255 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
20256 Is_Abstract_Type. Make sure these are called only when appropriate.
20257 Add processing for pragma Unreferenced_Objects
20258
20259 * snames.h, snames.ads, snames.adb: Add entry for pragma
20260 Compile_Time_Error
20261 Add new standard name Minimum_Binder_Options for new gprmake
20262 Add new standard names for gprmake: Archive_Suffix,
20263 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
20264 Library_Support, Library_Version_Options,
20265 Shared_Library_Minimum_Options,
20266 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
20267 Change Name_Call to Name_uCall so that it cannot clash with a legal
20268 subprogram name.
20269 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
20270 Append C_Plus_Plus to convention identifiers as synonym for CPP
20271 Add new standard names Stack and Builder_Switches
20272 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
20273 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
20274 Run_Path_Option, Toolchain_Version.
20275 Entry for pragma Unreferenced_Objects
20276
20277 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
20278 switches, without repetition of "eD". Make sure that last character of
20279 -gnatep= switch is not taken as -gnat switch character.
20280 Complete rewrite of circuit for handling saving compilation options
20281 Occasioned by need to support dot switchs for -gnatw, but cleans up
20282 things in general.
20283 -gnatX does not affect Ada_Version
20284 Include -gnatyA in -gnatg style switches
20285
20286 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
20287 warnings on return objects.
20288 (Warn_On_Useless_Assignment): Exclude warnings on return objects
20289 (Set_Dot_Warning_Switch): New procedure
20290 (Check_References): Add missing case of test for
20291 Has_Pragma_Unreferenced_Objects
20292 (Output_Unreferenced_Messages): Implement effect of new pragma
20293 Unreferenced_Objects, remove special casing of limited controlled
20294 variables.
20295
20296 2007-04-06 Vincent Celier <celier@adacore.com>
20297
20298 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
20299 the default project path, initially done during elaboration of the
20300 package.
20301 If the prefix returned by Sdefault is null, get the prefix from a call
20302 to Executable_Prefix_Path.
20303 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
20304 null.
20305
20306 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
20307 canonical directory name to open the directory from which files are
20308 retrieved.
20309 (Record_Other_Sources): Idem.
20310 (Locate_Directory): Add the possibility to create automatically missing
20311 directories when Setup_Projects is True.
20312 Call Locate_Directory so that the directory will be created when
20313 Setup_Projects is True, for object dir, library dir, library ALI dir,
20314 library source copy dir and exec dir.
20315
20316 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
20317 versions of GNAT.
20318
20319 2007-04-06 Robert Dewar <dewar@adacore.com>
20320
20321 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
20322 Use First/Next_Component_Or_Discriminant
20323 (Analyze_Record_Representation_Clause):
20324 Use First/Next_Component_Or_Discriminant
20325 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
20326 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
20327 definition if type is unconstrained.
20328 (Adjust_Record_For_Reverse_Bit_Order): New procedure
20329 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
20330 Is_Abstract_Subprogram and Is_Abstract_Type.
20331 (Adjust_Record_For_Reverse_Bit_Order): New procedure
20332
20333 * repinfo.adb (List_Record_Info): Use First/
20334 Next_Component_Or_Discriminant.
20335
20336 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
20337 New procedure.
20338
20339 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
20340 Include -gnatyA in default switches
20341
20342 * opt.ads: (Warn_On_Non_Local_Exception): New flag
20343 (Warn_On_Reverse_Bit_Order): New flag
20344 (Extensions_Allowed): Update the documentation.
20345 (Warn_On_Questionable_Missing_Parens): Now on by default
20346
20347 * usage.adb: Add documentation of -gnatw.x/X switches
20348 Document new -gnatyA style switch
20349 -gnatq warnings are on by default
20350
20351 2007-04-06 Ed Falis <falis@adacore.com>
20352
20353 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
20354 full word is no longer compared twice.
20355
20356 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20357
20358 * sem_ch10.adb (Install_Limited_Context_Clauses.
20359 Expand_Limited_With_Clause): Use a new copy of selector name in the
20360 call to Make_With_Clause. This fixes the tree structure for ASIS
20361 purposes. Nothing is changed in the compiler behaviour.
20362 (Process_Body_Clauses): Handle properly use clauses whose prefix is
20363 a package renaming.
20364 (Install_Limited_With_Clauses): Do not install non-limited view when it
20365 is still incomplete.
20366
20367 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20368 Gary Dismukes <dismukes@adacore.com>
20369
20370 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
20371 when capturing size information, instead of base type, which for a
20372 formal array type will be the unconstrained type.
20373 (Analyze_Formal_Object_Declaration): Add check for illegal default
20374 expressions for a formal in object of a limited type.
20375 (Instantiate_Object): Ditto.
20376 (Check_Formal_Package_Instance): Skip entities that are formal objects,
20377 because they were defaulted in the formal package and no check applies
20378 to them.
20379 (Check_Formal_Package_Instance): Extend conformance check to other
20380 discrete types beyond Integer.
20381 (Process_Default): Copy directly the unmatched formal. A generic copy
20382 has already been performed in Analyze_Formal_Package.
20383 (Analyze_Associations): If a formal subprogram has no match, check for
20384 partial parametrization before looking for a default, to prevent
20385 spurious errors.
20386 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
20387 not set the instantiation environment before analyzing the actuals.
20388 Fixes regression on 8515-003 with implementation of AI-133.
20389 Set_Instance_Env checks whether the generic unit is a predefined
20390 unit, in which case the instance must be analyzed with the latest Ada
20391 mode. This setting must take place after analysis of the actuals,
20392 because the actuals must be analyzed and frozen in the Ada mode extant
20393 outside of the current instantiation.
20394 (Save_Env, Restore_Env): Preserve and restore the configuration
20395 parameters so that predefined units can be compiled in the proper Ada
20396 mode.
20397 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
20398 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
20399 and Is_Abstract_Type.
20400 (Analyze_Formal_Package): For better error recovery, Add exception
20401 handler to catch Instantion_Error, which can be raised in
20402 Analyze_Associations
20403
20404 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20405 Bob Duff <duff@adacore.com>
20406 Gary Dismukes <dismukes@adacore.com>
20407
20408 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
20409 prefix type is a discriminated subtype of the type of the formal.
20410 (Analyze_Allocator): Collect all coextensions regardless of the context.
20411 Whether they can be allocated statically is determined in exp_ch4.
20412 (Analyze_Selected_Component): If the prefix is a limited view and the
20413 non-limited view is available, use the non-limited one.
20414 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
20415 therefore illegal), suggest a qualified expression rather than a type
20416 conversion, because a type conversion would be illegal in this context.
20417 (Anayze_Allocator): Trace recursively all nested allocators so that all
20418 coextensions are on the corresponding list for the root. Do no mark
20419 coextensions if the root allocator is within a declaration for a stack-
20420 allocated object, because the access discriminants will be allocated on
20421 the stack as well.
20422 (Analyze_Call): Remove restriction on calls to limited functions for the
20423 cases of generic actuals for formal objects, defaults for formal objects
20424 and defaults for record components.
20425 (Analyze_Allocator): Before analysis, chain coextensions on the proper
20426 element list. Their expansion is delayed until the enclosing allocator
20427 is processed and its finalization list constructed.
20428 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
20429 for an operation with the given name among the primitive operations of
20430 the corresponding record type.
20431 (Analyze_Selected_Component): If the prefix is a task type that
20432 implements an interface, and there is no entry with the given name,
20433 check whether there is another primitive operation (e.g. a function)
20434 with that name.
20435 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
20436 properly the indexing of a function call written in prefix form, where
20437 the function returns an array type, and all parameters of the function
20438 except the first have defaults.
20439 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
20440 the original operands, rather than relocating them, for efficiency and
20441 to work properly when an operand is overloaded.
20442 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
20443 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
20444 (Analyze_Selected_Component): If the prefix is a private extension, only
20445 scan the visible components, not those of the full view.
20446 (Try_Primitive_Operation): If the operation is a procedure, collect all
20447 possible interpretations, as for a function, because in the presence of
20448 classwide parameters several primitive operations of the type can match
20449 the given arguments.
20450
20451 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20452 Robert Dewar <dewar@adacore.com>
20453
20454 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
20455 tag-indeterminate call to an abstract function, when the left-hand side
20456 is not classwide.
20457 (Analyze_Loop_Statement): Improve detection of infinite loops
20458
20459 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20460 Thomas Quinot <quinot@adacore.com>
20461
20462 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
20463 out of Analyze_Package_Declaration, because processing must be applied
20464 to package bodies as well, for deferred constants completed by pragmas.
20465 (Analyze_Package_Declaration): When the package declaration being
20466 analyzed does not require an explicit body, call Check_Completion.
20467 (May_Need_Implicit_Body): An implicit body is required when a package
20468 spec contains the declaration of a remote access-to-classwide type.
20469 (Analyze_Package_Body): If the package contains RACWs, append the
20470 pending subprogram bodies generated by exp_dist at the end of the body.
20471 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
20472 Is_Abstract_Subprogram and Is_Abstract_Type.
20473 (Preserve_Full_Attributes): The full entity list is not an attribute
20474 that must be preserved from full to partial view.
20475
20476 * sem_dist.adb (Add_RAS_Dereference_TSS):
20477 Change primitive name to _Call so it cannot clash with any legal
20478 identifier, and be special-cased in Check_Completion.
20479 Mark the full view of the designated type for the RACW associated with
20480 a RAS as Comes_From_Source to get proper view switching when installing
20481 private declarations.
20482 Provite a placeholder nested package body along with the nested spec
20483 to have a place for Append_RACW_Bodies to generate the calling stubs
20484 and stream attributes.
20485
20486 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20487 Robert Dewar <dewar@adacore.com>
20488
20489 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
20490 that is a limited view, check the non-limited view if available.
20491 (Undefined): Refine error message for missing with of Text_IO
20492 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
20493 to distinguish real missing with cases.
20494 Fix format of all missing with messages
20495 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
20496 renaming as body when renamed entity is abstract.
20497
20498 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20499 Javier Miranda <miranda@adacore.com>
20500
20501 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
20502 predicate recursive, to handle complex expressions on literals whose
20503 spurious ambiguity comes from the abstract interpretation of some
20504 subexpression.
20505 (Interface_Present_In_Ancestor): Add support to concurrent record
20506 types.
20507 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
20508 Is_Abstract_Subprogram and Is_Abstract_Type.
20509
20510 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20511 Javier Miranda <miranda@adacore.com>
20512
20513 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
20514 dereference of a local object R created as a reference to another
20515 object O, use the access level of O.
20516 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
20517 rather than local Same_Formal_Type, to check whether protected operation
20518 overrides an inherited one.
20519 (Same_Formal_Type): New predicate, used when matching signatures of
20520 overriding synchronized operations, to handle the case when a formal
20521 has a type that is a generic actual.
20522 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
20523 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
20524 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
20525 syntactic ambiguities involving indexing of function calls that return
20526 arrays.
20527 (Abstract_Interface_List): New subprogram that returns the list of
20528 abstract interfaces associated with a concurrent type or a
20529 concurrent record type.
20530 (Interface_Present_In_Parent): New subprogram used to check if a
20531 given type or some of its parents implement a given interface.
20532 (Collect_Abstract_Interfaces): Add support for concurrent types
20533 with interface types.
20534 (Has_Abstract_Interfaces): Add support for concurrent types with
20535 interface types.
20536 (Is_Parent): New subprogram that determines whether E1 is a parent
20537 of E2. For a concurrent type its parent is the first element of its
20538 list of interface types; for other types this function provides the
20539 same result than Is_Ancestor.
20540 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
20541 (Collect_Synchronized_Interfaces): Removed because the subprogram
20542 Collect_Abstract_Interfaces provides this functionality.
20543 (Collect_Abstract_Interfaces): Minor update to give support to
20544 concurrent types and thus avoid undesired code duplication.
20545 (Get_Subprogram_Entity): Handle entry calls.
20546 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
20547 entry calls.
20548 (Enter_Name): Do not give -gnatwh hiding warning for record component
20549 entities, they never result in hiding.
20550
20551 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20552 Robert Dewar <dewar@adacore.com>
20553
20554 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
20555 to chain nested components that are allocators for access discriminants
20556 of the enclosing object.
20557 Add N_Push and N_Pop nodes
20558 New field Exception_Label added
20559 (Local_Raise_Statements): New field in N_Exception_Handler_Node
20560 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
20561 (Is_Coextension): New flag for allocators, to mark allocators that
20562 correspond to access discriminants of dynamically allocated objects.
20563 (N_Block_Statement): Document the fact that the corresponding entity
20564 can be an E_Return_Statement.
20565 (Is_Coextension): New flag for allocators.
20566 Remove all code for DSP option
20567
20568 * sprint.ads, sprint.adb: Display basic information for class_wide
20569 subtypes. Add handling of N_Push and N_Pop nodes
20570
20571 2007-04-06 Arnaud Charlet <charlet@adacore.com>
20572
20573 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
20574 before propagating exception.
20575
20576 2007-04-06 Olivier Hainque <hainque@adacore.com>
20577
20578 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
20579 an address always within the call instruction from a return address.
20580
20581 2007-04-06 Olivier Hainque <hainque@adacore.com>
20582 Eric Botcazou <botcazou@adacore.com>
20583
20584 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
20585 expression with a COMPOUND_EXPR including the call instead of emitting
20586 the call directly here.
20587 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
20588 high bound is constant and the slice is empty. Tidy.
20589 (tree_transform, case N_Op_Not): Handle properly the case where the
20590 operation applies to a private type whose full view is a modular type.
20591 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
20592 Address_Clause, use the associated Expression as the GNAT tree
20593 representing the choice value to ensure the corresponding GCC tree is
20594 of the proper kind.
20595 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
20596 instead of just the operands, as the base GCC stabilize_reference does.
20597 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
20598 requested; otherwise fail.
20599 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
20600
20601 2007-04-06 Thomas Quinot <quinot@adacore.com>
20602
20603 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
20604 implementation of UI_Div.
20605 (UI_Div): Reimplement as a call to UI_Div_Rem.
20606 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
20607 remainder, avoiding the cost of a multiplication and a subtraction.
20608 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
20609 provides both quotient and remainder in a single computation.
20610 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
20611 functions for uint.
20612 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
20613 is undefined if the given n is not inversible.
20614
20615 2007-04-06 Olivier Hainque <hainque@adacore.com>
20616
20617 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
20618 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
20619 opcodes.
20620
20621 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20622 Olivier Hainque <hainque@adacore.com>
20623
20624 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
20625 when updating the contents of the old pointer to an unconstrained array.
20626 (end_subprog_body): Set error_gnat_node to Empty.
20627 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
20628 (unchecked_convert): For subtype to base type conversions, require that
20629 the source be a subtype if it is an integer type.
20630 (builtin_decls): New global, vector of available builtin functions.
20631 (gnat_pushdecl): Add global builtin function declaration nodes to the
20632 builtin_decls list.
20633 (gnat_install_builtins): Adjust comments.
20634 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
20635 calling gnat_pushdecl, so that it knows when it handed a builtin
20636 function declaration node.
20637 (builtin_decl_for): Search the builtin_decls list.
20638
20639 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20640
20641 * s-stchop-vxworks.adb:
20642 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
20643
20644 2007-04-06 Robert Dewar <dewar@adacore.com>
20645 Arnaud Charlet <charlet@adacore.com>
20646
20647 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
20648
20649 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
20650 of files
20651 Add mention of -Sev (set initialize_scalars option from environment
20652 variable at run time) in gnatbind usage message.
20653
20654 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
20655
20656 * fname-uf.ads: Minor comment fix
20657
20658 * osint.ads: Change pragma Elaborate to Elaborate_All
20659
20660 * par-load.adb: Add documentation.
20661
20662 * sem_cat.ads, sem_cat.adb: Minor code reorganization
20663
20664 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
20665
20666 * s-secsta.ads: Extra comments
20667
20668 * s-soflin.ads: Minor comment fixes
20669
20670 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
20671
20672 * s-wchcon.ads: Minor comment addition
20673
20674 * treepr.adb: Minor change in message
20675 (Print_Name,Print_Node): Make these debug printouts more robust: print
20676 "no such..." instead of crashing on bad input.
20677
20678 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
20679
20680 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
20681 instead of gnat_signed_or_unsigned_type.
20682 * utils.c (gnat_signed_or_unsigned_type): Remove.
20683 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
20684 * gigi.h (gnat_signed_or_unsigned_type): Remove
20685
20686 2007-03-09 Roger Sayle <roger@eyesopen.com>
20687
20688 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
20689 fold with the result of buildN.
20690 * decl.c (gnat_to_gnu_entity): Likewise.
20691 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
20692 * utils.c (finish_record_type, merge_sizes, max_size, convert):
20693 Likewise.
20694 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
20695 nonbinary_modular_operation, build_binary_op, build_unary_op,
20696 build_cond_expr): Likewise.
20697
20698 * utils.c (convert): Use fold_build1 when casting values to void.
20699 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
20700 fold_convert instead of convert when appropriate.
20701
20702 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
20703
20704 * Make-lang.in: Add install-pdf target as copied from
20705 automake v1.10 rules.
20706
20707 2007-02-28 Andreas Schwab <schwab@suse.de>
20708
20709 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
20710 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
20711 (doc/gnat-style.info): Likewise.
20712
20713 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
20714
20715 * gnat-style.texi: Standardize title page.
20716 * gnat_rm.texi: Likewise.
20717 * gnat_ugn.texi: Likewise.
20718
20719 2007-02-25 Mark Mitchell <mark@codesourcery.com>
20720
20721 * decl.c (annotate_value): Adjust for refactoring of tree_map
20722 hierarchy.
20723
20724 2007-02-24 Mark Mitchell <mark@codesourcery.com>
20725
20726 * decl.c (annotate_value): Adjust for refactoring of tree_map
20727 hierarchy.
20728
20729 2007-02-21 Ed Schonberg <schonberg@adacore.com>
20730
20731 PR ada/18819
20732 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
20733 untagged derived type, add hidden components to keep discriminant
20734 layout consistent, when a given discriminant of the derived type
20735 constraints several discriminants of the parent type.
20736
20737 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
20738 Sandra Loosemore <sandra@codesourcery.com>
20739
20740 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
20741 build the call expression.
20742 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
20743 * utils.c (max_size) <tcc_exceptional>: Delete.
20744 <tcc_vl_exp>: New case.
20745 <tcc_expression>: Delete CALL_EXPR subcase.
20746 (build_global_cdtor): Use build_call_nary instead of build3.
20747 * utils2.c (build_call_1_expr): Likewise.
20748 (build_call_2_expr): Likewise.
20749 (build_call_0_expr): Likewise.
20750 (build_call_alloc_dealloc): Likewise.
20751
20752 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
20753
20754 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
20755 get_action_description_for): Replace _Unwind_Word with _uleb128_t
20756 and _Unwind_SWord with _sleb128_t.
20757
20758 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
20759
20760 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
20761 * decl.c: Include gt-ada-decl.h.
20762 (annotate_value_cache): New.
20763 (annotate_value): Use it instead of TREE_COMPLEXITY.
20764
20765 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
20766
20767 * misc.c, utils2.c: Fix comment typos.
20768
20769 2007-01-24 Roger Sayle <roger@eyesopen.com>
20770
20771 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
20772 TREE_CONSTANT_OVERFLOW.
20773 (allocatable_size_p, annotate_value): Likewise.
20774 * trans.c (gnat_to_gnu): Likewise.
20775 * utils.c (unchecked_convert): Likewise.
20776 * utils2.c (build_simple_component_ref): Likewise.
20777
20778 2007-01-23 Richard Guenther <rguenther@suse.de>
20779
20780 PR bootstrap/30541
20781 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
20782 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
20783 (gnatboot3): Likewise.
20784 (GNATBIND): Do not define.
20785 * Makefile.in (GNATBIND): Do not define.
20786
20787 2007-01-08 Richard Guenther <rguenther@suse.de>
20788
20789 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
20790 * trans.c (gnat_to_gnu): Likewise.
20791
20792 2006-12-07 Geoffrey Keating <geoffk@apple.com>
20793
20794 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
20795 * adaint.c: Likewise.
20796
20797 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
20798
20799 Merge from gimple-tuples-branch:
20800 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
20801
20802 * ada-tree.h (lang_tree_node): Handle gimple tuples.
20803 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
20804 GIMPLE_MODIFY_STMT.
20805
20806 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
20807
20808 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
20809 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
20810 Fix typos.
20811
20812 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
20813
20814 PR ada/27936
20815 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
20816 if the initializer takes into account the padding.
20817
20818 2006-11-11 Richard Guenther <rguenther@suse.de>
20819
20820 * trans.c (maybe_stabilize_reference): Remove handling of
20821 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
20822
20823 2006-11-05 Arnaud Charlet <charlet@adacore.com>
20824
20825 PR ada/29707
20826 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
20827 (To_Target_Priority): New function.
20828
20829 2006-10-31 Robert Dewar <dewar@adacore.com>
20830
20831 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
20832 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
20833 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
20834 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
20835 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
20836 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
20837 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
20838 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
20839 a-szbzha.adb: Minor reformatting. Fix header.
20840
20841 * a-numaux-x86.adb: Add parentheses for use of unary minus
20842 * a-ngcefu.adb: Supply missing parentheses for unary minus
20843 * a-ngcoty.adb: Add parens for use of unary minus
20844 * a-ngelfu.adb: Add missing parens for unary minus
20845 * a-tifiio.adb: Add parentheses for uses of unary minus
20846
20847 2006-10-31 Robert Dewar <dewar@adacore.com>
20848 Bob Duff <duff@adacore.com>
20849 Ed Schonberg <schonberg@adacore.com>
20850
20851 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
20852 with multiplying operator.
20853 (Expected_Type_Is_Any_Real): New function to determine from the Parent
20854 pointer whether the context expects "any real type".
20855 (Resolve_Arithmetic_Op): Do not give an error on calls to the
20856 universal_fixed "*" and "/" operators when they are used in a context
20857 that expects any real type. Also set the type of the node to
20858 Universal_Real in this case, because downstream processing requires it
20859 (mainly static expression evaluation).
20860 Reword some continuation messages
20861 Add some \\ sequences to continuation messages
20862 (Resolve_Call): Refine infinite recursion case. The test has been
20863 sharpened to eliminate some false positives.
20864 Check for Current_Task usage now includes entry barrier, and is now a
20865 warning, not an error.
20866 (Resolve): If the call is ambiguous, indicate whether an interpretation
20867 is an inherited operation.
20868 (Check_Aggr): When resolving aggregates, skip associations with a box,
20869 which are priori correct, and will be replaced by an actual default
20870 expression in the course of expansion.
20871 (Resolve_Type_Conversion): Add missing support for conversion from
20872 a class-wide interface to a tagged type. Minor code cleanup.
20873 (Valid_Tagged_Converion): Add support for abstact interface type
20874 conversions.
20875 (Resolve_Selected_Component): Call Generate_Reference here rather than
20876 during analysis, and use May_Be_Lvalue to distinguish read/write.
20877 (Valid_Array_Conversion): New procedure, abstracted from
20878 Valid_Conversion, to incorporate accessibility checks for arrays of
20879 anonymous access types.
20880 (Valid_Conversion): For a conversion to a numeric type occurring in an
20881 instance or inlined body, no need to check that the operand type is
20882 numeric, since this has been checked during analysis of the template.
20883 Remove legacy test for scope name Unchecked_Conversion.
20884
20885 * sem_res.ads: Minor reformatting
20886
20887 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
20888 (PE_Current_Task_In_Entry_Body): New exception code
20889 (SE_Restriction_Violation): Removed, not used
20890
20891 * a-except.ads: Update comments.
20892
20893 * types.h, types.ads: Add definition for Validity_Check
20894 (PE_Current_Task_In_Entry_Body): New exception code
20895 (SE_Restriction_Violation): Removed, not used
20896
20897 2006-10-31 Thomas Quinot <quinot@adacore.com>
20898
20899 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
20900 error status.
20901
20902 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20903 Jose Ruiz <ruiz@adacore.com>
20904
20905 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
20906 part of Ada.Calendar: all subprogram raise Unimplemented.
20907 (Split_W_Offset): Temp function body, raising Unimplemented
20908
20909 * a-calend.ads, a-calend-vms.ads:
20910 Add imported variable Invalid_TZ_Offset used to designate targets unable
20911 to support time zones.
20912 (Unimplemented): Temporary function raised by the body of new
20913 subprograms below.
20914 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
20915 unit provides handling of leap seconds and is used by the new Ada 2005
20916 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
20917 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
20918 version returns an extra value which is the offset to UTC.
20919
20920 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
20921 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
20922 (Split_W_Offset): New function body.
20923 (Time_Of): When a date is close to UNIX epoch, compute the time for
20924 that date plus one day (that amount is later substracted after
20925 executing mktime) so there are no problems with time zone adjustments.
20926
20927 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
20928
20929 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
20930 a-catizo.ads, a-catizo.adb: New files.
20931
20932 * impunit.adb: Add new Ada 2005 entries
20933
20934 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
20935 Rename all occurences of "__gnat_localtime_r" to
20936 "__gnat_localtime_tzoff".
20937 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
20938 zone data and calculate the GMT offset.
20939 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
20940 Use the field "tm_gmtoff" to extract the GMT offset.
20941 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
20942 the external variable "timezone" to calculate the GMT offset.
20943
20944 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20945 Jose Ruiz <ruiz@adacore.com>
20946
20947 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
20948 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
20949 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
20950 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
20951 System.Any_Priority to a POSIX priority on the target.
20952
20953 * system-linux-ia64.ads:
20954 Extend range of Priority types on Linux to use the whole range made
20955 available by the system.
20956
20957 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
20958 function maps from System.Any_Priority to a POSIX priority on the
20959 target.
20960 (PTHREAD_PRIO_PROTECT): Set real value.
20961 (PTHREAD_PRIO_INHERIT): Now a function.
20962 (SIGCPUFAIL): New signal.
20963 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
20964 are documented as reserved by the OS.
20965
20966 * system-aix.ads: Use the full range of priorities provided by the
20967 system on AIX.
20968
20969 * s-taprop-posix.adb: Call new function To_Target_Priority.
20970 (Set_Priority): Take into account Task_Dispatching_Policy and
20971 Priority_Specific_Dispatching pragmas when determining if Round Robin
20972 must be used for scheduling the task.
20973
20974 * system-linux-x86_64.ads, system-linux-x86.ads,
20975 system-linux-ppc.ads: Extend range of Priority types on Linux to use
20976 the whole range made available by the system.
20977
20978 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
20979 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
20980 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
20981 when deallocating the TCB in order to avoid potential references to
20982 deallocated data.
20983 (Set_Priority): Take into account Task_Dispatching_Policy and
20984 Priority_Specific_Dispatching pragmas when determining if Round Robin
20985 or FIFO within priorities must be used for scheduling the task.
20986
20987 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
20988 the Thread field (to be used internally by the run-time system) and the
20989 kernel-level task id in the LWP field (to be used by the debugger).
20990 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
20991 instance, and propagate the current task options to the spawned task.
20992 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
20993 (Initialize): Set Round Robin dispatching when the corresponding pragma
20994 is in effect.
20995
20996 2006-10-31 Robert Dewar <dewar@adacore.com>
20997
20998 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20999 system-linux-hppa.ads, system-hpux-ia64.ads,
21000 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
21001 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
21002 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
21003 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
21004 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21005 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21006 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
21007 Default_Bit_Order) to kill constant condition warnings for references
21008 to this switch.
21009
21010 2006-10-31 Vincent Celier <celier@adacore.com>
21011 Eric Botcazou <ebotcazou@adacore.com>
21012
21013 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
21014 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
21015 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
21016 Ext_To, when building the library file name
21017
21018 * mlib-tgt-vxworks.adb: ditto.
21019 (Get_Target_Suffix): Add support for x86 targets.
21020
21021 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
21022
21023 * mlib-tgt-darwin.adb:
21024 Use Append_To, instead of Ext_To, when building the library file name
21025 (Flat_Namespace): New global variable.
21026 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
21027 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
21028 (Link_Shared_Libgcc): Delete.
21029 (Build_Dynamic_Library): Adjust for above changes.
21030 Use Opt package.
21031 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
21032
21033 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
21034
21035 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
21036 (Initialize): Add type conversions required by above change.
21037
21038 2006-10-31 Jose Ruiz <ruiz@adacore.com>
21039
21040 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
21041 (getpid): New body for this function that uses the underlying taskIdSelf
21042 function for VxWorks 5 and VxWorks 6 in kernel mode.
21043 (unsigned_int): New type, modular to allow logical bit operations.
21044 (taskOptionsGet): New imported function.
21045
21046 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
21047 field to be compliant with the type used by the corresponding operating
21048 system primitive.
21049
21050 2006-10-31 Pascal Obry <obry@adacore.com>
21051 Eric Botcazou <ebotcazou@adacore.com>
21052 Vincent Celier <celier@adacore.com>
21053
21054 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
21055 ASCII version of the registry API. This is needed as the GNAT runtime
21056 is now UNICODE by default.
21057 Include version.h.
21058 (get_gcc_version): Do not hardcode the return value.
21059 (__gnat_file_time_name): On Windows properly set the default returned
21060 value to -1 which corresponds to Invalid_Time.
21061 (__gnat_fopen): New routine. A simple wrapper on all plateforms
21062 except on Windows where it does conversion for unicode support.
21063 (__gnat_freopen): Idem.
21064 (__gnat_locate_exec_on_path): If environment variable PATH does not
21065 exist, return a NULL pointer
21066
21067 * adaint.h: (__gnat_fopen): Declare.
21068 (__gnat_freopen): Likewise.
21069
21070 * mingw32.h (_tfreopen): Define this macro here for older MingW
21071 version.
21072 Activate the unicode support on platforms using a MingW runtime
21073 version 3.9 or newer.
21074
21075 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
21076 This is needed for proper unicode support on Windows.
21077 (freopen): Idem.
21078
21079 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
21080 Nicolas Setton <setton@adacore.com>
21081 Olivier Hainque <hainque@adacore.com>
21082 Gary Dismukes <dismukes@adacore.com>
21083
21084 * gigi.h: (tree_code_for_record_type): Declare.
21085 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
21086 (get_global_renaming_pointers): Rename to
21087 invalidate_global_renaming_pointers.
21088 (static_ctors): Delete.
21089 (static_dtors): Likewise.
21090 (gnat_write_global_declarations): Declare.
21091 (create_var_decl): Adjust descriptive comment to indicate that the
21092 subprogram may return a CONST_DECL node.
21093 (create_true_var_decl): Declare new function, similar to
21094 create_var_decl but forcing the creation of a VAR_DECL node.
21095 (get_global_renaming_pointers): Declare.
21096 (add_global_renaming_pointer): Likewise.
21097
21098 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
21099
21100 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
21101 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
21102 processing.
21103 (gnat_to_gnu_entity): Remove From_With_Type from computation for
21104 imported_p.
21105 <E_Access_Type>: Use the Non_Limited_View as the full view of the
21106 designated type if the pointer comes from a limited_with clause. Make
21107 incomplete designated type if it is in the main unit and has a freeze
21108 node.
21109 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
21110 Underlying_Full_View similarly. Return earlier if the full view already
21111 has an associated tree.
21112 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
21113 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
21114 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
21115 reference type built for objects with an address clause.
21116 Use create_true_var_decl with const_flag set for
21117 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
21118 TREE_READONLY set.
21119 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
21120 for Character and Wide_Character types. This info is read by the
21121 dwarf-2 writer, and is needed to be able to use the command "ptype
21122 character" in the debugger.
21123 (gnat_to_gnu_entity): When generating a type representing
21124 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
21125 so that debug writers can distinguish it from ordinary integers.
21126 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
21127 addition to TREE_READONLY to assert the constantness of variables for
21128 elaboration purposes.
21129 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
21130 parameters to call new Einfo function First_Formal_With_Extras.
21131 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
21132 protected type with its corresponding discriminant, to obtain a usable
21133 declaration
21134 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
21135 for a multiple elaboration of the "equivalent" type.
21136 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
21137 into record_global_renaming_pointer.
21138 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
21139 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
21140 <E_Array_Subtype>: Likewise.
21141 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
21142 incomplete subtypes and incomplete subtypes of incomplete types visible
21143 through a limited with clause.
21144 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
21145 the base index type for the maximum size of the array only if they are
21146 constant.
21147 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
21148 expression into a SAVE_EXPR if stabilization failed.
21149
21150 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
21151 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
21152 by lower level compilation passes.
21153 (gnat_genericize): New function, lowering a function body to GENERIC.
21154 Turn the type of RESULT_DECL into a real reference type if the decl
21155 has been marked DECL_BY_REFERENCE, and adjust references to the latter
21156 accordingly.
21157 (gnat_genericize_r): New function. Tree walking callback for
21158 gnat_genericize.
21159 (convert_from_reference, is_byref_result): New functions. Helpers for
21160 gnat_genericize_r.
21161 (create_type_decl): Call gnat_pushdecl before calling
21162 rest_of_decl_compilation, to make sure that field TYPE_NAME of
21163 type_decl is properly set before calling the debug information writers.
21164 (write_record_type_debug_info): The heuristics which compute the
21165 alignment of a field in a variant record might not be accurate. Add a
21166 safety test to make sure no alignment is set to a smaller value than
21167 the alignment of the field type.
21168 (make_dummy_type): Use the Non_Limited_View as the underlying type if
21169 the type comes from a limited_with clause. Do not loop on the full view.
21170 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
21171 (dummy_node_table): New global variable, moved from decl.c.
21172 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
21173 (save_gnu_tree): Use above macros.
21174 (get_gnu_tree): Likewise.
21175 (present_gnu_tree): Likewise.
21176 (init_dummy_type): New function, moved from decl.c. Use above macros.
21177 (make_dummy_type): Likewise.
21178 (tree_code_for_record_type): New function extracted from make_dummy_type
21179 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
21180 (static_ctors): Change it to a vector, make static.
21181 (static_dtors): Likewise.
21182 (end_subprog_body): Adjust for above change.
21183 (build_global_cdtor): Moved from trans.c.
21184 (gnat_write_global_declarations): Emit global constructor and
21185 destructor, and call cgraph_optimize before emitting debug info for
21186 global declarations.
21187 (global_decls): New global variable.
21188 (gnat_pushdecl): Store the global declarations in global_decls, for
21189 later use.
21190 (gnat_write_global_declarations): Emit debug information for global
21191 declarations.
21192 (create_var_decl_1): Former create_var_decl, with an extra argument to
21193 state whether the creation of a CONST_DECL is allowed.
21194 (create_var_decl): Behavior unchanged. Now a wrapper around
21195 create_var_decl_1 allowing CONST_DECL creation.
21196 (create_true_var_decl): New function, similar to create_var_decl but
21197 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
21198 (create_field_decl): Do not always mark the field as addressable
21199 if its type is an aggregate.
21200 (global_renaming_pointers): New static variable.
21201 (add_global_renaming_pointer): New function.
21202 (get_global_renaming_pointers): Likewise.
21203
21204 * misc.c (gnat_dwarf_name): New function.
21205 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
21206 (gnat_post_options): Add comment about structural alias analysis.
21207 (gnat_parse_file): Do not call cgraph_optimize here.
21208 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
21209
21210 * trans.c (process_freeze_entity): Don't abort if we already have a
21211 non dummy GCC tree for a Concurrent_Record_Type, as it might
21212 legitimately have been elaborated while processing the associated
21213 Concurrent_Type prior to this explicit freeze node.
21214 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
21215 exception handler volatile if it is of variable size.
21216 (process_type): Remove bypass for types coming from a limited_with
21217 clause.
21218 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
21219 actual, convert the corresponding gnu_actual to the real destination
21220 type when necessary.
21221 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
21222 originally TREE_READONLY but whose elaboration cannot be performed
21223 statically.
21224 Part of fix for F504-021.
21225 (tree_transform, subprogram cases): Change loops on formal parameters to
21226 call new Einfo function First_Formal_With_Extras.
21227 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
21228 stemming from type conversion for the lhs.
21229 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
21230 number of bits per unit for components of records.
21231 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
21232 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
21233 with At_End_Proc after the SJLJ EH cleanup.
21234 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
21235 compilation unit.
21236 (elaborate_all_entities): Do not retest type_annotate_only.
21237 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
21238 result type of an abstract subprogram, which may be an itype associated
21239 with an anonymous access result (related to AI-318-02).
21240 (build_global_cdtor): Move to utils.c.
21241 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
21242 this choice is not a null tree nor an integer constant.
21243 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
21244 on the body of elaboration routines instead of mark_unvisited.
21245 (add_stmt): Do not mark the tree.
21246 (add_decl_expr): Tweak comment.
21247 (mark_unvisited): Delete.
21248 (unshare_save_expr): New static function.
21249 (call_to_gnu): Issue an error when making a temporary around a
21250 procedure call because of non-addressable actual parameter if the
21251 type of the formal is by_reference.
21252 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
21253 after building the elaboration routine.
21254
21255 2006-10-31 Bob Duff <duff@adacore.com>
21256
21257 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
21258 as finalization-started, so we can raise Program_Error on 'new'.
21259
21260 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
21261 collection has already started.
21262
21263 * s-finimp.ads (Collection_Finalization_Started): Added new special
21264 flag value for indicating that a collection's finalization has started.
21265
21266 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
21267 create a task whose master has already waited for dependent tasks.
21268
21269 2006-10-31 Robert Dewar <dewar@adacore.com>
21270
21271 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
21272
21273 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
21274 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
21275 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
21276 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
21277 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
21278 a-except-2005.ads: Add pragma Preelaborable_Warning
21279
21280 2006-10-31 Robert Dewar <dewar@adacore.com>
21281 Jose Ruiz <ruiz@adacore.com>
21282
21283 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
21284
21285 * ali.adb (Get_Name): Properly handle scanning of wide character names
21286 encoded with brackets notation.
21287 (Known_ALI_Lines): Add S lines to this list.
21288 (Scan_ALI): Acquire S (priority specific dispatching) lines.
21289 New flag Elaborate_All_Desirable in unit table
21290
21291 * ali.ads (Priority_Specific_Dispatching): Add this range of
21292 identifiers to be used for Priority_Specific_Dispatching table entries.
21293 (ALIs_Record): Add First_Specific_Dispatching and
21294 Last_Specific_Dispatching that point to the first and last entries
21295 respectively in the priority specific dispatching table for this unit.
21296 (Specific_Dispatching): Add this table for storing each S (priority
21297 specific dispatching) line encountered in the input ALI file.
21298 New flag Elaborate_All_Desirable in unit table
21299
21300 * bcheck.adb: (Check_Configuration_Consistency): Add call to
21301 Check_Consistent_Dispatching_Policy.
21302 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
21303 verifying that the use of Priority_Specific_Dispatching,
21304 Task_Dispatching_Policy, and Locking_Policy is consistent across the
21305 partition.
21306
21307 * bindgen.adb: (Public_Version_Warning): function removed.
21308 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
21309 required information from ALI files in order to initialize the table
21310 containing the specific dispatching policy.
21311 (Gen_Adainit_Ada): Generate the variables required for priority specific
21312 dispatching entries (__gl_priority_specific_dispatching and
21313 __gl_num_specific_dispatching).
21314 (Gen_Adainit_C): Generate the variables required for priority specific
21315 dispatching entries (__gl_priority_specific_dispatching and
21316 __gl_num_specific_dispatching).
21317 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
21318 pragma entries.
21319 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
21320 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
21321 (Tab_To): Removed.
21322 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
21323 a call to gnat_set_globals.
21324 Generate a string containing settings from
21325 Priority_Specific_Dispatching pragma entries.
21326 (Gen_Object_Files_Options): Do not include the runtime libraries when
21327 pragma No_Run_Time is specified.
21328
21329 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
21330 consistency with s-intman-posix.adb.
21331 (__gnat_error_handler, case FreeBSD): Account for the fact that the
21332 handler is installed with SA_SIGINFO.
21333 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
21334 FreeBSD ZCX support, copied from Linux version.
21335 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
21336 sigfillset, and sigemptyset so the routines defined by MaRTE.
21337 (__gl_priority_specific_dispatching): Add this variable that stores the
21338 string containing priority specific dispatching policies in the
21339 partition.
21340 (__gl_num_specific_dispatching): Add this variable that indicates the
21341 highest priority for which a priority specific dispatching pragma
21342 applies.
21343 (__gnat_get_specific_dispatching): Add this routine that returns the
21344 priority specific dispatching policy, as set by a
21345 Priority_Specific_Dispatching pragma appearing anywhere in the current
21346 partition. The input argument is the priority number, and the result
21347 is the upper case first character of the policy name.
21348 (__gnat_set_globals): Now a dummy function.
21349 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
21350 mechargs instead of sigargs, as the latter can be retrieved from the
21351 former and sigargs is not what we want on ia64.
21352 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
21353 mechargs argument.
21354 (__gnat_adjust_context_for_raise, ia64-vms): New function.
21355 (tasking_error): Remove unused symbol.
21356 (_abort_signal): Move this symbol to the IRIX specific part since this
21357 is the only target that uses this definition.
21358 (Check_Abort_Status): Move this symbol to the IRIX specific part since
21359 this is the only target that uses this definition.
21360 (Lock_Task): Remove unused symbol.
21361 (Unlock_Task): Remove unused symbol.
21362
21363 * lib-writ.adb (Write_ALI): Output new S lines for
21364 Priority_Specific_Dispatching pragmas.
21365 Implement new flag BD for elaborate body desirable
21366
21367 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
21368 (Specific_Dispatching): Add this table for storing the entries
21369 corresponding to Priority_Specific_Dispatching pragmas.
21370 Document new BD flag for elaborate body desirable
21371
21372 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
21373 of known pragmas.
21374
21375 2006-10-31 Javier Miranda <miranda@adacore.com>
21376
21377 * a-tags.ads, a-tags.adb:
21378 (Predefined_DT): New function that improves readability of the code.
21379 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
21380 Inherit_DT): Use the new function Predefined_DT to improve code
21381 readability.
21382 (Register_Interface_Tag): Update assertion.
21383 (Set_Interface_Table): Update assertion.
21384 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
21385 determining progenitor interfaces in Tags.
21386 (Inherit_CPP_DT): New subprogram.
21387
21388 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
21389 analysis of the thunk code.
21390 (Expand_Interface_Conversion): Handle run-time conversion of
21391 access to class wide types.
21392 (Expand_Dispatching_Call): When generating the profile for the
21393 subprogram itype for a dispatching operation, properly terminate the
21394 formal parameters chaind list (set the Next_Entity of the last formal
21395 to Empty).
21396 (Collect_All_Interfaces): Removed. This routine has been moved to
21397 sem_util and renamed as Collect_All_Abstract_Interfaces.
21398 (Set_All_DT_Position): Hidden entities associated with abstract
21399 interface primitives are not taken into account in the check for
21400 3.9.3(10); this check is done with the aliased entity.
21401 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
21402 interfacing with CPP by default.
21403 (Expand_Interface_Conversion): Add missing support for static conversion
21404 from an interface to a tagged type.
21405 (Collect_All_Interfaces): Add new out formal containing the list of
21406 abstract interface types to cleanup the subprogram Make_DT.
21407 (Make_DT): Update the code to generate the table of interfaces in case
21408 of abstract interface types.
21409 (Is_Predefined_Dispatching_Alias): New function that returns true if
21410 a primitive is not a predefined dispatching primitive but it is an
21411 alias of a predefined dispatching primitive.
21412 (Make_DT): If the ancestor of the type is a CPP_Class and we are
21413 compiling under full ABI compatibility mode we avoid the generation of
21414 calls to run-time services that fill the dispatch tables because under
21415 this mode we currently inherit the dispatch tables in the IP subprogram.
21416 (Write_DT): Emit an "is null" indication for a null procedure primitive.
21417 (Expand_Interface_Conversion): Use an address as the type of the formal
21418 of the internally built function that handles the case in which the
21419 target type is an access type.
21420
21421 2006-10-31 Robert Dewar <dewar@adacore.com>
21422
21423 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
21424
21425 2006-10-31 Robert Dewar <dewar@adacore.com>
21426
21427 * bindusg.ads, bindusg.adb:
21428 Change to package and rename procedure as Display, which
21429 now ensures that it only outputs usage information once.
21430
21431 2006-10-31 Jose Ruiz <ruiz@adacore.com>
21432
21433 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
21434 using RTPs.
21435
21436 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
21437 when using RTPs.
21438
21439 2006-10-31 Robert Dewar <dewar@adacore.com>
21440 Ed Schonberg <schonberg@adacore.com>
21441
21442 * treepr.adb: Use new subtype N_Membership_Test
21443
21444 * checks.ads, checks.adb: Add definition for Validity_Check
21445 (Range_Or_Validity_Checks_Suppressed): New function
21446 (Ensure_Valid): Test Validity_Check suppressed
21447 (Insert_Valid_Check): Test Validity_Check suppressed
21448 (Insert_Valid_Check): Preserve Do_Range_Check flag
21449 (Validity_Check_Range): New procedure
21450 (Expr_Known_Valid): Result of membership test is always valid
21451 (Selected_Range_Checks): Range checks cannot be applied to discriminants
21452 by themselves. Disabling those checks must also be done for task types,
21453 where discriminants may be used for the bounds of entry families.
21454 (Apply_Address_Clause_Check): Remove side-effects if address expression
21455 is non-static and is not the name of a declared constant.
21456 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
21457 Code cleanup and new error messages.
21458 (Enable_Range_Check): Test for some cases of suppressed checks
21459 (Generate_Index_Checks): Suppress index checks if index checks are
21460 suppressed for array object or array type.
21461 (Apply_Selected_Length_Checks): Give warning for compile-time detected
21462 length check failure, even if checks are off.
21463 (Ensure_Valid): Do not generate a check on an indexed component whose
21464 prefix is a packed boolean array.
21465 * checks.adb: (Alignment_Checks_Suppressed): New function
21466 (Apply_Address_Clause_Check): New procedure, this is a completely
21467 rewritten replacement for Apply_Alignment_Check
21468 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
21469 we request a discriminal value only in case of discriminants.
21470 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
21471 assignments where the target subtype is unconstrained and the target
21472 object is a parameter or dereference (other aliased cases are known
21473 to be unconstrained).
21474
21475 2006-10-31 Robert Dewar <dewar@adacore.com>
21476
21477 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
21478 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
21479 vms_conv.adb: Fix bad table increment values (much too small)
21480
21481 * table.adb (Realloc): Make sure we get at least some new elements
21482 Defends against silly small values for table increment
21483
21484 2006-10-31 Robert Dewar <dewar@adacore.com>
21485 Ed Schonberg <schonberg@adacore.com>
21486 Bob Duff <duff@adacore.com>
21487
21488 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
21489 entities. Move other fields around to make this possible
21490 (Is_Derived_Type): Add missing call to Is_Type.
21491 (Extra_Formals): New function for subprograms, entries, subprogram
21492 types.
21493 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
21494 (First_Formal_With_Extras): New function for subprogs, entries, subp
21495 types.
21496 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
21497 Add node information for E_Return_Statement.
21498 (Elaborate_Body_Desirable): New flag
21499 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
21500 to be Is_Inherently_Limited_Type, because return-by-reference has
21501 no meaning in Ada 2005.
21502 (E_Return_Statement): New entity kind.
21503 (Return_Applies_To): Field of E_Return_Statement.
21504 (Is_Return_Object): New flag in object entities.
21505 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
21506 (Must_Have_Preelab_Init): New flag
21507 (Known_To_Have_Preelab_Init): New flag
21508 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
21509 (Is_Visible_Formal): New flag on entities in formal packages.
21510 (Low_Bound_Known): New flag
21511 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
21512 Incomplete_Kind.
21513 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
21514 output when Id is an incomplete subtype.
21515
21516 2006-10-31 Robert Dewar <dewar@adacore.com>
21517
21518 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
21519 Avoid abbreviation Creat
21520 (Finalize): List all sources in extended mail source if -gnatl
21521 switch is active.
21522 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
21523 (Finalize): Implement new -gnatl=xxx switch to output listing to file
21524 (Set_Specific_Warning_On): New procedure
21525 (Set_Specific_Warning_Off): New procedure
21526 Add implementation of new insertion \\
21527 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
21528 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
21529 types.
21530 (Error_Msg_Internal): Make sure that we set Last_Killed to
21531 True when a message from another package is suppressed.
21532 Implement insertion character ~ (insert string)
21533 (First_Node): Minor adjustments to get better placement.
21534
21535 * frontend.adb:
21536 Implement new -gnatl=xxx switch to output listing to file
21537
21538 * gnat1drv.adb:
21539 Implement new -gnatl=xxx switch to output listing to file
21540
21541 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
21542 (Commands_To_Stdout): New flag
21543 Implement new -gnatl=xxx switch to output listing to file
21544 New switch Dump_Source_Text
21545 (Warn_On_Deleted_Code): New warning flag for -gnatwt
21546 Define Error_Msg_Line_Length
21547 (Warn_On_Assumed_Low_Bound): New switch
21548
21549 * osint.ads, osint.adb
21550 (Normalize_Directory_Name): Fix bug.
21551 Implement new -gnatl=xxx switch to output listing to file
21552 (Concat): Removed, replaced by real concatenation
21553 Make use of concatenation now allowed in compiler
21554 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
21555 we find the 'lib' or 'bin' directory even when the tool has been
21556 invoked with a relative path.
21557 (Executable_Name): New function taking string parameters.
21558
21559 * osint-c.ads, osint-c.adb:
21560 Implement new -gnatl=xxx switch to output listing to file
21561
21562 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
21563
21564 * switch-c.adb:
21565 Implement new -gnatl=xxx switch to output listing to file
21566 Recognize new -gnatL switch
21567 (no longer keep in old warning about old style usage)
21568 Use concatenation to simplify code
21569 Recognize -gnatjnn switch
21570 (Scan_Front_End_Switches): Clean up handling of -gnatW
21571 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
21572
21573 2006-10-31 Robert Dewar <dewar@adacore.com>
21574
21575 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
21576 (Set_Specific_Warning_Off): New procedure
21577 (Warning_Specifically_Suppressed): New function
21578 (Validate_Specific_Warnings): New procedure
21579 (Output_Msg_Text): Complete rewrite to support -gnatjnn
21580
21581 * err_vars.ads: Implement insertion character ~ (insert string)
21582
21583 2006-10-31 Bob Duff <duff@adacore.com>
21584 Ed Schonberg <schonberg@adacore.com>
21585
21586 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
21587 the parent part is a build-in-place function call, generate assignments.
21588 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
21589 are build-in-place function calls.
21590 (Replace_Self_Reference): New subsidiary of
21591 Make_OK_Assignment_Statement, to replace an access attribute that is a
21592 self-reference into an access to the appropriate component of the
21593 target object. Generalizes previous mechanism to handle self-references
21594 nested at any level.
21595 (Is_Self_Referential_Init): Remove, not needed.
21596 (Is_Self_Referential_Init): New predicate to simplify handling of self
21597 referential components in record aggregates.
21598 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
21599 check for presence of entity before checking for self-reference.
21600 (Has_Default_Init_Comps): Return True if a component association is a
21601 self-reference to the enclosing type, which can only come from a
21602 default initialization.
21603 (Make_OK_Assignment_Statement): If the expression is of the form
21604 Typ'Acc, where Acc is an access attribute, the expression comes from a
21605 default initialized self-referential component.
21606 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
21607 that has been derived from several abstract interfaces we must also
21608 initialize the tags of the secondary dispatch tables.
21609
21610 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21611 Thomas Quinot <quinot@adacore.com>
21612 Javier Miranda <miranda@adacore.com>
21613 Robert Dewar <dewar@adacore.com>
21614
21615 * exp_attr.adb:
21616 (Expand_Access_To_Protected_Op): If the context indicates that an access
21617 to a local operation may be transfered outside of the object, create an
21618 access to the wrapper operation that must be used in an external call.
21619 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
21620 target, pass the Valid attribute applied to a floating-point prefix on
21621 to the back end without expansion.
21622 (Storage_Size): Use the new run-time function Storage_Size to retrieve
21623 the allocated storage when it is specified by a per-object expression.
21624 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
21625 Nothing to do here, the attribute has been rewritten during semantic
21626 analysis.
21627 (Expand_Attribute_Reference): Handle expansion of the new Priority
21628 attribute
21629 (Find_Fat_Info): Handle case of universal real
21630 (Expand_Access_To_Protected_Op): Fix use of access to protected
21631 subprogram from inside the body of a protected entry.
21632 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
21633 'Access and 'Unrestricted_Access, to transform the attribute reference
21634 into a fat pointer.
21635 (Is_Constrained_Aliased_View): New predicate to help determine whether a
21636 subcomponent's enclosing variable is aliased with a constrained subtype.
21637 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
21638 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
21639 an aliased prefix must be known to be constrained in order to use True
21640 for the attribute value, and now it's possible for some aliased views
21641 to be unconstrained.
21642
21643 2006-10-31 Robert Dewar <dewar@adacore.com>
21644
21645 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
21646 (Expand_Entity_Reference): Correct error of not handling subprogram
21647 formals in current_value processing.
21648
21649 2006-10-31 Javier Miranda <miranda@adacore.com>
21650 Robert Dewar <dewar@adacore.com>
21651 Ed Schonberg <schonberg@adacore.com>
21652 Gary Dismukes <dismukes@adacore.com>
21653
21654 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
21655 register in the final list objects containing class-wide interfaces;
21656 otherwise we incorrectly register the tag of the interface in the final
21657 list.
21658 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
21659 generate the wrapper if the parent primitive is abstract. This is
21660 required to report the correct error message.
21661 (Expand_N_Subtype_Indication): Do validity checks on range
21662 (Clean_Task_Names): If an initialization procedure includes a call to
21663 initialize a task (sub)component, indicate that the procedure will use
21664 the secondary stack.
21665 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
21666 compatibility for interfacing with CPP by default.
21667 (Expand_N_Object_Declaration): Only build an Adjust call when the
21668 object's type is a nonlimited controlled type.
21669 * exp_ch3.adb: Add with and use of Exp_Ch6.
21670 (Expand_N_Object_Declaration): Check for object initialization that is a
21671 call to build-in-place function and apply Make_Build_In_Place_Call_In_
21672 Object_Declaration to the call.
21673 (Freeze_Type): When the designated type of an RACW was not frozen at the
21674 point where the RACW was declared, validate the primitive operations
21675 with respect to E.2.2(14) when it finally is frozen.
21676 (Build_Initialization_Call,Expand_Record_Controller): Rename
21677 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
21678 return-by-reference has no meaning in Ada 2005.
21679 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
21680 to register tag of the immediate ancestor interfaces in the
21681 run-time structure.
21682 (Init_Secondary_Tags): Moved to the specification to allow the
21683 initialization of extension aggregates with abstract interfaces.
21684 (Build_Master_Renaming): Make public, for use by function declarations
21685 whose return type is an anonymous access type.
21686 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
21687 Insert_List_Before_And_Analyze after the generation of the specs
21688 associated with null procedures.
21689 (Expand_Tagged_Root): Update documentation in its specification.
21690 (Init_Secondary_Tags): Update documentation.
21691 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
21692 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
21693 then generate code to inherit the contents of the dispatch table
21694 directly from the ancestor.
21695 (Expand_Record_Controller): Insert controller component after tags of
21696 implemented interfaces.
21697 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
21698 create null procedure overridings when null procedures are inherited
21699 from interfaces.
21700 (Make_Null_Procedure_Specs): New procedure to generate null procedure
21701 declarations for overriding null primitives inherited from interfaces.
21702 (Is_Null_Interface_Procedure): New function in
21703 Make_Null_Procedure_Specs.
21704 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
21705 immediate ancestor of a tagged type is an abstract interface type we
21706 must generate the specification of the predefined primitives associated
21707 with controlled types (because the dispatch table of the ancestor is
21708 null and hence these entries cannot be inherited). This is required to
21709 elaborate well the dispatch table.
21710
21711 2006-10-31 Javier Miranda <miranda@adacore.com>
21712 Ed Schonberg <schonberg@adacore.com>
21713 Bob Duff <duff@adacore.com>
21714 Gary Dismukes <dismukes@adacore.com>
21715 Robert Dewar <dewar@adacore.com>
21716
21717 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
21718 conversion.
21719 (Expand_N_In): Do validity checks on range
21720 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
21721 (Expand_N_Allocator): For "new T", if the object is constrained by
21722 discriminant defaults, allocate the right amount of memory, rather than
21723 the maximum for type T.
21724 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
21725 when the allocator is initialized by a build-in-place call, since the
21726 allocator is already rewritten as a reference to the function result,
21727 and this prevents an unwanted duplication of the function call.
21728 Add with and use of Exp_Ch6.
21729 (Expand_Allocator_Expresssion): Check for an allocator whose expression
21730 is a call to build-in-place function and apply
21731 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
21732 untagged designated types).
21733 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
21734 optimization if source or target is biased.
21735 (Expand_N_Allocator): Add comments for case of an allocator within a
21736 function that returns an anonymous access type designating tasks.
21737 (Expand_N_Allocator): apply discriminant checks for access
21738 discriminants of anonymous access types (AI-402, AI-416)
21739
21740 2006-10-31 Bob Duff <duff@adacore.com>
21741 Robert Dewar <dewar@adacore.com>
21742 Gary Dismukes <dismukes@adacore.com>
21743 Ed Schonberg <schonberg@adacore.com>
21744
21745 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
21746
21747 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
21748 (Expand_N_Assignment_Statement): Call
21749 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
21750 build-in-place function call. Currently, this can happen only for
21751 assignments that come from aggregates.
21752 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21753 in order to alleviate the upward compatibility introduced by AI-318.
21754 (Expand_N_Extended_Return_Statement): Add support for handling the
21755 return object as a build-in-place result.
21756 (Expand_Non_Function_Return): Implement simple return statements nested
21757 within an extended return.
21758 (Enable_New_Return_Processing): Turn on the new processing of return
21759 statements.
21760 (Expand_Non_Function_Return): For a return within an extended return,
21761 don't raise Program_Error, because Sem_Ch6 now gives a warning.
21762 (Expand_N_Extended_Return_Statement): Implement AI-318
21763 (Expand_Simple_Function_Return): Ditto.
21764 (Expand_N_If_Statement): Handle new -gnatwt warning
21765 (Expand_N_Case_Statement): Handle new -gnatwt warning
21766 (Expand_N_Assignment): Handle assignment to the Priority attribute of
21767 a protected object.
21768 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
21769 validity checking of assignments to elementary record components.
21770 (Expand_N_Return_Statement): return Class Wide types on the secondary
21771 stack independantly of their controlled status since with HIE runtimes,
21772 class wide types are not potentially controlled anymore.
21773
21774 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
21775 node kind.
21776
21777 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
21778 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
21779 it expects a block, procedure, or task. The return statement will get
21780 turned into a block, and Expand_Cleanup_Actions will happen then.
21781
21782 2006-10-31 Robert Dewar <dewar@adacore.com>
21783 Ed Schonberg <schonberg@adacore.com>
21784 Bob Duff <duff@adacore.com>
21785 Gary Dismukes <dismukes@adacore.com>
21786
21787 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
21788 capability.
21789 (Expand_Inlined_Call): Tagged types are by-reference types, and
21790 therefore should be replaced by a renaming declaration in the expanded
21791 body, as is done for limited types.
21792 (Expand_Call): If this is a call to a function with dispatching access
21793 result, propagate tag from context.
21794 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
21795 CPP by default.
21796 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
21797 build-in-place when the right-hand side of an assignment is a
21798 build-in-place function call.
21799 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
21800 of the explicit dereference of the allocator to the result subtype of
21801 the build-in-place function. This is needed to satisfy type checking
21802 in cases where the caller's return object is created by an allocator for
21803 a class-wide access type and the type named in the allocator is a
21804 specific type.
21805 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
21806 conversion of the reference to the declared object to the result subtype
21807 of the build-in-place function. This is needed to satisfy type checking
21808 in cases where the declared object has a class-wide type. Also, in the
21809 class-wide case, change the type of the object entity to the specific
21810 result subtype of the function, to avoid passing a class-wide object
21811 without explicit initialization to the back end.
21812 (Register_Interface_DT_Entry): Moved outside the body of
21813 Freeze_Subprogram because this routine is now public; it is called from
21814 Check_Dispatching_Overriding to handle late overriding of abstract
21815 interface primitives.
21816 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
21817 adding an implicit access actual on a call to a build-in-place function.
21818 (Expand_Actuals): Test for an actual parameter that is a call to a
21819 build-in-place function and apply
21820 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
21821 (Is_Build_In_Place_Function): New function to determine whether an
21822 entity is a function whose calls should be handled as build-in-place.
21823 (Is_Build_In_Place_Function_Call): New function to determine whether an
21824 expression is a function call that should handled as build-in-place.
21825 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
21826 calls to build-in-place functions as the initialization of an allocator.
21827 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
21828 handling calls to build-in-place functions in contexts that do not
21829 involve init of a separate object (for example, actuals of subprogram
21830 calls).
21831 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
21832 handling calls to build-in-place functions as the initialization of an
21833 object declaration.
21834 (Detect_Infinite_Recursion): Add explicit parameter Process to
21835 instantiation of Traverse_Body to avoid unreferenced warning.
21836 (Check_Overriding_Inherited_Interfaces): Removed.
21837 (Register_Interface_DT_Entry): Code cleanup.
21838 (Register_Predefined_DT_Entry): Code cleanup.
21839 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
21840 inlined statements if within a transient scope.
21841 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
21842 formal parameters with occurrences of actuals in inlined body, establish
21843 visibility on the proper view of the actual's subtype for the body's
21844 context.
21845 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
21846 compatibility mode and we have an imported CPP subprogram because
21847 for now we assume that imported CPP primitives correspond with
21848 objects whose constructor is in the CPP side (and therefore we
21849 don't need to generate code to register them in the dispatch table).
21850 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
21851 aligned selected component.
21852 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
21853 the actual of an in-mode parameter is a type conversion.
21854 (Expand_Actuals): If the call does not come from source and the actual
21855 is potentially misaligned, let gigi handle it rather than rejecting the
21856 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
21857 Class Wide types as returning by reference independantly of their
21858 controlled status since with HIE runtimes class wide types are not
21859 potentially controlled anymore.
21860
21861 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21862
21863 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
21864 references that are private components of the protected object.
21865 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
21866 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
21867 instantiation to deal with warnings.
21868 (Initialize_Protection): If expression for priority is non-static, use
21869 System_Priority as its expected type, in case the expression has not
21870 been analyzed yet.
21871
21872 2006-10-31 Robert Dewar <dewar@adacore.com>
21873
21874 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
21875 initialization of Homonym_Len.
21876 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
21877 names from fully qualified name. Fixes problem of duplicate
21878 external names differing only in the presence of such a block name.
21879
21880 2006-10-31 Thomas Quinot <quinot@adacore.com>
21881 Pablo Oliveira <oliveira@adacore.com>
21882
21883 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
21884 subprogram Ids, even if they are not yet assigned.
21885 (Build_Subprogram_Id): It is now this function that will take care of
21886 calling Assign_Subprogram_Ids if necessary.
21887 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
21888 should be done only once they are assigned.
21889 (Build_From_Any_Function, case of tagged types): Add missing call to
21890 Allocate_Buffer.
21891 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
21892 type for an RACW type.
21893 (Add_RACW_Features): When processing an RACW declaration for which the
21894 designated type is already frozen, enforce E.2.2(14) rules immediately.
21895 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
21896 special reordering of controlling formals.
21897
21898 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
21899 associated stub type for an RACW type.
21900
21901 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21902
21903 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
21904 fixed-point operations in an integer context, i.e. as operands of a
21905 conversion to an integer type, indicate that result must be rounded.
21906
21907 2006-10-31 Robert Dewar <dewar@adacore.com>
21908
21909 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
21910 cases, pass the encoding method, since it is now required by the run
21911 time.
21912
21913 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
21914 assumption that Str'First = 1.
21915 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
21916 it on to the Value_Wide_Wide_Character call.
21917 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
21918 properly handles a string of the form quote-encoded_wide_char-quote.
21919
21920 * s-wchcnv.adb: Minor reformatting
21921
21922 2006-10-31 Javier Miranda <miranda@adacore.com>
21923
21924 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
21925 run-time membership test to ensure that the constructed object
21926 implements the target abstract interface.
21927
21928 2006-10-31 Robert Dewar <dewar@adacore.com>
21929
21930 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
21931 Machine_Attribute pragma internally to implement the user pragma.
21932 Add processing for pragma Interface so that it is now completely
21933 equivalent to pragma Import.
21934
21935 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
21936 so that it can be applied to all entities, including record components
21937 and enumeration literals.
21938 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
21939 priority ranges are correct, verify compatibility against task
21940 dispatching and locking policies, and if everything is correct an entry
21941 is added to the table containing priority specific dispatching entries
21942 for this compilation unit.
21943 (Delay_Config_Pragma_Analyze): Delay processing
21944 Priority_Specific_Dispatching pragmas because when processing the
21945 pragma we need to access run-time data, such as the range of
21946 System.Any_Priority.
21947 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
21948 Allow pragma Unreferenced as a context item
21949 Add pragma Preelaborable_Initialization
21950 (Analyze_Pragma, case Interface): Interface is extended so that it is
21951 now syntactically and semantically equivalent to Import.
21952 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
21953 insertion characters.
21954 Add handling for Pragma_Wide_Character_Encoding
21955 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
21956 never supercedes a real restriction, and that a real restriction
21957 always supercedes a warning.
21958 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
21959 appropriate form.
21960
21961 2006-10-31 Bob Duff <duff@adacore.com>
21962 Ed Schonberg <schonberg@adacore.com>
21963 Robert Dewar <dewar@adacore.com>
21964
21965 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
21966 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
21967 Is_Inherently_Limited_Type, because return-by-reference has no meaning
21968 in Ada 2005.
21969 (Find_Node_To_Be_Wrapped): Use new method of determining the result
21970 type of the function containing a return statement, because the
21971 Return_Type field was removed. We now use the Return_Applies_To field.
21972
21973 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
21974 (Build_Task_Image_Decl): If procedure is not called from an
21975 initialization procedure, indicate that function that builds task name
21976 uses the sec. stack. Otherwise the enclosing initialization procedure
21977 will carry the indication.
21978 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
21979 N_Object_Declaration instead.
21980 (Kill_Dead_Code): New interface to implement -gnatwt warning for
21981 conditional dead code killed, and change implementation accordingly.
21982 (Insert_Actions): Add N_Return_Object_Declaration case.
21983 Correct comment to mention N_Extension_Aggregate node.
21984 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
21985 attempts to save information for global variables which cannot be
21986 safely tracked.
21987 (Get_Current_Value_Condition): Handle conditions the other way round
21988 (constant on left). Also handle right operand of AND and AND THEN
21989 (Set_Current_Value_Condition): Corresponding changes
21990 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
21991 (Get_Current_Value_Condition): Handle simple boolean operands
21992 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
21993 (Get_Current_Value_Condition): If the variable reference is within an
21994 if-statement, does not appear in the list of then_statments, and does
21995 not come from source, treat it as being at unknown location.
21996 (Get_Current_Value_Condition): Enhance to allow while statements to be
21997 processed as well as if statements.
21998 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
21999 come from source.
22000 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
22001 of loop. This is safe now that we fixed Kill_Current_Values.
22002 (OK_To_Do_Constant_Replacement): Check whether current scope is
22003 Standard, before examining outer scopes.
22004
22005 2006-10-31 Vincent Celier <celier@adacore.com>
22006
22007 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
22008 When True, apply VMS treatment to children of packages A, G, I and S.
22009 For F320-016
22010
22011 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
22012
22013 2006-10-31 Robert Dewar <dewar@adacore.com>
22014 Ed Schonberg <schonberg@adacore.com>
22015
22016 * freeze.adb: Add handling of Last_Assignment field
22017 (Warn_Overlay): Supply missing continuation marks in error msgs
22018 (Freeze_Entity): Add check for Preelaborable_Initialization
22019
22020 * g-comlin.adb: Add Warnings (Off) to prevent new warning
22021
22022 * g-expect.adb: Add Warnings (Off) to prevent new warning
22023
22024 * lib-xref.adb: Add handling of Last_Assignment field
22025 (Generate_Reference): Centralize handling of pragma Obsolescent here
22026 (Generate_Reference): Accept an implicit reference generated for a
22027 default in an instance.
22028 (Generate_Reference): Accept a reference for a node that is not in the
22029 main unit, if it is the generic body corresponding to an subprogram
22030 instantiation.
22031
22032 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
22033
22034 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
22035 -gnatwq/Q.
22036 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
22037 exception handler.
22038 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
22039 use clauses, to avoid messages on packages used to qualify, and also
22040 to avoid messages from obsolescent units.
22041 (Warn_On_Useless_Assignments): Don't generate messages for imported
22042 and exported variables.
22043 (Warn_On_Useless_Assignments): New procedure
22044 (Output_Obsolescent_Entity_Warnings): New procedure
22045 (Check_Code_Statement): New procedure
22046
22047 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
22048 Change name Is_Ada_2005 to Is_Ada_2005_Only
22049 (Last_Assignment): New field for useless assignment warning
22050
22051 2006-10-31 Olivier Hainque <hainque@adacore.com>
22052
22053 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
22054 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
22055
22056 2006-10-31 Bob Duff <duff@adacore.com>
22057 Robert Dewar <dewar@adacore.com>
22058 Ed Schonberg <schonberg@adacore.com>
22059
22060 * g-awk.adb (Default_Session, Current_Session): Compile this file in
22061 Ada 95 mode, because it violates the new rules for AI-318.
22062
22063 * g-awk.ads: Use overloaded subprograms in every case where we used to
22064 have a default of Current_Session. This makes the code closer to be
22065 correct for both Ada 95 and 2005.
22066
22067 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
22068 code, relying on the fact that the compiler generates a warning
22069 instead of an error in -gnatg mode.
22070
22071 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
22072 E_Return_Statement entity kind.
22073 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
22074
22075 * par.adb (P_Interface_Type_Definition): Addition of one formal to
22076 report an error if the reserved word abstract has been previously found.
22077 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
22078
22079 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
22080 parenthesized range attribute usage
22081 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
22082
22083 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
22084 in the syntax for extended_return_statement. This is not in the latest
22085 RM, but the ARG is expected to issue an AI allowing this.
22086 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
22087 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
22088 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
22089 P_Return_Statement): Parse the new syntax for extended_return_statement.
22090
22091 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
22092 Output_End_Missing): Add error-recovery code for the new
22093 extended_return_statement syntax; that is, the new E_Return entry on
22094 the scope stack.
22095
22096 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
22097 limited to nonlimited, because otherwise we violate the new Ada 2005
22098 rules about returning limited types in function Create_AST_Handler in
22099 s-asthan.adb.
22100
22101 * sem.adb (Analyze): Add cases for new node kinds
22102 N_Extended_Return_Statement and N_Return_Object_Declaration.
22103
22104 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
22105 type is in the same category as type of context before applying check,
22106 to prevent anomalies in instantiations.
22107 (Resolve_Aggregate): Remove test for limited components in aggregates.
22108 It's unnecessary in Ada 95, because if it has limited components, then
22109 it must be limited. It's wrong in Ada 2005, because limited aggregates
22110 are now allowed.
22111 (Resolve_Record_Aggregate): Move check for limited types later, because
22112 OK_For_Limited_Init requires its argument to have been resolved.
22113 (Get_Value): When copying the component default expression for a
22114 defaulted association in an aggregate, use the sloc of the aggregate
22115 and not that of the original expression, to prevent spurious
22116 elaboration errors, when the expression includes function calls.
22117 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
22118 were missing. We also didn't handle qualified expressions. Now also
22119 allow function calls. Use new common routine OK_For_Limited_Init.
22120 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
22121 with space can upper case letter).
22122
22123 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
22124 Has_Static_Discriminants flag
22125 (Record_Type_Declaration): Diagnose an attempt to declare an interface
22126 type with discriminants.
22127 (Process_Range_Expr_In_Decl): Do validity checks on range
22128 (Build_Discriminant_Constraints): Use updated form of
22129 Denotes_Discriminant.
22130 (Process_Subtype): If the subtype is a private subtype whose full view
22131 is a concurrent subtype, introduce an itype reference to prevent scope
22132 anomalies in gigi.
22133 (Build_Derived_Record_Type, Collect_Interface_Primitives,
22134 Record_Type_Declaration): The functionality of the subprograms
22135 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
22136 is now performed by a single routine.
22137 (Build_Derived_Record_Type): If the type definition includes an explicit
22138 indication of limitedness, then the type must be marked as limited here
22139 to ensure that any access discriminants will not be treated as having
22140 a local anonymous access type.
22141 (Check_Abstract_Overriding): Issue a detailed error message when an
22142 abstract subprogram was not overridden due to incorrect mode of its
22143 first parameter.
22144 (Analyze_Private_Extension_Declaration): Add support for the analysis of
22145 synchronized private extension declarations. Verify that the ancestor is
22146 a limited or synchronized interface or in the generic case, the ancestor
22147 is a tagged limited type or synchronized interface and all progenitors
22148 are either limited or synchronized interfaces.
22149 Derived_Type_Declaration): Check for presence of private extension when
22150 dealing with synchronized formal derived types.
22151 Process_Full_View): Enchance the check done on the usage of "limited" by
22152 testing whether the private view is synchronized.
22153 Verify that a synchronized private view is completed by a protected or
22154 task type.
22155 (OK_For_Limited_Init_In_05): New function.
22156 (Analyze_Object_Declaration): Move check for limited types later,
22157 because OK_For_Limited_Init requires its argument to have been resolved.
22158 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
22159 in order to alleviate the upward compatibility introduced by AI-318.
22160 (Constrain_Corresponding_Record): If the constraint is for a component
22161 subtype, mark the itype as frozen, to avoid out-of-scope references to
22162 discriminants in the back-end.
22163 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
22164 this subprogram against wrong sources.
22165 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
22166 discriminant of limited type completed with a protected type, when the
22167 discriminant is used to constrain a private component of the type, and
22168 expansion is disabled.
22169 (Find_Type_Of_Object): Do not treat a return subtype that is an
22170 anonymous subtype as a local_anonymous_type, because its accessibility
22171 level is the return type of the enclosing function.
22172 (Check_Initialization): In -gnatg mode, turn the error "cannot
22173 initialize entities of limited type" into a warning.
22174 (OK_For_Limited_Init): Return true for generated nodes, since it
22175 sometimes violates the legality rules.
22176 (Make_Incomplete_Declaration): If the type for which an incomplete
22177 declaration is created happens to be the currently visible entity,
22178 preserve the homonym chain when removing it from visibility.
22179 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
22180 inherited subprograms.
22181 (Access_Definition): If this is an access to function that is the return
22182 type of an access_to_function definition, context is a type declaration
22183 and the scope of the anonymous type is the current one.
22184 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
22185 incomplete subtype to the set of private dependents of the original
22186 incomplete type.
22187 (Constrain_Discriminated_Type): Emit an error message whenever an
22188 incomplete subtype is being constrained.
22189 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
22190 corresponding subtype of the full view of the original incomplete type.
22191 (Check_Incomplete): Properly detect invalid usage of incomplete types
22192 and subtypes.
22193
22194 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22195
22196 * g-catiio.ads, g-catiio.adb (Value): New function.
22197 Given an input String, try and parse a valid Time value.
22198
22199 2006-10-31 Vincent Celier <celier@adacore.com>
22200
22201 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
22202 Integer_Address arithmetic, as in Set_Valid.
22203
22204 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22205 Robert Dewar <dewar@adacore.com>
22206
22207 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
22208 handling executable extension manually and duplicating code.
22209
22210 * make.adb: Implement new -S switch
22211 (Gnatmake): Use new function Osint.Executable_Name instead
22212 of handling executable extension manually.
22213
22214 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
22215 is specified, the executable name ends with this suffix.
22216 Take advantage of Osint.Executable_Name instead of duplicating code.
22217
22218 * switch-m.adb: Recognize new gnatmake -S switch
22219
22220 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
22221 variable.
22222 (Get_Target_Parameters): Set Executable_Extension_On_Target if
22223 available.
22224
22225 * makeusg.adb: Add line for gnatmake -S switch
22226
22227 2006-10-31 Vincent Celier <celier@adacore.com>
22228
22229 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
22230 call it with -static-libgcc, as there are some platforms, such as
22231 Darwin, where one of these two switches is compulsory to link.
22232
22233 2006-10-31 Vincent Celier <celier@adacore.com>
22234
22235 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
22236 instead of ADA_PROJECT_PATH, for the project path.
22237 (Gnatls): When displaying the project path directories, use host dir
22238 specs.
22239
22240 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
22241 names in the project path, as absolute paths may correspond to
22242 multi-valued VMS logical names.
22243
22244 2006-10-31 Vincent Celier <celier@adacore.com>
22245
22246 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
22247 absolute path name.
22248 (Locate_Regular_File): Ditto
22249 (Change_Dir): Remove, no longer used
22250 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
22251 on Windows. Get it calling Get_Current_Dir.
22252 (OpenVMS): Remove imported boolean, no longer needed.
22253 (Normalize_Pathname)[VMS]: Do not resolve directory names.
22254 (Pid_To_Integer): New function to convert a Process_Id to Integer
22255
22256 2006-10-31 Thomas Quinot <quinot@adacore.com>
22257
22258 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
22259 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
22260 to No_Socket.
22261 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
22262 W_Sig_Socket.
22263
22264 2006-10-31 Robert Dewar <dewar@adacore.com>
22265
22266 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
22267 initial letter o as a zero.
22268
22269 2006-10-31 Robert Dewar <dewar@adacore.com>
22270
22271 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
22272
22273 2006-10-31 Robert Dewar <dewar@adacore.com>
22274
22275 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
22276 variant records
22277 (Layout_Variant_Record): Retrieve the discriminants from the entity
22278 rather than from the type definition, because in the case of a full
22279 type for a private type we need to take the discriminants from the
22280 partial view.
22281 (Layout_Component_List): When applying the Max operator to variants with
22282 a nonstatic size, check whether either operand is static and scale that
22283 operand from bits to storage units before applying Max.
22284 (Layout_Type): In VMS, if a C-convention access type has no explicit
22285 size clause (and does not inherit one in the case of a derived type),
22286 then the size is reset to 32 from 64.
22287
22288 2006-10-31 Vincent Celier <celier@adacore.com>
22289
22290 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
22291 its file has already been loaded, according to the unit being loaded,
22292 not to the current value of Multiple_Unit_Index.
22293
22294 2006-10-31 Thomas Quinot <quinot@adacore.com>
22295 Eric Botcazou <ebotcazou@adacore.com>
22296 Arnaud Charlet <charlet@adacore.com>
22297
22298 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
22299 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
22300 possible.
22301 (a-except.o): Pass it to the compiler.
22302 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
22303 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
22304 a-calend-mingw.adb version.
22305
22306 * Makefile.rtl: Added s-dsaser.
22307 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
22308 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
22309 Ada.Dispatching.Round_Robin.
22310 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
22311
22312 * Make-lang.in: Remove all references to gt-ada-decl.h.
22313 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
22314 sources.
22315 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
22316 Update dependencies.
22317
22318 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
22319
22320 2006-10-31 Vincent Celier <celier@adacore.com>
22321
22322 * mlib-utl.adb (Initialized): Remove, no longer used
22323 (Initialize): Remove, no longer used
22324 (Ar): If Ar_Exec is null, get the location of the archive builder and,
22325 if there is one, the archive indexer. Fail if the archive builder cannot
22326 be found.
22327 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
22328 be found.
22329
22330 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22331
22332 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
22333 Process_Body_Clauses): If the context of a body includes a use clause
22334 for P.Q then a with_clause for P in the same body is not redundant,
22335 even if the spec also has a with_clause on P.
22336 Add missing continuation mark to error msg
22337 (Build_Limited_Views): A limited view of a type is tagged if its
22338 declaration includes a record extension.
22339 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
22340 node, even if the subunit has errors. This avoids malfunction by
22341 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
22342 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
22343 generation of obsolescent messages for with statements (cannot do
22344 this too early, or we cannot implement avoiding the messages in the
22345 case of obsolescent units withing obsolescent units).
22346 (Install_Siblings): If the with_clause is on a remote descendant of
22347 an ancestor of the current compilation unit, find whether there is
22348 a sibling child unit that is immediately visible.
22349 (Remove_Private_With_Clauses): New procedure, invoked after completing
22350 the analysis of the private part of a nested package, to remove from
22351 visibility the private with_clauses of the enclosing package
22352 declaration.
22353 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
22354 now centralized in Generate_Reference.
22355 (Install_Limited_Context_Clauses): Remove superfluous error
22356 message associated with unlimited view visible through use
22357 and renamings. In addition, at the point in which the error
22358 is reported, we add the backslash to the text of the error
22359 to ensure that it is reported as a single error message.
22360 Use new // insertion for some continuation messages
22361 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
22362 to create implicit with_clause for parent unit mentioned in original
22363 limited_with_clause.
22364 (Install_Limited_With_Unit): Set entity of parent identifiers if the
22365 unit is a child unit. For ASIS queries.
22366 (Analyze_Subunit): If the subunit appears within a child unit, make all
22367 ancestor child units directly visible again.
22368
22369 2006-10-31 Robert Dewar <dewar@adacore.com>
22370
22371 * par-ch10.adb (P_Context_Clause): Minor error message fix
22372
22373 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22374 Javier Miranda <miranda@adacore.com>
22375
22376 * par-ch12.adb: Grammar update and cleanup.
22377 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
22378 support for synchronized derived type definitions.
22379 Add the new actual Abstract_Present to every call to
22380 P_Interface_Type_Definition.
22381 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
22382 a formal object declaration with an access definition or a subtype mark
22383 with a null exclusion.
22384 (P_Generic_Association): Handle association with box, and others_choice
22385 with box, to support Ada 2005 partially parametrized formal packages.
22386
22387 2006-10-31 Robert Dewar <dewar@adacore.com>
22388 Javier Miranda <miranda@adacore.com>
22389
22390 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
22391 (P_Type_Declaration): Remove barrier against the reserved word "limited"
22392 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
22393 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
22394 private extensions.
22395 (P_Type_Declaration): Add the new actual Abstract_Present to every call
22396 to P_Interface_Type_Definition.
22397 (P_Interface_Type_Definition): Addition of one formal to report an error
22398 if the reserved word abstract has been previously found.
22399 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
22400 object renaming declaration with an access definition or subtype mark
22401 with a possible null exclusion.
22402
22403 * par-ch9.adb: Minor error msg fix
22404
22405 * par-load.adb: Add missing continuation mark to error msg
22406
22407 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
22408
22409 2006-10-31 Vincent Celier <celier@adacore.com>
22410
22411 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
22412 unknown attribute in unknown package or in package that does not need
22413 to be checked.
22414 (Parse_Package_Declaration): Do not issue warning for unknown package in
22415 quiet output.
22416
22417 2006-10-31 Vincent Celier <celier@adacore.com>
22418
22419 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
22420 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
22421 Packages_To_Check.
22422
22423 2006-10-31 Vincent Celier <celier@adacore.com>
22424
22425 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
22426 on VMS, change "__" to '.' before checking the name.
22427 (Record_Ada_Source): Always add the source file name in the list of
22428 of sources, even if it is not the first time, as it is for another
22429 source index.
22430 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
22431 dot, instead of replacing only the first '_'.
22432
22433 * prj-part.adb (Parse): Convert project file path to canonical form
22434
22435 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
22436 extended, the project id of the project extending it is recorded in its
22437 data, even when it has already been processed as an imported project.
22438
22439 2006-10-31 Robert Dewar <dewar@adacore.com>
22440
22441 * repinfo.adb (List_Entities): Don't list entities from renaming
22442 declarations.
22443
22444 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22445 Robert Dewar <dewar@adacore.com>
22446
22447 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
22448 only a restriction warning is active for the given restriction. This is
22449 desirable because we do not want to modify code in the case where only
22450 a warning is set.
22451 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
22452 causes overriding of real restrictions.
22453 Take advantage of new No_Restrictions constant.
22454
22455 * raise.h: (__gnat_set_globals): Change profile.
22456
22457 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22458
22459 * rtsfind.adb: Remove s-polint from comment as it exists no more.
22460
22461 * rtsfind.ads:
22462 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
22463 Move all the entities in obsolete package System.PolyORB_Interface to
22464 System.Partition_Interface.
22465 (RE_Storage_Size): New function in System.Tasking.
22466 (RE_Get_Ceiling): New entity.
22467 (RE_Set_Ceiling): New entity.
22468 (RO_PE_Get_Ceiling): New entity.
22469 (RO_RE_Set_Ceiling): New entity.
22470 (Inherit_CPP_DT): New entity
22471
22472 2006-10-31 Robert Dewar <dewar@adacore.com>
22473
22474 * scng.adb (Scan, case of numeric literal): Better msg for identifier
22475 starting with a digit.
22476
22477 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22478 Thomas Quinot <quinot@adacore.com>
22479 Javier Miranda <miranda@adacore.com>
22480 Gary Dismukes <dismukes@adacore.com>
22481
22482 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
22483 properly an attempt to apply Unchecked_Access to a protected operation.
22484 (OK_Self_Reference): New subprogram to check the legality of an access
22485 attribute whose prefix is the type of an enclosing aggregate.
22486 Generalizes previous mechanism to handle attribute references nested
22487 arbitrarily deep within the aggregate.
22488 (Analyze_Access_Attribute): An access attribute whose prefix is a type
22489 can appear in an aggregate if this is a default-initialized aggregate
22490 for a self-referential type.
22491 (Resolve_Attribute, case Access): Ditto.
22492 Add support for new implementation defined attribute Stub_Type.
22493 (Eval_Attribute, case Attribute_Stub_Type): New case.
22494 (Analyze_Attribute, case Attribute_Stub_Type): New case.
22495 (Stream_Attribute_Available): Implement using new subprogram from
22496 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
22497 Has_Specified_Stream_Attribute flag.
22498 Disallow Storage_Size and Storage_Pool for access to subprogram
22499 (Resolve_Attribute, case 'Access et al): Take into account anonymous
22500 access types of return subtypes in extended return statements. Remove
22501 accessibility checks on anonymous access types when Unchecked_Access is
22502 used.
22503 (Analyze_Attribute): Add support for the use of 'Class to convert
22504 a class-wide interface to a tagged type.
22505 Add support for the attribute Priority.
22506 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
22507 whether the designated type is discriminated with a constrained partial
22508 view and require static matching in that case.
22509 Add local variable Des_Btyp. The Designated_Type
22510 of an access to incomplete subtype is either its non-limited view if
22511 coming from a limited with or its etype if regular incomplete subtype.
22512
22513 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
22514 Fix predicate to identify and allow cases of (expander-generated)
22515 references to tag of designated object of a RACW.
22516 (Validate_Static_Object_Name): In Ada 2005, a formal object is
22517 non-static, and therefore cannot appear as a primary in a preelaborable
22518 package.
22519 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
22520 Has_Read_Write_Attributes.
22521 (Has_Read_Write_Attributes): Reimplement in termes of
22522 Has_Stream_Attribute_Definition.
22523 (Missing_Read_Write_Attributes): When checking component types in a
22524 record, unconditionally call Missing_Read_Write_Attributes recursively
22525 (remove guard checking for Is_Record_Type / Is_Access_Type).
22526
22527 2006-10-31 Robert Dewar <dewar@adacore.com>
22528
22529 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
22530 useless assignments here and conditionalize it on absence of exception
22531 handlers.
22532 (Analyze_Exception_Handlers): Small code reorganization of error
22533 detection code, for new handling of formal packages.
22534
22535 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22536 Hristian Kirtchev <kirtchev@adacore.com>
22537
22538 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
22539 that has been constant-folded, preserve information of original tree,
22540 for ASIS uses.
22541 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
22542 generated private extension declaration if the formal derived type is
22543 synchronized. Carry synchronized present over to the generated private
22544 extension.
22545 (Validate_Derived_Type_Instance): Ensure that the actual of a
22546 synchronized formal derived type is a synchronized tagged type.
22547 (Instantiate_Formal_Package): When creating the instantiation used to
22548 validate the actual package of a formal declared without a box, check
22549 whether the formal itself depends on a prior actual.
22550 (Instantiate_Formal_Subprogram): Create new entities for the defining
22551 identifiers of the formals in the renaming declaration, for ASIS use.
22552 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
22553 a renaming declaration or a subtype declaration for an actual in an
22554 instance, capture location information of declaration in generic, for
22555 ASIS use.
22556 (Instantiate_Formal_Package): Add comments on needed additional tests.
22557 AI-317 (partial parametrization) is fully implemented.
22558 (Validate_Private_Type_Instance): Add check for actual which
22559 must have preelaborable initialization
22560 Use new // insertion for some continuation messages
22561 (Analyze_Formal_Object_Declaration): Change usage of Expression to
22562 Default_Expression. Add type retrieval when the declaration has an
22563 access definition. Update premature usage of incomplete type check.
22564 (Check_Access_Definition): New subsidiary routine. Check whether the
22565 current compilation version is Ada 05 and the supplied node has an
22566 access definition.
22567 (Instantiate object): Alphabetize local variables. Handle the creation
22568 of new renaming declarations with respect to the kind of definition
22569 used - either an access definition or a subtype mark. Guard against
22570 unnecessary error message in the context of anonymous access types after
22571 they have been resolved. Add check for required null exclusion in a
22572 formal object declaration.
22573 (Switch_View): A private subtype of a non-private type needs to be
22574 switched (the base type can have been switched without its private
22575 dependents because of the last branch of Check_Private_View.
22576 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
22577 value from BT.
22578 (Instantiate_Type): Emit an error message whenever a class-wide type of
22579 a tagged incomplete type is used as a generic actual.
22580 (Find_Actual_Type): Extend routine to handle a component type in a child
22581 unit that is imported from a formal package in a parent.
22582 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
22583 agree on constrainedness, rather than checking against ultimate ancestor
22584 (Instantiate_Subprogram_Body): Create a cross-reference link to the
22585 generic body, for navigation purposes.
22586
22587 2006-10-31 Robert Dewar <dewar@adacore.com>
22588 Thomas Quinot <quinot@adacore.com>
22589
22590 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
22591 type.
22592 (New_Stream_Subprogram): When processing an attribute definition clause
22593 for a stream-oriented subprogram, record an entity node occurring at
22594 the point of clause to use for checking the visibility of the clause,
22595 as defined by 8.3(23) as amended by AI-195.
22596 (New_Stream_Subprogram): New procedure, factoring behaviour from both
22597 New_Stream_Function and New_Stream_Procedure.
22598 (New_Stream_Function, New_Stream_Procedure): Removed.
22599 (Analyze_Attribute_Definition_Clause, case Address): Check new
22600 Alignment_Check check
22601
22602 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22603 Javier Miranda <miranda@adacore.com>
22604 Robert Dewar <dewar@adacore.com>
22605
22606 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
22607 generate the same errors compiling under -gnatc.
22608 (Try_Object_Operation): If no candidate interpretation succeeds, but
22609 there is at least one primitive operation with the right name, report
22610 error in call rather than on a malformed selected component.
22611 (Analyze_Selected_Component): If the prefix is an incomplete type from
22612 a limited view, and the full view is available, use the full view to
22613 determine whether this is a prefixed call to a primitive operation.
22614 (Operator_Check): Verify that a candidate interpretation is a binary
22615 operation before checking the type of its second formal.
22616 (Analyze_Call): Add additional warnings for function call contexts not
22617 yet supported.
22618 (Analyze_Allocator): Move the check for "initialization not allowed for
22619 limited types" after analyzing the expression. This is necessary,
22620 because OK_For_Limited_Init looks at the structure of the expression.
22621 Before analysis, we don't necessarily know what sort of expression it
22622 is. For example, we don't know whether F(X) is a function call or an
22623 indexed component; the former is legal in Ada 2005; the latter is not.
22624 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
22625 were missing. We also didn't handle qualified expressions. Now also
22626 allow function calls. Use new common routine OK_For_Limited_Init.
22627 (Analyze_Type_Conversion): Do not perform some legality checks in an
22628 instance, because the error message will be redundant or spurious.
22629 (Analyze_Overloaded_Selected_Component): Do not do style check when
22630 setting an entity, since we do not know it is the right entity yet.
22631 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
22632 (Analyze_Overloaded_Selected_Component): Same change
22633 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
22634 since regular incomplete subtypes are transformed into corresponding
22635 subtypes of their full views.
22636 (Complete_Object_Operation): Treat name of transformed subprogram call
22637 as coming from source, for browsing purposes.
22638 (Try_Primitive_Operation): If formal is an access parameter, compare
22639 with base type of object to determine whether it is a primitive
22640 operation.
22641 (Operator_Check): If no interpretation of the operator matches, check
22642 whether a use clause on any candidate might make the operation legal.
22643 (Try_Class_Wide_Operation): Check whether the first parameter is an
22644 access type whose designated type is class-wide.
22645
22646 2006-10-31 Robert Dewar <dewar@adacore.com>
22647 Ed Schonberg <schonberg@adacore.com>
22648 Gary Dismukes <dismukes@adacore.com>
22649
22650 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
22651 warn on infinite loops.
22652 Add \\ to some continuation messages
22653 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
22654 (Process_Bounds): If the bounds are integer literals that result from
22655 constant-folding, and they carry a user-defined type, preserve that type
22656 rather than treating this as an integer range.
22657 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
22658 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
22659 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
22660 left hand side of assignment.
22661 (Analyze_Assignment): Add suport to manage assigments to the attribute
22662 priority of a protected object.
22663 (Check_Possible_Current_Value_Condition): Allow fully qualified names
22664 not just identifiers.
22665 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
22666 or AND THEN for possible tracking.
22667 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
22668 case of while loops so we can track values in the loop body.
22669
22670 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22671 Hristian Kirtchev <kirtchev@adacore.com>
22672 Bob Duff <duff@adacore.com>
22673
22674 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
22675 procedure cannot be a protected operation (it is a basic_declaration,
22676 not a subprogram_declaration).
22677 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
22678 Subp. Add logic for entry processing.
22679 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
22680 Determine whether an entry or subprogram of a protected or task type
22681 override an inherited primitive of an implemented interface.
22682 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
22683 Update the actual used in calls to Check_Overriding_Indicator.
22684 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
22685 generate the proper reference to the parent unit, for cross-reference.
22686 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
22687 Is_Formal.
22688 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
22689 (Add_Extra_Formal): Revise procedure to allow passing in associated
22690 entity, scope, and name suffix, and handle setting of the new
22691 Extra_Formals field.
22692 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
22693 pass new parameters. Add support for adding the new extra access formal
22694 for functions whose calls are treated as build-in-place.
22695 (Analyze_A_Return_Statement): Correct casing in error message.
22696 Move Pop_Scope to after Analyze_Function_Return, because an extended
22697 return statement really is a full-fledged scope. Otherwise, visibility
22698 doesn't work right. Correct use of "\" for continuation messages.
22699 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
22700 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
22701 the node doesn't get properly marked as analyzed.
22702 (Analyze_Subprogram_Body): If subprogram is a function that returns
22703 an anonymous access type that denotes a task, build a Master Entity
22704 for it.
22705 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
22706 proper usage of null exclusion in a result definition.
22707 (Process_Formals): Code cleanup and new error message.
22708 (Process_Formals): Detect incorrect application of null exclusion to
22709 non-access types.
22710 (Conforming_Types): Handle conformance between [sub]types and itypes
22711 generated for entities that have null exclusions applied to them.
22712 (Maybe_Primitive_Operation): Add an additional type retrieval when the
22713 base type is an access subtype. This case arrises with null exclusions.
22714 (New_Overloaded_Entity): Do not remove the overriden entity from the
22715 homonym chain if it corresponds with an abstract interface primitive.
22716 (Process_Formals): Replace membership test agains Incomplete_Kind with a
22717 call to the synthesized predicate Is_Incomplete_Type.
22718 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
22719 primitives.
22720 (Analyze_Subprogram_Declaration): Check that abstract interface
22721 primitives are abstract or null.
22722 (Analyze_Subprogram_Specification): Remove previous check for abstract
22723 interfaces because it was not complete.
22724 (Has_Interface_Formals): Removed.
22725
22726 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22727 Javier Miranda <miranda@adacore.com>
22728
22729 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
22730 of Analyze_Package_Body, to create Itype references for anonymous
22731 access types created in the package declaration, whose designated types
22732 may have only a limited view.
22733 (Analyze_Package_Specification): For the private part of a nested
22734 package, install private_with_clauses of enclosing compilation unit if
22735 we are in its visible part.
22736 (Declare_Inherited_Private_Subprograms): Complete barrier
22737 to ensure that the primitive operation has an alias to some parent
22738 primitive. This is now required because, after the changes done for the
22739 implementation of abstract interfaces, the contents of the list of
22740 primitives has entities whose alias attribute references entities of
22741 such list of primitives.
22742 (Analyze_Package_Specification): Simplify code that handles parent units
22743 of instances and formal packages.
22744 (Uninstall_Declarations): Check the convention consistency among
22745 primitive overriding operations of a tagged record type.
22746
22747 2006-10-31 Robert Dewar <dewar@adacore.com>
22748 Hristian Kirtchev <kirtchev@adacore.com>
22749 Javier Miranda <miranda@adacore.com>
22750 Ed Schonberg <schonberg@adacore.com>
22751
22752 * sem_ch8.adb: Minor error msg rewording
22753 (Undefined): When checking for misspellings, invert arguments (to get
22754 expected and found set right)
22755 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
22756 (Analyze_Generic_Renaming): Same fix
22757 (Use_One_Package): Do not take into account the internal entities of
22758 abstract interfaces during the analysis of entities that are marked
22759 as potentially use-visible.
22760 (Find_Type): Handle the case of an attribute reference for
22761 implementation defined attribute Stub_Type (simply let the analysis of
22762 the attribute reference rewrite it).
22763 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
22764 type that appears in a Use_Type clause.
22765 (Analyze_Object_Renaming): Add support for renaming of the Priority
22766 attribute.
22767 (Find_Type): In Ada 2005, a task type can be used within its own body,
22768 when it appears in an access definition.
22769 (Analyze_Object_Renaming): Remove warning on null_exclusion.
22770 (Analyze_Object_Renaming): Introduce checks for required null exclusion
22771 in a formal object declaration or in a subtype declaration.
22772 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
22773 (Check_Null_Exclusion): New local routine to
22774 Analyze_Subprogram_Renaming. Check whether the formals and return
22775 profile of a renamed subprogram have required null exclusions when
22776 their counterparts of the renaming already impose them.
22777 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
22778 Determine whether an entity is inside a generic scope.
22779 (In_Open_Scope): First pass of documentation update.
22780 (Find_Expanded_Name): Add support for shadow entities associated with
22781 limited withed packages. This is required to handle nested packages.
22782 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
22783 that makes a renaming of a limited withed package illegal.
22784
22785 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22786 Ed Schonberg <schonberg@adacore.com>
22787
22788 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
22789 Check_Overriding_Indicator.
22790 (Analyze_Task_Definition): Ditto.
22791 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
22792 (Check_Overriding_Indicator): To find overridden interface operation,
22793 examine only homonyms that have an explicit subprogram declaration, not
22794 inherited operations created by an unrelated type derivation.
22795 (Check_Overriding_Indicator): When checking for the presence of "null"
22796 in a procedure, ensure that the queried node is a procedure
22797 specification.
22798 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
22799 type when the formal is an access to variable.
22800 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
22801 (Analyze_Task_Type): Same addition
22802 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
22803 provide navigation capabilities for entries.
22804
22805 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22806 Ed Schonberg <schonberg@adacore.com>
22807 Javier Miranda <miranda@adacore.com>
22808 Gary Dismukes <dismukes@adacore.com>
22809
22810 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
22811 inherited from an interface ancestor by another interface in the
22812 context of an instance as 'late'.
22813 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
22814 of a call to a function that dispatches on access result.
22815 (Check_Dispatching_Operation): In case of late overriding of a primitive
22816 that covers abstract interface subprograms we register it in all the
22817 secondary dispatch tables associated with abstract interfaces.
22818 (Check_Dispatching_Call): Add check that a dispatching call is not made
22819 to a function with a controlling result of a limited type. This is a
22820 current implementation restriction.
22821 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
22822 (Check_Dispatching_Operation): Do no emit a warning if the controlling
22823 argument is an interface type that is a generic formal.
22824 (Is_Interface_Subprogram): Removed.
22825 (Check_Dispatching_Operation): If the subprogram is not a dispatching
22826 operation, check the formals to handle the case in which it is
22827 associated with an abstract interface type.
22828
22829 2006-10-31 Robert Dewar <dewar@adacore.com>
22830 Ed Schonberg <schonberg@adacore.com>
22831
22832 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
22833 Add new calls to this procedure during traversal
22834 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
22835 another unit if expansion is disabled.
22836
22837 2006-10-31 Robert Dewar <dewar@adacore.com>
22838
22839 * sem_eval.adb (Compile_Time_Compare): Make use of information from
22840 Current_Value in the conditional case, to evaluate additional
22841 comparisons at compile time.
22842
22843 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22844 Hristian Kirtchev <kirtchev@adacore.com>
22845 Javier Miranda <miranda@adacore.com>
22846
22847 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
22848 subprogram type to provide better diagnostics in case of ambiguity.
22849 (Covers): Handle coverage of formal and actual anonymous access types in
22850 the context of generic instantiation.
22851 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
22852 abstract interface types; this is required to handle concurrent types
22853 with discriminants and abstract interface types.
22854 (Covers): Include type coverage of both regular incomplete subtypes and
22855 incomplete subtypes of incomplete type visibles through a limited with
22856 clause.
22857
22858 2006-10-31 Robert Dewar <dewar@adacore.com>
22859 Hristian Kirtchev <kirtchev@adacore.com>
22860 Ed Schonberg <schonberg@adacore.com>
22861
22862 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
22863 messages for entities in packages which are not used.
22864 (Collect_Synchronized_Interfaces): New procedure.
22865 (Overrides_Synchronized_Primitive): New function.
22866 (Denotes_Discriminant): Extend predicate to apply to task types.
22867 Add missing continuation marks in error msgs
22868 (Unqualify): New function for removing zero or more levels of
22869 qualification from an expression. There are numerous places where this
22870 ought to be used, but we currently only deal properly with zero or one
22871 level.
22872 (In_Instance); The analysis of the actuals in the instantiation of a
22873 child unit is not within an instantiation, even though the parent
22874 instance is on the scope stack.
22875 (Safe_To_Capture_Value): Exclude the case of variables that are
22876 renamings.
22877 (Check_Obsolescent): Removed
22878 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
22879 is an aliased view, even when rewritten as a reference to the target
22880 object in an assignment.
22881 (Get_Subprogram_Entity): New function
22882 (Known_To_Be_Assigned): New function
22883 (Type_Access_Level): Compute properly the access level of a return
22884 subtype that is an anonymous access type.
22885 (Explain_Limited_Type): Correct use of "\" for continuation messages.
22886 (Is_Transfer): The new extended_return_statement causes a transfer of
22887 control.
22888 (Has_Preelaborable_Initialization): New function
22889 (Has_Null_Exclusion): New function. Given a node N, determine whether it
22890 has a null exclusion depending on its Nkind.
22891 Change Is_Lvalue to May_Be_Lvalue
22892 (May_Be_Lvalue): Extensive additional code to deal with subprogram
22893 arguments (IN parameters are not Lvalues, IN OUT parameters are).
22894 (Safe_To_Capture_Value): Extend functionality so it can be used for
22895 the current value condition case.
22896 (Has_Compatible_Alignment): New function
22897 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
22898 objects to handle the Ada 2005 case, where aliasedness no longer implies
22899 that the object is constrained. In particular, for dereferenced names,
22900 the designated object must be assumed to be unconstrained.
22901 (Kill_Current_Values): Properly deal with the case where we encounter
22902 a loop in the scope chain.
22903 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
22904 a value.
22905 (Compile_Time_Constraint_Error): Improve error message in error case
22906
22907 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
22908 associated with entities of abstract interface primitives.
22909 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
22910
22911 2006-10-31 Robert Dewar <dewar@adacore.com>
22912
22913 * s-osinte-tru64.adb:
22914 Mark Asm statements Volatile to prevent warnings (seems a
22915 reasonable change anyway)
22916 Fixes new warnings
22917
22918 * s-mastop-irix.adb: Add Volatile to Asm statements
22919 Suppresses warning, and seems appropriate in any case
22920
22921 * s-osinte-vms.adb: Add Volatile to Asm statement
22922
22923 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
22924
22925 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
22926 returned.
22927 Add call to Check_Code_Statement
22928
22929 2006-10-31 Robert Dewar <dewar@adacore.com>
22930 Ed Schonberg <schonberg@adacore.com>
22931 Bob Duff <duff@adacore.com>
22932
22933 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
22934 Synchronized_Present): Add Formal_Derived_Type_Definition and
22935 Private_Extension_Declaration to the list of assertions.
22936 (Is_Entry_Barrier_Function): New flag
22937 (Has_Self_Reference): New flag on aggregates, to indicate that they
22938 contain a reference to the enclosing type, inserted through a default
22939 initialization.
22940 (Next_Rep_Item): Move from Node4 to Node5.
22941 (Entity): Add this field for N_Attribute_Definition_Clause.
22942 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
22943 (N_Return_Object_Declaration): Remove this node kind. We now use
22944 N_Object_Declaration instead.
22945 (Actual_Designated_Subtype): Move to a different place to make room in
22946 N_Extended_Return_Statement.
22947 (Procedure_To_Call): Move to a different place to make room in
22948 N_Extended_Return_Statement.
22949 (Return_Type): Removed this field to make room in return statements
22950 (both kinds).
22951 (Return_Statement_Entity): New field in return statements, in part to
22952 replace Return_Type, and in part to support the fact that return
22953 statements are now pushed on the scope stack during semantic analysis.
22954 (Return_Object_Declarations): New field to support extended return
22955 statements.
22956 (N_Extended_Return_Statement): New node for extended_return_statement
22957 nonterminal.
22958 (N_Return_Object_Declaration): New node for part of
22959 extended_return_statement nonterminal. Needed because all the necessary
22960 fields won't fit in N_Extended_Return_Statement.
22961 Generic_associations now carry the Box_Present flag, to indicate a
22962 default for an actual in a partially parametrized formal package.
22963
22964 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
22965 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
22966 and for the new predefined dispatching policies: EDF_Across_Priorities,
22967 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
22968 Introduce new name Stub_Type for implementation defined attribute.
22969 Add pragma Preelaborable_Initialization
22970 Add entry for Priority attribute.
22971 Add Pragma_Wide_Character_Encoding
22972 (Get_Convention_Name): Given a convention id, this function returns the
22973 corresponding name id from the names table.
22974
22975 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22976 Robert Dewar <dewar@adacore.com>
22977 Bob Duff <duff@adacore.com>
22978
22979 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
22980 print null exclusion twice in the case of an access definition,
22981 Implement new -gnatL switch
22982 Remove N_Return_Object_Declaration. We now use
22983 N_Object_Declaration instead. Implement the case for
22984 N_Extended_Return_Statement. Alphabetize the cases.
22985 Add cases for new nodes N_Extended_Return_Statement and
22986 N_Return_Object_Declaration. The code is not yet written.
22987 Update the output for N_Formal_Object_Declaration
22988 and N_Object_Renaming_Declaration.
22989 (Write_Itype): Account for the case of a modular integer subtype whose
22990 base type is private.
22991
22992 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22993
22994 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
22995 Remove elaboration code, now done in the binder.
22996
22997 * s-rident.ads: Make this unit Preelaborate.
22998 (No_Restrictions): New constant used to clean up code and follow
22999 preelaborate constraints.
23000
23001 * s-stalib.adb:
23002 Add System.Restrictions dependence, referenced directly from the
23003 binder generated file.
23004
23005 2006-10-31 Gary Dismukes <dismukes@adacore.com>
23006
23007 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
23008 True when AAMP extended floating-point is in use (48-bit). Change type
23009 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
23010 the two byte array types on AFloat. Change type of IV_Ilf overlay
23011 variable from Byte8 to ByteLF. Add appropriate initializations of
23012 floating-point overlays for AAMP cases.
23013
23014 2006-10-31 Javier Miranda <miranda@adacore.com>
23015
23016 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
23017 (Get_Ceiling): New subprogram that returns
23018 the ceiling priority of the protected object.
23019 (Set_Ceiling): New subprogram that sets the new ceiling priority of
23020 the protected object.
23021
23022 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
23023
23024 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
23025
23026 2006-10-31 Jose Ruiz <ruiz@adacore.com>
23027
23028 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
23029 requeuing to the same protected object to give higher priority tasks
23030 the opportunity to execute.
23031
23032 2006-10-31 Robert Dewar <dewar@adacore.com>
23033
23034 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
23035 add more precise check for the character sequence that follows '[' to
23036 avoid possible confusion in case if '[' is the last character of a
23037 string literals.
23038 (Scan_Wide): Always allow brackets encoding
23039
23040 2006-10-31 Olivier Hainque <hainque@adacore.com>
23041
23042 * s-stchop.ads: make this unit preelaborate. This is desirable in
23043 general and made mandatory by the use of this unit by s-taprop which
23044 is itself preelaborate.
23045
23046 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
23047 Td_Events component.
23048
23049 2006-10-31 Vincent Celier <celier@adacore.com>
23050
23051 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
23052 in file names.
23053
23054 2006-10-31 Vincent Celier <celier@adacore.com>
23055
23056 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
23057
23058 2006-10-31 Vincent Celier <celier@adacore.com>
23059
23060 * makegpr.adb (Check_Compilation_Needed): Take into account path names
23061 with spaces.
23062 (Check_Compilation_Needed): When checking a C or C++ source, do not
23063 resolve symbolic links.
23064 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
23065 When not in verbose mode and Ellipse is True, display "..." for the
23066 first argument with Display set to False.
23067 (Build_Global_Archive): Always set Display True for the first object
23068 file. Call Display_Command with Ellipse set to True.
23069
23070 2006-10-31 Matt Heaney <heaney@adacore.com>
23071
23072 * a-crbtgo.ads: Commented each subprogram
23073
23074 * a-crbtgo.adb: Added reference to book from which algorithms were
23075 adapted.
23076
23077 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
23078 indicate which child.
23079 (Generic_Conditional_Insert): changed parameter name from "Success" to
23080 "Inserted".
23081 (Generic_Unconditional_Insert_With_Hint): improved algorithm
23082
23083 * a-coorse.adb (Replace_Element): changed parameter name in call to
23084 conditional insert operation.
23085
23086 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
23087
23088 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
23089 Generic_Iteration
23090
23091 * a-ciorse.adb (Replace_Element): changed parameter name in call to
23092 conditional insert operation.
23093
23094 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
23095 Generic_Iteration.
23096
23097 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
23098 instead of mode inout.
23099
23100 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
23101 draft
23102 (Generic_Read): preserve existing buckets array if possible
23103 (Generic_Write): don't send buckets array length anymore
23104
23105 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
23106 instead of mode inout.
23107
23108 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
23109 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
23110
23111 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
23112 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
23113 (Replace_Element): local operation is now an instantiation
23114
23115 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
23116 check current length.
23117 (Generic_Replace_Element): new operation
23118
23119 2006-10-31 Doug Rupp <rupp@adacore.com>
23120
23121 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
23122 Call TBK$SYMBOLIZE without omitting parameters.
23123
23124 2006-10-31 Vincent Celier <celier@adacore.com>
23125
23126 * symbols-processing-vms-ia64.adb,
23127 symbols-processing-vms-alpha.adb (Process): Do not include symbols
23128 that come from generic instantiations in bodies.
23129
23130 2006-10-31 Pat Rogers <rogers@adacore.com>
23131
23132 * a-rttiev.ads, a-rttiev.adb:
23133 This is a significant redesign primarily for the sake of automatic
23134 timer task termination but also to fix a design flaw.
23135 Therefore we are now using an RTS lock, instead of a protected
23136 object, to provide mutual exclusion to the queue of pending events
23137 and the type Timing_Event is no longer a protected type.
23138
23139 2006-10-31 Robert Dewar <dewar@adacore.com>
23140 Cyrille Comar <comar@adacore.com>
23141 Ben Brosgol <brosgol@adacore.com>
23142
23143 * debug.adb: Update flags documentation
23144
23145 * gnat_ugn.texi: Add documentation for new -gnatwq switch
23146 Clean up documentation for several other warning switches
23147 Clarify how task stack size can be specified with various
23148 versions of Windows.
23149 Add note that -gnatVo includes ranges including loops
23150 Add documentation for -gnatL switch
23151 Add note on elaboration warning for initializing variables
23152 Add documentation for new -gnatwt warning switch
23153 Document new form of pragma Warnings (On|Off, string)
23154 Add comment on use of pragma Warnings to control warnings
23155 Add documentation for -gnatjnn switch
23156 Modify section on interfacing with C for VMS 64-bit.
23157 Add doc for -gnatVe/E
23158 Add documentation of new warning flags -gnatww/-gnatwW
23159 Add warnings about address clause overlays to list of warnings
23160 (Exception Handling Control): Document that the option --RTS must be
23161 used consistently for gcc and gnatbind.
23162 Clarify that inlining is not always possible
23163 Update documentation on pragma Unchecked_Union.
23164
23165 * gnat_rm.texi:
23166 Add documentation for new extended version of pragma Obsolescent
23167 Add documentation for implementation defined attribute 'Stub_Type.
23168 Add note on use of Volatile in asm statements
23169 Add documentation on use of pragma Unreferenced in context clause
23170 Document new form of pragma Warnings (On|Off, pattern)
23171 Document pragma Wide_Character_Encoding
23172 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
23173 enforced if code generation is active.
23174 Add section on pragma Suppress to document GNAT specific check
23175 Alignment_Check
23176 Clarify difference between No_Dispatching_Calls & No_Dispatch.
23177 Add documentation for pragma Restrictions (No_Elaboration_Code)
23178
23179 * gnat-style.texi:
23180 Add comments on layout of subprogram local variables in the
23181 presence of nested subprograms.
23182
23183 * ug_words: Resync.
23184
23185 * elists.ads: Minor reformatting
23186 Node returns Node_Or_Entity_Id (doc change only)
23187
23188 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
23189
23190 * g-arrspl.ads (Create): Update comments.
23191
23192 * sem.ads: Add details on the handling of the scope stack.
23193
23194 * usage.adb: Update documentation.
23195
23196 * validsw.ads, validsw.adb:
23197 Add definition of Validity_Check_Components and implement -gnatVe/E
23198
23199 * vms_data.ads: Add missing VMS qualifiers.
23200
23201 * s-addope.ads: Add documentation on overflow and divide by zero
23202
23203 2006-10-31 Robert Dewar <dewar@adacore.com>
23204 Thomas Quinot <quinot@adacore.com>
23205 Arnaud Charlet <charlet@adacore.com>
23206
23207 * fmap.adb: Put routines in alpha order
23208
23209 * g-boumai.ads: Remove redundant 'in' keywords
23210
23211 * g-cgi.adb: Minor reformatting
23212
23213 * g-cgi.ads: Remove redundant 'in' keywords
23214
23215 * get_targ.adb: Put routines in alpha order
23216
23217 * prj-attr.ads: Minor reformatting
23218
23219 * s-atacco.ads: Minor reformatting
23220
23221 * scn.adb: Put routines in alpha order
23222
23223 * sinput-l.adb: Minor comment fix
23224
23225 * sinput-p.adb: Minor comment fix
23226
23227 * s-maccod.ads: Minor reformatting
23228
23229 * s-memory.adb: Minor reformatting
23230
23231 * s-htable.adb: Fix typo in comment.
23232
23233 * s-secsta.adb: Minor comment update.
23234
23235 * s-soflin.adb: Minor reformatting
23236
23237 * s-stoele.ads:
23238 Add comment about odd qualification in Storage_Offset declaration
23239
23240 * s-strxdr.adb:
23241 Remove unnecessary 'in' keywords for formal parameters.
23242
23243 * treeprs.adt: Minor reformatting
23244
23245 * urealp.adb: Put routines in alpha order
23246
23247 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
23248 taking string.
23249
23250 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
23251
23252 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
23253
23254 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
23255 workaround as on other platforms.
23256
23257 * g-eacodu-vms.adb: Remove redundant 'in' keywords
23258 * g-expect-vms.adb: Remove redundant 'in' keywords
23259
23260 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
23261 clear error message if the list-of-files file cannot be opened.
23262
23263 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
23264 equality operator is always visible.
23265
23266 * lang.opt: Woverlength-strings: New option.
23267
23268 * nmake.adt:
23269 Update copyright, since nmake.ads and nmake.adb have changed.
23270
23271 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
23272 (Binder_Output_Time_Stamps_Set): removed.
23273 (Old_Binder_Output_Time_Stamp): idem.
23274 (New_Binder_Output_Time_Stamp): idem.
23275 (Recording_Time_From_Last_Bind): idem.
23276 (Recording_Time_From_Last_Bind): Make constant.
23277
23278 * output.ads, output.adb (Write_Str): Allow LF characters
23279 (Write_Spaces): New procedure
23280
23281 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
23282
23283 * inline.adb: Minor reformatting
23284
23285 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
23286
23287 * s-mastop-vms.adb: Remove redundant 'in' keywords
23288
23289 * s-osprim-vms.adb: Remove redundant 'in' keywords
23290
23291 * s-trafor-default.adb: Remove redundant 'in' keywords
23292
23293 * 9drpc.adb: Remove redundant 'in' keywords
23294
23295 * s-osinte-mingw.ads: Minor reformatting
23296
23297 * s-inmaop-posix.adb: Minor reformatting
23298
23299 * a-direio.ads: Remove quotes from Compile_Time_Warning message
23300
23301 * a-exexda.adb: Minor code reorganization
23302
23303 * a-filico.adb: Minor reformatting
23304
23305 * a-finali.adb: Minor reformatting
23306
23307 * a-nudira.ads: Remove quote from Compile_Time_Warning message
23308
23309 * a-numeri.ads: Minor reformatting
23310
23311 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
23312
23313 * exp_pakd.ads: Fix obsolete comment
23314
23315 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
23316 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
23317 Probably not a bug, but certainly neater and more efficient.
23318
23319 * a-tienio.adb: Minor reformatting
23320
23321 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
23322 Avoid assuming low bound of string is 1.
23323
23324 * gnatbind.adb: Change Bindusg to package and rename procedure as
23325 Display, which now ensures that it only outputs usage information once.
23326 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
23327
23328 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
23329 Table'First.
23330
23331 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
23332 warning.
23333 (Match): Add pragma Assert to ensure that Matches'First is zero
23334
23335 * g-regpat.ads (Match): Document that Matches lower bound must be zero
23336
23337 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
23338 documented preconditions (also kills warnings about bad indexes).
23339
23340 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
23341 is 1.
23342 (Build_Import_Library): Ditto;
23343
23344 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
23345
23346 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
23347
23348 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
23349 lower bound of choice table is 1.
23350
23351 * sem_case.ads (Analyze_Choices): Document that lower bound of
23352 Choice_Table is 1.
23353
23354 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
23355 string is 1.
23356
23357 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
23358 and add appropriate Assert pragma to suppress warnings.
23359
23360 * atree.h, atree.ads, atree.adb
23361 Change Elist24 to Elist25
23362 Add definitions of Field28 and Node28
23363 (Traverse_Field): Use new syntactic parent table in sinfo.
23364
23365 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
23366
23367 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
23368
23369 * exp_tss.adb: Put routines in alpha order
23370
23371 * fe.h: Remove redundant declarations.
23372
23373 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
23374
23375 * utils.c (builtin_function): Rename to gnat_builtin_function.
23376 Move common code to add_builtin_function.
23377 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
23378 gnat_builtin_function.
23379 * gigi.h (builtin_function): Rename to gnat_builtin_function.
23380 Change the signature.
23381
23382 2006-10-16 Brooks Moses <bmoses@stanford.edu>
23383
23384 * Makefile.in: Add TEXI2PDF definition.
23385 * Make-lang.in: Add "ada.pdf" target.
23386
23387 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
23388
23389 * decl.c, utils.c: Fix comment typos.
23390 * utils.c: Fix a typo.
23391
23392 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
23393
23394 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
23395 on "pure" Ada subprograms if SJLJ exceptions are used.
23396 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
23397 on the declaration node of JMPBUF_SAVE.
23398 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
23399 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
23400 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
23401
23402 2006-08-20 Laurent Guerby <laurent@guerby.net>
23403
23404 PR ada/28716
23405 g-socket.adb (Bind_Socket): Call Set_Address.
23406
23407 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
23408
23409 PR ada/15802
23410 * decl.c (same_discriminant_p): New static function.
23411 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
23412 subtype and we have discriminants, fix up the COMPONENT_REFs
23413 for the discriminants to make them reference the corresponding
23414 fields of the parent subtype after it has been built.
23415
23416 2006-09-15 Roger Sayle <roger@eyesopen.com>
23417
23418 PR ada/18817
23419 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
23420 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
23421
23422 2006-09-13 Olivier Hainque <hainque@adacore.com>
23423
23424 PR ada/29025
23425 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
23426 of a SAVE_EXPR, just make the operand addressable/not-readonly and
23427 let the common gimplifier code make and propagate a temporary copy.
23428 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
23429 out/in-out actuals and defer setting the addressable/readonly bits
23430 to the gimplifier.
23431
23432 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
23433
23434 PR ada/28591
23435 * decl.c (components_to_record): Defer emitting debug info for the
23436 record type associated with the variant until after we are sure to
23437 actually use it.
23438
23439 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
23440
23441 PR ada/21952
23442 * gigi.h (gnat_internal_attribute_table): Declare.
23443 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
23444 * utils.c (gnat_internal_attribute_table): New global variable.
23445 (builtin_function): Always call decl_attributes on the builtin.
23446 (handle_const_attribute): New static function.
23447 (handle_nothrow_attribute): Likewise.
23448
23449 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
23450
23451 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
23452
23453 2006-06-23 Olivier Hainque <hainque@adacore.com>
23454
23455 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
23456 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
23457
23458 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
23459 Eric Botcazou <ebotcazou@adacore.com>
23460
23461 PR ada/18692
23462 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
23463 check-gnat into check-acats.
23464
23465 2006-06-17 Karl Berry <karl@gnu.org>
23466
23467 * gnat-style.texi (@dircategory): Use "Software development"
23468 instead of "Programming", following the Free Software Directory.
23469
23470 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23471
23472 PR ada/27944
23473 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
23474
23475 2006-06-06 Laurent Guerby <laurent@guerby.net>
23476
23477 PR ada/27769
23478 mlib-utl.adb: Use Program_Name.
23479
23480 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
23481
23482 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
23483 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
23484 trans.c, utils.c: Fix comment typos. Follow spelling
23485 conventions.
23486 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
23487 conventions.
23488
23489 2006-05-19 Nicolas Setton <setton@adacore.com>
23490
23491 * misc.c (gnat_dwarf_name): New function.
23492 (LANG_HOOKS_DWARF_NAME): Define to it.
23493
23494 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
23495
23496 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
23497 (ada/misc.o): Likewise.
23498 (ada/utils.o): Likewise.
23499
23500 2006-04-08 Aurelien Jarno <aurel32@debian.org>
23501
23502 * Makefile.in: Add Ada support for GNU/kFreeBSD.
23503 * s-osinte-kfreebsd-gnu.ads: New file.
23504
23505 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
23506
23507 * Make-lang.in: Rename docdir to gcc_docdir.
23508
23509 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
23510
23511 * gigi.h (get_ada_base_type): Delete.
23512 * utils2.c (get_ada_base_type): Likewise.
23513 * trans.c (convert_with_check): Operate in the real base type.
23514
23515 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23516
23517 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
23518
23519 2006-03-02 Richard Sandiford <richard@codesourcery.com>
23520
23521 * utils.c (create_var_decl): Use have_global_bss_p when deciding
23522 whether to make the decl common.
23523
23524 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
23525
23526 * Make-lang.in (Ada): Remove.
23527 (.PHONY): Remove Ada
23528
23529 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23530
23531 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
23532 aggregate, check the interpretations of the other operand to find one
23533 that may be a boolean array.
23534
23535 (Analyze_Selected_Component): Fix flow-of-control typo in case where
23536 the prefix is a private extension.
23537
23538 2006-02-17 Eric Botcazou <botcazou@adacore.com>
23539
23540 PR ada/26315
23541 * utils2.c (find_common_type): If both input types are BLKmode and
23542 have the same constant size, keep using the first one.
23543
23544 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
23545
23546 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
23547
23548 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
23549
23550 2006-02-17 Jose Ruiz <ruiz@adacore.com>
23551
23552 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23553 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
23554 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
23555 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
23556 Abort_Defer/Undefer pairs to avoid the possibility of a task being
23557 aborted while owning a lock.
23558
23559 2006-02-17 Javier Miranda <miranda@adacore.com>
23560 Robert Dewar <dewar@adacore.com>
23561
23562 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
23563 through an access to class-wide interface we force the displacement of
23564 the pointer to the allocated object to reference the corresponding
23565 secondary dispatch table.
23566 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
23567 if Long_Shifts are supported on the target, even if 64 bit divides
23568 are not supported (configurable run time mode).
23569 (Expand_N_Type_Conversion): Do validity check if validity checks on
23570 operands are enabled.
23571 (Expand_N_Qualified_Expression): Do validity check if validity checks
23572 on operands are enabled.
23573
23574 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23575
23576 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
23577 must be materialized when the renamed expression is an explicit
23578 dereference.
23579
23580 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23581
23582 * freeze.adb (Statically_Discriminated_Components): Return false if
23583 the bounds of the type of the discriminant are not static expressions.
23584
23585 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
23586 the bounds of the discriminant type are not static.
23587
23588 2006-02-17 Robert Dewar <dewar@adacore.com>
23589
23590 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
23591 then we close To if it is valid.
23592
23593 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
23594
23595 * init.c (facility_resignal_table): new array
23596 (__gnat_default_resignal_p): enhance default predicate to resignal if
23597 VMS condition has one of the predefined facility codes.
23598
23599 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
23600
23601 * Makefile.in: Use VMS64 specialized versions of several units in
23602 Interfaces.C hierarchy to be compatible with HP C default size choices.
23603 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
23604
23605 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23606
23607 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
23608 instantiation, the corresponding entity is the related_instance of the
23609 wrapper package created for the instance.
23610
23611 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23612
23613 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
23614 the current instance is nested within another instance in a child unit.
23615
23616 2006-02-17 Javier Miranda <miranda@adacore.com>
23617 Ed Schonberg <schonberg@adacore.com>
23618
23619 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
23620 type we cannot inherit the primitive operations; we inherit the
23621 Corresponding_Record_Type (which has the list of primitive operations).
23622 (Check_Anonymous_Access_Types): When creating anonymous access types for
23623 access components, use Rewrite in order to preserve the tree structure,
23624 for ASIS use.
23625 (Analyze_Object_Declaration): For limited types with access
23626 discriminants with defaults initialized by an aggregate, obtain
23627 subtype from aggregate as for other mutable types.
23628 (Derived_Type_Declaration): If the derived type is a limited interface,
23629 set the corresponding flag (Is_Limited_Record is not sufficient).
23630
23631 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23632
23633 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
23634 to inline a function that returns an unconstrained type, the return
23635 expression must be the first variable declared in the body of the
23636 function.
23637
23638 2006-02-17 Javier Miranda <miranda@adacore.com>
23639
23640 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
23641 abstract interface type, the static analysis is not enough to know if
23642 the interface is implemented or not by the source tagged type. Hence
23643 we must pass the work to the expander to generate the required code to
23644 evaluate the conversion at run-time.
23645 (Resolve_Equality_Op): Do not apply previous
23646 transformation if expansion is disasbled, to prevent anomalies when
23647 locating global references in a generic unit.
23648
23649 2006-02-17 Vincent Celier <celier@adacore.com>
23650
23651 * snames.ads, snames.adb: New standard names for new project attributes:
23652 archive_builder, archive_indexer, compiler_pic_option,
23653 config_body_file_name, config_body_file_name_pattern,
23654 config_file_switches, config_file_unique, config_spec_file_name,
23655 config_spec_file_name_pattern, default_builder_switches,
23656 default_global_compiler_switches, default_language,
23657 dependency_file_kind, global_compiler_switches, include_path,
23658 include_path_file, language_kind, linker_executable_option,
23659 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
23660 roots, runtime_project.
23661
23662 2006-02-17 Matthew Heaney <heaney@adacore.com>
23663
23664 * a-convec.ads, a-convec.adb:
23665 (operator "&"): handle potential overflow for large index types
23666 (Insert): removed Contraint_Error when using large index types
23667 (Insert_Space): removed Constraint_Error for large index types
23668 (Length): moved constraint check from Length to Insert
23669
23670 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
23671 as not null access.
23672 Explicit raise statements now include an exception message.
23673 (operator "&"): handle potential overflow for large index types
23674 (Insert): removed Contraint_Error when using large index types
23675 (Insert_Space): removed Constraint_Error for large index types
23676 (Length): moved constraint check from Length to Insert
23677
23678 2006-02-17 Robert Dewar <dewar@adacore.com>
23679
23680 * s-wchcnv.adb: Document handling of [ on output (we do not change
23681 this to ["5B"] and the new comments say why not.
23682
23683 * gnat_ugn.texi:
23684 Add note for -gnatVo that this now includes the cases of type
23685 conversions and qualified expressions.
23686 Add comments on handling of brackets encoding for Text_IO
23687
23688 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
23689 Thomas Quinot <quinot@adacore.com>
23690 Robert Dewar <dewar@adacore.com>
23691 Javier Miranda <miranda@adacore.com>
23692
23693 * expander.adb: Fix typo in comment
23694
23695 * exp_pakd.adb: Fix typo
23696 Minor comment reformatting.
23697
23698 * g-dyntab.adb: Minor reformatting
23699
23700 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
23701 aliased subprograms to look for the abstract interface subprogram.
23702
23703 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
23704
23705 * env.c (__gnat_setenv): Use size_t.
23706 (__gnat_unsetenv): Likewise.
23707 (__gnat_clearenv): Likewise.
23708
23709 2006-02-16 Arnaud Charlet <charlet@adacore.com>
23710
23711 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
23712
23713 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23714
23715 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
23716 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
23717 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
23718 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
23719 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
23720 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
23721 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
23722 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
23723 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
23724 no longer used.
23725
23726 2006-02-13 Jose Ruiz <ruiz@adacore.com>
23727
23728 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
23729 protection against race conditions is not needed.
23730 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
23731 fallback handler.
23732 (Set_Specific_Handler): Add mutual exclusive access to the specific
23733 handler.
23734 (Specific_Handler): Add mutual exclusive access for retrieving the
23735 specific handler.
23736
23737 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
23738 back handler.
23739
23740 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
23741 Fall_Back_Handler and Specific_Handler.
23742
23743 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
23744 termination handlers.
23745 Set two different owerflow depending on the maximal stack size.
23746
23747 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
23748 protection against race conditions is not needed when executing the
23749 task termination handler.
23750
23751 2006-02-13 Robert Dewar <dewar@adacore.com>
23752
23753 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
23754 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
23755 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23756 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
23757 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
23758 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
23759 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
23760 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
23761 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
23762 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23763 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
23764 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
23765 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
23766 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
23767 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
23768 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
23769 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
23770 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
23771 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
23772 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
23773 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
23774 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
23775 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
23776 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
23777 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
23778 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
23779 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
23780 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
23781 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
23782 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
23783 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
23784 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
23785 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
23786 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
23787 reformatting.
23788
23789 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23790
23791 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
23792 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
23793 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
23794 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
23795 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
23796 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
23797 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
23798 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
23799 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
23800
23801 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23802
23803 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
23804 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
23805 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
23806 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
23807 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
23808 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
23809 replaced by anonymous access type.
23810 (pthread_sigmask): Now take an access sigset_t
23811
23812 * s-osinte-hpux.ads: Ditto.
23813 (pthread_mutex_t, pthread_cond_t): Update definitions to support
23814 properly 32 and 64 bit ABIs.
23815
23816 2006-02-13 Pascal Obry <obry@adacore.com>
23817
23818 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
23819 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
23820 s-taprop-linux.adb, s-taprop-solaris.adb,
23821 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
23822 adjustement is already done when calling this routine.
23823
23824 2006-02-13 Pascal Obry <obry@adacore.com>
23825
23826 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
23827 table to take advantage of the 16 priority levels available on Windows
23828 2000 and XP. On NT4 there are only 7 priority levels, this is properly
23829 supported by this new mapping.
23830
23831 2006-02-13 Nicolas Setton <setton@adacore.com>
23832
23833 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
23834 (get_encoding): New subprogram. Extracts the encodings from an encoded
23835 Ada name.
23836
23837 2006-02-13 Pascal Obry <obry@adacore.com>
23838 Nicolas Roche <roche@adacore.com>
23839 Arnaud Charlet <charlet@adacore.com>
23840
23841 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
23842 support.
23843 (__gnat_try_lock): Add unicode support by using a specific section on
23844 Windows.
23845 (__gnat_get_current_dir): Idem.
23846 (__gnat_open_read): Idem.
23847 (__gnat_open_rw): Idem.
23848 (__gnat_open_create): Idem.
23849 (__gnat_create_output_file): Idem.
23850 (__gnat_open_append): Idem.
23851 (__gnat_open_new): Idem.
23852 (__gnat_file_time_name): Idem.
23853 (__gnat_set_file_time_name): Idem.
23854 (__gnat_stat): Idem.
23855 (win32_no_block_spawn): Idem.
23856 (__gnat_locate_exec_on_path): Idem.
23857 (__gnat_opendir): New routine.
23858 (__gnat_closedir): Idem.
23859 (__gnat_readdir): Add new parameter length (pointer to int). Update
23860 implementation to use it and add specific Win32 code for Unicode
23861 support.
23862 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
23863 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
23864 (convert_addresses): Do not define this dummy routine on VMS.
23865
23866 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
23867 runtime Unicode support will be activated.
23868 (S2WS): String to Wide-String conversion. This version just copy a
23869 string in non Unicode version.
23870 (WS2S): Wide-String to String conversion. This version just copy a
23871 string in non Unicode version.
23872
23873 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
23874 (Open): Now import __gnat_opendir from adaint.c.
23875 (Read): Change the implementation to support unicode characters. It is
23876 not possible to use strlen() on Windows as this version supports only
23877 standard ASCII characters. So the length of the directory entry is now
23878 returned from the imported __gnat_readdir routine.
23879 Update copyright notice.
23880
23881 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
23882 (opendir): Moved to adaint.c.
23883
23884 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
23885 (Get_Directory): Fix wrong indexing.
23886 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
23887 __gnat_getenv from env.c
23888 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
23889 from env.c
23890
23891 * env.h, env.c: New file.
23892
23893 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
23894 adaint.c by __gnat_getenv from env.c
23895
23896 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
23897 adaint.c by __gnat_getenv from env.c
23898
23899 * Make-lang.in: Add env.o in the list of C object needed by gnat1
23900 and gnatbind.
23901 Update dependencies.
23902
23903 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23904 Olivier Hainque <hainque@adacore.com>
23905 Eric Botcazou <ebotcazou@adacore.com>
23906
23907 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
23908
23909 * gigi.h (value_factor_p): Add prototype and description, now public.
23910
23911 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
23912 promotion for field with rep clause if the associated size was proven
23913 to be in error.
23914 Expand comments describing attempts to use a packable type.
23915 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
23916 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
23917 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
23918 necessary since these are not different types and pointers may
23919 actually designate any subtype in this hierarchy.
23920 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
23921 discriminants but put them into record only if not Unchecked_Union;
23922 pass flag to components_to_record showing Unchecked_Union.
23923 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
23924 components before variants; don't set TYPE_UNCHECKED_UNION_P.
23925 (components_to_record): New argument UNCHECKED_UNION.
23926 Remove special case code for Unchecked_Union and instead use main code
23927 with small changes.
23928
23929 PR ada/26096
23930 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
23931 variable with the expression being built, only its inner field.
23932
23933 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
23934 emit_sequence_entry_statements.
23935 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
23936 (establish_gnat_vms_condition_handler): Move before
23937 Subprogram_Body_to_gnu.
23938 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
23939 for a subprogram if it has a foreign convention or is exported.
23940 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
23941 substituted for a CONST_DECL.
23942 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
23943 Etype to assoc_to_constructor.
23944 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
23945 discriminants of Unchecked_Union.
23946 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
23947 don't need cluttering preprocessor directives.
23948 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
23949 condition handler as current in the compiled function.
23950 (body_with_handlers_p): New function. Tell whether a given sequence of
23951 statements node is attached to a package or subprogram body and involves
23952 exception handlers possibly nested within inner block statements.
23953 (emit_sequence_entry_statements): New function, to emit special
23954 statements on entry of sequences when necessary. Establish GNAT
23955 condition handler in the proper cases for VMS.
23956 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
23957 emit_sequence_entry_statements.
23958
23959 * utils2.c (find_common_type): If both input types are BLKmode and
23960 have a constant size, use the smaller one.
23961 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
23962 the same.
23963
23964 * utils.c (value_factor_p): Make public, to allow uses from other gigi
23965 units.
23966 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
23967 (convert, case UNION_TYPE): Remove special treatment for unchecked
23968 unions.
23969
23970 PR ada/18659
23971 (update_pointer_to): Update variants of pointer types to unconstrained
23972 arrays by attaching the list of fields of the main variant.
23973
23974 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23975 Robert Dewar <dewar@adacore.com>
23976
23977 * a-exexpr.adb, a-exexpr-gcc.adb
23978 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
23979 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
23980 Remove code unused for exception propagation for the compiler itself
23981 from a-except.adb and update to still share separate packages.
23982
23983 * a-except.ads, a-except.adb: Ditto.
23984 Add comments that this version is now used only by the compiler and
23985 other basic tools. The full version that includes the Ada 2005 stuff
23986 is in separate files a-except-2005.ads/adb. The reason is that we do
23987 not want to cause bootstrap problems with compilers not recognizing
23988 Wide_Wide_String.
23989 Add exception reason code PE_Implicit_Return
23990 Add new exception reason code (Null Exception_Id)
23991
23992 * a-except-2005.adb, a-except-2005.ads: New files.
23993
23994 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
23995
23996 * s-wchcon.adb: New file.
23997
23998 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
23999 (traceback.o deps): Likewise.
24000 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
24001 Activate build of GMEM instrumentation library on VMS targets.
24002 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
24003 Use a-except-2005.ads/adb for all run-time library builds unless
24004 specified otherwise.
24005 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
24006 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
24007 Use s-parame.adb on all native platforms.
24008 Use s-parame-vxworks.adb on all vxworks platforms.
24009 Add env.c env.h in LIBGNAT_SRCS
24010 Add env.o in LIBGNAT_OBJS
24011 (GNATMAKE_OBJS): Remove ctrl_c.o object.
24012 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
24013 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
24014 supports VxWorks 6 RTPs.
24015 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
24016 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
24017
24018 * types.h, types.ads (Terminate_Program): New exception
24019 Add comment on modifying multiple versions of a-except.adb when the
24020 table of exception reasons is modified.
24021 Add exception reason code PE_Implicit_Return
24022 Add new exception reason code (Null Exception_Id)
24023
24024 * clean.adb (Initialize): Get the target parameters before checking
24025 if target is OpenVMS. Move the OpenVMS specific code here from package
24026 body elaboration code.
24027
24028 2006-02-13 Thomas Quinot <quinot@adacore.com>
24029 Vincent Celier <celier@adacore.com>
24030 Robert Dewar <dewar@adacore.com>
24031
24032 * ali-util.adb (Get_File_Checksum): Update to account for change in
24033 profile of Initialize_Scanner.
24034
24035 * gprep.adb (Gnatprep): Update to account for change in profile of
24036 Initialize_Scanner.
24037 (Process_One_File): Same.
24038
24039 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
24040 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
24041 that behaviour using the new Unit information recorded in the source
24042 files table, rather than going through all units every time.
24043 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
24044 (Get_Source_Unit): Same.
24045
24046 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
24047 change in profile of Initialize_Scanner.
24048 (Prepare_To_Preprocess): Same.
24049
24050 * lib.ads: Fix typo in comment (templace -> template).
24051
24052 * prj-part.adb (Parse_Single_Project): Update to account for change in
24053 profile of Initialize_Scanner.
24054
24055 * scn.adb (Initialize_Scanner): Account for change in profile of
24056 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
24057 Also record the association of the given Source_File_Index to the
24058 corresponding Unit_Number_Type.
24059
24060 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
24061 procedure.
24062 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
24063 Remove Unit formal for generic scanner: this formal
24064 is only relevant to Scn (the scanner instance used to parse Ada source
24065 files), not to other instances. Update comment accordingly.
24066 (Scan): Use new function Snames.Is_Keyword_Name.
24067
24068 * sinfo-cn.adb: Fix typo in comment.
24069
24070 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
24071 Unit.
24072
24073 * sinput.ads (Source_File_Record): New component Unit, used to capture
24074 the unit identifier (if any) associated to a source file.
24075
24076 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
24077 Unit in Source_File_Record.
24078
24079 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
24080 in profile of Initialize_Scanner.
24081
24082 * scans.adb (Initialize_Ada_Keywords): New procedure
24083
24084 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
24085 Ada keywords in the Namet table, without the need to call
24086 Initialize_Scanner.
24087
24088 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
24089 (Is_Keyword_Name): New function
24090
24091 * snames.ads: Add subtype Configuration_Pragma_Names
24092 Add pragma Ada_2005 (synonym for Ada_05)
24093 (Is_Keyword_Name): New function
24094
24095 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
24096
24097 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24098
24099 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
24100 index.
24101
24102 * a-stwima.adb (To_Set): Add extra check when N = 0.
24103
24104 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
24105
24106 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24107
24108 * s-parame-mingw.adb, s-parame-linux.adb,
24109 s-parame-solaris.adb: Removed, replaced by s-parame.adb
24110
24111 * s-parame-vxworks.ads: Fix typo.
24112
24113 * s-parame-vxworks.adb: New file.
24114
24115 * s-parame.adb: Version now used by all native platforms.
24116 (Default_Stack_Size): Use 2 megs for default stack size and use
24117 __gl_default_stack_size when available.
24118 (Minimum_Stack_Size): Use 12K.
24119
24120 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
24121 (Create_Task): Refine implementation taking advantage of the XP stack
24122 size support. On XP, we now create the thread using the flag
24123 STACK_SIZE_PARAM_IS_A_RESERVATION.
24124
24125 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
24126
24127 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
24128 XP and 0 on older Windows versions.
24129
24130 * interfac-vms.ads: Removed, no longer used.
24131
24132 2006-02-13 Matthew Heaney <heaney@adacore.com>
24133
24134 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
24135 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
24136 a-cohase.adb: All explicit raise statements now include an exception
24137 message.
24138
24139 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
24140 (Update_Element_Preserving_Key): renamed op to just Update_Element.
24141 Explicit raise statements now include an exception message
24142
24143 * a-cihase.ads, a-cohase.ads: Removed comment.
24144
24145 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
24146 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
24147 a-szbzha.adb, a-szfzha.ads: New files.
24148
24149 2006-02-13 Matthew Heaney <heaney@adacore.com>
24150
24151 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
24152 quicksort.
24153
24154 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24155
24156 * lang.opt: Wvariadic-macros: New option.
24157 Wold-style-definition: Likewise.
24158 Wmissing-format-attribute: Likewise.
24159
24160 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
24161 -Wold-style-definition and -Wmissing-format-attribute.
24162
24163 2006-02-13 Robert Dewar <dewar@adacore.com>
24164
24165 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
24166
24167 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
24168
24169 2006-02-13 Nicolas Roche <roche@adacore.com>
24170
24171 * a-envvar.adb, a-envvar.ads: New files.
24172
24173 2006-02-13 Douglas Rupp <rupp@adacore.com>
24174
24175 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
24176
24177 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
24178
24179 2006-02-13 Pat Rogers <rogers@adacore.com>
24180
24181 * a-rttiev.adb, a-rttiev.ads: New files.
24182
24183 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24184
24185 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
24186 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
24187
24188 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
24189
24190 2006-02-13 Robert Dewar <dewar@adacore.com>
24191
24192 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
24193 sem_case.adb: Minor code reorganization (not Present should be No)
24194
24195 2006-02-13 Geert Bosch <bosch@adacore.com>
24196 Gary Dismukes <dismukes@adacore.com>
24197
24198 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
24199 0, since the lower bound of the actual string may be greater than one.
24200
24201 PR ada/20753
24202 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
24203 layout is requested.
24204
24205 2006-02-13 Vincent Celier <celier@adacore.com>
24206
24207 * back_end.adb (Scan_Compiler_Arguments): Check if
24208 Search_Directory_Present is True and, if it is, add the argument in
24209 the source search directory path.
24210
24211 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
24212 Search_Directory_Present to True.
24213
24214 2006-02-13 Joel Brobecker <brobecke@adacore.com>
24215
24216 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
24217 volatile, to tell the compiler to preserve this variable at any level
24218 of optimization.
24219 (Gen_Versions_Ada): Temporarily work around codegen bug.
24220
24221 2006-02-13 Vincent Celier <celier@adacore.com>
24222
24223 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
24224 gcc to link with option -shared-libgcc.
24225 (Gnatlink): Remove duplicate switches -shared-libgcc
24226
24227 2006-02-13 Robert Dewar <dewar@adacore.com>
24228
24229 * gnatvsn.ads (Current_Year): New constant, used to easily update
24230 copyright on all GNAT tools.
24231
24232 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
24233 copyright notice.
24234
24235 2006-02-13 Robert Dewar <dewar@adacore.com>
24236
24237 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
24238 after hyphen (small aesthetic change useful for a range of numbers
24239 using ^-^.
24240 Suppress range checks for a couple of assignments which otherwise
24241 cause validity checks with validity checking turned on.
24242
24243 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
24244 Improvement in error message for object.
24245 (Rep_Item_Too_Late): Remove '!' in warning message.
24246
24247 2006-02-13 Robert Dewar <dewar@adacore.com>
24248 Eric Botcazou <ebotcazou@adacore.com>
24249
24250 * err_vars.ads: Suppress range checks for a couple of assignments
24251 which otherwise cause validity checks with validity checking turned on.
24252 Update comments.
24253
24254 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
24255 Make message unconditional if it is a warning.
24256 (Error_Msg_NEL): Always output warning messages.
24257 Suppress range checks for a couple of assignments which otherwise
24258 cause validity checks with validity checking turned on.
24259
24260 * errout.ads (Message Insertion Characters): Document that '!' is
24261 implied by '?' in error messages.
24262
24263 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
24264 (Gnat1drv): Use a goto to end of main subprogram instead of
24265 Exit_Program (E_Success) so that finalization can occur normally.
24266
24267 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24268
24269 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
24270 wrapped around.
24271
24272 2006-02-13 Vincent Celier <celier@adacore.com>
24273
24274 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
24275 Unchecked_Conversion functions.
24276 (Modification_Time): Use direct conversion of OS_Time to Calendar time
24277 when OpenVMS returns False.
24278
24279 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
24280 a-dirval.adb (OpenVMS): New Boolean function
24281
24282 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24283 Thomas Quinot <quinot@adacore.com>
24284
24285 * checks.adb (Build_Discriminant_Checks): If the expression being
24286 checks is an aggregate retrieve the values of its discriminants to
24287 generate the check, rather than creating a temporary and a reference
24288 to it.
24289 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
24290 (Install_Null_Excluding_Check): Ditto
24291 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
24292 not for the renamed object, so that the actual itype is attached in the
24293 proper context.
24294
24295 2006-02-13 Robert Dewar <dewar@adacore.com>
24296 Vincent Celier <celier@adacore.com>
24297
24298 * debug.adb: Eliminate numeric switches for binder/gnatmake
24299
24300 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
24301 switches for the compiler.
24302 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
24303 (Scan_Make_Switches): When failing with an illegal switch, output an
24304 error message with the full switch.
24305 Eliminate numeric switches for binder/gnatmake
24306
24307 * switch.ads, switch.adb (Bad_Switch): New procedure
24308
24309 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
24310 Remove 0-9 as debug flag character possibilities
24311 -d is now controlling the primary stack size when its value is a
24312 positive. Also add checks against invalid values, and support for kb,
24313 mb. Ditto for -D switch.
24314
24315 2006-02-13 Robert Dewar <dewar@adacore.com>
24316 Serguei Rybin <rybin@adacore.com>
24317
24318 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
24319 save/restore routines.
24320 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24321 were not always properly handled previously.
24322 Since we are changing the tree format anyway, also get rid of the
24323 junk obsolete Immediate_Errors flag.
24324 (Tree_Read): Change the way of reading Tree_Version_String - now we
24325 read the version string from the tree even if its length is not the
24326 same as the length of the version string computed from Gnatvsn.
24327 (Search_Directory_Present): New Boolean flag for the compiler.
24328 Define Tree_Version_String as a dynamic string.
24329 (Default_Stack_Size): new variable, used to handle switch -d.
24330
24331 * par-prag.adb:
24332 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
24333 only for main unit.
24334 Add pragma Ada_2005 (synonym for Ada_05)
24335 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24336 were not always properly handled previously.
24337
24338 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
24339 explicit Ada_95 to Ada_2005.
24340
24341 2006-02-13 Javier Miranda <miranda@adacore.com>
24342 Robert Dewar <dewar@adacore.com>
24343 Ed Schonberg <schonberg@adacore.com>
24344
24345 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
24346 against errors in the source program: a private types for which the
24347 corresponding full type declaration is missing and pragma CPP_Virtual
24348 is used.
24349 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
24350 (Is_Known_Null): New flag
24351 (Has_Pragma_Pure): New flag
24352 (No_Return): Present in all entities, set only for procedures
24353 (Is_Limited_Type): A type whose ancestor is an interface is limited if
24354 explicitly declared limited.
24355 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
24356 entities. Only used for component marked Is_Tag. If present it stores
24357 the Offset_To_Top function used to provide this value in tagged types
24358 whose ancestor has discriminants.
24359
24360 * exp_ch2.adb: Update status of new Is_Known_Null flag
24361
24362 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
24363
24364 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
24365 the categorization sense if Is_Pure was set by pragma Pure_Function.
24366
24367 2006-02-13 Quentin Ochem <ochem@adacore.com>
24368 Olivier Hainque <hainque@adacore.com>
24369
24370 * bindusg.adb: Updated documentation for -d and -D switches.
24371
24372 * raise.h (__gnat_set_globals): added new parameter for
24373 Default_Stack_Size.
24374
24375 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
24376 (__gnat_handle_vms_condition): Adjust context before raise.
24377 (__gnat_install_handler): Restore the global vector setup for GCC
24378 versions before 3.4, as the frame based circtuitry is not available
24379 in this case.
24380 (__gnat_set_globals): added a parameter default_stack_size
24381 (__gl_default_stack_size): new variable.
24382
24383 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24384
24385 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
24386 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
24387 does not exist in the Ada RM.
24388 (Compatible_Int_Bounds): Determine whether two integer range bounds
24389 are of equal length and have the same start and end values.
24390 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
24391 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
24392 aggregate when it is part of an object declaration.
24393 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
24394 constrains discriminants of its parent, add explicitly the discriminant
24395 constraints of the ancestor by retrieving them from the
24396 stored_constraint of the parent.
24397
24398 2006-02-13 Robert Dewar <dewar@adacore.com>
24399
24400 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
24401 attribute Mechanism_Code is applied to renamed subprogram, modify
24402 prefix to point to base subprogram.
24403 Max/Min attributes now violate Restriction No_Implicit_Conditionals
24404
24405 * sinfo.ads: Document that Mechanism_Code cannot be applied to
24406 renamed subprograms so that the front-end must replace the prefix
24407 appropriately.
24408
24409 2006-02-13 Javier Miranda <miranda@adacore.com>
24410 Gary Dismukes <dismukes@adacore.com>
24411
24412 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
24413 availability of RE_Interface_Tag.
24414 (Build_Initialization_Call): Fix wrong access to the discriminant value.
24415 (Freeze_Record_Type): Do not generate the tables associated with
24416 timed and conditional dispatching calls through synchronized
24417 interfaces if compiling under No_Dispatching_Calls restriction.
24418 When compiling for Ada 2005, for a nonabstract
24419 type with a null extension, call Make_Controlling_Function_Wrappers
24420 and insert the wrapper function declarations and bodies (the latter
24421 being appended as freeze actions).
24422 (Predefined_Primitive_Bodies): Do not generate the bodies of the
24423 predefined primitives associated with timed and conditional
24424 dispatching calls through synchronized interfaces if we are
24425 compiling under No_Dispatching_Calls.
24426 (Build_Init_Procedure): Use RTE_Available to check if a run-time
24427 service is available before generating a call.
24428 (Make_Controlling_Function_Wrappers): New procedure.
24429 (Expand_N_Full_Type_Declaration): Create a class-wide master for
24430 access-to-limited-interfaces because they can be used to reference
24431 tasks that implement such limited interface.
24432 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
24433 procedure spec and body of the Offset_To_Top function that is generated
24434 when the parent of a type with discriminants has secondary dispatch
24435 tables.
24436 (Init_Secondary_Tags): Handle the case in which the parent of the type
24437 containing secondary dispatch tables has discriminants to generate the
24438 correct arguments to call Set_Offset_To_Top.
24439 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
24440
24441 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
24442 Add Wide_[Wide_]Expanded_Name.
24443 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
24444 the same functionality of Get_Prim_Op_Address but applied to predefined
24445 primitive operations because the pointers to the predefined primitives
24446 are now saved in a separate table.
24447 (Parent_Size): Modified to get access to the separate table of primitive
24448 operations or the parent type.
24449 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
24450 functionality of Set_Prim_Op_Address but applied to predefined primitive
24451 operations.
24452 (Set_Signature): New subprogram used to store the signature of a DT.
24453 (Displace): If the Offset_To_Top value is not static then call the
24454 function generated by the expander to get such value; otherwise use
24455 the value stored in the table of interfaces.
24456 (Offset_To_Top): The type of the actual has been changed to Address to
24457 give the correct support to tagged types with discriminants. In this
24458 case this value is stored just immediately after the tag field.
24459 (Set_Offset_To_Top): Two new formals have been added to indicate if the
24460 offset_to_top value is static and hence pass this value to the run-time
24461 to store it in the table of interfaces, or else if this value is dynamic
24462 and then pass to the run-time the address of a function that is
24463 generated by the expander to provide this value for each object of the
24464 type.
24465
24466 * rtsfind.ads (Default_Prin_Op_Count): Removed.
24467 (Default_Prim_Op_Count): New entity
24468 (Get_Predefined_Prim_Op_Address): New entity
24469 (Set_Predefined_Prim_Op_Address): New entity
24470 (RE_Set_Signature): New entity
24471
24472 2006-02-13 Thomas Quinot <quinot@adacore.com>
24473 Ed Schonberg <schonberg@adacore.com>
24474
24475 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
24476 Make_Adjust_Call done for a newly-allocated object.
24477
24478 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
24479 in a subprogram are wrapped in a cleanup block, indicate that the
24480 subprogram contains an inner block with an exception handler.
24481 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
24482 Adjust call is for a newly-allocated object. In that case we must not
24483 assume that the finalization list chain pointers are correct (since they
24484 come from a bit-for-bit copy of the original object's pointers) so if
24485 the attach level would otherwise be zero (no change), we set it to 4
24486 instead to cause the pointers to be reset to null.
24487
24488 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
24489 reset chain pointers to null.
24490
24491 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24492
24493 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
24494 string, and the context requires a loop for the assignment (e.g.
24495 because the left-hand side is packed), generate a unique name for the
24496 temporary that holds the string, to prevent spurious name clashes.
24497
24498 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24499 Javier Miranda <miranda@adacore.com>
24500 Robert Dewar <dewar@adacore.com>
24501 Gary Dismukes <dismukes@adacore.com>
24502
24503 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
24504 return unconstrained arrays.
24505 Update comments.
24506 (Expand_Call): An indirect call through an access parameter of a
24507 protected operation is not a protected call.
24508 Add circuit to raise CE in Ada 2005 mode following call
24509 to Raise_Exception.
24510 (Register_DT_Entry): Do nothing if
24511 the run-time does not give support to abstract interfaces.
24512 (Freeze_Subprogram): In case of dispatching operations, do not generate
24513 code to register the operation in the dispatch table if the source
24514 is compiled with No_Dispatching_Calls.
24515 (Register_Predefined_DT_Entry): Generate code that calls the new
24516 run-time subprogram Set_Predefined_Prim_Op_Address instead of
24517 Set_Prim_Op_Address.
24518
24519 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
24520 on array assignments if the right-hand side is a function call that has
24521 been inlined. Check is performed on the assignment in the block.
24522 (Process_Bounds): If bounds and range are overloaded, apply preference
24523 rule for root operations to disambiguate, and diagnose true ambiguity.
24524 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
24525 a tag-indeterminate right-hand side even when Expander_Active is True.
24526 Needed to ensure that dispatching calls to T'Input are allowed and
24527 get the tag of the target class-wide object.
24528
24529 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
24530 an inherited primitive operation that already overrides several
24531 abstract interface primitives. For transitivity, the new entity must
24532 also override all the abstract interface primitives covered by the
24533 inherited overriden primitive.
24534 Emit warning if new entity differs from homograph in same scope only in
24535 that one has an access parameter and the other one has a parameter of
24536 a general access type with the same designated type, at the same
24537 position in the signature.
24538 (Make_Inequality_Operator): Use source locations of parameters and
24539 subtype marks from corresponding equality operator when creating the
24540 tree structure for the implicit declaration of "/=". This does not
24541 change anything in behaviour except that the decoration of the
24542 components of the subtree created for "/=" allows ASIS to get the
24543 string images of the corresponding identifiers.
24544 (Analyze_Return_Statement): Remove '!' in warning message.
24545 (Check_Statement_Sequence): Likewise.
24546 (Analyze_Subprogram_Body): For an access parameter whose designated type
24547 is an incomplete type imported through a limited_with clause, use the
24548 type of the corresponding formal in the body.
24549 (Check_Returns): Implicit return in No_Return procedure now raises
24550 Program_Error with a compile time warning, instead of beging illegal.
24551 (Has_Single_Return): Function returning unconstrained type cannot be
24552 inlined if expression in unique return statement is not an identifier.
24553 (Build_Body_To_Inline): It is possible to inline a function call that
24554 returns an unconstrained type if all return statements in the function
24555 return the same local variable. Subsidiary procedure Has_Single_Return
24556 verifies that the body conforms to this restriction.
24557
24558 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
24559 same type, and one of them is of an anonymous access type, convert
24560 the other operand to it, so that this is a valid binary operation for
24561 gigi.
24562 (Resolve_Type_Conversion): Handle subtypes of protected types and
24563 task types when accessing to the corresponding record type.
24564 (Resolve_Allocator): Add '\' in 2-line warning message.
24565 Remove '!' in warning message.
24566 (Resolve_Call): Add '\' in 2-line warning message.
24567 (Valid_Conversion): Likewise.
24568 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
24569 resulting type may be an access type with an implicit dereference.
24570 Obtain the proper component from the designated type.
24571 (Make_Call_Into_Operator): Handle properly a call to predefined equality
24572 given by an expanded name with prefix Standard, when the operands are
24573 of an anonymous access type.
24574 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
24575 Explicit_Dereference and Resolve_Selected_Component, to verify that the
24576 prefix of the expression is not of an incomplete type. Allows full
24577 diagnoses of all semantic errors.
24578 (Resolve_Actuals): If the actual is an allocator whose directly
24579 designated type is a class-wide interface we build an anonymous
24580 access type to use it as the type of the allocator. Later, when
24581 the subprogram call is expanded, if the interface has a secondary
24582 dispatch table the expander will add a type conversion to force
24583 the displacement of the pointer.
24584 (Resolve_Call): If a function that returns an unconstrained type is
24585 marked Inlined_Always and inlined, the call will be inlined and does
24586 not require the creation of a transient scope.
24587 (Check_Direct_Boolean_Op): Removed
24588 (Resolve_Comparison_Op): Remove call to above
24589 (Resolve_Equality_Op): Remove call to above
24590 (Resolve_Logical_Op): Inline above, since this is only call.
24591 (Valid_Conversion): Handle properly conversions between arrays of
24592 convertible anonymous access types.
24593
24594 PR ada/25885
24595 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
24596 the literal in an unchecked conversion, because GCC 4.x needs a static
24597 value for a string bound.
24598
24599 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24600 Hristian Kirtchev <kirtchev@adacore.com>
24601
24602 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
24603 components of the corresponding record, take into account component
24604 definitions that are access definitions.
24605 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
24606 procedure is not considered a dispatching call and will be expanded
24607 properly.
24608
24609 2006-02-13 Javier Miranda <miranda@adacore.com>
24610
24611 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
24612 controlling argument of the dispatching call is an abstract interface
24613 class-wide type then we use it directly.
24614 Check No_Dispatching_Calls restriction.
24615 (Default_Prim_Op_Position): Remove the code that looks for the last
24616 entity in the list of aliased subprograms. This code was wrong in
24617 case of renamings.
24618 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
24619 when the source is compiled with the No_Dispatching_Calls restriction.
24620 (Init_Predefined_Interface_Primitives): No need to inherit primitives
24621 if we are compiling with restriction No_Dispatching_Calls.
24622 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
24623 subprograms if we are compiling under No_Dispatching_Calls restriction.
24624 (Make_DT): Generate a dispatch table with a single dummy entry if
24625 we are compiling with the No_Dispatching_Calls restriction. In
24626 addition, in this case we don't generate code that calls to the
24627 following run-time subprograms: Set_Type_Kind, Inherit_DT.
24628 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
24629 of this subprogram if compiling with the No_Dispatching_Calls
24630 restriction.
24631 (Expand_Type_Conversion): Instead of using the actual parameter,
24632 the argument passed as parameter to the conversion function was
24633 erroneously referenced by the expander.
24634 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
24635 Set_Predefined_Primitive_Op_Address and Set_Signature.
24636 (Expand_Dispatching_Call): Generate call to
24637 Get_Predefined_Prim_Op_Address for predefined primitives.
24638 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
24639 predefined primitives.
24640 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
24641 primitives we reserve one dummy entry to ensure that the tag does not
24642 point to some memory that is associated with some other object. In
24643 addition, remove all the old code that generated the assignments
24644 associated with the signature of the dispatch table and replace them
24645 by a call to the new subprogram Set_Signature.
24646 (Set_All_DT_Position): Change the algorithm because now we have a
24647 separate dispatch table associated with predefined primitive operations.
24648 (Expand_Interface_Conversion): In case of non-static offset_to_top
24649 add explicit dereference to get access to the object after the call
24650 to displace the pointer to the object.
24651 (Expand_Interface_Thunk): Modify the generation of the actual used
24652 in the calls to the run-time function Offset_To_Top to fulfil its
24653 new interface.
24654 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
24655
24656 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24657
24658 * exp_dist.adb (Copy_Specification): For access parameters, copy
24659 Null_Exclusion flag, which will have been set for stream subprograms
24660 in Ada2005 mode.
24661
24662 2006-02-13 Pascal Obry <obry@adacore.com>
24663
24664 * expect.c (__gnat_expect_portable_execvp): New implementation. The
24665 previous implementation was using the C runtime spawnve routine but
24666 the corresponding wait was using directly the Win32 API. This was
24667 causing some times a lock when waiting for an event using
24668 WaitForSingleObject in __gnat_waitpid. This new implementation uses
24669 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
24670 API fixes this problem.
24671
24672 2006-02-13 Robert Dewar <dewar@adacore.com>
24673
24674 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
24675 call.
24676
24677 2006-02-13 Thomas Quinot <quinot@adacore.com>
24678
24679 * exp_pakd.ads: Fix typos in comments.
24680
24681 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
24682 array reference that is an explicit dereference, mark the converted
24683 (packed) array reference as analyzed to prevent a forthcoming
24684 reanalysis from resetting its type to the original (non-packed) array
24685 type.
24686
24687 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24688 Javier Miranda <miranda@adacore.com>
24689 Eric Botcazou <ebotcazou@adacore.com>
24690
24691 * exp_util.ads, exp_util.adb (Find_Prim_Op,
24692 Is_Predefined_Primitive_Operation): When
24693 searching for the predefined equality operator, verify that operands
24694 have the same type.
24695 (Is_Predefined_Dispatching_Operation): Remove the code that looks
24696 for the last entity in the list of aliased subprograms. This code
24697 was wrong in case of renamings.
24698 (Set_Renamed_Subprogram): New procedure
24699 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
24700 Exp_Type constant computed when entering this subprogram.
24701 (Known_Null): New function
24702 (OK_To_Do_Constant_Replacement): New function
24703 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
24704 (Side_Effect_Free): An attribute reference 'Input is not free of
24705 side effect, unlike other attributes that are functions. (from code
24706 reading).
24707 (Remove_Side_Effects): Expressions that involve packed arrays or records
24708 are copied at the point of reference, and therefore must be marked as
24709 renamings of objects.
24710 (Is_Predefined_Dispatching_Operation): Return false if the operation is
24711 not a dispatching operation.
24712
24713 PR ada/18819
24714 (Remove_Side_Effects): Lift enclosing type conversion nodes for
24715 elementary types in all cases.
24716
24717 2006-02-13 Javier Miranda <miranda@adacore.com>
24718
24719 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
24720 task types when accessing to the corresponding record type.
24721 Remove '!' in warning message.
24722
24723 2006-02-13 Olivier Hainque <hainque@adacore.com>
24724
24725 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
24726 to avoid useless and space inefficient overalignments on targets where
24727 Max_Alignment is larger than 16.
24728
24729 2006-02-13 Pascal Obry <obry@adacore.com>
24730
24731 * g-catiio.adb (Sec_Number): New type used to compute the number of
24732 seconds since 1-1-1970.
24733 (Image) [Natural]: The parameter was an Integer, as we can't deal with
24734 negative numbers (years, months...) it is better to have a Natural here.
24735 Code clean-up.
24736 (Image) [Number]: Change parameter from Long_Integer to Number.
24737 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
24738 overflow for dates past year 2038.
24739
24740 2006-02-13 Matthew Heaney <heaney@adacore.com>
24741
24742 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
24743 Constraint_Error.
24744
24745 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24746
24747 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
24748 native platforms.
24749 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
24750 finalization can occur normally.
24751
24752 2006-02-13 Vincent Celier <celier@adacore.com>
24753
24754 * gnatcmd.adb (Rules_Switches): New table
24755 (Add_To_Rules_Switches): New procedure
24756 (GNATCmd): For command CHECK, put all options following "-rules" in the
24757 Rules_Switches table. Append these -rules switches after the -cargs
24758 switches.
24759
24760 2006-02-13 Robert Dewar <dewar@adacore.com>
24761
24762 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
24763 These two cases were generating incorrect output, and if this unit
24764 was built with checks on, generated a discriminant mismatch constraint
24765 error.
24766
24767 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24768 Robert Dewar <dewar@adacore.com>
24769
24770 * lib-xref.adb (Get_Type_Reference): For a private type whose full
24771 view is an array type, indicate the component type as well, for
24772 navigation purposes.
24773 (Generate_Reference): Don't consider array ref on LHS to be a case
24774 of violating pragma Unreferenced.
24775 Do not give Ada 2005 warning except on real reference.
24776
24777 2006-02-13 Vincent Celier <celier@adacore.com>
24778
24779 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
24780 main source, add switch -mdebug-main=_ada_ so that the executable can
24781 be debugged by the standard VMS debugger.
24782 (Gnatmake): Set No_Main_Subprogram to True when there is no main
24783 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
24784 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
24785 of the last source, as the binding and linking phases are never
24786 performed.
24787 Set all executable obsolete when rebuilding a library.
24788
24789 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
24790 options.
24791
24792 2006-02-13 Javier Miranda <miranda@adacore.com>
24793
24794 PR ada/23973
24795 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
24796 code to improve the error message reported when the program has
24797 declarations of abstract interface types and it is not compiled with
24798 the -gnat05 switch.
24799 (P_Access_Definition): Reorganize the code to improve the error
24800 message reported when the new Ada 2005 syntax for anonymous
24801 access types is used and the program is not compiled with the
24802 -gnat05 switch.
24803
24804 2006-02-13 Robert Dewar <dewar@adacore.com>
24805
24806 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
24807 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
24808 (MODE_IN)
24809
24810 2006-02-13 Javier Miranda <miranda@adacore.com>
24811
24812 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
24813 against source containing syntax errors.
24814
24815 2006-02-13 Vincent Celier <celier@adacore.com>
24816
24817 * prj.adb (Reset): Initialize the first element of table Namings with
24818 the standard naming data.
24819
24820 2006-02-13 Vincent Celier <celier@adacore.com>
24821
24822 * prj.ads (Error_Warning): New enumeration type
24823
24824 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
24825 unknown, use the location of the project to report the error.
24826 (When_No_Sources): New global variable
24827 (Report_No_Ada_Sources): New procedure
24828 (Check): New parameter When_No_Sources. Set value of global variable
24829 When_No_Sources,
24830 (Find_Sources): Call Report_No_Ada_Sources when appropriate
24831 (Get_Sources_From_File): Ditto
24832 (Warn_If_Not_Sources): Better warning messages indicating the unit name
24833 and the file name.
24834
24835 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
24836 Call Prj.Proc.Process with parameter When_No_Sources.
24837
24838 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
24839 Call Recursive_Check with parameter When_No_Sources.
24840 (Recursive_Check): New parameter When_No_Sources. Call itself and
24841 Prj.Nmsc.Check with parameter When_No_Sources.
24842 (Process): New parameter When_No_Sources. Call Check with parameter
24843 When_No_Sources.
24844 (Copy_Package_Declarations): New procedure to copy renamed parameters
24845 and setting the location of the declared attributes to the location
24846 of the renamed package.
24847 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
24848 packages.
24849
24850 2006-02-13 Vincent Celier <celier@adacore.com>
24851
24852 * prj-makr.adb (Make): Preserve the comments from the original project
24853 file.
24854 When removing nodes (attributes Source_Dirs, Source_Files,
24855 Source_List_File and package Naming), save the comments and attach the
24856 saved comments to the newly created nodes.
24857 Do not add a with clause for the naming package if one already exists.
24858
24859 2006-02-13 Javier Miranda <miranda@adacore.com>
24860 Gary Dismukes <dismukes@adacore.com>
24861 Robert Dewar <dewar@adacore.com>
24862
24863 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
24864
24865 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
24866 aliased entities to look for the overriden abstract interface
24867 subprogram.
24868 (Is_Interface_Subprogram): Complete documentation.
24869 (Check_Dispatching_Operation): Do not generate code to register the
24870 operation in the dispatch table if the source is compiled with
24871 restriction No_Dispatching_Calls.
24872 (Override_Dispatching_Operation): Check for illegal attempt to override
24873 No_Return procedure with procedure that is not No_Return
24874 (Check_Dispatching_Call): Suppress the check for an abstract operation
24875 when the original node of an actual is a tag-indeterminate attribute
24876 call, since the attribute, which must be 'Input, can never be abstract.
24877 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
24878 call to the Input attribute (even when rewritten).
24879 (Propagate_Tag): Augment comment to indicate the possibility of a call
24880 to an Input attribute.
24881
24882 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
24883 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
24884
24885 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
24886 No_Wide_Characters is no longer partition-wide
24887 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
24888 rather than GNAT
24889
24890 2006-02-13 Douglas Rupp <rupp@adacore.com>
24891
24892 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
24893
24894 2006-02-13 Javier Miranda <miranda@adacore.com>
24895
24896 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
24897 handles default-initialized components to keep separate the management
24898 of this feature but also avoid the unrequired resolution and
24899 expansion of components that do not have partially initialized
24900 values.
24901 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
24902 (Check_Bounds): Likewise.
24903 (Check_Length): Likewise.
24904
24905 2006-02-13 Javier Miranda <miranda@adacore.com>
24906 Ed Schonberg <schonberg@adacore.com>
24907
24908 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
24909 abstract interface type call analyze_and_resolve to expand the type
24910 conversion into the corresponding displacement of the
24911 reference to the base of the object.
24912 (Eval_Attribute, case Width): For systems where IEEE extended precision
24913 is supported, the maximum exponent occupies 4 decimal digits.
24914 (Accessibility_Message): Add '\' in 2-line warning message.
24915 (Resolve_Attribute): Likewise.
24916 (case Attribute_Access): Significantly revise checks
24917 for illegal access-to-subprogram Access attributes to properly enforce
24918 the rules of 3.10.2(32/2).
24919 Diagnose use of current instance with an illegal attribute.
24920
24921 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
24922 to a Node_Id.
24923 (Enclosing_Generic_Unit): New function to return a node's innermost
24924 enclosing generic declaration node.
24925 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
24926 (Type_Access_Level): The accessibility level of anonymous acccess types
24927 associated with discriminants is that of the current instance of the
24928 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
24929 (Compile_Time_Constraint_Error): Handle case of conditional expression.
24930 (Kill_Current_Values_For_Entity): New function
24931 (Enter_Name): Change formal type to Entity_Id
24932
24933 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24934 Ed Schonberg <schonberg@adacore.com>
24935 Gary Dismukes <dismukes@adacore.com>
24936
24937 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
24938 Analyze_Compilation_Unit.
24939 Detect and warn on redundant with clauses detected in a package spec
24940 and/or body when -gnatwr is used.
24941 (Analyze_Context): Analyze config pragmas before other items
24942 (Install_Context_Items): Don't analyze config pragmas here
24943 (Install_Limited_Withed_Unit): Set limited entity of package in
24944 with_clause so that cross-reference information or warning messages on
24945 unused packages can be properly generated
24946 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
24947 has Error_Posted set. Prevent infinite loops in illegal programs.
24948 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
24949 to the point of the error test requiring the current unit to be private.
24950 This ensures that private with clauses are not exempted from the basic
24951 checking for being a descendant of the same library unit parent as a
24952 withed private descendant unit.
24953 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
24954 handle private with clauses properly, as well as to account for cases
24955 where the withed unit is a public descendant of a private ancestor
24956 (in which case the current unit must be a descendant of the private
24957 ancestor's parent). The spec comments were updated accordingly. Also,
24958 the old error message in this subprogram was replaced with error
24959 messages that mirror the errors tested and reported by
24960 Check_Private_Child_Unit.
24961 Parameter and variable names improved for readability.
24962 (Install_Limited_Context_Clauses): Remove test for a withed unit being
24963 private as the precondition for calling
24964 Check_Private_Limited_Withed_Unit since that subprogram has been
24965 revised to test public units as well as private units.
24966
24967 2006-02-13 Thomas Quinot <quinot@adacore.com>
24968 Robert Dewar <dewar@adacore.com>
24969 Ed Schonberg <schonberg@adacore.com>
24970 Javier Miranda <miranda@adacore.com>
24971
24972 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
24973 that Scope_Stack.First = 1.
24974 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24975 were not always properly handled previously.
24976 (Formal_Entity): Complete rewrite, to handle properly some complex case
24977 with multiple levels of parametrization by formal packages.
24978 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
24979 to the corresponding derived type declaration for proper semantics.
24980
24981 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
24982 (Check_Component): Enforce restriction on components of
24983 unchecked_unions: a component in a variant cannot contain tasks or
24984 controlled types.
24985 (Unchecked_Union): Allow nested variants and multiple discriminants, to
24986 conform to AI-216.
24987 Add pragma Ada_2005 (synonym for Ada_05)
24988 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24989 were not always properly handled previously.
24990 Document that pragma Propagate_Exceptions has no effect
24991 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
24992 (Set_Convention_From_Pragma): Check that if a convention is
24993 specified for a dispatching operation, then it must be
24994 consistent with the existing convention for the operation.
24995 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
24996 longer required to specify an vtable-ptr component in the record. For
24997 compatibility reasons we leave the support for the previous definition.
24998 (Analyze_Pragma, case No_Return): Allow multiple arguments
24999
25000 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
25001 non-overrideen inherited operation with a controlling result as
25002 illegal only its implicit declaration comes from the derived type
25003 declaration of its result's type.
25004 (Check_Possible_Deferred_Completion): Relocate the object definition
25005 node of the subtype indication of a deferred constant completion rather
25006 than directly analyzing it. The analysis of the generated subtype will
25007 correctly decorate the GNAT tree.
25008 (Record_Type_Declaration): Check whether this is a declaration for a
25009 limited derived record before analyzing components.
25010 (Analyze_Component_Declaration): Diagnose record types not explicitly
25011 declared limited when a component has a limited type.
25012 (Build_Derived_Record_Type): Code reorganization to check if some of
25013 the inherited subprograms of a tagged type cover interface primitives.
25014 This check was missing in case of a full-type associated with a private
25015 type declaration.
25016 (Constant_Redeclaration): Check that the subtypes of the partial and the
25017 full view of a constrained deferred constant statically match.
25018 (Mentions_T): A reference to the current type in an anonymous access
25019 component declaration must be an entity name.
25020 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
25021 class_wide type to refer to full type, not to the incomplete one.
25022 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
25023 available. Required to give support to the certified run-time.
25024 (Analyze_Component_Declaration): In case of anonymous access components
25025 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
25026 (Process_Discriminants): For an access discriminant, use the
25027 discriminant specification as the associated_node_for_itype, to
25028 simplify accessibility checks.
25029
25030 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25031 Javier Miranda <miranda@adacore.com>
25032
25033 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
25034 abstract interpretations on an operator, remove interpretations that
25035 yield Address or a type derived from it, if one of the operands is an
25036 integer literal.
25037 (Try_Object_Operation.Try_Primitive_Operation,
25038 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
25039 location when creating the new reference to a primitive or class-wide
25040 operation as a part of rewriting a subprogram call.
25041 (Try_Primitive_Operations): If context requires a function, collect all
25042 interpretations after the first match, because there may be primitive
25043 operations of the same type with the same profile and different return
25044 types. From code reading.
25045 (Try_Primitive_Operation): Use the node kind to choose the proper
25046 operation when a function and a procedure have the same parameter
25047 profile.
25048 (Complete_Object_Operation): If formal is an access parameter and prefix
25049 is an object, rewrite as an Access reference, to match signature of
25050 primitive operation.
25051 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
25052 by an expanded name with prefix Standard, when the operands are of an
25053 anonymous access type.
25054 (Remove_Abstract_Operations): If the operation is abstract because it is
25055 inherited by a user-defined type derived from Address, remove it as
25056 well from the set of candidate interpretations of an overloaded node.
25057 (Analyze_Membership_Op): Membership test not applicable to cpp-class
25058 types.
25059
25060 2006-02-13 Bob Duff <duff@adacore.com>
25061
25062 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
25063 redundant use clauses.
25064 In particular, if the scope of two use clauses overlaps, but one is not
25065 entirely included in the other, we should not warn. This can happen
25066 with nested packages.
25067 (Analyze_Subprogram_Renaming): Protect the compiler against previously
25068 reported errors. The bug was reported when the compiler was built
25069 with assertions enabled.
25070 (Find_Type): If the node is a 'Class reference and the prefix is a
25071 synchronized type without a corresponding record, return the type
25072 itself.
25073
25074 2006-02-13 Javier Miranda <miranda@adacore.com>
25075
25076 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
25077 if this is the full-declaration associated with a private declaration
25078 that implement interfaces, then the private type declaration must be
25079 limited.
25080 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
25081 as aliased. The use of the 'access attribute is not available for such
25082 object (for this purpose the object should be explicitly marked as
25083 aliased, but being an anonymous type this is not possible).
25084
25085 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25086 Robert Dewar <dewar@adacore.com>
25087
25088 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
25089 compilation unit is an elaboration scope.
25090 (Add_Task_Proc): Add '\' in 2-line warning message.
25091 (Activate_All_Desirable): Deal with case of unit with'ed by parent
25092
25093 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25094 Javier Miranda <miranda@adacore.com>
25095
25096 * sem_type.adb (Write_Overloads): Improve display of candidate
25097 interpretations.
25098 (Add_One_Interp): Do not add to the list of interpretations aliased
25099 entities corresponding with an abstract interface type that is an
25100 immediate ancestor of a tagged type; otherwise we have a dummy
25101 conflict between this entity and the aliased entity.
25102 (Disambiguate): The predefined equality on universal_access is not
25103 usable if there is a user-defined equality with the proper signature,
25104 declared in the same declarative part as the designated type.
25105 (Find_Unique_Type): The universal_access equality operator defined under
25106 AI-230 does not cover pool specific access types.
25107 (Covers): If one of the types is a generic actual subtype, check whether
25108 it matches the partial view of the other type.
25109
25110 2006-02-13 Thomas Quinot <quinot@adacore.com>
25111
25112 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
25113 line. This is necessary to allow In_Extended_Main_Unit to provide
25114 correct results for itypes while writing out expanded source.
25115 (Close_File): No need to update the source_index_table here since it's
25116 now done for each line.
25117
25118 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25119 Robert Dewar <dewar@adacore.com>
25120
25121 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
25122 preserve the source unit where the itype is declared, and prevent a
25123 backend abort.
25124 (Note_Implicit_Run_Time_Call): New procedure
25125 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
25126 E_Subprogram_Type)
25127
25128 * sprint.ads: Document use of $ for implicit run time routine call
25129
25130 2006-02-13 Quentin Ochem <ochem@adacore.com>
25131
25132 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
25133 task name.
25134
25135 2006-02-13 Bob Duff <duff@adacore.com>
25136
25137 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
25138 Scan_Unsigned, so we do not scan leading blanks and sign twice.
25139 Integer'Value("- 5") and Integer'Value("-+5") now correctly
25140 raise Constraint_Error.
25141
25142 * s-vallli.adb (Scan_Long_Long_Integer): Call
25143 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
25144 do not scan leading blanks and sign twice.
25145 Integer'Value("- 5") and Integer'Value("-+5") now correctly
25146 raise Constraint_Error.
25147
25148 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
25149 Scan_Long_Long_Unsigned): Split out most of the processing from
25150 Scan_Long_Long_Unsigned out into
25151 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
25152 This prevents scanning leading blanks and sign twice.
25153 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
25154 See RM-3.5(44).
25155
25156 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
25157 out most of the processing from Scan_Unsigned out into
25158 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
25159 This prevents scanning leading blanks and sign twice.
25160
25161 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
25162 use with Modular'Value attribute.
25163 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
25164 attribute.
25165
25166 2006-02-13 Robert Dewar <dewar@adacore.com>
25167
25168 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
25169
25170 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
25171
25172 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
25173 (PPC VxWorks): Likewise.
25174 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
25175 (forced_callee): Make non-inlinable and non-pure.
25176 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
25177
25178 2006-02-13 Arnaud Charlet <charlet@adacore.com>
25179 Ben Brosgol <brosgol@adacore.com>
25180 Robert Dewar <dewar@adacore.com>
25181
25182 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
25183 support.
25184 Document that gnatbind -M option is for cross environments only.
25185 Added description of using gnatmem to trace gnat rtl allocs and deallocs
25186 Add note on use of $ to label implicit run time calls
25187 Add documentation for -gnatyI (check mode IN)
25188 Updated chapter on compatibility with HP Ada
25189 VMS-oriented edits.
25190 Ran spell and corrected errors
25191 Add documentation for gnatbind -d and rework documentation of -D
25192 at the same time.
25193 Add subprogram/data elimination section.
25194 Minor editing of annex A.
25195 Add section for gnatcheck.
25196 Add documentation for restriction No_Dispatching_Calls
25197 Add documentation for pragma Ada_2005
25198 Remove mention of obsolete pragma Propagate_Exceptions
25199 Document that pragma Unreferenced can appear after DO in ACCEPT
25200 Clarify Pure_Function for library level units
25201 Mention Max/Min in connection with No_Implicit_Conditionals
25202 No_Wide_Characters restriction is no longer partition-wide
25203 Add a nice example for Universal_Literal_String attribute
25204 Document that pragma No_Return can take multiple arguments
25205
25206 * ug_words: Added entry for gnatcheck
25207
25208 * g-ctrl_c.ads (Install_Handler): Enhance comments
25209
25210 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
25211
25212 * g-trasym.ads: Add documentation on how to do off line symbolic
25213 traceback computation.
25214
25215 * s-fatgen.adb: Add comments for Unaligned_Valid
25216
25217 * stand.ads: Fix typo in comment
25218
25219 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25220
25221 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
25222
25223 2006-02-06 Roger Sayle <roger@eyesopen.com>
25224
25225 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
25226
25227 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25228
25229 PR target/25926
25230 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
25231 implementation that calls __main.
25232
25233 2006-01-25 Peter O'Gorman <peter@pogma.com>
25234
25235 PR bootstrap/25859
25236 * Makefile.in (GCC_LINK): Remove quotes.
25237 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
25238 or $(GCC_LINK).
25239
25240 (powerpc-darwin): Pass -shared-libgcc when building shared library.
25241
25242 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25243
25244 PR ada/24533
25245 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
25246
25247 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25248
25249 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
25250
25251 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25252
25253 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
25254 needed.
25255
25256 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25257
25258 * Make-lang.in: Update dependencies
25259
25260 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25261
25262 * Make-lang.in: Add rule for ada/exp_sel.o
25263
25264 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25265
25266 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
25267
25268 2005-12-09 Arnaud Charlet <charlet@adacore.com>
25269
25270 * gnatvsn.ads (Library_Version): Bump to version 4.2
25271 (ASIS_Version_Number): Bumped.
25272
25273 2005-12-09 Doug Rupp <rupp@adacore.com>
25274
25275 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
25276 Ada bind file prefix on VMS from b$ to b__.
25277 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
25278 __init.
25279
25280 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
25281 Targparm.OpenVMS_On_Target.
25282 (Object_Suffix): Initialize with target object suffix.
25283 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
25284
25285 * butil.adb: Change some Hostparm.OpenVMS checks to
25286 Targparm.OpenVMS_On_Target.
25287
25288 * clean.adb: Change some Hostparm.OpenVMS checks to
25289 Targparm.OpenVMS_On_Target.
25290 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
25291 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
25292 Ada bind file prefix on VMS from b$ to b__.
25293
25294 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
25295 --GCC so that Get_Target_Parameters can find system.ads.
25296 (Gnatlink): Call Get_Target_Parameters in mainline.
25297 Initialize standard packages for Targparm.
25298 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
25299 (Process_Args): Also Check for object files with target object
25300 extension.
25301 (Make_Binder_File_Names): Create with target object extension.
25302 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
25303 to b__.
25304
25305 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
25306 Targparm.OpenVMS_On_Target.
25307 ({declaration},Build_Library,Check_Library): Change Ada bind file
25308 prefix on VMS from b$ to b__.
25309
25310 * osint-b.adb: Change some Hostparm.OpenVMS checks to
25311 Targparm.OpenVMS_On_Target.
25312 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
25313 b__.
25314
25315 * targext.c: New file.
25316
25317 * Makefile.in: add support for vxworks653 builds
25318 (../../vxaddr2line): gnatlink with targext.o.
25319 (TOOLS_LIBS): Move targext.o to precede libgnat.
25320 (init.o, initialize.o): Minor clean up in dependencies.
25321 (GNATLINK_OBJS): Add targparm.o, snames.o
25322 Add rules fo building targext.o and linking it explicitly with all
25323 tools.
25324 Also add targext.o to gnatlib.
25325
25326 * Make-lang.in: Add rules for building targext.o and linking it in
25327 with gnat1 and gnatbind.
25328 Add entry for exp_sel.o.
25329
25330 * osint.adb Change some Hostparm.OpenVMS checks to
25331 Targparm.OpenVMS_On_Target.
25332 (Object_File_Name): Use target object suffix.
25333
25334 * osint.ads (Object_Suffix): Remove, no longer used.
25335 (Target_Object_Suffix): Initialize with target object suffix.
25336
25337 * rident.ads: Add special exception to license.
25338
25339 * targparm.adb (Get_Target_Parameters): Set the value of
25340 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
25341 value.
25342 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
25343
25344 * targparm.ads: Add special exception to license.
25345
25346 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
25347 function.
25348 (Copy_File): Make sure from file is closed if error on to file
25349 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
25350
25351 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
25352 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
25353
25354 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
25355 target object suffix.
25356
25357 2005-12-09 Jose Ruiz <ruiz@adacore.com>
25358 Quentin Ochem <ochem@adacore.com>
25359 Florian Villoing <villoing@adacore.com>
25360
25361 * a-taster.ads, a-taster.adb: New files.
25362
25363 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
25364 link to the version that does nothing. This way the task termination
25365 routine is not executed twice for the environment task when finishing
25366 because of an unhandled exception.
25367
25368 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
25369 handler because of an unhandled exception.
25370
25371 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
25372 System.Tasking.Utilities instead of that in System.Tasking.Stages.
25373
25374 * s-finimp.adb (initialization code): Modify the soft link for the
25375 finalization of the global list instead of Adafinal.
25376
25377 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
25378 non-tasking version of the soft link for task termination. We do
25379 nothing since if we are using the non-tasking version it
25380 means that the task termination functionality is not used.
25381 (Null_Finalize_Global_List): Add this null version for the procedure
25382 in charge of finalizing the global list for controlled objects.
25383 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
25384 instead for handling run-time termination in a more flexible way.
25385 (Adafinal_NT): This new procedure will take care of finalizing the
25386 global list for controlled objects if needed, but no tasking
25387 finalization.
25388
25389 * s-tarest.adb (Task_Lock): Do not try to lock again the
25390 Global_Task_Lock if we already own it. Otherwise, we get blocked in
25391 some run-time operations.
25392 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
25393 until all nested locks have been released.
25394 (Task_Wrapper): Call the fall-back task termination handler. It
25395 applies to all tasks but the environment task.
25396 (Finalize_Global_Tasks): Add the call for the task termination
25397 procedure for the environment task.
25398 (Task_Wrapper): suppress warnings around declaration of
25399 Secondary_Stack_Address.
25400
25401 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
25402 moved to the Common_ATCB record.
25403 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
25404 Common_ATCB record.
25405 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
25406 Common_ATCB record.
25407
25408 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
25409 Fall_Back_Handler, and Specific_Handler.
25410
25411 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
25412 defined in Ada.Task_Termination, to avoid circular dependencies.
25413 (Termination_Handler): Redefine this type here, alredy defined in
25414 Ada.Task_Termination, for avoiding circular dependencies.
25415 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
25416 for storing task termination handlers. In addition,
25417 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
25418 Common_ATCB because it is used by both the regular and the restricted
25419 run times.
25420 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
25421 Common_ATCB because it is used by both the regular and the restricted
25422 run times.
25423 (Common_ATCB): Added a dynamic task analyzer field.
25424
25425 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
25426 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
25427 (Task_Wrapper): Call the task termination handler. It applies to all
25428 tasks but the environment task.
25429 (Finalize_Global_Tasks): Call the task termination procedure for the
25430 environment task. The call to Finalize_Global_List is now performed
25431 using the soft links mechanism.
25432 (Task_Wrapper): added dynamic stack analysis.
25433
25434 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
25435 potentially blocking operations has been moved from
25436 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
25437 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
25438 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
25439 this run-time check.
25440
25441 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
25442 of task termination procedure.
25443 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
25444 link for the task termination procedure.
25445
25446 * bindusg.adb: (Bindusg): Added documentation for -u option.
25447
25448 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
25449 (Get_Main_C): Add handling of dynamic stack analysis.
25450 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
25451
25452 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
25453 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
25454 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
25455
25456 * opt.ads: Added flags used by dynamic stack measurement.
25457 (Max_Line_Length): Remove (not used anymore)
25458
25459 * s-io.ads, s-io.adb (Standard_Error): new subprogram
25460 (Standart_Output): new subprogram
25461 (Set_Output): new subprogram
25462 (Put): now uses the value of Current_Out to know if the output has to be
25463 send to stderr or stdout.
25464
25465 * s-stausa.ads: Complete implementation.
25466
25467 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
25468
25469 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
25470 list of Ada 05 files.
25471 (GNAT Library Units): Add AltiVec files.
25472
25473 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
25474 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
25475 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
25476
25477 2005-12-09 Nicolas Setton <setton@adacore.com>
25478
25479 * adaint.c (__gnat_locate_regular_file): Return immediately if
25480 file_name is empty.
25481
25482 2005-12-09 Javier Miranda <miranda@adacore.com>
25483 Hristian Kirtchev <kirtchev@adacore.com>
25484
25485 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
25486 to the specification because the frontend generates code that uses this
25487 subprogram.
25488 (Set_Interface_Table): Add missing assertion.
25489 Update documentation describing the run-time structure.
25490 (Displace): New subprogram that displaces the pointer to the object
25491 to reference one of its secondary dispatch tables.
25492 (IW_Membership): Modified to use the new table of interfaces.
25493 (Inherit_TSD): Modified to use the new table of interfaces.
25494 (Register_Interface_Tag): Use the additional formal to fill the
25495 contents of the new table of interfaces.
25496 (Set_Interface_Table): New subprogram that stores in the TSD the
25497 pointer to the table of interfaces.
25498 (Set_Offset_To_Top): Use the additional formal to save copy of
25499 the offset value in the table of interfaces.
25500 Update structure of GNAT Primary and Secondary dispatch table diagram.
25501 Add comment section on GNAT dispatch table prologue.
25502 (Offset_To_Signature): Update the constant value of the Signature field.
25503 (Dispatch_Table): Update comment on hidden fields in the prologue.
25504 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
25505 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
25506 the type of formal parameter T to Tag, introduce additional assertions.
25507 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
25508 conversion.
25509 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
25510
25511 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
25512 in all the calls to Expand_Interface_Thunk. Instead of referencing the
25513 record component containing the tag of the secondary dispatch table we
25514 have to use the Offset_To_Top run-time function to get this information;
25515 otherwise if the pointer to the base of the object has been displace
25516 we get a wrong value if we use the 'position attribute.
25517
25518 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
25519 all the calls to Expand_Interface_Thunk.
25520 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
25521 interfaces; hence the call to Set_Interface_Table was clearly wrong.
25522 (Collect_All_Interfaces): Modify the internal subprogram Collect to
25523 ensure that the interfaces implemented by the ancestors are placed
25524 at the header of the generated list.
25525 (Expand_Interface_Conversion): Handle the case in which the displacement
25526 associated with the interface conversion is not statically known. In
25527 this case we generate a call to the new run-time subprogram Displace.
25528 (Make_DT): Generate and fill the new table of interfaces.
25529 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
25530 Get_Tagged_Kind and Set_Tagged_Kind.
25531 (Tagged_Kind): New function that determines the tagged kind of a type
25532 with respect to limitedness and concurrency and returns a reference to
25533 RE_Tagged_Kind.
25534 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
25535 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
25536 primary dispatch table for a type.
25537 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
25538 secondary dispatch table respectively of a tagged type.
25539
25540 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
25541 (Expand_Interface_Conversion): New subprogram to indicate if the
25542 displacement of the type conversion is statically known.
25543 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
25544
25545 * rtsfind.ads (RE_Offset_To_Top): New entity
25546 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
25547 accessible to users.
25548 (Re_Displace): New entity
25549 (RE_Interface_Data): New entity
25550 (RE_Set_Interface_Data): New_Entity
25551 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
25552 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
25553 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
25554 RE_TK_Tagged, RE_TK_Task.
25555
25556 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
25557 Init_Secondary_Tags_Internal to allow its use with interface types and
25558 also to generate the code for the new additional actual required
25559 by Set_Offset_To_Top.
25560 (Build_Init_Statements): In case of components associated with abstract
25561 interface types there is no need to generate a call to its IP.
25562 (Freeze_Record_Type): Generate Select Specific Data tables only for
25563 concurrent types.
25564 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
25565 the bodies and specifications of the predefined primitive operations
25566 dealing with dispatching selects and abort, 'Callable, 'Terminated only
25567 for concurrent types.
25568
25569 * exp_sel.ads, exp_sel.adb: New files.
25570
25571 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
25572 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
25573 properly protected objects and attach handler in the case of the
25574 restricted profile.
25575 Move embeded package Select_Expansion_Utilities into a separate external
25576 package.
25577 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
25578 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
25579 (Build_K, Build_S_Assignment): New subprograms, part of the select
25580 expansion utilities.
25581 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
25582 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
25583 where the trigger is a dispatching procedure of a limited tagged type.
25584
25585 2005-12-09 Olivier Hainque <hainque@adacore.com>
25586
25587 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
25588 pointer initialization values. Make a SAVE_EXPR instead. Add comments
25589 about the use and expansion of SAVE_EXPRs in the various possible
25590 renaming handling cases.
25591 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
25592 abusing DECL_FCONTEXT.
25593
25594 2005-12-09 Matthew Heaney <heaney@adacore.com>
25595
25596 * a-convec.adb (Merge): Added assertions to check whether vector params
25597 are sorted.
25598
25599 * a-coinve.adb (Merge): Added assertions to check whether vector params
25600 are sorted.
25601
25602 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
25603 draft.
25604 (Cursor'Read): raises PE
25605
25606 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
25607 to its default value.
25608
25609 * a-cihama.adb: Manually check whether cursor's key and elem are
25610 non-null
25611
25612 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
25613 (Merge): Assert that target and source lists are in order
25614 (Swap): Declare non-const temporaries, to pass to Splice
25615
25616 * a-cdlili.ads: (Splice): Changed param name and param mode
25617
25618 * a-cdlili.adb: (Splice): Changed param name and param mode
25619 (Merge): Assert that target and source lists are in order
25620 (Swap): Declare non-const temporaries, to pass to Splice
25621
25622 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
25623 (Write): declare Stream param as not null
25624
25625 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
25626 an exception message.
25627
25628 2005-12-09 Thomas Quinot <quinot@adacore.com>
25629 Robert Dewar <dewar@adacore.com>
25630
25631 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
25632 which is the absolute maximum length we can support.
25633
25634 * frontend.adb: For the processing of configuration pragma files,
25635 remove references to Opt.Max_Line_Length, which is not checked anymore.
25636
25637 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
25638 length.
25639
25640 * scn.adb, scng.adb:
25641 Always check line length against the absolute supported maximum,
25642 Hostparm.Max_Line_Length.
25643
25644 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
25645 value for the maximum line length is Max_Line_Length (not
25646 Column_Number'Last).
25647 Minor error msg update
25648 (Set_Style_Check_Options): New interface returning error msg
25649 Minor code reorganization (processing for 'M' was out of alpha order)
25650
25651 * switch-c.adb: New interface for Set_Style_Check_Options
25652
25653 * stylesw.ads (Set_Style_Check_Options): New interface returning error
25654 msg.
25655
25656 2005-12-09 Javier Miranda <miranda@adacore.com>
25657
25658 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
25659 with IP subprogram were only supported if there were limited types.
25660
25661 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
25662 records with IP subprogram were only supported if there were limited
25663 types.
25664
25665 2005-12-09 Olivier Hainque <hainque@adacore.com>
25666 Eric Botcazou <ebotcazou@adacore.com>
25667
25668 * trans.c (tree_transform, emit_check): Adjust calls to
25669 build_call_raise, passing the now expected GNAT_NODE argument.
25670
25671 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
25672 source line information than what the current global locus indicates
25673 when appropriate.
25674
25675 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
25676 field has overflowed.
25677 (build_call_raise): Add a GNAT_NODE argument to convey better source
25678 line information than what the current global locus indicates when
25679 appropriate.
25680 (build_component_ref): Adjust call to build_call_raise.
25681
25682 2005-12-09 Pascal Obry <obry@adacore.com>
25683
25684 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
25685 the iterator is quitting iteration on parent directory.
25686
25687 2005-12-09 Javier Miranda <miranda@adacore.com>
25688
25689 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
25690 and the assignment to a class-wide object, before the assignment we
25691 generate a run-time check to ensure that the tag of the Target is
25692 covered by the tag of the source.
25693
25694 2005-12-09 Robert Dewar <dewar@adacore.com>
25695
25696 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
25697 parameter in call to Image_Wide_Character.
25698
25699 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
25700 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
25701 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
25702 annoying FFFE/FFFF inconsistency.
25703
25704 2005-12-09 Robert Dewar <dewar@adacore.com>
25705 Javier Miranda <miranda@adacore.com>
25706 Ed Schonberg <schonberg@adacore.com>
25707
25708 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
25709 of type conversion.
25710 (Find_Interface): New subprogram that given a tagged type and one of its
25711 component associated with the secondary table of an abstract interface
25712 type, return the entity associated with such abstract interface type.
25713 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
25714 base type to create anonymous subtype, because entity may be a locally
25715 declared subtype or generic actual.
25716 (Find_Interface): New subprogram that given a tagged type and one of its
25717 component associated with the secondary table of an abstract interface
25718 type, return the entity associated with such abstract interface type.
25719
25720 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
25721 conversion cannot be handled at compile time. In this case we pass this
25722 information to the expander to generate the appropriate code.
25723
25724 2005-12-09 Robert Dewar <dewar@adacore.com>
25725 Ed Schonberg <schonberg@adacore.com>
25726 Gary Dismukes <dismukes@adacore.com>
25727 Javier Miranda <miranda@adacore.com>
25728 Hristian Kirtchev <kirtchev@adacore.com>
25729
25730 * einfo.adb (Itype_Printed): New flag
25731 (Is_Limited_Type): Derived types do not inherit limitedness from
25732 interface progenitors.
25733 (Is_Return_By_Reference_Type): Predicate does not apply to limited
25734 interfaces.
25735
25736 * einfo.ads (Itype_Printed): New flag
25737 Move Is_Wrapper_Package to proper section
25738 Add missing Inline for Is_Volatile
25739
25740 * output.ads, output.adb (Write_Erase_Char): New procedure
25741 (Save/Restore_Output_Buffer): New procedures
25742 (Save/Restore_Output_Buffer): New procedures
25743
25744 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
25745 Add missing support for anonymous access type
25746 (Write_Id): Insert calls to Write_Itype
25747 (Write_Itype): New procedure to output itypes
25748
25749 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
25750 use of "limited" in declaration.
25751
25752 * sinfo.ads, sinfo.adb:
25753 Formal derived types can carry an explicit "limited" indication.
25754
25755 * sem_ch3.adb: Add with and use of Targparm.
25756 (Create_Component): If Frontend_Layout_On_Target is True and the
25757 copied component does not have a known static Esize, then reset
25758 the size and positional fields of the new component.
25759 (Analyze_Component_Declaration): A limited component is
25760 legal within a protected type that implements an interface.
25761 (Collect_Interfaces): Do not add to the list the interfaces that
25762 are implemented by the ancestors.
25763 (Derived_Type_Declaration): If the parent of the full-view is an
25764 interface perform a transformation of the tree to ensure that it has
25765 the same parent than the partial-view. This simplifies the job of the
25766 expander in order to generate the correct object layout, and it is
25767 needed because the list of interfaces of the full-view can be given in
25768 any order.
25769 (Process_Full_View): The parent of the full-view does not need to be
25770 a descendant of the parent of the partial view if both parents are
25771 interfaces.
25772 (Analyze_Private_Extension_Declaration): If declaration has an explicit
25773 "limited" the parent must be a limited type.
25774 (Build_Derived_Record_Type): A derived type that is explicitly limited
25775 must have limited ancestor and progenitors.
25776 (Build_Derived_Type): Ditto.
25777 (Process_Full_View): Verify that explicit uses of "limited" in partial
25778 and full declarations are consistent.
25779 (Find_Ancestor_Interface): Remove function.
25780 (Collect_Implemented_Interfaces): New procedure used to gather all
25781 implemented interfaces by a type.
25782 (Contain_Interface): New function used to check whether an interface is
25783 present in a list.
25784 (Find_Hidden_Interface): New function used to determine whether two
25785 lists of interfaces constitute a set equality. If not, the first
25786 differing interface is returned.
25787 (Process_Full_View): Improve the check for the "no hidden interface"
25788 rule as defined by AI-396.
25789
25790 2005-12-09 Robert Dewar <dewar@adacore.com>
25791
25792 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
25793 types, not on record subtypes.
25794 (Freeze_Entity): Code cleanup. Add barrier to the loop
25795 that generates the references for primitive operations. This allows to
25796 remove an unnecessary exception handler.
25797 Code reformatting and comment clean ups.
25798
25799 2005-12-09 Vincent Celier <celier@adacore.com>
25800
25801 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
25802 If GNAT CHECK is called with a project file, but with no
25803 source on the command line, call gnatcheck with all the compilable
25804 sources of the project.
25805 Take into account the new command Check, for gnatcheck. Treat as for
25806 other ASIS tools: take into account project, specific package Check and
25807 Compiler switches.
25808 For ASIS tools, add the switches in package Compiler for
25809 the invocation of the compiler.
25810
25811 * prj-attr.adb: Add package Check and its attributes
25812
25813 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
25814
25815 * vms_conv.adb (Initialize): Change Params of command Check to
25816 unlimited files.
25817 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
25818 Add data for new command Check
25819
25820 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
25821 ELIM.
25822 Add qualifiers for Check command options
25823 (Command_Type): New command Check
25824
25825 2005-12-09 Thomas Quinot <quinot@adacore.com>
25826
25827 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
25828 command line switch overruns the output buffer.
25829
25830 2005-12-09 Robert Dewar <dewar@adacore.com>
25831
25832 * sem_prag.adb: Processing for new pragma Complete_Representation
25833 (Analyze_Pragma, case Debug): Implement two argument form.
25834
25835 * par-prag.adb: Entry for new pragma Complete_Representation
25836 (Prag, case Debug): Recognize two argument form of pragma Debug
25837 New interface for Set_Style_Check_Options.
25838
25839 * sem_ch13.adb: Implement new pragma Complete_Representation.
25840
25841 * snames.adb, snames.ads, snames.h: Entry for new pragma
25842 Complete_Representation.
25843
25844 2005-12-09 Gary Dismukes <dismukes@adacore.com>
25845
25846 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
25847 available user-specified stream attributes on limited parameters to
25848 also test the type directly rather than only its underlying type (for
25849 Ada 95) and, in the case of Ada 2005, to check that the user-specified
25850 attributes are visible at the point of the subprogram declaration.
25851 For Ada 2005, the error message is modified to indicate that the
25852 type's stream attributes must be visible (again, only for -gnat05).
25853
25854 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25855
25856 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
25857 anonymous access types.
25858
25859 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
25860 matching of anonymous access types and anonymous access to subprogram
25861 types. 'R'M 4.9.1 (2/2).
25862
25863 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25864
25865 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
25866 rule prematurely when operands are universal, remaining ambiguities
25867 will be removed during resolution.
25868 Code cleanup.
25869
25870 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
25871 that are Ada 2005 functions.
25872 (Has_Abstract_Interpretation): Subsidiary to
25873 Remove_Conversions, to remove ambiguities caused by abstract operations
25874 on numeric types when operands are universal.
25875
25876 2005-12-09 Robert Dewar <dewar@adacore.com>
25877
25878 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
25879 for case where spec is categorized.
25880
25881 2005-12-09 Javier Miranda <miranda@adacore.com>
25882
25883 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
25884 types use the corresponding record type. This was not needed before
25885 the implementation of Ada 2005 synchronized types because
25886 concurrent types were never tagged types in Ada 95.
25887
25888 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25889
25890 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
25891 first subtype of the type of the expression to verify that it is a
25892 legal Time type.
25893
25894 2005-12-09 Robert Dewar <dewar@adacore.com>
25895
25896 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
25897 decoded names.
25898
25899 2005-12-09 Quentin Ochem <ochem@adacore.com>
25900 Robert Dewar <dewar@adacore.com>
25901 Ed Falis <falis@adacore.com>
25902 Florian Villoing <villoing@adacore.com>
25903 Thomas Quinot <quinot@adacore.com>
25904 Arnaud Charlet <charlet@adacore.com>
25905
25906 * gnat_ugn.texi: Created section "Stack Related Tools"
25907 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
25908 "Stack Related Tools"
25909 Added subsection "Static Stack Usage Analysis"
25910 Added subsection "Dynamic Stack Usage Analysis"
25911 Include documentation of itypes in sprint listing (-gnatG)
25912 Documented gnatbind -D switch (default sec stack size for fixed sec
25913 stacks).
25914 Added Interrupt_State and Persistent_BSS to list of configuration
25915 pragmas.
25916 Add missing doc for maximum value of nnn in -gnatyMnnn
25917
25918 * gnat_rm.texi: Document the AltiVec binding.
25919 Add documentation for pragma Complete_Representation
25920 Shortened an overly long line (> 79 chars)
25921 Clarify documentation of unchecked conversion in implementation
25922 defined cases.
25923 Document two argument form of pragma Debug
25924
25925 * types.ads (Column_Number): Update documentation.
25926
25927 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
25928 library level Finalize_Storage_Only objects (these are not attached to
25929 any finalization list).
25930
25931 * system-mingw.ads: (Underlying_Priorities): Update comment.
25932
25933 2005-12-09 Robert Dewar <dewar@adacore.com>
25934
25935 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
25936 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
25937 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
25938 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
25939 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
25940 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
25941 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
25942 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
25943 reformatting.
25944
25945 2005-12-09 Robert Dewar <dewar@adacore.com>
25946
25947 * s-vaflop-vms-alpha.adb: (Ne_F): New function
25948 (Ne_G): New function
25949
25950 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
25951 for tag assignment.
25952 (Rewrite_Comparison): Handle case where operation is not a comparison
25953 and ignore, and also handle type conversion case.
25954
25955 2005-12-09 Thomas Quinot <quinot@adacore.com>
25956
25957 * exp_aggr.ads: Fix typo in comment.
25958 ???-mark Convert_Aggr_In_Assignment as needing documentation.
25959
25960 2005-12-09 Gary Dismukes <dismukes@adacore.com>
25961
25962 * layout.adb: Replace various uses of byte by storage unit throughout.
25963 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
25964 static size, convert to storage units before returning, to conform to
25965 spec.
25966
25967 2005-12-09 Matthew Gingell <gingell@adacore.com>
25968
25969 * g-exctra.ads: Fix typo in comment.
25970
25971 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25972
25973 * utils.c: Minor reformatting.
25974
25975 2005-12-09 Robert Dewar <dewar@adacore.com>
25976
25977 * g-soccon.ads:
25978 Further comment fixes to make the status of the default file clear
25979
25980 * s-bitops.adb: Clarify comment for Bits_Array
25981
25982 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25983
25984 * Make-lang.in (ada.install-normal): Remove.
25985
25986 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25987
25988 * Make-lang.in: Remove all dependencies on s-gtype.
25989
25990 2005-12-05 Richard Guenther <rguenther@suse.de>
25991
25992 * utils.c (convert): Use fold_convert where appropriate.
25993
25994 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
25995
25996 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
25997 a period is meant.
25998
25999 2005-12-02 Richard Guenther <rguenther@suse.de>
26000
26001 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
26002
26003 2005-12-01 Roger Sayle <roger@eyesopen.com>
26004
26005 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
26006 nodes.
26007
26008 2005-11-23 Laurent Guerby <laurent@guerby.net>
26009
26010 * mlib-prj.adb (Build_Library): Initialize Delete.
26011
26012 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
26013
26014 * socket.c: Add extern int h_errno for rtems since networking header
26015 files are not available at this point in a tool bootstrap. Newlib
26016 only has basic C library header files.
26017
26018 2005-11-19 Richard Guenther <rguenther@suse.de>
26019 Roger Sayle <roger@eyesopen.com>
26020
26021 PR ada/23717
26022 * misc.c (internal_error_function): Don't use vsprintf to format
26023 the error message text, instead use pp_format_text and the new
26024 pretty printer APIs. This allows handling of %qs, %w, etc.
26025
26026 2005-11-18 Laurent Guerby <laurent@guerby.net>
26027
26028 PR ada/24857
26029 * Makefile.in: Use s-auxdec-empty for RTEMS.
26030
26031 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26032
26033 PR ada/22333
26034 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
26035 a temporary if taking the address of something that is neither
26036 reference, declaration, or constant, since the gimplifier
26037 can't handle that case.
26038
26039 2005-11-17 Laurent Guerby <laurent@guerby.net>
26040
26041 PR ada/24857
26042 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
26043
26044 2005-11-16 Richard Guenther <rguenther@suse.de>
26045
26046 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
26047
26048 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
26049
26050 PR ada/24855
26051 * raise-gcc.c: Add missing stdarg.h include.
26052
26053 2005-11-16 Richard Guenther <rguenther@suse.de>
26054
26055 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
26056 (ada/misc.o): Likewise.
26057
26058 2005-11-14 Thomas Quinot <quinot@adacore.com>
26059
26060 * g-soccon.ads: Minor reformatting. Update comments.
26061
26062 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
26063 gain visibility on the declaration of struct timeval.
26064
26065 * g-soccon-freebsd.ads,
26066 g-soccon-darwin.ads,
26067 g-soccon-tru64.ads,
26068 g-soccon-aix.ads,
26069 g-soccon-irix.ads,
26070 g-soccon-hpux.ads,
26071 g-soccon-solaris.ads,
26072 g-soccon-vms.ads,
26073 g-soccon-mingw.ads,
26074 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
26075
26076 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
26077 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
26078 g-soccon-linux-x86.ads: New files.
26079
26080 * g-socthi-mingw.adb:
26081 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
26082
26083 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
26084 (time_t, suseconds_t): New types constructed to match the tv_sec
26085 and tv_usec fields of C struct timeval.
26086 (Timeval): Construct structure in terms of the new types.
26087 (Host_Errno): New function (imported from socket.c), returns last hosts
26088 database error.
26089
26090 * g-socthi-vxworks.adb: Add error handling circuitry.
26091
26092 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
26093 components of struct timeval.
26094 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
26095 (Check_Selector): In error conditions, clear internal socket sets to
26096 avoid a memory leak.
26097 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
26098 Send_Timeout, Receive_Timeout.
26099
26100 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
26101 the tv_sec and tv_usec fields of C struct timeval.
26102 (Timeval): Construct structure in terms of the new types.
26103 (Host_Errno): New function (imported from socket.c), returns last hosts
26104 database error.
26105
26106 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
26107 hosts database last error code.
26108
26109 * gen-soccon.c: Complete value expansion should not be performed on
26110 TARGET, as it has the form of a math expression, and some components
26111 may be platform-defined macros.
26112 For VxWorks, generate the OK and ERROR values.
26113 New constants giving the sizes of the components of C struct timeval.
26114
26115 2005-11-14 Robert Dewar <dewar@adacore.com>
26116 Ed Schonberg <schonberg@adacore.com>
26117
26118 PR ada/18434
26119 * types.ads: Include All_Checks in Suppress_Array
26120
26121 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
26122 not(a=b), since we no longer do this rewriting, and hence it is not
26123 needed.
26124 (Elaboration_Checks_Suppressed): Add special casing to
26125 deal with different cases of static and dynamic elaboration checks (all
26126 checks does not count in the first case, but does in the second).
26127 (Expr_Known_Valid): Do not assume that the result of any arbitrary
26128 function call is valid, since this is not the case.
26129 (Ensure_Valid): Do not apply validity check to a real literal
26130 in a universal or fixed context
26131
26132 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
26133 elementary types using the operator in standard. It is cleaner not to
26134 modify the programmers intent, especially in the case of floating-point.
26135 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
26136 it did not matter because we always rewrote a/=b to not(a=b).
26137 (Expand_Allocator_Expression): For an allocator expression whose nominal
26138 subtype is an unconstrained packed type, convert the expression to its
26139 actual constrained subtype.
26140 Implement warning for <= or >= where < or > not possible
26141 Fix to Vax_Float tests (too early in many routines, causing premature
26142 Vax_Float expansions.
26143
26144 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
26145 to be used with packages and generic packages as well as with
26146 subprograms.
26147 (Suppress): Set All_Checks, but not Elaboration_Check, for case
26148 of pragma Suppress (All_Checks)
26149 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
26150 a string literal for precise control over warnings.
26151 Avoid raise of pragma in case of unrecognized pragma and just return
26152 instead.
26153
26154 * sem_prag.ads: Minor reformatting
26155
26156 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
26157 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
26158 Switch. Do not handle any exception.
26159 Include -gnatwx as part of -gnatg (warn on redundant parens)
26160 Allow optional = after -gnatm
26161 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
26162 longer sets Elaboration_Checks.
26163 Code to set warning mode moved to Sem_Warn
26164 so that it can be shared by pragma processing.
26165
26166 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
26167 statement.
26168
26169 * s-taprop-solaris.adb:
26170 Change some <= to =, to avoid new warning
26171
26172 * a-exexda.adb, prj-proc.adb:
26173 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
26174 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
26175
26176 2005-11-14 Robert Dewar <dewar@adacore.com>
26177
26178 * exp_vfpt.adb: Handle /= case
26179 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
26180 so that we do not get duplicate scaling for fixed point conversions.
26181
26182 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
26183
26184 2005-11-14 Matthew Gingell <gingell@adacore.com>
26185
26186 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
26187 Increase default priority on Lynx from 15 to 17, and meet the Ada
26188 requirement that Default_Priority be ((Priority'First +
26189 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
26190
26191 2005-11-14 Vincent Celier <celier@adacore.com>
26192
26193 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26194 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
26195 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
26196 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
26197 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
26198 mlib-tgt-lynxos.adb (DLL_Prefix): New function
26199
26200 2005-11-14 Doug Rupp <rupp@adacore.com>
26201
26202 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
26203 private part.
26204
26205 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26206
26207 * s-traces-default.adb, s-trafor-default.ads,
26208 s-tratas-default.adb: Fix compilation errors.
26209
26210 2005-11-14 Jose Ruiz <ruiz@adacore.com>
26211
26212 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
26213 raising the exception so the memory used is freed.
26214
26215 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26216
26217 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
26218 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
26219 (convert_address): Update comments and list of platforms using this.
26220
26221 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
26222 no longer used.
26223
26224 2005-11-14 Pascal Obry <obry@adacore.com>
26225 Vincent Celier <celier@adacore.com>
26226
26227 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
26228 GNAT.Command_Line.
26229
26230 * memroot.adb: Remove redundant with/use clause on
26231 System.Storage_Elements.
26232
26233 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26234
26235 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
26236 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
26237 related code to a-exexpr.adb
26238 (Save_Occurrence_And_Private): Move GCC EH related code to
26239 a-exexpr-gcc.adb
26240 (Raise_Current_Excep): Add new variable Id with pragma
26241 volatile, to ensure that the variable lives on stack.
26242
26243 * a-exexpr-gcc.adb, raise-gcc.c: New file.
26244
26245 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
26246 from a-except.adb.
26247 Move GCC EH related code to a-exexpr-gcc.adb
26248
26249 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
26250 64-bit Solaris
26251 Split the Linux version of g-soccon into separate variants for 32 and 64
26252 bit platforms.
26253 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
26254 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
26255 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
26256 of host variable $(RANLIB_FLAGS).
26257 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
26258 Code clean up: remove unused/obsolete targets.
26259 (EH_MECHANISM): New variable introduced to differenciate between the
26260 two EH mechanisms statically.
26261 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
26262 (LIBGNAT_OBJS): Add raise-gcc.o
26263 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
26264 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
26265 supports VxWorks 6 RTPs.
26266 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
26267 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
26268
26269 * raise.c: Move all GCC EH-related routines to raise-gcc.c
26270
26271 2005-11-14 Jose Ruiz <ruiz@adacore.com>
26272
26273 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
26274 deferral level, when abort is not allowed, to a later stage (the
26275 Task_Wrapper).
26276 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
26277 it will not get changed by the generated code. It was previously done
26278 in Create_Task.
26279
26280 2005-11-14 Thomas Quinot <quinot@adacore.com>
26281 Olivier Hainque <hainque@adacore.com>
26282 Eric Botcazou <ebotcazou@adacore.com>
26283
26284 * decl.c:
26285 Factor common code to build a storage type for an unconstrained object
26286 from a fat or thin pointer type and a constrained object type.
26287 (annotate_value): Handle BIT_AND_EXPR.
26288 (annotate_rep): Don't restrict the back annotation of inherited
26289 components to the type_annotate_only case.
26290 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
26291 we are not defining the type.
26292 <E_Record_Type>: Likewise.
26293 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
26294 to get advantage of the new maybe_stabilize_reference interface, to
26295 ensure that what we reference is indeed stabilized instead of relying
26296 on assumptions on what the stabilizer does.
26297 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
26298 type imported through a limited_with clause, use its non-limited view.
26299 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
26300 differentiation.
26301 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
26302 of #if sections + explicit comparisons of convention identifiers.
26303 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
26304 before early-returning for certain types when code generation is
26305 disabled.
26306 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
26307 nullification of gnu_expr we do for objects with address clause and
26308 that we are not defining.
26309 (elaborate_expression_1): Do not create constants when creating
26310 variables needed by the debug info: the dwarf2 writer considers that
26311 CONST_DECLs is used only to represent enumeration constants, and emits
26312 nothing for them.
26313 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
26314 object with an address clause into an indirect reference, drop the
26315 initializing expression.
26316 Include "expr.h".
26317 (STACK_CHECK_BUILTIN): Delete.
26318 (STACK_CHECK_PROBE_INTERVAL): Likewise.
26319 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
26320 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
26321 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
26322 corresponding to the renamed object as ignored for debugging purposes.
26323
26324 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
26325 related): For a prefix that is a dereference of a fat or thin pointer,
26326 if there is an actual subtype provided by the front-end, use that
26327 subtype to build an actual type with bounds template.
26328 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
26329 is provided by the front-end, use that subtype to compute the size of
26330 the deallocated object.
26331 (gnat_to_gnu): When adding a statement into an elaboration procedure,
26332 check for a potential violation of a No_Elaboration_Code restriction.
26333 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
26334 with extra arguments to control whether to recurse through non-values
26335 and to let the caller know if the stabilization has succeeded.
26336 (gnat_stabilize_reference): Now a simple wrapper around
26337 maybe_stabilize, for common uses without restriction on lvalues and
26338 without need to check for the success indication.
26339 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
26340 pass false instead of 0 as the FORCE argument which is a bool.
26341 (Identifier_to_gnu): Remove checks ensuring that an renamed object
26342 attached to a renaming pointer has been properly stabilized, as no such
26343 object is attached otherwise.
26344 (call_to_gnu): Invoke create_var_decl to create the temporary when the
26345 function uses the "target pointer" return mechanism.
26346 Reinstate conversion of the actual to the type of the formal
26347 parameter before any other specific treatment based on the passing
26348 mechanism. This turns out to be necessary in order for PLACEHOLDER
26349 substitution to work properly when the latter type is unconstrained.
26350
26351 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
26352 common pattern.
26353 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
26354 with extra arguments to control whether to recurse through non-values
26355 and to let the caller know if the stabilization has succeeded.
26356
26357 * utils2.c (gnat_build_constructor): Only sort the fields for possible
26358 static output of record constructor if all the components are constant.
26359 (gnat_build_constructor): For a record type, sort the list of field
26360 initializers in increasing bit position order.
26361 Factor common code to build a storage type for an unconstrained object
26362 from a fat or thin pointer type and a constrained object type.
26363 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
26364 types variants, and process special cases of VIEW_CONVERT expressions
26365 as their NOP_EXPR counterpart to ensure we get to the
26366 CORRESPONDING_VARs associated with CONST_DECls.
26367 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
26368 on the right-hand side.
26369
26370 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
26371 a common pattern.
26372 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
26373 are converting back to its original type.
26374 (convert) <JM input>: Fallthrough regular conversion code instead of
26375 extracting the object if converting to a type variant.
26376 (create_var_decl): When a variable has an initializer requiring code
26377 generation and we are at the top level, check for a potential violation
26378 of a No_Elaboration_Code restriction.
26379 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
26380 SIZE and SIZE_UNIT which we need for later back-annotations.
26381 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
26382 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
26383 is an unchecked union.
26384 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
26385 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
26386 main variant, just replace the VIEW_CONVERT_EXPR.
26387 <UNION_TYPE>: Revert 2005-03-02 change.
26388
26389 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
26390
26391 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
26392
26393 2005-11-14 Matthew Heaney <heaney@adacore.com>
26394
26395 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
26396 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
26397 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
26398 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
26399 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
26400 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
26401 Compiles against the spec for ordered maps described in sections
26402 A.18.6 of the most recent (August 2005) AI-302 draft.
26403
26404 2005-11-14 Olivier Hainque <hainque@adacore.com>
26405
26406 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
26407 to ensure bias adjustments take place when need be and to prevent
26408 occurrences of intermediate overflows.
26409
26410 2005-11-14 Matthew Gingell <gingell@adacore.com>
26411 Olivier Hainque <hainque@adacore.com>
26412
26413 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
26414 ia64 HP-UX.
26415
26416 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
26417 tracebacks on ia64 HP-UX and provide explanatory comment.
26418 Enable backtraces on ia64 GNU/Linux.
26419 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
26420 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
26421
26422 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
26423 Javier Miranda <miranda@adacore.com>
26424
26425 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
26426 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
26427 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
26428 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
26429
26430 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
26431 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
26432 assertions).
26433
26434 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
26435 subprogram that generates the external name associated with a
26436 secondary dispatch table.
26437 (Get_Secondary_DT_External_Name): New subprogram that generates the
26438 external name associated with a secondary dispatch table.
26439
26440 2005-11-14 Emmanuel Briot <briot@adacore.com>
26441
26442 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
26443 line in the ALI file to include both an instantiation reference, and a
26444 returned value.
26445
26446 2005-11-14 Vincent Celier <celier@adacore.com>
26447
26448 * clean.adb (Check_Project): Look for Ada code in extending project,
26449 even if Ada is not specified as a language.
26450 Use new function DLL_Prefix for DLL_Name
26451 (Clean_Interface_Copy_Directory): New procedure
26452 (Clean_Library_Directory): New procedure
26453 (Clean_Directory): Remove procedure, no longer used
26454 (Clean_Project): Do not delete any file in an externally built project
26455
26456 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
26457 directory of an extending project, even when there are no Ada source
26458 present.
26459 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
26460 (Set_Ada_Paths.Add.Recursive_Add): Ditto
26461
26462 * mlib-prj.adb (Check_Library): For all library projects, get the
26463 library file timestamp.
26464 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
26465 (Build_Library): Use new function DLL_Prefix for the DLL_Name
26466 (Clean): Remove procedure, no longer used
26467 (Ultimate_Extension_Of): New function
26468 (Build_Library): When cleaning the library directory, only remove an
26469 existing library file and any ALI file of a source of the project.
26470 When cleaning the interface copy directory, remove any source that
26471 could be a source of the project.
26472
26473 * prj.ads, prj.adb (Project_Empty): Add values of new components
26474 Library_TS and All_Imported_Projects.
26475 (Project_Empty): Add values for new components of Project_Data:
26476 Library_ALI_Dir and Display_Library_ALI_Dir
26477
26478 * prj-attr.adb: New project level attribute name Library_ALI_Dir
26479
26480 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
26481 attribute Library_ALI_Dir.
26482 (Check_Library_Attributes): The library directory cannot be the same as
26483 any source directory of the project tree.
26484 (Check_Stand_Alone_Library): The interface copy directory cannot be
26485 the same as any source directory of the project tree.
26486
26487 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
26488 all temporary files.
26489
26490 2005-11-14 Robert Dewar <dewar@adacore.com>
26491 Ed Schonberg <schonberg@adacore.com>
26492
26493 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26494 (Check_Elab_Call): A call within a protected body is never an
26495 elaboration call, and does not require checking.
26496 (Same_Elaboration_Scope): Take into account protected types for both
26497 entities.
26498 (Activate_Elaborate_All_Desirable): New procedure
26499
26500 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
26501 desirable
26502
26503 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
26504 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
26505
26506 * lib-writ.ads, lib-writ.adb:
26507 Implement new AD/ED for Elaborate_All/Elaborate desirable
26508 Use new Elaborate_All_Desirable flag in N_With_Clause node
26509
26510 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
26511 N_Free_Statement nodes.
26512 Define new class N_Subprogram_Instantiation
26513 Add Elaborate_Desirable flag to N_With_Clause node
26514 Add N_Delay_Statement (covering two kinds of delay)
26515
26516 * debug.adb: Introduce d.f flag for compiler
26517 Add -da switch for binder
26518
26519 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26520 Cyrille Comar <comar@adacore.com>
26521
26522 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
26523 for task component, in the case of a limited aggregate. The enclosed
26524 object declaration will create it earlier. Otherwise, in the case of a
26525 nested aggregate, the object may appear in the wrong scope.
26526 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
26527 (Gen_Assign): If the component being assigned is an array type and the
26528 expression is itself an aggregate, wrap the assignment in a block to
26529 force finalization actions on the temporary created for each row of the
26530 enclosing object.
26531 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
26532 structures are initialized after all discriminants are set so that
26533 they can be accessed even when their offset is dynamic.
26534
26535 2005-11-14 Robert Dewar <dewar@adacore.com>
26536 Hristian Kirtchev <kirtchev@adacore.com>
26537
26538 * sem_attr.adb: Implement Machine_Rounding attribute
26539 (Analyze_Access_Attribute): The access attribute may appear within an
26540 aggregate that has been expanded into a loop.
26541 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
26542 'Terminated whenever the prefix is of a task interface class-wide type.
26543 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
26544 the prefix is of a task interface class-wide type.
26545
26546 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
26547 to avoid warnings.
26548
26549 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
26550 Remove pragma Inline for [Unaligned_]Valid.
26551 Add comments that Valid routines do not work for Vax_Float
26552
26553 * exp_attr.adb: Implement Machine_Rounding attribute
26554
26555 * snames.h: Add entry for Machine_Rounding attribute
26556
26557 2005-11-14 Javier Miranda <miranda@adacore.com>
26558 Robert Dewar <dewar@adacore.com>
26559 Hristian Kirtchev <kirtchev@adacore.com>
26560
26561 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
26562 and related): For a prefix that is an explicit dereference of an
26563 access to unconstrained packed array type, annotate the dereference
26564 with an actual subtype so GIGI can make a correct size computation.
26565 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
26566 'Unrestricted_Access, if the designated type is an interface we
26567 add a type conversion to force the displacement of the pointer
26568 to the secondary dispatch table.
26569 Use Universal_Real instead of Long_Long_Float when we need a high
26570 precision float type for the generated code (prevents gratuitous
26571 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26572 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
26573 'Terminated for task interface class-wide objects. Generate a call to
26574 the predefined dispatching routine used to retrieve the _task_id from
26575 a task corresponding record.
26576 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
26577
26578 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26579 (Check_Dispatching_Operation): Protect the frontend againts
26580 previously detected errors.
26581
26582 * Makefile.rtl: Add new instantiations of system.fat_gen
26583
26584 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
26585 Change name of instantiated package for better consistency
26586 with newly added system.fat_gen instantiations.
26587
26588 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
26589 s-fvagfl.ads: New files.
26590
26591 2005-11-14 Cyrille Comar <comar@adacore.com>
26592 Thomas Quinot <quinot@adacore.com>
26593
26594 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
26595 assignment of a value of a tagged type that has been rewritten to a
26596 block statement, it is known by construction that no checks are
26597 necessary for the statements within the block: analyze it with checks
26598 suppressed.
26599 (Expand_N_If_Statement): When killing a dead then-branch in an
26600 if-statement that has elsif_parts, recompute the Current_Value node
26601 for any entity whose value is known from the condition of the first
26602 elsif_part.
26603 (Expand_N_Return_Statement): When returning a mutable record, convert
26604 the return value into its actual subtype in order to help the backend
26605 to return the actual size instead of the maximum. This is another
26606 aftermath of not returning mutable records on the sec-stack anymore.
26607
26608 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
26609 handling of error msg for suspicious reverse range iteration.
26610 (Check_Possible_Current_Value_Condition): Move declaration from body to
26611 spec, to allow this subprogram to be called from exp_ch5.
26612
26613 2005-11-14 Thomas Quinot <quinot@adacore.com>
26614
26615 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
26616 generate a set of nested array aggregates instead of a single flat
26617 aggregate for multi-dimensional arrays.
26618
26619 2005-11-14 Pascal Obry <obry@adacore.com>
26620
26621 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
26622 by spawnve is a process handle, no need to convert. Add a parameter
26623 close to control wether the process handle must be closed.
26624 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
26625 a process handle, not need to convert.
26626 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
26627
26628 * g-expect.adb: (Kill): Document the new close parameter.
26629 (Close): Do not release the process handle in the kill there as
26630 waitpid() is using it.
26631 (Send_Signal): Release the process handle.
26632
26633 2005-11-14 Robert Dewar <dewar@adacore.com>
26634
26635 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
26636 need a high precision float type for the generated code (prevents
26637 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
26638 used).
26639
26640 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
26641 need a high precision float type for the generated code (prevents
26642 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
26643 used).
26644 (Expand_Width_Attribute): In configurable run-time, the attribute is not
26645 allowed on non-static enumeration subtypes. Force a load error to emit
26646 the correct diagnostic.
26647
26648 2005-11-14 Thomas Quinot <quinot@adacore.com>
26649 Robert Dewar <dewar@adacore.com>
26650 Ed Schonberg <schonberg@adacore.com>
26651
26652 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
26653 subtype to compute the size of the designated object at run-time,
26654 create such a subtype and store it in the Actual_Designated_Subtype
26655 attribute of the N_Free_Statement.
26656 Generate itype for classwide designated object in both cases of
26657 user-specified storage pool: specific and class-wide, not only in the
26658 specific case.
26659 Raise CE when trying to set a not null access type object to null.
26660 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
26661 an explicit loop, because freeze nodes make its position variable.
26662
26663 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
26664 null object.
26665
26666 2005-11-14 Javier Miranda <miranda@adacore.com>
26667
26668 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
26669 Build_Stream_Procedure): Add the null-excluding attribute to the first
26670 formal.
26671 This has no semantic meaning under Ada95 mode but it is a
26672 requirement under Ada05 mode.
26673
26674 * par-ch3.adb (P_Access_Definition): Addition of warning message if
26675 the null exclusion is used under Ada95 mode
26676 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
26677 (P_Access_Definition): Remove assertion that forbids the use of
26678 the null-exclusion feature in Ada95.
26679
26680 2005-11-14 Robert Dewar <dewar@adacore.com>
26681
26682 * impunit.adb: Exclude container helper units not intended for use by
26683 users.
26684
26685 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26686
26687 * freeze.adb (Freeze_Entity): For an access formal that is an access
26688 to subprogram, freeze the anonymous subprogram type at the same time,
26689 to prevent later freezing in the wrong scope, such as the enclosing
26690 subprogram body.
26691 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
26692 subprogram whenever available.
26693
26694 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26695
26696 PR ada/23732
26697 * gnatvsn.ads (Library_Version): Bump to 4.1
26698
26699 2005-11-14 Robert Dewar <dewar@adacore.com>
26700
26701 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
26702 Storage_Offset to avoid wrap around causing invalid results.
26703
26704 2005-11-14 Pascal Obry <obry@adacore.com>
26705
26706 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
26707 cross-compiler.
26708 (Scan_Bind_Arg): Fail with an error message if -M option is used
26709 on a native compiler.
26710
26711 2005-11-14 Robert Dewar <dewar@adacore.com>
26712 Vincent Celier <celier@adacore.com>
26713
26714 * gprep.adb: Implement -C switch to scan comments
26715
26716 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
26717
26718 * scans.ads: Comment updates (including new use of Tok_Comment in
26719 preprocessing)
26720
26721 * opt.ads: Add documentation for flags that are used by gprmake,
26722 currently and in the next version of gprmake.
26723 (Verbosity_Level): New variable
26724 Add Replace_In_Comments switch
26725
26726 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
26727 and -vm.
26728 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
26729
26730 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26731
26732 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
26733 message, friendlier.
26734
26735 2005-11-14 Robert Dewar <dewar@adacore.com>
26736
26737 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
26738
26739 2005-11-14 Doug Rupp <rupp@adacore.com>
26740
26741 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
26742
26743 2005-11-14 Robert Dewar <dewar@adacore.com>
26744
26745 * interfac.ads: Change declarations of IEEE float types so that we no
26746 longer need a separate version of this package for VMS.
26747
26748 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26749
26750 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
26751 internal entity created for the declaration of a child subprogram body
26752 with no spec as coming from source, to generate proper cross-reference
26753 information.
26754
26755 2005-11-14 Vincent Celier <celier@adacore.com>
26756
26757 * make.adb (Compile_Sources): Change verbose message to minimum
26758 verbosity level High for "is in an Ada library", "is a read-only
26759 library" and "is an internal library",
26760 (Create_Binder_Mapping_File): Path name of ALI file for library project
26761 must include the library directory, not the object directory.
26762 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
26763 for new switches -vl, -vm and -vh.
26764 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
26765 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
26766 (Compile_Sources): Do not attempt to compile if an ALI file is missing
26767 in a project that is externally built.
26768 (Compute_All_Imported_Projects): New procedure
26769 (Gnatmake): Check if importing libraries should be regenerated because
26770 at least an imported library is more recent.
26771 (Initialize): For each project compute the list of the projects it
26772 imports directly or indirectly.
26773 (Add_Library_Search_Dir): New procedure, used in place of
26774 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
26775 put in the search paths.
26776 (Add_Source_Search_Dir): New procedure, used in place of
26777 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
26778 put in the search paths.
26779 (Mark_Directory): Resolve the absolute path the directory before marking
26780 it.
26781
26782 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
26783 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
26784 Switch. Do not handle any exception.
26785 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
26786 so that the switch is recognized as valid.
26787 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
26788
26789 2005-11-14 GNAT Script <nobody@adacore.com>
26790
26791 * Make-lang.in: Makefile automatically updated
26792
26793 2005-11-14 Pascal Obry <obry@adacore.com>
26794
26795 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
26796 used.
26797 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
26798 In both cases the last argument was dropped.
26799
26800 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
26801
26802 * namet.h: (Column_Numbe): New type.
26803 (Get_Column_Number): Define to sinput__get_column_number.
26804 (Instantiation): Define to sinput__instantiation.
26805 (Get_Column_Number): Declare.
26806 (Instantiation): Likewise.
26807
26808 2005-11-14 Robert Dewar <dewar@adacore.com>
26809
26810 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
26811 syntax, which could cause compiler hangs.
26812
26813 2005-11-14 Vincent Celier <celier@adacore.com>
26814
26815 * prj-ext.adb: Take into account new environment variable
26816 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
26817 are defined.
26818 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
26819 normalize its path name, making it absolute and resolving symbolic
26820 links, and replace the original if resolved path is different.
26821
26822 2005-11-14 Vincent Celier <celier@adacore.com>
26823
26824 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
26825 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
26826
26827 2005-11-14 Emmanuel Briot <briot@adacore.com>
26828
26829 * prj-pp.adb (Print): Do not output the with statement if the
26830 associated name is empty, which happens for virtual extending projects.
26831 (Print): Preserve the "extends all" attribute when printing the project.
26832
26833 * prj-tree.ads (String_Value_Of): Add comment about returned value for
26834 a virtual extending project.
26835
26836 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26837
26838 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
26839 rhs of an assignment even if the type is unconstrained, when the
26840 context is non-expanding.
26841 In an inlined body, if the context type is private,
26842 resolve with its full view, which must be a composite type.
26843
26844 2005-11-14 Robert Dewar <dewar@adacore.com>
26845 Ed Schonberg <schonberg@adacore.com>
26846
26847 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26848 Do not give obsolescent warning on with of subprogram (since we
26849 diagnose calls)
26850 (Analyze_With_Clause): Add test for obsolescent package
26851 (Install_Context_Clauses): If the unit is the body of a child unit, do
26852 not install twice the private declarations of the parents, to prevent
26853 circular lists of Use_Clauses in a parent.
26854 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
26855 compiling body of child unit.
26856 Use new class N_Subprogram_Instantiation
26857 (Expand_With_Clause): If this is a private with_clause for a child unit,
26858 appearing in the context of a package declaration, then the implicit
26859 with_clauses generated for parent units are private as well.
26860 (License_Check): Do not generate message if with'ed unit is internal
26861
26862 2005-11-14 Gary Dismukes <dismukes@adacore.com>
26863 Ed Schonberg <schonberg@adacore.com>
26864 Thomas Quinot <quinot@adacore.com>
26865
26866 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
26867 names are internal, because they will not have a corresponding partner
26868 in the actual package.
26869 (Analyze_Formal_Package): Move the setting of the formal package spec's
26870 Generic_Parent field so that it occurs prior to analyzing the package,
26871 to allow proper operation of Install_Parent_Private_Declarations.
26872 (Analyze_Package_Instantiation): Set the instantiated package entity's
26873 Package_Instantiation field.
26874 (Get_Package_Instantiation_Node): Move declaration to package spec.
26875 Retrieve the N_Package_Instantiation node when the Package_Instantiation
26876 field is present.
26877 (Check_Generic_Child_Unit): Within an inlined call, the only possible
26878 instantiation is Unchecked_Conversion, for which no parents are needed.
26879 (Inline_Instance_Body): Deinstall and record the use_clauses for all
26880 parent scopes of a scope being removed prior to inlining an instance
26881 body.
26882 (Analyze_Package_Instantiation): Do not perform front-end inlining when
26883 the current context is itself an instance within a non-instance child
26884 unit, to prevent scope stack errors.
26885 (Save_References): If the node is an aggregate that is an actual in a
26886 call, rewrite as a qualified expression to preserve some type
26887 information, to resolve possible ambiguities in the instance.
26888 (Instance_Parent_Unit): New global variable to record the ultimate
26889 parent unit associated with a generic child unit instance (associated
26890 with the existing Parent_Unit_Visible flag).
26891 (type Instance_Env): New component Instance_Parent_Unit for stacking
26892 parents recorded in the global Instance_Parent_Unit.
26893 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
26894 stack.
26895 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
26896 it's not a top-level unit, and only do this if Instance_Parent_Unit is
26897 not already set. Replace test of Is_Child_Unit with test of parent's
26898 scope against package Standard. Add comments and a ??? comment.
26899 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
26900 on a child instance parent to test that the parent equals
26901 Instance_Parent rather than simply checking that the unit is not a
26902 child unit.
26903 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
26904 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
26905 a formal interface are ancestors of the corresponding actual.
26906 (Validate_Formal_Interface_Type): Additional legality checks.
26907 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
26908 interface types with ancestors.
26909 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
26910 to diagnose attempts to use generic within its own declaration.
26911
26912 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26913 Javier Miranda <miranda@adacore.com>
26914
26915 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
26916 discriminant.
26917 (Build_Private_Derived_Type): The entity of the created full view of the
26918 derived type does not come from source. If after installing the private
26919 declarations of the parent scope the parent is still private, use its
26920 full view to construct the full declaration of the derived type.
26921 (Build_Derived_Record_Type): Relax the condition that controls the
26922 execution of the check that verifies that the partial view and
26923 the full view agree in the set of implemented interfaces. In
26924 addition, this test now only takes into account the progenitors.
26925 (Derive_Interface_Subprograms): No need to derive subprograms
26926 of ancestors that are interfaces.
26927 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
26928 associated code.
26929 Change name Is_Package to Is_Package_Or_Generic_Package
26930 (Complete_Subprograms_Derivation): Handle the case in which the full
26931 view is a transitive derivation of the ancestor of the partial view.
26932 (Process_Full_View): Rename local subprogram Find_Interface_In_
26933 Descendant to Find_Ancestor_Interface to leave the code more clear.
26934 Remove wrong code that avoids the generation of an error message
26935 when the immediate ancestor of the partial view is an interface.
26936 In addition some minor reorganization of the code has been done to
26937 leave it more clear.
26938 (Analyze_Type_Declaration): If type has previous incomplete tagged
26939 partial view, inherit properly its primitive operations.
26940 (Collect_Interfaces): Make public, for analysis of formal
26941 interfaces.
26942 (Analyze_Interface_Declaration): New procedure for use for regular and
26943 formal interface declarations.
26944 (Build_Derived_Record_Type): Add support for private types to the code
26945 that checks if a tagged type implements abstract interfaces.
26946 (Check_Aliased_Component_Type): The test applies in the spec of an
26947 instance as well.
26948 (Access_Type_Declaration): Clean up declaration of malformed type
26949 declared as an access to its own classwide type, to prevent cascaded
26950 crash.
26951 (Collect_Interfaces): For private extensions and for derived task types
26952 and derived protected types, the parent may be an interface that must
26953 be included in the interface list.
26954 (Access_Definition): If the designated type is an interface that may
26955 contain tasks, create Master_Id for it before analyzing the expression
26956 of the declaration, which may be an allocator.
26957 (Record_Type_Declaration): Set properly the interface kind, for use
26958 in allocators, the creation of master id's for task interfaces, etc.
26959
26960 2005-11-14 Javier Miranda <miranda@adacore.com>
26961 Ed Schonberg <schonberg@adacore.com>
26962
26963 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
26964 omitted in case of stream attribute subprograms.
26965 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
26966 appear immediately after a subprogram body, when there is no previous
26967 subprogram declaration.
26968 Change name Is_Package to Is_Package_Or_Generic_Package
26969 (Process_Formals): A non null qualifier on a non null named access
26970 type is not an error, and is a warning only if Redundant_Constructs
26971 are flagged.
26972
26973 2005-11-14 Gary Dismukes <dismukes@adacore.com>
26974 Ed Schonberg <schonberg@adacore.com>
26975
26976 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
26977 nested within Analyze_Package_Specification to install the private
26978 declarations and use clauses within each of the parent units of a
26979 package instance of a generic child package.
26980 (Analyze_Package_Specification): When entering a private part of a
26981 package associated with a generic instance or formal package, the
26982 private declarations of the parent must be installed (by calling new
26983 procedure Install_Parent_Private_Declarations).
26984 Change name Is_Package to Is_Package_Or_Generic_Package
26985 (Preserve_Full_Attributes): For a synchronized type, the corresponding
26986 record is absent in a generic context, which does not indicate a
26987 compiler error.
26988
26989 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26990
26991 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
26992 not try to rewrite a renamed stream attribute, because the operations
26993 on the type may not have been generated.
26994 Handle properly a renaming_as_body generated for a stream operation
26995 whose default is abstract because the object type itself is abstract.
26996 (Find_Type): If the type is incomplete and appears as the prefix of a
26997 'Class reference, it is tagged, and its list of primitive operations
26998 must be initialized properly.
26999 (Chain_Use_Clauses): When chaining the use clauses that appear in the
27000 private declaration of a parent unit, prior to compiling the private
27001 part of a child unit, find on the scope stack the proper parent entity
27002 on which to link the use clause.
27003 (Note_Redundant_Use): Emit a warning when a redundant use clause is
27004 detected.
27005 (Analyze_Object_Renaming): An attribute reference is not a legal object
27006 if it is not a function call.
27007
27008 2005-11-14 Robert Dewar <dewar@adacore.com>
27009 Ed Schonberg <schonberg@adacore.com>
27010
27011 * sem_eval.adb: Implement d.f flag
27012 (Subtype_Statically_Match): A generic actual type has unknown
27013 discriminants when the corresponding actual has a similar partial view.
27014 If the routine is called to validate the signature of an inherited
27015 operation in a child instance, the generic actual matches the full view,
27016
27017 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
27018 Ed Schonberg <schonberg@adacore.com>
27019 Robert Dewar <dewar@adacore.com>
27020 Thomas Quinot <quinot@adacore.com>
27021
27022 * sem_res.adb (Resolve_Call): Provide a better error message whenever
27023 a procedure call is used as a select statement trigger and is not an
27024 entry renaming or a primitive of a limited interface.
27025 (Valid_Conversion): If the operand has a single interpretation do not
27026 remove address operations.
27027 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
27028 statement to inhibit warning.
27029 (Resolve_Unary_Op): Do not produce a warning when
27030 processing an expression of the form -(A mod B)
27031 Use Universal_Real instead of Long_Long_Float when we need a high
27032 precision float type for the generated code (prevents gratuitous
27033 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
27034 (Resolve_Concatenation_Arg): Improve error message when argument is an
27035 ambiguous call to a function that returns an array.
27036 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
27037 there is an implicit operator in the given scope if we are within an
27038 instance: legality check has been performed on the generic.
27039 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
27040 after resolving operand, to avoid false warnings on overloaded calls.
27041
27042 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27043 Javier Miranda <miranda@adacore.com>
27044
27045 PR ada/15604
27046 * sem_type.adb (Covers): In an inlined body, a composite type matches
27047 a private type whose full view is a composite type.
27048 (Interface_Present_In_Ancestor): Protect the frontend against
27049 previously detected errors to ensure that its compilation
27050 with assertions enabled gives the same output that its
27051 compilation without assertions.
27052 (Interface_Present_In_Ancestor): Add support for private types.
27053 Change name In_Actual to In_Generic_Actual (clean up)
27054 (Disambiguate): New predicate In_Actual, to recognize expressions that
27055 appear in the renaming declaration generated for generic actuals, and
27056 which must be resolved in the outer context.
27057
27058 2005-11-14 Robert Dewar <dewar@adacore.com>
27059 Thomas Quinot <quinot@adacore.com>
27060 Hristian Kirtchev <kirtchev@adacore.com>
27061 Ed Schonberg <schonberg@adacore.com>
27062
27063 * sem_util.ads, sem_util.adb: Change name Is_Package to
27064 Is_Package_Or_Generic_Package.
27065 (Check_Obsolescent): New procedure.
27066 (Set_Is_Public): Remove obsolete junk test.
27067 (Set_Public_Status): Do not set Is_Public on an object whose declaration
27068 occurs within a handled_sequence_of_statemets.
27069 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
27070 for a parameterless procedure.
27071 (Enter_Name): Recognize renaming declarations created for private
27072 component of a protected type within protected operations, so that
27073 the source name of the component can be used in the debugger.
27074
27075 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27076 Robert Dewar <dewar@adacore.com>
27077
27078 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
27079 of a generic subprogram are not visible outside the body.
27080 (Set_Warning_Switch): New procedure (code to set warning mode moved
27081 here from Switch.C so that it can be shared by pragma processing.
27082 (Check_References): Special case warning for non-modified non-imported
27083 volatile objects.
27084 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
27085 form with a string literal argument
27086
27087 2005-11-14 Javier Miranda <miranda@adacore.com>
27088
27089 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
27090 anonymous access.
27091 (Write): Addition of "not null" to the anonymous access.
27092 (Read): Addition of "not null" to the anonymous access.
27093 (Write): Addition of "not null" to the anonymous access.
27094
27095 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
27096 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
27097 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
27098 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
27099 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
27100 "not null" to the anonymous access.
27101
27102 2005-11-14 Robert Dewar <dewar@adacore.com>
27103
27104 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
27105 offset values
27106
27107 2005-11-14 Vincent Celier <celier@adacore.com>
27108
27109 * switch.adb (Bad_Switch): New procedure
27110 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
27111 message when in error.
27112
27113 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
27114 Too_Many_Output_Files): Remove declarations, no longer used.
27115 (Scan_Nat): New parameter Switch
27116 (Scan_Pos): Ditto
27117 (Bad_Switch): New procedure
27118
27119 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
27120 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
27121 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
27122 to Osint.Fail. Do not handle any exception.
27123
27124 2005-11-14 Vincent Celier <celier@adacore.com>
27125
27126 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
27127 designates a non existent directory.
27128
27129 2005-11-14 Robert Dewar <dewar@adacore.com>
27130
27131 * xgnatugn.adb: Replace invalid membership test by 'Valid
27132
27133 2005-11-14 Vincent Celier <celier@adacore.com>
27134
27135 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
27136 there is no object directory.
27137
27138 2005-11-14 Robert Dewar <dewar@adacore.com>
27139
27140 * usage.adb: Minor adjustment to output format, use nn instead of nnn
27141 (so that -gnateInnn does not run into next column)
27142
27143 2005-11-14 Ed Falis <falis@adacore.com>
27144
27145 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
27146 "constrained"
27147
27148 2005-11-14 Cyrille Comar <comar@adacore.com>
27149
27150 * s-chepoo.ads: Add comments on Dereference.
27151 Remove unnecessary inherited abstract primitives.
27152 Cosmetic cleanup.
27153
27154 2005-11-14 Robert Dewar <dewar@adacore.com>
27155
27156 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
27157 node parameter, not needed, since it is available as Declaration_Node.
27158
27159 2005-11-14 Geert Bosch <bosch@adacore.com>
27160
27161 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
27162 grammatically correct.
27163
27164 2005-11-14 Vincent Celier <celier@adacore.com>
27165
27166 * s-fileio.ads: Correct spelling error in comment
27167
27168 2005-11-14 Cyrille Comar <comar@adacore.com>
27169 Robert Dewar <dewar@adacore.com>
27170 Vincent Celier <celier@adacore.com>
27171 Ben Brosgol <brosgol@adacore.com>
27172 Jose Ruiz <ruiz@adacore.com>
27173 Pascal Obry <obry@adacore.com>
27174
27175 * gnat_ugn.texi:
27176 Document that -fstack-check is needed for strict compliance with the
27177 Ada 95 Reference Manual.
27178 Correct reference to VAX systems to meet HP guidelines
27179 Add documentation for new gnatmake switches -vl, -vm and -vh
27180 Replace DEC Ada by HP Ada
27181 Replace DIGITAL by HP
27182 Remove empty section on tools in compatibility section
27183 Clarify the Windows convention semantics.
27184 Document the Win32 calling convention.
27185 The Stdcall, Win32 and DLL convention are synonyms.
27186 Add a note in -gnatR description about zero size record components
27187 Note on new >= and <= warnings for -gnatwc
27188 Document that equal sign after -gnatm is optional.
27189 Note that strip is working fine on DLL built with a Library
27190 Project. The restriction apply only to DLL built with gnatdll.
27191 Update section about the way to debug a DLL.
27192 Update information about the DLL convention.
27193 Document -C switch for gnatprep
27194 Document new attribute Library_ALI_Dir
27195 Update elaboration doc to include implicit Elaborate pragmas now
27196 generated for subprogram instantiations.
27197 Document limitation on executable names that include spaces for --GCC,
27198 --GNATBIND, and --GNATLINK switches.
27199 Document that -w causes -gnatws to be added at start of gcc switches
27200
27201 * gnat_rm.texi: Document that -mieee is needed for generating infinite
27202 and NaN values in case of overflow on machines that are not fully
27203 compliant with the IEEE floating-point standard.
27204 Create a section describing the set of compiler options needed for
27205 strict compliance with the Ada 95 Reference Manual.
27206 Add documentation for pragma Obsolescent applied to a package
27207 Clarify potential issues of mixed language programs related to the
27208 I/O buffering enabling in the elaboration of the GNAT runtime.
27209 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
27210 This documentation only patch adds extra documentsion for pragma
27211 Restrictions (No_Elaboration_Code), explaining why it is not possible
27212 to document this restriction in terms of allowed source constructs.
27213 Document string literal form of pragma Warnings
27214 Document new attribute Library_ALI_Dir
27215 Add documentation on stable attributes in project files that was missing
27216
27217 * gnat-style.texi: Indicate that paragraphs within a single comment
27218 should be separated by empty comment lines
27219
27220 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
27221 /05 respectively)
27222
27223 * bindusg.adb: Minor cleanup, put -m before -M for consistency
27224
27225 2005-11-14 Robert Dewar <dewar@adacore.com>
27226
27227 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
27228 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
27229 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
27230 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
27231 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
27232 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
27233 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27234 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
27235 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
27236 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27237 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
27238 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
27239 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
27240 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
27241 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
27242 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
27243 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
27244 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
27245 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
27246 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
27247 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
27248 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
27249 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
27250 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
27251 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
27252 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
27253 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
27254 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
27255 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
27256 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
27257 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
27258 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
27259 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
27260 system-interix.ads, system-solaris-sparc.ads,
27261 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
27262 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
27263 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
27264 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
27265 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
27266 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
27267 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
27268 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
27269 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
27270 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
27271 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
27272 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
27273 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
27274 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
27275 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
27276 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
27277 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
27278 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
27279 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
27280 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
27281 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
27282 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
27283 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
27284 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
27285 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
27286 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
27287 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
27288 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
27289 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
27290 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
27291 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
27292 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
27293 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
27294 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
27295 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
27296 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
27297 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
27298 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
27299 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
27300 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
27301 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
27302 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
27303 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
27304 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
27305 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
27306 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
27307 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
27308 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
27309 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
27310 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
27311 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
27312 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
27313 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
27314 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
27315 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
27316 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
27317 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
27318 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
27319 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
27320 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
27321 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
27322 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
27323 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
27324 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
27325 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
27326 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
27327 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
27328 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
27329 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
27330 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
27331 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
27332 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
27333 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
27334 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
27335 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
27336 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
27337 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
27338 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
27339 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
27340 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
27341 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
27342 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
27343 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
27344 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
27345 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
27346 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
27347 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
27348 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
27349 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
27350 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
27351 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
27352 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
27353 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
27354 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
27355 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
27356 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
27357 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
27358 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
27359 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
27360 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
27361 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
27362 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
27363 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
27364 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
27365 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
27366 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
27367 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
27368 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
27369 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
27370 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
27371 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
27372 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
27373 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
27374 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
27375 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
27376 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
27377 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
27378 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
27379 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
27380 a-numaux-darwin.ads, a-numaux-darwin.adb,
27381 a-swuwha.ads, a-stunha.ads: Minor reformatting
27382
27383 2005-11-14 Robert Dewar <dewar@adacore.com>
27384
27385 PR ada/18434
27386 * osint-m.adb: Add pragma Elaborate_All for Osint
27387
27388 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
27389
27390 PR ada/23995
27391 * trans.c (call_to_gnu): Restore statement lost in translation.
27392
27393 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
27394
27395 * init.c: Use the Linux-specific section for the IA-64/Linux target.
27396 (__gnat_adjust_context_for_raise): Add conditional code so that the
27397 IA-64 is also supported.
27398
27399 2005-11-03 James E Wilson <wilson@specifix.com>
27400
27401 PR ada/23427
27402 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
27403 TREE_OVERFLOW check.
27404
27405 2005-09-21 Olivier Hainque <hainque@adacore.com>
27406
27407 PR ada/22418
27408 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
27409 as we create them to store a size in bits.
27410
27411 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
27412
27413 PR ada/21937
27414 PR ada/22328
27415 PR ada/22381
27416 PR ada/22383
27417 PR ada/22419
27418 PR ada/22420
27419 * utils2.c (build_return_expr): New helper function.
27420 * gigi.h (build_return_expr): Declare it.
27421 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
27422 of manually building the RETURN_EXPR tree.
27423 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
27424 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
27425 build_binary_op for the "target pointer" case. Use build_return_expr
27426 instead of manually building the RETURN_EXPR tree.
27427
27428 2005-09-16 Laurent Guerby <laurent@guerby.net>
27429
27430 PR ada/23788
27431 * s-tpinop.ads: Make this unit Preelaborate.
27432
27433 2005-09-16 Andreas Jaeger <aj@suse.de>
27434
27435 * socket.c: Add string.h for memcpy.
27436
27437 2005-09-05 Arnaud Charlet <charlet@adacore.com>
27438
27439 * dec-io.ads, dec-io.adb: Removed, no longer used.
27440
27441 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27442
27443 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
27444
27445 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
27446 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
27447 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
27448 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
27449 dependent units are Preelaborate.
27450 (Initialize): Call Interrupt_Managemeent.Initialize and
27451 OS_Primitives.Initialize to ensure proper initialization of this unit.
27452 Remove use of System.Soft_Links
27453 Make this unit Preelaborate.
27454
27455 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
27456 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
27457 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
27458 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
27459 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
27460 s-tratas.ads, s-tasinf.ads: Minor reformatting.
27461 Add pragma Preelaborate, since these packages are suitable for this
27462 categorization.
27463 Update comments.
27464
27465 * s-traent-vms.ads, s-intman-dummy.adb,
27466 s-taprop-dummy.adb: Make this unit Preelaborate.
27467
27468 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
27469 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
27470 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
27471 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
27472 s-intman-solaris.adb, s-intman-irix-athread.adb,
27473 s-intman-irix.adb: Mark this unit Preelaborate.
27474 (Initialize): New procedure.
27475 Update comments.
27476
27477 * s-taspri-linux.ads: Removed.
27478
27479 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
27480 as done by other implementations (e.g. posix).
27481
27482 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
27483 responsible for deferring abort.
27484 Mark this unit Preelaborate.
27485
27486 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
27487 proper initialization of the tasking run-time.
27488
27489 * s-tasdeb.ads: Mark this unit Preelaborate.
27490 (Known_Tasks): Add explicit default value to avoid elaboration code.
27491
27492 * s-inmaop-vms.adb (Elaboration code): Add call to
27493 Interrupt_Management.Initialize since the elaboration code depends on
27494 proper initialization of this package.
27495
27496 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
27497 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
27498 s-osprim-posix.adb: Make this unit Preelaborate.
27499
27500 * a-calend.adb: Add call to OS_Primitives.Initialize
27501
27502 * a-elchha.adb: Update use of Except.Id.Full_Name.
27503 Minor reformatting.
27504 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
27505
27506 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
27507 Move with clauses outside Warnings Off now that dependent units are
27508 Preelaborate.
27509 Use raise xxx with "..."; Ada 2005 form.
27510
27511 * a-taside.ads, a-taside.adb:
27512 Remove some dependencies, to make it easier to make this unit truly
27513 Preelaborate.
27514 Rewrite some code to be conformant with Preelaborate rules.
27515
27516 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
27517 marked Preelaborate in the future.
27518
27519 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
27520 these units Preelaborate.
27521
27522 * s-exctab.adb: Update use of Except.Id.Full_Name.
27523
27524 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
27525 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
27526 Set_Exc_Stack_Addr): Removed, no longer used.
27527 Remove reference to *Machine_State_Addr*, no longer needed.
27528
27529 * s-stalib.ads: Mark this unit as Preelaborate[_05].
27530 (Exception_Data): Full_Name is now a System.Address so that this unit
27531 can be made Preelaborate.
27532 Clean up/simplify code thanks to Full_Name being a System.Address.
27533 Remove obsolete pragma Suppress (All_Checks), no longer needed.
27534
27535 * s-taskin.ads, s-taskin.adb:
27536 Move with clauses outside Warnings Off now that dependent units are
27537 Preelaborate.
27538 Make this unit Preelaborate.
27539 (Initialize): New proceduure, replace elaboration code and makes the
27540 set up of the tasking run-time cleaner.
27541 (Detect_Blocking): Now a function instead of a deferred boolean, to
27542 obey Preelaborate rules.
27543
27544 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
27545 soft links, no longer used.
27546
27547 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
27548 packages are suitable for this categorization.
27549
27550 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
27551 since we compile run-time sources in Ada 2005 mode.
27552 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
27553 avoid having s-taprop*.adb depend on s-soflin and to avoid code
27554 duplication.
27555 Remove reference to *Machine_State_Addr*, no longer needed.
27556
27557 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27558
27559 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
27560 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
27561 Remove reference to System.Exceptions.
27562
27563 * s-mastop-x86.adb: Removed, no longer used.
27564
27565 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
27566
27567 * a-excach.adb: Minor reformatting.
27568
27569 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
27570 instead fix new warnings that were hidden by this change.
27571 (AAA, ZZZ): Removed, replaced by...
27572 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
27573 are used instead of constants, to help make Ada.Exception truly
27574 preelaborate.
27575 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
27576 Raise_Storage_Error): File is now a System.Address, to simplify code.
27577 (Elab code): Removed, no longer used.
27578 (Null_Occurrence): Remove Warnings Off and make this construct
27579 preelaborate.
27580 Remove code related to front-end zero cost exception handling, since
27581 it is no longer used.
27582 Remove -gnatL/-gnatZ switches.
27583
27584 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
27585 Update use of Except.Msg.
27586
27587 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
27588 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
27589 to front-end zero cost exception handling, since it is no longer used.
27590 Remove -gnatL/-gnatZ switches.
27591
27592 * lib-writ.ads: Minor reformatting
27593 Remove doc of UX
27594
27595 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
27596
27597 * Make-lang.in: Remove references to s-except.ads
27598
27599 * s-except.ads: Removed, no longer used.
27600
27601 * s-mastop.ads, s-mastop.adb:
27602 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
27603 Remove reference to System.Exceptions.
27604
27605 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
27606 switch-b.adb: Remove code related to front-end zero cost exception
27607 handling, since it is no longer used.
27608 Remove -gnatL/-gnatZ switches.
27609
27610 2005-09-01 Robert Dewar <dewar@adacore.com>
27611 Gary Dismukes <dismukes@adacore.com>
27612 Javier Miranda <miranda@adacore.com>
27613
27614 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
27615 type by valid test and generate warning.
27616 (Tagged_Membership): Generate call to the run-time
27617 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
27618 Change formal name Subtype_Mark to Result_Definition in several calls to
27619 Make_Function_Specification.
27620 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
27621 check for proper accessibility of the operand of a class-wide allocator.
27622 The check can be left out if checks are suppressed or if the expression
27623 has a specific tagged type whose level is known to be safe.
27624
27625 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
27626 generates the run-time check associated with null-excluding entities.
27627 (Expand_N_Return_Statement): Add tests to determine if the accessibility
27628 check on the level of the return expression of a class-wide function
27629 can be elided. The check usually isn't needed if the expression has a
27630 specific type (unless it's a conversion or a formal parameter). Also
27631 add a test for whether accessibility checks are suppressed. Augment
27632 the comments to describe the conditions for performing the check.
27633
27634 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
27635 Javier Miranda <miranda@adacore.com>
27636 Gary Dismukes <dismukes@adacore.com>
27637 Ed Schonberg <schonberg@adacore.com>
27638
27639 * a-tags.adb (IW_Membership): Give support to
27640 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
27641 subprogram has been extended to look for the tag in the ancestors tag
27642 table.
27643 Update the structure of the GNAT Dispatch Table to reflect the
27644 additional two tables used in dispatching selects.
27645 Introduce appropriate array types and record components in
27646 Type_Specific_Data to reflect the two tables.
27647 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
27648 the TSD of a tag, indexed by position.
27649 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
27650 operation kind in the TSD of a tag, indexed by position.
27651
27652 * a-tags.ads: Introduce an enumeration type to capture different
27653 primitive operation kinds. Define a constant reflecting the number of
27654 predefined primitive operations.
27655 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
27656 of an entry wrapper.
27657 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
27658 callable entity of a primitive operation.
27659
27660 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
27661 primitive operations used in dispatching selects for limited
27662 interfaces, limited tagged, task and protected types what implement a
27663 limited interface.
27664 (Freeze_Type): Generate the bodies of the primitive operations used in
27665 dispatching selects for limited tagged, task and protected types that
27666 implement a limited interface. Generate statements to populate the two
27667 auxiliary tables used for dispatching in select statements.
27668 (Freeze_Record_Type): Add call to initialize the dispatch table entries
27669 associated with predefined interface primitive operations.
27670 (Build_Dcheck_Function): Change Set_Subtype_Mark to
27671 Set_Result_Definition.
27672 (Build_Variant_Record_Equality): Change Subtype_Mark to
27673 Result_Definition.
27674 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
27675 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
27676 (Build_Assignment): Simplify the code that adds the run-time-check.
27677 (Expand_N_Object_Declaration): Code cleanup.
27678
27679 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
27680 entries when there is a protected type that implements a limited
27681 interface.
27682
27683 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
27684 common routines used in expansion of dispatching selects.
27685 (Add_Private_Declarations): Select the appropriate protection type when
27686 there is a protected type that implements a limited interface.
27687 (Build_Parameter_Block): Generate a wrapped parameter block.
27688 (Build_Protected_Subprogram_Body): Select the appropriate type for
27689 locking entries when there is a protected type that implements a
27690 limited interface.
27691 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
27692 classified as entry wrappers.
27693 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
27694 asynchronous selects.
27695 (Expand_N_Conditional_Entry_Call): Add support for expansion of
27696 dispatching conditional selects.
27697 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
27698 protection when there is a protected type that implements limited
27699 interfaces.
27700 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
27701 timed selects.
27702 (Extract_Dispatching_Call): Extract the entity of the name of a
27703 dispatching call, the object parameter, actual parameters and
27704 corresponding formals.
27705 (Make_Initialize_Protection): Correct logic of protection initialization
27706 when there is a protected type that implements a limited interface.
27707 (Parameter_Block_Pack): Populate a wrapped parameter block with the
27708 values of actual parameters.
27709 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
27710 block and assign them to the original actual parameters.
27711
27712 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
27713 (Build_Protected_Sub_Specification): Change the type and name of the
27714 last formal to account for the increased variety of protection modes.
27715
27716 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
27717 entities. Used to save the value of the Is_Hidden attribute when the
27718 limited-view is installed.
27719 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
27720 the attribute of procedures classified as entry wrappers.
27721 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
27722 entity of a primitive wrapper.
27723 (Write_Entity_Flags): Output the name and value of the
27724 Is_Primitive_Wrapper attribute.
27725 (Write_Field27_Name): Output the name and entity of the field Wrapped_
27726 Entity.
27727 (Underlying_Type): If we have an incomplete entity that comes from
27728 the limited view then we return the Underlying_Type of its non-limited
27729 view if it is already available.
27730 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
27731 including operators.
27732 (Write_Field26_Name): Add entry for Overridden_Operation
27733 (Overridden_Operation): New attribute of functions and procedures.
27734
27735 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
27736 predefined position in the dispatch table for the primitive operations
27737 used in dispatching selects.
27738 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
27739 predefined primitive operations and replace it with
27740 Default_Prim_Op_Count.
27741 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
27742 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
27743 the names of the generated primitive operations used in dispatching
27744 selects.
27745 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
27746 case of abstract interface types. They will be inherit by the objects
27747 implementing the interface.
27748 (Make_DT): There is no need to inherit the dispatch table of the
27749 ancestor interface for the elaboration of abstract interface types.
27750 The dispatch table will be inherited by the object implementing the
27751 interface.
27752 (Copy_Secondary_DTs): Add documentation.
27753 (Validate_Position): Improve this static check in case of
27754 aliased subprograms because aliased subprograms must have
27755 the same position.
27756 (Init_Predefined_Interface_Primitives): New subprogram that initializes
27757 the entries associated with predefined primitives of all the secondary
27758 dispatch tables.
27759 (Build_Anonymous_Access_Type): Removed.
27760 (Expand_Interface_Actuals): With the previous cleanup there is no need
27761 to build an anonymous access type. This allows further cleanup in the
27762 code generated by the expander.
27763 (Expand_Interface_Conversion): If the actual is an access type then
27764 build an internal function to handle the displacement. If the actual
27765 is null this function returns null because no displacement is
27766 required; otherwise performs a type conversion that will be
27767 expanded in the code that returns the value of the displaced actual.
27768 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
27769 conversions that have no effect in the generated code because no
27770 displacement is required. Code cleanup; use local variables to
27771 avoid repeated calls to the subprogram directly_designated_type().
27772
27773 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
27774 Classify the primitive operations used in dispatching selects as
27775 predefined.
27776 (Implements_Limited_Interface): Determine whether some type either
27777 directly implements a limited interface or extends a type that
27778 implements a limited interface.
27779 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
27780 (Expand_Subtype_From_Expr): Do not build actual subtype if the
27781 expression is limited.
27782 (Find_Interface_Tag): Add code to handle class-wide types and
27783 entities from the limited-view.
27784
27785 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
27786 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
27787 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
27788 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
27789 Set_Prim_Op_Kind.
27790
27791 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
27792 of procedure name or prefix that appears as a trigger in a triggering
27793 alternative.
27794
27795 * uintp.ads: Introduce constants Uint_11 and Uint_13.
27796
27797 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27798
27799 * s-tataat.adb, a-tasatt.adb:
27800 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
27801
27802 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
27803 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
27804 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
27805 longer used.
27806
27807 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27808 Jose Ruiz <ruiz@adacore.com>
27809
27810 * s-taprop-vxworks.adb:
27811 Move with clauses outside Warnings Off now that dependent units are
27812 Preelaborate.
27813 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
27814 initialization of this unit.
27815 (Specific): Add new procedures Initialize and Delete so that this
27816 package can be used for VxWorks 5.x and 6.x
27817 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
27818 differences between VxWorks 5.x and 6.x
27819 Minor reformatting.
27820 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
27821 caller.
27822 Use only Preelaborate-compatible constructs.
27823
27824 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
27825 Primitives.Operations.
27826 (Delete, Initialize): New procedures.
27827
27828 * s-osinte-vxworks.adb: Body used to handle differences between
27829 VxWorks 5.x and 6.x
27830 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
27831
27832 * s-osinte-vxworks.ads: Minor reformatting.
27833 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
27834 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
27835 and 6.
27836 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
27837 between Vxworks 5 and 6.
27838 (taskLock, taskUnlock): Removeed, no longer used.
27839
27840 * adaint.c: The wait.h header is not located in the sys directory on
27841 VxWorks when using RTPs.
27842 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
27843 using RTPs.
27844 (__gnat_dup): dup is available on Vxworks when using RTPs.
27845 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
27846
27847 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
27848
27849 * expect.c: The wait.h header is not located in the sys directory on
27850 VxWorks when using RTPs.
27851
27852 2005-09-01 Thomas Quinot <quinot@adacore.com>
27853
27854 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
27855
27856 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
27857
27858 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
27859 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27860 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
27861 g-soccon-freebsd.ads: Add new constants:
27862 IP_MULTICAST_IF
27863 SO_RCVTIMEO/SO_SNDTIMEO
27864 IOV_MAX
27865
27866 * gen-soccon.c:
27867 Move all target-specific file inclusions and macro definitions to
27868 gsocket.h, in order to ensure that any C code in socket.c will see a
27869 set of constants that is consistent with the contents of g-soccon.ads.
27870
27871 * gsocket.h: Code imported from gen-soccon.c:
27872 Move all target-specific file inclusions and macro definitions to
27873 gsocket.h, in order to ensure that any C code in socket.c will see a set
27874 of constants that is consistent with the contents of g-soccon.ads.
27875 This change also makes gen-soccon self-contained (removing dependencies
27876 upon GCC internal headers).
27877
27878 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
27879 iovecs at a time.
27880 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
27881
27882 * socket.c: Minor reformatting.
27883
27884 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27885 Thomas Quinot <quinot@adacore.com>
27886
27887 * fname-sf.adb, mlib-tgt.ads,
27888 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
27889 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
27890 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
27891 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
27892 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
27893 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
27894 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
27895 makegpr.adb: Remove redundant use_clauses.
27896
27897 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27898
27899 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
27900 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
27901 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
27902 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
27903 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
27904 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
27905 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
27906 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
27907 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27908 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
27909 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
27910 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
27911 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
27912 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
27913 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
27914 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
27915 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27916 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27917 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
27918 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
27919 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
27920 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
27921 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
27922 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
27923 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
27924 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
27925 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
27926 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
27927 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
27928 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
27929 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
27930 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
27931 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
27932 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
27933 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
27934 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
27935 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
27936 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
27937 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
27938 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
27939 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
27940 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
27941 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
27942 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
27943 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
27944 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
27945 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
27946 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
27947 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
27948 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
27949 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
27950 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
27951 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
27952 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
27953 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
27954 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
27955 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
27956 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
27957 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
27958 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
27959 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
27960 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
27961 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
27962 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
27963 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
27964 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
27965 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
27966 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
27967 and always use the no parameter form for consistency.
27968
27969 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
27970
27971 2005-09-01 Robert Dewar <dewar@adacore.com>
27972
27973 * binde.adb: Minor reformatting
27974 (Find_Elab_Order): Output warning if -p used with static elab order
27975
27976 2005-09-01 Robert Dewar <dewar@adacore.com>
27977
27978 * checks.adb (Check_Needed): New procedure, deals with removing checks
27979 based on analysis of short-circuited forms. Also generates warnings for
27980 improper use of non-short-circuited forms.
27981 Code clean ups.
27982
27983 2005-09-01 Robert Dewar <dewar@adacore.com>
27984
27985 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
27986 with 'Valid tests.
27987
27988 2005-09-01 Robert Dewar <dewar@adacore.com>
27989
27990 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
27991 spec.
27992 Implement new insertion char < (conditional warning)
27993 * errutil.adb, erroutc.adb: Implement new insertion char <
27994 (conditional warning).
27995 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
27996 (Error_Msg_Warn): New variable for < insertion char.
27997 * prj-nmsc.adb: Implement new errout insertion char < (conditional
27998 warning).
27999 (Check_For_Source): Change value of Source_Id only after the current
28000 source has been dealt with.
28001
28002 2005-09-01 Robert Dewar <dewar@adacore.com>
28003 Doug Rupp <rupp@adacore.com>
28004
28005 * exp_attr.adb: Handle vax fpt for 'Valid attribute
28006 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
28007 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
28008 (Valid_D, Valid_F, Valid_G): New functions
28009
28010 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28011 Hristian Kirtchev <kirtchev@adacore.com>
28012 Javier Miranda <miranda@adacore.com>
28013
28014 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
28015 from object notation, the original node is unanalyzed and carries no
28016 semantic information, so that accessiblity checks must be performed on
28017 the type of the actual itself.
28018 (Expand_N_Subprogram_Declaration): Change last actual parameter for
28019 compatibility with Build_Protected_Sub_Specification.
28020 (Check_Overriding_Inherited_Interfaces): Add suport to handle
28021 overloaded primitives.
28022 (Register_Interface_DT_Entry): Use the new name of the formal
28023 the the calls to Expand_Interface_Thunk
28024
28025 * exp_dbug.ads: Augment comments on encoding of protected types to
28026 include the generation of dispatching subprograms when the type
28027 implements at least one interface.
28028
28029 * lib.ads: Extend information in Load_Stack to include whether a given
28030 load comes from a Limited_With_Clause.
28031
28032 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
28033 whether a potential circularity is harmless, because it includes units
28034 loaded through a limited_with clause. Extends previous treatment which
28035 did not handle properly arbitrary combinations of limited and
28036 non-limited clauses.
28037
28038 2005-09-01 Nicolas Setton <setton@adacore.com>
28039
28040 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
28041 to be encoded as typ___XBLU_lowerbound__upperbound instead of
28042 typ___XB_lowerbound__upperbound.
28043
28044 2005-09-01 Thomas Quinot <quinot@adacore.com>
28045
28046 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
28047 dummy access formal for RACW/RAS TypeCode TSS.
28048 (Build_TypeCode_Call): Do not generate dummy null access actual for
28049 calls to the TypeCode TSS.
28050
28051 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28052
28053 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
28054 fully qualified name, to distinguish instances with the same local name.
28055
28056 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
28057 fully qualified.
28058
28059 2005-09-01 Robert Dewar <dewar@adacore.com>
28060
28061 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
28062 packed arrays.
28063
28064 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
28065
28066 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
28067 (Free): New deallocation procedure for filter elements
28068 (Close): Deallocate any existing filter for the concerned connection
28069
28070 2005-09-01 Laurent Pautet <pautet@adacore.com>
28071
28072 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
28073 position set is provided, we compute one in order to reduce the maximum
28074 length of the keys. This computation first selects a character
28075 position between 1 and the minimum length of the keys in order to
28076 avoid reducing one of the keys to an empty string.
28077 (Initialize, Compute): When the ratio V to K is too low, the algorithm
28078 does not converge. The initialization procedure now comes with a
28079 maximum number of iterations such that when exceeded, an exception is
28080 raised in Compute. The user can initialize this ratio to another value
28081 and try again
28082 Reformating and updated headers.
28083
28084 2005-09-01 Javier Miranda <miranda@adacore.com>
28085
28086 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
28087 that given an entity T creates and returns an Itype that duplicates the
28088 contents of T. The returned Itype has the null-exclusion
28089 attribute set to True, and its Etype attribute references T
28090 to keep the association between the two entities.
28091 Update copyright notice
28092
28093 * sem_aggr.adb (Check_Can_Never_Be_Null,
28094 Aggregate_Constraint_Checks, Resolve_Aggregate,
28095 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
28096
28097 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
28098
28099 2005-09-01 Gary Dismukes <dismukes@adacore.com>
28100 Robert Dewar <dewar@adacore.com>
28101 Hristian Kirtchev <kirtchev@adacore.com>
28102
28103 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
28104 Result_Definition.
28105
28106 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
28107 function specs.
28108 Call Set_Result_Definition instead of Set_Subtype_Mark.
28109 (P_Subprogram_Specification): Add parsing of anonymous access result
28110 plus null exclusions. Call Set_Result_Definition instead of
28111 Set_Subtype_Mark.
28112
28113 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
28114 (P_Access_Type_Definition): Add parsing for an anonymous access result
28115 subtype, plus parsing for null exclusions. Call Set_Result_Definition
28116 instead of Set_Subtype_Mark.
28117
28118 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
28119 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
28120 (Result_Definition): New function for N_Function_Specifications.
28121 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
28122 N_Function_Specification.
28123 (Set_Null_Exclusion_Present): Allow this flag for
28124 N_Function_Specification.
28125 (Set_Result_Definition): New procedure for N_Function_Specifications.
28126 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
28127 and N_Function_Specification.
28128
28129 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
28130 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
28131 Add support for LIMITED NEW for Ada 2005 AI-419
28132 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
28133 syntax for anonymous access results.
28134 Replace Subtype_Mark field by Result_Definition in
28135 N_Function_Specification and N_Access_Definition specs.
28136 Add Null_Exclusion_Present to spec of N_Function_Specification.
28137 (Result_Definition): New function for N_Function_Specification and
28138 N_Access_Function_Definition.
28139 (Set_Result_Definition): New procedure for N_Function_Specification and
28140 N_Access_Function_Definition.
28141
28142 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
28143 Result_Definition for cases of N_Access_Function_Definition and
28144 N_Function_Specification.
28145 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
28146
28147 2005-09-01 Vincent Celier <celier@adacore.com>
28148
28149 * lib-writ.adb: Update Copyright notice
28150 (Write_With_Lines): On platforms where file names are case-insensitive,
28151 record the file names in lower case.
28152 (Write_ALI): For D lines, on platforms where file names are
28153 case-insensitive, record the file names in lower case.
28154
28155 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28156 Emmanuel Briot <briot@adacore.com>
28157
28158 * lib-xref.adb (Output_Overridden_Op): Display information on
28159 overridden operation.
28160
28161 * lib-xref.ads: Add documentation on overridden operations.
28162
28163 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
28164 information.
28165
28166 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
28167 overriding entity information.
28168
28169 2005-09-01 Vincent Celier <celier@adacore.com>
28170
28171 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
28172 including those that are inherited.
28173
28174 2005-09-01 Robert Dewar <dewar@adacore.com>
28175
28176 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
28177
28178 * par-prag.adb: Implement new pragma Debug_Policy
28179
28180 * sem_prag.adb Implement new pragma Debug_Policy
28181 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
28182 Component_Size attribute specification. Give warning for ignored pragma
28183 Pack.
28184
28185 * snames.h, snames.ads, snames.adb: Introduce entries in
28186 Preset_Names for Name_Disp_Asynchronous_Select,
28187 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
28188 Name_Disp_Timed_Select.
28189 New pragma Debug_Policy
28190
28191 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
28192 explicitly.
28193 Switch -gnata also sets Debug_Pragmas_Enabled
28194
28195 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
28196 handle an explicit -gnata when compiling predefined files.
28197
28198 2005-09-01 Vincent Celier <celier@adacore.com>
28199
28200 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
28201 directories of projects that have no Ada sources.
28202
28203 2005-09-01 Robert Dewar <dewar@adacore.com>
28204
28205 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
28206 (makes a difference for wide characters)
28207
28208 * widechar.adb, widechar.ads:
28209 Add Wide_Char_Byte_Count feature to count chars vs bytes
28210
28211 2005-09-01 Thomas Quinot <quinot@adacore.com>
28212 Ed Schonberg <schonberg@adacore.com>
28213 Robert Dewar <dewar@adacore.com>
28214
28215 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
28216 'Address attribute reference with an overloaded prefix, use the
28217 location of the prefix (not the location of the attribute reference) as
28218 the error location.
28219 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
28220 a function renaming thereof, is a valid prefix for 'Size (where it is
28221 intepreted as a function call).
28222 (Statically_Denotes_Entity): New predicate to determine whether the
28223 prefix of an array attribute can be considered static.
28224
28225 PR ada/9087
28226 (Eval_Attr): Fix failure to evaluate Component_Size for
28227 unconstrained arrays (resulted in wrong value in packed case, since
28228 back end cannot handle this case)
28229
28230 2005-09-01 Robert Dewar <dewar@adacore.com>
28231
28232 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
28233 error msgs for most common cases.
28234 Use new errout insertion char < (conditional warning)
28235
28236 2005-09-01 Javier Miranda <miranda@adacore.com>
28237 Ed Schonberg <schonberg@adacore.com>
28238
28239 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
28240 become local to the whole package.
28241 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
28242 the package was already analyzed the new algorithm "replaces" the
28243 real entities by the shadow ones. This is required to ensure that
28244 the order of these entities in the homonym chains does not change;
28245 otherwise we can have undefined references at linking time because
28246 in case of conflicts the external name of the entities will have
28247 a suffix that depends on the order of the entities in the chain.
28248 (Remove_Limited_With_Clause): Complementary code that completes the
28249 new algorithm and replaces the shadow entities by the real ones.
28250 (Install_Limited_Withed_Unit): When unchaining entities before the
28251 installation of the shadow entities, only regular entities of the
28252 public part must be taken into account. This is required to
28253 keep this routine in synch with the work done by Remove_Limited_
28254 With_Clause
28255 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
28256 even if unit is analyzed, because the analysis of the unit is
28257 idempotent in any case, and the limited view of the unit may have to
28258 be installed for proper visibility.
28259 (Expand_Limited_With_Clause): Even if the unit in the implicit
28260 with_clause has been analyzed already, a limited view of the package
28261 must be built for the current context, if it does not exist yet.
28262
28263 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28264 Javier Miranda <miranda@adacore.com>
28265 Gary Dismukes <dismukes@adacore.com>
28266
28267 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
28268 defining entity for the instance body, make a new defining identifier
28269 rather than copying the entity of the spec, to prevent accidental
28270 sharing of the entity list.
28271 (Check_Private_View): When exchanging views of private types, build the
28272 list of exchanged views as a stack, to ensure that on exit the exchanges
28273 are undone in the proper order.
28274 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
28275 Restore the compilation environment in case of instantiation_error.
28276 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
28277 for an anonymous access result.
28278 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
28279 (Formal_Entity): Handle properly the case of a formal package that
28280 denotes a generic package renaming.
28281
28282 2005-09-01 Thomas Quinot <quinot@adacore.com>
28283
28284 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
28285 clause if the array aggregate is surrounded by parentheses.
28286
28287 2005-09-01 Cyrille Comar <comar@adacore.com>
28288 Gary Dismukes <dismukes@adacore.com>
28289 Ed Schonberg <schonberg@adacore.com>
28290 Javier Miranda <miranda@adacore.com>
28291
28292 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
28293 underlying type
28294 to check if a type is Constrained in cases related to code generation
28295 (rather than semantic checking) since otherwise we do not generate
28296 similar code for mutable private types depending if their
28297 discriminants are visible or not.
28298 (Check_Abstract_Overriding): Do not complain about failure to override
28299 the primitive operations used in dispatching selects since they will
28300 always be overriden at the freeze point of the type.
28301 (Access_Definition): Separate out handling for resetting the scope
28302 of an anonymous access function result type. Retrieve the scope
28303 of the associated function rather than using Current_Scope, which
28304 does not have a consistent value (depends on whether we're in the
28305 middle of analyzing formal parameters). Add ??? comment about
28306 finding a cleaner way to handle the special cases of scope setting.
28307 (Process_Incomplete_Dependents): A protected operation is never a
28308 dispatching operation (only its wrapper may be).
28309 (Build_Derived_Record_Type): In case of tagged private types that
28310 implement interfaces add derivation of predefined primitive
28311 operations.
28312 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
28313 by two parameters that are used in case of derivation from abstract
28314 interface types: No_Predefined_Prims is used to avoid the derivation
28315 of predefined primitives from the interface, and Predefined
28316 Prims_Only is used to complete the derivation predefined primitives
28317 in case of private tagged types implementing interfaces.
28318 Fix typo in comments
28319 (Find_Interface_In_Descendant): Protect the frontend against
28320 wrong code with large circularity chains.
28321 (Is_Private_Overriding): Add support for entities overriding interface
28322 subprograms. The test failed because Entities associated with overriden
28323 interface subprograms are always marked as hidden (and used to build
28324 the secondary dispatch table); in this case the overriden entity is
28325 available through the field abstract_interface_alias (cf. override_
28326 dispatching_operation)
28327 (Access_Definition): Set the scope of the type to Current_Scope for the
28328 case of a function with an anonymous access result type.
28329 (Access_Subprogram_Declaration): Handle creation of the type entity for
28330 an access-to-function type with an anonymous access result.
28331 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
28332 in handling for N_Access_Function_Definition.
28333 (Analyze_Subtype_Declaration): Modify the text of error message.
28334 (Derived_Type_Declaration): Modify the text of error message.
28335 (Process_Subtype): Modify the text of error message plus cleanup
28336 of one redundant error message.
28337 (Analyze_Component_Declaration): Code cleanup.
28338 (Analyze_Object_Declaration): Code cleanup.
28339 (Analyze_Subtype_Declaration): Propagate the null-exclusion
28340 attribute in case of access types. Code cleanup.
28341 (Array_Type_Declaration): Code cleanup.
28342 (Process_Discriminants): Create the new null-excluding itype
28343 if required. Code cleanup.
28344 (Process_Subtype): Create the new null-excluding itype if
28345 required. Code cleanup.
28346 (Build_Derived_Record_Type): Code cleanup to avoid calling
28347 twice the subprogram derive_subprograms in case of private
28348 types that implement interfaces. In this particular case the
28349 subprogram Complete_Subprograms_Derivation already does the
28350 job associated with the second call.
28351
28352 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
28353 conversion to the full view when generating an operation for a
28354 discriminant whose type may currently be private.
28355
28356 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28357 Javier Miranda <miranda@adacore.com>
28358
28359 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
28360 V (Obj.F), the rewriting does not involve the indexed component, but
28361 only the selected component itself.
28362 Do not apply the transformation if the analyzed node is an actual of a
28363 call to another subprogram.
28364 (Complete_Object_Operation): Retain the entity of the
28365 dispatching operation in the selector of the rewritten node. The
28366 entity will be used in the expansion of dispatching selects.
28367 (Analyze_One_Call): Improve location of the error message associated
28368 with interface.
28369 (Analyze_Selected_Component): No need to resolve prefix when it is a
28370 function call, resolution is done when parent node is resolved, as
28371 usual.
28372 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
28373 when attempting to resolve a call transformed from its object notation.
28374 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
28375 of the argument list for each interpretation of the operation.
28376 (Try_Object_Operation): The designated type of an access parameter may
28377 be an incomplete type obtained through a limited_with clause, in which
28378 case the primitive operations of the type are retrieved from its full
28379 view.
28380 (Analyze_Call): If this is an indirect call, and the return type of the
28381 access_to_subprogram is incomplete, use its full view if available.
28382
28383 2005-09-01 Javier Miranda <miranda@adacore.com>
28384 Gary Dismukes <dismukes@adacore.com>
28385
28386 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
28387 access types the null-exclusion and access-to-constant attributes must
28388 also match.
28389 (Analyze_Return_Statement): When the result type is an anonymous access
28390 type, apply a conversion of the return expression to the access type
28391 to ensure that appropriate accessibility checks are performed.
28392 (Analyze_Return_Type): For the case of an anonymous access result type,
28393 generate the Itype and set Is_Local_Anonymous_Access on the type.
28394 Add ??? placeholder for check to disallow returning a limited object
28395 in Ada 2005 unless it's an aggregate or a result of a function call.
28396 Change calls from Subtype_Mark to Result_Definition.
28397 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
28398 Result_Definition in call to Make_Function_Specification.
28399 (Build_Body_To_Inline): Change Set_Subtype_Mark to
28400 Set_Result_Definition.
28401 (Make_Inequality_Operator): Change formal Subtype_Mark to
28402 Result_Definition in call to Make_Function_Specification.
28403 (Process_Formals): Create the new null-excluding itype if required.
28404 (New_Overloaded_Entity): For an entity overriding an interface primitive
28405 check if the entity also covers other abstract subprograms in the same
28406 scope. This is required to handle the general case, that is, overriding
28407 other interface primitives and overriding abstract subprograms inherited
28408 from some abstract ancestor type.
28409 (New_Overloaded_Entity): For an overriding entity that comes from
28410 source, note the operation that it overrides.
28411 (Check_Conformance, Type_Conformant): Addition of one new formal
28412 to skip controlling formals in the analysis. This is used to
28413 handle overloading of abstract interfaces.
28414 (Base_Types_Match): Add missing case for types imported from
28415 limited-with clauses
28416 (New_Overloaded_Entity): Add barrier to protect the use of
28417 the "alias" attribute.
28418
28419 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28420
28421 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
28422 verify that the procedure and the entry are mode conformant.
28423 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
28424 as a different operator, which is often a cut-and-paste error.
28425
28426 2005-09-01 Javier Miranda <miranda@adacore.com>
28427 Ed Schonberg <schonberg@adacore.com>
28428
28429 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
28430 used in controlling parameters exclude null because it is necessary to
28431 read the tag to dispatch, and null has no tag.
28432 (Override_Dispatching_Operation): If the previous operation is inherited
28433 from an interface, it becomes hidden and does not participate in later
28434 name resolution.
28435
28436 2005-09-01 Javier Miranda <miranda@adacore.com>
28437 Ed Schonberg <schonberg@adacore.com>
28438 Gary Dismukes <dismukes@adacore.com>
28439
28440 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
28441 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
28442 the expander will generate the corresponding run-time check to evaluate
28443 the expression.
28444 (Resolve_Call): Check for legal type of procedure name or prefix that
28445 appears as a trigger in a triggering alternative.
28446 (Valid_Conversion): If expression is ambiguous and the context involves
28447 an extension of System, remove System.Address interpretations.
28448 (Resolve_Qualified_Expression): Reject the case of a specific-type
28449 qualification applied to a class-wide argument. Enhance comment
28450 to explain checking of Original_Node.
28451 (Resolve_Type_Conversion): The location of the error message was not
28452 general enough to handle the general case and hence it has been removed.
28453 In addition, this patch improves the text of the message.
28454 (Resolve_Type_Conversion): Add missing support for access to interface
28455 types.
28456 (Resolve_Type_Conversion): If the target is a class-wide interface type,
28457 do not expand if the expression is the actual in a call, because proper
28458 expansion will take place when the call itself is expanded.
28459 (Resolve_Allocator): If the context is an unchecked conversion, the
28460 allocator inherits its storage pool, if any, from the target type of
28461 the conversion.
28462
28463 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28464 Javier Miranda <miranda@adacore.com>
28465
28466 * sem_type.adb (Add_One_Interp): If a candidate operation is an
28467 inherited interface operation that has an implementation, use the
28468 implementation to avoid spurious ambiguities.
28469 (Interface_Present_In_Ancestor): In case of concurrent types we can't
28470 use the Corresponding_Record_Typ attribute to look for the interface
28471 because it is set by the expander (and hence it is not always
28472 available). For this reason we traverse the list of interfaces
28473 (available in the parent of the concurrent type).
28474 (Interface_Present_In_Ancestor): Handle entities from the limited view
28475
28476 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28477
28478 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
28479 from the list of required components.
28480 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
28481 primitive procedure of a limited interface with a controlling first
28482 parameter.
28483 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
28484 of an entry.
28485 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
28486 capture if it is generated in the second operand of a short-circuit
28487 operation.
28488 Do not capture values for variables with address clauses.
28489 (Is_Object_Reference): Treat a function call as an object reference only
28490 if its type is not Standard_Void_Type.
28491
28492 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28493
28494 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
28495 to a variable that is statically known to be constant.
28496
28497 2005-09-01 Geert Bosch <bosch@adacore.com>
28498 Robert Dewar <dewar@adacore.com>
28499
28500 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
28501 (VAXGF_Safe_First): Idem.
28502
28503 2005-09-01 Robert Dewar <dewar@adacore.com>
28504 Arnaud Charlet <charlet@adacore.com>
28505
28506 * g-dirope.ads: Minor reformatting
28507 Document that bounds of result of Base_Name match the input index
28508 positions.
28509 Add documentation on environment variable syntax for Expand_Path
28510
28511 * gnat_ugn.texi: Update documentation to include mention of -m switches
28512 Document new treatment of wide characters in max line length
28513 style check.
28514 Remove -gnatL/-gnatZ switches, no longer used.
28515 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
28516 of -gnata switch.
28517
28518 * gnat_rm.texi: Add doc for two argument form of pragma
28519 Float_Representation.
28520 Add documentation for pragma No_Strict_Aliasing
28521 Add note that explicit component clause overrides pragma Pack.
28522 Add documentation of pragma Debug_Policy
28523
28524 2005-09-01 Matthew Heaney <heaney@adacore.com>
28525
28526 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
28527 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
28528 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
28529 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
28530 draft (Draft 13, August 2005) of Ada Amendment 1.
28531
28532 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28533
28534 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
28535 Note that the platform-specific version of g-soccon.ads for VMS is now
28536 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
28537 really is a package spec).
28538 Replace s-taspri-linux.ads by s-taspri-posix.ads
28539 Remove references to s-mastop-x86.adb
28540
28541 * system-vxworks-xscale.ads: Removed, no longer used.
28542 * s-vxwork-xscale.ads: Removed, no longer used.
28543
28544 2005-09-01 Robert Dewar <dewar@adacore.com>
28545
28546 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
28547 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
28548 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
28549 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
28550 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
28551 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
28552 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
28553 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
28554 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
28555 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
28556 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
28557 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
28558 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
28559 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
28560 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
28561 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
28562 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
28563 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
28564 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
28565 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
28566 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
28567
28568 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28569
28570 PR ada/23187
28571 * adaint.c
28572 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
28573
28574 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28575 Doug Rupp <rupp@adacore.com>
28576
28577 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
28578 when needed.
28579 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
28580 this code in the GNAT run-time.
28581
28582 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
28583
28584 PR ada/21053
28585 * init.c (__gnat_error_handler [many]): Mark "msg" as const
28586 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
28587
28588 (__gnat_inside_elab_final_code): Moved here from
28589 Standard_Library and only defined for the compiler.
28590 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
28591 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
28592 using RTPs because directly vectored Interrupt routines are not
28593 supported on this configuration.
28594 (getpid): Do not redefine this function on VxWorks when using RTPs
28595 because this primitive is well supported by the RTP libraries.
28596 (copy_msg): Correct the code that checks for buffer overflow.
28597 Discovered during code reading.
28598
28599 2005-08-29 Olivier Hainque <hainque@adacore.com>
28600
28601 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
28602 a library level mutable variable with an initializer, tell
28603 build_allocator to ignore the initializer's size. It may not be large
28604 enough for all the values that might be assigned to the variable later
28605 on.
28606
28607 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28608 Eric Botcazou <ebotcazou@adacore.com>
28609
28610 * trans.c: Protect < in error msg with quote
28611 Replace GCC_ZCX by Back_End_Exceptions.
28612 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
28613 has been sufficiently aligned in the record.
28614
28615 2005-08-15 James E. Wilson <wilson@specifix.com>
28616
28617 * system-linux-alpha.ads: Change ia64 to alpha.
28618
28619 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
28620
28621 * decl.c, utils.c: Fix comment typos.
28622
28623 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
28624
28625 * decl.c, init.c, initialize.c: Fix comment typos.
28626
28627 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
28628
28629 Make CONSTRUCTOR use VEC to store initializers.
28630 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
28631 CONSTRUCTOR_ELTS.
28632 * trans.c (extract_values): Likewise.
28633 * utils.c (convert, remove_conversions): Likewise.
28634 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
28635 gnat_build_constructor): Likewise.
28636
28637 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
28638
28639 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
28640 DECL_SECTION_NAME.
28641 (compare_field_bitpos): Likewise.
28642
28643 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
28644
28645 * utils.c (create_var_decl): Only set DECL_COMMON on
28646 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
28647 VAR_OR_FUNCTION_DECL_P.
28648
28649 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
28650
28651 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
28652 removed.
28653
28654 2005-07-07 Pascal Obry <obry@adacore.com>
28655
28656 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
28657 returned type on Windows.
28658
28659 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
28660 routine.
28661
28662 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
28663 exception in this case.
28664 Simplify the code as "Image (Image'Range)" = "Image".
28665
28666 2005-07-07 Vincent Celier <celier@adacore.com>
28667
28668 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
28669 the destructor/constructor attributes for <lib>final/<lib>init.
28670
28671 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
28672
28673 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
28674
28675 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
28676 type if the parameter is not passed by copy but reference by default.
28677
28678 2005-07-07 Javier Miranda <miranda@adacore.com>
28679
28680 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
28681 Reimplementation of the support for abstract interface types in order
28682 to leave the code more clear and easy to maintain.
28683
28684 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
28685 abstract interface types in order to leave the code clearer and easier
28686 to maintain.
28687
28688 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
28689 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
28690 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
28691 appropriate entry of the secondary dispatch table.
28692 (Make_DT): Add code to inherit the secondary dispatch tables of
28693 the ancestors.
28694
28695 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
28696 implementing both functionalities by means of a common routine, each
28697 routine has its own code.
28698
28699 2005-07-07 Javier Miranda <miranda@adacore.com>
28700
28701 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
28702
28703 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
28704 types:
28705 --
28706 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
28707 --
28708
28709 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
28710 use of tag incomplete types.
28711
28712 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
28713 give support to tagged incomplete types.
28714
28715 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
28716 expression is a discriminant reference and its type is private, as can
28717 happen within a stream operation for a mutable record, use the full
28718 view of the type to resolve the case alternatives.
28719 (Analyze_Assignment): Check wrong dereference of incomplete types.
28720
28721 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
28722 types.
28723
28724 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
28725 incomplete types.
28726
28727 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
28728 N_Incomplete_Type_Declaration nodes.
28729
28730 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
28731 Tag_Present to give support to tagged incomplete types:
28732 --
28733 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
28734 --
28735
28736 2005-07-07 Olivier Hainque <hainque@adacore.com>
28737
28738 PR ada/22301
28739 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
28740 definitions for the Unwind wrappers in the compiler case.
28741
28742 2005-07-07 Ed Schonberg <schonberg@adacore.com>
28743 Javier Miranda <miranda@adacore.com>
28744
28745 * par-load.adb (Load): If a child unit is loaded through a limited_with
28746 clause, each parent must be loaded as a limited unit as well.
28747
28748 * sem_ch10.adb (Previous_Withed_Unit): Better name for
28749 Check_Withed_Unit. Return true if there is a previous with_clause for
28750 this unit, whether limited or not.
28751 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
28752 the current unit.
28753 (Is_Visible_Through_Renamings): New local subprogram of install_limited
28754 _withed_unit that checks if some package installed through normal with
28755 clauses has a renaming declaration of package whose limited-view is
28756 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
28757 of the current Draft document for Ada 2005.
28758 (Analyze_Context): Complete the list of compilation units that
28759 are allowed to contain limited-with clauses. It also contains
28760 checks that were previously done by Install_Limited_Context_Clauses.
28761 This makes the code more clear and easy to maintain.
28762 (Expand_Limited_With_Clause) It is now a local subprogram of
28763 Install_Limited_Context_Clauses, and contains the code that adds
28764 the implicit limited-with clauses for parents of child units.
28765 This functionality was prevously done by Analyze_Context.
28766
28767 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
28768 incomplete type.
28769
28770 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
28771 been erroneously named in a limited-with clause of its own context.
28772 In this case the error has been previously notified by Analyze_Context.
28773
28774 2005-07-07 Ed Schonberg <schonberg@adacore.com>
28775
28776 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
28777 generic package that contains local declarations with the same name.
28778 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
28779
28780 2005-07-07 Bernard Banner <banner@adacore.com>
28781
28782 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
28783 ia64 platform only on platforms that you the GCC unwind library
28784 rather than the system unwind library.
28785
28786 2005-07-07 Thomas Quinot <quinot@adacore.com>
28787
28788 * expect.c: Minor reformatting
28789
28790 2005-07-07 Sergey Rybin <rybin@adacore.com>
28791
28792 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
28793 --no-separate-is
28794
28795 * gnat_ugn.texi: Add description for new gnatpp option
28796 (--no-separate-is)
28797
28798 2005-07-04 Thomas Quinot <quinot@adacore.com>
28799
28800 * g-expect-vms.adb, g-expect.ads, g-expect.adb
28801 (Get_Command_Output): New subprogram to launch a process and get its
28802 standard output as a string.
28803
28804 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28805 Olivier Hainque <hainque@adacore.com>
28806
28807 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
28808 fetch a code-range descriptor associated with the machine state. On
28809 failure set the machine state's PC to 0; on success, pass the
28810 descriptor to exc_virtual_unwind.
28811
28812 * init.c (Tru64 section): New function __gnat_set_code_loc.
28813
28814 2005-07-04 Vincent Celier <celier@adacore.com>
28815
28816 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28817 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28818 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
28819 Remove all auto-initialization code, as this is now done through the
28820 constructor mechanism.
28821
28822 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
28823 __gnat_sals_init_using_constructors): New functions.
28824
28825 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
28826 Linker_Constructor and Linker_Destructor when switch -a is used.
28827
28828 * bindusg.adb: Add line for new switch -a
28829
28830 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
28831 (Gnatbind): When switch -a is used, check if it is allowed
28832
28833 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
28834
28835 2005-07-04 Joel Brobecker <brobecker@adacore.com>
28836
28837 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
28838 This prevents us from hitting a limitation during the debug info
28839 generation when using stabs.
28840 (Prims_Ptr): Likewise.
28841
28842 2005-07-04 Gary Dismukes <dismukes@adacore.com>
28843 Ed Schonberg <schonberg@adacore.com>
28844 Javier Miranda <miranda@adacore.com>
28845
28846 * checks.adb (Null_Exclusion_Static_Checks): In the case of
28847 N_Object_Declaration, only perform the checks if the Object_Definition
28848 is not an Access_Definition.
28849
28850 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
28851 where the parent of an the access definition is an N_Object_Declaration
28852 when determining the Associated_Node_For_Itype and scope of an
28853 anonymous access-to-subprogram type.
28854
28855 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
28856 Corresponding_Spec on the body created for a null procedure. Add ???
28857 comment. Remove New_Copy_Tree call on body argument to
28858 Set_Body_To_Inline.
28859
28860 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
28861 discriminants, use the type of the actual as well, because the
28862 discriminants may be read by the called subprogram.
28863
28864 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
28865 access type we do not need to handle non-limited views.
28866 (Build_Derived_Record_Type): Additional check to check that in case of
28867 private types, interfaces are only allowed in private extensions.
28868
28869 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28870
28871 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
28872 <Pragma_Linker_Destructor>: Likewise.
28873
28874 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
28875 Pragma_Linker_Destructor.
28876
28877 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
28878 ATTR_LINK_DESTRUCTOR.
28879 (static_ctors, static_dtors): New variables.
28880
28881 * misc.c (gnat_expand_body): Output current function as constructor
28882 and destructor if requested.
28883
28884 * par-prag.adb: Add processing for pragma Linker_Constructor and
28885 Linker_Destructor.
28886
28887 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
28888 extracted from Check_Interrupt_Or_Attach_Handler.
28889 (Check_Interrupt_Or_Attach_Handler): Invoke it.
28890 Implement pragma Linker_Constructor and Linker_Destructor with the
28891 help of Find_Unique_Parameterless_Procedure.
28892 Replace Name_Alias with Name_Target for pragma Linker_Alias.
28893
28894 * snames.h, snames.ads, snames.adb:
28895 Add Name_Linker_Constructor and Name_Linker_Destructor.
28896 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
28897 * snames.adb: Remove Name_Alias.
28898
28899 * trans.c: Include cgraph.h.
28900 (build_global_cdtor): New function.
28901 (Compilation_Unit_to_gnu): Build global constructor and destructor if
28902 needed.
28903 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
28904 of objects too.
28905 (addressable_p) <COMPONENT_REF>: Unconditionally test
28906 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
28907
28908 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
28909 variable if it is external.
28910
28911 (static_ctors, static_dtors): New global variables.
28912 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
28913 <ATTR_LINK_DESTRUCTOR>: Likewise.
28914 (end_subprog_body): Chain function as constructor and destructor
28915 if requested.
28916
28917 * exp_util.adb (Force_Evaluation): Unconditionally invoke
28918 Remove_Side_Effects with Variable_Ref set to true.
28919 (Remove_Side_Effects): Handle scalar types first. Use a renaming
28920 for non-scalar types even if Variable_Ref is true and for class-wide
28921 expressions.
28922
28923 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28924
28925 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
28926 to prevent spurious warnings.
28927
28928 2005-07-04 Thomas Quinot <quinot@adacore.com>
28929
28930 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
28931 Itypes. Itypes are really unexpected there.
28932 (Build_TypeCode_Function): Generalise special processing for Itypes to
28933 handle the case of numeric implicit base types as well as enumerated
28934 ones.
28935
28936 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28937
28938 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
28939 controlled, indicate the expected type of the dereference that is
28940 created for the call to Deep_Finalize, to prevent spurious errors when
28941 the designated type is private and completed with a derivation from
28942 another private type.
28943
28944 2005-07-04 Vincent Celier <celier@adacore.com>
28945
28946 * make.adb (Change_To_Object_Directory): When unable to change the
28947 current dir to the object directory, output the full path of the
28948 directory.
28949
28950 2005-07-04 Matthew Gingell <gingell@adacore.com>
28951
28952 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
28953
28954 * indepsw-linux.adb: Replace by...
28955
28956 * indepsw-gnu.adb: ...this new file
28957
28958 2005-07-04 Vincent Celier <celier@adacore.com>
28959
28960 * mlib-prj.adb (Auto_Initialize): New constant String
28961 (SALs_Use_Constructors): New Boolean function
28962 (Build_Library): Call gnatbind with Auto_Initialize switch when
28963 SALs_Use_Constructors returns True.
28964
28965 * mlib-tgt.ads: Minor reformatting
28966
28967 * mlib-utl.ads: Minor reformatting
28968
28969 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
28970
28971 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28972
28973 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
28974 single protected declarations can have an interface list.
28975 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
28976 with seriously malformed entry declarations, and lead to compilation
28977 abandoned messages.
28978
28979 2005-07-04 Javier Miranda <miranda@adacore.com>
28980
28981 * par-load.adb: Load the context items in two rounds.
28982
28983 2005-07-04 Robert Dewar <dewar@adacore.com>
28984
28985 * scng.adb: Do not consider Mod used as an attribute to be a keyword
28986
28987 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28988 Javier Miranda <miranda@adacore.com>
28989
28990 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
28991 type extension needs a limited view.
28992 Remove previous restriction on private types available through the
28993 limited-view (only tagged private types were previously allowed).
28994 (Install_Withed_Unit): In the code that implements the
28995 legality rule given in AI-377, exclude a child unit with the name
28996 Standard, because it is a homonym of the Standard environment package.
28997
28998 2005-07-04 Thomas Quinot <quinot@adacore.com>
28999
29000 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
29001 overloaded function call, carry interpretations from the original tree
29002 to the copy.
29003
29004 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29005
29006 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
29007 types check whether some designated type is a limited view, and use
29008 the non-limited view if available.
29009
29010 2005-07-04 Gary Dismukes <dismukes@adacore.com>
29011
29012 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
29013 constraint of full view of a private view T1 if present, when T2 is a
29014 discriminated full view.
29015
29016 2005-07-04 Thomas Quinot <quinot@adacore.com>
29017
29018 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
29019 actual that is a view conversion of a bit packed array reference.
29020
29021 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29022
29023 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
29024 present before checking whether an interface type covers a synchronized
29025 type.
29026
29027 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29028
29029 * sem_util.adb (Is_Object_Reference): An indexed or selected component
29030 whose prefix is an implicit dereference is an object reference. Removes
29031 spurious errors when compiling with -gnatc.
29032
29033 2005-07-04 Robert Dewar <dewar@adacore.com>
29034
29035 PR ada/22039
29036 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
29037
29038 2005-07-04 Matthew Gingell <gingell@adacore.com>
29039
29040 * tracebak.c: Enable tracebacks on ia64 platforms
29041
29042 2005-07-04 Vincent Celier <celier@adacore.com>
29043
29044 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
29045 the GNAT BIND command, as gnatbind accepts multiples ALI files with
29046 the -L or -n switches.
29047
29048 2005-07-04 Vincent Celier <celier@adacore.com>
29049
29050 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
29051 correctly computed and the main project data is not modified while
29052 doing so.
29053 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
29054 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
29055 c++linker as this does not work on some platforms.
29056
29057 2005-07-04 Matthew Heaney <heaney@adacore.com>
29058
29059 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
29060 was changed.
29061 * a-coinve.adb: Perform constraint checks explicitly.
29062
29063 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29064 Thomas Quinot <quinot@adacore.com>
29065
29066 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
29067 new target gen-soccon.
29068
29069 2005-07-04 Robert Dewar <dewar@adacore.com>
29070
29071 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
29072
29073 2005-07-04 Thomas Quinot <quinot@adacore.com>
29074
29075 * g-socket.ads (Check_Selector): Minor rewording of comment.
29076
29077 2005-07-04 Vincent Celier <celier@adacore.com>
29078
29079 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
29080
29081 2005-07-04 Thomas Quinot <quinot@adacore.com>
29082
29083 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
29084
29085 2005-07-04 Sergey Rybin <rybin@adacore.com>
29086
29087 * gnat_ugn.texi: Add description of --eol gnatpp option
29088
29089 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
29090 Thomas Quinot <quinot@adacore.com>
29091
29092 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
29093 if the user wants all calls of a subprogram to be flagged,
29094 independently of whether they are made from within the same unit or
29095 another unit.
29096 Mention restriction for pragma Linker_Alias on some platforms.
29097 Document pragma Linker_Constructor and Linker_Destructor.
29098 Rewrite documentation of Weak_External, Linker_Section and
29099 Linker_Alias pragmas.
29100
29101 2005-07-04 Arnaud Charlet <charlet@adacore.com>
29102
29103 * s-stausa.ads, s-stausa.adb: New files.
29104
29105 2005-06-30 Kelley Cook
29106
29107 * all files: Update FSF address in copyright headers.
29108 * gen-soccon.co (main): Output new FSF address in generated files.
29109
29110 2005-06-28 Paul Brook <paul@codesourcery.com>
29111
29112 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
29113
29114 2005-06-14 Olivier Hainque <hainque@adacore.com>
29115 Eric Botcazou <ebotcazou@adacore.com>
29116
29117 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
29118 exc_unwind, now that we are generating proper .debug_frame output for
29119 that target.
29120
29121 * tracebak.c: Remove the mips-irix section, as we are now using the
29122 s-mastop based unwinder again.
29123 Under SPARC/Solaris, take into account the stack bias to compute the
29124 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
29125 ABI.
29126
29127 2005-06-14 Doug Rupp <rupp@adacore.com>
29128
29129 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
29130
29131 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
29132
29133 2005-06-14 Pascal Obry <obry@adacore.com>
29134
29135 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
29136 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
29137 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
29138 package name).
29139
29140 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
29141 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
29142 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
29143 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
29144 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
29145 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
29146 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
29147 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
29148 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
29149 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
29150 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
29151 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
29152 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
29153 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
29154 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
29155 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
29156 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
29157 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
29158 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
29159 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
29160 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
29161 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
29162 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
29163 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
29164 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
29165 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
29166 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
29167 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
29168 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
29169 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
29170 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
29171 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
29172 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
29173 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
29174 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
29175 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
29176 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
29177 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
29178 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
29179 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
29180 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
29181 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
29182 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
29183 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
29184 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
29185 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
29186 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29187 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
29188 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
29189 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
29190 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
29191 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
29192 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
29193 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
29194 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
29195 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
29196 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
29197 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
29198 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29199 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
29200 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
29201 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29202 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
29203 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
29204 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
29205 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
29206 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
29207 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
29208 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
29209 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29210 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
29211 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
29212 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
29213 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
29214 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
29215 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
29216 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
29217 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
29218 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
29219 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
29220 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
29221 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
29222 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
29223 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
29224 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
29225 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
29226 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
29227 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
29228 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
29229 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
29230 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
29231 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
29232 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
29233 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
29234 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
29235 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
29236 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
29237 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
29238 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
29239 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
29240 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
29241 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
29242 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
29243 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
29244 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
29245 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
29246 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
29247 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
29248 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29249 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
29250 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
29251 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
29252 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29253 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
29254 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
29255 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
29256 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
29257 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
29258 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
29259 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
29260 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
29261 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
29262 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
29263 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
29264 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
29265 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
29266 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
29267 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
29268 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
29269 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
29270 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
29271 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
29272 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
29273
29274 2005-06-14 Jose Ruiz <ruiz@adacore.com>
29275 Arnaud Charlet <charlet@adacore.com>
29276
29277 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
29278 longer protected objects. They have been replaced by lower-level
29279 suspension objects made up by a mutex and a condition variable (or
29280 their equivalent given a particular OS) plus some internal data to
29281 reflect the state of the suspension object.
29282 (Initialize, Finalize): Add this initialization procedure for
29283 Suspension_Object, which is a controlled type.
29284 (Finalize): Add the finalization procedure for Suspension_Object,
29285 which is a controlled type.
29286
29287 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
29288 Ada.Synchronous_Task_Control because there is no longer a need for a
29289 VxWorks specific version of this package. Target dependencies
29290 has been moved to System.Task_Primitives.Operations.
29291
29292 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
29293 longer needed.
29294 (InitializeCriticalSection, EnterCriticalSection,
29295 LeaveCriticalSection, DeleteCriticalSection): Replace the type
29296 pCriticalSection by an anonymous access type so that we avoid problems
29297 of accessibility to local objects.
29298
29299 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
29300 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
29301 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
29302 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
29303 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
29304 set the environment task mask here.
29305 (Current_State): Add this function that returns the state of the
29306 suspension object.
29307 (Set_False): Add this procedure that sets the state of the suspension
29308 object to False.
29309 (Set_True): Add this procedure that sets the state of the suspension
29310 object to True, releasing the task that was suspended, if any.
29311 (Suspend_Until_True): Add this procedure that blocks the calling task
29312 until the state of the object is True. Program_Error is raised if
29313 another task is already waiting on that suspension object.
29314 (Initialize): Add this procedure for initializing the suspension
29315 object. It initializes the mutex and the condition variable which are
29316 used for synchronization and queuing, and it sets the internal state
29317 to False.
29318 (Finalize): Add this procedure for finalizing the suspension object,
29319 destroying the mutex and the condition variable.
29320
29321 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
29322 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
29323 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
29324 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
29325 which provides a low-level abstraction (using operating system
29326 primitives) for Ada.Synchronous_Task_Control.
29327 This object is made up by a mutex (for ensuring mutual exclusion), a
29328 condition variable (for queuing threads until the condition is
29329 signaled), a Boolean (State) indicating whether the object is open,
29330 and a Boolean (Waiting) reflecting whether there is a task already
29331 suspended on this object.
29332
29333 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
29334 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
29335 s-intman-vms.ads, s-intman-mingw.adb,
29336 (Initialize_Interrupts): Removed, no longer used.
29337
29338 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
29339 (Setup_Interrupt_Mask): New procedure.
29340
29341 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
29342
29343 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
29344
29345 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
29346 this is no longer done in the body of s-taprop
29347 (Server_Task): Explicitely test for Pending_Action in case
29348 System.Parameters.No_Abort is True.
29349
29350 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
29351 is no longer done in the body of s-taprop
29352
29353 2005-06-14 Robert Dewar <dewar@adacore.com>
29354
29355 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
29356 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
29357 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
29358 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
29359 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
29360 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
29361 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
29362 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
29363 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
29364 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
29365 system-linux-hppa.ads, system-vms_64.ads,
29366 system-vxworks-alpha.ads: Minor comment update for
29367 AI-362 (unit is Pure).
29368
29369 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
29370 Add pragma Pure_05 for AI-362
29371 Make remaining conversion functions obsolescent in Ada 95
29372
29373 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
29374 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
29375 Add entries for a-wichun and a-zchuni
29376 Add a-widcha a-zchara for AI-395
29377 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
29378
29379 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
29380 Add entries for a-wichun.o and a-zchuni.o
29381 Entries for a-widcha.o and a-zchara.o
29382 Add entry for a-chacon.o
29383
29384 * a-ztenau.adb: Add with of Ada.Characters.Conversions
29385
29386 * a-chacon.ads, a-chacon.adb: New files.
29387
29388 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
29389 categorization violations.
29390
29391 * a-strmap.ads: Add pragma Pure_05 for AI-362
29392 * a-strmap.ads: Add note on implicit categorization for AI-362
29393
29394 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
29395
29396 * par-prag.adb: Dummy entry for pragma Persistent_BSS
29397 Set Ada_Version_Explicit, for implementation of AI-362
29398 Add processing for pragma Pure_05 and Preelaborate_05
29399 Add entry for Assertion_Policy pragma
29400
29401 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
29402 when needed for proper processing of categorization stuff
29403
29404 * sem_cat.adb:
29405 For several cases, make errors in preealborate units warnings,
29406 instead of errors, if GNAT_Mode is set. For AI-362.
29407
29408 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
29409 preelaborate unit is now warning if in GNAT mode
29410
29411 * s-stoele.ads: Document AI-362 for pragma preelaborate
29412
29413 2005-06-14 Doug Rupp <rupp@adacore.com>
29414
29415 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
29416 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
29417 Default_Exception_Msg_Max_Length: new parameter.
29418
29419 * a-except.ads: (Exception_Msg_Max_Length): Set to
29420 System.Parameters.Default_Exception_Msg_Max_Length
29421 Add pragma Preelaborate_05 for AI-362
29422 Add warnings off to allow categorization violations for AI-362
29423
29424 2005-06-14 Vincent Celier <celier@adacore.com>
29425
29426 * gnatsym.adb: Adapt to modification of package Symbols: procedure
29427 Process is now in package Processing.
29428
29429 * symbols.ads, symbols.adb:
29430 (Processing): New package, containing procedure Process
29431
29432 * symbols-vms-alpha.adb:
29433 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
29434
29435 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
29436 symbols-processing-vms-ia64.adb: New files.
29437
29438 2005-06-14 Pascal Obry <obry@adacore.com>
29439
29440 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
29441 implementation. This new version generates the proper DllMain routine
29442 to initialize the SAL. The DllMain is generated in Ada and compiled
29443 before being added as option to the library build command.
29444
29445 2005-06-14 Doug Rupp <rupp@adacore.com>
29446 Pascal Obry <obry@adacore.com>
29447
29448 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
29449 call to decc$translate_vms.
29450 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
29451 need to remove those quotes before catenating the filename.
29452 (__gnat_locate_exec_on_path): improvements to the Win32 section:
29453 * avoid allocating the memory twice for better efficiency;
29454 * allocate 32K buffer for environment expansion as suggested by MSDN;
29455 * prepend ".;" to the path so that current directory is searched too.
29456
29457 2005-06-14 Robert Dewar <dewar@adacore.com>
29458
29459 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
29460 instead of raising CE (AI-241)
29461 Add warnings off to allow categorization violations for AI-362
29462
29463 2005-06-14 Robert Dewar <dewar@adacore.com>
29464
29465 * ali-util.adb, gnatbind.adb: Remove references to
29466 Force_RM_Elaboration_Order.
29467
29468 * switch-b.adb: Remove recognition of -f switch
29469
29470 2005-06-14 Pascal Obry <obry@adacore.com>
29471
29472 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
29473 implementation which is slightly more efficient.
29474
29475 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29476 Javier Miranda <miranda@adacore.com>
29477 Ed Schonberg <schonberg@adacore.com>
29478 Hristian Kirtchev <kirtchev@adacore.com>
29479
29480 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
29481 allocator's designated type is a class-wide type, and compiling for
29482 Ada 2005, emit a run-time check that the accessibility level of the
29483 type given in the allocator's expression is not deeper than the level
29484 of the allocator's access type.
29485
29486 (Tagged_Membership): Modified to gives support to abstract interface
29487 types.
29488
29489 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
29490 Access_Level.
29491 (Descendant_Tag): New predefined function
29492 (Is_Descendant_At_Same_Level): New predefined function
29493 (Get_Access_Level): New private function
29494 (Set_Access_Level): New private procedure
29495 (IW_Membership): New function. Given the tag of an object and the tag
29496 associated with an interface, evaluate if the object implements the
29497 interface.
29498 (Register_Interface_Tag): New procedure used to initialize the table of
29499 interfaces used by the IW_Membership function.
29500 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
29501 of the dispatch table.
29502 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
29503 table of interfaces of the parent.
29504 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
29505 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
29506 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
29507 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
29508 Ada 2005 semantics for the new predefined function.
29509
29510 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
29511 call to Descendant_Tag rather than Internal_Tag.
29512 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
29513 the accessibility level of the attribute's Item parameter is not deeper
29514 than the level of the attribute's prefix type. Tag_Error is raised if
29515 the check fails. The check is only emitted for Ada_05.
29516 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
29517 requested stream attribute, use it.
29518 (Expand_N_Attribute_Reference): If the designated type is an interface
29519 then rewrite the referenced object as a conversion to force the
29520 displacement of the pointer to the secondary dispatch table.
29521 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
29522 is a dereference of an object with a constrained partial view.
29523
29524 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
29525 type is a class-wide type, emit a run-time check that the accessibility
29526 level of the returned object is not deeper than the level of the
29527 function's master (only when compiling for Ada 2005).
29528
29529 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
29530 Action_Nb_Arg): Add entries for new Get_Access_Level and
29531 Set_Access_Level routines in these tables.
29532 (Make_DT): Generate a call to set the accessibility level of the
29533 tagged type in its TSD.
29534 (Make_DT): Code cleanup. The functionality of generating all the
29535 secondary dispatch tables has been moved to freeze_record_type.
29536 (Make_Abstract_Interface_DT): Minor code cleanup.
29537 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
29538 this subprogram implements a new algorithm that provides the
29539 same functionality and it is more clear in case of primitives
29540 associated with abstract interfaces.
29541 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
29542 clean up, the functionality of this subprogram is now provided
29543 by Set_All_DT_Position.
29544 (Write_DT): New subprogram: a debugging procedure designed to be called
29545 within gdb to display the dispatch tables associated with a tagged
29546 type.
29547 (Collect_All_Interfaces): New subprogram that collects the whole list
29548 of interfaces that are directly or indirectly implemented by a tagged
29549 type.
29550 (Default_Prim_Op_Position): New subprogram that returns the fixed
29551 position in the dispatch table of the default primitive operations.
29552 (Expand_Interface_Actuals): New subprogram to generate code that
29553 displaces all the actuals corresponding to class-wide interfaces to
29554 reference the interface tag of the actual object.
29555 (Expand_Interface_Conversion): New subprogram. Reference the base of
29556 the object to give access to the interface tag associated with the
29557 secondary dispatch table.
29558 (Expand_Interface_Thunk): New subprogram that generates the code of the
29559 thunk. This is required for compatibility with the C+ ABI.
29560 (Make_Abstract_Interface_DT): New subprogram that generate the
29561 declarations for the secondary dispatch tables associated with an
29562 abstract interface.
29563 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
29564 attribute for each primitive operation covering interface subprograms
29565 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
29566 These subprograms were upgraded to give support to abstract interfaces
29567
29568 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
29569 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
29570 RE_Set_Access_Level.
29571 (RE_Unit_Table): Add entries for new Ada.Tags operations.
29572 Add support to call the followig new run-time subprograms:
29573 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
29574
29575 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
29576 match its full declaration when both have an access definition with
29577 statically matching designated subtypes.
29578 (Analyze_Component_Declaration): Delete commented out code that was
29579 incorrectly setting the scope of an anonymous access component's type.
29580 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
29581 an access discriminant when the containing type is nonlimited.
29582 (Make_Incomplete_Type_Declaration): Create an incomplete type
29583 declaration for a record type that includes self-referential access
29584 components.
29585 (Check_Anonymous_Access_Types): Before full analysis of a record type
29586 declaration, create anonymous access types for each self-referential
29587 access component.
29588 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
29589 an access component in this context is a Local_Anonymous_Access, for
29590 proper accessibility checks.
29591 (Access_Definition): Set properly the scope of the anonymous access type
29592 created for a stand-alone access object.
29593 (Find_Type_Of_Object): An object declaration may be given with an access
29594 definition.
29595 (Complete_Subprograms_Derivation): New subprogram used to complete
29596 type derivation of private tagged types implementing interfaces.
29597 In this case some interface primitives may have been overriden
29598 with the partial-view and, instead of re-calculating them, they
29599 are included in the list of primitive operations of the full-view.
29600 (Build_Derived_Record_Type): Modified to give support to private
29601 types implemening interfaces.
29602 (Access_Definition): Reject ALL on anonymous access types.
29603 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
29604 type derivation to occur at a deeper accessibility level than the
29605 parent type.
29606 For the case of derivation within a generic body however, disallow the
29607 derivation if the derived type has an ancestor that is a formal type
29608 declared in the formal part of an enclosing generic.
29609 (Analyze_Object_Declaration): For protected objects, remove the check
29610 that they cannot contain interrupt handlers if not declared at library
29611 level.
29612 (Add_Interface_Tag_Components): New subprogram to add the tag components
29613 corresponding to all the abstract interface types implemented by a
29614 record type or a derived record type.
29615 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
29616 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
29617 Process_Full_View, Record_Type_Declaration): Modified to give
29618 support to abstract interface types
29619 (Collect_Interfaces): New subprogram that collects the list of
29620 interfaces that are not already implemented by the ancestors
29621 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
29622 when partial view has no discriminants and full view has defaults.
29623 (Constrain_Access): Reject a constraint on a general access type
29624 if the discriminants of the designated type have defaults.
29625 (Access_Subprogram_Declaration): Associate the Itype node with the inner
29626 full-type declaration or subprogram spec. This is required to handle
29627 nested anonymous declarations.
29628 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
29629 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
29630 Process_Full_View, Record_Type_Declaration): Modified to give
29631 support to abstract interface types
29632 (Derive_Subprograms): Addition of a new formal to indicate if
29633 we are in the case of an abstact-interface derivation
29634 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
29635 to the specification because it is requied to analyze all the
29636 identifiers found in a list of interfaces
29637
29638 * debug.adb: Complete documentation of flag "-gnatdZ"
29639
29640 * exp_ch3.adb: Implement config version of persistent_bss pragma
29641 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
29642 testing for TSS presence to properly enforce visibility rules.
29643 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
29644 Make_Abstract_Interfaces_DT to generate the secondary tables
29645 associated with abstract interfaces.
29646 (Build_Init_Procedure): Modified to initialize all the tags
29647 corresponding.
29648 (Component_Needs_Simple_Initialization): Similar to other tags,
29649 interface tags do not need initialization.
29650 (Freeze_Record_Type): Modified to give support to abstract interface
29651 types.
29652 (Expand_N_Object_Declaration): Do not generate an initialization for
29653 a scalar temporary marked as internal.
29654
29655 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
29656 in-out parameter that is a component in an initialization procedure,
29657 whose constraint might depend on discriminants, and that may be
29658 misaligned because of packing or representation clauses.
29659 (Is_Legal_Copy): New predicate to determine whether a possibly
29660 misaligned in-out actual can actually be passed by copy/return. This
29661 is an error in case the type is by_reference, and a warning if this is
29662 the consequence of a DEC import pragma on the subprogram.
29663 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
29664 interface types
29665 (Expand_Inlined_Call): Mark temporary generated for the return value as
29666 internal, so that no useless scalar normalization is generated for it.
29667 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
29668 null procedure can always be inlined.
29669 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
29670 procedure, generate an explicit empty body for it.
29671
29672 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
29673 Given a type implementing an interface, returns the corresponding
29674 access_disp_table value.
29675 (Find_Interface_Tag): New subprogram. Given a type implementing an
29676 interface, returns the record component containing the tag of the
29677 interface.
29678 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
29679 previous ones that return the corresponding tag and access_disp_table
29680 entities.
29681 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
29682 is a predefined primitive operation.
29683 (Expand_Subtype_From_Expr): If the expression is a selected component
29684 within an initialization procedure, compute its actual subtype, because
29685 the component may depend on the discriminants of the enclosing record.
29686
29687 * i-cpp.ads, i-cpp.adb:
29688 This package has been left available for compatibility with previous
29689 versions of the frontend. As part of the new layout this is now a
29690 dummy package that uses declarations available at a-tags.ads
29691
29692 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
29693 "constant access" and "aliased [constant] access" when not compiling
29694 with -gnat05.
29695 Suppress Ada 2005 keyword warning if -gnatwY used
29696 (P_Identifier_Declarations): Add support for object declarations with
29697 access definitions.
29698 (Private_Extension_Declaration): Complete the documentation
29699 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
29700 attribute in case of private extension declaration
29701 (P_Type_Declaration): Mark as "abstract" the type declarations
29702 corresponding with protected, synchronized and task interfaces
29703 (P_Declarative_Items): "not" and "overriding" are overriding indicators
29704 for a subprogram or instance declaration.
29705
29706 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
29707 instantiation that is a dispatching operation has controlling access
29708 parameters that are null excluding.
29709 Save and restore Ada_Version_Explicit, for implementation of AI-362
29710 (Validate_Derived_Type_Instance): Add check for abstract interface
29711 types.
29712 (Analyze_Formal_Package): Establish Instantiation source for the copy of
29713 the generic that is created to represent the formal package.
29714 (Analyze_Package_Instantiation): Instantiate body immediately if the
29715 package is a predefined unit that contains inlined subprograms, and
29716 we are compiling for a Configurable_Run_Time.
29717 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
29718 If the program has a null default, generate an empty body for it.
29719
29720 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
29721 error message condition, null procedures are correctly detected now.
29722 (New_Overloaded_Entity): Bypass trivial overriding indicator check
29723 for subprograms in the context of protected types. Instead, the
29724 indicator is examined in Sem_Ch9 while analysing the subprogram
29725 declaration.
29726 (Check_Overriding_Indicator): Check consistency of overriding indicator
29727 on subprogram stubs as well.
29728 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
29729 the library level.
29730 (Analize_Subprogram_Specification): When analyzing a subprogram in which
29731 the type of the first formal is a concurrent type, replace this type
29732 by the corresponding record type.
29733 (Analyze_Subprogram_Body): Undo the previous work.
29734 (Analyze_Procedure_Call): If the call has the form Object.Op, the
29735 analysis of the prefix ends up analyzing the call itself, after which
29736 we are done.
29737 (Has_Interface_Formals): New subprogram subsidiary to analyze
29738 subprogram_specification that returns true if some non
29739 class-wide interface subprogram is found
29740 (New_Overloaded_Entity): Modified to give support to abstract
29741 interface types
29742 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
29743 access to subprograms must be recursive.
29744 (Is_Unchecked_Conversion): Improve the test that recognizes
29745 instantiations of Unchecked_Conversion, and allows them in bodies that
29746 are to be inlined by the front-end. When the body comes from an
29747 instantiation, a reference to Unchecked_Conversion will be an
29748 Expanded_Name, even though the body has not been analyzed yet.
29749 Replace Is_Overriding and Not_Overriding in subprogram_indication with
29750 Must_Override and Must_Not_Override, to better express intent of AI.
29751 (Analyze_Subprogram_Body): If an overriding indicator is given, check
29752 that it is consistent with the overrinding status of the subprogram
29753 at this point.
29754 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
29755 always inlined.
29756 If the subprogram is a null procedure, indicate that it does not need
29757 a completion.
29758
29759 * sem_disp.adb (Check_Controlling_Type): Give support to entities
29760 available through limited-with clauses.
29761 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
29762 allowed as the last primitive of a tagged type if it has no previous
29763 spec.
29764 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
29765 to give support to abstract interface types
29766
29767 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
29768 in the case where the target type is an anonymous access type of an
29769 object or component (that is, when Is_Local_Anonymous_Access is true).
29770 Prevent the special checks for conversions of access discriminants in
29771 the case where the discriminant belongs to a nonlimited type, since
29772 such discriminants have their accessibility level defined in the same
29773 way as a normal component of an anonymous access type.
29774 (Resolve_Allocator): When an allocator's designated type is a class-wide
29775 type, check that the accessibility level of type given in the
29776 allocator's expression or subtype indication is not statically deeper
29777 than the level of the allocator's access type.
29778 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
29779 name in a discriminant constraint of a record component.
29780 (Resolve_Explicit_Dereference): Do not check whether the type is
29781 incomplete when the dereference is a use of an access discriminant in
29782 an initialization procedure.
29783 (Resolve_Type_Conversion): Handle conversions to abstract interface
29784 types.
29785 (Valid_Tagged_Conversion): The conversion of a tagged type to an
29786 abstract interface type is always valid.
29787 (Valid_Conversion): Modified to give support to abstract interface types
29788 (Resolve_Actuals): Enable full error reporting on view conversions
29789 between unrelated by_reference array types.
29790 The rule for view conversions of arrays with aliased components is
29791 weakened in Ada 2005.
29792 Call to obsolescent subprogram is now considered to be a violation of
29793 pragma Restrictions (No_Obsolescent_Features).
29794 (Check_Direct_Boolean_Operator): If the boolean operation has been
29795 constant-folded, there is nothing to check.
29796 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
29797 check on possible violation of restriction No_Direct_Boolean_Operators
29798 until after expansion of operands, to prevent spurious errors when
29799 operation is constant-folded.
29800
29801 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
29802 Has_Compatible_Type): Modified to give support to abstract interface
29803 types.
29804 (Interface_Present_In_Ancestor): New function to theck if some ancestor
29805 of a given type implements a given interface
29806
29807 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
29808 prefix is a parameterless function that returns an access_to_procedure.
29809 (Transform_Object_Operation): Handle properly function calls of the
29810 form Obj.Op (X), which prior to analysis appear as indexed components.
29811 (Analyze_One_Call): Complete the error notification to help new Ada
29812 2005 users.
29813 (Analyze_Allocator): For an allocator without an initial value, where
29814 the designated type has a constrained partial view, a discriminant
29815 constraint is illegal.
29816
29817 2005-06-14 Robert Dewar <dewar@adacore.com>
29818
29819 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
29820 do with treatment of Set_Col when positioned at end of line character.
29821
29822 2005-06-14 Robert Dewar <dewar@adacore.com>
29823
29824 * atree.adb: (Elist*): Protect against uninitialized field
29825
29826 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29827
29828 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
29829 for an attribute reference that returns an access type.
29830 (Apply_Discriminant_Check): No need for check if (designated) type has
29831 constrained partial view.
29832
29833 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
29834 both bound checks, rather than a conjunction.
29835 (Insert_Valid_Check): If the expression is an actual that is an indexed
29836 component of a bit-packed array, force expansion of the packed element
29837 reference, because it is specifically inhibited elsewhere.
29838
29839 2005-06-14 Vincent Celier <celier@adacore.com>
29840
29841 * clean.adb (Clean_Project): Correctly delete executable specified as
29842 absolute path names.
29843
29844 * make.adb (Gnatmake): Allow relative executable path names with
29845 directory information even when project files are used.
29846 (Change_To_Object_Directory): Fail gracefully when unable to change
29847 current working directory to object directory of a project.
29848 (Gnatmake): Remove exception handler that could no longer be exercized
29849 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
29850 may be deallocated by Normalize_Arguments.
29851 (Collect_Arguments): Eliminate empty arguments
29852
29853 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
29854 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
29855 (Check_Project): Return False when Project is No_Project. Return True
29856 when All_Projects is True.
29857 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
29858 All_Projects to True.
29859 Minor reformatting
29860
29861 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29862 Javier Miranda <miranda@adacore.com>
29863 Thomas Quinot <quinot@adacore.com>
29864 Robert Dewar <dewar@adacore.com>
29865 Hristian Kirtchev <kirtchev@adacore.com>
29866 Gary Dismukes <dismukes@adacore.com>
29867
29868 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
29869 anonymous access types, to indicate that the accessibility level of
29870 the type is determined by that of the enclosing declaration.
29871 (Has_Persistent_BSS): New flag
29872 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
29873 of this attribute with functions.
29874 (Is_Primitive_Wrapper): Remove the barrier.
29875 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
29876 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
29877 New subprograms.
29878 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
29879 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
29880 New subprograms.
29881 (Is_Pure_Unit_Access_Type): New flag
29882 (Abstract_Interfaces): Complete the assertion to cover all usages.
29883 (Set_Is_Interface): Complete the assertion to cover all usages.
29884 (Is_Primitive_Wrapper): New attribute.
29885 (Is_Obsolescent): Now applies to all entities (though it is only set
29886 for subprograms currently)
29887 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
29888 which solves various problems concerning access subtypes.
29889 (Has_Persistent_BSS): New flag
29890 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
29891 Remove these subprograms because this attribute is currently
29892 not used.
29893 New entity flags:
29894 Has_Specified_Stream_Input (Flag190)
29895 Has_Specified_Stream_Output (Flag191)
29896 Has_Specified_Stream_Read (Flag192)
29897 Has_Specified_Stream_Write (Flag193)
29898 Present in all type and subtype entities. Set for a given view if the
29899 corresponding stream-oriented attribute has been defined by an
29900 attribute definition clause. When such a clause occurs, a TSS is set
29901 on the underlying full view; the flags are used to track visibility of
29902 the attribute definition clause for partial or incomplete views.
29903 (Is_Pure_Unit_Access_Type): New flag
29904 Clarify use of Is_Internal.
29905 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
29906 internally generated to wrap the invocation of tasks and protected
29907 types that implement interfaces.
29908 (Implementation_Base_Type): Documentation correction
29909 (Is_Obsolescent): Now applies to all entities (though it is only set
29910 for subprograms currently)
29911 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
29912 which solves various problems concerning access subtypes.
29913
29914 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
29915 for examined parameters. Identify unequal parameter list lengths as
29916 non-conformant parameters.
29917 (Overriding_Possible): Do not check for "All" qualifier in declaration
29918 of controlling access parameter, following prescription of AI-404.
29919 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
29920 that build the procedure body that wraps an entry invocation
29921 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
29922 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
29923 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
29924 give support to abstract interface types
29925
29926 * freeze.adb (Freeze_Entity): Issue error message if
29927 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
29928 type has no storage pool (Ada 2005) AI-366.
29929 Also modified to give support to abstract interface types
29930 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
29931 Inline_Always pragma.
29932
29933 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
29934 now begin an entry declaration.
29935 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
29936 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
29937 a subprogram declaration preceded by an overriding indicator.
29938 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
29939 declarations or subprogram declarations preceded by reserved words
29940 "not" or "overriding".
29941 (P_Entry_Declaration): Update comment. Parse and check overriding
29942 indicator, set semantic flags of entry declarations.
29943 (P_Task): New error message in case of private applied
29944 to a task type declaration.
29945 (P_Protected): New error message in case of private applied
29946 to a task type declaration.
29947
29948 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
29949 in which the full view of a type implementing an interface is a
29950 concurrent type.
29951 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
29952 Declare_Inherited_Private_Subprograms): If an explicit operation
29953 overrides an operation that is inherited in the private part, mark the
29954 explicit one as overriding, to enable overriding indicator checks.
29955 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
29956 full view to partial view, to simplify handling in back-end.
29957
29958 * sprint.adb: Print interface lists where needed: derived types,
29959 protected types, task types.
29960 output "is null" for null procedures. Part of implementation of
29961
29962 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
29963 relaxation of rules for access types in pure, shared passive partitions.
29964
29965 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
29966 first read discriminants into temporary objects, performing checks on
29967 the read values, then possibly performing discriminant checks on the
29968 actual (if it is constrained), and only finally reading the components
29969 into a constrained temporary object.
29970 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
29971 case of reading discriminants of a mutable record type to recognize
29972 the new form of the code generated by
29973 Build_Mutable_Record_Read_Procedure.
29974
29975 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
29976 of a simple call to Make_TSS_Name.
29977 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
29978 buffer, in order for Is_TSS to work correctly on local TSS names.
29979
29980 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
29981 Is_Local_Anonymous_Access to check legaliy of attributes in the
29982 context of access components and stand-alone access objects.
29983 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
29984 treated as available for a limited private type if there is an
29985 attribute_definition_clause that applies to its full view, but not in
29986 other cases where the attribute is available for the full view
29987 (specifically, the sole fact that the full view is non-limited does not
29988 make the attribute available for the partial view).
29989 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
29990 non-overloaded intrinsic subprogram.
29991 (Check_Stream_Attribute): Reject an attribute reference for an
29992 unavailable stream attribute even if the prefix is not a limited type
29993 (case of a 'Input attribute reference for an abstract, non-classwide
29994 type)
29995 (Stream_Attribute_Available): New function to determine whether a stream
29996 attribute is available at a place.
29997 (Check_Attribute): Use Stream_Attribute_Available instead of just
29998 testing for TSS presence on the implementation base type.
29999 (Analyze_Attribute): Modified to give support to task interfaces.
30000 (Analyze_Access_Attribute): Add error check for use of an Access (or
30001 Unrestricted_Access) attribute with a subprogram marked as
30002 Inline_Always.
30003 (Analyze_Attribute, case Attribute_Address): Add error check for use of
30004 an Address attribute with a subprogram marked as Inline_Always.
30005 Update Eval_Attribute to handle new value of Width from AI-395
30006
30007 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
30008 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
30009 Factor common code across the stream-oriented attribute circcuits into
30010 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
30011 processing is functionally identical to the previous duplicated one,
30012 except that an expression that denotes an abstract subprogram will now
30013 be rejected, as mandated by AI-195 item 5.
30014
30015 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
30016 Is_Local_Anonymous_Access to apply accessibility checks to access
30017 components and stand-alone access objects.
30018 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
30019 elsewhere.
30020 (Is_Potentially_Persistent_Type): New function
30021 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
30022 a heap-object whose type has a constrained partial view, the object is
30023 unconstrained and the component may depend on a discriminant, making its
30024 renaming illegal.
30025
30026 * sinfo.ads, sinfo.adb
30027 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
30028 (Must_Override): Flag applicable to N_Entry_Declaration.
30029 Indicate that interface_list can appear in single task and single
30030 protected declarations.
30031 Replace Is_Overriding and Not_Overriding with Must_Override and
30032 Must_Not_Override, to better express intent of AI.
30033 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
30034 of an overriding indicator in a subprogram or instance.
30035 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
30036 Add the overriding indicator [[not] overriding] construct to the
30037 following grammar productions:
30038 ENTRY_DECLARATION
30039 GENERIC_INSTANTIATION
30040 SUBPROGRAM_SPECIFICATION
30041
30042 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
30043 can start with an overriding indicator.
30044
30045 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
30046 flags accordingly on subrogram specifications or instances.
30047
30048 * sem_ch8.adb:
30049 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
30050 overriding_indicator, if present, is consistent with status of spec.
30051 Improve error message for null-excluding checks on controlling access
30052 parameters.
30053 (Check_In_Previous_With_Clause): Protect the frontend against
30054 previously reported critical errors in the context clauses.
30055 Save and restore Ada_Version_Explicit, for implementation of AI-362
30056 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
30057 operation verify that controlling formals of the renamed entity that
30058 are access parameters are explicitly non-null.
30059 (Find_Expanded_Name): Improve error message when prefix is an illegal
30060 reference to a private child unit.
30061
30062 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
30063 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
30064 Rewrite to correspond to new wide character names in AI-395
30065
30066 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
30067 default procedures.
30068
30069 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30070 Robert Dewar <dewar@adacore.com>
30071
30072 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
30073 code, not on the bodies of predefined operations, to cut down on
30074 spurious noise.
30075
30076 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30077
30078 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
30079 be expanded in place. The size computation does not require a
30080 subtraction, which would raise an exception on a compiler built with
30081 assertions when the upper bound is Integer'first.
30082 (Flatten): For an array of composite components, take into account the
30083 size of the components to determine whether it is safe to expand the
30084 array into a purely positional representation.
30085
30086 2005-06-14 Thomas Quinot <quinot@adacore.com>
30087
30088 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
30089 denoting a formal parameter into account.
30090
30091 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30092
30093 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
30094 the entry_call alternative of a conditional entry call, wrap the
30095 conditional entry call itself.
30096
30097 2005-06-14 Nicolas Setton <setton@adacore.com>
30098 Ed Schonberg <schonberg@adacore.com>
30099
30100 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
30101 the "simple_choice" member in a variant record, in accordance with the
30102 description in the package spec: the information output for a constant
30103 should be "S number", not "SS number".
30104 (Get_Encoded_Name): Return at once if not generating code. Avoids name
30105 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
30106
30107 2005-06-14 Thomas Quinot <quinot@adacore.com>
30108
30109 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
30110 RACW without any primitives, do not generate the if statement for
30111 dispatching by name in the PolyORB/DSA case, as it would be malformed
30112 (it would have an Elsif_Parts list that is not No_List, but with a
30113 length of 0).
30114
30115 2005-06-14 Robert Dewar <dewar@adacore.com>
30116
30117 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
30118
30119 2005-06-14 Jose Ruiz <ruiz@adacore.com>
30120
30121 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
30122 can determine whether pragma Suppress_Exception_Locations is in effect.
30123
30124 * utils2.c (build_call_raise): Do not pass the file name to the
30125 exception handler if pragma Suppress_Exception_Locations is in effect.
30126 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
30127
30128 2005-06-14 Emmanuel Briot <briot@adacore.com>
30129
30130 * g-debpoo.adb (Deallocate, Dereference): Improve output.
30131
30132 2005-06-14 Nicolas Roche <roche@adacore.com>
30133
30134 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
30135 to ""
30136 (Next_Level): Fix minor bug in handling of ../dir case
30137 (Read): Add dir separator to Directory name so that "" is understood as
30138 "/"
30139
30140 2005-06-14 Pascal Obry <obry@adacore.com>
30141
30142 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
30143 releasing the items.
30144
30145 2005-06-14 Vincent Celier <celier@adacore.com>
30146 Cyrille Comar <comar@adacore.com>
30147
30148 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
30149 with output file descriptor and with output file name.
30150 (Dup, Dup2): Now global procedures as they are used by two subprograms
30151 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
30152
30153 2005-06-14 Thomas Quinot <quinot@adacore.com>
30154
30155 PR ada/6717
30156 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
30157 broadcast address.
30158 (Create_Selector): Bind listening socket used to create the signalling
30159 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
30160 Set listen backlog to 1 to ensure that we detect socket theft by a
30161 failure of our own connect(2) call.
30162 (Check_Selector): Improve documentation of the selector mechanism.
30163 (Broadcast_Inet_Addr): New constant.
30164
30165 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30166
30167 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
30168 type which turns out to be an incomplete and incorrect fix.
30169 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
30170 of the type is declared in a record (for determination of insertion
30171 type).
30172 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
30173 a private type and ensure that the primary entity is used for the type
30174 of the newly created function's V formal by taking the Etype of the
30175 view.
30176
30177 2005-06-14 Javier Miranda <miranda@adacore.com>
30178 Jose Ruiz <ruiz@adacore.com>
30179 Robert Dewar <dewar@adacore.com>
30180 Ed Schonberg <schonberg@adacore.com>
30181
30182 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
30183 that indicates if we are parsing a compilation unit found in a
30184 limited-with clause.
30185 It is use to avoid the circularity check.
30186
30187 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
30188 we are parsing a compilation unit found in a limited-with clause. This
30189 is use to avoid the circularity check.
30190
30191 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
30192 unit as a consequence of parsing a limited-with clause. This is used
30193 to avoid the circularity check.
30194
30195 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
30196 (Analyze_Context): Limited-with clauses are now allowed
30197 in more compilation units.
30198 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
30199 againts previously reported critical errors in context clauses
30200 (Install_Limited_Withed_Unit): Code cleanup plus static detection
30201 of two further errors: renamed subprograms and renamed packages
30202 are not allowed in limited with clauses.
30203 (Install_Siblings): Do not install private_with_clauses on the package
30204 declaration for a non-private child unit.
30205 (Re_Install_Parents): When a parent of the subunit is reinstalled,
30206 reset visibility of child units properly.
30207 (Install_Withed_Unit): When a child unit appears in a with_clause of its
30208 parent, it is immediately visible.
30209
30210 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30211 Emmanuel Briot <briot@adacore.com>
30212
30213 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
30214 declared within an inlined body as referenced, to prevent spurious
30215 warnings.
30216 (Output_One_Ref): If an entity renames an array component, indicate in
30217 the ALI file that this aliases (renames) the array. Capture as well
30218 function renamings that rename predefined operations.
30219 Add information about generic parent for package and subprogram
30220 instances.
30221 (Get_Type_Reference): For a subtype that is the renaming of an actual in
30222 an instantiation, use the first_subtype to ensure that we don't generate
30223 cross-reference information for internal types.
30224 For objects and parameters of a generic private type, retain the '*'
30225 indicator to distinguish such an entity from its type.
30226
30227 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
30228 to store information about instantiated entities.
30229
30230 * ali.adb (Scan_ALI): Add support for parsing the reference to the
30231 generic parent
30232
30233 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
30234 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
30235 information.
30236
30237 2005-06-10 Doug Rupp <rupp@adacore.com>
30238 Arnaud Charlet <charlet@adacore.com>
30239 Olivier Hainque <hainque@adacore.com>
30240 Jose Ruiz <ruiz@adacore.com>
30241
30242 * Make-lang.in: Add initialize.o when needed.
30243 Remove obsolete references to RT_FLAGS.
30244 Add missing dependencies for sdefault.o
30245
30246 * initialize.c: New file.
30247
30248 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
30249 [VMS] cond_signal_table: Fix problem in declaration.
30250 [VMS] __gnat_error_handler: rewrite.
30251 Move all __gnat_initialize() routines to initialize.c
30252 Specialize the former "hpux" section to "hppa hpux", as this is what the
30253 section really is here for and we now have other hpux ports that need
30254 different contents.
30255 (__gnat_adjust_context_for_raise) i386-linux: First version of this
30256 function for this target. Adjust PC by one in the machine context. This
30257 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
30258 it is more reliable to do that in the signal handler itself.
30259 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
30260 flags, so that the handler is passed the context structure to adjust
30261 prior to the raise.
30262 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
30263 SA_SIGINFO sigaction should look like. Call
30264 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
30265 Machine_State_Operations stuff.
30266 Add conditional code so that the x86_64 is also supported.
30267
30268 2005-06-14 Pascal Obry <obry@adacore.com>
30269
30270 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
30271 the library name.
30272
30273 2005-06-14 Robert Dewar <dewar@adacore.com>
30274
30275 * opt.ads, opt.adb: New flags for persistent_bss mode
30276 Add Ada_Version_Explicit, for implementation of AI-362
30277 Add Assertions_Enabled_Config and associated handling
30278 Needed since setting can be changed with Assertion_Policy pragma
30279 Add new flag Warn_On_Ada_2005_Compatibility
30280
30281 * switch-c.adb: Recognize -gnatwy/Y
30282 Set Ada_Version_Explicit, for implementation of AI-362
30283 The -gnatg switch now includes -gnatyu
30284
30285 * usage.adb: Add -gnatwy/Y
30286 Remove wrong asterisk on -gnatwX line
30287 Add line for -gnatyu switch
30288
30289 2005-06-14 Vincent Celier <celier@adacore.com>
30290
30291 * osint.adb (Add_Default_Search_Dirs): Put source and object
30292 directories of project files before directories coming from
30293 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
30294
30295 2005-06-14 Robert Dewar <dewar@adacore.com>
30296
30297 PR ada/15613
30298 * par-ch2.adb (Scan_Pragma_Argument): New procedure
30299 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
30300
30301 2005-06-14 Vincent Celier <celier@adacore.com>
30302
30303 * prep.adb (Preprocess): Ignore error when scanning the first token of
30304 a line.
30305
30306 2005-06-14 Vincent Celier <celier@adacore.com>
30307
30308 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
30309 (Check_Stand_Alone_Library): If the specified reference symbol file does
30310 not exist, only issue a warning when the symbol policy is not
30311 Controlled. And, when symbol policy is Compliant, set the symbol
30312 policy to Autonomous.
30313
30314 2005-06-14 Vincent Celier <celier@adacore.com>
30315
30316 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
30317 when the project file in a with clause is not the last one, that is the
30318 project file name is followed by a comma.
30319 * prj-pp.adb: (First_With_In_List): New Boolean global variable
30320 (Print): Issue list of project files separated by commas in with clauses
30321 according to the values returned by Is_Not_Last_In_List.
30322 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
30323 (Set_Is_Not_Last_In_List): New procedure
30324
30325 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
30326
30327 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
30328
30329 2005-06-14 Robert Dewar <dewar@adacore.com>
30330
30331 * scng.adb: Add call to new Check_EOF routine
30332 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
30333 Add some comments regarding wide character handling
30334
30335 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
30336
30337 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
30338
30339 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
30340 characters are now considered graphic characters and hence yield false
30341 in this call.
30342
30343 * nmake.adt: Modify header so that xnmake does not generate output
30344 files with multiple blank lines.
30345
30346 * treeprs.adt: Remove a blank line so that output from xtreeprs does
30347 not have an extra blank line
30348
30349 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30350
30351 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
30352 expression when the component type is an anonymous access type to
30353 ensure that appropriate accessibility checks are done.
30354
30355 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
30356 expression of an assignment when the target object is of an anonymous
30357 access type. This ensures that required accessibility checks are done.
30358 (One_Bound): Move the check for type Universal_Integer to
30359 Process_Bounds.
30360 (Process_Bounds): Check whether the type of the preanalyzed range is
30361 Universal_Integer, and in that case set Typ to Integer_Type prior
30362 to setting the type of the original range and the calls to One_Bound.
30363
30364 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30365
30366 * sem_case.adb (Expand_Others_Choice): Improve warning.
30367
30368 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30369
30370 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
30371 constraint of full view if present, when other type is discriminated.
30372 (Eval_Relational_Op): Recognize tests of pointer values against Null,
30373 when the pointer is known to be non-null, and emit appropriate warning.
30374
30375 2005-06-14 Robert Dewar <dewar@adacore.com>
30376 Ed Schonberg <schonberg@adacore.com>
30377
30378 PR ada/10671
30379 * sem_prag.adb: Implement pragma Persistent_BSS
30380 Remove obsolete pragma Persistent_Data, Persistent_Object
30381 Set Ada_Version_Explicit, for implementation of AI-362
30382 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
30383 Add processing for pragma Pure_05 and Preelaborate_05
30384 Add processing for Assertion_Policy pragma
30385 Add pragma identifiers for Assert
30386 (Analyze_Pragma, case Assert): Check number of arguments
30387 (Process_Inline): Additional guard against an illegal program, where the
30388 argument of the pragma is undefined, and warnings on redundant
30389 constructs are enabled.
30390 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
30391 Ada_05 to this pragma, specifying that the pragma is only active in
30392 Ada_05 mode.
30393 (Check_Arg_Order): New procedure
30394 Add appropriate calls to this procedure throughout
30395 Also throughout, check entity name before doing any other checks
30396
30397 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
30398 Remove obsolete pragma Persistent_Data, Persistent_Object
30399 Add entries for pragma Pure_05 and Preelaborate_05
30400 Add entries for Assertion_Policy pragma and associated names
30401 Add some names for pragma argument processing
30402
30403 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
30404
30405 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30406
30407 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
30408 appears within a negation (either from source or as a rewriting of
30409 inequality) adjust text of warning accordingly.
30410
30411 2005-06-14 Thomas Quinot <quinot@adacore.com>
30412
30413 * s-strxdr.adb: Follow AI95-00132
30414
30415 2005-06-14 Arnaud Charlet <charlet@adacore.com>
30416
30417 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
30418
30419 2005-06-14 Arnaud Charlet <charlet@adacore.com>
30420 Jose Ruiz <ruiz@adacore.com>
30421
30422 * s-tposen.adb, s-tpobop.adb
30423 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
30424 the exception id.
30425 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
30426 there is no violation of the Max_Entry_Queue_Length restriction (if it
30427 has been set); Program_Error is raised otherwise.
30428 (Requeue_Call): Before requeuing the task on the target entry queue we
30429 check that there is no violation of the Max_Entry_Queue_Length
30430 restriction (if it has been set); Program_Error is raised otherwise.
30431
30432 2005-06-14 Robert Dewar <dewar@adacore.com>
30433
30434 * styleg.adb: Fix several remaining problems in -gnatyu switch
30435 Blank line count not reset at start
30436 Scanning outside source buffer in some cases
30437 Confusing message for blanks at end of file
30438 Non-empty blank lines not recognized
30439
30440 * nmake.adt: Modify header so that xnmake does not generate output
30441 files with multiple blank lines.
30442
30443 * treeprs.adt: Remove a blank line so that output from xtreeprs does
30444 not have an extra blank line
30445
30446 2005-06-14 Sergey Rybin <rybin@adacore.com>
30447
30448 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
30449
30450 2005-06-14 Doug Rupp <rupp@adacore.com>
30451 Vincent Celier <celier@adacore.com>
30452
30453 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
30454 Update copyright.
30455
30456 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
30457 Remove "Library" command.
30458 Change keyword for style check -gnatyd from NOCRLF to
30459 DOS_LINE_ENDINGS.
30460 Remove useless second style check keyword NONE
30461 Remove help documentation for inexistent style check keyword
30462 RM_COLUMN_LAYOUT.
30463 Add help documentation for style check keywords DOS_LINE_ENDINGS,
30464 UNNECESSARY_BLANK_LINES and XTRA_PARENS
30465 Add UNNECESSARY_BLANK_LINES for -gnatyu
30466 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
30467
30468 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
30469
30470 2005-06-14 Vincent Celier <celier@adacore.com>
30471
30472 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
30473 gprmake was invoked with -d.
30474 (Compile_Sources): If -d was used, output the "completed ..." message
30475 for each compilation.
30476 (Scan_Arg): Recognize new switch -d
30477 When -c and at least one main is specified, set
30478 Unique_Compile to True to guarantee that no other sources will be
30479 compiled.
30480
30481 2005-06-14 Matthew Heaney <heaney@adacore.com>
30482
30483 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
30484 * a-swuwha.ads, a-swuwha.adb: New files
30485
30486 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
30487 * a-szuzha.ads, a-szuzha.adb: New files.
30488
30489 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
30490 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
30491 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
30492 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
30493 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
30494 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
30495 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
30496 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
30497 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
30498 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
30499 Ada 2005 RM.
30500
30501 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
30502 Olivier Hainque <hainque@adacore.com>
30503 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30504 Pascal Obry <obry@adacore.com>
30505
30506 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
30507
30508 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
30509 making a temporary around a procedure call because of non-addressable
30510 actual parameter.
30511 (process_freeze_entity): If entity is a private type, capture size
30512 information that may have been computed for the full view.
30513 (tree_transform, case N_Allocator): If have initializing expression,
30514 check type for Has_Constrained_Partial_View and pass that to
30515 build_allocator.
30516 (tree_transform, case N_Return_Statement): Pass extra arg to
30517 build_allocator.
30518
30519 * decl.c (annotate_value): Remove early return if -gnatR is not
30520 specified.
30521 (gnat_to_gnu_field): Don't make a packable type for a component clause
30522 if the position is byte aligned, the field is aliased, and the clause
30523 size isn't a multiple of the packable alignment. It serves no useful
30524 purpose packing-wise and would be rejected later on.
30525 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
30526
30527 PR ada/20515
30528 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
30529 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
30530 instead.
30531 (create_concat_name): Idem.
30532
30533 2005-06-10 Robert Dewar <dewar@adacore.com>
30534 Eric Botcazou <ebotcazou@adacore.com>
30535 Ben Brosgol <brosgol@adacore.com>
30536 Cyrille Comar <comar@adacore.com>
30537 Sergey Rybin <rybin@adacore.com>
30538 Pascal Obry <obry@adacore.com>
30539
30540 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
30541 Document second argument (Ada_05) of pragma Obsolescent
30542 Add note that call to subprogram marked with pragma Obsolescent
30543 is now considered to be a violation of program Restrictions
30544 (No_Obsolescent_Features).
30545 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
30546 that only machine-dependent attributes are supported.
30547
30548 * gnat_ugn.texi:
30549 Commented out menu lines and empty section for gnatclean examples
30550 Document -gnatwy/Y
30551 Fix some over long lines
30552 Clarify and enhance documentation of ADA_PROJECT_PATH.
30553 Rework section 2.11.2(3) about linking with a non-GNU compiler.
30554 Mention new switch -fcallgraph-info.
30555 Mention new switch -fstack-usage.
30556 For gnatpp, replace '-notab' with '-N' and add this option to Index
30557 Corrected VMS example.
30558 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
30559 Minor reformatting
30560 Add documentation for -gnatyu switch (unnecessary blank lines)
30561 Document new switch -U for GNAT PRETTY and GNAT METRIC
30562 Add note about Stdcall being handled as C convention on non Windows OS.
30563 Remove some junk typo in description of gnatbind -S switch
30564 Remove reference to Extensions_Allowed pragma
30565 Document the new order of the directories to be searched (source and
30566 object directories of project files before directories in ADA_*_PATH
30567 environment variables.
30568
30569 * g-trasym.ads: Document that IRIX is supported
30570
30571 2005-06-10 Arnaud Charlet <charlet@adacore.com>
30572
30573 * Makefile.in: Add initialize.o when needed.
30574 Adapt to new VMS package body Symbols and subunits
30575 No specialized version of a-sytaco is needed for VxWorks.
30576
30577 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
30578 * a-zchara.ads, a-widcha.ads: New files.
30579
30580 * system-hpux-ia64.ads: New file.
30581
30582 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
30583 is imported from the VxWorks kernel.
30584
30585 2005-06-14 Robert Dewar <dewar@adacore.com>
30586
30587 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
30588 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
30589 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
30590 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
30591 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
30592 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
30593 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
30594 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
30595 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
30596 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
30597 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
30598 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
30599
30600 2005-06-14 Thomas Quinot <quinot@adacore.com>
30601
30602 * xeinfo.adb: Fix typo in comment
30603
30604 2005-06-14 Javier Miranda <miranda@adacore.com>
30605
30606 * repinfo.ads: Fix typo in comment
30607
30608 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30609
30610 * s-finimp.adb (Parent_Tag): Delete this imported function (function
30611 Parent_Tag is now in the visible part of Ada.Tags).
30612 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
30613 using imported function.
30614
30615 2005-06-14 Bernard Banner <banner@adacore.com>
30616
30617 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
30618 also apply for handling support for VxSim 653.
30619
30620 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
30621
30622 * xsnames.adb: Add automatic generation of snames.h.
30623
30624 2005-06-14 Thomas Quinot <quinot@adacore.com>
30625
30626 * gen-soccon.c: Add IP_MULTICAST_IF constant
30627 Minor reformatting and adjustments to prevent warnings.
30628
30629 2005-06-14 Pascal Obry <obry@adacore.com>
30630
30631 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
30632
30633 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
30634
30635 * trans.c (gnat_gimplify_expr): Call
30636 recompute_tree_invarant_for_addr_expr when we change
30637 the operand of the ADDR_EXPR.
30638
30639 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30640
30641 * misc.c: Don't include errors.h.
30642
30643 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30644
30645 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
30646
30647 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
30648
30649 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
30650 comment typos.
30651 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
30652
30653 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
30654
30655 PR ada/20270
30656 * Makefile.in: Make TGT_LIB behave correctly.
30657
30658 2005-04-23 DJ Delorie <dj@redhat.com>
30659
30660 * misc.c: Adjust warning() callers.
30661
30662 2005-04-16 Laurent Guerby <laurent@guerby.net>
30663
30664 PR ada/18847
30665 * a-nudira.adb (Value): Check for valid string.
30666 * a-nuflra.adb (Value): Likewise.
30667
30668 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
30669
30670 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
30671
30672 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
30673
30674 * adaint.c, init.c, tracebak.c: Fix comment typos.
30675 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
30676
30677 2005-04-07 Laurent Guerby <laurent@guerby.net>
30678 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30679
30680 * Makefile.in: Add make ifeq define for hppa linux tasking support.
30681 * system-hpux.ads: Define Signed_Zeros to be True.
30682 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
30683
30684 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
30685
30686 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
30687 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
30688 typos.
30689
30690 2005-03-30 Tom Tromey <tromey@redhat.com>
30691
30692 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
30693
30694 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30695
30696 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
30697
30698 2005-03-29 Robert Dewar <dewar@adacore.com>
30699
30700 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
30701 fixed-point expression has value that is not a multiple of the Small
30702 value.
30703
30704 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
30705
30706 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
30707 nanoseconds.
30708
30709 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
30710
30711 2005-03-29 Vincent Celier <celier@adacore.com>
30712
30713 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
30714 (Build_Dynamic_Library.Version_String): Return the empty string when
30715 Lib_Version is empty or when the symbol policy is not Autonomous.
30716
30717 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
30718 a symbol is not in the reference symbol file, increase the Major ID
30719 and set the Minor ID to 0.
30720 Use gsmatch=lequal instead of gsmatch=equal
30721
30722 2005-03-29 Doug Rupp <rupp@adacore.com>
30723
30724 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
30725 name and translate.
30726
30727 2005-03-29 Javier Miranda <miranda@adacore.com>
30728
30729 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
30730 (Inherit_DT): The first formal has been redefined as a Tag.
30731 This allows us the removal of the subprogram Get_TSD.
30732 (TSD): Replace the call to Get_TSD by the actual code.
30733
30734 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
30735 (Make_DT): Upgrade the call to Inherit_TSD according to the
30736 new interface: the first formal is now a Tag.
30737
30738 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
30739 redefined as a Tag.
30740 This change allows us to remove the subprogram Get_TSD.
30741 (CPP_Get_TSD): Subprogram removed.
30742 (TSD): Replace the call to CPP_Get_TSD by the actual code.
30743
30744 * rtsfind.ads: Remove support to call the run-time
30745 subprogram Get_TSD
30746
30747 2005-03-29 Robert Dewar <dewar@adacore.com>
30748
30749 * errutil.adb, errout.adb:
30750 Minor comment updates on Line_Terminator references
30751
30752 * par-ch10.adb: Add ??? comment about line terminator
30753
30754 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
30755 (check dos line terminator).
30756 (Check_Line_Max_Length): New procedure, split off from the existing
30757 Check_Line_Terminator routine. Separating this out allows -gnatyf to
30758 be properly recognized.
30759
30760 * styleg.adb: Add ??? comment for line terminator reference
30761
30762 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
30763 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
30764
30765 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
30766 (check dos line terminator).
30767 (Check_Line_Max_Length): New procedure, split off from the existing
30768 Check_Line_Terminator routine. Separating this out allows -gnatyf to
30769 be properly recognized.
30770
30771 * stylesw.ads, stylesw.adb:
30772 Add handling for new -gnatyd switch (check dos line terminator)
30773
30774 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
30775 Recognize -gnatwb/-gnatwB switches
30776 Include Warn_On_Bad_Fixed_Value for -gnatg
30777
30778 * usage.adb:
30779 Add line for new -gnatyd switch (check dos line terminator)
30780
30781 * usage.adb: Add lines for -gnatwb/-gnatwB
30782
30783 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
30784
30785 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
30786
30787 * gnat_ugn.texi: Fix overlong lines
30788 Document new -gnatyd switch
30789 Document new -gnatwb/-gnatwB switches
30790
30791 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30792
30793 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
30794 order to retrieve the component list of the type, before examining
30795 individual components.
30796
30797 * sem_type.adb (Covers): Types are compatible if one is the base type
30798 of the other, even though their base types might differ when private
30799 views are involved.
30800
30801 2005-03-29 Thomas Quinot <quinot@adacore.com>
30802
30803 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
30804 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
30805 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
30806 analyzed if expansion is disabled (which could otherwise cause spurious
30807 error messages if expansion has been disabled due to previous
30808 (unrelated) errors).
30809
30810 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
30811 is disabled, the entity denoted by the argument is the access type
30812 itself, not an underlying record type, so there is no need to go back
30813 to the Corresponding_Remote_Type.
30814
30815 2005-03-29 Gary Dismukes <dismukes@adacore.com>
30816 Robert Dewar <dewar@adacore.com>
30817
30818 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
30819 expand a call to an instance of
30820 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
30821 Constructor actual of the instance. A class-wide membership
30822 check is also generated, to ensure that the tag passed to the instance
30823 denotes a type in the class.
30824 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
30825 of Name_Generic_Dispatching_Constructor.
30826
30827 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
30828 05 unit for AI-260-02).
30829
30830 * a-tgdico.ads: New file.
30831
30832 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
30833 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
30834
30835 * snames.ads, snames.adb (Preset_Names): Add entry for
30836 Generic_Dispatching_Constructor.
30837
30838 PR ada/20300
30839 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
30840 character type cases.
30841 (Analyze_Subprogram_Renaming): Add special handling for
30842 the case of renaming of stream attributes when the renaming denotes a
30843 generic formal subprogram association for an abstract formal subprogram.
30844 Check that the attribute is a primitive stream attribute (and not
30845 a class-wide stream attribute) and then rewrite the attribute name
30846 as the name of the appropriate compiler-generated stream primitive.
30847
30848 2005-03-29 Robert Dewar <dewar@adacore.com>
30849
30850 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
30851 recursive calls.
30852 (Is_Possibly_Unaligned_Object): Correct typo that
30853 resulted in inaccurate result for unaligned scalars within records.
30854
30855 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30856
30857 * freeze.adb (Freeze_Record_Type): If the type of the component is an
30858 itype whose parent is controlled and not yet frozen, do not create a
30859 freeze node for the itype if expansion is disabled.
30860
30861 2005-03-29 Vincent Celier <celier@adacore.com>
30862
30863 * make.adb (Gnatmake): Don't fail if the main project file is declared
30864 as having no Ada sources. Do not display message "no sources to
30865 compile" in quiet output.
30866
30867 2005-03-29 Doug Rupp <rupp@adacore.com>
30868
30869 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
30870 extra tools.
30871
30872 2005-03-29 Robert Dewar <dewar@adacore.com>
30873
30874 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
30875 child.
30876
30877 2005-03-29 Robert Dewar <dewar@adacore.com>
30878
30879 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
30880 missing TYPE Improve the error message generated when compiling a
30881 limited interface in Ada83 or Ada95 mode.
30882
30883 2005-03-29 Robert Dewar <dewar@adacore.com>
30884
30885 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
30886 rather than proceed ahead using a junk attribute name.
30887
30888 2005-03-29 Vincent Celier <celier@adacore.com>
30889
30890 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
30891
30892 * prj-part.adb (Parse_Single_Project): Set the location of a project
30893 on its defining identifier, rather than on the reserved word "project".
30894
30895 * prj-proc.adb (Expression): Adapt to the fact that default of external
30896 references may be string expressions, not always literal strings.
30897 (Recursive_Process): Set Display_Name equal to Name
30898 when Location is No_Location, that is when there is no actual file.
30899 Get the Display_Name of the project from the source, when it is not a
30900 virtual project.
30901 (Process): Use the Display_Name in error messages
30902
30903 * prj-strt.adb (External_Reference): Allow default to be string
30904 expressions, not only literal strings.
30905
30906 2005-03-29 Vincent Celier <celier@adacore.com>
30907
30908 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
30909 file and the reference symbol file to be the same file.
30910
30911 2005-03-29 Thomas Quinot <quinot@adacore.com>
30912
30913 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
30914 forbid conversion of a local access-to-subprogram type to a remote one.
30915
30916 * sem_util.adb (Wrong_Type): For a record type that is the expanded
30917 equivalent type for a remote access-to-subprogram type, go back to the
30918 original RAS entity when displaying an error message, so the casing is
30919 the original source casing.
30920
30921 2005-03-29 Robert Dewar <dewar@adacore.com>
30922
30923 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
30924 on param update.
30925
30926 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30927
30928 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
30929 subtype if code is being pre-analyzed, to prevent un-expanded
30930 references to protected formals, among others.
30931 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
30932 interpretation that can be a call, include the result of the call as a
30933 possible interpretation of the dereference.
30934
30935 * sem_ch5.adb (Process_Bounds): Determine type of range by
30936 pre-analyzing a copy of the original range, and then analyze the range
30937 with the expected type.
30938
30939 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
30940 with an overloaded prefix where not all interpretations yield an
30941 access to subprogram, do not rewrite node as a call.
30942 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
30943 the node as a call once the context identifies the interpretation of
30944 the prefix whose call yields the context type.
30945 (Valid_Conversion): For the case of a conversion between
30946 local access-to-subprogram types, check subtype conformance using
30947 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
30948 detailed error message.
30949
30950 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30951
30952 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
30953 indicator, indicate that the formal can never be null.
30954 (Process_Formals): If a formal has a non_null indicator, insert the
30955 resulting subtype immediately before the enclosing subprogram decl,
30956 and not at the beginning of the corresponding declarative part, to
30957 prevent access before elaboration (Ada2005).
30958
30959 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30960
30961 PR ada/19956
30962 * utils.c (finish_record_type): Use variable_size when setting sizes.
30963
30964 2005-03-29 Robert Dewar <dewar@adacore.com>
30965
30966 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
30967 guarantee Unix style line terminators for the output files, even when
30968 running on windows.
30969
30970 2005-03-29 Robert Dewar <dewar@adacore.com>
30971
30972 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
30973 buffer if an exception is raised.
30974
30975 2005-03-29 Ed Falis <falis@adacore.com>
30976
30977 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
30978 VxWorks 653 1.4
30979
30980 2005-03-29 Robert Dewar <dewar@adacore.com>
30981
30982 * sem_util.ads: Minor reformatting
30983 * gnat_rm.texi: Minor editing.
30984
30985 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
30986
30987 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
30988 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
30989
30990 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30991
30992 * adaint.c (__gnat_portable_spawn): Adjust cast.
30993
30994 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
30995
30996 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
30997
30998 2005-03-17 Pascal Obry <obry@adacore.com>
30999
31000 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
31001 used.
31002
31003 * expect.c (__gnat_waitpid): Moved here from adaint.c.
31004 Reimplement under Win32 using Win32 API.
31005
31006 (__gnat_kill) [Win32]: Properly close the process handle before leaving
31007 this routine.
31008
31009 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
31010
31011 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
31012 (DECL_RENAMED_OBJECT): New accessor macro.
31013 (SET_DECL_RENAMED_OBJECT): New setter macro.
31014
31015 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
31016 object in all cases. Attach the renamed object to the VAR_DECL.
31017 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
31018 field is not prescribed.
31019
31020 * misc.c (gnat_handle_option): Handle -gnatO separately.
31021 (gnat_print_decl) <VAR_DECL>: New case.
31022 Print the DECL_RENAMED_OBJECT node.
31023
31024 * lang.opt: Declare separate -gnatO option.
31025
31026 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
31027 pointer, replace it with the renamed object.
31028 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
31029 pointer type if the source is not a fat pointer type whose underlying
31030 array has the same non-zero alias set as that of the destination array.
31031
31032 2005-03-17 Javier Miranda <miranda@adacore.com>
31033
31034 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
31035 (Get_Inheritance_Depth): Removed.
31036 (Set_Inheritance_Depth): Removed.
31037
31038 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
31039 subprogram Get_Expanded_Name because it is not referenced by the
31040 frontend.
31041
31042 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
31043 (CPP_Get_Inheritance_Depth): Removed.
31044 (CPP_Set_Inheritance_Depth): Removed.
31045
31046 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
31047
31048 2005-03-17 Robert Dewar <dewar@adacore.com>
31049
31050 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
31051 3, since we now expect GCC 3 to do all the work.
31052
31053 2005-03-17 Javier Miranda <miranda@adacore.com>
31054
31055 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
31056 of one barrier to avoid wrong usage of this attribute.
31057
31058 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
31059 First_Private_Entity.
31060
31061 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
31062 the subprogram against wrong usage.
31063 Adapt the code to traverse the entities in the
31064 scope of a record_type because in addition to its usage regarding
31065 packages, this subprogram is also called by Expand_N_Freeze_Entity
31066 to install the visible declarations of the enclosing scope of a
31067 record_type_with_private to establish the proper visibility before
31068 freezing the entity and related subprograms.
31069
31070 2005-03-17 Ed Schonberg <schonberg@adacore.com>
31071
31072 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
31073 entry formals.
31074
31075 2005-03-17 Thomas Quinot <quinot@adacore.com>
31076
31077 * exp_ch3.adb (Check_Attr): New subprogram.
31078 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
31079 into a new Check_Attr subprogram, in order to provide a more
31080 explanatory error message (including the name of the missing attribute).
31081 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
31082 subprogram determines whether a default implementation exists for a
31083 given stream attribute.
31084 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
31085 Determine whether to generate a default implementation for each stream
31086 attribute separately, as this depends on the specific attribute.
31087
31088 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
31089 limited extension where a stream attribute is missing for a limited
31090 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
31091 generate a bogus reference to the missing attribute to prevent
31092 cascaded errors. Instead, generate a null statement.
31093
31094 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
31095 available for a limited type if it has been specified for an ancestor
31096 of the type.
31097
31098 2005-03-17 Ed Schonberg <schonberg@adacore.com>
31099
31100 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
31101 entity is an operator.
31102
31103 2005-03-17 Thomas Quinot <quinot@adacore.com>
31104
31105 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
31106 spec, to make this predicate available to other units.
31107
31108 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
31109 reimplementing it.
31110
31111 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
31112 when no distribution runtime library is available.
31113
31114 * sem_res.adb, sem_dist.adb: Disable expansion of remote
31115 access-to-subprogram types when no distribution runtime library is
31116 available.
31117 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
31118 predicate available to other units.
31119
31120 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
31121 spec, to make this predicate available to other units.
31122
31123 2005-03-17 Vincent Celier <celier@adacore.com>
31124
31125 * make.adb (Insert_Project_Sources): Make sure the Q is always
31126 initialized.
31127
31128 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
31129 the default for the tree, not the global default naming.
31130
31131 * prj-proc.adb (Recursive_Process): No need to put the default naming
31132 in the project data, it's already there.
31133
31134 2005-03-17 Doug Rupp <rupp@adacore.com>
31135
31136 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
31137
31138 * 5xcrtl.ads: Renamed to...
31139 * s-crtl-vms64.ads: ...this new file
31140
31141 2005-03-17 Robert Dewar <dewar@adacore.com>
31142
31143 PR ada/19519
31144 * namet.adb (Copy_One_Character): Set proper wide character encoding
31145 for upper half character if we have upper half encoding.
31146
31147 2005-03-17 Robert Dewar <dewar@adacore.com>
31148
31149 * par.adb (Par): Improved msg for attempt to recompile predefined unit
31150
31151 2005-03-17 Thomas Quinot <quinot@adacore.com>
31152
31153 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
31154 tagged limited type, the TSS is a newly built renaming declaration:
31155 insert it using Set_TSS, not Copy_TSS.
31156
31157 2005-03-17 Javier Miranda <miranda@adacore.com>
31158
31159 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
31160 Try_Object_Operation): Analyze the object that is accessible
31161 through the prefix of the subprogram call before we apply
31162 the transformation of the object-operation notation.
31163
31164 2005-03-17 Jose Ruiz <ruiz@adacore.com>
31165
31166 * s-taprob.adb (Initialize_Protection): Initialize the protected
31167 object's owner to Null_Task.
31168 (Lock): If pragma Detect_Blocking is in effect and the caller of this
31169 procedure is already the protected object's owner then Program_Error
31170 is raised. In addition the protected object's owner is updated.
31171 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
31172 of this procedure is already the protected object's owner then
31173 Program_Error is raised.
31174 In addition the protected object's owner is updated.
31175 (Unlock): Remove the ownership of the protected object.
31176
31177 * s-taprob.ads (Protection): Add the field Owner, used to store the
31178 protected object's owner.
31179 This component is needed for detecting one type of potentially blocking
31180 operations (external calls on a protected subprogram with the same
31181 target object as that of the protected action). Document the rest of
31182 the components.
31183
31184 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
31185 Initialize the protected object's owner to Null_Task.
31186 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
31187 caller of this procedure is already the protected object's owner then
31188 Program_Error is raised.
31189 Do not raise Program_Error when this procedure is called from a
31190 protected action.
31191 (Unlock_Entries): Remove the ownership of the protected object.
31192 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
31193 of this procedure is already the protected object's owner then
31194 Program_Error is raised.
31195 Do not raise Program_Error when this procedure is called from
31196 a protected action.
31197
31198 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
31199 used to store the protected object's owner.
31200
31201 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
31202 effect and this procedure (a potentially blocking operation) is called
31203 from whithin a protected action, Program_Error is raised.
31204 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
31205 and this procedure (a potentially blocking operation) is called from
31206 whithin a protected action, Program_Error is raised.
31207
31208 2005-03-17 Vincent Celier <celier@adacore.com>
31209 Nicolas Setton <setton@adacore.com>
31210
31211 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
31212 switch, not supported by the linker on Darwin. Add '_' before
31213 <library>init, as this character is added unconditionally by the
31214 compiler.
31215 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
31216 correct one ".dylib". This fixes detection of the archive files when
31217 building library projects.
31218
31219 2005-03-17 Vincent Celier <celier@adacore.com>
31220
31221 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
31222 -gnat83, -gnat95 and -gnat05.
31223
31224 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
31225
31226 * gnat_ugn.texi: Document gnatmem restriction
31227
31228 2005-03-17 Thomas Quinot <quinot@adacore.com>
31229
31230 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
31231 cleanup
31232
31233 2005-03-17 Robert Dewar <dewar@adacore.com>
31234
31235 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
31236 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
31237 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
31238
31239 * casing.adb: Comment improvements
31240
31241 2005-03-17 Pascal Obry <obry@adacore.com>
31242
31243 * g-expect.adb: Minor reformatting.
31244
31245 2005-03-15 Zack Weinberg <zack@codesourcery.com>
31246
31247 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
31248 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
31249 to dependencies.
31250
31251 2005-03-15 Vincent Celier <celier@adacore.com>
31252
31253 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
31254 Add new parameter In_Tree to specify the project tree: needed
31255 by the project manager. Adapt to changes in project manager
31256 using new parameter In_Tree.
31257
31258 2005-03-15 Jakub Jelinek <jakub@redhat.com>
31259
31260 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
31261 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
31262 ada/bldtools to avoid make -jN failures.
31263
31264 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31265
31266 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
31267 to NULL_TREE on entry.
31268
31269 2005-03-15 Robert Dewar <dewar@adacore.com>
31270
31271 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
31272 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
31273 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
31274 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
31275 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
31276 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
31277 system-interix.ads, system-solaris-sparc.ads,
31278 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
31279 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
31280 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
31281 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
31282 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
31283 Compiler_System_Version to be False.
31284
31285 * opt.ads: Add new flag Opt.Address_Is_Private
31286
31287 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
31288 Add new parameter Compiler_System_Version to avoid checking for
31289 completeness of parameters when compiler is compiling itself.
31290 Allows old versions of GNAT to be compiled with new compiler.
31291
31292 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31293
31294 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
31295 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
31296 calling thread.
31297 (Stack_Base_Available): New flag.
31298 (Get_Page_Size): New overloaded functions imported from C.
31299 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
31300 PROT_ON, PROT_OFF): New constants.
31301 (mprotect): New function imported from C.
31302 (pthread_teb_t): New record type.
31303
31304 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
31305 (Create_Task): Account for the Yellow Zone and the guard page.
31306
31307 2005-03-15 Vincent Celier <celier@adacore.com>
31308
31309 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31310 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31311 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
31312 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
31313 Library_File_Name_For): Add new parameter In_Tree
31314 to specify the project tree: needed by the project manager.
31315 Adapt to changes in project manager using new parameter In_Tree.
31316 Remove local imports, use functions in System.CRTL.
31317
31318 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
31319 to use the project manager.
31320
31321 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
31322 In_Tree to designate the project tree. Adapt to changes in the project
31323 manager, using In_Tree.
31324
31325 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
31326 Copy_Interface_Sources): Add new parameter In_Tree to specify the
31327 project tree: needed by the project manager.
31328 (Build_Library): Check that Arg'Length >= 6 before checking if it
31329 contains "--RTS=...".
31330
31331 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
31332 Library_File_Name_For): Add new parameter In_Tree to specify the
31333 project tree: needed by the project manager.
31334
31335 * prj.ads, prj.adb: Major modifications to allow several project trees
31336 in memory at the same time.
31337 Change tables to dynamic tables and hash tables to dynamic hash
31338 tables. Move tables and hash tables from Prj.Com (in the visible part)
31339 and Prj.Env (in the private part). Move some constants from the visible
31340 part to the private part. Make other constants deferred.
31341 (Project_Empty): Make it a variable, not a function
31342 (Empty_Project): Add parameter Tree. Returns the data with the default
31343 naming data of the project tree Tree.
31344 (Initialize): After updating Std_Naming_Data, copy its value to the
31345 component Naming of Project Empty.
31346 (Register_Default_Naming_Scheme): Use and update the default naming
31347 component of the project tree, instead of the global variable
31348 Std_Naming_Data.
31349 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
31350 Tree is not defaulted, return the default naming data of the Tree.
31351 (Initial_Buffer_Size): Constant moved from private part
31352 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
31353 variables initialized in procedure Initialize.
31354 (Add_To_Buffer): Add two in out parameters to replace global variables
31355 Buffer and Buffer_Last.
31356 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
31357 functions.
31358 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
31359 hash tables.
31360 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
31361 for the project tree.
31362 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
31363 constant at the beginning of the package spec, so that they cane be used
31364 in subprograms before their full declarations.
31365 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
31366 (Empty_Project): Add parameter of type Project_Node_Ref
31367 (Private_Project_Tree_Data): Add component Default_Naming of type
31368 Naming_Data.
31369 (Buffer, Buffer_Last): remove global variables
31370 (Add_To_Buffer): Add two in out parameters to replace global variables
31371 Buffer and Buffer_Last.
31372 (Current_Packages_To_Check): Remove global variable
31373 (Empty_Name): Move to private part
31374 (No-Symbols): Make it a constant
31375 (Private_Project_Tree_Data): New type for the private part of the
31376 project tree data.
31377 (Project_Tree_Data): New type for the data of a project tree
31378 (Project_Tree_Ref): New type to designate a project tree
31379 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
31380 for the project tree.
31381
31382 * prj-attr.ads: Add with Table; needed, as package Prj no longer
31383 imports package Table.
31384
31385 * prj-com.adb: Remove empty, no longer needed body
31386
31387 * prj-com.ads: Move most of the content of this package to package Prj.
31388
31389 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
31390 designate the project node tree and Packages_To_Check to replace
31391 global variable Current_Packages_To_Check.
31392 Add new parameters In_Tree and Packages_To_Check to local subprograms,
31393 when needed. Adapt to changes in project manager with project node tree
31394 In_Tree.
31395
31396 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
31397 project tree to most subprograms. Move tables and hash tables to
31398 private part of package Prj.
31399 Adapt to changes in project manager using project tree In_Tree.
31400
31401 * prj-makr.adb (Tree): New constant to designate the project node tree
31402 Adapt to change in project manager using project node tree Tree
31403
31404 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
31405 display the Library_Src_Dir and the Library_Dir.
31406 Add new parameter In_Tree to designate the project node tree to most
31407 subprograms. Adapt to changes in the project manager, using project tree
31408 In_Tree.
31409 (Check_Naming_Scheme): Do not alter the casing on platforms where
31410 the casing of file names is not significant.
31411 (Check): Add new parameter In_Tree to designate the
31412
31413 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
31414 designate the project tree.
31415 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
31416
31417 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
31418 to replace those that were in the private part of package Prj.
31419 Add new parameter In__Tree to designate the project node tree to most
31420 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
31421 (Post_Parse_Context_Clause): When specifying the project node of a with
31422 clause, indicate that it is a limited with only if there is "limited"
31423 in the with clause, not necessarily when In_Limited is True.
31424 (Parse): Add new parameter In_Tree to designate the project node tree
31425
31426 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
31427 designate the project node tree. Adapt to change in Prj.Tree with
31428 project node tree In_Tree.
31429
31430 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
31431 tree In_Tree in the call to function Empty_Process to give its initial
31432 value to the project data Processed_Data.
31433 Add new parameters In_Tree to designate the project tree and
31434 From_Project_Node_Tree to designate the project node tree to several
31435 subprograms. Adapt to change in project manager with project tree
31436 In_Tree and project node tree From_Project_Node_Tree.
31437
31438 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
31439 to replace those that were in the private part of package Prj.
31440 Add new parameter In_Tree to designate the project node tree to most
31441 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
31442
31443 * prj-tree.ads, prj-tree.adb: Add new parameter of type
31444 Project_Node_Tree_Ref to most subprograms.
31445 Use this new parameter to store project nodes in the designated project
31446 node tree.
31447 (Project_Node_Tree_Ref): New type to designate a project node tree
31448 (Tree_Private_Part): Change table to dynamic table and hash tables to
31449 dynamic hash tables.
31450
31451 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
31452 the project tree to most subprograms. Adapt to changes in project
31453 manager using project tree In_Tree.
31454
31455 * makegpr.adb (Project_Tree): New constant needed to use project
31456 manager.
31457
31458 2005-03-15 Olivier Hainque <hainque@adacore.com>
31459
31460 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
31461 for sigactions with SA_SIGINFO set. Call
31462 __gnat_adjust_context_for_raise before raising, to perform the
31463 potentially required adjustments to the machine context for the GCC
31464 unwinder.
31465
31466 * raise.h (__gnat_adjust_context_for_raise): New prototype.
31467
31468 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
31469 Adjust PC by one in the provided machine context.
31470 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
31471 so that the handler is passed the context structure to adjust prior to
31472 the raise.
31473 (__gnat_error_handler) HPUX: Adjust the signature to match what an
31474 SA_SIGINFO sigaction should look like. Call
31475 __gnat_adjust_context_for_raise before actually raising.
31476 (__gnat_adjust_context_for_raise): Default noop to help PC
31477 adjustments before raise from signal handlers.
31478 (__gnat_error_handler): Indirectly call a predicate function to
31479 determine if a condition should be resignaled or not.
31480 (__gnat_set_resignal_predicate): User interface to modify the predicate.
31481 (__gnat_default_resignal_p): Default GNAT predicate.
31482
31483 2005-03-15 Doug Rupp <rupp@adacore.com>
31484
31485 * adaint.c: Prefix #include of VMS system header files with vms/
31486 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
31487 Do not define a dummy function "convert_addresses" under Darwin,
31488 not needed.
31489
31490 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
31491 with vms/
31492
31493 2005-03-15 Nicolas Setton <setton@adacore.com>
31494
31495 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
31496 PPC/AIX.
31497
31498 2005-03-15 Robert Dewar <dewar@adacore.com>
31499
31500 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
31501 AI-386.
31502
31503 * a-retide.ads: Minor comment changes
31504
31505 2005-03-15 Robert Dewar <dewar@adacore.com>
31506
31507 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
31508 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
31509 Realloc_For_Chunk to private part of package.
31510 New subprograms for AI-301
31511
31512 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
31513 Get_Line procedure.
31514 Avoid unnecessary use of Get/Set_Wide_String
31515
31516 2005-03-15 Robert Dewar <dewar@adacore.com>
31517
31518 PR ada/13470
31519 * a-stunau.ads, a-stunau.adb:
31520 Change interface to allow efficient (and correct) implementation
31521 The previous changes to allow extra space in unbounded strings had
31522 left this interface a bit broken.
31523
31524 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
31525
31526 * g-spipat.ads, g-spipat.adb: New interface for Get_String
31527 Minor reformatting (function specs)
31528
31529 * g-spitbo.adb: New interface for Get_String
31530
31531 * g-spitbo.ads: Minor reformatting
31532
31533 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
31534
31535 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
31536
31537 2005-03-15 Javier Miranda <miranda@adacore.com>
31538 Robert Dewar <dewar@adacore.com>
31539 Thomas Quinot <quinot@adacore.com>
31540 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31541
31542 * atree.ads, atree.adb: Add support for Elist24 field
31543
31544 * atree.h: Fix wrong definition of Field27
31545 Add support for Elist16 field
31546 Add support for Elist24 field
31547
31548 * einfo.ads, einfo.adb (Abstract_Interfaces,
31549 Set_Abstract_Interfaces): New subprograms.
31550 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
31551 subprograms.
31552 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
31553 entities rather than a single node.
31554 (Is_Interface, Set_Is_Interface): New subprogram
31555 (First_Tag_Component): New syntesized attribute
31556 (Next_Tag_Component): New synthesized attribute
31557 (Write_Entity_Flags): Upgraded to write Is_Interface
31558 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
31559 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
31560 (Task_Body_Procedure): New subprogram to read this attribute.
31561 (Set_Task_Body_Procedure): New subprogram to set this attribute.
31562 (Has_Controlled_Component): Now applies to all entities.
31563 This is only a documentation change, since it always worked to apply
31564 this to other than composite types (yielding false), but now this is
31565 official.
31566 Update documentation on Must_Be_Byte_Aligned for new spec
31567
31568 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
31569 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
31570 uses of the Access_Disp_Table attribute to reference the first dispatch
31571 table associated with a tagged type. As
31572 part of the implementation of abstract interface types,
31573 Access_Disp_Table has been redefined to contain a list of dispatch
31574 tables (rather than a single dispatch table).
31575 Similarly, upgrade all the references to Tag_Component by the
31576 new attribute First_Tag_Component.
31577 (Find_Inherited_TSS): Moved to exp_tss.
31578 Clean up test in Expand_N_Object_Declaration for cases
31579 where we need to do a separate assignment of the initial value.
31580 (Expand_N_Object_Declaration): If the expression in the
31581 declaration of a tagged type is an aggregate, no need to generate an
31582 additional tag assignment.
31583 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
31584 is to be deleted.
31585 Bit packed array ops are only called if operands are known to be
31586 aligned.
31587 (Component_Equality): When returning an N_Raise_Program_Error statement,
31588 ensure that its Etype is set to Empty to avoid confusing GIGI (which
31589 expects that only expressions have a bona fide type).
31590 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
31591 determine the amount of data to be copied.
31592
31593 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
31594 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
31595 INTERFACE_TYPE_DEFINITION ::=
31596 [limited | task | protected | synchronized] interface
31597 [AND interface_list]
31598
31599 * par-ch3.adb (P_Type_Declaration): Modified to give support to
31600 interfaces.
31601 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
31602 interfaces.
31603 (P_Interface_Type_Definition): New subprogram that parses the new
31604 syntax rule of Ada 2005 interfaces
31605 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
31606 messages by the correct RENAMES (quotes removed).
31607
31608 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
31609 attribute First_Tag_Component.
31610
31611 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
31612 (Interface_List, Set_Interface_List): New subprograms.
31613 (Interface_Present, Set_Interface_Present): New subprograms.
31614 (Limited_Present, Set_Limited_Present): Available also in derived
31615 type definition nodes.
31616 (Protected_Present, Set_Protected_Present): Available also in
31617 record type definition and
31618 derived type definition nodes.
31619 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
31620 (Task_Present, Set_Task_Present): New subprogram.
31621 (Task_Body_Procedure): Removed.
31622 (Set_Task_Body_Procedure): Removed.
31623 These subprogram have been removed because the attribute
31624 Task_Body_Procedure has been moved to the corresponding task type
31625 or task subtype entity to leave a field free to store the list
31626 of interfaces implemented by a task (for AI-345)
31627 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
31628 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
31629 expression flag Do_Range_Check
31630 (Exception_Junk): Change to Flag7 to accomodate above change
31631 (Box_Present, Default_Name, Specification, Set_Box_Present,
31632 Set_Default_Name, Set_Specification): Expand the expression
31633 "X in N_Formal_Subprogram_Declaration" into the corresponding
31634 two comparisons. Required to use the csinfo tool.
31635
31636 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
31637 "with string" given.
31638
31639 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
31640 expression given.
31641
31642 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
31643 in 2005 mode
31644
31645 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
31646 attribute Task_Body_Procedure rather than the old semantic field that
31647 was available in the task_type_declaration node.
31648
31649 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
31650 interface type definitions.
31651 (P_Formal_Derived_Type_Definition): Modified to handle the list of
31652 interfaces.
31653
31654 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
31655 task type declaration.
31656 (P_Protected): Modified to handle the list of interfaces in a
31657 protected type declaration.
31658
31659 2005-03-15 Doug Rupp <rupp@adacore.com>
31660 Vincent Celier <celier@adacore.com>
31661
31662 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
31663 (Gen_Output_File_C): Likewise.
31664 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
31665
31666 2005-03-15 Thomas Quinot <quinot@adacore.com>
31667
31668 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
31669 is an N_Raise_Constraint_Error node, create a new copy of it without
31670 going through a call to Duplicate_Subexpr.
31671
31672 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31673 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31674 Nicolas Setton <setton@adacore.com>
31675 Ed Schonberg <schonberg@adacore.com>
31676
31677 PR ada/19900
31678 PR ada/19408
31679 PR ada/19140
31680 PR ada/20255
31681 * decl.c (gnat_to_gnu_field): Reject aliased components with a
31682 representation clause that prescribes a size not equal to the rounded
31683 size of their types.
31684 (gnat_to_gnu_entity, case E_Component): Always look at
31685 Original_Record_Component if Present and not the entity.
31686 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
31687 of tagged extension types by not making field for components that are
31688 inside the parent.
31689 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
31690 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
31691 expression to the type of the object when the object is constant.
31692 Reverse defer_debug_incomplete_list before traversing it, so that trees
31693 are processed in the order at which they were added to the list. This
31694 order is important when using the stabs debug format.
31695 If we are deferring the output of debug information, also defer this
31696 output for a function return type.
31697 When adding fields to a record, prevent emitting debug information
31698 for incomplete records, emit the information only when the record is
31699 complete.
31700 (components_to_record): New parameter defer_debug.
31701 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
31702 (gnat_to_gnu_field_decl): New function.
31703 (substitution_list, annotate_rep): Call it.
31704 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
31705 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
31706 No longer update discriminants to not be a COMPONENT_REF.
31707 (copy_alias_set): Strip padding from input type; also handle
31708 unconstrained arrays properly.
31709
31710 * gigi.h (write_record_type_debug_info): New function.
31711 Convert to use ANSI-style prototypes. Remove unused
31712 declarations for emit_stack_check, elab_all_gnat and
31713 set_second_error_entity.
31714 (gnat_to_gnu_field_decl): New decl.
31715
31716 * utils.c (write_record_type_debug_info): New function.
31717 (finish_record_type): Delegate generation of debug information to
31718 write_record_type_debug_info.
31719 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
31720 (update_pointer_to): Fix pasto.
31721 (convert) <UNION_TYPE>: Accept slight type variations when
31722 converting to an unchecked union type.
31723
31724 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
31725 replace the N_Freeze_Entity with a null statement.
31726
31727 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
31728 within a constrained subcomponent of an enclosing record, place the
31729 freeze nodes in the scope stack entry for the enclosing record.
31730 (Undelay_Type): New Subprogram.
31731 (Set_Small_Size): Pass T, the type to modify; all callers changed.
31732 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
31733 within records; allow them to have freeze nodes if their base types
31734 aren't frozen yet.
31735
31736 * exp_util.adb (Remove_Side_Effects): Properly test for
31737 Expansion_Delayed and handle case when it's inside an
31738 N_Qualified_Expression.
31739
31740 * sem_ch3.adb (Derived_Type_Declaration): New predicate
31741 Comes_From_Generic, to recognize accurately that the parent type in a
31742 derived type declaration can be traced back to a formal type, because
31743 it is one or is derived from one, or because its completion is derived
31744 from one.
31745 (Constrain_Component_Type): If component comes from source and has no
31746 explicit constraint, no need to constrain in in a subtype of the
31747 enclosing record.
31748 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
31749 Minor change to propagate Is_Ada_2005 flag
31750
31751 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
31752 Expansion_Delayed is False.
31753 (assoc_to_constructor): Ignore fields that have a
31754 Corresponding_Discriminant.
31755 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
31756 function returns "by target", dereference the target pointer using the
31757 type of the actual return value.
31758 <all>: Be prepared for a null gnu_result.
31759 (processed_inline_subprograms): Check flag_really_no_inline
31760 instead of flag_no_inline.
31761 (set_second_error_entity): Remove unused function.
31762 (gnat_to_gnu, case N_Selected_Component): Call
31763 gnat_to_gnu_field_decl.
31764 (assoc_to_constructor): Likewise.
31765
31766 2005-03-15 Robert Dewar <dewar@adacore.com>
31767 Ed Schonberg <schonberg@adacore.com>
31768 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31769
31770 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
31771 Must_Be_Byte_Aligned for cases where we do not need to use a
31772 System.Pack_nn unit.
31773
31774 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
31775 as procedures.
31776 Needed now that we do some processing for IN parameters as well. This
31777 may well fix some unrelated errors.
31778 (Expand_Call): Handle case of unaligned objects (in particular those
31779 that come from packed arrays).
31780 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
31781 renamed entity is an inherited operation, re-expand the call using the
31782 original operation, which is the one to call.
31783 Detect attempt to inline parameterless recursive subprogram.
31784 (Represented_As_Scalar): Fix to work properly with private types
31785 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
31786 accurate estimate. Yields True in far fewer cases than before,
31787 improving the quality of code that depends on this test.
31788
31789 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
31790 over both visible and private declarations to remove them from tree,
31791 and mark subprograms declared in package as eliminated, to prevent
31792 spurious use in subsequent compilation of generic units in the context.
31793
31794 * exp_util.ads: Minor cleanup in variable names
31795
31796 * sem_eval.ads, sem_eval.adb: Minor reformatting
31797 (Compile_Time_Known_Bounds): New function
31798
31799 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31800
31801 * exp_ch7.adb (Convert_View): Use base types of underlying types when
31802 determining whether an unchecked conversion is needed for the argument
31803 of an initialization call.
31804
31805 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31806
31807 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
31808 that appears in the instantiation rather than the internal subtype
31809 generated in the wrapper package, to avoid anomalies in gigi when the
31810 target is derived from a private type whose full view is an access type.
31811
31812 2005-03-15 Robert Dewar <dewar@adacore.com>
31813
31814 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
31815 not needed.
31816 Add documentation to replace the use of this flag
31817 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
31818 the x86_64.
31819
31820 2005-03-15 Thomas Quinot <quinot@adacore.com>
31821
31822 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
31823 here from exp_attr so it can be shared between exp_attr and exp_dist.
31824 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
31825 all TSS names, not a subset thereof, and the previous name introduced
31826 an unnecessarily confusion that a distinction might exist between
31827 "OK" TSS names and some "not OK" TSS names.
31828
31829 2005-03-15 Doug Rupp <rupp@adacore.com>
31830
31831 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
31832 Command_Name.
31833
31834 2005-03-15 Pascal Obry <obry@adacore.com>
31835 Eric Botcazou <ebotcazou@adacore.com>
31836
31837 PR ada/20226
31838 PR ada/20344
31839 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
31840 when IN_RTS. This is to work around a bootstrap path problem.
31841
31842 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
31843 table and pass it to __gnat_install_SEH_handler().
31844 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
31845
31846 * lang.opt: Fix specification of -fRTS=.
31847
31848 2005-03-15 Doug Rupp <rupp@adacore.com>
31849 Bernard Banner <banner@adacore.com>
31850 Vincent Celier <celier@adacore.com>
31851 Arnaud Charlet <charlet@adacore.com>
31852
31853 PR ada/6852
31854 This change works fine when gnatlib is built from the gcc directory,
31855 but does not work when using the libada Makefile, since GCC_FOR_TARGET
31856 is not passed to ada/Makefile.in, so more work is needed by a
31857 Makefile/configure expert.
31858
31859 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
31860 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
31861 Setup gnatlink switch -M for x86_64 linux, as it is already setup
31862 for Linux x86.
31863 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
31864 Run ranlib on libgccprefix.a
31865 Define PREFIX_OBJS for Darwin, to build libgccprefix.
31866 (ADA_INCLUDE_SRCS): Split Ada packages.
31867
31868 2005-03-15 Robert Dewar <dewar@adacore.com>
31869
31870 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
31871
31872 * impunit.adb: Add GNAT.UTF_32
31873
31874 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
31875
31876 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
31877 now uses GNAT.UTF_32).
31878
31879 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
31880 capabilities for categorizing characters using Unicode categories
31881
31882 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31883
31884 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
31885 instantiation that has been rewritten as a package body, retrieve spec
31886 to generate proper name for implicit_with_clause.
31887 (Install_Parents): Recognize a parent that is an instantiation but has
31888 been rewritten as a package declaration during analysis.
31889
31890 2005-03-15 Javier Miranda <miranda@adacore.com>
31891 Ed Schonberg <schonberg@adacore.com>
31892
31893 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
31894 parameter reported some error we immediately return. This improves the
31895 behaviour of the frontend in case of errors.
31896 (Install_Parent, Remove_Parent): Introduce new flag
31897 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
31898 ancestor of a generic child unit, when the child is being instantiated.
31899 (Inline_Instance_Body): If we are compiling the private
31900 part or the body of a child unit, restore the proper visibility of the
31901 parents after compiling the instance body.
31902
31903 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31904 Javier Miranda <miranda@adacore.com>
31905
31906 PR ada/15608
31907 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
31908 of a private type, in which case it is underlying_type that denotes
31909 the proper task. Also modified to use the new entity attribute
31910 that is directly available in the task type and task subtype entities
31911 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
31912 arrays when other dimensions than the first are constrained by
31913 discriminants of an enclosing record.
31914 (Insert_Explicit_Dereference): If the prefix is an indexed component or
31915 a combination of indexed and selected components, find ultimate entity
31916 and generate the appropriate reference for it, to suppress spurious
31917 warnings.
31918 (Note_Possible_Modification): If an entity name has no entity, return.
31919 (Is_Variable): A function call never denotes a variable.
31920 (Requires_Transient_Scope): For record types, recurse only on
31921 components, not on internal subtypes that may have been generated for
31922 constrained components.
31923
31924 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31925
31926 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
31927 Eliminated as candidates for resolution. Both efficient, and avoids
31928 anomalies with operators declared in deleted code.
31929 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
31930 expansion is disabled (as when compiling a generic) to prevent spurious
31931 warnings on prefixes of selected components.
31932
31933 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31934
31935 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
31936 attached to a list before checking whether it appears in the private
31937 declarations of the current package.
31938 (Make_Inequality_Operator): Insert declaration in proper declarative
31939 list rather than just setting the Parent field, so that
31940 Is_Private_Declaration can handle it properly.
31941
31942 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31943
31944 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
31945 a renaming a body, check that the renamed subprogram in not intrinsic.
31946 (Find_Direct_Name): If several use_visible entities hide
31947 each other, and the context is a predefined file compiled through
31948 rtsfind, keep only the entity that comes from a predefined file.
31949
31950 2005-03-15 Geert Bosch <bosch@adacore.com>
31951
31952 * s-fatgen.adb (Valid): Extend special exceptions to account for long
31953 long float padding to also cover AMD64 and IA64.
31954
31955 2005-03-15 Gary Dismukes <dismukes@adacore.com>
31956
31957 * s-imgwch.adb: Add with and use of Interfaces.
31958 (Img_Wide_Character): Change type of Val to Unsigned_16.
31959 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
31960
31961 2005-03-15 Matthew Gingell <gingell@adacore.com>
31962
31963 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
31964
31965 2005-03-15 Robert Dewar <dewar@adacore.com>
31966
31967 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
31968
31969 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
31970
31971 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
31972
31973 2005-03-15 Robert Dewar <dewar@adacore.com>
31974
31975 * s-bitops.adb, s-bitops.ads,
31976 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
31977 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
31978 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
31979 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
31980 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
31981 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
31982 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
31983 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
31984 reformatting.
31985
31986 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31987
31988 * utils2.c (build_binary_op): Fix typo.
31989
31990 2005-03-15 Doug Rupp <rupp@adacore.com>
31991
31992 * s-crtl.ads (popen,pclose): New imports.
31993
31994 2005-03-15 Cyrille Comar <comar@adacore.com>
31995
31996 * comperr.adb (Compiler_Abort): remove references to obsolete
31997 procedures in the bug boxes for various GNAT builds.
31998
31999 2005-03-15 Vincent Celier <celier@adacore.com>
32000
32001 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
32002
32003 2005-03-15 Geert Bosch <bosch@adacore.com>
32004 Arnaud Charlet <charlet@adacore.com>
32005 Robert Dewar <dewar@adacore.com>
32006 Cyrille Comar <comar@adacore.com>
32007 Sergey Rybin <rybin@adacore.com>
32008
32009 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
32010 too specific and long-winded to be appropriate for the GNAT User's
32011 Guide.
32012 Warn about use of GCC switches not documented in the GNAT User's Guide,
32013 as these may cause generated code to not conform to Ada semantics.
32014 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
32015 Add documentation for -gnat95 and -gnat05 switches
32016 Remove paragraph documenting obsolete way to refer to third party
32017 libraries.
32018 Add a few references to Ada_05 that were missing.
32019 Update documentation on -gnatZ/-gnatL.
32020 Document limitation when using -m64 under Solaris.
32021 Change the "Name Casing" subsection of the pretty-printer section
32022 according to the changes in the dictionary processing.
32023
32024 * gnat_rm.texi: Document the Ada_05 pragma.
32025 Section on record representation clauses describes the new more
32026 relaxed rules about placement of large packed bit array components.
32027 Add documentation of GNAT.UTF_32
32028
32029 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
32030
32031 * misc.c (gnat_post_options): Turn off structural
32032 aliasing for now.
32033
32034 2005-03-08 Laurent Guerby <laurent@guerby.net>
32035
32036 * system-linux-sparc.ads: Fix typo in previous commit.
32037
32038 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
32039 Laurent Guerby <laurent@guerby.net>
32040
32041 PR ada/20035
32042 * system-linux-sparc.ads: New.
32043 * Makefile.in: Add sparc linux entry.
32044
32045 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
32046
32047 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
32048 parameters as unused.
32049
32050 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
32051 Partial merge from libada-gnattools-branch:
32052
32053 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
32054 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
32055 into code in gnattools/Makefile.in. Remove direct dependencies on
32056 stamp-tools by tools clauses.
32057 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
32058 * config-lang.in: Add gnattools to $lang_dirs.
32059
32060 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
32061
32062 PR ada/19942
32063 * utils.c (gnat_type_for_mode): Return null instead of ICE because
32064 we asked for an unknown mode.
32065
32066 2005-02-12 Richard Henderson <rth@redhat.com>
32067
32068 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
32069 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
32070
32071 2005-02-10 Andreas Jaeger <aj@suse.de>
32072
32073 * init.c (__gnat_initialize): Mark parameter as unused.
32074
32075 2005-02-09 Doug Rupp <rupp@adacore.com>
32076
32077 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
32078 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
32079
32080 2005-02-09 Doug Rupp <rupp@adacore.com>
32081
32082 * gnatchop.adb (dup, dup2),
32083 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
32084
32085 * gnatlbr.adb (mkdir),
32086 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
32087
32088 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
32089
32090 2005-02-09 Doug Rupp <rupp@adacore.com>
32091
32092 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
32093
32094 2005-02-09 Robert Dewar <dewar@adacore.com>
32095 Thomas Quinot <quinot@adacore.com>
32096 Javier Miranda <miranda@adacore.com>
32097 Pascal Obry <obry@adacore.com>
32098 Ed Schonberg <schonberg@adacore.com>
32099 Doug Rupp <rupp@adacore.com>
32100 Gary Dismukes <dismukes@adacore.com>
32101 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32102
32103 * g-zstspl.ads: New file.
32104
32105 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
32106
32107 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
32108 Ada 95 mode
32109 Add definition of Wide_Wide_Space for AI-285
32110
32111 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
32112 interface (to support Ada 95 and Ada 2005 units).
32113 Add Unbounded_IO files
32114 Add entries for Wide_Wide packages for AI-285
32115 Add list of containers packages to Ada 2005 unit list
32116
32117 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
32118 support new Unbounded_IO package cleanly.
32119
32120 * g-utf_32.ads, g-utf_32.adb: New files.
32121
32122 * Makefile.rtl: Add entry for g-utf_32
32123 Add new files for Unbounded_IO
32124 Adjust make file for new AI-285 wide wide packages
32125 Add AI-302 containers to the run time.
32126
32127 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
32128 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
32129 subprograms for AI-301.
32130
32131 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
32132
32133 * a-stunau.ads: Minor comment correction
32134
32135 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
32136 etc.
32137 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
32138 (Check_RPC): Update to match changes in expanded code.
32139 Clean up unused entity.
32140
32141 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
32142 was not taken into account.
32143 This includes proper initialization with Normalize_Scalars.
32144 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
32145 normalize scalars cases (particularly the latter) to do a better job
32146 of finding invalid representations.
32147
32148 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
32149
32150 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
32151 used
32152
32153 * exp_dist.adb: Add support for wide wide character type
32154 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
32155 private part, generate stub bodies at the end of the private part,
32156 not the visible part.
32157 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
32158 PolyORB support.
32159 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
32160 generic wrapper to execute final processing after completing the
32161 expansion of the RPC receiver for an RACW.
32162
32163 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
32164 packages and attributes.
32165 (Preset_Names): Addition of the new reserved words of Ada 2005,
32166 that is interface, overriding and synchronized.
32167 (Get_Pragma_Id): Give support to the use of the new reserved word
32168 "interface" as a pragma name.
32169 (Is_Pragma_Name): Give support to the use of the new reserved word
32170 "interface" as a pragma name.
32171 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
32172 attribute implementation.
32173
32174 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
32175 checks to entities that are output parameters of Asm operations.
32176 Handle the Stream_Size attribute.
32177 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
32178
32179 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
32180
32181 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
32182 for second parameter being 0.0.
32183 Add support for wide wide character type.
32184 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
32185
32186 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
32187 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
32188 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
32189 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
32190 for wide wide character cases.
32191
32192 * cstand.adb: Create entities for Wide_Wide_Character and
32193 Wide_Wide_String.
32194
32195 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
32196 accordance with AI-258.
32197 Add new declarations for 16/32 bit C character types (Part of AI285)
32198
32199 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
32200 (Obsolescent_Warning): New field
32201 (Rep_Clause): New local subprogram used to share code. Returns the rep
32202 clause for which the name is given in parameter.
32203 (Has_Stream_Size_Clause): New routine.
32204 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
32205 (Address_Clause): Implementation is now using Rep_Clause.
32206 (Alignment_Clause): Idem.
32207 (Size_Clause): Idem.
32208
32209 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
32210 entity in non-Ada 2005 mode and generate warning.
32211
32212 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
32213 (Prag): Code cleanup. Remove old gnat pragma "overriding"
32214
32215 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
32216 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
32217 on the named unit if the pragma is not in the current compilation unit,
32218 so that elaboration calls in the current unit can set up an elaboration
32219 dependency on the named unit, as needed.
32220 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
32221 subprogram as well as for subprograms declared within a package.
32222 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
32223 pragma overriding.
32224
32225 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
32226 to z) to avoid some instances of duplication for Wide_Wide packages.
32227
32228 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
32229 characters.
32230
32231 * scn.adb: Char_Literal_Value field is now a Uint
32232
32233 * scng.adb: Significant rewrite to handle new Ada 2005 features
32234 allowing wide and wide wide characters in program text, e.g. for
32235 identifiers, as described in AI-285.
32236 (Set_Reserved): New procedure, makes setting up keywords cleaner.
32237 (Initialize_Scanner): Register the new reserved words of Ada 2005.
32238 (Scan): Give support to the new reserved words.
32239
32240 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
32241 warning notifying that interface, overriding, and synchronized are
32242 new reserved words.
32243 (P_Pragma): Allow the use of the new reserved word "interface" as
32244 a pragma name.
32245
32246 * gnatls.adb, gnatbind.adb,
32247 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
32248 identifiers named "interface" to "SAL_Interface".
32249
32250 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
32251 (Structured Exception handling).
32252 (Gen_Main_C): Idem.
32253
32254 * bindgen.adb:
32255 (Gen_Main_Ada): Set the default exit code if specified.
32256 (Gen_Main_C): Likewise.
32257 Part of *DC20-006.
32258 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
32259 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
32260
32261 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
32262 new -Xnnn switch.
32263
32264 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
32265 has a collision with the new Ada 2005 "interface" reserved word.
32266
32267 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
32268 generate a warning notifying that interface, overriding, and
32269 synchronized are new reserved words.
32270
32271 * scans.ads (Token_Type): Addition of the tokens corresponding to the
32272 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
32273 and Tok_Synchronized.
32274
32275 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
32276 "dispatching" rather than "primitive" operations, since dispatching
32277 calls are now allowed to abstract formal subprograms (which are not
32278 primitive).
32279 Char_Literal_Value field is now a Uint
32280 (Resolve_Slice): If the prefix is an access to an unconstrained array,
32281 compute the actual subtype of the designated object to impose the proper
32282 index constraints.
32283 (Resolve_Selected_Component): Do not insert an access check if the
32284 prefix is an access type: such a node is expanded into an explicit
32285 dereference, on which the access check is performed anyway. Removes
32286 expensive duplicate checks.
32287 (Resolve_Call): Use new flag Is_Obsolescent and field
32288 Obsolescent_Warning so that pragma Obsolescent works on library
32289 subprograms.
32290 Add support for wide wide character type
32291 (Resolve_Allocator): Replace the error message on wrong null-exclusion
32292 value by a warning message.
32293 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
32294 as fixed-point, and one of the operands is non-static and universal, it
32295 can only be an illegal exponentiation operation, in which case there is
32296 no real value to retrieve.
32297
32298 * exp_strm.adb: Add support for wide wide character type
32299 (Build_Elementary_Input_Call): Compute the size of the stream element by
32300 querying the rep chain to find the Stream_Attribute attribute value.
32301 (Build_Elementary_Write_Call): Ditto.
32302
32303 * sem_aggr.adb: Char_Literal_Value field is now a Uint
32304 Add support for wide wide character type
32305 Replace the error messages on wrong null-exclusion value by warnings
32306 as described in Ada 2005.
32307 (Resolve_Extension_Aggregate): Document the fact that the error
32308 message on class-wide expressions in extensions aggregates.
32309
32310 * sem_case.adb: Add support for wide wide character type
32311
32312 * sem_ch13.adb: Add support for wide wide character type
32313 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
32314
32315 * sem_ch3.adb: Add support for wide wide character type
32316 (Process_Subtype): If constraint is illegal for the type, set Ekind of
32317 now-useless Itype, to prevent cascaded errors on a compiler built
32318 without -gnatp.
32319
32320 * sem_ch8.adb: Add with and use of Sem_Disp.
32321 (Analyze_Subprogram_Renaming): Replace unclean uses of
32322 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
32323 of Corresponding_Spec to Empty).
32324 (Attribute_Renaming): Replace use of Corresponding_Spec with
32325 Corresponding_ Formal_Spec and simplify condition.
32326 (Use_One_Package): Check that scope of homonym of identifier is defined,
32327 before checking whether it is a wrapper package.
32328 Add support for wide wide character type
32329
32330 * sem_eval.adb: Add support for wide wide character type.
32331 (Eval_Arithmetic_Op): Check for compile time known signed integer
32332 overflow in the non-static case.
32333 (Subtypes_Statically_Match): A formal scalar type and its base type do
32334 not statically match.
32335
32336 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
32337 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
32338 subtype).
32339 (Unit_Declaration_Node): Ditto.
32340 (Is_Variable_Prefix): For the case of an indexed component whose prefix
32341 has a packed array type, the prefix has been rewritten into a type
32342 conversion. Determine variable-ness from the converted expression.
32343 Handle wide wide character cases.
32344
32345 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
32346
32347 * stringt.ads, stringt.adb: Handle full UTF-32 range.
32348 Remove ["0A"] from comment, since it can look like a line terminator.
32349 Currently we don't permit this, but this is under discussion by the
32350 ARG, and it is easy enough to use a different example.
32351
32352 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
32353 handling UTF-32 encoding for wide wide character.
32354 Implement new brackets coding ["hhhhhhhh"]
32355 Add UTF-8 encodings for full UTF-32 range
32356
32357 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
32358
32359 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
32360 bit range Add full UTF-32 support.
32361 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
32362 notify that constraint error will be raised at run-time
32363 because a null value is assigned to a null-excluding object.
32364 Remove some obsolete declarations and make Char_Code
32365 unsigned.
32366
32367 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
32368 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
32369 Rcheck subprograms.
32370
32371 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
32372 wrong null-exclusion value by a warning message.
32373 (Enable_Range_Check): Do range check if the prefix is an
32374 explicit dereference whose designated object is an unconstrained array.
32375 Current algorithm for removing duplicate checks is over-eager in this
32376 case.
32377
32378 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
32379 null-exclusion value by a warning message
32380
32381 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
32382 completely. Add support for Uint2 field
32383
32384 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
32385 exp_prag.adb: Char_Literal_Value field is now a Uint.
32386
32387 * exp_util.adb (Insert_Actions): Replace
32388 N_Formal_Subprogram_Declaration by
32389 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
32390 Char_Literal_Value field is now a Uint.
32391
32392 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
32393 defined for subprogram renaming declarations. When set, the field
32394 indicates the defining entity of a corresponding formal subprogram
32395 when the renaming corresponds to a formal subprogram association in an
32396 instantiation.
32397 (Set_Corresponding_Formal_Spec): New procedure to return
32398 Corresponding_Formal_Spec field.
32399 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
32400 (which is now a subtype).
32401 Char_Literal_Value field is now a Uint
32402
32403 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
32404 pointer to the base of the dispatch table.
32405 Minor changes to comments.
32406 (Controlling_Type): New function for determining the tagged type
32407 associated with a tagged primitive subprogram.
32408 (Expand_Dispatching_Call): Add support for a controlling actual that is
32409 directly a value of type Ada.Tag rather than a tagged object.
32410
32411 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
32412 describing the new layout.
32413 (Dispatch_Table): The expander computes the actual array size, allocates
32414 the Dispatch_Table record accordingly, and generates code that displaces
32415 the base of the record after the Typeinfo_Ptr component. The access to
32416 these components is done by means of local functions.
32417 (Offset_To_Top): New function.
32418 (Typeinfo_Ptr): New function.
32419 (Get_TSD): Modified to access the new position of the TSD.
32420 (Set_TSD): Modified to save the TSD in its new position.
32421
32422 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
32423 case of formal abstract subprograms. Add check and message for -gnat05.
32424 Update comments.
32425
32426 * sem_ch12.adb: Add with and use for Sem_Disp.
32427 (Analyze_Associations): Minor change from "=" to "in" for use of
32428 N_Formal_Subtype_Declaration (which is now a subtype).
32429 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
32430 N_Formal_Subtype_Declaration (which is now a subtype).
32431 (Analyze_Formal_Subprogram): Add handling for
32432 N_Formal_Abstract_Subprogram, marking the formal as abstract and
32433 dispatching, setting the controlling status of the formal parameters
32434 and result, and issuing an error if there is no controlling type for
32435 the formal subprogram.
32436 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
32437 which is an unclean use of that field, we set the new field
32438 Corresponding_Formal_Spec to make the formal subprogram available to
32439 processing in Analyze_Subprogram_Declaration.
32440 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
32441 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
32442 Constrained, so that it is is does not statically match its anonymous
32443 base type.
32444
32445 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
32446 abstract formal subprograms in error check for functions returning
32447 abstract types. Set scope of new designator for
32448 a parameterless subprogram, so that it is available when checking the
32449 body for nested subprograms, before full analysis of said body.
32450 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
32451 subprogram only if inner one comes from source.
32452 (Analyze_Function_Call): If the call is given in object notation, the
32453 analysis of the name rewrites the node and analyzes it with the proper
32454 argument list. After analyzing the name, if the call has been rewritten
32455 and the result type is set, no further analysis is needed.
32456 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
32457 mark in function specification, in a context where the formals are
32458 visible and hide outer homographs.
32459
32460 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
32461 as the tagged type for the cases of abstract formal subprograms and
32462 renamings of those. Clean up spec comments.
32463 (Check_Dispatching_Context): Add error message to indicate "abstract
32464 procedure", covering the case of a call to a formal abstract procedure
32465 that has statically tagged operands.
32466 (Check_Dispatching_Call): Check for the case of an actual given by
32467 a tag-indeterminate function call whose type is an ancestor of the
32468 containing call's associated tagged type. This situation can occur
32469 for inherited primitives with function defaults. In this case we
32470 use the tagged type's tag directly as the controlling argument for
32471 the calls.
32472 (Expand_Call): Name change on call to Expand_Dispatch_Call.
32473
32474 * sprint.adb (Sprint_Node_Actual): Split
32475 N_Formal_Subprogram_Declaration into two alternatives for the new
32476 cases N_Formal_Abstract_Subprogram_Declaration and
32477 N_Formal_Concrete_Subprogram_Declaration.
32478 Char_Literal_Value field is now a Uint.
32479
32480 * trans.c: Get rid of junk Uint2 reference.
32481 Char_Literal_Value field is now a Uint.
32482 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
32483 (gigi): Correct third arg to gimplify_body.
32484
32485 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
32486 (TYPE_LANG_FLAG_0): Check for record or union.
32487
32488 * treepr.adb: Char_Literal_Value field is now a Uint
32489
32490 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
32491 UI_From_CC.
32492
32493 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
32494 Add full UTF-32 support
32495 Char_Code is now 32 bits
32496
32497 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
32498 wide character UTF_32 line terminators.
32499 Initialize Main_Source_File to avoid error when no main
32500 source is loaded.
32501
32502 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
32503 (Main_Source_File) when no main source has been loaded, to avoid
32504 potential crash.
32505
32506 2005-02-09 Robert Dewar <dewar@adacore.com>
32507
32508 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
32509 Fix name of Set routine
32510
32511 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
32512 fixed packages.
32513
32514 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
32515 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
32516 fixed packages
32517
32518 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
32519 forms of Get_Line subprograms for AI-301.
32520
32521 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
32522 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
32523 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
32524 a-stwima.ads: Minor reformatting.
32525
32526 2005-02-09 Doug Rupp <rupp@adacore.com>
32527 Thomas Quinot <quinot@adacore.com>
32528
32529 * adaint.c, adaint.h
32530 [VMS] (to_ptr32): New function.
32531 (MAYBE_TO_PTR32): New macro.
32532 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
32533 for pointer size.
32534 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
32535 [VMS] (#define fork()): Remove since unneccessary.
32536 (__gnat_set_close_on_exec): New routine to support
32537 GNAT.OS_Lib.Set_Close_On_Exec.
32538
32539 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
32540 the parent side as close-on-exec so that they are not inherited by the
32541 child.
32542
32543 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
32544 set or clear the FD_CLOEXEC flag on a file descriptor.
32545
32546 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
32547 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32548
32549 PR ada/19386
32550 * decl.c:
32551 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
32552 on the field if Pragma Component_Alignment (Storage_Unit).
32553 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
32554 side-effects as if it were a constant; also make SAVE_EXPR to protect
32555 side-effects.
32556 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
32557 UNION_TYPE.
32558 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
32559 (components_to_record): Test it.
32560 Fix improper usage of REFERENCE_CLASS_P.
32561
32562 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
32563 RECORD_TYPE.
32564
32565 * utils2.c: Minor reformatting.
32566
32567 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
32568 handle other cases like RECORD_TYPE.
32569
32570 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
32571
32572 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32573
32574 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
32575 component of an array of arrays in an assignment context, and the
32576 aggregate has component associations that require sliding on
32577 assignment, force reanalysis of the aggregate to generate a temporary
32578 before the assignment.
32579 (Must_Slide): Make global to the package, for use in Gen_Assign.
32580
32581 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32582
32583 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
32584 unchecked union with no inferable discriminants, return a
32585 Raise_Program_Error node, rather than inserting it at the point the
32586 type is frozen.
32587 (Expand_Record_Equality, Component_Equality): Handle properly the case
32588 where some subcomponent is an unchecked union whose generated equality
32589 code raises program error.
32590
32591 2005-02-09 Doug Rupp <rupp@adacore.com>
32592
32593 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
32594 [VMS] (#define exit hack): Remove.
32595
32596 2005-02-09 Pascal Obry <obry@adacore.com>
32597 Arnaud Charlet <charlet@adacore.com>
32598
32599 * init.c (__gnat_initialize): Add a new parameter eh which contains the
32600 address of the exception registration. The Win32 version of this
32601 routine calls __gnat_install_SEH_handler() to initialize the SEH
32602 (Structured Exception Handling) handler.
32603 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
32604 SEH (Structured Exception Handling) now.
32605 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
32606 (__gnat_initialize for ppc-vxworks): Adjust comments and the
32607 preprocessor condition protecting the call to the extra eh setup
32608 subprogram, which is only available for the ppc target.
32609 (__gnat_clear_exception_count): replaced reference to
32610 variable taskIdCurrent by call to taskIdSelf(), cleaner.
32611
32612 * seh_init.c: New file.
32613
32614 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
32615 (GNATBIND_OBJS): Idem.
32616
32617 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
32618 routine takes a new parameter (a pointer to the exception registration
32619 for the SEH (Structured Exception Handling) support.
32620
32621 * raise.h: (__gnat_install_SEH_handler): New prototype.
32622 Update copyright notice.
32623
32624 * s-tassta.adb (Task_Wrapper): Declare the exception registration
32625 record and initialize it by calling __gnat_install_SEH_handler.
32626
32627 2005-02-09 Vincent Celier <celier@adacore.com>
32628
32629 * make.adb (Gnatmake): Do not fail when the main project has no object
32630 directory.
32631
32632 2005-02-09 Doug Rupp <rupp@adacore.com>
32633
32634 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
32635 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
32636 [VMS]: Add translations for g-enblsp.adb.
32637
32638 * s-asthan-vms.adb: Removed.
32639 * s-asthan-vms-alpha.adb: Added.
32640
32641 2005-02-09 Pascal Obry <obry@adacore.com>
32642
32643 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
32644 (LIBGNAT_OBJS): Add seh_init.o.
32645
32646 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32647
32648 PR ada/16592
32649 * Makefile.in: Link all gnat tools with -static-libgcc, since
32650 -shared-libgcc is now used by default on some systems (e.g. linux with
32651 recent binutils).
32652 Remove references to Makefile.prolog/generic, no longer used.
32653
32654 2005-02-09 Vincent Celier <celier@adacore.com>
32655
32656 * prj-makr.adb (Process_Directory): Put file name in canonical case
32657 before matching against the patterns.
32658 If gnatname has been invoked as <prefix>-gnatname
32659 then invoke the compiler as <prefix>-gcc, not just "gcc".
32660
32661 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32662
32663 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
32664 with expansion disabled. The actual subtype is needed among other
32665 places when the selected component appears in the context of a loop
32666 bound, and denotes a packed array.
32667 (Operator_Check): Always use the first subtype in the
32668 error message, to avoid the appearance of internal base types.
32669 (Transform_Object_Operation): Copy each actual in full
32670 to the parameter associations of the constructed call, rather than
32671 using the shallow copy mechanism of New_Copy_List. This ensures that
32672 the chaining of named associations is done properly.
32673 (Complete_Object_Operation): Rewrite node, rather than
32674 replacing it, so that we can trace back to the original selected
32675 component.
32676
32677 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
32678 and calls that use object notation, if the called function is not
32679 declared in a withed unit, place the elaboration constraint on the
32680 unit in the context that makes the function accessible.
32681 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
32682 imposes an elaboration constraint between two packages.
32683
32684 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32685
32686 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
32687 views of a private type after handling its private dependents, to
32688 maintain proper stack discipline between entry and exit from the
32689 package.
32690
32691 2005-02-09 Cyrille Comar <comar@adacore.com>
32692
32693 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
32694 Minor reformatting.
32695
32696 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32697
32698 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
32699 fields for foreign threads.
32700
32701 2005-02-09 Doug Rupp <rupp@adacore.com>
32702
32703 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
32704 recursion warnings when compiled with -gnatdm.
32705
32706 2005-02-09 Robert Dewar <dewar@adacore.com>
32707
32708 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
32709 Slight fix to documentation of -gnaty with no parameters
32710
32711 * xr_tabls.ads: Add ??? comment for missing overall comment
32712
32713 * xsinfo.adb: Make default file name be sinfo.h, since this is what
32714 we now use by default.
32715
32716 * xsnames.adb: Adjust end of file test to look for five space followed
32717 by '#' instead of six spaces. The format of xsnames.adb was modified
32718 in the last update.
32719
32720 * a-numeri.ads: Add reference to AI-388 for greek letter pi
32721 identifier.
32722
32723 * clean.adb: Minor reformatting.
32724
32725 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
32726 gnatname.adb: Minor reformatting
32727 Add 2005 to copyright output when utility is run
32728
32729 * csets.adb: Eliminate obsolete comment
32730
32731 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
32732 Update comments.
32733
32734 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
32735
32736 2005-02-09 Sergey Rybin <rybin@adacore.com>
32737
32738 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
32739 the difference between compact and incompact layout and add the record
32740 representation clause to the example illustrating different layouts.
32741 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
32742 component clauses").
32743
32744 2005-02-09 Florian Villoing <villoing@adacore.com>
32745
32746 * gnat_ugn.texi: Fix typos.
32747 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
32748 @file.
32749 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
32750 in the generated documentation.
32751
32752 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32753
32754 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
32755 longer supported.
32756 Update linker wrapper when linking with non GNU C++.
32757
32758 2005-02-09 Pascal Obry <obry@adacore.com>
32759
32760 * gnat_ugn.texi:
32761 Document the procedure to debug the DllMain routine on Windows.
32762 Add note about -funwind-tables and mixed Ada and C/C++ programming in
32763 ZCX mode.
32764 Document new BIND qualifer /RETURN_CODES=VMS.
32765
32766 2005-02-09 Ben Brosgol <brosgol@adacore.com>
32767
32768 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32769 Edited gnatmetric chapter
32770
32771 2005-02-09 Robert Dewar <dewar@adacore.com>
32772
32773 * gnat_rm.texi:
32774 Changes to document new wide wide character support
32775 For AI-285
32776 Update documentation on Normalize_Scalars and Initialize_Scalars
32777
32778 2005-02-09 Pascal Obry <obry@adacore.com>
32779
32780 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
32781
32782 2005-02-09 Jose Ruiz <ruiz@adacore.com>
32783
32784 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
32785 from the VxWorks kernel) that is needed for getting the active
32786 priority of the different tasks.
32787
32788 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
32789 Use a pragma Elaborate_Body in the spec file instead.
32790 Noticed by code reading.
32791
32792 2005-02-09 Thomas Quinot <quinot@adacore.com>
32793
32794 * exp_util.ads: Minor correction in comment.
32795
32796 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32797
32798 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
32799 since this procedure is now too complex to be worth inlining.
32800
32801 2005-02-09 Richard Henderson <rth@redhat.com>
32802
32803 * utils.c (gnat_define_builtin): Remove.
32804 (gnat_install_builtins): Use build_common_builtin_nodes.
32805
32806 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32807
32808 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
32809 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
32810 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
32811 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
32812 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
32813 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
32814 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
32815 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
32816 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
32817 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
32818 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
32819 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
32820 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
32821 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
32822 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
32823 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
32824 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
32825 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
32826 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
32827 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
32828 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
32829 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
32830 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
32831 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
32832 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
32833 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
32834 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
32835 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
32836 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
32837 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
32838 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
32839 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
32840 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
32841 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
32842 library.
32843
32844 2005-01-27 Laurent Guerby <laurent@guerby.net>
32845
32846 * Makefile.in: Fix a-intnam.ads from previous commit,
32847 add 2005 to copyright.
32848 * a-intman-rtems.ads: Renamed to...
32849 * a-intnam-rtems.ads:
32850
32851 2005-01-27 Laurent Guerby <laurent@guerby.net>
32852
32853 * Makefile.in: Rename GNAT RTEMS specific files.
32854 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
32855 5rosinte.ads, 5rparame.adb: Replaced by files below.
32856 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
32857 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
32858
32859 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
32860 Laurent Guerby <laurent@guerby.net>
32861
32862 PR ada/19488
32863 * 5rosinte.ads: Add No_Key constant.
32864 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
32865 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
32866
32867 2005-01-26 Laurent Guerby <laurent@guerby.net>
32868
32869 PR ada/19414
32870 * i-cobol.adb (Valid_Numeric): Handle zero length case.
32871
32872 2005-01-20 Richard Henderson <rth@redhat.com>
32873
32874 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
32875 a-intnam-linux.ads and system-linux-alpha.ads.
32876 * a-intnam-linux-alpha.ads: Remove file.
32877 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
32878 * system-linux-alpha.ads: New file.
32879
32880 2005-01-18 Jakub Jelinek <jakub@redhat.com>
32881
32882 PR ada/13470
32883 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
32884 set to the new string.
32885
32886 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
32887
32888 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
32889 to True.
32890
32891 2005-01-18 Richard Henderson <rth@redhat.com>
32892
32893 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
32894 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
32895 for alpha-linux.
32896 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
32897
32898 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
32899
32900 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
32901 (GCC_ZCX_Support): Likewise.
32902
32903 2005-01-11 Bastian Blank <waldi@debian.org>
32904
32905 * system-linux-s390.ads: Define Preallocated_Stacks.
32906 * system-linux-s390x.ads: Likewise.
32907
32908 2005-01-04 Arnaud Charlet <charlet@adacore.com>
32909
32910 * gnat_ugn.texi: Fix texi errors with null variables.
32911
32912 2005-01-03 Thomas Quinot <quinot@adacore.com>
32913
32914 * gen-soccon.c: New utility program to generate g-soccon.ads
32915 automatically.
32916
32917 * socket.c, gsocket.h: Split inclusion of system header files into a
32918 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
32919
32920 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
32921 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
32922 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
32923 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
32924 should not be edited by hand anymore, but should be regenerated using
32925 gen-soccon.
32926
32927 2005-01-03 Robert Dewar <dewar@adacore.com>
32928 Ed Schonberg <schonberg@adacore.com>
32929 Vincent Celier <celier@adacore.com>
32930
32931 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
32932 on/off, since this is an obsolescent feature, for which we now generate
32933 a warning.
32934
32935 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
32936 warning mode is set and obsolescent usage of this attribute occurs.
32937 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
32938 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
32939 predates, and partly motivates, the adoption of the AI.
32940 Implement new Ada 2005 attribute Mod
32941
32942 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
32943 attribute Mod.
32944
32945 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
32946
32947 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
32948 pragma restrictions.
32949 New entry for Ada 2005 attribute Mod.
32950
32951 * par-prag.adb:
32952 Add recognition of new pragma Restrictions No_Dependence
32953 Recognize restriction No_Obsolescent_Features at parse time
32954
32955 * bcheck.adb: Add circuitry for checking for consistency of
32956 No_Dependence restrictions.
32957
32958 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
32959 restrictions.
32960
32961 * restrict.ads, restrict.adb: Add subprograms to deal with
32962 No_Dependence restrictions.
32963
32964 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
32965 restrictions.
32966
32967 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
32968 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
32969
32970 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
32971 dummy parameter to scng instantiation.
32972 Needed for new restriction No_Obsolescent_Features
32973
32974 * scn.adb: (Obsolescent_Check): New procedure
32975 Needed for new restriction No_Obsolescent_Features
32976
32977 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
32978 specified by AI-285, needed for implementation of AI-388 (adding greek
32979 pi to Ada.Numerics).
32980 Add new generic formal to scng, needed for new restriction
32981 No_Obsolescent_Features.
32982
32983 * s-rident.ads: Add new restriction No_Obsolescent_Features.
32984
32985 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
32986 restrictions lines.
32987 (Scan_ALI): When finding an unexpected character on an R line, raise
32988 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
32989 Ignore_Errors is True, default restrictions are set and scanning of the
32990 ALI file continues with the next line. Also, when Bad_R_Line is raised
32991 and Ignore_Errors is True, skip to the end of le line.
32992
32993 * sem_ch10.adb: Check that explicit with's do not violate
32994 No_Dependence restrictions.
32995 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
32996 illegal context clauses containing child units of instance.
32997
32998 * sem_prag.adb: Processing and checking for new No_Dependence
32999 restrictions.
33000 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
33001 analyze and check the External argument.
33002
33003 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
33004
33005 2005-01-03 Robert Dewar <dewar@adacore.com>
33006
33007 * atree.adb: Add a fifth component to entities
33008 This allows us to add 32 flags and four new fields
33009
33010 * atree.ads: Add a fifth component to entities
33011 This allows us to add 32 flags and four new fields
33012
33013 * einfo.ads, einfo.adb: Document new fields and new flags now available
33014 Add routines for printing new fields
33015
33016 * treepr.adb: Call routines to print out additional fields if present
33017
33018 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33019
33020 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
33021 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
33022
33023 * Makefile.in: Add support to build shared Ada libraries on solaris x86
33024 Remove gpr2make, replaced by gprmake.
33025 Remove references to gnatmem and libaddr2line.
33026 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
33027 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
33028 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
33029 a-numaux-darwin.ads and a-numaux-darwin.adb
33030 Enable mlib-tgt-lynxos.adb on lynxos.
33031
33032 * Make-lang.in: Remove rules for gpr2make.
33033 When generating sdefault.adb, do not call Relocate_Path
33034 on S3 for function Target_Name, as it is not a path.
33035 Remove references to gnatmem and libaddr2line.
33036
33037 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
33038 files.
33039
33040 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
33041
33042 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
33043 address is incompatible with its base type alignment constraints when
33044 this can be decided statically.
33045
33046 2005-01-03 Olivier Hainque <hainque@adacore.com>
33047
33048 * decl.c (compatible_signatures_p): New function. The intended purpose
33049 is to check if two function signatures for a call-site and a callee are
33050 compatible enough for the call to be valid. The underlying purpose is
33051 to check if a call to a mapped builtin is using the right interface.
33052 The current code actually does not check antyhing - this a placeholder
33053 for future refinements.
33054 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
33055 builtin calls for convention Intrinsic.
33056
33057 * gigi.h (builtin_decl_for): Declare (new function).
33058
33059 * utils.c (gnat_install_builtins): Install the target specific builtins.
33060 (builtin_decl_for): New function, provide a dummy body for now.
33061
33062 2005-01-03 Geert Bosch <bosch@adacore.com>
33063
33064 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
33065 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33066 (Pred): Implement in terms of Succ.
33067
33068 * trans.c (convert_with_check): Reimplement conversion of float to
33069 integer.
33070
33071 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33072 Vincent Celier <celier@adacore.com>
33073
33074 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
33075 bounds can be negative, and must be declared Int, not Nat.
33076
33077 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
33078 array is checked after using the index in the array.
33079
33080 * makegpr.adb (Add_Switches): Check if there is a package for the
33081 processor. If there is no package, do not look for switches.
33082
33083 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33084
33085 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
33086 generation of predefined stream operations (specs and bodies) should
33087 proceed. Under various restrictions these subprograms must not be
33088 generated.
33089
33090 2005-01-03 Thomas Quinot <quinot@adacore.com>
33091
33092 * exp_dist.adb:
33093 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
33094 amount of PCS-specific code in RACW stubs generation.
33095 (Copy_Specification): Set Etype on copied formal parameter entities, as
33096 this information is needed for PolyORB stubs generation.
33097 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
33098 variable Dynamic_Async.
33099 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
33100 (Build_RPC_Receiver_Specification): Make generic again, as recent
33101 changes have allowed RPC receivers to have the same profile for both
33102 variants of the PCS.
33103 Reorganise RPC receiver generation to reduce differences between the
33104 structure of GARLIC and PolyORB RPC receivers.
33105 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
33106 PCS-specific.
33107 Simplify elaboration code for RCI packages.
33108
33109 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
33110 generation to reduce differences between the structure of GARLIC and
33111 PolyORB RPC receivers.
33112
33113 * s-stratt.adb: Fix typo in comment.
33114
33115 2005-01-03 Thomas Quinot <quinot@adacore.com>
33116
33117 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
33118 copied from Make_Init_Call).
33119
33120 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
33121 reads and assignments on a temporary variable declared with appropriate
33122 discriminants.
33123
33124 2005-01-03 Robert Dewar <dewar@adacore.com>
33125
33126 * i-c.adb (To_C): Raise CE if string is null and Append_Null
33127
33128 2005-01-03 Robert Dewar <dewar@adacore.com>
33129
33130 * i-cstrin.adb (Update): Do not append a null in form called with a
33131 String. This avoids unintended behavior.
33132
33133 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33134
33135 PR ada/17527
33136 * init.c: Fix warnings on Free BSD section.
33137
33138 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33139
33140 PR ada/16949
33141 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
33142 xsinfo.adb).
33143
33144 2005-01-03 Vincent Celier <celier@adacore.com>
33145
33146 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
33147 libraries when Unique_Compile is True (-u switch).
33148 (Gnatmake): ditto.
33149
33150 2005-01-03 Robert Dewar <dewar@adacore.com>
33151
33152 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
33153 upper case letter or underscore after W, as allowed by spec.
33154
33155 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33156
33157 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
33158 darwin port by using proper type definitions from header files.
33159 Use SIGTERM instead of SIGABRT for SIGADAABORT.
33160
33161 2005-01-03 Robert Dewar <dewar@adacore.com>
33162
33163 * par.adb: Enhance error message handling for configuration file
33164 pragmas.
33165
33166 2005-01-03 Robert Dewar <dewar@adacore.com>
33167
33168 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
33169 removed during the previous update (test properly for case of dividing
33170 largest negative number by -1, which generates overflow).
33171
33172 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33173 Sergey Rybin <rybin@adacore.com>
33174
33175 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
33176 to use as the defining identifier for a formal package.
33177 (Remove_Parent): If the instance takes place within (an instance of)
33178 a sibling, preserve private declarations of common parent.
33179
33180 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33181
33182 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
33183 to determine whether one of the operands is a fixed-point type for
33184 which a user-defined multiplication or division operation might be
33185 defined.
33186
33187 * sem_res.adb (Valid_Conversion): The legality rules for conversions
33188 of access types are symmetric in Ada 2005: either designated type can
33189 be unconstrained.
33190
33191 2005-01-03 Vincent Celier <celier@adacore.com>
33192
33193 * s-fileio.adb (Temp_File_Record): Change length of string component
33194 Name from L_tmpnam + 1 to max_path_len + 1.
33195
33196 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33197
33198 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
33199 Self_Id.Deferral_Level = 0.
33200 (Do_Pending_Action): Move this function to the spec.
33201
33202 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
33203 Do_Pending_Action explicitely when needed, in case we're using
33204 No_Abort restrictions.
33205
33206 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
33207 deferral level since it will not get changed by the generated code.
33208 Keeping a default value of 1 would prevent some operations (e.g.
33209 select or delay) to proceed successfully.
33210
33211 2005-01-03 Ben Brosgol <brosgol@adacore.com>
33212 Robert Dewar <dewar@adacore.com>
33213 Cyrille Comar <comar@adacore.com>
33214
33215 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
33216 porting guide chapter (vms version).
33217 Revised doc title (removed "for native platforms") and subtitle.
33218 Add discussion on warning flag for obsolescent features. First we
33219 note that it applies to obsolete GNAT features, which was previously
33220 omitted. Second we contrast the behavior with that of the new
33221 Ada 2005 AI-368 restriction No_Obsolescent_Features.
33222 Preliminary rewriting of GNAT & libraries chapter in order to take
33223 into account default project locations & new project manager
33224 capabilities.
33225
33226 2005-01-03 Robert Dewar <dewar@adacore.com>
33227
33228 * cstand.adb (Create_Operators): Clean up format and documentation of
33229 unary and binary operator result tables. No change in code, just
33230 reformatting and addition of comments.
33231
33232 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
33233 sem_ch2.adb: Minor reformatting
33234
33235 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
33236 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
33237 comments for Tree_Read and Tree_Write.
33238
33239 2005-01-03 Pascal Obry <obry@adacore.com>
33240
33241 * exp_attr.ads: Minor reformatting.
33242
33243 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
33244
33245 * comperr.adb (Compiler_Abort): Add specialized message for GAP
33246 versions.
33247
33248 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33249
33250 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
33251 whether the ancestor type is private, as may be the case with nested
33252 instantiations.
33253
33254 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
33255
33256 PR ada/19128
33257 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
33258
33259 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
33260
33261 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
33262 * utils2.c (build_unary_op): Likewise.
33263
33264 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33265
33266 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
33267
33268 2004-12-19 Richard Henderson <rth@redhat.com>
33269
33270 * trans.c (gigi): Update gimplify_body call.
33271
33272 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
33273
33274 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
33275
33276 2004-12-07 Ed Falis <falis@adacore.com>
33277
33278 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
33279 current task being suspended.
33280
33281 * init.c (__gnat_clear_exception): added to reset VxWorks exception
33282 count.
33283 (__gnat_map_signal): removed test for current task being suspended.
33284
33285 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33286
33287 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
33288 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
33289 targets (such as AAMP).
33290
33291 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33292
33293 * atree.adb (Visit_Itype): Create a new name for the generated itype,
33294 because the back-end may otherwise treat it as a redefinition of the
33295 old symbol.
33296
33297 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
33298
33299 * back_end.adb (Scan_Back_End_Switches): Accept --param.
33300
33301 * lang-specs.h: Accept --param.
33302
33303 2004-12-07 Vincent Celier <celier@adacore.com>
33304
33305 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
33306 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
33307 Current_Body_Suffix => Ada_Body_Suffix).
33308 Take into account Externally_Built attribute.
33309
33310 * clean.adb (In_Extension_Chain): Always return False when one of the
33311 parameter is No_Project.
33312 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
33313 Ada_Language_Index).
33314 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
33315 Process_Languages for procedure Parse).
33316
33317 * gnatcmd.adb (Carg_Switches): New table.
33318 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
33319 Adapt to name changes in package Prj (Current_Spec_Suffix =>
33320 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
33321
33322 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
33323 Header_Num and function Hash are now declared in package Prj,
33324 not Prj.Com.
33325
33326 * prj.adb (Suffix_Of): New function.
33327 (Set (Suffix)): New procedure.
33328 (Hash): One function moved from Prj.Com
33329 (Is_Present, Language_Processing_Data_Of): New functions
33330 (Set): Two new procedures
33331 (Add_Language_Name, Display_Language_Name): New procedures
33332
33333 * prj.ads: (Suffix_Of): New function
33334 (Set (Suffix)): New procedure
33335 Add several types and tables for multi-language support.
33336 (Header_Num): Type moved from Prj.Com
33337 (Hash): Two functions moved from Prj.Com
33338 (Is_Present, Language_Processing_Data_Of): New functions
33339 (Set): Two new procedures
33340 (Add_Language_Name, Display_Language_Name): New procedures
33341 (Naming): Component name changes:
33342 Current_Spec_Suffix => Ada_Spec_Suffix,
33343 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
33344 Impl_Suffixes, Supp_Suffixes.
33345 (Project_Data): New components: Externally_Built, Supp_Languages,
33346 First_Language_Processing, Supp_Language_Processing, Default_Linker,
33347 Default_Linker_Path.
33348
33349 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
33350 new package Language_Processing with its attributes (Compiler_Driver,
33351 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
33352 Binder_Driver, Default_Linker).
33353
33354 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
33355 (Header_Num): Type moved to package Prj
33356
33357 * prj-env.adb: Adapt to name changes in package Prj
33358 (Current_Spec_Suffix => Ada_Spec_Suffix,
33359 Current_Body_Suffix => Ada_Body_Suffix).
33360
33361 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
33362 default to the project path, except the "-" is one of the directories
33363 in env var ADA_PROJECT_PATH.
33364 (Current_Project_Path): Global variable, replacing Project_Path
33365 that was in the body of Prj.Part.
33366 (Project_Path): New function
33367 (Set_Project_Path): New procedure
33368 Initialize Current_Project_Path during elaboration of the package
33369 Remove dependency on Prj.Com, no longer needed
33370
33371 * prj-ext.ads (Project_Path): New function
33372 (Set_Project_Path): New procedure
33373
33374 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
33375 suffix is defined for language <lang>.
33376 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
33377 accessing directly the components of Naming.
33378 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
33379 Reorganise of this package.
33380 Break procedure Check in several procedures.
33381
33382 * prj-nmsc.ads: Replace all procedures (Ada_Check,
33383 Other_Languages_Check and Language_Independent_Check) with a single
33384 procedure Check.
33385
33386 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
33387 Process_Languages, no longer needed.
33388
33389 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
33390 Current_Project_Path.
33391 Remove elaboration code, moved to the body of Prj.Ext
33392 Use new function Prj.Ext.Project_Path instead of old variable
33393 Project_Path.
33394 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
33395 When comparing with project paths on the stack, first put the resolved
33396 path in canonical case.
33397 (Parse_Single_Project): Set the path name of the project file in the
33398 tree to the normalized path.
33399
33400 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
33401 parameter Process_Languages, no longer needed.
33402 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
33403 Other_Languages_Check.
33404
33405 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
33406 to store the resolved canonical path of the project file.
33407 Remove dependency to Prj.Com, no longer needed
33408
33409 * prj-util.adb: Adapt to name changes in package Prj
33410 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
33411 Ada_Body_Suffix).
33412
33413 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
33414 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
33415 Externally_Built, Include_Option, Language_Processing.
33416
33417 * makegpr.adb: Numerous changes due to changes in packages
33418 Prj and Prj.Nmsc.
33419
33420 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
33421 default to the project path, except whe "-" is one of the directories
33422 in env var ADA_PROJECT_PATH.
33423 (Gnatls): In verbose mode, add the new section "Project Search Path:"
33424
33425 2004-12-07 Robert Dewar <dewar@adacore.com>
33426
33427 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
33428
33429 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
33430 set -gnatR3m mode.
33431
33432 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
33433 flag. No longer needed now that we handle this in gnat1drv.adb.
33434
33435 * repinfo.ads: Minor reformatting
33436
33437 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33438 Olivier Hainque <hainque@adacore.com>
33439 Eric Botcazou <ebotcazou@adacore.com>
33440
33441 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
33442 TYPE_SIZE_UNIT of result type if SIZE is not specified.
33443 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
33444 of a bitfield, which we know is useless and causes trouble because of
33445 alignment implications.
33446
33447 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
33448 BSS sections.
33449 (process_attributes): Clear DECL_COMMON again when a section attribute
33450 is present.
33451 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
33452 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
33453 (create_field_decl): Special case ADDRESSABLE negative to mean
33454 "no bitfield creation", to be used by make_aligning_type. Don't
33455 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
33456 fields claimed addressable still have to be bitfields. Use
33457 value_factor_p instead of a raw binop construction to check for the
33458 position's alignment.
33459
33460 2004-12-07 Geert Bosch <bosch@adacore.com>
33461
33462 * eval_fat.adb: Revert previous change.
33463
33464 2004-12-07 Thomas Quinot <quinot@adacore.com>
33465 Ed Schonberg <schonberg@adacore.com>
33466
33467 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
33468 with an implicit dereference as its prefix, use
33469 Insert_Explicit_Dereference instead of merely rewriting the prefix into
33470 an explicit dereference. This ensures that a reference to the original
33471 prefix is generated, if appropriate.
33472
33473 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
33474 dereference is rewritten to an explicit one, generate a reference to
33475 the entity denoted by its prefix using the original prefix node, so
33476 the dereference can be properly recorded as a read of the denoted
33477 access value, if appropriate.
33478
33479 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
33480 emitting 'assigned but never read' warning on a variable on the basis
33481 that it has an access type.
33482 (Check_References): Emit unreferenced warning when the scope is a
33483 subprogram body.
33484
33485 2004-12-07 Robert Dewar <dewar@adacore.com>
33486 Ed Schonberg <schonberg@adacore.com>
33487
33488 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
33489 intrinsic
33490
33491 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
33492 leaving call unchanged.
33493 This deals with the case where the pragma Import specified
33494 an external name, to be handled by the back end.
33495
33496 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
33497 subprogram which is Imported with convention Intrinsic if an
33498 External_Name argument is specified.
33499 (Process_Import_Or_Interface): Properly diagnose link name argument.
33500 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
33501 with Sem_Ch6.Cannot_Inline.
33502 (Process_Inline): Provide separate warning for inapplicable inline
33503 pragma.
33504 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
33505 treatment is uniform on different targets.
33506
33507 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33508
33509 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
33510 construct is rewritten, preserve end label to permit source navigation.
33511
33512 2004-12-07 Thomas Quinot <quinot@adacore.com>
33513
33514 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
33515 Specific_Build_Stub_Target): New subprograms.
33516 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
33517 the PCS implementation used, using the above PCS-customized subprograms.
33518 Minor reformatting.
33519 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
33520 for generation of DSA code targeted to the PolyORB PCS.
33521 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
33522 implementation of the partition communication subsystem in ancillary
33523 subprograms.
33524 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
33525 PolyORB_Support.Build_Stub_Type): New subrograms containing the
33526 PCS-specific part of Add_Stub_Type.
33527 (Insert_Partition_Check): Use runtime library function to perform
33528 E.4(19) check.
33529
33530 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
33531 (RE_Same_Partition): New entity, from s-parint.
33532
33533 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
33534
33535 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33536
33537 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
33538 Output the copyright message on a separate line from the version
33539 message.
33540
33541 2004-12-07 Joel Brobecker <brobecker@adacore.com>
33542
33543 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
33544 compile-time warning.
33545
33546 2004-12-07 Robert Dewar <dewar@adacore.com>
33547
33548 * g-regpat.adb: (Match): Change a misuse of or to or else
33549
33550 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33551
33552 * lib-xref.adb:
33553 (Generate_Reference): Handle properly a reference to an entry formal,
33554 when an accept statement has a pragma Unreferenced for it.
33555
33556 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
33557 and the Has_Pragma_Unreferenced flag for each formal before analyzing
33558 the body, to ensure that warnings are properly emitted for each accept
33559 statement of a given task entry.
33560
33561 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
33562
33563 * Makefile.in: Add support for foreign threads on VMS.
33564
33565 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33566
33567 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
33568 Remove.
33569 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
33570
33571 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
33572
33573 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
33574 exception.
33575 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
33576
33577 2004-12-07 Robert Dewar <dewar@adacore.com>
33578
33579 * nlists.adb (Prepend_Debug): Remove parameters and nest within
33580 Prepend.
33581 (Remove_Next_Debug): Same fix
33582
33583 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
33584 maintain back pointers now, though we did not used to, and comments
33585 were out of date).
33586 (Prepend): Remove pragma Inline.
33587 (Remove_Next): Same cleanup
33588
33589 2004-12-07 Thomas Quinot <quinot@adacore.com>
33590
33591 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
33592 used to record an implicit dereference as a read operation on its
33593 prefix when operating under -gnatc. Necessary to avoid spurious
33594 'variable assigned but never read' warnings in that mode.
33595 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
33596 is a non-overloaded implicit dereference, call the above subprogram to
33597 ensure proper recording of references.
33598
33599 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33600
33601 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
33602 to be resolved later as part of Analyze_Iteration_Scheme's call to
33603 Make_Index.
33604
33605 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33606
33607 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
33608 prefix is not a scalar type, place error message on prefix, not on
33609 type entity.
33610
33611 2004-12-07 Bernard Banner <banner@adacore.com>
33612
33613 * vxaddr2line.adb: Add support for x86 vxworks
33614
33615 2004-12-07 Thomas Quinot <quinot@adacore.com>
33616
33617 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
33618 documentation of the behaviour of these functions when passed an IP
33619 address that has no record in the system hosts database and no reverse
33620 record in the DNS.
33621
33622 * cstand.adb, a-tags.ads: Fix typos in comment.
33623
33624 2004-12-07 Robert Dewar <dewar@adacore.com>
33625
33626 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
33627 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
33628 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
33629 s-poosiz.ads: Minor reformatting
33630
33631 * make.adb: Minor reformatting
33632 Add some ??? comments asking for more comments
33633
33634 * s-poosiz.adb: Minor reformatting
33635 Add comments on alignment requirement
33636
33637 * sinfo.ads: Remove obsolete comment and fix typo.
33638
33639 2004-12-07 Vincent Celier <celier@adacore.com>
33640 Sergey Rybin <rybin@adacore.com>
33641
33642 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
33643 Files" with the new tool and package names.
33644 Reformatting to suppress most of the warnings for line too long
33645 Document the new section "Project Search Path:" in the output of
33646 gnatls -v.
33647 Add gnatmetric section
33648
33649 2004-12-07 Vincent Celier <celier@adacore.com>
33650
33651 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
33652 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
33653 and -eit to -ept. Added qualifier
33654 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
33655
33656 2004-11-27 Andreas Schwab <schwab@suse.de>
33657
33658 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
33659
33660 2004-11-25 Arnaud Charlet <charlet@adacore.com>
33661
33662 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
33663 internal implementation unit GNAT.Sockets.Thin,
33664 as their usage for sockets is non-portable (using the read and write
33665 functions from the system runtime library is fine on UNIX but won't
33666 work under Windows).
33667
33668 * mingw32.h: Update copyright notice.
33669
33670 2004-11-25 Arnaud Charlet <charlet@adacore.com>
33671
33672 * ada-tree.h: Minor reformatting of previous change to avoid lines
33673 longer than 79 characters.
33674
33675 2004-11-25 Olivier Hainque <hainque@adacore.com>
33676
33677 * tb-gcc.c: GCC infrastructure based implementation of
33678 __gnat_backtrace.
33679
33680 2004-11-24 Steven Bosscher <stevenb@suse.de>
33681
33682 * misc.c (gnat_post_options): Don't clear
33683 flag_inline_functions.
33684
33685 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
33686
33687 PR ada/17986
33688 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
33689 tree.
33690
33691 2004-11-21 Andreas Jaeger <aj@suse.de>
33692
33693 * stylesw.adb: Change Style_Check_Subprogram_Order to
33694 Style_Check_Order_Subprograms.
33695
33696 2004-11-18 Arnaud Charlet <charlet@adacore.com>
33697
33698 * adaint.h, adaint.c
33699 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
33700 to avoid warnings.
33701 Add also a cast to kill another warning.
33702 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
33703 parameter with the priority class of the parent process instead of
33704 always using the NORMAL_PRIORITY_CLASS.
33705 (__gnat_dup): New function.
33706 (__gnat_dup2): New function.
33707 (__gnat_is_symbolic_link): Enable the effective body of this
33708 function when __APPLE__ is defined.
33709
33710 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
33711 Update comments.
33712
33713 2004-11-18 Olivier Hainque <hainque@adacore.com>
33714
33715 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
33716 address of which may be used to represent "others" and "all others"
33717 choices in exception tables, instead of the current harcoded
33718 (void *)0 and (void *)1.
33719 (Setup_Exception): Do nothing in the GNAT SJLJ case.
33720
33721 * gigi.h (others_decl, all_others_decl): New decls representing the
33722 new Others_Value and All_Others_Value objects.
33723 (struct attrib): Rename "arg" component as "args", since GCC expects a
33724 list of arguments in there.
33725
33726 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
33727 corresponding objects exported by a-exexpr, instead of hardcoded dummy
33728 addresses.
33729
33730 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
33731 others_decl and all_others_decl instead of hardcoded dummy addresses
33732 to represent "others" and "all others" choices, which is cleaner and
33733 more flexible with respect to the possible eh pointer encoding policies.
33734
33735 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
33736 (process_attributes): Account for the naming change of the "args"
33737 attribute list entry component.
33738
33739 * decl.c (build_attr_list): Rename into prepend_attributes to allow
33740 cumulating attributes for different entities into a single list.
33741 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
33742 attributes for the current entity and propagate first subtype
33743 attributes to other subtypes.
33744 <E_Procedure>: Attribute arguments are attr->args and not
33745 attr->arg any more.
33746 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
33747 argument provided, as this is what GCC expects. Use NULL_TREE instead
33748 of 0 for trees.
33749
33750 2004-11-18 Robert Dewar <dewar@adacore.com>
33751
33752 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
33753 Minor reformatting througout (including new function specs)
33754 Add ??? comments asking for clarification.
33755
33756 2004-11-18 Thomas Quinot <quinot@adacore.com>
33757
33758 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
33759 incomplete duplicate implementation of this subprogram from butil.
33760
33761 2004-11-18 Thomas Quinot <quinot@adacore.com>
33762
33763 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
33764 procedures factors the common processing for building an RPC receiver
33765 for an RCI package or an RACW type.
33766 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
33767 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
33768 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
33769 in use.
33770 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
33771 Add_RACW_Features.
33772 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
33773 Add_RAST_Features.
33774 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
33775 distribution subprogram identifiers that are either subprogram numbers
33776 or strings.
33777 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
33778 string distribution identifiers assigned to a given subprogram.
33779 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
33780 (Add_RAS_Dereference_TSS): Add comments.
33781 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
33782 is not referenced yet because it will be used by the PolyORB DSA
33783 implementation.
33784 (Insert_Partition_Check): Remove fossile code.
33785 (First_RCI_Subprogram_Id): Document this constant.
33786 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
33787 RAS_Access TSS.
33788 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
33789 replaced with calls to Get_Library_Unit_Name_String. Previously there
33790 were several instances of the same code in different locations in the
33791 compiler; this checkin completes the replacement of all of these
33792 instances with calls to a common subprogram.
33793 Minor reformatting.
33794
33795 * sem_dist.adb: Remove comment noting that RPC receiver generation
33796 should be disabled for RACWs that implement RASs.
33797 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
33798
33799 * sem_util.ads, sem_util.adb (Has_Stream): New function
33800 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
33801 qualified name of a library unit into the name buffer.
33802 (Note_Possible_Modification): Generate a reference only
33803 if the context comes from source.
33804
33805 * snames.ads (PCS_Names): New subtype corresponding to names of
33806 supported implementations of the Partition Communication Subsystem
33807 (PCS) (i.e. the runtime library support modules for the distributed
33808 systems annex).
33809
33810 2004-11-18 Robert Dewar <dewar@adacore.com>
33811 Ed Schonberg <schonberg@adacore.com>
33812
33813 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
33814 (Has_Rep_Pragma): New function
33815 (Has_Attribute_Definition_Clause): New function
33816 (Record_Rep_Pragma): Moved here from sem_ch13.adb
33817 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
33818
33819 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
33820
33821 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
33822 (Expand_Pragma_Psect_Object): New procedure
33823 These procedures contain the revised and cleaned up processing for
33824 these two pragmas. This processing was formerly in Sem_Prag, but
33825 is more appropriately moved here. The cleanup involves making sure
33826 that the pragmas are properly attached to the tree, and that no
33827 nodes are improperly shared.
33828
33829 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
33830 pragmas to Exp_Prag, which is more appropriate.
33831 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
33832 check for duplicates Remove use of Is_Psected flag, no longer needed.
33833 Use new Make_String_Literal function with string.
33834
33835 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
33836 that are functions return universal values, that have to be converted
33837 to the context type.
33838 Use new Make_String_Literal function with string.
33839 (Get_Stream_Convert_Pragma): New function, replaces the use of
33840 Get_Rep_Pragma, which had to be kludged to work in this case.
33841
33842 * freeze.adb: Use new Has_Rep_Pragma function
33843
33844 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
33845 function with string.
33846 Use new Has_Rep_Pragma function.
33847
33848 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
33849 string argument.
33850
33851 2004-11-18 Robert Dewar <dewar@adacore.com>
33852
33853 * errout.ads, errout.adb: (First_Sloc): New function
33854
33855 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
33856 check (-gnatyx) instead of being included as a redundant construct
33857 warning.
33858
33859 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
33860 Style_Check_Order_Subprograms.
33861
33862 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
33863 stylesw.adb: Add Style_Check_Xtra_Parens
33864
33865 * usage.adb: Add line for -gnatyx (check extra parens)
33866
33867 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
33868
33869 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33870 Robert Dewar <dewar@adacore.com>
33871
33872 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
33873 discriminant of a constrained subtype, analyze the copy of the
33874 corresponding constraint, because in some cases it may be only
33875 partially analyzed.
33876 Removes long-lived ??? comments.
33877
33878 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
33879 handled controlled or secondary-stack expressions within the
33880 iteration_scheme of a loop.
33881
33882 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
33883 bounds that may contain functions calls, to prevent memory leaks when
33884 the bound contains a call to a function that uses the secondary stack.
33885 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
33886 generate temporaries for loop bounds that might contain function calls
33887 that require secondary stack and/or finalization actions.
33888
33889 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
33890 selected component and the selector is overloadable (not just a
33891 function) treat as function call, Analyze_Call will disambiguate if
33892 necessary.
33893 (Analyze_Selected_Component): Do not generate an actual subtype for the
33894 selected component if expansion is disabled. The actual subtype is only
33895 needed for constraint checks.
33896 (Analyze_Allocator): If restriction No_Streams is set, then do
33897 not permit objects to be declared of a stream type, or of a
33898 composite type containing a stream.
33899
33900 * restrict.ads: Remove the a-stream entry from Unit_Array, since
33901 No_Streams no longer prohibits with'ing this package.
33902
33903 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
33904 discriminants, but the parent base has unknown discriminants, there is
33905 no discriminant constraint to inherit. Such a discrepancy can arise
33906 when the actual for a formal type with unknown discriminants is a
33907 similar private type whose full view has discriminants.
33908 (Analyze_Object_Declaration): If restriction No_Streams is set, then
33909 do not permit objects to be declared of a stream type, or of a
33910 composite type containing a stream.
33911
33912 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33913
33914 * exp_dbug.ads: Update documentation to reflect simpler encoding for
33915 protected operations.
33916
33917 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
33918 generated name, it complicates decoding in gdb and hinders debugging
33919 of protected operations.
33920 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
33921 flag for the protected entry barrier function.
33922 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
33923 flag for the protected entry function.
33924
33925 2004-11-18 Nicolas Setton <setton@adacore.com>
33926
33927 * expect.c: Define __unix__ when __APPLE__ is defined.
33928
33929 * Makefile.in: Inform the value of the variable GMEM_LIB in the
33930 Darwin-specific section.
33931
33932 * lang-specs.h: Change the placement of the %1 marker.
33933 Works around the fact that gcc adds -fPIC by default under Darwin.
33934
33935 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33936
33937 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
33938 type of the object with the packed array type, set the Analyzed flag
33939 on the object if it is an entity or simple indexed component, to avoid
33940 spurious type errors.
33941
33942 2004-11-18 Gary Dismukes <dismukes@adacore.com>
33943
33944 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
33945 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
33946 separate line from the version message.
33947
33948 2004-11-18 Ed Falis <falis@adacore.com>
33949
33950 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
33951 vthreads.
33952 (init_float): Eliminate initialization of floating point status for
33953 AE653. The instructions have no effect for vThreads.
33954
33955 2004-11-18 Vincent Celier <celier@adacore.com>
33956
33957 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
33958 gnatbind is invoked with -shared.
33959
33960 2004-11-18 Jose Ruiz <ruiz@adacore.com>
33961
33962 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
33963 for Detect_Blocking which is redundant with the check done within the
33964 procedure Protected_Single_Entry_Call.
33965 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
33966 Detect_Blocking which is redundant with the check done within the
33967 procedure Protected_Single_Entry_Call.
33968
33969 2004-11-18 Vincent Celier <celier@adacore.com>
33970
33971 * makegpr.adb (Compile): Put the compiling switches (in package
33972 Compiler and on the command line) immediately after "-c", instead of
33973 at the end of the command line invocation of the compiler, when
33974 compiling a non-Ada file.
33975 (Build_Global_Archive): When there is no need to rebuild the archive,
33976 set Global_Archive_Exists, so that the archive is passed to the linker
33977 if one is needed.
33978
33979 2004-11-18 Robert Dewar <dewar@adacore.com>
33980 Sergey Rybin <rybin@adacore.com>
33981
33982 * gnat_ugn.texi:
33983 Remove extra paren check from list of checks for redundant constructs
33984 Add documentation of new -gnatyx style check (check extra parens)
33985 Remove paragraph about gnatelim debug options.
33986
33987 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
33988 objects rather than forbidding dependencies on the package Ada.Streams.
33989
33990 * sinfo.ads: Add ??? note that we should document pragmas passed to
33991 back end.
33992
33993 * g-expect.ads: Fix a few typos in the comments.
33994
33995 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
33996
33997 * misc.c (gnat_handle_option): Use %< and %> for quoting in
33998 warning message.
33999
34000 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34001
34002 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
34003
34004 2004-11-07 Andreas Schwab <schwab@suse.de>
34005
34006 * Makefile.in (install-gnatlib): Remove spurious hyphen.
34007
34008 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
34009
34010 PR ada/18228
34011 * Makefile.in (darwin): Set soext to .dylib.
34012
34013 2004-10-26 Vincent Celier <celier@gnat.com>
34014 Thomas Quinot <quinot@act-europe.fr>
34015
34016 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
34017 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
34018 there is no use of GNAT.Sockets.Constants.
34019 Remove remaining pragma Import for C_Write
34020 Remove C_Read and C_Write from internal implementation unit
34021 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
34022 the read and write functions from the system runtime library is fine
34023 on UNIX but won't work under Windows).
34024
34025 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
34026 (Check_Selector): Use C_Recv instead of C_Read.
34027 Selectors are the GNAT.Sockets abstraction to perform a select()
34028 call on a set of descriptors. To allow abortion of an ongoing
34029 select operation, some data is written to a dedicated socket that
34030 is always monitored.
34031 Under Windows, the write and read library functions cannot operate
34032 on sockets, so we need to use send and recv instead, which is portable
34033 across all supported platforms.
34034
34035 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
34036 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
34037 (using the read and write functions from the system runtime library is
34038 fine on UNIX but won't work under Windows).
34039
34040 2004-10-26 Nicolas Setton <setton@act-europe.fr>
34041
34042 * mlib-tgt-darwin.adb: New file.
34043
34044 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34045 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
34046 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
34047 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
34048 subprogram body.
34049
34050 * Makefile.in: Add support for building shared libraries under Darwin.
34051 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
34052 the low level EH init subprogram to be called from __gnat_initialize.
34053
34054 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
34055 indicates which options to pass to the archive indexer.
34056
34057 * mlib-utl.adb: Add support for calling ranlib with additional
34058 options. This is needed for instance under Mac OS X.
34059 (Ranlib_Options): New global variable, used to store the potential
34060 options to pass to ranlib.
34061 (Ar): Use Ranlib_Options when spawning ranlib.
34062 (Initialize): Set the value of ranlib option.
34063
34064 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
34065
34066 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
34067 instead of 8K, to reflect the real potential needs for stack-checking
34068 in the ZCX case.
34069
34070 2004-10-26 Pascal Obry <obry@gnat.com>
34071
34072 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
34073
34074 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
34075 Windows only the initial thread stack size can be set so it is good to
34076 start we a low stack size.
34077 The OS will adjust the size as needed.
34078
34079 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
34080 Nicolas Setton <setton@act-europe.fr>
34081
34082 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
34083 "__unix__" instead of "unix".
34084 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
34085 sections were just mistakenly ignored. The former is
34086 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
34087 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
34088 of hpux. This prevents an unwanted definition of the symbol
34089 convert_addresses in adaint.o.
34090
34091 2004-10-26 Gary Dismukes <dismukes@gnat.com>
34092
34093 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
34094 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
34095
34096 2004-10-26 Cyrille Comar <comar@act-europe.fr>
34097
34098 * a-filico.ads, a-filico.adb: fix incorrect header.
34099
34100 2004-10-26 Javier Miranda <miranda@gnat.com>
34101
34102 * a-ststio.ads: Fix typo in identifier
34103
34104 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34105
34106 * sem_ch4.adb: Minor reformatting.
34107
34108 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34109
34110 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
34111 enabled, check the result of unary and binary operations when the
34112 expression is the right-hand side of an assignment.
34113
34114 2004-10-26 Vincent Celier <celier@gnat.com>
34115
34116 * clean.adb (Delete): Do not output warnings when in quiet output and
34117 not in verbose mode.
34118 (Force_Deletions): New Boolean flag, defaulted to False
34119 (Delete): Only delete a file if it is writable, and when
34120 Force_Deletions is True.
34121 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
34122 (Usage): Line for new switch -f
34123 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
34124 own.
34125
34126 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
34127
34128 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
34129 JM type only if its size matches that of the wrapper. When a size is
34130 prescribed and the field is not aliased, remove the wrapper of a JM
34131 type only if the size is not greater than that of the packed array.
34132 (gnat_to_gnu_entity): Change the extension of packed array wrappers
34133 from LJM to JM.
34134
34135 2004-10-26 Geert Bosch <bosch@gnat.com>
34136
34137 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
34138 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
34139 (Pred): Implement in terms of Succ.
34140
34141 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34142
34143 * exp_aggr.adb (Safe_Component): An aggregate component that is an
34144 unchecked conversion is safe for in-place use if the expression of the
34145 conversion is safe.
34146 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
34147 be expandable in place even if the aggregate does not come from source.
34148 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
34149 designated object of an allocator in place, rather than building it
34150 first on the stack. The previous scheme forces a full copy of the array,
34151 and may be altogether unsusable if the size of the array is too large
34152 for stack allocation.
34153
34154 2004-10-26 Robert Dewar <dewar@gnat.com>
34155
34156 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
34157 compares if the component is atomic.
34158
34159 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
34160 array assignment if the component type is atomic.
34161
34162 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34163 Eric Botcazou <ebotcazou@act-europe.fr>
34164
34165 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
34166 is aliased and is a by_reference type, do not pass by copy.
34167 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
34168 detect whether the call is in the right side of an assignment or
34169 the expression of an object declaration. Recurse on component
34170 association within aggregates.
34171 Call it in the condition that determines whether the temporary is
34172 necessary for correct stack-checking.
34173
34174 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34175
34176 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
34177 RACW_Type, used in the PolyORB version.
34178 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
34179 version and the GARLIC version.
34180
34181 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
34182 Rename RCI_Info to RCI_Locator for better consistency between the
34183 GARLIC and PolyORB versions of the distributed systems annex.
34184 (DSA_Implementation_Name): This enumeration lists the possible
34185 implementations of the Partition Communication Subsystem for the
34186 Distributed Systems Annex (DSA). The three available implementations
34187 are the dummy stub implementation (No_DSA), and two versions based on
34188 two different distribution runtime libraries: GARLIC and PolyORB. Both
34189 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
34190 technology.
34191 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
34192 that organization.
34193
34194 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
34195 between the GARLIC and PolyORB versions of the distributed systems
34196 annex.
34197 Remove RE_Unbounded_Reclaim_Pool since it is unused.
34198
34199 2004-10-26 Gary Dismukes <dismukes@gnat.com>
34200
34201 * gnat1drv.adb: Suppress calling the back end when
34202 Frontend_Layout_On_Target is true.
34203
34204 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34205
34206 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
34207 Set_Read_Only): New subprograms.
34208 These new routines allow the user to set or unset the Owner execute
34209 and Owner write permission flags on a file.
34210
34211 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
34212 GNAT.OS_Lib.Set_Executable instead of rolling our own.
34213
34214 2004-10-26 Matthew Gingell <gingell@gnat.com>
34215
34216 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
34217
34218 2004-10-26 Pascal Obry <obry@gnat.com>
34219
34220 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
34221 memory before the faulting page we properly test the process read
34222 access for this address using appropriate Win32 routine.
34223 (HPUX sections): guard with "__hpux__" instead of "hpux".
34224
34225 2004-10-26 Robert Dewar <dewar@gnat.com>
34226
34227 * lib-xref.adb (Generate_Reference): Don't complain about reference to
34228 entry parameter if pragma Unreferenced set, since we do not properly
34229 handle the case of multiple parameters.
34230
34231 2004-10-26 Vincent Celier <celier@gnat.com>
34232
34233 * prj-env.adb: (Contains_ALI_Files): New Boolean function
34234 (Ada_Objects_Path.Add): For a library project, add to the object path
34235 the library directory only if there is no object directory or if the
34236 library directory contains ALI files.
34237 (Set_Ada_Paths.Add.Recursive_Add): Ditto
34238
34239 2004-10-26 Vincent Celier <celier@gnat.com>
34240
34241 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
34242 extension of library projects.
34243
34244 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
34245 path defaults to ".:<prefix>/lib/gnat".
34246 (Parse): For an extending all project, allow direct import of a project
34247 that is virtually extended.
34248
34249 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
34250 the specified name is directly imported, return its ID. Otherwise, if
34251 an extension of this project is imported, return the ID of the
34252 extension.
34253
34254 2004-10-26 Robert Dewar <dewar@gnat.com>
34255
34256 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
34257 (Sub3): New procedure, used by Scaled_Divide
34258 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
34259 correct more than one instance of failure to propagate carries
34260 correctly.
34261 (Double_Divide): Handle overflow case of largest negative number
34262 divided by minus one.
34263
34264 * s-arit64.ads (Double_Divide): Document that overflow can occur in
34265 the case of a quotient value out of range.
34266 Fix comments.
34267
34268 2004-10-26 Robert Dewar <dewar@gnat.com>
34269
34270 * s-bitops.adb (Bit_Eq): Remove redundant check.
34271
34272 * s-bitops.ads: Minor comment updates
34273 Change some occurrences of Address to System.Address
34274
34275 * s-carsi8.ads: Fix minor cut-and-paste error in comments
34276
34277 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34278
34279 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
34280 accessibility check to prefix that is a protected operation.
34281
34282 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34283
34284 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
34285 empty, post message on stub.
34286
34287 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34288 Javier Miranda <miranda@gnat.com>
34289
34290 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
34291 current instance appears within a unit that is directly in the context
34292 of the main unit.
34293 Used to determine whether the body of the instance should be analyzed
34294 immediately after its spec, to make its subprogram bodies available
34295 for front-end inlining.
34296 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
34297 constraint is not allowed on the component type (AARM 12.5.3(3))
34298
34299 2004-10-26 Cyrille Comar <comar@act-europe.fr>
34300
34301 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
34302 'Storage_Pool): enhance, document & limit detection of non-sharable
34303 internal pools.
34304
34305 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
34306
34307 * s-pooglo.ads: Add more documentation now that this pool is properly
34308 documented.
34309
34310 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34311
34312 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
34313 or protected type with discriminants, do not constrain the
34314 corresponding record type if the subtype declaration has no
34315 discriminant constraints. This can be the case in source code, or in
34316 the subtype declaration created to rename an actual type within an
34317 instantiation.
34318
34319 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34320
34321 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
34322 different kind of stub (possibly wrong name for file), do not check
34323 for conformance.
34324 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
34325 includes call to some function that returns an unconstrained type, do
34326 not inline.
34327
34328 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34329
34330 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
34331 appear in the code for the main unit. Dependencies among units in the
34332 context of the main unit are established when those other units are
34333 compiled. Otherwise spurious elaboration constraints can generate
34334 incorrect elaboration circularities.
34335
34336 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34337 Ed Schonberg <schonberg@gnat.com>
34338
34339 * sem_util.adb (Is_Aliased_View): Defend against the case where this
34340 subprogram is called with a parameter that is not an object name. This
34341 situation arises for some cases of illegal code, which is diagnosed
34342 later, and in this case it is wrong to call Is_Aliased, as that might
34343 cause a compiler crash.
34344 (Explain_Limited_Type): Refine previous fix to include
34345 inherited components of derived types, to provide complete information.
34346
34347 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
34348 is the prival for a protected object.
34349 It is necessary to mark this entity as a variable, in addition to
34350 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
34351 modified to avoid checking the Aliased flag on entities that are not
34352 objects. (Checking that flag for non-objects is erroneous and could
34353 lead to a compiler crash).
34354
34355 2004-10-26 Robert Dewar <dewar@gnat.com>
34356
34357 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
34358 X_Frac = 0.5, then we know that the number X must be positive.
34359 (Succ): Remove the same redundant test, and also fix the primary test
34360 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
34361 Minor reformatting
34362 (Decompose): Add fuller comments to spec
34363
34364 2004-10-26 Pascal Obry <obry@gnat.com>
34365
34366 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
34367 validity (process must have read access). Set to 0 in all other cases.
34368 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
34369 violation on Win32.
34370 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
34371 segmentation violation.
34372
34373 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
34374
34375 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
34376 whose type is a constructed subtype of an aliased object with an
34377 unconstrained nominal subtype, convert the actual to the constructed
34378 subtype before taking its address.
34379
34380 2004-10-26 Vincent Celier <celier@gnat.com>
34381
34382 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
34383 (Is_Path_Name_Case_Sensitive): New function
34384
34385 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
34386 (Base_Name, Simple_Name, Current_Directory, Compose,
34387 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
34388 the result.
34389
34390 2004-10-26 Cyrille Comar <comar@act-europe.fr>
34391 Vasiliy Fofanov <fofanov@act-europe.fr>
34392 Vincent Celier <celier@gnat.com>
34393
34394 * gnat_ugn.texi: Generalize "finding memory problems" section into a
34395 "memory management issues" section and document some of the useful
34396 memory pools provided as part of the GNAT library.
34397 Remove "virtual" from declaration of A::method2 in
34398 the simple example of Ada/C++ mixed system.
34399 Library Projects may be virtually extended: their virtual extensions
34400 are not Library Projects.
34401 Added section on extending project hierarchies.
34402
34403 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
34404
34405 * adaint.c (__gnat_get_libraries_from_registry): Cast value
34406 to LPBYTE.
34407 (__gnat_portable_spawn): Remove const.
34408
34409 * mingw32.h (MAXPATHLEN): Check for previous definition.
34410
34411 2004-10-17 Matthias Klose <doko@debian.org>
34412
34413 * gnatvsn.ads: Set gnat library version to 4.0.
34414
34415 2004-10-05 Vincent Celier <celier@gnat.com>
34416
34417 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
34418
34419 2004-10-04 Laurent Guerby <laurent@guerby.net>
34420
34421 PR ada/15156
34422 * Makefile.in: Define and use RANLIB_FLAGS.
34423
34424 2004-10-04 Pascal Obry <obry@gnat.com>
34425
34426 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
34427 other x86 platforms).
34428
34429 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
34430
34431 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
34432 in general and triggers stack alignment adjustment for thread entry
34433 points on targets where this is necessary.
34434
34435 2004-10-04 Bernard Banner <banner@gnat.com>
34436
34437 PR ada/13897
34438 * Makefile.in: Add section for powerpc linux
34439 Add variant i-vxwork-x86.ads
34440
34441 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
34442
34443 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
34444
34445 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
34446 table registration calls when need be. Ensures no reference to the crt
34447 ctors symbol are issued in the SJLJ case, which avoids possible
34448 undefined symbol errors in the case of modules to be statically linked
34449 with the kernel.
34450
34451 2004-10-04 Javier Miranda <miranda@gnat.com>
34452
34453 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
34454 in-line the code corresponding to subprogram Analyze_Actuals. In
34455 addition, analyze the actuals only in case of subprogram call.
34456
34457 2004-10-04 Ed Falis <falis@gnat.com>
34458
34459 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
34460
34461 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
34462
34463 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
34464 in the documentation.
34465
34466 2004-10-04 Robert Dewar <dewar@gnat.com>
34467
34468 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
34469 IF and CASE.
34470 (Analyze_Block_Statement): Add circuitry to detect following dead code
34471 (Check_Unreachable_Code): Handle case of block exit
34472
34473 2004-10-04 Robert Dewar <dewar@gnat.com>
34474
34475 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
34476 (XMatchD): Avoid warning for Logic_Error call
34477
34478 2004-10-04 Robert Dewar <dewar@gnat.com>
34479
34480 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
34481 consider expressions buried within a procedure actual to be an actual.
34482 This caused some blowups with uses of packed slices within a procedure
34483 actual.
34484
34485 2004-10-04 Robert Dewar <dewar@gnat.com>
34486
34487 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
34488 longer need to be initialized to zero.
34489 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
34490 initialized to zero.
34491
34492 * checks.adb (Expr_Known_Valid): Packed arrays are now always
34493 considered valid, even if the representation is modular. That's correct
34494 now that we no longer initialize packed modular arrays to zero.
34495
34496 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
34497 suffixes. These are now documented as the only cases in which the
34498 debugger ignores outer records.
34499 Previously, the spec allowed arbitrary suffixes for this purpose.
34500 Change name of LJM to JM for packed array pad records
34501 Create separate section on packed array handling, and add a whole new
34502 set of comments to this section describing the situation with packed
34503 modular types and justification requirements depending on endianness.
34504
34505 2004-10-04 Robert Dewar <dewar@gnat.com>
34506
34507 * a-except.adb: Add a comment for last change
34508
34509 * einfo.ads: Minor spelling correction in comment
34510
34511 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
34512
34513 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
34514 messages.
34515
34516 * sem_util.ads: Minor comment update
34517
34518 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34519
34520 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
34521 Inline_Always when in Configurable_Run_Time mode.
34522
34523 * sem_prag.adb (Process_Convention): If entity is an inherited
34524 subprogram, apply convention to parent subprogram if in same scope.
34525 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
34526 when in Configurable_Run_Time mode.
34527
34528 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34529
34530 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
34531 class_wide type after component list has been inherited.
34532
34533 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34534
34535 * sem_ch12.adb (Check_Generic_Actuals): New predicate
34536 Denotes_Previous_Actual, to handle properly the case of a private
34537 actual that is also the component type of a subsequent array actual.
34538 The visibility status of the first actual is not affected when the
34539 second is installed.
34540 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
34541 make fully recursive the treatment of formals of packages declared
34542 with a box.
34543 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
34544 the above on exit from an instantiation.
34545 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
34546 current instantiation which is now complete.
34547 (Analyze_Package_Instantiation): No instantiated body is needed if the
34548 main unit is generic. Efficient, and avoid anomalies when a instance
34549 appears in a package accessed through rtsfind.
34550
34551 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34552
34553 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
34554 do not generate a declaration for a temporary if the call is part of a
34555 library-level instantiation.
34556
34557 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34558
34559 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
34560 searching for a limited component to flag.
34561
34562 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
34563 expansion of Input, to account for the fact that the implicit call
34564 generated by the attribute reference must freeze the user-defined
34565 stream subprogram. This is only relevant to 'Input, because it can
34566 appear in an object declaration, prior to the body of the subprogram.
34567
34568 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
34569 expansion can proceed and further errors uncovered.
34570 (Minor clean up): Fix cases of using | instead of \ for continuation
34571 messages.
34572
34573 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34574
34575 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
34576
34577 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
34578 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
34579 Use gcc_assert and gcc_unreachable.
34580
34581 * decl.c (gnat_to_gnu_entity, case object): Check and process a
34582 specified alignment before validating size.
34583 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
34584 stripped-down declaration for the type of the inner field when making
34585 a JM type.
34586
34587 * utils.c (finish_record_type): Do not compute the size in units
34588 incrementally. Instead compute it once for the rep clause case.
34589 Use gcc_assert and gcc_unreachable.
34590
34591 2004-10-04 Vincent Celier <celier@gnat.com>
34592
34593 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
34594 in file name.
34595 (Is_Valid_Path_Name): Take '/' as a directory separator.
34596
34597 2004-10-04 Vincent Celier <celier@gnat.com>
34598
34599 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
34600 (Extended_Project) only if Extended_Project is defined, to avoid
34601 assertion error.
34602 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
34603 resolved path.
34604 (Parse_Single_Project): Ditto.
34605
34606 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
34607 Add_To_Project_Path for virtual projects.
34608
34609 2004-10-04 Vincent Celier <celier@gnat.com>
34610
34611 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34612 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
34613 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
34614 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
34615 parameter Options_2.
34616
34617 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
34618 Build_Dynamic_Library with an empty Options_2.
34619
34620 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
34621 default anymore.
34622
34623 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
34624 directory separator, if any.
34625 (Gprmake): Do not allow mains on the command line for library projects.
34626 Do not attempt to link when the project is a library project.
34627 (Library_Opts): New table to store Library_Options.
34628 (Build_Library): If Library_Options is specified, pass these options
34629 when building a shared library.
34630
34631 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
34632
34633 * s-tposen.adb (Service_Entry): The object must be always unlocked at
34634 the end of this procedure now that the unlock operation was inserted
34635 by the expander.
34636
34637 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
34638
34639 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
34640 corresponding to the Preallocated_Stacks flags in System.
34641 (Get_Target_Parameters): Including the processing for
34642 Preallocated_Stacks.
34643
34644 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
34645 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
34646 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
34647 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
34648 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
34649 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
34650 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
34651 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
34652 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
34653 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
34654 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
34655 used to signal whether the compiler creates the required stacks and
34656 descriptors for the different tasks (when True) or it is done by the
34657 underlying operating system at run time (when False).
34658 It is initially set to False in all targets.
34659
34660 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
34661 if it is supported by the target.
34662 (Make_Task_Create_Call): Pass the stack address if it has been
34663 previously created. Otherwise pass a Null_Address.
34664
34665 * snames.adb: Add _stack.
34666
34667 * snames.ads: Add Name_uStack. Required to allow the expander to
34668 statically allocated task stacks.
34669
34670 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
34671 Stack_Address argument.
34672 Check that its value is equal to Null_Address because this target does
34673 not support the static stack allocation.
34674
34675 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34676
34677 * usage.adb: Change "pragma inline" to "pragma Inline" in information
34678 and error messages
34679
34680 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34681
34682 * exp_dist.adb: Split declaration of asynchronous flag out of
34683 Add_RACW_Read_Attribute.
34684 Minor reformatting for better alignment with PolyORB version.
34685 Store the entity for the asynchronous flag of an RACW, rather than the
34686 expression, in the asynchronous flags table. This will allow this flag
34687 to be used in other subprograms beside Add_RACW_Read_Attribute.
34688
34689 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34690
34691 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
34692 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
34693 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
34694 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
34695 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
34696 sockets constant MSG_NOSIGNAL (Linux-specific).
34697 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
34698 all Send operations.
34699 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
34700 from trigerring SIGPIPE.
34701 Rename components to avoid clash with Ada 2005 possible reserved
34702 word 'interface'.
34703 (Check_Selector): When the select system call returns with an error
34704 condition, propagate Socket_Error to the caller.
34705
34706 2004-10-01 Jan Hubicka <jh@suse.cz>
34707
34708 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
34709
34710 2004-09-23 Robert Dewar <dewar@gnat.com>
34711
34712 PR ada/17540
34713 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
34714 instead do this at freeze time (we won't do it if there is an address
34715 clause).
34716 Change "pragma inline" to "pragma Inline" in information and error
34717 messages.
34718 Minor reformatting.
34719
34720 * freeze.adb (Check_Address_Clause): Remove previous change, not the
34721 right way of doing things after all.
34722 (Freeze_Entity): For object, set Is_Public for imported entities
34723 unless there is an address clause present.
34724
34725 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
34726
34727 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
34728 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
34729 ensures proper handling of types with rep clauses, which might have
34730 their TYPE_SIZE set already.
34731
34732 2004-09-21 Robert Dewar <dewar@gnat.com>
34733
34734 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
34735 packed array types in both little- and big-endian cases. This change
34736 ensures that we no longer count on the unused bits being initialized
34737 for such types (and in particular ensures that equality testing will
34738 only read the relevant bits).
34739 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
34740 These changes mean that we no longer need to initialize small packed
34741 arrays.
34742 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
34743 optimization to an LJM field as to its parent field.
34744
34745 * ada-tree.h, trans.c, utils.c, utils2.c:
34746 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
34747
34748 2004-09-20 Jan Hubicka <jh@suse.cz>
34749
34750 * utils.c (gnat_finalize): Remove.
34751 (end_subprog_body): Directly call cgraph_finalize_function;
34752 do not lower the nested functions.
34753
34754 2004-09-20 Robert Dewar <dewar@gnat.com>
34755
34756 PR ada/17540
34757 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
34758 if an address clause is present, since that means that the Import
34759 should be ignored.
34760
34761 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
34762
34763 * 5tsystem.ads: Removed, no longer used.
34764
34765 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
34766 Zack Weinberg <zack@codesourcery.com>
34767
34768 * ada-tree.def: Use tree_code_class enumeration constants
34769 instead of code letters.
34770 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
34771 Update for new tree-class enumeration constants.
34772
34773 2004-09-17 Vincent Celier <celier@gnat.com>
34774
34775 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
34776 capabilities of the general project manager.
34777
34778 2004-09-09 Vincent Celier <celier@gnat.com>
34779
34780 * a-direct.ads: Add pragma Ada_05
34781 (Directory_Entry_Type): Give default value to component Kind to avoid
34782 not initialized warnings.
34783
34784 * a-direct.adb (Current_Directory): Remove directory separator at the
34785 end.
34786 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
34787 an existing directory.
34788 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
34789 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
34790 Convert the result to File_Size.
34791
34792 * prj.ads: (Project_Error): New exception
34793
34794 * prj-attr.adb: Except in procedure Initialize, Fail comes from
34795 Prj.Com, not from Osint.
34796 (Attrs, Package_Attributes): Tables moved to private part of spec
34797 (Add_Attribute, Add_Unknown_Package): Moved to new child package
34798 Prj.Attr.PM.
34799 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
34800 Prj.Project_Error after call to Fail.
34801 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
34802 Fail. Check that package name is not already in use.
34803
34804 * prj-attr.ads: Comment updates to indicate that all subprograms may be
34805 used by tools, not only by the project manager, and to indicate that
34806 exception Prj.Prj_Error may be raised in case of problem.
34807 (Add_Unknown_Package, Add_Attribute): Moved to new child package
34808 Prj.Attr.PM.
34809 (Attrs, Package_Attributes): Table instantiations moved from the body to
34810 the private part to be accessible from Prj.Attr.PM body.
34811
34812 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
34813 from new package Prj.Attr.PM.
34814 (Parse_Attribute_Declaration): Call Add_Attribute from new package
34815 Prj.Attr.PM.
34816
34817 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
34818
34819 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
34820 instead of Elaboration_Checks).
34821
34822 * a-calend.adb: Minor reformatting
34823
34824 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34825
34826 * gigi.h (maybe_pad_type): New declaration.
34827 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
34828
34829 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
34830
34831 * cuintp.c: Convert to use buildN.
34832
34833 * decl.c (maybe_pad_type): No longer static.
34834 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
34835 target pointer.
34836 Convert to use buildN.
34837
34838 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
34839 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
34840 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
34841 RHS.
34842 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
34843 (gnat_gimplify_expr, case ADDR_EXPR): New case.
34844 Convert to use buildN.
34845
34846 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
34847 TREE_READONLY for const.
34848 Convert to use buildN.
34849
34850 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
34851 (create_var_decl): Refine when TREE_STATIC is set.
34852 Convert to use buildN.
34853
34854 2004-09-09 Gary Dismukes <dismukes@gnat.com>
34855
34856 * gnat_ugn.texi: Delete text relating to checking of ali and object
34857 consistency.
34858
34859 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
34860 routines.
34861
34862 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
34863
34864 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
34865 pragmas recognized by GNAT.
34866
34867 * gnat_rm.texi: Document pragma Detect_Blocking.
34868
34869 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
34870 raise Program_Error if called from a protected operation.
34871
34872 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
34873 the protected action nesting level.
34874 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
34875 protected action nesting level.
34876 (Unlock): When pragma Detect_Blocking is active decrease the protected
34877 action nesting level.
34878
34879 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
34880 Protected_Action_Nesting.
34881
34882 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
34883 Common_ATCB record. It contains the dynamic level of protected action
34884 nesting for each task. It is needed for checking whether potentially
34885 blocking operations are called from protected operations.
34886 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
34887 Detect_Blocking is active or not in the partition.
34888
34889 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
34890 raise Program_Error if called from a protected operation.
34891 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
34892 Program_Error if called from a protected operation.
34893 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
34894 Program_Error if called from a protected operation.
34895
34896 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
34897 raise Program_Error if called from a protected operation.
34898
34899 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
34900 raise Program_Error if called from a protected operation, and increase
34901 the protected action nesting level.
34902 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
34903 Program_Error if called from a protected operation, and increase the
34904 protected action nesting level.
34905 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
34906 protected action nesting level.
34907
34908 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
34909 raise Program_Error if called from a protected operation, and increase
34910 the protected action nesting level.
34911 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
34912 Program_Error if called from a protected operation, and increase the
34913 protected action nesting level.
34914 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
34915 raise Program_Error if called from a protected operation.
34916 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
34917 active, raise Program_Error if called from a protected operation.
34918 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
34919 protected action nesting level.
34920
34921 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
34922 insertion of the statement raising Program_Error. The run time
34923 contains the required machinery for handling that.
34924
34925 * sem_util.ads: Change comment associated to procedure
34926 Check_Potentially_Blocking_Operation.
34927 This procedure does not insert a call for raising the exception because
34928 that is currently done by the run time.
34929
34930 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
34931
34932 * init.c: Add the global variable __gl_detect_blocking that indicates
34933 whether pragma Detect_Blocking is active (1) or not (0). Needed for
34934 making the pragma available at run time.
34935 (__gnat_set_globals): Pass and update the detect_blocking parameter.
34936
34937 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
34938 pragma Detect_Blocking is active.
34939
34940 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
34941
34942 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
34943 DB is found in the ali file. Any unit compiled with pragma
34944 Detect_Blocking active forces its effect in the whole partition.
34945
34946 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
34947 Detect_Blocking is active and delay is called from a protected
34948 operation.
34949
34950 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
34951 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
34952 Detect_Blocking is active (0 otherwise).
34953 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
34954 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
34955 otherwise).
34956
34957 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
34958
34959 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
34960 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
34961 package.
34962
34963 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
34964 (Register_Receiving_Stub): Add Subp_Info formal parameter.
34965 Update API in placeholder implemetation of s-parint to reflect changes
34966 in distribution runtime library.
34967
34968 * sem_ch3.adb (Expand_Derived_Record): Rename to
34969 Expand_Record_Extension.
34970
34971 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
34972 primitive operations of potentially distributed object types that have
34973 non-controlling anonymous access formals.
34974
34975 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
34976 subprogram.
34977 New implementation of expansion for remote access-to-subprogram types,
34978 based on the RACW infrastructure.
34979 This version of sem_dist is compatible with PolyORB/DSA as well as
34980 GLADE.
34981
34982 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
34983 Asynchrronous that applies to a remote access-to-subprogram type, mark
34984 the underlying RACW type as asynchronous.
34985
34986 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
34987 __gnat_using_gnu_linker to 1.
34988
34989 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
34990 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
34991 GNAT.Perfect_Hash_Generators, and remove the empty
34992 GNAT.Perfect_Hash package.
34993
34994 * atree.adb: Minor reformatting
34995
34996 * exp_ch3.adb (Expand_Derived_Record): Rename to
34997 Expand_Record_Extension.
34998 (Build_Record_Init_Proc.Build_Assignment): The default expression in
34999 a component declaration must remain attached at that point in the
35000 tree so New_Copy_Tree copies it if the enclosing record type is derived.
35001 It is therefore necessary to take a copy of the expression when building
35002 the corresponding assignment statement in the init proc.
35003 As a side effect, in the case of a derived record type, we now see the
35004 original expression, without any rewriting that could have occurred
35005 during expansion of the ancestor type's init proc, and we do not need
35006 to go back to Original_Node.
35007
35008 * exp_ch3.ads (Expand_Derived_Record): Rename to
35009 Expand_Record_Extension.
35010
35011 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
35012 Returns the RACW type used to implement a remote access-to-subprogram
35013 type.
35014 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
35015 New subprograms. Used to create a proxy tagged object for a remote
35016 subprogram. The proxy object is used as the designated object
35017 for RAS values on the same partition (unless All_Calls_Remote applies).
35018 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
35019 System.Partition_Interface.Get_Unique_Remote_Pointer.
35020 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
35021 Renamed from Add_RAS_*_Attribute.
35022 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
35023 subprograms.
35024 New implementation of expansion for remote access-to-subprogram types,
35025 based on the RACW infrastructure.
35026
35027 * exp_dist.ads (Copy_Specification): Update comment to note that this
35028 function can copy the specification from either a subprogram
35029 specification or an access-to-subprogram type definition.
35030
35031 2004-09-09 Ed Schonberg <schonberg@gnat.com>
35032
35033 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
35034 in an instance, between an explicit subprogram an one inherited from a
35035 type derived from an actual.
35036
35037 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
35038 add a polling call if the subprogram is to be inlined by the back-end,
35039 to avoid repeated calls with multiple inlinings.
35040
35041 * checks.adb (Apply_Alignment_Check): If the expression in the address
35042 clause is a call whose name is not a static entity (e.g. a dispatching
35043 call), treat as dynamic.
35044
35045 2004-09-09 Robert Dewar <dewar@gnat.com>
35046
35047 * g-trasym.ads: Minor reformatting
35048
35049 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
35050 packed arrays, since unused bits are expected to be zero for a
35051 comparison.
35052
35053 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
35054
35055 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
35056 comment.
35057
35058 2004-09-09 Pascal Obry <obry@gnat.com>
35059
35060 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
35061 enable map file generation. Add the right option to generate the map
35062 file if Map_File is set to True.
35063
35064 * gnatdll.adb (Gen_Map_File): New variable.
35065 (Syntax): Add info about new -m (Map_File) option.
35066 (Parse_Command_Line): Add support for -m option.
35067 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
35068 Minor reformatting.
35069
35070 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
35071
35072 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
35073 new gnatdist implementation.
35074 Define a subpackage isolating the output routines specific to this
35075 verbose mode.
35076
35077 2004-09-09 Joel Brobecker <brobecker@gnat.com>
35078
35079 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
35080
35081 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
35082
35083 2004-09-09 Cyrille Comar <comar@act-europe.fr>
35084
35085 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
35086 internal unit.
35087
35088 * opt.ads: Add Ada_Version_Runtime constant used to decide which
35089 version of the language is used to compile the run time.
35090
35091 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
35092
35093 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
35094 of variable length temporaries for function return now that the
35095 back-end and gigi support it.
35096
35097 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35098
35099 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
35100
35101 * trans.c (struct stmt_group): Delete field GLOBAL.
35102 (gnat_init_stmt_group): Do not initialize it.
35103 (call_to_gnu): Use save_expr, not protect_multiple_eval.
35104 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
35105 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
35106 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
35107 (start_stmt_group): Likewise.
35108 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
35109
35110 * utils2.c (ggc.h): Include.
35111 (build_call_raise): Call build_int_cst, not build_int_2.
35112
35113 * utils.c (gnat_init_decl_processing): Fix arg to
35114 build_common_tree_nodes.
35115 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
35116 (gnat_define_builtin): Set built_in_decls.
35117 (init_gigi_decls): Call build_int_cst, not build_int_2.
35118
35119 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
35120 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
35121 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
35122 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
35123 SET_TYPE_MODULE): Use them.
35124 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
35125 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
35126 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
35127 SET_TYPE_ADA_SIZE): Likewise.
35128 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
35129 (DECL_CONST_CORRESPONDING_VAR,
35130 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
35131 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
35132 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
35133 (TYPE_RM_SIZE_NUM): New macro.
35134 (TYPE_RM_SIZE): Modified to use above.
35135
35136 * cuintp.c: (build_cst_from_int): New function.
35137 (UI_To_gnu): Use it.
35138
35139 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
35140 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
35141 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
35142 MIN_EXPR for the size, copy it into new.
35143
35144 2004-09-01 Robert Dewar <dewar@gnat.com>
35145
35146 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
35147 packed indexed component where array is an IN OUT formal. This
35148 generated garbage code previously.
35149
35150 * gnat_ugn.texi: Document -fverbose-asm
35151
35152 * gnat-style.texi: Minor updates (note that boolean constants and
35153 variables are joined with AND/OR rather than short circuit forms).
35154
35155 2004-09-01 Ed Schonberg <schonberg@gnat.com>
35156
35157 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
35158 it is an upward conversion of an untagged type with no representation
35159 change.
35160
35161 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
35162
35163 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
35164 System.Partition_Interface.
35165
35166 * checks.adb (Apply_Access_Checks): Do not generate checks when
35167 expander is not active (but check for unset reference to prefix of
35168 dereference).
35169
35170 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
35171 pragma Debug as an if statement with a constant condition, for
35172 consistent treatment of entity references contained within the
35173 enclosed procedure call.
35174
35175 2004-09-01 Vincent Celier <celier@gnat.com>
35176
35177 * bindgen.adb: (Set_EA_Last): New procedure
35178 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
35179 Set_EA_Last.
35180 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
35181 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
35182 linked without errors.
35183 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
35184 ST and EA.
35185 (Gen_Exception_Table_C): Correct same bugs
35186
35187 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
35188
35189 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
35190 on Windows, make sure that the drive letter is in upper case.
35191
35192 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
35193 Windows, when the drive letter is added and Case_Sensitive is True, the
35194 drive letter is forced to upper case.
35195
35196 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
35197 to Options_2 for the call to MLib.Utl.Gcc.
35198
35199 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
35200 directory separator when defining BASE_DIR.
35201
35202 2004-09-01 Pascal Obry <obry@gnat.com>
35203
35204 * gprcmd.adb (Extend): Do not output trailing directory separator. This
35205 is not needed and it confuses Windows GNU/make which does not report
35206 directory terminated by a slash as a directory.
35207 (gprcmd): Idem for "pwd" internal command.
35208
35209 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
35210 target names rewrite to fix regressions with recent version of
35211 GNU/make. Starting with GNU/make 3.80 the pipe character was not
35212 handled properly anymore.
35213
35214 2004-09-01 Andreas Schwab <schwab@suse.de>
35215
35216 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
35217 * raise.c [!IN_RTS]: Undef abort.
35218
35219 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
35220
35221 * utils2.c (build_allocator): Use ssize_int.
35222
35223 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
35224
35225 2004-08-27 Andreas Schwab <schwab@suse.de>
35226
35227 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
35228
35229 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
35230 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35231
35232 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
35233
35234 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
35235
35236 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
35237 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
35238 * utils.c (init_gigi_decls): Likewise.
35239 * utils2.c (build_call_raise, build_allocator): Likewise.
35240
35241 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
35242
35243 * utils.c (gnat_init_decl_processing): Adjust
35244 build_common_tree_nodes call.
35245
35246 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
35247
35248 * utils2.c (build_allocator): Use build_int_cst for negative
35249 size types.
35250
35251 2004-08-18 Richard Henderson <rth@redhat.com>
35252
35253 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
35254
35255 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
35256
35257 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
35258 call.s
35259 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
35260 (gnat_to_gnu): Likewise.
35261
35262 2004-08-16 Pascal Obry <obry@gnat.com>
35263
35264 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
35265 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
35266 option and not mdll anymore. Update comment.
35267
35268 2004-08-16 Pascal Obry <obry@gnat.com>
35269
35270 * bld.adb (Put_Include_Project): Properly handle directory separators
35271 on Windows.
35272
35273 2004-08-16 Ed Schonberg <schonberg@gnat.com>
35274
35275 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
35276 decreasing the number of allocated junk nodes while searching for the
35277 appropriate subprogram.
35278
35279 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
35280
35281 * cuintp.c (UI_To_gnu): Use build_int_cst..
35282 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
35283 * utils.c (init_gigi_decls): Likewise.
35284 * utils2.c (build_call_raise): Likewise.
35285
35286 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
35287
35288 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
35289 for a global aliased object with a variable size and an unconstrained
35290 nominal subtype, pretend there is no initializer if the one we have is
35291 incomplete, and avoid referencing an inexistant component in there. The
35292 part we have will be rebuilt anyway and the reference may confuse
35293 further operations.
35294
35295 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
35296
35297 * einfo.ads: Minor reformatting
35298
35299 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
35300 restrictions in the ALI if we only want to warn about violations.
35301
35302 2004-08-13 Vincent Celier <celier@gnat.com>
35303
35304 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
35305 when creating a new Unit_Record in table Units.
35306
35307 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
35308 that are violated, if any.
35309
35310 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
35311 add directory separator if path already ends with a directory separator.
35312
35313 2004-08-13 Ed Schonberg <schonberg@gnat.com>
35314
35315 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
35316 unit, this is an attempt to inline a construct that is not available in
35317 the current restricted mode, so abort rather than trying to continue.
35318
35319 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
35320 discriminants that rename those of the parent, recover names of
35321 original discriminants for the constraint on the full view of the
35322 parent.
35323 (Complete_Private_Subtype): Do not create a subtype declaration if the
35324 subtype is an itype.
35325
35326 * gnat_rm.texi: Added section on implementation of discriminated
35327 records with default values for discriminants.
35328
35329 2004-08-13 Ed Schonberg <schonberg@gnat.com>
35330
35331 PR ada/15601
35332 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
35333 the second operand is overloaded.
35334
35335 2004-08-10 Richard Henderson <rth@redhat.com>
35336
35337 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
35338 add __builtin_alloca.
35339
35340 2004-08-10 Richard Henderson <rth@redhat.com>
35341
35342 * config-lang.in (boot_language): Yes.
35343
35344 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
35345
35346 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
35347 from complaining on potential uninitialized reference.
35348 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
35349 new specification and test explicitly for non-zero return value.
35350
35351 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
35352 returning C.int, to avoid using a derived boolean type.
35353
35354 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
35355 Duplicate_Subexpr_No_Checks in preference to direct use of
35356 Remove_Side_Effects and New_Copy_Tree.
35357 Clear Comes_From_Source on prefix of 'Size attribute reference.
35358
35359 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
35360 g-socthi-vxworks.adb: Change calls to
35361 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
35362 and test explicitly for non-zero return value.
35363
35364 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
35365 (Is_Socket_In_Set): Declare imported function as returning C.int, to
35366 avoid using a derived boolean type.
35367
35368 2004-08-09 Albert Lee <lee@gnat.com>
35369
35370 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
35371
35372 2004-08-09 Pascal Obry <obry@gnat.com>
35373
35374 * gnat_ugn.texi: Document new way to build DLLs on Windows using
35375 GCC's -shared option.
35376
35377 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
35378 Options_2 parameter (options put after object files).
35379
35380 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
35381
35382 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
35383 ignore overflows on low and high bounds of an index to also account for
35384 differences in signedness between sizetype and gnu_index_subtype.
35385 These are as legitimate as the ones caused by a lower TYPE_PRECISION
35386 on sizetype.
35387
35388 2004-08-09 Robert Dewar <dewar@gnat.com>
35389
35390 * s-solita.ads, s-solita.adb: Minor reformatting
35391
35392 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
35393 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
35394 obsolescent section
35395 Add note that No_Implicit_Conditionals does not suppress
35396 run time constraint checks.
35397
35398 * vms_conv.ads: Minor reformatting
35399
35400 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
35401 and necessary for following change).
35402 (Mark): Return new format Mark_Id containing sec stack address
35403 (Release): Use sec stack address from Mark_Id avoiding Self call
35404
35405 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
35406 pointer (cleanup and necessary for following change).
35407 Define Mark_Id as record containing address of secondary stack, that way
35408 Release does not need to find the stack again, decreasing the number of
35409 calls to Self and improving efficiency.
35410
35411 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
35412
35413 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
35414 case variable into the individual case branches when possible.
35415
35416 * sem_ch11.adb: Minor reformatting
35417
35418 * prj.ads: Correct spelling of suffixs
35419
35420 * prj-nmsc.adb: Minor reformatting
35421 Correct spelling suffixs throughout (also in identifiers)
35422
35423 * freeze.adb: Minor spelling correction
35424
35425 * exp_ch2.adb: Cleanups to handling of Current_Value
35426 (no functional effect).
35427
35428 * bld.adb: Correct spelling of suffixs
35429
35430 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
35431
35432 2004-08-09 Ed Schonberg <schonberg@gnat.com>
35433
35434 PR ada/15408
35435 * sem_ch7.adb (Install_Private_Declarations): In the body of the
35436 package or of a child, private entities are both immediately_visible
35437 and not hidden.
35438
35439 2004-08-09 Ed Schonberg <schonberg@gnat.com>
35440
35441 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
35442 there are no range checks on the value of the literal.
35443
35444 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
35445 wrapped is the triggering alternative of an asynchronous select, action
35446 statements mustbe inserted before the select itself.
35447
35448 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
35449 case where the prefix is a protected function call.
35450 (Resolve_Attribute, case 'Access): The attribute reference on a
35451 subprogram is legal in a generic body if the subprogram is declared
35452 elsewhere.
35453
35454 2004-08-09 Vincent Celier <celier@gnat.com>
35455
35456 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
35457 languages, otherwise building the library may fail with unresolved
35458 symbols.
35459 (Compile_Sources): Do not build libraries if -c switch is used
35460
35461 * gnatlink.adb (Process_Args): New switches -M and -Mmap
35462 (Write_Usage): If map file creation is supported, output new switches
35463 -M and -Mmap.
35464 (Gnatlink): When -M is specified, add the necessary switch(es) to the
35465 gcc call, when supported.
35466
35467 * Makefile.in: Added indepsw.o to the object list for gnatlink
35468 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
35469
35470 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
35471 indepsw.adb, indepsw.ads: New files.
35472
35473 2004-08-09 Bernard Banner <banner@gnat.com>
35474
35475 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
35476
35477 * Makefile.in: add section for vxworks x86
35478
35479 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
35480
35481 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
35482 per-object constrained components where the discriminant is of an
35483 Access type.
35484 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
35485 the parent initialization procedure for derived Unchecked_Unions.
35486 Instead, derived Unchecked_Unions build their own initialization
35487 procedure.
35488 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
35489 Check the body of the subprogram for details.
35490 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
35491 functions for derived Unchecked_Union types by introducing a condition.
35492 Allow the creation of TSS equality functions for Unchecked_Unions.
35493 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
35494 Add formal parameter Discr to function signature. Discr is used to
35495 control the generated case statement for Unchecked_Union types.
35496 (Make_Eq_If): Rename formal parameter Node to E in function signature.
35497
35498 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
35499 Unchecked_Unions.
35500 Check the body of the subprogram for details.
35501 (Expand_Composite_Equality): Augment composite type equality to include
35502 correct handling of Unchecked_Union components.
35503 (Expand_N_In): Add condition to detect illegal membership tests when the
35504 subtype mark is a constrained Unchecked_Union and the expression lacks
35505 inferable discriminants, and build a Raise_Program_Error node.
35506 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
35507 to detect types that contain components of unconstrained Unchecked_Union
35508 subtype. Add condition to detect equality between types that have an
35509 unconstrained Unchecked_Union component, and build a Raise_Program_Error
35510 node. Add condition to detect equality between Unchecked_Union types
35511 that lack inferable discriminants, and build a Raise_Program_Error node.
35512 Otherwise build a TSS equality function call.
35513 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
35514 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
35515 with the operand lacking inferable discriminants, and build a Raise_
35516 Program_Error node.
35517 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
35518 composite equality.
35519 (Has_Inferable_Discriminants): Implement new predicate for objects and
35520 expressions of Unchecked_Union type. Check the body of subprogram for
35521 details.
35522 (Has_Unconstrained_UU_Components): Add function
35523 Component_Is_Unconstrained_UU. It is used to detect whether a single
35524 component is of an unconstrained Unchecked_Union subtype. Add function
35525 Variant_Is_Unconstrained_UU. It is used to detect whether a single
35526 component inside a variant is of an unconstrained Unchecked_Union type.
35527
35528 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
35529 inferred discriminant values. Add condition to generate a case
35530 statement with an inferred discriminant as the switch.
35531 (Make_Component_List_Assign): Introduce a Boolean flag that determines
35532 the behaviour of the subprogram in the presence of an Unchecked_Union.
35533 Add condition to trigger the usage of the inferred discriminant value
35534 as the generated case statement switch.
35535 (Make_Field_Assign): Introduce a Boolean flag that determines the
35536 behaviour of the subprogram in the presence of an Unchecked_Union. Add
35537 condition to trigger the usage of the inferred discriminant value as
35538 the right-hand side of the generated assignment.
35539
35540 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
35541 parameter generation when dealing with Unchecked_Unions.
35542
35543 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
35544 checks for Unchecked_Unions.
35545
35546 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
35547
35548 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
35549 Raise_Program_Error nodes for the execution of Read and Write
35550 attributes of Unchecked_Union types and the execution of Input and
35551 Output attributes of Unchecked_Union types that lack default
35552 discriminant values.
35553
35554 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
35555 Unchecked_Union. Add procedure Check_Component. It is used to inspect
35556 per-object constrained components of Unchecked_Unions for being
35557 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
35558 check individual components withing a variant.
35559
35560 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
35561 comparison of Unchecked_Unions.
35562 (Resolve_Equality_OP): Remove guard that prevents equality between
35563 Unchecked_Unions.
35564
35565 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
35566 of component subtypes for Unchecked_Union components.
35567 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
35568 since it is the actual subtype.
35569
35570 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
35571 pass of Unchecked_Union subtypes as generic actuals to formal types
35572 that lack known_discriminant_parts or that are derived Unchecked_Union
35573 types, and do nothing. In any other case, produce an error message.
35574
35575 * sem_ch3.adb (Analyze_Component_Declaration): Add function
35576 Contains_POC. It determines whether a constraint uses the discriminant
35577 of an enclosing record type.
35578 Add condition to detect per-object constrained component and set the
35579 appropriate flag.
35580 (Derived_Type_Declaration): Remove guard that prevents derivation from
35581 Unchecked_Union types.
35582 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
35583 Union subtypes.
35584
35585 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
35586 references to Unchecked_Union discriminants.
35587
35588 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
35589 formal generation when dealing with Unchecked_Unions.
35590 (Set_Actual_Subtypes): Add condition to prevent generation of actual
35591 subtypes for Unchecked_Unions.
35592
35593 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
35594 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
35595 completions of discriminated partial views by Unchecked_Unions and
35596 produce an error message.
35597
35598 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35599
35600 * trans.c (struct stmt_group): New field, GLOBAL.
35601 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
35602 (struct elab_info): New struct.
35603 (elab_info_list, gnu_elab_proc_stack): New variables.
35604 (Compilation_Unit_to_gnu): New procedure.
35605 (gigi): Call it and also handle elaboration procs we've saved.
35606 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
35607 global field from parent.
35608 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
35609 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
35610 (start_stmt_group): Initialize global field from parent.
35611 (add_decl_expr): Set to global for current statement group.
35612 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
35613 post.
35614
35615 * utils.c (global_bindings_p): True when no current_function_decl; no
35616 longer check current_binding_level.
35617
35618 2004-08-09 Ben Brosgol <brosgol@gnat.com>
35619
35620 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
35621 choice.
35622
35623 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
35624
35625 2004-08-06 Andreas Schwab <schwab@suse.de>
35626
35627 * utils.c (gnat_define_builtin): Remove second parameter of
35628 make_decl_rtl.
35629 (begin_subprog_body): Likewise.
35630
35631 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
35632
35633 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
35634 optimization, not supported by the tree-ssa back-end.
35635
35636 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
35637
35638 * s-mastop-irix.adb: Update comments.
35639
35640 * a-except.adb (Exception_Information): Raise Constraint_Error if
35641 exception Id is Null_Id.
35642 This is required behavior, which is more reliably and clearly checked
35643 at the top level interface level.
35644
35645 2004-07-26 Javier Miranda <miranda@gnat.com>
35646
35647 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
35648 call if a component has no default_expression and the box is used.
35649
35650 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
35651 default_expression and you use box, it behaves as if you had declared a
35652 stand-alone object.
35653 (Resolve_Record_Aggregate): If a component has no default_expression and
35654 you use box, it behaves as if you had declared a stand-alone object.
35655
35656 * sem_ch10.adb (Install_Siblings): Do not make visible the private
35657 entities of private-with siblings.
35658
35659 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35660
35661 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
35662 for a component of an itype, set the parent pointer for analysis,
35663 there is no list in which to insert it.
35664
35665 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
35666 bona-fide renamings, not for inherited operations.
35667
35668 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
35669 actual for a formal that is an access parameter, create local
35670 finalization list even if the expression is not an aggregate.
35671
35672 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35673
35674 PR ada/16213
35675 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
35676 Diagnose properly illegal subprogram renamings that are library units.
35677
35678 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35679
35680 PR ada/15588
35681 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
35682 conversion rewritten as an unchecked conversion, check that original
35683 expression is a variable.
35684
35685 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
35686 unchecked_conversion, create new node rather than rewriting in place,
35687 to preserve original construct.
35688
35689 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35690
35691 * gigi.h (gnat_expand_body): Deleted.
35692
35693 * Make-lang.in: (trans.o): Depends on function.h.
35694
35695 * misc.c: (gnat_expand_body): Moved to here.
35696
35697 * trans.c (gnat_expand_body_1): Deleted.
35698 (gnat_expand_body): Moved from here.
35699 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
35700 (add_stmt): Check for marked visited with global_bindings_p.
35701 (gnat_gimplify_expr, case COMPONENT_REF): New case.
35702 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
35703
35704 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
35705 VIEW_CONVERT_EXPR if not operation type.
35706
35707 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
35708 fat pointer.
35709
35710 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
35711 changes: reformatting of negation operators, removing unneeded
35712 inequality comparison with zero, converting equality comparisons with
35713 zero to negations, changing int/0/1 to bool/false/true, replace calls
35714 to gigi_abort with abort, and various other similar changes.
35715
35716 2004-07-26 Vincent Celier <celier@gnat.com>
35717
35718 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
35719 "setup".
35720
35721 * make.adb (Gnatmake): Fail when a library is not present and there is
35722 no object directory.
35723
35724 * mlib-prj.adb (Check_Library): No need to check if the library needs
35725 to be rebuilt if there is no object directory, hence no object files
35726 to build the library.
35727
35728 * opt.ads (Setup_Projects): New Boolean flag.
35729
35730 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
35731 Location.
35732 Create directory when Kind /= "" and in "gnat setup". Report error if
35733 directory cannot be created.
35734 (Ada_Check): Create library interface copy dir if it does not exist
35735 and we are in "gnat setup".
35736 (Find_Sources): No error if in "gnat setup" and no Ada sources were
35737 found.
35738 (Language_Independent_Check): Create object directory, exec directory
35739 and/or library directory if they do not exist and we are in
35740 "gnat setup".
35741
35742 * vms_conv.ads: (Command_Type): New command Setup.
35743
35744 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
35745
35746 * vms_data.ads: Add qualifiers/switches for new built-in command
35747 "setup".
35748
35749 2004-07-25 Richard Henderson <rth@redhat.com>
35750
35751 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
35752 DECL_IGNORED_P on RESULT_DECL.
35753
35754 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
35755
35756 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
35757 allocation and potentially overflowing update with
35758 Tailored_Exception_Information. Use the sec-stack free procedural
35759 interface to output Exception_Information instead.
35760
35761 * a-except.adb (To_Stderr): New subprogram for character, and string
35762 version moved from a-exextr to be visible from other separate units.
35763 (Tailored_Exception_Information): Remove the procedural version,
35764 previously used by the default Last_Chance_Handler and not any more.
35765 Adjust various comments.
35766
35767 * a-exexda.adb: Generalize the exception information procedural
35768 interface, to minimize the use of secondary stack and the need for
35769 local buffers when the info is to be output to stderr:
35770 (Address_Image): Removed.
35771 (Append_Info_Character): New subprogram, checking for overflows and
35772 outputing to stderr if buffer to fill is of length 0.
35773 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
35774 (Append_Info_Address, Append_Info_Exception_Name,
35775 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
35776 Append_Info_Basic_Exception_Traceback,
35777 Append_Info_Exception_Information): New subprograms.
35778 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
35779 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
35780 Exception_Info_Maxlength, Exception_Name_Length,
35781 Exception_Message_Length): New subprograms.
35782 (Exception_Information): Use Append_Info_Exception_Information.
35783 (Tailored_Exception_Information): Use
35784 Append_Info_Basic_Exception_Information.
35785 Export services for the default Last_Chance_Handler.
35786
35787 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
35788 other separate units.
35789
35790 2004-07-20 Vincent Celier <celier@gnat.com>
35791
35792 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
35793
35794 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35795
35796 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
35797 emit itype references for the designated types of component types that
35798 are declared outside of the full record declaration, and that may
35799 denote a partial view of that record type.
35800
35801 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35802
35803 PR ada/15607
35804 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
35805 which is the designated type in an access component declaration, to the
35806 list of incomplete dependents of the parent type, to avoid elaboration
35807 issues with out-of-scope subtypes.
35808 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
35809 full view of the parent.
35810
35811 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35812
35813 PR ada/15610
35814 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
35815 entities that are hidden, such as references to generic actuals
35816 outside an instance.
35817
35818 2004-07-20 Javier Miranda <miranda@gnat.com>
35819
35820 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
35821 support to the new notation.
35822 (Analyze_Selected_Component): Add call to Try_Object_Operation.
35823
35824 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
35825
35826 * s-taprob.adb: Adding the elaboration code required for initializing
35827 the tasking soft links that are common to the full and the restricted
35828 run times.
35829
35830 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
35831 restricted run time has been moved to the package
35832 System.Soft_Links.Tasking.
35833
35834 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
35835 restricted run time has been moved to the package
35836 System.Soft_Links.Tasking.
35837
35838 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
35839
35840 * s-solita.ads, s-solita.adb: New files.
35841
35842 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35843
35844 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
35845 Case_Statement_to_gnu): Split off from gnat_to_gnu.
35846 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
35847 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
35848 Exception_Handler_to_gnu_zcx): Likewise.
35849
35850 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
35851
35852 * gigi.h (builtin_function): Declare.
35853
35854 2004-07-15 Robert Dewar <dewar@gnat.com>
35855
35856 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
35857 reformatting
35858
35859 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
35860 access values as an example of a warning.
35861
35862 * gnat_rm.texi: Document new attribute Has_Access_Values
35863
35864 * gnat-style.texi: Document that box comments belong on nested
35865 subprograms
35866
35867 * sem_util.ads (Has_Access_Values): Improved documentation
35868
35869 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
35870
35871 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
35872 (Process_Interface_Name): Call to this new procedure
35873 (Set_Extended_Import_Export_External_Name): Call to this new procedure
35874
35875 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
35876
35877 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
35878
35879 * einfo.ads: Minor comment typo fixed
35880
35881 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
35882
35883 * snames.adb: Add _atcb.
35884
35885 * snames.ads: Add Name_uATCB.
35886
35887 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
35888 (in the expanded code) when using the restricted run time.
35889
35890 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
35891 a in parameter in order to allow ATCBs to be preallocated (in the
35892 expanded code).
35893
35894 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
35895 order to allow ATCBs to be preallocated. In case of error, the ATCB is
35896 deallocated in System.Tasking.Stages.
35897
35898 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
35899 order to allow ATCBs to be preallocated.
35900
35901 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
35902 here. It was previously done in Initialize_ATCB.
35903
35904 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
35905
35906 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
35907 Restricted run time.
35908
35909 * exp_ch3.adb: When using the Restricted run time, pass the
35910 preallocated Ada_Task_Control_Block when creating a task.
35911
35912 2004-07-15 Ed Schonberg <schonberg@gnat.com>
35913
35914 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
35915 function call that is itself an actual in an enclosing call, diagnose
35916 problem here rather than assuming that resolution will catch it.
35917
35918 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
35919 the local copy of a generic unit for a formal package, and the generic
35920 is a child unit, install private part of ancestors before compiling
35921 private part of spec.
35922
35923 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
35924 use scope entities rather than tree structures, to handle properly
35925 parent units that are instances rewritten as bodies for inlining
35926 purposes.
35927
35928 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
35929 Remove_Parents): Handle properly a parent unit that is an
35930 instantiation, when the unit has been rewritten as a body for inlining
35931 purposes.
35932
35933 * par.adb (Goto_List): Global variable to collect goto statements in a
35934 given unit, for use in detecting natural loops.
35935
35936 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
35937 use in detecting natural loops.
35938
35939 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
35940 backwards goto's, and rewrite as a infinite loop, to improve locality
35941 of temporaries.
35942
35943 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
35944 subcomponent that includes an indexed reference, to prevent the
35945 generation of copies that would miscompile the desired assignment
35946 statement.
35947 (Build_Task_Image_Decls): Add a numeric suffix to
35948 generated name for string variable, to avoid spurious conflicts with
35949 the name of the type of a single protected object.
35950
35951 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
35952 loop with an explicit exit statement, to avoid generating an
35953 out-of-range value with 'Succ leading to spurious constraint_errors
35954 when compiling with -gnatVo.
35955
35956 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
35957
35958 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
35959 might not be analyzed yet, even if its Etype is already set (case of an
35960 unchecked conversion built using Unchecked_Convert_To, for example).
35961 If the prefix has already been analyzed, this will be a nop anyway.
35962
35963 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
35964 controller type, or an assignment of a record type with controlled
35965 components, copy only user data, and leave the finalization chain
35966 pointers untouched.
35967
35968 2004-07-15 Vincent Celier <celier@gnat.com>
35969
35970 * make.adb (Collect_Arguments): Improve error message when attempting
35971 to compile a source not part of any project, when -x is not used.
35972
35973 * prj.ads: (Defined_Variable_Kind): New subtype
35974
35975 * prj-attr.adb (Register_New_Package): Two new procedures to register
35976 a package with or without its attributes.
35977 (Register_New_Attribute): Mew procedure to register a new attribute in a
35978 package.
35979 New attribute oriented subprograms: Attribute_Node_Id_Of,
35980 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35981 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35982 Next_Attribute.
35983 New package oriented subprograms: Package_Node_Id_Of,
35984 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35985
35986 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
35987 type.
35988 (Package_Node_Id): Now a private, self initialized type
35989 (Register_New_Package): New procedure to register a package with its
35990 attributes.
35991 New attribute oriented subprograms: Attribute_Node_Id_Of,
35992 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35993 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35994 Next_Attribute.
35995 New package oriented subprograms: Package_Node_Id_Of,
35996 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35997
35998 * prj-dect.adb (Parse_Attribute_Declaration,
35999 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
36000
36001 * prj-makr.adb (Make): Parse existing project file before creating
36002 other files. Fail if there was an error during parsing.
36003
36004 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
36005 new spec of Prj.Attr.
36006
36007 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
36008 to new spec of Prj.Attr.
36009
36010 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36011
36012 * utils2.c: Fix typo in comment.
36013
36014 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36015
36016 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
36017 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
36018
36019 2004-07-14 Andreas Schwab <schwab@suse.de>
36020
36021 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
36022
36023 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36024
36025 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
36026 object type.
36027 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
36028 TYPE_STUB_DECL.
36029
36030 * misc.c (gnat_types_compatible_p): New function.
36031 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
36032 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
36033
36034 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
36035 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
36036 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
36037 (mark_visited): Don't mark dummy type.
36038 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
36039 parameter, we must remove any LJM building from GNU_NAME.
36040 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
36041 (pos_to_constructor): Use int_const_binop.
36042 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
36043 PARM_DECL.
36044
36045 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
36046 (gnat_pushlevel): Set TREE_USE on BLOCK node.
36047 (gnat_install_builtins): Add __builtin_memset.
36048
36049 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
36050
36051 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
36052 for a renaming, stabilize the initialization expression if we are at a
36053 local level. At the local level, uses of the renaming may be performed
36054 by a direct dereference of the initializing expression, and we don't
36055 want possible variables there to be evaluated for every use.
36056
36057 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
36058 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
36059 them on the way. Account for the fact that we may introduce side
36060 effects in the process.
36061
36062 2004-07-13 Richard Henderson <rth@redhat.com>
36063
36064 * misc.c (default_pass_by_ref): Use pass_by_reference.
36065
36066 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
36067
36068 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
36069 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
36070
36071 2004-07-08 Richard Henderson <rth@redhat.com>
36072
36073 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
36074 commentary.
36075
36076 2004-07-06 Vincent Celier <celier@gnat.com>
36077
36078 * vms_conv.ads: Minor reformatting.
36079 Alphabetical order for enumerated values of type Command_Type, to have
36080 the command in alphabetical order for the usage.
36081
36082 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
36083 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
36084
36085 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
36086
36087 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
36088 (Add_Archive_Path): Only add the global archive if there is one.
36089 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
36090 or not any object file to put in the global archive, and don't build
36091 a global archive if there is none.
36092 (X_Switches): New table
36093 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
36094 in the X_Switches table, if any.
36095 (Initialize): Make sure the X_Switches table is empty
36096 (Scan_Arg): Record -X switches in table X_Switches
36097
36098 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
36099
36100 * make.adb: Minor comment fix
36101
36102 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
36103 invoked with directory information, add the directory in front of the
36104 path.
36105
36106 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
36107 invoked with directory information, add the directory in front of the
36108 path.
36109
36110 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
36111 when Keep_Temporary_Files is False.
36112 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
36113 directory information, add the directory in front of the path.
36114 When not on VMS, handle new switch -dn before the command to set
36115 Keep_Temporary_Files to True.
36116 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
36117 everywhere.
36118
36119 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
36120 invoked with directory information, add the directory in front of the
36121 path.
36122
36123 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
36124
36125 * snames.ads, snames.adb (Name_Stub): New name for the distributed
36126 systems annex.
36127
36128 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
36129 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
36130
36131 * g-socket.adb (To_Timeval): Fix incorrect conversion of
36132 Selector_Duration to Timeval for the case of 0.0.
36133
36134 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
36135 documentation from Evolve_And_Then.
36136
36137 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
36138
36139 * s-taprop-tru64.adb, s-taprop-os2.adb,
36140 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
36141
36142 2004-07-06 Robert Dewar <dewar@gnat.com>
36143
36144 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
36145 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
36146 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
36147 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
36148 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
36149 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
36150 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
36151 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
36152 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
36153 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
36154 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
36155 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
36156 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
36157 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
36158 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
36159 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
36160 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
36161 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
36162 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
36163 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
36164 vms_data.ads: Minor reformatting,
36165 Fix bad box comment format.
36166
36167 * gnat_rm.texi: Fix minor grammatical error
36168
36169 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
36170
36171 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
36172 more cases of discriminated records to be recognized as not needing a
36173 secondary stack.
36174 (Has_Access_Values): New function.
36175
36176 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
36177
36178 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
36179 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
36180 with LRM terminology).
36181 Change terminology in comments primitive type => elementary type.
36182
36183 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36184
36185 PR ada/15602
36186 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
36187 parameters do not impose any requirements on the presence of a body.
36188
36189 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36190
36191 PR ada/15593
36192 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
36193 compilation unit and is in an open scope at the point of instantiation,
36194 assume that a body may be present later.
36195
36196 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36197
36198 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
36199 Improve error message when specified size is not supported.
36200
36201 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
36202 is never a primitive operation.
36203
36204 2004-07-05 Andreas Schwab <schwab@suse.de>
36205
36206 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
36207 RECORD_OR_UNION_CHECK.
36208 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
36209
36210 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
36211
36212 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
36213 dependency on xgnatugn, instead build it via a submake.
36214 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
36215
36216 2004-07-04 Richard Henderson <rth@redhat.com>
36217
36218 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
36219
36220 2004-07-01 Richard Henderson <rth@redhat.com>
36221
36222 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
36223 * utils.c (max_size): Likewise.
36224
36225 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36226
36227 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
36228 and rest_of_type_compilation; add arg to create_*_decl.
36229 (annotate_decl_with_node): Deleted.
36230 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
36231 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
36232 (get_current_block_context, gnat_pushdecl): New declarations.
36233 (gnat_init_stmt_group): Likewise.
36234 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
36235 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
36236 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
36237 (gnat_init): Call gnat_init_stmt_group.
36238 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
36239 (gnu_pending_elaboration_list): Deleted.
36240 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
36241 (gigi): Rearrange initialization calls and move some to last above.
36242 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
36243 Delete calls to add_decl_expr; add arg to create_*_decl.
36244 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
36245 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
36246 begin_subprog_body and call it.
36247 Don't push and pop ggc context.
36248 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
36249 (add_stmt): Remove handling of DECL_EXPR from here.
36250 If not in function, mark visited.
36251 (add_decl_expr): Put global at top level.
36252 Check for cases of DECL_INITIAL we have to handle here.
36253 (process_type): Add extra arg to create_type_decl.
36254 (build_unit_elab): Rework to just gimplify.
36255 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
36256 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
36257 (get_pending_elaborations, pending_elaborations_p): Likewise.
36258 (push_pending_elaborations, pop_pending_elaborations): Likewise.
36259 (get_elaboration_location, insert_elaboration_list): Likewise.
36260 (gnat_binding_level): Renamed from ada_binding_level.
36261 (init_gnat_to_gnu): Don't clear pending_elaborations.
36262 (global_bindings_p): Treat as global if no current_binding_level.
36263 (set_current_block_context): New function.
36264 (gnat_pushdecl): Renamed from pushdecl; major rework.
36265 All callers changed.
36266 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
36267 (finish_record_type): Call call pushdecl for stub decl.
36268 (function_nesting_depth): Deleted.
36269 (begin_subprog_body): Delete obsolete code.
36270 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
36271
36272 2004-06-28 Robert Dewar <dewar@gnat.com>
36273
36274 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
36275 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
36276 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
36277 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
36278 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
36279
36280 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
36281 deal with problem of inefficient slices on machines with strict
36282 alignment, when the slice is a component of a composite.
36283
36284 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
36285 machines, we need the check there as well.
36286
36287 2004-06-28 Ed Schonberg <schonberg@gnat.com>
36288
36289 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
36290 determine safe copying direction for overlapping slice assignments
36291 when component is controlled.
36292
36293 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
36294 formal derived type in the actual for a formal package are visible in
36295 the enclosing instance.
36296
36297 2004-06-28 Ed Schonberg <schonberg@gnat.com>
36298
36299 PR ada/15600
36300 * sem_util.adb (Trace_Components): Diagnose properly an illegal
36301 circularity involving a private type whose completion includes a
36302 self-referential component.
36303 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
36304 renaming or an instantiation from an implicit derived operation.
36305
36306 2004-06-28 Pascal Obry <obry@gnat.com>
36307
36308 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
36309 DLL.
36310 (Library_File_Name_For): Idem.
36311
36312 2004-06-28 Matthew Gingell <gingell@gnat.com>
36313
36314 * g-traceb.ads: Add explanatory note on the format of addresses
36315 expected by addr2line.
36316
36317 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
36318
36319 * Makefile.in: Force debugging information on s-tasdeb.adb,
36320 a-except.adb and s-assert.adb needed by the debugger.
36321
36322 2004-06-28 Vincent Celier <celier@gnat.com>
36323
36324 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
36325 Need_To_Build_Lib.
36326 (Gnatmake): Ditto.
36327
36328 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
36329
36330 * prj.adb: Minor reformatting
36331 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
36332
36333 * prj.ads: Comment updates
36334 Minor reformatting
36335 (Project_Data): Change Flag1 to Need_To_Build_Lib.
36336 Remove Flag2: not used.
36337
36338 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
36339 declaration.
36340
36341 * gnat_ugn.texi: Put a "null;" declaration in one project file example
36342
36343 * gnat_rm.texi: Document Empty declarations "null;".
36344
36345 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
36346 front of the linker options.
36347 (Link_Foreign): Put the global archives and the libraries in front of
36348 the linker options.
36349
36350 2004-06-28 Javier Miranda <miranda@gnat.com>
36351
36352 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
36353 (RTU_Loaded): Code cleanup
36354 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
36355 withed predefined units.
36356
36357 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
36358 explicitly withed predefined units.
36359 Fix typo in comment
36360
36361 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
36362 explicitly withed predefined units.
36363
36364 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36365
36366 * ada-tree.def (DECL_STMT): Deleted.
36367 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
36368 (DECL_STMT_VAR): Deleted.
36369 * decl.c: add_decl_stmt now add_decl_expr.
36370 * gigi.h: Likewise.
36371 * trans.c: Likewise.
36372 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
36373 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
36374 (add_stmt): Only handle padded type here.
36375 (add_stmt_with_node): Allow gnat_node to not be present.
36376 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
36377 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
36378 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
36379 make a SAVE_EXPR for the entire fat pointer.
36380 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
36381 (create_index_type): Make a DECL_EXPR.
36382 (end_subprog_body): Don't call allocate_struct_function here but
36383 do clear cfun.
36384
36385 2004-06-25 Pascal Obry <obry@gnat.com>
36386
36387 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
36388 Relocatable from Build_Dynamic_Library call.
36389
36390 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
36391 Relocatable are now synonym.
36392
36393 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
36394
36395 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
36396 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
36397 call.
36398
36399 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
36400 Lib_Address and Relocatable.
36401 (Default_DLL_Address): Removed.
36402
36403 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
36404 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
36405 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
36406 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
36407 (Default_DLL_Address): Removed.
36408
36409 * mlib-tgt-mingw.adb: Ditto.
36410 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
36411
36412 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
36413 the initial thread stack size.
36414
36415 * a-strmap.ads: Move package L to private part as it is not used in
36416 the spec. Found while reading code.
36417
36418 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
36419
36420 * tracebak.c: Introduce support for a GCC infrastructure based
36421 implementation of __gnat_backtrace.
36422
36423 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
36424 any more. Use accessors instead. This eases maintenance and relaxes
36425 some alignment constraints.
36426 (_GNAT_Exception structure): Remove the Ada specific fields
36427 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
36428 a-exexpr.adb.
36429 (is_handled_by, __gnat_eh_personality): Replace component references to
36430 exception structure by use of the new accessors.
36431
36432 * init.c (__gnat_initialize): Adjust comments to match the just
36433 reverted meaning of the -static link-time option.
36434
36435 * adaint.c (convert_addresses): Arrange not to define a stub for
36436 mips-irix any more, as we now want to rely on a real version from a
36437 recent libaddr2line.
36438
36439 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
36440 the personality routine can use them and not have to rely on a C
36441 counterpart of the record anymore. This simplifies maintenance and
36442 relaxes the constraint of having Standard'Maximum_Alignment match
36443 BIGGEST_ALIGNMENT.
36444 Update comments, and add a section on the common header alignment issue.
36445
36446 2004-06-25 Geert Bosch <bosch@gnat.com>
36447
36448 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
36449 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
36450
36451 2004-06-25 Robert Dewar <dewar@gnat.com>
36452
36453 * gnat_rm.texi: Fix section on component clauses to indicate that the
36454 restriction on byte boundary placement still applies for bit packed
36455 arrays.
36456 Add comment on stack usage from Initialize_Scalars
36457
36458 * gnat_ugn.texi: Add documentation for -gnatyLnnn
36459
36460 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
36461 limiting nesting level.
36462
36463 * usage.adb: Add line for -gnatyLnnn switch
36464
36465 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
36466 sem_ch13.adb, exp_aggr.adb: Minor reformatting
36467
36468 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
36469 type as well as on the subtype. This corrects a problem in freeze in
36470 setting alignments of atomic types.
36471
36472 * sem_eval.ads: Minor comment typo fixed
36473
36474 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
36475 level. Minor reformatting.
36476
36477 * fname.adb (Is_Predefined_File_Name): Require a letter after the
36478 minus sign. This means that file names like a--b.adb will not be
36479 considered predefined.
36480
36481 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
36482 record Test new flag and give diagnostic for bad component clause.
36483 (Freeze_Entity): Set alignment of array from component alignment in
36484 cases where this is safe to do.
36485
36486 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
36487 arrays.
36488
36489 * cstand.adb: (Create_Standard): Set alignment of String to 1
36490
36491 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
36492
36493 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
36494 code in the common constrained array cases.
36495
36496 * a-storio.adb: Change implementation to avoid possible alignment
36497 problems on machines requiring strict alignment (data should be moved
36498 as type Buffer, not type Elmt).
36499
36500 * checks.adb (Apply_Array_Size_Check): Improve these checks by
36501 killing the overflow checks which we really do not need (64-bits is
36502 enough).
36503
36504 2004-06-25 Vincent Celier <celier@gnat.com>
36505
36506 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
36507 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
36508 inconditionally for the main project.
36509 (Recursive_Add_Archives.Add_Archive_Path): New procedure
36510 (Link_Executables.Check_Time_Stamps): New procedure
36511 (Link_Executables.Link_Foreign): New procedure
36512 Changes made to reduce nesting level of this package
36513 (Check): New procedure
36514 (Add_Switches): When not in quiet output, check that a switch is not
36515 the concatenation of several valid switches. If it is, issue a warning.
36516 (Build_Global_Archive): If the global archive is rebuilt, linking need
36517 to be done.
36518 (Compile_Sources): Rebuilding a library archive does not imply
36519 rebuilding the global archive.
36520 (Build_Global_Archive): New procedure
36521 (Build_Library): New name for Build_Archive, now only for library
36522 project
36523 (Check_Archive_Builder): New procedure
36524 (Create_Global_Archive_Dependency_File): New procedure
36525 (Gprmake): Call Build_Global_Archive before linking
36526 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
36527 throughout.
36528 (Scan_Arg): Display the Copyright notice when -v is used
36529
36530 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
36531 for gnatls.
36532
36533 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
36534 COMPILE.
36535 Add new GNAT LIST qualifier /FILES=
36536 Added qualifier /DIRECTORY= to GNAT METRIC
36537 Added qualifier /FILES= to GNAT METRIC
36538 Added qualifier /FILES to GNAT PRETTY
36539
36540 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
36541 to take into account both versions of the switch.
36542
36543 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
36544 always be the last switch to the gcc driver. Disable switch storing so
36545 that switches automatically added by the gcc driver are not put in the
36546 ALI file.
36547
36548 * prj.adb (Project_Empty): Take into account changes in components of
36549 Project_Data.
36550
36551 * prj.ads (Languages_Processed): New enumaration value All_Languages.
36552
36553 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
36554 used. Split Boolean component Ada_Sources_Present in two Boolean
36555 components Ada_Sources_Present and Other_Sources_Present.
36556 Minor reformatting
36557
36558 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
36559 instead of Sources_Present.
36560 (Set_Ada_Paths.Add.Recursive_Add): Ditto
36561
36562 * prj-nmsc.adb: Minor reformatting
36563 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
36564 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
36565 Check_Ada_Naming_Scheme.
36566 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
36567 throughout.
36568
36569 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
36570 In_Limited.
36571 Make sure that all cycles where there is at least one "limited with"
36572 are detected.
36573 (Parse_Single_Project): New Boolean parameter In_Limited
36574
36575 * prj-proc.adb (Recursive_Check): When Process_Languages is
36576 All_Languages, call first Prj.Nmsc.Ada_Check, then
36577 Prj.Nmsc.Other_Languages_Check.
36578
36579 * prj-proc.adb (Process): Use Ada_Sources_Present or
36580 Other_Sources_Present (instead of Sources_Present) depending on
36581 Process_Languages.
36582
36583 * lang-specs.h: Keep -g and -m switches in the same order, and as the
36584 last switches.
36585
36586 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
36587 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
36588 False.
36589 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
36590 False.
36591
36592 * lib.ads (Disable_Switch_Storing): New procedure.
36593
36594 * make.adb: Modifications to reduce nesting level of this package.
36595 (Check_Standard_Library): New procedure
36596 (Gnatmake.Check_Mains): New procedure
36597 (Gnatmake.Create_Binder_Mapping_File): New procedure
36598 (Compile_Sources.Compile): Add switch -gnatez as the last option
36599 (Display): Never display -gnatez
36600
36601 * Makefile.generic:
36602 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
36603
36604 * gnatcmd.adb (Check_Project): New function
36605 (Process_Link): New procedure to reduce nesting depth
36606 (Check_Files): New procedure to reduce the nesting depth.
36607 For GNAT METRIC, include the inherited sources in extending projects.
36608 (GNATCmd): When GNAT LS is invoked with a project file and no files,
36609 add the list of files from the sources of the project file. If this list
36610 is too long, put it in a temp text files and use switch -files=
36611 (Delete_Temp_Config_Files): Delete the temp text file that contains
36612 a list of source for gnatpp or gnatmetric, if one has been created.
36613 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
36614 in the project file is too large, create a temporary text file that
36615 list them and pass it to the tool with "-files=<temp text file>".
36616 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
36617
36618 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
36619 generated file is in not in Ada.
36620
36621 * gnatls.adb: Remove all parameters And_Save that are no longer used.
36622 (Scan_Ls_Arg): Add processing for -files=
36623 (Usage): Add line for -files=
36624
36625 * g-os_lib.adb (On_Windows): New global constant Boolean flag
36626 (Normalize_Pathname): When on Windows and the path starts with a
36627 directory separator, make sure that the resulting path will start with
36628 a drive letter.
36629
36630 * clean.adb (Clean_Archive): New procedure
36631 (Clean_Project): When there is non-Ada code, delete the global archive,
36632 the archive dependency files, the object files and their dependency
36633 files, if they exist.
36634 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
36635
36636 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
36637
36638 * sinfo.ads: Fix typo in comment.
36639
36640 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
36641 the TSS for remote access-to-subprogram types, since these TSS are
36642 always present once the type has been analyzed.
36643 (RAS_E_Dereference): Same.
36644
36645 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
36646 reference raises Bad_Attribute, mark the reference as analyzed so the
36647 node (and any children resulting from rewrites that could have occurred
36648 during the analysis that ultimately failed) is not analyzed again.
36649
36650 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
36651
36652 * exp_dist.adb: Minor comment fix.
36653
36654 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
36655 type is an anonymous access type, no unchecked deallocation of the
36656 allocated object can occur. If the object is controlled, attach it with
36657 a count of 1. This allows attachment to the Global_Final_List, if
36658 no other relevant list is available.
36659 (Get_Allocator_Final_List): For an anonymous access type that is
36660 the type of a discriminant or record component, the corresponding
36661 finalisation list is the one of the scope of the type.
36662
36663 2004-06-25 Ed Schonberg <schonberg@gnat.com>
36664
36665 * sem_ch3.adb (Replace_Type): When computing the signature of an
36666 inherited subprogram, use the first subtype if the derived type
36667 declaration has no constraint.
36668
36669 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
36670 before applying previous optimization. Minor code cleanup.
36671
36672 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
36673 placed at the beginning of an unpacked record without explicit
36674 alignment, a slice of it will be aligned and does not need a copy when
36675 used as an actual.
36676
36677 2004-06-25 Ed Schonberg <schonberg@gnat.com>
36678
36679 PR ada/15591
36680 PR ada/15592
36681 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
36682 reference is written with expressions mimicking parameters.
36683
36684 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
36685
36686 PR ada/15589
36687 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
36688 STEP 2a. The constraints of a full type declaration of a derived record
36689 type are checked for conformance with those declared in the
36690 corresponding private extension declaration. The message
36691 "not conformant with previous declaration" is emitted if an error is
36692 detected.
36693
36694 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
36695
36696 * g-traceb.ads: Document the need for -E binder switch in the spec.
36697
36698 * g-trasym.ads: Document the need for -E binder switch in the spec.
36699
36700 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
36701
36702 * sem_prag.adb: Add handling of pragma Detect_Blocking.
36703
36704 * snames.h, snames.ads, snames.adb: Add entry for pragma
36705 Detect_Blocking.
36706
36707 * s-rident.ads: Change reference to pragma Detect_Blocking.
36708
36709 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
36710 system.ads.
36711
36712 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
36713 to indicate whether pragma Detect_Blocking is active.
36714
36715 * par-prag.adb: Add entry for pragma Detect_Blocking.
36716
36717 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
36718 of not handling WITH.
36719 Note that this replaces the previous update which was incorrect.
36720
36721 2004-06-25 Javier Miranda <miranda@gnat.com>
36722
36723 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
36724 use-clauses to have a clean environment.
36725
36726 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
36727 the installation of the use-clauses to stablish a clean environment in
36728 case of compilation of a separate unit; otherwise the call to
36729 use_one_package is protected by the barrier Applicable_Use.
36730
36731 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
36732 the installation of the use-clauses to stablish a clean environment in
36733 case of compilation of a separate unit.
36734 (End_Use_Clauses): Minor comment cleanup.
36735
36736 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
36737
36738 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
36739
36740 2004-06-23 Richard Henderson <rth@redhat.com>
36741
36742 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
36743
36744 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36745
36746 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
36747 now bool instead of int.
36748 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
36749 * trans.c (gnu_switch_label_stack): New function.
36750 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
36751 elaboration of renamed entity returns.
36752 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
36753 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
36754 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
36755 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
36756 DECL_SIZE_UNIT and simplify variable-sized case.
36757 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
36758 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
36759 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
36760 (build_unit_elab): Disable for now.
36761 * utils.c (mark_visited): New function.
36762 (pushdecl): Walk tree to call it for global decl.
36763 (update_pointer_to): Update all variants of pointer and ref types.
36764 Add arg to COMPONENT_REF.
36765 (convert): Likewise.
36766 Move check for converting between variants lower down.
36767 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
36768 (build_allocator): Don't force type of MODIFY_EXPR.
36769 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
36770 put_var_into_stack.
36771
36772 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36773
36774 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
36775 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
36776 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
36777 subprograms.
36778 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
36779 all callers changed.
36780 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
36781 the way that EXIT_STMT finds the loop label.
36782 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
36783 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
36784 (add_stmt): Use annotate_with_locus insted of setting directly.
36785 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
36786 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
36787 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
36788 (build_vms_descriptor): Add extra args to ARRAY_REF.
36789 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
36790 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
36791 New cases.
36792 (build_binary_op): Don't make explicit CONVERT_EXPR.
36793 Add extra rgs to ARRAY_REF.
36794
36795 2004-06-14 Pascal Obry <obry@gnat.com>
36796
36797 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
36798 Windows. Fix minor typo.
36799
36800 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
36801 which is now supported on Windows. With this implementation using the
36802 Library Project feature is no different on Windows than on UNIX.
36803
36804 2004-06-14 Vincent Celier <celier@gnat.com>
36805
36806 * makegpr.adb (Compile_Sources): Nothing to do when there are no
36807 non-Ada sources.
36808
36809 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
36810
36811 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
36812 found, show the project name and the path of the previously parsed
36813 project file.
36814
36815 2004-06-14 Ed Schonberg <schonberg@gnat.com>
36816
36817 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
36818 array, avoid copying the actual before the call.
36819
36820 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
36821
36822 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
36823 Instead, allocate memory on worst-case alignment assumptions, and then
36824 return an aligned address within the allocated zone.
36825
36826 2004-06-14 Robert Dewar <dewar@gnat.com>
36827
36828 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
36829 elab entities in predefined units in No_Run_Time_Mode.
36830 (Gen_Adainit_C): Same fix
36831 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
36832 units in No_Run_Time_Mode
36833 (Gen_Elab_Calls_C): Same fix
36834
36835 * symbols-vms-alpha.adb: Minor reformatting
36836
36837 * g-debpoo.ads: Minor reformatting
36838
36839 * lib.adb (In_Same_Extended_Unit): Version working on node id's
36840
36841 * lib.ads (In_Same_Extended_Unit): Version working on node id's
36842
36843 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
36844 working on nodes.
36845
36846 * make.adb: Minor reformatting
36847
36848 * par-ch12.adb: Minor reformatting
36849
36850 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
36851
36852 * prj-strt.adb: Minor reformatting
36853
36854 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
36855 be more general.
36856
36857 * sem_attr.adb: Minor reformatting
36858
36859 * sem_ch7.adb: Minor reformatting
36860
36861 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
36862 for type in the same unit as the object declaration.
36863
36864 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
36865 static string expressions and not just string literals.
36866 Minor reformatting
36867 (Set_Warning): Reset restriction warning flag for restriction pragma
36868 Implement pragma Profile_Warnings
36869 Implement pragma Profile (Restricted)
36870 Give obolescent messages for old restrictions and pragmas
36871
36872 * snames.h, snames.ads, snames.adb: Add new entry for pragma
36873 Profile_Warnings.
36874
36875 * s-rident.ads: Add declarations for restrictions required by profile
36876 Restricted and profile Ravenscar.
36877
36878 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
36879
36880 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
36881 configuration pragmas.
36882
36883 2004-06-11 Vincent Celier <celier@gnat.com>
36884
36885 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
36886 gnatsym, when symbol policy is Restricted.
36887
36888 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
36889 gnatsym, when symbol policy is Restricted.
36890
36891 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
36892 read the symbol file.
36893 (Finalize): Fail in symbol policy Restricted if a symbol in the original
36894 symbol file is not in the object files. Do not create a new symbol file
36895 when symbol policy is Restricted.
36896
36897 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
36898 in Scng.
36899
36900 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
36901 Restricted.
36902 (Usage): Line for new switch -R
36903
36904 * make.adb (Initialize): When the platform is not VMS, add the
36905 directory where gnatmake is invoked in the front of the path, if
36906 gnatmake is invoked with directory information. Change the Scan_Args
36907 while loop to a for loop.
36908 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
36909 if Depth is equal or greater than the proposed depth, there is nothing
36910 to do.
36911 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
36912 instead of 0.
36913
36914 * prj.ads: Add new symbol policy Restricted.
36915
36916 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
36917 with the new parameters Check_All_Labels and Case_Location.
36918
36919 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
36920 (Library_Symbol_File needs to be defined).
36921
36922 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
36923 and Case_Location If Check_All_Labels is True, check that all values of
36924 the string type are used, and output warning(s) if they are not.
36925
36926 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
36927 and Case_Location.
36928
36929 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
36930
36931 * gnat_ugn.texi: Update documentation about the library directory in
36932 Library Projects.
36933
36934 * makegpr.adb (Display_Command): In verbose mode, also display the
36935 value of the CPATH env var, when the compiler is gcc.
36936 (Initialize): Change the Scan_Args while loop to a for loop
36937 (Compile_Individual_Sources): Change directory to object directory
36938 before compilations.
36939
36940 * symbols.ads: New symbol policy Restricted.
36941
36942 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
36943
36944 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
36945 is now taken care of internally in the Exception_Propagation package
36946 and does not require clients assistance any more.
36947
36948 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
36949 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
36950 functions. Helpers to maintain a predicate required in the handling of
36951 occurrence transfer between tasks.
36952 This is now handled internally and does not require clients assistance
36953 for the setup/propagate separation anymore.
36954 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
36955 allocation strategy, handle the Setup_And_Not_Propagated predicate and
36956 document.
36957
36958 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
36959 raise_after_setup, now that everything is handled internally within the
36960 setup/propagation engine.
36961
36962 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36963
36964 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
36965 Add additional conditions for the case of an actual being a simple
36966 name or literal. Improve inlining by preventing the generation
36967 of temporaries with a short lifetime (one use).
36968
36969 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36970
36971 PR ada/15587
36972 * einfo.ads: Minor comment updates for Has_Completion and
36973 E_Constant list of flags.
36974
36975 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
36976 and constant redeclarations now set the Has_Completion flag of their
36977 defining identifiers.
36978
36979 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
36980 Inspect_Deferred_Constant_Completion.
36981 Used to detect private deferred constants that have not been completed
36982 either by a constant redeclaration or pragma Import. Emits error message
36983 "constant declaration requires initialization expression".
36984
36985 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
36986 completes a deferred constant.
36987
36988 2004-06-11 Geert Bosch <bosch@gnat.com>
36989
36990 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
36991
36992 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
36993 calculating exponent for scaling denormal numbers.
36994 (Leading_Part): Properly raise Constraint_Error for zero or negative
36995 Adjustment.
36996 (Remainder): Properly raise Constraint_Error for zero divisor.
36997
36998 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
36999
37000 * sem_util.adb: Minor reformatting.
37001
37002 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
37003 dereference when accessing the entry parameter record.
37004 (Check_Array_Type): Always check for possible implicit dereference.
37005 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
37006 Abort if a pointer is still present (denoting that an implicit
37007 dereference was left in the tree by the front-end).
37008
37009 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
37010 dereference when accessing the entry parameter record.
37011 (Check_Array_Type): Always check for possible implicit dereference.
37012 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
37013 Abort if a pointer is still present (denoting that an implicit
37014 dereference was left in the tree by the front-end).
37015
37016 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
37017
37018 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
37019 message, like the compiler itself does. Easier to parse the output.
37020
37021 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
37022
37023 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
37024 be base names, and not includes directories.
37025
37026 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
37027
37028 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
37029 so that dependencies are properly taken into account by make.
37030
37031 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
37032
37033 PR ada/15622
37034 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
37035 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
37036
37037 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
37038
37039 * Makefile.in (install-gnatlib): install target-specific run-time files.
37040
37041 * Make-lang.in: Remove obsolete targets.
37042
37043 2004-06-11 Ed Schonberg <schonberg@gnat.com>
37044
37045 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
37046 specification, to catch misuses of program unit names.
37047
37048 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
37049 superfluous conversions in an instance.
37050
37051 2004-06-11 Ed Schonberg <schonberg@gnat.com>
37052
37053 PR ada/15403
37054 * sem_ch12.adb (Save_References): If operator node has been folded to
37055 enumeration literal, associated_node must be discarded.
37056
37057 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
37058
37059 * s-stchop-vxworks.adb: Add required pragma Convention to
37060 Task_Descriptor because it is updated by a C function.
37061
37062 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
37063
37064 PR ada/15568
37065 * Makefile.in: Remove target specific SO_OPT on IRIX
37066
37067 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37068
37069 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
37070 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
37071 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
37072 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
37073 (STMT_STMT, USE_STMT): New statement codes.
37074 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
37075 * ada-tree.h: Reflect above changes.
37076 (struct tree_loop_id): Deleted.
37077 (union lang_tree_node, struct lang_decl, struct lang_type):
37078 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
37079 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
37080 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
37081 (IS_ADA_STMT): New macro.
37082 * decl.c (annotate_decl_with_node): New function.
37083 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
37084 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
37085 Call add_stmt_with_node to do needed assignments.
37086 Add call to update setjmp buffer directly, not via EXPR_STMT.
37087 (maybe_variable): Argment GNAT_NODE deleted.
37088 * gigi.h (maybe_variable): Likewise.
37089 (make_transform, add_stmt_with_node, set_block_for_group): New.
37090 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
37091 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
37092 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
37093 (set_lineno, set_lineno_from_sloc): Likewise.
37094 (record_code_position, insert_code_for): Likewise.
37095 (gnat_poplevel): Now returns void.
37096 (end_subprog_body): Now takes argument.
37097 * misc.c (cgraph.h, tree-inline.h): New includes.
37098 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
37099 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
37100 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
37101 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
37102 (gnat_parse_file): Don't set immediate_size_expand.
37103 Call cgraph functions.
37104 (gnat_expand_expr): Remove most cases.
37105 (record_code_position, insert_code_for): Remove from here.
37106 * trans.c (toplev.h, tree-gimple.h): Now included.
37107 (discard_file_names): Deleted.
37108 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
37109 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
37110 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
37111 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
37112 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
37113 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
37114 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
37115 (set_block_for_group, add_stmt_list): Likewise.
37116 (start_stmt_group): Renamed from start_block_stmt.
37117 (end_stmt_group): Likewise, from end_block_stmt.
37118 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
37119 (gigi): Don't set discard_file_names or call set_lineno.
37120 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
37121 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
37122 Numerous changes throughout to reflect new names and complete
37123 function-at-a-time implementation.
37124 (gnat_expand_stmt): Delete or comment out all cases.
37125 (process_inlined_subprograms): Use add_stmt.
37126 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
37127 call set_lineno; also remove unneeded block handling.
37128 (process_type): Remove unneeded block handling.
37129 (build_unit_elab): Remove calls to deleted functions.
37130 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
37131 (tree-dump.h): Likewise.
37132 (struct ada_binding_level): Add field jmpbuf_decl.
37133 (gnat_define_builtin, gnat_install_builtins): New.
37134 (gnat_gimplify_function, gnat_finalize): Likewise.
37135 (gnat_poplevel): No longer return BLOCK, set it instead.
37136 Remove code dealing with nested functions.
37137 (gnat_init_decl_processing): Also set size_type_node.
37138 Call gnat_install_builtins.
37139 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
37140 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
37141 Remove special-case for "main".
37142 (end_subprog_body): Add arg and rework for tree-ssa.
37143 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
37144 Add case for BOOLEAN_TYPE.
37145 * utils2.c (rtl.h): Now include.
37146 (build_call_raise): Test Debug_Flag_NN directly.
37147 (build_call_alloc_dealloc): Don't use local stack allocation for now.
37148 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
37149 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
37150
37151 2004-06-07 Robert Dewar <dewar@gnat.com>
37152
37153 * a-direct.ads, einfo.ads: Minor comment updates
37154
37155 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
37156 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
37157 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
37158 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
37159 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
37160
37161 * s-interr-sigaction.adb: Remove unreferenced variable
37162 (Attached_Interrupts). Minor reformatting.
37163 Avoid use of variable I (replace by J).
37164
37165 * par-ch10.adb: Fix text of one error message
37166
37167 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
37168 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
37169 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
37170 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
37171 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
37172 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
37173 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
37174 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
37175 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
37176 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
37177 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
37178 2005 support.
37179
37180 2004-06-07 Doug Rupp <rupp@gnat.com>
37181
37182 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
37183
37184 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
37185
37186 * mlib-tgt-vms-ia64.adb: New file.
37187
37188 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
37189 Add mlib-tgt-vms-ia64.adb
37190 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
37191 Move to alpha specific ifeq section.
37192 Add VMS specific versions of symbols.adb
37193 Renaming of 5q vms files.
37194
37195 * 5qsystem.ads renamed to system-vms_64.ads.
37196
37197 2004-06-07 Vincent Celier <celier@gnat.com>
37198
37199 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
37200 explain that when a time of day corresponding to the non existing hour
37201 on the day switching to DST is specified, Split may return a different
37202 value for Seconds.
37203
37204 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
37205 to GNAT PRETTY.
37206
37207 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
37208 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
37209
37210 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
37211 to False.
37212 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
37213 the linking options.
37214 (Build_Library.Check_Libs): On VMS, if there is a dependency on
37215 g-trasym.ads, set Gtrasymobj_Needed to True.
37216
37217 * prj-attr.adb: Add new package Metrics for gnatmetric
37218
37219 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
37220 canonical case to take into account files with upper case characters on
37221 Windows.
37222 (Ada_Check): Load the reference symbol file name in the name buffer to
37223 check it, not the symbol file name.
37224
37225 * snames.ads, snames.adb: Add standard name Metrics (name of project
37226 file package for gnatmetric).
37227
37228 * vms_conv.ads: Add Metric to Comment_Type
37229
37230 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
37231
37232 * vms_data.ads: Add qualifiers for GNAT METRIC
37233
37234 * makegpr.adb (Link_Executables): Take into account the switches
37235 specified in package Linker of the main project.
37236
37237 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
37238
37239 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
37240 the index of the last element is Units.Last, not Units.Table'Last
37241 (which is usually not a valid index within the actually allocated
37242 storage for the table).
37243
37244 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
37245 determines whether to generate a call to a checked storage pool
37246 Dereference action.
37247 Generate such a call only for a dereference that either comes from
37248 source, or is the result of rewriting a dereference that comes from
37249 source.
37250
37251 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
37252
37253 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
37254
37255 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
37256
37257 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
37258 file level, elaborate the stride for inner dimensions in alignment
37259 units, not bytes.
37260
37261 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
37262 in a comment.
37263
37264 2004-06-07 Javier Miranda <miranda@gnat.com>
37265
37266 * exp_ch6.adb: Correct wrong modification in previous patch
37267
37268 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
37269
37270 * g-trasym.ads: Corrected comment to properly reflect level of support
37271 on VMS.
37272
37273 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
37274
37275 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
37276 includes case of a variable referenced on the left hand side of an
37277 assignment, therefore remove redundant code. Variables and prefixes of
37278 indexed or selected components are now marked as referenced on left
37279 hand side. Warnings are now properly emitted when variables or prefixes
37280 are assigned but not read.
37281
37282 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
37283 left hand side referenced variables. Private access types do not
37284 produce the warning "variable ... is assigned but never read".
37285 Add also additional checks to left hand side referenced variables.
37286 Aliased, renamed objects and access types do not produce the warning
37287 "variable ... is assigned but never read" since other entities may read
37288 the memory location.
37289
37290 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
37291
37292 * Makefile.in: In the powerpc/vxworks-specific section, restore
37293 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
37294 by mistake).
37295
37296 2004-06-07 Ed Schonberg <schonberg@gnat.com>
37297
37298 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
37299 predefined operators.
37300 Removes spurious type errors from g-trasym-vms.adb.
37301
37302 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
37303 distinct from the operator appearing in the source, call appropriate
37304 routine to insert conversions when needed, and complete resolution of
37305 node.
37306 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
37307 interpretations for rewritten right operand.
37308 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
37309 the other operand is overloaded and the context is a type conversion.
37310
37311 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37312
37313 * ada-tree.def (BLOCK_STMT): Now has two operands.
37314 (BREAK_STMT): New.
37315
37316 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
37317
37318 * gigi.h: (gnat_poplevel): Now returns a tree.
37319
37320 * trans.c (end_block_stmt): Add arg; all callers changed.
37321 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
37322 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
37323 (add_stmt): Set TREE_TYPE.
37324 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
37325 (gnat_expand_stmt, case BREAK_STMT): New case.
37326
37327 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
37328
37329 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
37330
37331 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
37332 procedure Set_Stack_Size that is not needed.
37333
37334 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
37335
37336 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
37337 used for gnatpp input file and for the files upon which it depends
37338
37339 2004-06-07 Ben Brosgol <brosgol@gnat.com>
37340
37341 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
37342
37343 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
37344
37345 * gnatvsn.ads: Bump version numbers appropriately.
37346 Add new build type.
37347
37348 2004-06-07 Pascal Obry <obry@gnat.com>
37349
37350 * gnat_ugn.texi: Improve comments about imported names and link names
37351 on Windows. Add a note about the requirement to use -k gnatdll's option
37352 when working with a DLL which has stripped stdcall symbols (no @nn
37353 suffix).
37354
37355 2004-05-27 Vincent Celier <celier@gnat.com>
37356
37357 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
37358 COMMENTS_LAYOUT=UNTOUCHED
37359
37360 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
37361 symbols-vms-alpha.adb
37362
37363 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
37364
37365 * sem.ads: Clarify documentation on checks suppression.
37366
37367 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
37368
37369 2004-05-27 Ed Schonberg <schonberg@gnat.com>
37370
37371 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
37372 the case of multiple derivations.
37373 (Is_Object_Reference): For a selected component, verify that the prefix
37374 is itself an object and not a value.
37375
37376 * sem_ch12.adb (Same_Instantiated_Constant): New name for
37377 Same_Instantiated_Entity.
37378 (Same_Instantiated_Variable): Subsidiary to
37379 Check_Formal_Package_Instance, to recognize actuals for in-out generic
37380 formals that are obtained from a previous formal package.
37381 (Instantiate_Subprogram_Body): Emit proper error when
37382 generating code and the proper body of a stub is missing.
37383
37384 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
37385 has a universal interpretation, do the disambiguation here.
37386
37387 * exp_ch4.adb (Expand_N_Type_Conversion,
37388 Expand_N_Unchecked_Type_Conversion): Special handling when target type
37389 is Address, to avoid typing anomalies when Address is a visible integer
37390 type.
37391
37392 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
37393 to determine whether a subprogram should not be marked Pure, even when
37394 declared in a pure package.
37395
37396 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
37397
37398 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
37399
37400 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
37401 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
37402 Update the documentation about the Ravenscar profile, following the
37403 definition found in AI-249.
37404
37405 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
37406 setting the Profile (Ravenscar). This must be done in addition to
37407 setting the required restrictions.
37408
37409 * rtsfind.ads: Add the set of operations defined in package
37410 Ada.Interrupts.
37411
37412 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
37413 restriction.
37414
37415 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
37416
37417 lang-specs.h: Always require -c or -S and always redirect to /dev/null
37418 if -gnatc or -gnats is passed.
37419
37420 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
37421
37422 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
37423 a significant reference. Warnings are now properly emitted when a
37424 discriminated type is not referenced.
37425
37426 * lib-xref.adb (Generate_Reference): A deferred constant completion,
37427 record representation clause or record type discriminant does not
37428 produce a reference to its corresponding entity. Warnings are now
37429 properly emitted when deferred constants and record types are not
37430 referenced.
37431
37432 2004-05-27 Geert Bosch <bosch@gnat.com>
37433
37434 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
37435 Fixes ACATS Annex G tests.
37436
37437 2004-05-27 Robert Dewar <dewar@gnat.com>
37438
37439 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
37440 handling WITH
37441
37442 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
37443
37444 * s-interr.adb (Server_Task): Take into account case of early return
37445 from sigwait under e.g. linux.
37446
37447 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
37448
37449 * gnat_ugn.texi: Add description for the new gnatpp options:
37450 -rnb - replace the original source without creating its backup copy
37451 -c0 - do not format comments
37452
37453 2004-05-24 Geert Bosch <bosch@gnat.com>
37454
37455 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
37456 with 192 bits of precision, sufficient to reduce a double-extended
37457 arguments X with a maximum relative error of T'Machine_Epsilon, for X
37458 in -2.0**32 .. 2.0**32.
37459 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
37460 reduction by the processor, which only uses a 68-bit approximation of
37461 Pi.
37462 (Tan): Always reduce arguments and compute function either using
37463 the processor's fptan instruction, or by dividing sin and cos as needed.
37464
37465 2004-05-24 Doug Rupp <rupp@gnat.com>
37466
37467 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
37468 gcc error on 32/64 bit VMS.
37469
37470 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
37471
37472 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
37473 since this is what we get for stack overflows although not documented
37474 as such.
37475 Document the issues which may require adjustments to our signal
37476 handlers.
37477
37478 2004-05-24 Ed Schonberg <schonberg@gnat.com>
37479
37480 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
37481 enclosing dynamic scope if the instantiation is within a generic unit.
37482
37483 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
37484
37485 * exp_dbug.ads: Fix typo.
37486
37487 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
37488 Rename it to its proper name: system-linux-ia64.ads
37489 (stamp-gnatlib1): Remove extra target specific run time files when
37490 setting up the rts directory.
37491
37492 2004-05-24 Javier Miranda <miranda@gnat.com>
37493
37494 * einfo.ads, einfo.adb (Limited_Views): Removed.
37495 (Limited_View): New attribute that replaces the previous one. It is
37496 now a bona fide package with the limited-view list through the
37497 first_entity and first_private attributes.
37498
37499 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
37500 limited-private-with clause.
37501 (Install_Limited_Withed_Unit): Install the private declarations of a
37502 limited-private-withed package. Update the installation of the shadow
37503 entities according to the new structure (see Build_Limited_Views)
37504 (Build_Limited_Views): Replace the previous implementation of the
37505 limited view by a package entity that references the first shadow
37506 entity plus the first shadow private entity (required for limited-
37507 private-with clause)
37508 (New_Internal_Shadow_Entity): Code cleanup.
37509 (Remove_Limited_With_Clause): Update the implementation to undo the
37510 new work carried out by Build_Limited_Views.
37511 (Build_Chain): Complete documentation.
37512 Replace Ada0Y by Ada 0Y in comments
37513 Minor reformating
37514
37515 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
37516 types the level of accessibility depends on the enclosing type
37517 declaration.
37518
37519 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
37520 entities. Complete documentation of previous change.
37521
37522 2004-05-24 Robert Dewar <dewar@gnat.com>
37523
37524 * namet.adb: Minor reformatting
37525 Avoid use of name I (replace by J)
37526 Minor code restructuring
37527
37528 * sem_ch6.adb: Minor reformatting
37529
37530 * lib-writ.adb: Do not set restriction as active if this is a
37531 Restriction_Warning case.
37532
37533 * sem_prag.adb: Reset restriction warning flag if real pragma
37534 restriction encountered.
37535
37536 * s-htable.adb: Minor reformatting
37537 Change rotate count to 3 in Hash (improves hash for small strings)
37538
37539 * 5qsystem.ads: Add comments for type Address (no literals allowed).
37540
37541 * gnat_ugn.texi: Add new section of documentation "Code Generation
37542 Control", which describes the use of -m switches.
37543
37544 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
37545
37546 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
37547 through the DECL_INITIAL for renamed variables.
37548
37549 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
37550
37551 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
37552
37553 2004-05-19 Joel Brobecker <brobecker@gnat.com>
37554
37555 * exp_dbug.ads: Correct comments concerning handling of overloading,
37556 since we no longer use $ anymore.
37557
37558 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
37559
37560 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
37561 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
37562 with illegal subunits.
37563
37564 2004-05-19 Ed Schonberg <schonberg@gnat.com>
37565
37566 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
37567 body with front-end inlining enabled, check whether an inline pragma
37568 appears immediately after the body and applies to it.
37569
37570 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
37571 enabled and the pragma appears after the body of the subprogram.
37572
37573 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37574
37575 Part of function-at-a-time conversion
37576
37577 * misc.c (adjust_decl_rtl): Deleted.
37578 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
37579 Define.
37580
37581 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
37582 (add_decl_stmt, add_stmt, block_has_vars): New functions.
37583 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
37584
37585 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
37586 when making a decl.
37587 (gnat_to_gnu_entity): Likewise.
37588 Use add_stmt to update setjmp buffer.
37589 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
37590 flush_addressof.
37591 No longer call adjust_decl_rtl.
37592 (DECL_INIT_BY_ASSIGN_P): New macro.
37593 (DECL_STMT_VAR): Likewise.
37594
37595 * trans.c (gigi): Call start_block_stmt to make the outermost
37596 BLOCK_STMT.
37597 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
37598 Call start_block_stmt and end_block_stmt temporarily.
37599 Use gnat_expand_stmt instead of expand_expr_stmt.
37600 (add_decl_stmt): New function.
37601 (tree_transform): Call it.
37602 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
37603 (end_block_stmt): Set type and NULL_STMT.
37604 (gnat_expand_stmt): Make recursize call instead of calling
37605 expand_expr_stmt.
37606 (gnat_expand_stmt, case DECL_STMT): New case.
37607 (set_lineno_from_sloc): Do nothing if global.
37608 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
37609 (start_block_stmt, add_stmt, end_block_stmt): New functions.
37610 (build_block_stmt): Call them.
37611 (gnat_to_code): Don't expand NULL_STMT.
37612 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
37613 args.
37614 (tree_transform): Likewise.
37615 (tree_transform, case N_Null_Statement): Return NULL_STMT.
37616 (gnat_expand_stmt, case NULL_STMT): New case.
37617 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
37618 IF_STMT_TRUE.
37619
37620 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
37621 TREE_ADDRESSABLE.
37622
37623 * utils.c (create_var_decl): Do not call expand_decl or
37624 expand_decl_init.
37625 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
37626 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
37627 here.
37628 (struct e_stack): Add chain_next to GTY.
37629 (struct binding_level): Deleted.
37630 (struct ada_binding_level): New struct.
37631 (free_block_chain): New.
37632 (global_binding_level, clear_binding_level): Deleted.
37633 (global_bindings_p): Rework to see if no chain.
37634 (kept_level_p, set_block): Deleted.
37635 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
37636 new data structure and work directly on BLOCK node.
37637 (gnat_poplevel): Similarly.
37638 (get_decls): Look at BLOCK_VARS.
37639 (insert_block): Work directly on BLOCK node.
37640 (block_has_var): New function.
37641 (pushdecl): Rework for new binding structures.
37642 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
37643 poplevel.
37644 (build_subprog_body): Likewise.
37645 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
37646
37647 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
37648
37649 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
37650 (DECL_STMT_VAR): Likewise.
37651
37652 2004-05-17 Robert Dewar <dewar@gnat.com>
37653
37654 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
37655 procedure
37656
37657 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
37658 of restriction synonyums by using
37659 Restrict.Process_Restriction_Synonyms.
37660
37661 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
37662
37663 * s-restri.ads (Tasking_Allowed): Correct missing comment
37664
37665 * s-rident.ads: Add entries for restriction synonyms
37666
37667 * ali.adb: Fix some problems with badly formatted ALI files that can
37668 result in infinite loops.
37669
37670 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
37671 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
37672 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
37673 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
37674 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
37675 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
37676 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
37677 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
37678 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
37679 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
37680 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
37681 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
37682 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
37683 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37684 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
37685 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
37686 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37687 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37688 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
37689 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
37690 to Task_Id (minor cleanup).
37691
37692 2004-05-17 Vincent Celier <celier@gnat.com>
37693
37694 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
37695 directory separator.
37696
37697 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
37698 project being extended, if Languages is not declared in extending
37699 project.
37700
37701 2004-05-17 Javier Miranda <miranda@gnat.com>
37702
37703 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
37704 limited view of a visible sibling.
37705
37706 2004-05-14 Robert Dewar <dewar@gnat.com>
37707
37708 * gnat_ugn.texi: Minor change to -gnatS documentation
37709
37710 * sprint.adb: Remove some instances of Assert (False) and for this
37711 purpose replace them by output of a ??? string.
37712
37713 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
37714 Assert (False).
37715
37716 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
37717 flag processing. This was suppressing required dependencies in
37718 No_Run_Time mode and is not needed since the binder does not generate
37719 references for things in libgnat anyway.
37720
37721 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
37722 warning.
37723
37724 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
37725
37726 * gnat_ugn.texi: Document AIX-specific issue with initialization of
37727 resolver library.
37728
37729 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
37730 action for the case of an actual parameter in an init proc call.
37731
37732 2004-05-14 Ed Schonberg <schonberg@gnat.com>
37733
37734 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
37735 subtype, check visible entities in base type.
37736
37737 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
37738 actions if the object is a renaming.
37739
37740 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
37741 Check_Formal_Package_Instance, to determine more precisely when the
37742 formal and the actual denote the same entity.
37743
37744 2004-05-14 Javier Miranda <miranda@gnat.com>
37745
37746 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
37747
37748 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
37749 corresponding to a private_with must be removed from visibility; it
37750 will be made visible later, just before we analyze the private part of
37751 the package.
37752 (Check_Private_Child_Unit): Allow private_with clauses in public
37753 siblings.
37754 (Install_Siblings): Make visible the private entities of private-withed
37755 siblings.
37756 (Install_Withed_Unit): Do not install the private withed unit if we
37757 are compiling a package declaration and the Private_With_OK flag was
37758 not set by the caller. These declarations will be installed later,
37759 just before we analyze the private part of the package.
37760
37761 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
37762 during the evaluation of the expression that initializes the object,
37763 decorate it with the expected type to avoid cascade errors.
37764 Code cleanup.
37765
37766 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
37767 subprogram we have to install the private_with clauses after its
37768 specification has been analyzed (as documented in AI-262.TXT).
37769
37770 * sem_ch8.adb (Has_Private_With): New function. Determines if the
37771 current compilation unit has a private with on a given entity.
37772 (Find_Direct_Name): Detect the Beaujolais problem described in
37773 AI-262.TXT
37774
37775 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
37776 provides the functionality of the function Is_Ancestor that was
37777 previously available in sem_ch10. It has been renamed to avoid
37778 overloading.
37779
37780 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
37781
37782 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37783
37784 * utils.c (build_vms_descriptor): Use SImode pointers.
37785
37786 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
37787
37788 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
37789
37790 2004-05-14 GNAT Script <nobody@gnat.com>
37791
37792 * Make-lang.in: Makefile automatically updated
37793
37794 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
37795
37796 Renaming of target specific files for clarity
37797
37798 * Makefile.in: Rename GNAT target specific files.
37799
37800 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
37801 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
37802 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
37803 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
37804 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
37805 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
37806 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
37807 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
37808 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
37809 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
37810 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
37811 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
37812 51osinte.adb, 51osinte.ads, 51system.ads,
37813 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
37814 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
37815 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
37816 56tpopsp.adb, 57system.ads, 58system.ads,
37817 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
37818 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37819 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
37820 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
37821 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
37822 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37823 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
37824 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37825 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37826 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
37827 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
37828 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
37829 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
37830 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
37831 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
37832 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37833 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37834 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37835 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
37836 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
37837 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
37838 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
37839 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
37840 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37841 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
37842 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
37843 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37844 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
37845 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37846 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
37847 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
37848 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
37849 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
37850 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
37851 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
37852 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
37853 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
37854 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
37855 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
37856 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
37857
37858 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
37859 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
37860 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
37861 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
37862 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
37863 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
37864 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
37865 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
37866 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
37867 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
37868 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
37869 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
37870 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
37871 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
37872 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
37873 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
37874 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
37875 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
37876 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
37877 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
37878 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
37879 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
37880 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
37881 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
37882 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
37883 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
37884 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
37885 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
37886 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
37887 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
37888 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
37889 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
37890 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
37891 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
37892 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
37893 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
37894 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
37895 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
37896 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
37897 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
37898 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
37899 s-osinte-vms.ads, s-osinte-vxworks.adb,
37900 s-osinte-vxworks.ads, s-osprim-mingw.adb,
37901 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
37902 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
37903 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
37904 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
37905 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
37906 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
37907 s-stchop-vxworks.adb, s-taprop-dummy.adb,
37908 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
37909 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
37910 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
37911 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
37912 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
37913 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
37914 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
37915 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
37916 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
37917 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
37918 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
37919 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
37920 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
37921 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
37922 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
37923 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
37924 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
37925 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
37926 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
37927 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
37928 system-irix-o32.ads, system-linux-x86_64.ads,
37929 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
37930 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
37931 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
37932 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
37933 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
37934 system-vxworks-mips.ads, system-vxworks-ppc.ads,
37935 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
37936 above.
37937
37938 2004-05-13 Zack Weinberg <zack@codesourcery.com>
37939
37940 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
37941
37942 2004-05-13 Diego Novillo <dnovillo@redhat.com>
37943
37944 Merge from tree-ssa-20020619-branch.
37945
37946 * config-lang.in (boot_language, build_by_default): Set
37947 to no.
37948 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
37949 (max_size): Add static chain op for call_expr.
37950
37951 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
37952
37953 PR target/15331
37954 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
37955
37956 2004-05-11 Roger Sayle <roger@eyesopen.com>
37957
37958 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
37959 COND_EXPR.
37960
37961 2004-05-10 Doug Rupp <rupp@gnat.com>
37962
37963 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
37964 system.aux_dec.
37965
37966 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
37967
37968 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
37969
37970 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
37971 Fixes undefined symbols in IA64 gnatlib.
37972
37973 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
37974
37975 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
37976 Short_Address). This will be moved to system.auxdec.
37977
37978 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
37979
37980 * sem_util.adb: Replace test for presence of a node that is always
37981 present with a call to Discard_Node.
37982
37983 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
37984 Analyze on the library unit node after generation of distribution stub
37985 constructs. The call was a no-op because Unit_Node has already been
37986 Analyzed, and the tree fragments for the distribution stubs are
37987 analyzed as they are inserted in Exp_Dist.
37988 Update comment regarding to distribution stubs to reflect that we
37989 do not generate stub in separate files anymore.
37990
37991 * einfo.ads: Clarify the fact that a tagged private type has the
37992 E_Record_Type_With_Private Ekind.
37993
37994 * erroutc.adb: Minor reformatting
37995
37996 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
37997 values if line length is increased using -gnatyM (noticed during code
37998 reading).
37999
38000 * eval_fat.adb: Minor reformatting
38001 Put spaces around exponentiation operator
38002
38003 2004-05-10 Ed Schonberg <schonberg@gnat.com>
38004
38005 PR ada/15005
38006 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
38007 has been rewritten as an explicit dereference, retrieve type of
38008 original node to check for possibly unconstrained record type.
38009
38010 2004-05-10 Ed Schonberg <schonberg@gnat.com>
38011
38012 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
38013 overriding, use the operation of the parent unconditionally.
38014
38015 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
38016 operation when either operand is a literal, to avoid further
38017 ambiguities.
38018
38019 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
38020 overridden by a previous explicit declaration, mark the previous entity
38021 as overriding.
38022
38023 * sem_disp.adb (Check_Dispatching_Operation): New predicate
38024 Is_Visibly_Controlled, to determine whether a declaration of a
38025 primitive control operation for a derived type overrides an inherited
38026 one. Add warning if the explicit declaration does not override.
38027
38028 2004-05-10 Vincent Celier <celier@gnat.com>
38029
38030 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
38031 some cases when the sources are no longer present.
38032
38033 * make.adb (Collect_Arguments): Fail if an external source, not part
38034 of any project need to be compiled, when switch -x has not been
38035 specified.
38036
38037 * makeusg.adb: Document new switch -x
38038
38039 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
38040 defaulted to False.
38041
38042 * switch-m.adb (Scan_Make_Switches): New switch -x
38043
38044 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
38045 gnatmake switch -x.
38046
38047 * gnat_ugn.texi: Document new gnatmake switch -x
38048
38049 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
38050
38051 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
38052
38053 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
38054 (process_attributes): Likewise.
38055
38056 2004-05-10 Joel Brobecker <brobecker@gnat.com>
38057
38058 * s-inmaop.ads: Fix spelling mistake in one of the comments.
38059
38060 2004-05-10 Robert Dewar <dewar@gnat.com>
38061
38062 * gnat_ugn.texi: Document that for config pragma files, the maximum
38063 line length is always 32767.
38064
38065 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
38066 literals is now allowed.
38067
38068 * gnat-style.texi: Remove statement about splitting long lines before
38069 an operator rather than after, since we do not follow this rule at all.
38070 Clarify rule (really lack of rule) for spaces around exponentiation
38071
38072 * sem_elim.adb: Allow concatenation of string literals as well as a
38073 single string literal for pragma arguments.
38074
38075 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
38076
38077 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
38078 written for append case.
38079
38080 * frontend.adb: Changes to avoid checking max line length in config
38081 pragma files.
38082
38083 * g-os_lib.ads: Minor reformatting
38084
38085 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
38086 wrong in any case. Instead use standard value. Noticed during code
38087 reading.
38088
38089 * opt.ads (Max_Line_Length): New field, used to implement removal of
38090 limitation on length of lines when scanning config pragma files.
38091
38092 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
38093 makeutl.ads, makeutl.adb: Minor reformatting
38094
38095 * scn.adb: Do not check line length while scanning config pragma files
38096 Do not check line length while scanning out license information
38097
38098 * scng.adb: Changes to avoid line length checks while parsing config
38099 pragma files.
38100
38101 2004-05-10 GNAT Script <nobody@gnat.com>
38102
38103 * Make-lang.in: Makefile automatically updated
38104
38105 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
38106
38107 * osint.adb (Find_Program_Name): Fix handling of VMS version
38108 number.
38109
38110 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
38111
38112 * g-os_lib.ads (Invalid_Time): New constant
38113
38114 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
38115 return OS_Time instead of time_t to match what is imported by Ada.
38116 Now return -1 if the file doesn't exist, instead of a random value
38117
38118 2004-05-05 Robert Dewar <dewar@gnat.com>
38119
38120 * usage.adb: Add line for -gnatR?s switch
38121
38122 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
38123
38124 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
38125 and for Match (Data_First, Data_last)
38126
38127 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
38128 written when we are dealing with multi-unit files.
38129
38130 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
38131
38132 * Makefile.in: Remove unused targets and variables.
38133
38134 2004-05-05 Vincent Celier <celier@gnat.com>
38135
38136 * switch-m.adb: New gnatmake switch -eI
38137
38138 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
38139 of new gnatmake switch -eInnn.
38140
38141 * makegpr.adb: Take into account new parameters Index and Src_Index in
38142 Prj.Util.
38143
38144 * clean.adb: Implement support for multi-unit sources, including new
38145 switch -i.
38146
38147 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
38148 Src_Index.
38149
38150 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
38151 (Extract_From_Q): New out parameter Index
38152 (Mark, Is_Marked): Subprograms moved to Makeutl
38153 (Switches_Of): New parameter Source_Index
38154 (Add_Switch): New parameter Index
38155 (Check): New parameter Source_Index
38156 (Collect_Arguments): New parameter Source_Index
38157 (Collect_Arguments_And_Compile): New parameter Source_Index
38158 (Compile): New parameter Source_Index
38159 Put subprograms in alphabetical order
38160 Add support for multi-source sources, including in project files.
38161
38162 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
38163 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
38164 Make.
38165
38166 * makeusg.adb: New gnatmake switch -eInnn
38167
38168 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
38169 Prj.Util.Value_Of.
38170
38171 * opt.ads (Main_Index): New variable, defaulted to 0.
38172
38173 * osint.ads, osinte.adb (Add_File): New parameter Index
38174 (Current_Source_Index): New function
38175
38176 * prj.adb: Take into account new components Index and Src_Index
38177
38178 * prj.ads (String_Element): New component Index
38179 (Variable_Value): New component Index
38180 (Array_Element): New component Src_Index
38181
38182 * prj-attr.adb: Indicate that optional index may be specified for
38183 attributes Main, Executable, Spec, Body and some of Switches.
38184
38185 * prj-attr.ads (Attribute_Kind): New values for optional indexes
38186 (Attribute_Record): New component Optional_Index
38187
38188 * prj-com.ads (File_Name_Data): New component Index
38189
38190 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
38191
38192 * prj-env.adb (Put): Output optional index
38193
38194 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
38195 attributes Spec and Body.
38196
38197 * prj-nmsc.adb: Process optional indexes
38198
38199 * prj-pp.adb: Ouput "at" for optional indexes
38200
38201 * prj-proc.adb: Take into account optional indexes
38202
38203 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
38204 Optional_Index. For string literal,
38205 process optional index when Optional_Index is True.
38206 (Parse_Expresion): New Boolean parameter Optional_Index
38207
38208 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
38209 (Set_Source_Index_Of): New procedure
38210
38211 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
38212 index.
38213
38214 * prj-util.ads (Executable_Of): New parameter Index
38215 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
38216 New parameter Src_Index, defaulted to 0.
38217
38218 2004-05-05 Ed Schonberg <schonberg@gnat.com>
38219
38220 PR ada/15257
38221 * sem_ch3.adb (Access_Definition): If this is an access parameter
38222 whose designated type is imported through a limited_with clause, do
38223 not add the enclosing subprogram to the list of private dependents of
38224 the type.
38225
38226 2004-05-05 Ed Schonberg <schonberg@gnat.com>
38227
38228 PR ada/15258
38229 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
38230 a limited_with clause, and the other is its non-limited view.
38231
38232 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
38233
38234 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
38235
38236 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
38237 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
38238 Stand.Boolean_Literals to produce references to entities
38239 Standard_False and Standard_True from compile-time computed boolean
38240 values.
38241
38242 * stand.ads (Boolean_Literals): New variable, provides the entity
38243 values for False and True, for use by the expander.
38244
38245 2004-05-05 Doug Rupp <rupp@gnat.com>
38246
38247 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
38248 5vinmaop.adb: Unchecked convert Short_Address vice Address
38249
38250 * adaint.c, raise.c: Caste CRTL function return value
38251 to avoid gcc error on 32/64 bit IVMS.
38252
38253 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
38254 target = IA64/VMS.
38255
38256 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
38257
38258 * 5qsystem.ads (Address): Declare as Long_Integer
38259 (Short_Address): Declare as 32 bit subtype of Address
38260 Declare abstract address operations to avoid gratuitous ambiguities.
38261
38262 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
38263
38264 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
38265 instead of the old Boolean_Entry_Barriers.
38266 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
38267
38268 2004-05-05 GNAT Script <nobody@gnat.com>
38269
38270 * Make-lang.in: Makefile automatically updated
38271
38272 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
38273
38274 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
38275
38276 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
38277
38278 PR ada/15152
38279 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
38280 alone. Replacing object references by literals is inappropriate in a
38281 so low level context.
38282
38283 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
38284
38285 * a-exexpr.adb: Add comments
38286
38287 2004-05-03 Joel Brobecker <brobecker@gnat.com>
38288
38289 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
38290 declare the Ancestor_Tags array in Type_Specific_Data with a small size
38291 without risking a bounds check error when accessing one of its
38292 components.
38293 (Type_Specific_Data): Define Ancestor_Tags as a small array.
38294 This prevents us from hitting a limitation during the debug info
38295 generation when using stabs.
38296
38297 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
38298 small array.
38299 This prevents us from hitting a limitation during the debug info
38300 generation when using stabs.
38301
38302 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
38303
38304 lang-specs.h: Remove -gnatz* from specs.
38305
38306 2004-05-03 Vincent Celier <celier@gnat.com>
38307
38308 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
38309
38310 * Make-lang.in, Makefile.in: Add gprmake
38311
38312 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
38313
38314 * sem_aggr.adb: Fix typo in comment.
38315
38316 2004-05-03 Robert Dewar <dewar@gnat.com>
38317
38318 * make.adb: Minor reformatting
38319
38320 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
38321
38322 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
38323 so that it works when address is not a private type.
38324
38325 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
38326 properly with rewritten unchecked conversions. This prevents
38327 order-of-elaboration issues that can otherwise arise.
38328 (Minimum_Size): Don't check size of access types under VMS
38329
38330 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
38331 interpretations of integer literals as type System.Address.
38332
38333 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
38334 (Is_Descendent_Of): New function
38335
38336 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
38337
38338 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
38339 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
38340 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
38341
38342 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
38343 of the old Max_Entry_Queue_Depth.
38344
38345 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
38346 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
38347 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
38348
38349 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
38350 New entry for proper handling of Max_Entry_Queue_Depth.
38351 New entry for proper handling of No_Dynamic_Interrupts.
38352
38353 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
38354 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
38355 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
38356 the GNAT specific restriction Max_Entry_Queue_Depth.
38357 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
38358 the GNAT specific restriction No_Dynamic_Interrupts.
38359
38360 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
38361 instead of the old Boolean_Entry_Barriers.
38362 Use the new restriction No_Dynamic_Attachment instead of the old
38363 No_Dynamic_Interrupts.
38364
38365 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
38366 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
38367
38368 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
38369 of the old Max_Entry_Queue_Depth.
38370
38371 2004-05-03 GNAT Script <nobody@gnat.com>
38372
38373 * Make-lang.in: Makefile automatically updated
38374
38375 2004-04-29 Ed Schonberg <schonberg@gnat.com>
38376
38377 * checks.adb (Enable_Range_Check): If the prefix of an index component
38378 is an access to an unconstrained array, perform check unconditionally.
38379
38380 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38381
38382 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
38383 Component_Clause.
38384
38385 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
38386
38387 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
38388 alternate stack setting. There was no support for the tasking cases
38389 and the changes eventually caused a number of side-effect failures in
38390 the non-tasking case too.
38391
38392 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
38393
38394 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
38395 -gnats is passed.
38396
38397 2004-04-29 Vincent Celier <celier@gnat.com>
38398
38399 * make.adb (Gnatmake): Increase max size of argument array for
38400 gnatbind for the potential addition of -F.
38401 If there are Stand-Alone Library projects, invoke gnatbind with -F to
38402 be sure that elaboration flags will be checked.
38403
38404 * switch-c.adb: Correct call to Scan_Pos for -gnateI
38405
38406 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
38407
38408 * sem_warn.adb (Check_References): Move '<access-variable> may be
38409 null' warning out of under Warn_On_No_Value_Assigned.
38410
38411 2004-04-29 Ed Falis <falis@gnat.com>
38412
38413 * gnat_ugn.texi: Fixed texi error
38414
38415 2004-04-29 Robert Dewar <dewar@gnat.com>
38416
38417 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
38418 abstract operations if they come from predefined files.
38419
38420 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
38421 Dynamic, not RM).
38422
38423 * s-addope.adb: Correct obvious error in mod function
38424
38425 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
38426
38427 * Makefile.in: Add target pairs for powerpc darwin*
38428 tasking support.
38429
38430 * a-intnam-darwin.ads, s-osinte-darwin.adb,
38431 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
38432
38433 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
38434
38435 * Makefile.in: Add target macro definitions for s390*-linux*.
38436 * system-linux-s390.ads: New file.
38437 * system-linux-s390x.ads: New file.
38438
38439 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
38440
38441 * gnat_ugn.texi: Correct argument to @setfilename.
38442
38443 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
38444
38445 * a-exexpr.adb (Unwind_Word): New data type.
38446 (Unwind_Exception): Use it as type of Private1 and Private2.
38447
38448 * raise.c (db_action_for): Fix debug printf.
38449
38450 2004-04-27 Ed Schonberg <schonberg@gnat.com>
38451
38452 * a-wtmoio.ads: Formal type must be a modular type, not a signed
38453 integer type.
38454
38455 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38456
38457 * decl.c (gnat_to_gnu_entity, case object): Call
38458 __builtin_update_setjmp_buf.
38459
38460 * gigi.h (update_setjmp_buf): Deleted.
38461 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
38462
38463 * misc.c: (update_setjmp_buf): Deleted.
38464
38465 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
38466 around block of RTL.
38467
38468 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
38469
38470 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
38471
38472 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
38473 subprogram for which no pragma All_Calls_Remote applies, store the
38474 address of the real subprogram in the underlying record type, so local
38475 dereferences do not go through the PCS.
38476
38477 2004-04-26 Robert Dewar <dewar@gnat.com>
38478
38479 * i-c.ads: Add some type qualifications to avoid ambiguities when
38480 compiling with s-auxdec.ads and a non-private address type.
38481
38482 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
38483
38484 * Makefile.rtl: Fix error in previous check-in:
38485 Add s-addope.o to non tasking object list (rather than tasking object
38486 list).
38487
38488 2004-04-26 Javier Miranda <miranda@gnat.com>
38489
38490 * sem_aggr.adb: Fix typo in comments
38491 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
38492 Required to check the null-exclusion attribute.
38493
38494 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
38495 case of anonymous access types in record and array components. For a
38496 component definition the level is the same of the enclosing composite
38497 type.
38498
38499 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
38500 that are anonymous access types the level of accessibility depends on
38501 the enclosing type declaration. In order to have this information, set
38502 the scope of the anonymous access type to the enclosing record type
38503 declaration.
38504 (Array_Type_Declaration): In case of components that are anonymous
38505 access types the level of accessibility depends on the enclosing type
38506 declaration. In order to have this information, set the scope of the
38507 anonymous access type to the enclosing array type declaration.
38508
38509 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
38510 access type.
38511
38512 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
38513 renaming of anonymous access-to-constant types allowed if and only if
38514 the renamed object is access-to-constant.
38515
38516 * sem_util.adb (Type_Access_Level): In case of anonymous access types
38517 that are component_definition or discriminants of a nonlimited type,
38518 the level is the same as that of the enclosing component type.
38519
38520 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
38521
38522 * sem_elim.adb: Some minor code reorganization from code reading. Fix
38523 misprint in the function name (File_Name_Match).
38524
38525 2004-04-23 Laurent Guerby <laurent@guerby.net>
38526
38527 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
38528 install.
38529
38530 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38531
38532 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
38533
38534 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
38535
38536 * adaint.c (__gnat_try_lock): No longer requires that the parent
38537 directory be writable, the directory itself is enough.
38538 (gnat_is_absolute_path): Change profile, so that the call from
38539 GNAT.OS_Lib can be made more efficient.
38540
38541 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
38542 from GNAT.OS_Lib can be made more efficient.
38543
38544 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
38545 one copy of the file name. Found by code reading.
38546
38547 2004-04-23 Vincent Celier <celier@gnat.com>
38548
38549 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
38550 Correct documentation on gnatmake switches transmitted to the compiler
38551
38552 * ali.ads: Minor comment fix
38553
38554 2004-04-23 Javier Miranda <miranda@gnat.com>
38555
38556 * sem_ch6.adb: (Confirming Types): Code cleanup
38557
38558 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
38559 subprogram types: E_Anonymous_Access_Subprogram_Type and
38560 E_Anonymous_Access_Protected_Subprogram_Type.
38561
38562 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
38563
38564 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
38565 whether a pragma All_Calls_Remote applies to the subprogram on which
38566 'Access is taken.
38567 No functional change is introduced by this revision; the new parameter
38568 will be used to allow calls to local RCI subprograms to be optimized
38569 to not use the PCS in the case where no pragma All_Calls_Remote applies,
38570 as is already done in the PolyORB implementation of the DSA.
38571
38572 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
38573 whether a pragma All_Calls_Remote applies to the subprogram on which
38574 'Access is taken.
38575 No functional change is introduced by this revision; the new parameter
38576 will be used to allow calls to local RCI subprograms to be optimized
38577 to not use the PCS in the case where no pragma All_Calls_Remote applies,
38578 as is already done in the PolyORB implementation of the DSA.
38579
38580 2004-04-23 Robert Dewar <dewar@gnat.com>
38581
38582 * Makefile.rtl: Add entry for s-addope.o in run time library list
38583 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
38584 * s-addope.ads, s-addope.adb: New files.
38585
38586 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
38587 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
38588 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
38589 System.Address to be non-private and signed.
38590
38591 * sem_elim.adb: Minor reformatting (fairly extensive)
38592 Some minor code reorganization from code reading
38593 Add a couple of ??? comments
38594
38595 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38596
38597 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
38598 (tree_transform, case N_If_Statement): Remove non-determinism.
38599
38600 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
38601
38602 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
38603
38604 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
38605 Eliminate' section.
38606
38607 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
38608 no longer used as a parameter name for Eliminate pragma).
38609
38610 2004-04-22 Laurent Guerby <laurent@guerby.net>
38611
38612 PR optimization/14984
38613 PR optimization/14985
38614 * trans.c (gigi): Fix non determinism leading to bootstrap
38615 comparison failures.
38616
38617 2004-04-21 Pascal Obry <obry@gnat.com>
38618
38619 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
38620 passed to spawnvp() to properly handle program pathname with spaces on
38621 Win32.
38622
38623 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
38624
38625 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
38626 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
38627 unlocked in case of exceptions.
38628
38629 2004-04-21 Joel Brobecker <brobecker@gnat.com>
38630
38631 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
38632 This function does not exist anymore.
38633
38634 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
38635
38636 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
38637
38638 * link.c: Move variables to the __gnat name space.
38639
38640 * Makefile.in: list link.o explicitly when needed.
38641
38642 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
38643
38644 2004-04-21 Javier Miranda <miranda@gnat.com>
38645
38646 * einfo.adb (Original_Access_Type): New subprogram
38647 (Set_Original_Access_Type): New subprogram
38648 (Write_Field21_Name): Write the name of the new field
38649
38650 * einfo.ads (Original_Access_Type): New field present in access to
38651 subprogram types.
38652 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
38653 E_Anonymous_Access_Protected_Subprogram_Type.
38654
38655 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
38656 subprogram types.
38657
38658 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
38659 to anonymous access to subprogram types.
38660
38661 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
38662 to subprogram types.
38663
38664 * sem_ch3.adb (Access_Definition): Complete decoration of entities
38665 corresponding to anonymous access to subprogram types.
38666 (Analyze_Component_Declaration): Add new actual to the call to
38667 subprogram replace_anonymous_access_to_protected_subprogram.
38668 (Array_Type_Declaration): Add new actual to the call to subprogram
38669 replace_anonymous_access_to_protected_subprogram.
38670 (Process_Discriminants): Add new actual to the call to subprogram
38671 replace_anonymous_access_to_protected_subprogram.
38672 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
38673
38674 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38675 formal.
38676
38677 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
38678 access to subprogram types.
38679
38680 * sem_util.adb (Has_Declarations): Addition of package_specification
38681 nodes.
38682
38683 2004-04-21 Ed Schonberg <schonberg@gnat.com>
38684
38685 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
38686 inlined flags to renamed entity only if in current unit.
38687
38688 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
38689
38690 * s-parint.ads: Add DSA implementation marker.
38691
38692 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
38693 value of System.Partition_Interface.DSA_Implementation to determine
38694 what version of the distributed systems annex is available (no
38695 implementation, GLADE, or PolyORB).
38696
38697 2004-04-21 Joel Brobecker <brobecker@gnat.com>
38698
38699 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
38700
38701 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38702
38703 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
38704 with new type if alias sets differ.
38705 Fixes ACATS c41103b.
38706
38707 2004-04-21 Vincent Celier <celier@gnat.com>
38708
38709 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
38710 Add array Lang_Args for the language specific compiling argument
38711 switches.
38712
38713 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
38714
38715 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
38716
38717 * gnat_rm.texi: Update the descripton of the Eliminate pragma
38718 according to the recent changes in the format of the parameters of the
38719 pragma (replacing Homonym_Number with Source_Location).
38720
38721 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
38722
38723 * 5isystem.ads: Removed, unused.
38724
38725 * gnat_rm.texi: Redo 1.13 change.
38726
38727 2004-04-19 Robert Dewar <dewar@gnat.com>
38728
38729 * s-stoele.ads: Clean up definition of Storage_Offset (the new
38730 definition is cleaner, avoids the kludge of explicit Standard operator
38731 references, and also is consistent with a visible System.Address with
38732 no visible operations.
38733
38734 * s-geveop.adb: Add declarations to avoid assumption of visible
38735 operations on type System.Address (since these might not be available
38736 if Address is a non-private type for which the operations
38737 are made abstract).
38738
38739 * sem_eval.adb: Minor reformatting
38740
38741 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
38742 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
38743 reformatting (new function spec format).
38744
38745 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
38746 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
38747 s-caun64.adb: Add declarations to avoid assumption of visible
38748 operations on type System.Address (since these might not be available
38749 if Address is a non-private type for which the operations are made
38750 abstract).
38751
38752 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
38753
38754 * exp_intr.adb: Minor comment update
38755
38756 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
38757
38758 * 5omastop.adb: Add declarations to avoid assumption of visible
38759 operations on type System.Address (since these might not be available
38760 if Address is a non-private type for which the operations
38761 are made abstract).
38762
38763 2004-04-19 Vincent Celier <celier@gnat.com>
38764
38765 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
38766
38767 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
38768 defaulted to Ada.
38769
38770 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
38771 defaulted to Ada.
38772 Call Check with Process_Languages.
38773 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
38774 with Process_Languages.
38775 (Recursive_Check): New Boolean parameter Process_Languages. Call
38776 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
38777 Process_Languages.
38778
38779 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
38780
38781 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
38782 parameter Ada_Main, defaulted to True.
38783 Check for Ada specific characteristics only when Ada_Main is True.
38784
38785 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
38786
38787 * prj.adb: (Project_Empty): Add new Project_Data components.
38788
38789 * prj.ads: New types and tables for non Ada languages.
38790 (Project_Data): New components Languages, Impl_Suffixes,
38791 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
38792 Include_Path, Include_Data_Set.
38793
38794 * prj-env.ads, prj-env.adb: Minor reformatting
38795
38796 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
38797 Put subprograms in alphabetical order
38798
38799 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
38800 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
38801 Opt.Follow_Links.
38802
38803 * mlib-prj.adb: Back out modification in last version, as they are
38804 incorrect.
38805 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
38806
38807 * make.adb: (Mains): Moved to package Makeutl
38808 (Linker_Opts): Moved to package Makeutl
38809 (Is_External_Assignment): Moved to package Makeutl
38810 (Test_If_Relative_Path): Moved to package Makeutl
38811 (Gnatmake): Move sorting of linker options to function
38812 Makeutl.Linker_Options_Switches.
38813
38814 * makeutl.ads, makeutl.adb: New files.
38815
38816 * Makefile.in: Add makeutl.o to the object files for gnatmake
38817
38818 * makeusg.adb: Add line for new switch -eL.
38819
38820 * gnatls.adb (Image): New function.
38821 (Output_Unit): If in verbose mode, output the list of restrictions
38822 specified by pragmas Restrictions.
38823
38824 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
38825 Text_IO.
38826
38827 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
38828 needed, to put it in the range 1970 (included) - 2026 (excluded).
38829 (Time_Of): Do not shift Unix_Min_Year (1970).
38830 Shift the date by multiple of 56 years, if needed, to put it in the
38831 range 1970 (included) - 2026 (excluded).
38832
38833 * adaint.h, adaint.c (__gnat_set_executable): New function.
38834
38835 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38836
38837 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
38838 and pop GC context.
38839 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
38840 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
38841 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
38842 (tree_transform, case N_Code_Statement): Likewise.
38843 (gnat_expand_stmt, case LABEL_STMT): Don't look at
38844 LABEL_STMT_FIRST_IN_EH.
38845 (gnat_expand_stmt, case ASM_STMT): New case.
38846
38847 * utils2.c (build_unary_op): Properly set TREE_READONLY of
38848 UNCONSTRAINED_ARRAY_REF.
38849
38850 * utils.c (poplevel): Temporarily push/pop GC context around inline
38851 function expansion.
38852
38853 * decl.c (maybe_variable): Properly set TREE_READONLY of
38854 UNCONSTRAINED_ARRAY_REF.
38855 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
38856
38857 * ada-tree.def: (ASM_STMT): New.
38858
38859 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
38860 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
38861 ASM_STMT_INPUT): New.
38862 (ASM_STMT_CLOBBER): Likewise.
38863
38864 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
38865
38866 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
38867 general rcheck mechanism to raise Program_Error for E.4(18), instead
38868 of a custom raiser in System.Partition_Interface.
38869 Part of general cleanup work before PolyORB integration.
38870
38871 * snames.ads, snames.adb: Add new runtime library entities and names
38872 for PolyORB DSA.
38873
38874 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38875 exp_dist.
38876 (Build_Subprogram_Id): New subprogram provided by exp_dist
38877 Code reorganisation in preparation for PolyORB integration.
38878
38879 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38880 exp_dist.
38881 (Build_Subprogram_Id): New subprogram provided by exp_dist
38882
38883 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
38884 actual parameter types for call to dereference of an
38885 access-to-subprogram type.
38886
38887 * rtsfind.ads: Add new runtime library entities and names for PolyORB
38888 DSA.
38889
38890 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
38891 instead, which has the same behaviour here since we never pass it a
38892 NULL pointer.
38893
38894 * link.c (run_path_option, Solaris case): Use -Wl, as for other
38895 platforms.
38896
38897 * Makefile.in: adjust object file lists for gnatlink and gnatmake
38898 to account for new dependency upon Interfaces.C.Strings + link.o
38899 For x86 FreeBSD, use 86numaux.
38900
38901 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
38902 from Mlib.Tgt to Mlib.
38903
38904 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
38905 target-independent.
38906
38907 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
38908 target-specific versions of this subprogram, now implemented as a
38909 target-independent function in Mlib.
38910
38911 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
38912 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
38913 (Linker_Library_Path_Option): Remove target-specific versions of this
38914 subprogram, now implemented as a target-independent function in Mlib.
38915
38916 * atree.adb: (Allocate_Initialize_Node): New subprogram.
38917 Factors out node table slots allocation.
38918 (Fix_Parents): New subprogram.
38919 Encapsulate the pattern of fixing up parent pointers for syntactic
38920 children of a rewritten node.
38921 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
38922 (Rewrite): Use New_Copy when creating saved copy of original node.
38923 (Replace): Use Copy_Node to copy nodes.
38924
38925 2004-04-19 Javier Miranda <miranda@gnat.com>
38926
38927 * sprint.adb (Sprint_Node_Actual): Give support to the new
38928 Access_To_Subprogram node available in Access_Definition nodes. In
38929 addition, give support to the AI-231 node fields: null-exclusion,
38930 all-present, constant-present.
38931
38932 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
38933
38934 * sinfo.ads, sinfo.adb:
38935 New field Access_To_Subprogram_Definition in Access_Definition nodes
38936
38937 * sem_ch6.adb (Process_Formals): Move here the code that creates and
38938 decorates internal subtype declaration corresponding to the
38939 null-excluding formal. This code was previously in Set_Actual_Subtypes.
38940 In addition, carry out some code cleanup on this code. In case of
38941 access to protected subprogram call
38942 Replace_Anonymous_Access_To_Protected_Subprogram.
38943 (Set_Actual_Subtypes): Code cleanup.
38944
38945 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
38946 Find_Type in case of anonymous access renamings. Add warning in case of
38947 null-excluding attribute used in anonymous access renaming.
38948
38949 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38950 subprogram
38951
38952 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
38953 subprogram.
38954 (Access_Definition): In case of anonymous access to subprograms call
38955 the corresponding semantic routine to decorate the node.
38956 (Access_Subprogram_Declaration): Addition of some comments indicating
38957 some code that probably should be added here. Detected by comparison
38958 with the access_definition subprogram.
38959 (Analyze_Component_Declaration): In case of access to protected
38960 subprogram call Replace_Anonymous_Access_To_Protected.
38961 (Array_Type_Declaration): In case of access to protected subprogram call
38962 Replace_Anonymous_Access_To_Protected_Subprogram.
38963 (Process_Discriminants): In case of access to protected subprogram call
38964 Replace_Anonymous_Access_To_Protected_Subprogram.
38965
38966 * par.adb (P_Access_Definition): New formal that indicates if the
38967 null-exclusion part was present.
38968 (P_Access_Type_Definition): New formal that indicates if the caller has
38969 already parsed the null-excluding part.
38970
38971 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
38972 (P_Identifier_Declarations): Code cleanup and give support to renamings
38973 of anonymous access to subprogram types.
38974 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
38975 (P_Array_Type_Definition): Give support to AI-254.
38976 (P_Component_Items): Give support to AI-254.
38977 (P_Access_Definition): New formal that indicates if the header was
38978 already parsed by the caller.
38979 (P_Access_Type_Definition): New formal that indicates if the caller has
38980 already parsed the null-excluding part.
38981
38982 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
38983 call to P_Access_Definition.
38984
38985 2004-04-19 Geert Bosch <bosch@gnat.com>
38986
38987 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
38988 the delicate semantics of floating-point to integer conversion.
38989 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
38990
38991 * eval_fat.adb (Machine_Mantissa): Moved to spec.
38992 (Machine_Radix): New function.
38993
38994 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
38995 conversion checks.
38996 (Machine_Radix): New function also for use in conversion checks.
38997
38998 2004-04-19 Ed Schonberg <schonberg@gnat.com>
38999
39000 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
39001
39002 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
39003 to decorate the access-to-protected subprogram and the equivalent type.
39004
39005 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
39006 to anonymous access to subprogram types.
39007
39008 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
39009 constant-folding, for legality checks in contexts that require an RM
39010 static expression.
39011
39012 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
39013 temporary but stack checking is not enabled, increment serial number
39014 to so that symbol generation is consistent with and without stack
39015 checking.
39016
39017 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
39018 independent on whether stack checking is enabled, caller must check
39019 the corresponding flag.
39020
39021 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
39022 range checks.
39023 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
39024 parent if it has discriminants.
39025 (Build_Derived_Private_Type): Constructed full view does
39026 not come from source.
39027 (Process_Discriminants): Default discriminants on a tagged type are
39028 legal if this is the internal completion of a private untagged
39029 derivation.
39030
39031 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
39032 no constraint checks, because it corresponds to an existing object.
39033
39034 * sem_prag.adb (Process_Convention): Pragma applies
39035 only to subprograms in the same declarative part, i.e. the same unit,
39036 not the same scope.
39037
39038 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
39039 ignore type mismatch on a numeric conversion if expression comes from
39040 expansion.
39041
39042 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
39043
39044 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
39045 Homonym_Number parameter, add processing for Source_Location parameter
39046 corresponding.
39047 (Check_Eliminated): Remove the check for homonym numbers, add the check
39048 for source location traces.
39049
39050 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
39051 with Arg_Source_Location corresponding to the changes in the format of
39052 the pragma.
39053
39054 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
39055 Eliminate pragma corresponding to the changes in the format of the
39056 pragma: Homonym_Number is replaced with Source_Location, two ways of
39057 distinguishing homonyms are mutially-exclusive.
39058
39059 2004-04-19 Joel Brobecker <brobecker@gnat.com>
39060
39061 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
39062
39063 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
39064 No_Dollar_In_Label, no longer necessary, as it is always True.
39065 (Strip_Suffixes): Likewise.
39066
39067 2004-04-19 Gary Dismukes <dismukes@gnat.com>
39068
39069 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
39070 modulus for compatibility with size clause on targets with 16-bit
39071 Integer.
39072
39073 * layout.adb (Discrimify): In the case of private types, set Vtyp to
39074 full type to fix type mismatches on calls to size functions for
39075 discriminant-dependent array components.
39076
39077 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
39078
39079 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
39080 lib.
39081
39082 2004-04-19 Pascal Obry <obry@gnat.com>
39083
39084 * mdll-utl.adb (Locate): New version is idempotent.
39085
39086 2004-04-17 Laurent Guerby <laurent@guerby.net>
39087
39088 PR ada/14988 (partial)
39089 * impunit.adb: Fix typo.
39090
39091 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
39092
39093 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
39094 and install-rts-cert targets. Remove all gnatlib and gnattools
39095 targets and all other rts-* targets (moved to libada). Remove (now)
39096 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
39097 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
39098
39099 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39100
39101 * trans.c (tree_transform): Shortcut returning error_mark_node for
39102 statements in annotate_only_mode.
39103 (tree_transform, case N_Label, case N_Return_Statement,
39104 N_Goto_Statement): Make statement tree instead of generating code.
39105 (tree_transform, case N_Assignment_Statement): No longer check
39106 type_annotate_only.
39107 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
39108 RETURN_STMT): New.
39109 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
39110 New fcns.
39111 (gnat_to_gnu): Collect any RTL generated and deal with it.
39112 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
39113 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
39114 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
39115
39116 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
39117
39118 * ada-tree.def (EXPR_STMT): Fix typo in name.
39119 (BLOCK_STMT, IF_STMT): New nodes.
39120
39121 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
39122 LABEL_STMT_FIRST_IN_EH): New macros.
39123 (RETURN_STMT_EXPR): Likewise.
39124
39125 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
39126 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
39127
39128 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
39129
39130 * atree.ads: Correct documentation on extended nodes.
39131
39132 * link.c: Set run_path_option for FreeBSD.
39133
39134 2004-04-08 Vincent Celier <celier@gnat.com>
39135
39136 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
39137 one of the ALI file, do not link with DEC lib.
39138
39139 * par.adb Remove the last two characters ("%s" or "%b") when checking
39140 if a language defined unit may be recompiled.
39141
39142 2004-04-08 Ed Schonberg <schonberg@gnat.com>
39143
39144 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
39145 removal of abstract operation leaves no possible interpretation for
39146 expression.
39147
39148 * sem_eval.adb (Eval_Qualified_Expression): Use
39149 Set_Raises_Constraint_Error on node when needed, so that it does not
39150 get optimized away by subsequent optimizations.
39151
39152 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
39153 operands even when they are not wrapped in a type conversion.
39154
39155 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
39156
39157 * sem_prag.adb (Set_Exported): Warn about making static as result of
39158 export only when the export is coming from source. This may be not
39159 be true e.g. on VMS where we expand export pragmas for exception codes
39160 together with imported or exported exceptions, and we don't want the
39161 user to be warned about something he didn't write.
39162
39163 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
39164
39165 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
39166 duplication between normal entities and those declared as renamings.
39167 No functional change.
39168
39169 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
39170 inline functions returning an unconstrained result.
39171
39172 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
39173
39174 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
39175 conform to what other front-ends do.
39176
39177 2004-04-08 Doug Rupp <rupp@gnat.com>
39178
39179 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
39180 libraries.
39181
39182 2004-04-06 Pascal Obry <obry@gnat.com>
39183
39184 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
39185
39186 * osint.adb (Program_Name): Do not look past a directory separator.
39187
39188 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
39189
39190 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
39191
39192 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
39193 requirement for preserving a copy of the original assignment node.
39194
39195 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
39196
39197 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
39198
39199 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
39200 when supported.
39201
39202 2004-04-06 Ed Schonberg <schonberg@gnat.com>
39203
39204 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
39205 operator calls in functional notation, and apply
39206 Universal_Interpretation to operands, not to their type.
39207
39208 2004-04-06 Robert Dewar <dewar@gnat.com>
39209
39210 * 5wdirval.adb: Minor reformatting
39211
39212 2004-04-06 Ed Falis <falis@gnat.com>
39213
39214 * gnat_rm.texi: Improve a reference to the GCC manual
39215
39216 2004-04-05 Vincent Celier <celier@gnat.com>
39217
39218 * adaint.h, adaint.c: Add function __gnat_named_file_length
39219
39220 * impunit.adb: Add Ada.Directories to the list
39221
39222 * Makefile.in: Add VMS and Windows versions of
39223 Ada.Directories.Validity package body.
39224
39225 * Makefile.rtl: Add a-direct and a-dirval
39226
39227 * mlib-tgt.ads: Minor comment update.
39228
39229 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
39230 a-direct.ads, a-direct.adb: New files.
39231
39232 2004-04-05 Vincent Celier <celier@gnat.com>
39233
39234 PR ada/13620
39235 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
39236 just to the compiler.
39237
39238 2004-04-05 Robert Dewar <dewar@gnat.com>
39239
39240 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
39241 returned string is 1.
39242
39243 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
39244
39245 * eval_fat.ads: Minor reformatting
39246
39247 * g-curexc.ads: Document that lower bound of returned string values
39248 is always one.
39249
39250 * gnatlink.adb: Add ??? comment for previous change
39251 (need to document why this is VMS specific)
39252
39253 * s-stoele.ads: Minor reformatting
39254
39255 * tbuild.ads: Minor reformatting throughout (new function specs)
39256
39257 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
39258 after WITH.
39259
39260 * scng.adb: Minor reformatting
39261
39262 2004-04-05 Geert Bosch <bosch@gnat.com>
39263
39264 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
39265 (Leading_Part): Still perform truncation to machine number if the
39266 specified radix_digits is greater or equal to machine_mantissa.
39267
39268 2004-04-05 Javier Miranda <miranda@gnat.com>
39269
39270 * par-ch3.adb: Complete documentation of previous change
39271 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
39272 (aliased must appear before constant).
39273
39274 * par-ch4.adb: Complete documentation of previous change.
39275
39276 * par-ch6.adb: Complete documentation of previous change.
39277
39278 * sinfo.ads: Fix typo in commment.
39279
39280 2004-04-05 Ed Schonberg <schonberg@gnat.com>
39281
39282 * sem_ch3.adb (Inherit_Components): If derived type is private and has
39283 stored discriminants, use its discriminants to constrain parent type,
39284 as is done for non-private derived record types.
39285
39286 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
39287 Ada 2005 AI-310: an abstract non-dispatching operation is not a
39288 candidate interpretation in an overloaded call.
39289
39290 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
39291 expression is Null and target type is not an access type (e.g. a
39292 non-private address type).
39293
39294 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
39295
39296 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
39297 statement whose right-hand side is an inlined call, save a copy of the
39298 original assignment subtree to preserve enough consistency for
39299 Analyze_Assignment to proceed.
39300
39301 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
39302 complete assignment subtree which is now unnecessary, as the expansion
39303 of inlined call has been improved to preserve a consistent assignment
39304 tree. Note_Possible_Modification must be called only
39305 after checks have been applied, or else unnecessary checks will
39306 be generated.
39307
39308 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
39309 of explicit dereferences that do not Come_From_Source:
39310 - be selective on cases where we must go back to the dereferenced
39311 pointer (an assignment to an implicit dereference must not be
39312 recorded as modifying the pointer);
39313 - do not rely on Original_Node being present (Analyze_Assignment
39314 calls Note_Possible_Modification on a copied tree).
39315
39316 * sem_warn.adb (Check_References): When an unset reference to a pointer
39317 that is never assigned is encountered, prefer '<pointer> may be null'
39318 warning over '<pointer> is never assigned a value'.
39319
39320 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
39321
39322 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
39323 the ABI.
39324
39325 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
39326
39327 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
39328 libexc. We currently don't reference anything in this library and
39329 linking it in triggers linker warnings we don't want to see.
39330
39331 * init.c: Update comments.
39332
39333 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39334
39335 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
39336 * utils.c (create_field_decl): Likewise.
39337 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
39338
39339 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
39340
39341 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
39342 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
39343 Add info directory entry and category.
39344
39345 2004-04-02 Jan Hubicka <jh@suse.cz>
39346
39347 * utils.c: Include function.h
39348 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
39349
39350 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
39351
39352 PR ada/14150
39353 * Make-lang.in: Clean up generation of documentation
39354
39355 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
39356
39357 * xgnatug.adb: Removed, replaced by xgnatugn.adb
39358
39359 * xgnatugn.adb: Replaces xgnatug.adb
39360
39361 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
39362
39363 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
39364
39365 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39366 gnat_ug_wnt.texi: Removed.
39367
39368 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
39369
39370 * utils2.c: Update copyright notice.
39371
39372 2004-04-01 Robert Dewar <dewar@gnat.com>
39373
39374 * checks.adb: Minor reformatting throughout
39375 Note that prev checkin added RM reference to alignment warning
39376
39377 2004-04-01 Ed Schonberg <schonberg@gnat.com>
39378
39379 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
39380 non-static when building aggregate for bit-packed array.
39381
39382 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
39383 function call that is itself the actual in a procedure call, build
39384 temporary for it.
39385
39386 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
39387 a string literal, create a temporary for it, constant folding only
39388 handles scalars here.
39389
39390 2004-04-01 Vincent Celier <celier@gnat.com>
39391
39392 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
39393 Error_Msg_SP): New empty procedures to instantiate the Scanner.
39394 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
39395 tokens.
39396 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
39397 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
39398 and get the checksum.
39399
39400 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
39401 already in the Q.
39402 Increase the Marking_Label at the end of the Multiple_Main_Loop,
39403 instead of at the beginning.
39404
39405 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
39406 directly.
39407 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
39408 on VMS.
39409
39410 * osint.ads (Multi_Unit_Index_Character): New Character global variable
39411
39412 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
39413 not '~' directly.
39414
39415 * par.adb: Remove test on file name to detect language defined units.
39416 Add test on unit name, after parsing, to detect language defined units
39417 that are not compiled with -gnatg (except System.RPC and its children)
39418
39419 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
39420 following units without style checking.
39421
39422 * switch-c.adb: Change -gnatC to -gnateI
39423
39424 * usage.adb: Document new switch -gnateInnn
39425
39426 * scng.adb (Accumulate_Token_Checksum): New procedure
39427 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
39428 word or literal number.
39429 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
39430 numbers.
39431
39432 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
39433
39434 * a-tasatt.adb,
39435 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
39436 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
39437 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
39438 5vtpopde.adb: Add missing 'constant' keywords.
39439
39440 2004-04-01 Javier Miranda <miranda@gnat.com>
39441
39442 * par-ch4.adb: (P_Allocator): Code cleanup
39443
39444 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
39445 attribute.
39446
39447 * sinfo.ads: Complete documentation of previous change
39448
39449 2004-04-01 Pascal Obry <obry@gnat.com>
39450
39451 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
39452 only on VMS. This special handling was done because an old GNU/ld bug
39453 on Windows which has been fixed.
39454
39455 2004-04-01 GNAT Script <nobody@gnat.com>
39456
39457 * Make-lang.in: Makefile automatically updated
39458
39459 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39460
39461 * decl.c (gnat_to_gnu_entity, make_type_from_size):
39462 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
39463 * trans.c (tree_transform, convert_with_check): Likewise.
39464 * utils.c (gnat_signed_or_unsigned_type): Likewise.
39465 (build_vms_descriptor, unchecked_convert): Likewise.
39466 * utils2.c (nonbinary_modular_operation): Likewise.
39467
39468 2004-03-29 Javier Miranda <miranda@gnat.com>
39469
39470 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
39471 (Install_Null_Excluding_Check): Local subprogram that determines whether
39472 an access node requires a runtime access check and if so inserts the
39473 appropriate run-time check.
39474 (Apply_Access_Check): Call Install_Null_Excluding check if required
39475 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
39476
39477 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
39478
39479 * einfo.ads: Fix typo in comment
39480
39481 * exp_ch3.adb (Build_Assignment): Generate conversion to the
39482 null-excluding type to force the corresponding run-time check.
39483 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
39484 type to force the corresponding run-time check.
39485
39486 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
39487 the null-excluding type to force the corresponding run-time check.
39488
39489 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
39490 case of access types unless they have the null-excluding attribute.
39491
39492 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
39493 part.
39494
39495 * exp_util.ads: Fix typo in comment
39496
39497 * par.adb (P_Null_Exclusion): New subprogram
39498 (P_Subtype_Indication): New formal that indicates if the null-excluding
39499 part has been scanned-out and it was present
39500
39501 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
39502
39503 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
39504 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
39505 type to force the corresponding run-time check
39506 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
39507 components
39508 (Resolve_Array_Aggregate): Carry out some static checks
39509 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
39510
39511 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
39512 attribute must be set only if specified by means of the null-excluding
39513 part. In addition, we must also propagate the access-constant attribute
39514 if present.
39515 (Access_Subprogram_Declaration, Access_Type_Declaration,
39516 Analyze_Component_Declaration, Analyze_Object_Declaration,
39517 Array_Type_Declaration, Process_Discriminants,
39518 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
39519 and carry out some static checks.
39520 (Build_Derived_Access_Type): Set the null-excluding attribute
39521 (Derived_Type_Declaration, Process_Subtype): Carry out some static
39522 checks.
39523
39524 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
39525
39526 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
39527
39528 * sem_ch6.adb (Process_Formals): Carry out some static checks.
39529 (Set_Actual_Subtypes): Generate null-excluding subtype if the
39530 null-excluding part was present; it is not required to be done here in
39531 case of anonymous access types.
39532 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
39533 value.
39534
39535 * sem_res.adb (Resolve_Actuals): Carry out some static check
39536 (Resolve_Null): Allow null in anonymous access
39537
39538 * sinfo.adb: New subprogram Null_Exclusion_Present
39539 All_Present and Constant_Present available on access_definition nodes
39540
39541 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
39542 object_declaration, derived_type_definition, component_definition,
39543 discriminant_specification, access_to_object_definition,
39544 access_function_definition, allocator, access_procedure_definition,
39545 access_definition, parameter_specification, All_Present and
39546 Constant_Present flags available on access_definition nodes.
39547
39548 2004-03-29 Robert Dewar <dewar@gnat.com>
39549
39550 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
39551 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
39552 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
39553 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
39554 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
39555 sem_prag.adb: Updates to handle multiple units/file
39556
39557 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
39558
39559 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
39560 sem_util.adb: Minor reformatting
39561
39562 * sem_ch12.adb: Add comment for previous change
39563
39564 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
39565
39566 * osint.adb (Executable_Prefix): Set Exec_Name to the current
39567 executable name when not initialized. Otherwise, use its current value.
39568
39569 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
39570 initialize it to another executable name than the current one. This
39571 allows to configure paths for an executable name (gnatmake) different
39572 from the current one (gnatdist).
39573
39574 2004-03-29 Ed Schonberg <schonberg@gnat.com>
39575
39576 * exp_ch6.adb (Expand_Call): A call to a function declared in the
39577 current unit cannot be inlined if it appears in the body of a withed
39578 unit, to avoid order of elaboration problems in gigi.
39579
39580 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
39581 information for protected (wrapper) operation as well, to simplify gdb
39582 use.
39583
39584 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
39585 protected body, indicate that the entity for the generated spec comes
39586 from source, to ensure that references are properly generated for it.
39587 (Build_Body_To_Inline): Do not inline a function that returns a
39588 controlled type.
39589
39590 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
39591 apply convention to homonyms that are declared explicitly.
39592
39593 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
39594 that renames an equality operator and the operands are overloaded,
39595 resolve them with the declared formal types, before rewriting as an
39596 operator.
39597
39598 2004-03-29 GNAT Script <nobody@gnat.com>
39599
39600 * Make-lang.in: Makefile automatically updated
39601
39602 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
39603
39604 * memtrack.adb: Log realloc calls, which are treated as free followed
39605 by alloc.
39606
39607 2004-03-25 Vincent Celier <celier@gnat.com>
39608
39609 * prj-makr.adb (Process_Directories): Detect when a file contains
39610 several units. Do not include such files in the config pragmas or
39611 in the naming scheme.
39612
39613 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
39614 Resolve links only when not in Trusted_Mode.
39615 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
39616 Do not resolve links for the display names.
39617
39618 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
39619 resolve links when computing the display names.
39620
39621 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
39622
39623 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
39624 attribute reference does not denote a subtype, it can be any
39625 expression that has a classwide type, potentially after an implicit
39626 dereference. In particular, the prefix can be a view conversion for
39627 a classwide type (for which Is_Object_Reference holds), but it can
39628 also be a value conversion for an access-to-classwide type. In the
39629 latter case, there is an implicit dereference, and the original node
39630 for the prefix does not verify Is_Object_Reference.
39631
39632 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
39633 conversion of a discriminant-dependent component of a mutable object
39634 is one itself.
39635
39636 2004-03-25 Ed Schonberg <schonberg@gnat.com>
39637
39638 * freeze.adb (Freeze_Entity): When an inherited subprogram is
39639 inherited, has convention C, and has unconstrained array parameters,
39640 place the corresponding warning on the derived type declaration rather
39641 than the original subprogram.
39642
39643 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
39644 indication on renaming declaration, if formal has a box and actual
39645 is absent.
39646
39647 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
39648 determine whether to generate an implicit or explicit reference to
39649 the renamed entity.
39650
39651 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
39652 subprogram renaming comes from a defaulted formal subprogram in an
39653 instance.
39654
39655 2004-03-25 Gary Dismukes <dismukes@gnat.com>
39656
39657 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
39658 value expressions to ensure that calls within a component definition
39659 will be checked (since those are evaluated during the record type's
39660 elaboration).
39661
39662 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
39663
39664 * s-tpobop.adb: Code clean up:
39665 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
39666 code.
39667 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
39668
39669 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
39670
39671 * Makefile.in: Clean up in the ravenscar run time.
39672
39673 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39674
39675 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
39676 of No_Strict_Aliasing to build_pointer_type_for_mode.
39677 * utils.c (update_pointer_to): Walk pointer and ref chains.
39678
39679 2004-03-22 Cyrille Comar <comar@act-europe.fr>
39680
39681 * ali.ads: Fix Comment about Dynamic_Elab.
39682
39683 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
39684 Has_RACW, Is_Generic, etc.)
39685 (Output_Object, Gnatls): Take into account ALI files not attached to
39686 an object.
39687
39688 2004-03-22 Vincent Celier <celier@gnat.com>
39689
39690 * gprep.adb: Change all String_Access to Name_Id
39691 (Is_ASCII_Letter): new function
39692 (Double_File_Name_Buffer): New procedure
39693 (Preprocess_Infile_Name): New procedure
39694 (Process_Files): New procedure
39695 (Gnatprep): Check if output and input are existing directories.
39696 Call Process_Files to do the real job.
39697
39698 2004-03-22 Robert Dewar <dewar@gnat.com>
39699
39700 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
39701 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
39702
39703 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
39704
39705 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
39706 case when the source contains only comments.
39707
39708 2004-03-22 Ed Schonberg <schonberg@gnat.com>
39709
39710 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
39711 declaration for a child subprogram body that acts as a spec, indicate
39712 that the entity in the declaration needs debugging information.
39713
39714 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
39715 full view if the subtype is created for a constrained record component;
39716 gigi has enough information to construct the record, and there is no
39717 place in the tree for the declaration.
39718
39719 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
39720 serial number for the dummy body that is built for analysis, to avoid
39721 inconsistencies in the generation of internal names when compiling
39722 with -gnatN.
39723
39724 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
39725
39726 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
39727 object.
39728
39729 2004-03-22 GNAT Script <nobody@gnat.com>
39730
39731 * Make-lang.in: Makefile automatically updated
39732
39733 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39734
39735 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
39736 * trans.c (tree_transform, emit_index_check): Likewise.
39737 * utils.c (build_template): Likewise.
39738 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
39739 (maybe_unconstrained_array, unchecked_convert): Likewise.
39740 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
39741 (build_unary_op): Likewise.
39742 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
39743 (fill_vms_descriptor): Likewise.
39744 (build_call_alloc_dealloc): Likewise.
39745 ALIGN is unsigned.
39746 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
39747
39748 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
39749
39750 PR other/14630
39751 * gnat_ug.texi: Add info directory category and entry.
39752 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39753 gnat_ug_wnt.texi: Regenerate.
39754
39755 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
39756
39757 * ada-tree.h: Update copyright notice.
39758 Minor reformatting.
39759
39760 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
39761
39762 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
39763 as regular exception objects and not as mere integers representing the
39764 condition code. The latter approach required some dynamics to mask off
39765 severity bits, which did not fit well into the GCC table based model.
39766 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
39767 exception data objects. We don't it and it would conflict with the other
39768 external symbol we have to generate for such exceptions.
39769
39770 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
39771 the special code for VMS exceptions, since these are now represented
39772 as regular exceptions objects.
39773
39774 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39775
39776 * decl.c (debug_no_type_hash): Remove.
39777 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
39778 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
39779
39780 2004-03-19 Laurent Guerby <laurent@guerby.net>
39781
39782 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
39783 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
39784
39785 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39786
39787 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
39788 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
39789 (TYPE_RM_SIZE_INT): Directly use type.values.
39790 (TREE_LOOP_ID): Clean up check.
39791 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
39792 TYPE_VALUES, not TYPE_FIELDS.
39793 * trans.c (convert_with_check): Delay access of bounds of basetype
39794 until sure is numeric.
39795
39796 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
39797
39798 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
39799
39800 Code clean up:
39801 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
39802 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
39803 Specific.Set instead of direct call to e.g pthread_setspecific.
39804
39805 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
39806
39807 * adaint.c: Update comments.
39808
39809 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
39810 GNATLIB_SHARED for FreeBSD.
39811
39812 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
39813
39814 * init.c [VxWorks]: Do not fix the stack size for the environment task.
39815 When needed (stack checking) the stack size is retrieved
39816 from the VxWorks kernel.
39817
39818 * Makefile.in: Flag -nostdinc is required when building the run time
39819 for avoiding looking for files in the base compiler.
39820 Add the VxWorks specific version of the package body for
39821 System.Stack_checking.Operations (5zstchop.adb).
39822
39823 * Make-lang.in: Add the object file for
39824 System.Stack_Checking.Operations.
39825
39826 * Makefile.rtl: Add object file for the package
39827 System.Stack_Checking.Operations.
39828
39829 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
39830
39831 * s-stache.ads, s-stache.adb: Move the operations related to stack
39832 checking from this package to package System.Stack_Checking.Operations.
39833 This way, stack checking operations are only linked in the final
39834 executable when using the -fstack-check flag.
39835
39836 2004-03-18 Doug Rupp <rupp@gnat.com>
39837
39838 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
39839 Reorganize ifeq's.
39840
39841 * 5qsystem.ads, 5xcrtl.ads: New files.
39842
39843 2004-03-18 Vincent Celier <celier@gnat.com>
39844
39845 * prj.adb (Reset): Reset hash table Files_Htable
39846
39847 * prj-env.adb (Source_Paths, Object_Paths): New tables.
39848 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
39849 the procedures Add_To_Path_File.
39850 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
39851 making sure that each directory is present only once and, for object
39852 dirs, when a directory already present is added, the duplicate is
39853 removed and the directory is always put as the last in the table.
39854 Write the path files at the end of these accumulations.
39855
39856 * prj-nmsc.adb (Record_Source): Add source file name in hash table
39857 Files_Htable for all sources.
39858
39859 * prj-proc.adb (Process): Remove restrictions between not directly
39860 related extending projects.
39861
39862 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
39863
39864 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
39865 (Find_Sources): Minor speed optimization.
39866
39867 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
39868 parameter Trusted_Mode.
39869
39870 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
39871
39872 * scn.adb (Determine_License): Take into account a degenerated case
39873 when the source contains only comments.
39874
39875 2004-03-18 Ed Schonberg <schonberg@gnat.com>
39876
39877 * sem_warn.adb (Check_References): For a warning on a selected
39878 component that does not come from source, locate an uninitialized
39879 component of the record type to produce a more precise error message.
39880
39881 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
39882
39883 * 3zsoccon.ads: Fix multicast options.
39884
39885 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
39886 in the spec.
39887
39888 2004-03-15 Robert Dewar <dewar@gnat.com>
39889
39890 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
39891 pragma used for a private type.
39892
39893 * lib-xref.adb (Generate_Reference): Do not generate warning if
39894 reference is in a different unit from the pragma Unreferenced.
39895
39896 * 5vtpopde.adb: Minor reformatting
39897 Fix casing of To_Task_ID
39898
39899 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
39900 flag if we have an unchecked conversion to an access type in the same
39901 unit.
39902
39903 2004-03-15 Geert Bosch <bosch@gnat.com>
39904
39905 * a-ngcoty.adb (Modulus): In alternate formula for large real or
39906 imaginary parts, use Double precision throughout.
39907
39908 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
39909 we want to be able to compile run-time with -gnata for testing, but
39910 this may also be instantiated in user code that is compiled with -gnata.
39911
39912 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
39913
39914 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
39915 codes. Having a separate type for this is useful to enforce consistency
39916 throughout the various run-time units.
39917 (Exception_Data): Use Exception_Code for Import_Code.
39918
39919 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
39920 Natural and Integer in various places.
39921 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
39922 with the severity bits masked off.
39923 (Register_VMS_Exception): Handle the additional exception data pointer
39924 argument.
39925
39926 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
39927 component, now reflected by an exported accessor.
39928 (is_handled_by): New routine to compute whether the propagated
39929 occurrence matches some handler choice specification. Extracted out of
39930 get_action_description_for, and expanded to take care of the VMS
39931 specifities.
39932 (get_action_description_for): Use is_handled_by instead of an explicit
39933 complex condition to decide if the current choice at hand catches the
39934 propagated occurrence.
39935
39936 * raise.h (Exception_Code): New type for C.
39937
39938 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
39939 System.Standard_Library.Exception_Code, to allow references from the
39940 pragma import/export expander.
39941
39942 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
39943 New accessors to allow easy access to GNAT exception data
39944 characteristics.
39945 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
39946 redundant Handled_By_Others component, helper for the personality
39947 routine which will now be able to call the appropriate exception data
39948 accessor instead.
39949
39950 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
39951 component of Standard_Exception_Type to be the closest possible to
39952 Exception_Code in System.Standard_Library, that we cannot get at this
39953 point. Expand a ??? comment to notify that this type node should
39954 probably be rewritten later on.
39955
39956 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
39957 registration call to include a pointer to the exception object in the
39958 arguments.
39959
39960 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
39961 instead of int and explicit bitmasks.
39962
39963 2004-03-15 Vincent Celier <celier@gnat.com>
39964
39965 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
39966 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
39967
39968 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
39969 longer needed now that it is in the spec of
39970 System.Tasking.Task_Attributes.
39971
39972 * adaint.h, adaint.c: (__gnat_create_output_file): New function
39973
39974 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
39975
39976 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
39977
39978 * make.adb (Gnatmake): Do not check the executable suffix; it is being
39979 taken care of in Scan_Make_Arg.
39980 (Scan_Make_Arg): Add the executable suffix only if the argument
39981 following -o, in canonical case, does not end with the executable
39982 suffix. When in verbose mode and executable file name does not end
39983 with executable suffix, output the executable name, in canonical case.
39984
39985 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
39986 to avoid warnings when instantiating Ada.Task_Attributes.
39987 Minor reformating.
39988
39989 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
39990 in the correct order.
39991
39992 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
39993 redirect standard output and error to a file for the invocation of the
39994 compiler, then read the file.
39995
39996 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
39997 directory, instead of the Value.
39998 (Find_Source_Dirs): Remove useless code & comments.
39999
40000 2004-03-15 Ed Schonberg <schonberg@gnat.com>
40001
40002 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
40003 tagged type is inherited, and the parent operation is not frozen yet,
40004 force generation of a freeze node for the inherited operation, so the
40005 corresponding dispatch entry is properly initialized.
40006 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
40007 when looking for user-defined equality operation.
40008
40009 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
40010 boolean when locating primitive equality of tagged component.
40011
40012 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
40013 bit-aligned field and the right-hand side a string literal, introduce
40014 a temporary before expanding assignment into a loop.
40015
40016 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
40017 priority in full, to ensure that any expanded subepxressions of it are
40018 elaborated in the scope of the init_proc.
40019
40020 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
40021 after object declaration, skipping over code that may have been
40022 generated for validity checks.
40023
40024 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
40025 discriminants, ignore the known discriminants of its full view, if
40026 any, to check legality.
40027
40028 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
40029 component if type has unknown discriminants.
40030 (Analyze_Private_Extension_Declaration): Discriminant constraint is
40031 null if type has unknown discriminants.
40032
40033 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
40034 for end label when present.
40035
40036 * s-fileio.adb (Open): When called with a C_Stream, use given name for
40037 temporary file, rather than an empty string.
40038
40039 2004-03-15 Ed Falis <falis@gnat.com>
40040
40041 * s-thread.adb: Removed, no longer used.
40042
40043 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40044
40045 * decl.c (target.h): Now include.
40046 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
40047 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
40048 (validate_size): For POINTER_TYPE, get smallest size permitted on
40049 machine.
40050
40051 * fe.h: Sort Einfo decls and add Set_Mechanism.
40052
40053 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
40054 (ada/decl.o): Depends on target.h.
40055
40056 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
40057 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
40058
40059 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
40060
40061 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
40062
40063 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
40064 Insert_Dereference_Action when rewriting an implicit dereference into
40065 an explicit one, this will be taken care of during expansion of the
40066 explicit dereference.
40067 (Expand_N_Slice): Same. Always do the rewriting, even for the case
40068 of non-packed slices, since the dereference action generated by
40069 expansion of the explicit dereference is needed in any case.
40070 (Expand_N_Selected_Component): When rewriting an implicit dereference,
40071 analyze and resolve the rewritten explicit dereference so it is seen
40072 by the expander.
40073 (Insert_Dereference_Action): This procedure is now called only for the
40074 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
40075 dereferences that do not come from source (including explicit
40076 dereferences resulting from rewriting implicit ones), but do not
40077 recursively insert a check for the dereference nodes contained within
40078 the check.
40079 (Insert_Dereference_Action): Clarify and correct comment.
40080
40081 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
40082
40083 PR ada/14131
40084 Move language detection to the top level.
40085 * config-lang.in: Build by default.
40086
40087 2004-03-05 Robert Dewar <dewar@gnat.com>
40088
40089 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
40090
40091 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
40092 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
40093 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
40094 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
40095 unchecked conversion to spec to avoid warnings.
40096
40097 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
40098 to Task_ID
40099
40100 * 7stpopsp.adb: Correct casing in To_Task_ID call
40101
40102 * a-strsea.ads, a-strsea.adb: Minor reformatting
40103
40104 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
40105
40106 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
40107 Adjust Max_Msg_Length to be clearly large enough.
40108
40109 * fe.h: Define In_Same_Source_Unit
40110
40111 * osint.adb: Add pragma Warnings Off to suppress warnings
40112 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
40113 aliasing warnings.
40114
40115 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
40116
40117 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
40118
40119 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
40120
40121 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
40122
40123 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
40124
40125 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
40126 node. We now do generate them for gcc back end.
40127
40128 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
40129 warning.
40130
40131 * sinput-c.adb: Fix bad name in header.
40132 Add pragma Warnings Off to suppress aliasing warning.
40133
40134 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
40135
40136 * snames.h, snames.ads, snames.adb: Add entry for pragma
40137 No_Strict_Aliasing.
40138
40139 2004-03-05 Vincent Celier <celier@gnat.com>
40140
40141 * prj-com.ads: Add hash table Files_Htable to check when a file name
40142 is already a source of another project.
40143
40144 * prj-nmsc.adb (Record_Source): Before recording a new source, check
40145 if its file name is not already a source of another project. Report an
40146 error if it is.
40147
40148 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
40149 source file name, call gnatpp with all the sources of the main project.
40150
40151 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
40152 of file names.
40153
40154 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
40155 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
40156 /RUNTIME_SYSTEM=, converted to --RTS=
40157 /NOTABS, converted to -notabs
40158
40159 2004-03-05 Pascal Obry <obry@gnat.com>
40160
40161 * make.adb: Minor reformatting.
40162
40163 2004-03-05 Ed Schonberg <schonberg@gnat.com>
40164
40165 Part of implemention of AI-262.
40166 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
40167
40168 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
40169 procedure.
40170
40171 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
40172 when component type is a partially constrained class-wide subtype.
40173 (Constrain_Discriminated_Type): If parent type has unknown
40174 discriminants, a constraint is illegal, even if full view has
40175 discriminants.
40176 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
40177 with unknown discriminants whose full view is a discriminated record.
40178
40179 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
40180 flag, to handle properly derivations of tagged types with unknown
40181 discriminants.
40182 (Analyze_Package_Spec, Analyze_Package_Body): Install
40183 Private_With_Clauses before analyzing private part or body.
40184
40185 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
40186 Has_Discriminants can be true for a given type (documentation).
40187
40188 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
40189
40190 * s-restri.ads: Fix license (GPL->GMGPL).
40191
40192 * s-tassta.adb: Minor reformatting.
40193
40194 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
40195 by calls to Exit_One_ATC_Level, since additional clean up is performed
40196 by this function.
40197
40198 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
40199 by calls to Exit_One_ATC_Level, since additional clean up is performed
40200 by this function.
40201
40202 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40203
40204 * trans.c: Reflect GCC changes to fix bootstrap problem.
40205 Add warning for suspicious aliasing unchecked conversion.
40206
40207 2004-03-05 GNAT Script <nobody@gnat.com>
40208
40209 * Make-lang.in: Makefile automatically updated
40210
40211 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
40212
40213 * ali.adb (Read_Instantiation_Instance): Do not modify the
40214 current_file_num when reading information about instantiations, since
40215 this corrupts files in later references.
40216
40217 2004-03-02 Vincent Celier <celier@gnat.com>
40218
40219 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
40220 before checking if it is read-only.
40221
40222 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
40223 of SRC_DIRS and eliminate duplicates.
40224
40225 * gprcmd.adb: Replace command "path" with command "path_sep" to return
40226 the path separator.
40227 (Usage): Document path_sep
40228
40229 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
40230 C++ compiler. No need for a script.
40231 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
40232 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
40233 subst.
40234
40235 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
40236 where there are Ada sources.
40237 (Set_Ada_Paths): Only add to the include path the source dirs of project
40238 with Ada sources.
40239 (Add_To_Path): Add the Display_Values of the directories, not their
40240 Values.
40241
40242 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
40243 data.
40244
40245 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
40246 is not No_Name.
40247 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
40248 Value is canonicalized.
40249 (Language_Independent_Check): Do not copy Value to Display_Value when
40250 canonicalizing Value.
40251
40252 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
40253 path to find limited with cycles.
40254 (Parse_Single_Project): Use canonical cased path to find the end of a
40255 with cycle.
40256
40257 2004-03-02 Ed Schonberg <schonberg@gnat.com>
40258
40259 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
40260 and not a child unit.
40261
40262 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
40263 appear in a with_clause.
40264
40265 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
40266 only happen in type_annotate mode, do not try to elaborate it.
40267
40268 * exp_util.adb (Force_Evaluation): If expression is a selected
40269 component on the left of an assignment, use a renaming rather than a
40270 temporary to remove side effects.
40271
40272 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
40273 inlined instance body, which is analyzed before the end of the
40274 enclosing scope.
40275
40276 2004-03-02 Robert Dewar <dewar@gnat.com>
40277
40278 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
40279 sem_ch4.adb: Use new feature for substitution of keywords in VMS
40280
40281 * errout.ads, errout.adb: Implement new circuit for substitution of
40282 keywords in VMS.
40283
40284 * sem_case.adb (Analyze_Choices): Place message properly when case is
40285 a subtype reference rather than an explicit range.
40286
40287 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
40288
40289 2004-03-02 Doug Rupp <rupp@gnat.com>
40290
40291 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
40292
40293 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
40294
40295 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
40296
40297 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40298
40299 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
40300 BLKmode bitfield.
40301
40302 2004-02-25 Robert Dewar <dewar@gnat.com>
40303
40304 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
40305 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
40306 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
40307 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
40308 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
40309 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
40310 the defining instance of the type to avoid aliasing problems.
40311 Fix copyright header. Fix bad comments in package header.
40312
40313 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
40314
40315 2004-02-25 Ed Schonberg <schonberg@gnat.com>
40316
40317 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
40318 rewritten as references when aliased through an address clause.
40319
40320 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
40321 whether call can be interpreted as an indirect call to the result of a
40322 parameterless function call returning an access subprogram.
40323
40324 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
40325
40326 Code clean up:
40327 * exp_ch7.adb (Make_Clean): Remove generation of calls to
40328 Unlock[_Entries], since this is now done by Service_Entries directly.
40329
40330 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
40331
40332 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
40333 Requeue_Call for better code readability. Change spec and update calls:
40334 PO_Service_Entries now unlock the PO on exit.
40335 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
40336 PO_Service_Entries.
40337
40338 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
40339
40340 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
40341
40342 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
40343
40344 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
40345 protected subprogram call and analyzing the result of such expanding
40346 in case when the called protected subprogram is eliminated.
40347
40348 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
40349 names.
40350
40351 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
40352
40353 * Makefile.in: Clean ups.
40354
40355 2004-02-23 Ed Schonberg <schonberg@gnat.com>
40356
40357 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
40358 protected operations if original subprogram is flagged as eliminated.
40359 (Expand_N_Subprogram_Body): For a protected operation, create
40360 discriminals for next operation before checking whether the operation
40361 is eliminated.
40362
40363 * exp_ch9.adb (Expand_N_Protected_Body,
40364 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
40365 for internal protected operations if the original subprogram is
40366 eliminated.
40367
40368 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
40369 declared in a single protected object.
40370
40371 2004-02-23 Vincent Celier <celier@gnat.com>
40372
40373 * prj-attr.adb: Make attribute Builder'Executable an associative array,
40374 case insensitive if file names are case insensitive, instead of a
40375 standard associative array.
40376
40377 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
40378 them as case insensitive on platforms where the file names are case
40379 sensitive.
40380
40381 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
40382 project file has already been parsed that canonical path are compared.
40383
40384 2004-02-23 Robert Dewar <dewar@gnat.com>
40385
40386 * sinput-c.ads: Correct bad unit title in header
40387
40388 * freeze.adb: Minor reformatting
40389
40390 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40391
40392 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
40393 nonaddressable COMPONENT_REF that is removing padding that we are
40394 taking the address of, take the address of the padded record instead
40395 if item is variable size.
40396
40397 2004-02-20 Robert Dewar <dewar@gnat.com>
40398
40399 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
40400
40401 2004-02-20 Ed Schonberg <schonberg@gnat.com>
40402
40403 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
40404 itype references for the constrained designated type of a component
40405 whose base type is already frozen.
40406
40407 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
40408
40409 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
40410 avoid GCC warnings.
40411
40412 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
40413
40414 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
40415 identifier for a phantom package that rewrites the formal package
40416 declaration with a box. The Add semantic decorations for the defining
40417 identifier from the original node (that represents the formal package).
40418
40419 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
40420
40421 * Make-lang.in (ada/stamp-sdefault): Use the top level
40422 move-if-change.
40423
40424 2004-02-19 Richard Henderson <rth@redhat.com>
40425
40426 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
40427
40428 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
40429
40430 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
40431 Scan_ALI can be used for multiple ALI files without reinitializing
40432 between calls.
40433
40434 2004-02-18 Robert Dewar <dewar@gnat.com>
40435
40436 * debug.adb: Minor reformatting.
40437
40438 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40439
40440 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
40441 to zero if there is an address clause.
40442
40443 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
40444
40445 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
40446
40447 2004-02-18 Gary Dismukes <dismukes@gnat.com>
40448
40449 * layout.adb (Layout_Component_List): Revise generation of call to
40450 discriminant-checking function to pass selections of all of the type's
40451 discriminants rather than just the variant-controlling discriminant.
40452
40453 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
40454
40455 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
40456 fail in the current setup and triggers spurious system error messages.
40457 Pretend it occurred and failed instead.
40458
40459 2004-02-18 Vincent Celier <celier@gnat.com>
40460
40461 * bld.adb: Mark FLDFLAGS as saved
40462 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
40463 it is not the root project. Put each directory to be
40464 extended between double quotes to prevent it to be expanded on Windows.
40465 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
40466 the project file. Set them back to their initial values if they have not
40467 been set in the project file.
40468
40469 * gprcmd.adb: (Gprdebug, Debug): New global variables
40470 (Display_Command): New procedure
40471 (Usage): Document new command "linkopts"
40472 Call Display_Command when env var GPRDEBUG has the value "TRUE"
40473 Implement new command "linkopts"
40474 Remove quotes that may be around arguments for "extend"
40475 Always call Normalize_Pathname with arguments formatted for the platform
40476
40477 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
40478 Change @echo to @$(display) in target clean to be able to clean silently
40479
40480 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
40481
40482 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
40483 canonical case.
40484
40485 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
40486 = Extending_All when current project is an extending all project.
40487
40488 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
40489 set to True only for LINK command, after Unix switch -o.
40490 (Process_Arguments): Set Output_File_Expected to True for LINK command
40491 after Unix switch -o. When Output_File_Expected is True, never add an
40492 extension to a file name.
40493
40494 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
40495 option file name, only to the --for-linker= switch.
40496 (Option_File_Name): If option file name do not end with ".opt", append
40497 "/OPTIONS".
40498
40499 2004-02-18 GNAT Script <nobody@gnat.com>
40500
40501 * Make-lang.in: Makefile automatically updated
40502
40503 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
40504
40505 * Make-lang.in (stamp-sdefault): Do not depend on
40506 move-if-change.
40507
40508 2004-02-12 Zack Weinberg <zack@codesourcery.com>
40509
40510 * config-lang.in: Disable Ada by default until probe logic for
40511 a bootstrap Ada compiler can be moved to the top level configure
40512 script.
40513
40514 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
40515
40516 * decl.c (components_to_record): Don't claim that the internal fields
40517 we make to hold the variant parts are semantically addressable, because
40518 they are not.
40519
40520 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
40521 adjust the comment describing the modular type form when we can use it.
40522 (Install_PAT): Account for the Esiz renaming.
40523
40524 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
40525 sc_onstack context indication before raising the exception to which
40526 the signal is mapped. Allows better handling of later signals possibly
40527 triggered by the resumed user code if the exception is handled.
40528
40529 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
40530
40531 * 5zinit.adb: Removed, no longer used.
40532
40533 2004-02-12 Robert Dewar <dewar@gnat.com>
40534
40535 * ali.adb: Remove separating space between parameters on R line. Makes
40536 format consistent with format used by the binder for Set_Globals call.
40537
40538 * atree.ads, atree.adb: Minor reformatting (new function header format)
40539
40540 * bindgen.adb: Add Run-Time Globals documentation section containing
40541 detailed documentation of the globals passed from the binder file to
40542 the run time.
40543
40544 * gnatls.adb: Minor reformatting
40545
40546 * init.c (__gnat_set_globals): Add note pointing to documentation in
40547 bindgen.
40548
40549 * lib-writ.ads, lib-writ.adb: Remove separating space between
40550 parameters on R line.
40551 Makes format consistent with format used by the binder for Set_Globals
40552 call.
40553
40554 * osint.ads: Add 2004 to copyright notice
40555 Minor reformatting
40556
40557 * snames.ads: Correct capitalization of FIFO_Within_Priorities
40558 Noticed during code reading, documentation issue only
40559
40560 * usage.adb: Remove junk line for obsolete C switch
40561 Noticed during code reading
40562
40563 2004-02-12 Vincent Celier <celier@gnat.com>
40564
40565 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
40566 extend for each directory, so that multiple /** directories are
40567 extended individually.
40568 (Recursive_Process): Set the default for LANGUAGES to ada
40569
40570 * gprcmd.adb: Define new command "ignore", to do nothing.
40571 Implement new comment "path".
40572
40573 * Makefile.generic: Suppress output when SILENT is set
40574 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
40575 used, so that the correct compiler is invoked.
40576 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
40577 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
40578
40579 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
40580
40581 * Makefile.in: Clean ups and remove obsolete targets.
40582
40583 2004-02-12 Ed Schonberg <schonberg@gnat.com>
40584
40585 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
40586 predicate declared in exp_util.
40587
40588 * exp_util.adb: Add comments.
40589
40590 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
40591 visibility before compiling context of the subunit.
40592
40593 * sem_res.adb (Check_Parameterless_Call): If the context expects a
40594 value but the name is a procedure, do not attempt to analyze as a call,
40595 in order to obtain more telling diagnostics.
40596
40597 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
40598 'Access on parameterless function calls.
40599 (Normalize_Actuals): For a parameterless function call with missing
40600 actuals, defer diagnostic until resolution of enclosing call.
40601
40602 * sem_util.adb (Wrong_Type): If the context type is an access to
40603 subprogram and the expression is a procedure name, suggest a missing
40604 'attribute.
40605
40606 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
40607 Nathanael Nerode <neroden@gcc.gnu.org>
40608
40609 PR ada/6637
40610 PR ada/5911
40611 Merge with libada-branch:
40612 * config-lang.in: Build libada only when ada is built.
40613
40614 2004-02-09 Ed Schonberg <schonberg@gnat.com>
40615
40616 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
40617 for a tagged type, verify that both formals have the same type.
40618
40619 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
40620 temporary when the formal is an in-parameter and the actual a possibly
40621 unaligned slice.
40622
40623 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
40624 when expansion is disabled, to ensure proper name capture with
40625 overloaded literals. Condition can be of any boolean type, resolve
40626 accordingly.
40627
40628 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
40629 renaming is for a formal subprogram with a default operator name, and
40630 there is a usable operator that is visible at the point of
40631 instantiation.
40632
40633 2004-02-09 Robert Dewar <dewar@gnat.com>
40634
40635 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
40636 rewrite to ignore errors in ali files, intended to allow tools downward
40637 compatibility with new versions of ali files.
40638
40639 * ali.ads: Add new parameter Ignore_Errors
40640
40641 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
40642 duplicating the error message giving the file with restrictions.
40643
40644 * debug.adb: Add debug flag I for gnatbind
40645
40646 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
40647 operators for the case where the operator is a defining operator.
40648
40649 * exp_ch3.adb: Minor reformatting (new function spec format).
40650
40651 * exp_ch4.adb: Add comment for previous change, and make minor
40652 adjustment to loop to always check for improper loop termination.
40653 Minor reformatting throughout (new function spec format).
40654
40655 * gnatbind.adb: Implement -di debug flag for gnatbind
40656
40657 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
40658
40659 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
40660
40661 * lib-load.adb: Fix bad assertion.
40662 Found by testing and code reading.
40663 Minor reformatting.
40664
40665 * lib-load.ads: Minor reformatting.
40666
40667 * lib-writ.adb: There is only one R line now.
40668
40669 * lib-writ.ads: Add documentation on making downward compatible changes
40670 to ali files so old tools work with new ali files.
40671 There is only one R line now.
40672 Add documentation on format incompatibilities (with special GPS note)
40673
40674 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
40675
40676 * par-load.adb: Minor reformatting
40677
40678 * sem_ch8.adb: Fix to error message from last update
40679 Minor reformatting and restructuring of code from last update
40680
40681 * par-prag.adb, snames.adb, snames.ads, snames.h,
40682 sem_prag.adb: Implement pragma Profile.
40683
40684 * stylesw.adb: Implement -gnatyN switch to turn off all style check
40685 options.
40686
40687 * usage.adb: Add line for -gnatyN switch
40688
40689 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
40690
40691 2004-02-09 Albert Lee <lee@gnat.com>
40692
40693 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
40694
40695 2004-02-09 Ed Schonberg <schonberg@gnat.com>
40696
40697 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
40698 slices.
40699
40700 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
40701 is nested in an instance that is not frozen yet, to avoid
40702 order-of-elaboration problems in gigi.
40703
40704 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
40705 body the attribute is legal.
40706
40707 2004-02-09 Robert Dewar <dewar@gnat.com>
40708
40709 * s-rident.ads: Minor comment correction
40710
40711 * targparm.adb: Remove dependence on uintp completely. There was
40712 always a bug in Make in that it called Targparm before initializing
40713 the Uint package. The old code appeared to get away with this, but
40714 the new code did not! This caused an assertion error in gnatmake.
40715
40716 * targparm.ads: Fix bad comment, restriction pragmas with parameters
40717 are indeed fully supported.
40718
40719 2004-02-06 Alan Modra <amodra@bigpond.net.au>
40720
40721 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
40722
40723 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
40724
40725 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
40726 with targetm.calls.promote_prototypes.
40727
40728 2004-02-04 Robert Dewar <dewar@gnat.com>
40729
40730 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
40731 ali.ads, gprcmd.adb: Minor reformatting
40732
40733 * bindgen.adb: Output restrictions string for new style restrictions
40734 handling
40735
40736 * impunit.adb: Add s-rident.ads (System.Rident) and
40737 s-restri (System.Restrictions)
40738
40739 * lib-writ.adb: Fix bug in writing restrictions string (last few
40740 entries wrong)
40741
40742 * s-restri.ads, s-restri.adb: Change name Restrictions to
40743 Run_Time_Restrictions to avoid conflict with package name.
40744 Add circuit to read and acquire run time restrictions.
40745
40746 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
40747
40748 * restrict.ads, restrict.adb: Use the new restriction
40749 No_Task_Attributes_Package instead of the old No_Task_Attributes.
40750
40751 * sem_prag.adb: No_Task_Attributes is a synonym of
40752 No_Task_Attributes_Package.
40753
40754 * snames.ads, snames.adb: New entry for proper handling of
40755 No_Task_Attributes.
40756
40757 * s-rident.ads: Adding restriction No_Task_Attributes_Package
40758 (AI-00249) that supersedes the GNAT specific restriction
40759 No_Task_Attributes.
40760
40761 2004-02-04 Ed Schonberg <schonberg@gnat.com>
40762
40763 * sem_prag.adb:
40764 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
40765 body, an identifier may be wrapped in an unchecked conversion.
40766
40767 2004-02-04 Vincent Celier <celier@gnat.com>
40768
40769 * lib-writ.ads: Comment update for the W lines
40770
40771 * bld.adb: (Expression): An empty string list is static
40772
40773 * fname-uf.adb: Minor comment update
40774
40775 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
40776
40777 * gnatbind.adb: Initialize Cumulative_Restrictions with the
40778 restrictions on the target.
40779
40780 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
40781
40782 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
40783 gen_rtx.
40784
40785 2004-02-02 Arnaud Charlet <charlet@gnat.com>
40786
40787 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
40788
40789 2004-02-02 Vincent Celier <celier@gnat.com>
40790
40791 * gprcmd.adb (Check_Args): If condition is false, print the invoked
40792 comment before the usage.
40793 Gprcmd: Fail when command is not recognized.
40794 (Usage): Document command "prefix"
40795
40796 * g-md5.adb (Digest): Process last block.
40797 (Update): Do not process last block. Store remaining characters and
40798 length in Context.
40799
40800 * g-md5.ads (Update): Document that several call to update are
40801 equivalent to one call with the concatenated string.
40802 (Context): Add fields to allow new Update behaviour.
40803
40804 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
40805 defaulted to False.
40806 When May_Fail is True and no existing file can be found, return No_File.
40807
40808 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
40809 functions.
40810
40811 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
40812 spec file name instead on the W line.
40813
40814 2004-02-02 Robert Dewar <dewar@gnat.com>
40815
40816 * ali.adb: Read and acquire info from new format restrictions lines
40817
40818 * bcheck.adb: Add circuits for checking restrictions with parameters
40819
40820 * bindgen.adb: Output dummy restrictions data
40821 To be changed later
40822
40823 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40824 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
40825 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
40826 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
40827 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
40828
40829 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
40830 the warning message on access to possibly uninitialized variable S)
40831 Minor changes for new restrictions handling.
40832
40833 * gnatbind.adb: Minor reformatting
40834 Minor changes for new restrictions handling
40835 Move circuit for -r processing here from bcheck (cleaner)
40836
40837 * gnatcmd.adb, gnatlink.adb: Minor reformatting
40838
40839 * lib-writ.adb: Output new format restrictions lines
40840
40841 * lib-writ.ads: Document new R format lines for new restrictions
40842 handling.
40843
40844 * s-restri.ads/adb: New files
40845
40846 * Makefile.rtl: Add entry for s-restri.ads/adb
40847
40848 * par-ch3.adb: Fix bad error messages starting with upper case letter
40849 Minor reformatting
40850
40851 * restrict.adb: Major rewrite throughout for new restrictions handling
40852 Major point is to handle restrictions with parameters
40853
40854 * restrict.ads: Major changes in interface to handle restrictions with
40855 parameters. Also generally simplifies setting of restrictions.
40856
40857 * snames.ads/adb: New entry for proper handling of No_Requeue
40858
40859 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
40860 restriction counting.
40861 Other minor changes for new restrictions handling
40862
40863 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
40864 Restriction_Warnings now allows full parameter notation
40865 Major rewrite of Restrictions for new restrictions handling
40866
40867 2004-02-02 Javier Miranda <miranda@gnat.com>
40868
40869 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
40870 syntax rule for object renaming declarations.
40871 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
40872 component definitions.
40873
40874 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
40875 components.
40876 (Array_Type_Declaration): Give support to access components. In addition
40877 it was also modified to reflect the name of the object in anonymous
40878 array types. The old code did not take into account that it is possible
40879 to have an unconstrained anonymous array with an initial value.
40880 (Check_Or_Process_Discriminants): Allow access discriminant in
40881 non-limited types.
40882 (Process_Discriminants): Allow access discriminant in non-limited types
40883 Initialize the new Access_Definition field in N_Object_Renaming_Decl
40884 node. Change Ada0Y to Ada 0Y in comments
40885
40886 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
40887 equality operators.
40888 Change Ada0Y to Ada 0Y in comments
40889
40890 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
40891 renamings Change Ada0Y to Ada 0Y in comments
40892
40893 * sem_type.adb (Find_Unique_Type): Give support to the equality
40894 operators for universal access types
40895 Change Ada0Y to Ada 0Y in comments
40896
40897 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
40898
40899 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
40900 field.
40901 (N_Object_Renaming_Declaration): Addition of Access_Definition field
40902 Change Ada0Y to Ada 0Y in comments
40903
40904 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
40905 component definition and object renaming nodes
40906 Change Ada0Y to Ada 0Y in comments
40907
40908 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
40909
40910 * restrict.adb: Use the new restriction identifier
40911 No_Requeue_Statements instead of the old No_Requeue for defining the
40912 restricted profile.
40913
40914 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
40915 No_Requeue_Statements.
40916
40917 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
40918 that supersedes the GNAT specific restriction No_Requeue. The later is
40919 kept for backward compatibility.
40920
40921 2004-02-02 Ed Schonberg <schonberg@gnat.com>
40922
40923 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
40924 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
40925 pragma and fix incorrect ones.
40926
40927 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
40928 warning if the pragma is redundant.
40929
40930 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
40931
40932 * 5staprop.adb: Add missing 'constant' keywords.
40933
40934 * Makefile.in: use consistent value for SYMLIB on
40935 platforms where libaddr2line is supported.
40936
40937 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40938
40939 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
40940 annotating types.
40941
40942 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
40943
40944 * init.c (__gnat_install_handler): Setup an alternate stack for signal
40945 handlers in the environment thread. This allows proper propagation of
40946 an exception on stack overflows in this thread even when the builtin
40947 ABI stack-checking scheme is used without support for a stack reserve
40948 region.
40949
40950 * utils.c (create_field_decl): Augment the head comment about bitfield
40951 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
40952 here, because the former is not accurate enough at this point.
40953 Let finish_record_type decide instead.
40954 Don't make a bitfield if the field is to be addressable.
40955 Always set a size for the field if the record is packed, to ensure the
40956 checks for bitfield creation are triggered.
40957 (finish_record_type): During last pass over the fields, clear
40958 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
40959 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
40960 from DECL_BIT_FIELD.
40961
40962 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
40963
40964 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
40965 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
40966 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
40967
40968 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40969
40970 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
40971
40972 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
40973 (ZCX_By_Default): Likewise.
40974 (Front_End_ZCX_Support): Likewise.
40975
40976 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
40977 (Initialize_Lock): Mark Level unreferenced.
40978 (Sleep): Mark Reason unreferenced.
40979 (Timed_Sleep): Likewise.
40980 (Wakeup): Likewise.
40981 (Exit_Task): Use Result.
40982 (Check_No_Locks): Mark Self_ID unreferenced.
40983
40984 * 5gtasinf.adb (New_Sproc): Make Attr constant.
40985 (Bound_Thread_Attributes): Make Sproc constant.
40986 (New_Bound_Thread_Attributes): Likewise.
40987
40988 2004-01-26 Ed Schonberg <schonberg@gnat.com>
40989
40990 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
40991 one-dimensional array an slice assignments, when component type is
40992 controlled.
40993
40994 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
40995 component type is controlled, and control_actions are in effect, use
40996 TSS procedure rather than generating inline code.
40997
40998 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
40999 arrays with controlled components.
41000
41001 2004-01-26 Vincent Celier <celier@gnat.com>
41002
41003 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
41004 command line for the non VMS case.
41005
41006 * gnatlink.adb (Process_Binder_File): When building object file, if
41007 GNU linker is used, put all object paths between quotes, to prevent ld
41008 error when there are unusual characters (such as '!') in the paths.
41009
41010 * Makefile.generic: When there are sources in Ada and the main is in
41011 C/C++, invoke gnatmake with -B, instead of -z.
41012
41013 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
41014 from VMS_Conversion.
41015 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
41016 specification of argument file on the command line.
41017
41018 2004-01-26 Bernard Banner <banner@gnat.com>
41019
41020 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
41021
41022 2004-01-26 Ed Schonberg <schonberg@gnat.com>
41023
41024 * snames.adb: Update copyright notice.
41025 Add info on slice assignment for controlled arrays.
41026
41027 2004-01-23 Robert Dewar <dewar@gnat.com>
41028
41029 * exp_aggr.adb: Minor reformatting
41030
41031 * exp_ch9.adb: Minor code clean up
41032 Minor reformatting
41033 Fix bad character in comment
41034
41035 PR ada/13471
41036 * targparm.adb (Get_Target_Parameters): Give clean abort error on
41037 unexpected end of file, along with more detailed message.
41038
41039 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41040
41041 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
41042 PAT.
41043
41044 * decl.c (copy_alias_set): New function.
41045 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
41046
41047 2004-01-23 Doug Rupp <rupp@gnat.com>
41048
41049 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
41050 lib$${file} in case subsequent character is not a separator.
41051
41052 2004-01-23 Vincent Celier <celier@gnat.com>
41053
41054 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
41055 when the GCC version is at least 3.
41056
41057 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
41058 Remove all "Opt.", to prepare for opt split
41059
41060 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
41061 Extends_All. Set to True when the project parsed is an extending all
41062 project. Fails for importing an extending all project only when the
41063 imported project is an extending all project.
41064 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
41065 depending on the value of Extends_All returned.
41066
41067 * prj-proc.adb (Process): Check that no project shares its object
41068 directory with a project that extends it, directly or indirectly,
41069 including a virtual project.
41070 Check that no project extended by another project shares its object
41071 directory with another also extended project.
41072
41073 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
41074 Kind = N_With_Clause
41075
41076 * prj-tree.ads: Minor reformatting
41077 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
41078
41079 2004-01-23 Ed Schonberg <schonberg@gnat.com>
41080
41081 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
41082 applies to a type with an incomplete view, use full view in Name of
41083 clause, for consistency with uses of Get_Attribute_Definition_Clause.
41084
41085 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
41086
41087 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
41088 SCHED_RR, since other values are not supported by this policy.
41089 (Initialize): Move initialization of mutex attribute to package
41090 elaboration, to prevent early access to this variable.
41091
41092 * Makefile.in: Remove mention of Makefile.adalib, unused.
41093
41094 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
41095 1ssecsta.ads: Removed, unused.
41096
41097 2004-01-21 Javier Miranda <miranda@gnat.com>
41098
41099 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
41100 entity if already built in the current scope.
41101
41102 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
41103 reminder in internal scopes. Required for nested limited aggregates.
41104
41105 2004-01-21 Doug Rupp <rupp@gnat.com>
41106
41107 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
41108 VMS. Replace all occurences of libgnat- and libgnarl- with
41109 libgnat$(hyphen) and libgnarl$(hyphen).
41110 Fixed shared library build problem on VMS.
41111
41112 2004-01-21 Robert Dewar <dewar@gnat.com>
41113
41114 * mlib-prj.adb: Minor reformatting
41115
41116 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
41117
41118 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
41119 'constant' keywords for declaration of pointers that are not modified.
41120
41121 * exp_pakd.adb: Fix English in comment.
41122
41123 2004-01-21 Ed Schonberg <schonberg@gnat.com>
41124
41125 PR ada/10889
41126 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
41127 copy all attributes of the parent, including the foreign language
41128 convention.
41129
41130 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
41131
41132 PR ada/10565
41133 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
41134 for 'delay until' statement.
41135
41136 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
41137
41138 * Make-lang.in: Replace $(docdir) with doc.
41139 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
41140 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
41141 to use consistent MAKEINFO rule.
41142 (ada.man, ada.srcman): Dummy entry.
41143 (ADA_INFOFILES): Define.
41144 (ada.info, ada.srcinfo): New rules.
41145
41146 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
41147
41148 * utils.c: Update copyright notice, missed in previous change.
41149
41150 2004-01-19 Vincent Celier <celier@gnat.com>
41151
41152 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
41153 args if Bind is True. Set First_ALI, if not already done.
41154 (Build_Library): For Stand Alone Libraries, extract from one ALI file
41155 an eventual --RTS switch, for gnatbind, and all backend switches +
41156 --RTS, for linking.
41157
41158 2004-01-19 Robert Dewar <dewar@gnat.com>
41159
41160 * sem_attr.adb, memtrack.adb: Minor reformatting
41161
41162 2004-01-19 Ed Schonberg <schonberg@gnat.com>
41163
41164 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
41165 that rename enumeration literals. This is properly done in sem_eval.
41166
41167 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
41168 to functions that rename enumeration literals.
41169
41170 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
41171 functions that rename enumeration literals.
41172
41173 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
41174
41175 * Make-lang.in (utils.o): Depend on target.h.
41176 * utils.c: Include target.h.
41177 (process_attributes): Use targetm.have_named_sections instead
41178 of ASM_OUTPUT_SECTION_NAME.
41179
41180 2004-01-16 Andreas Jaeger <aj@suse.de>
41181
41182 * Makefile.in: Add $(DESTDIR).
41183
41184 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
41185
41186 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
41187 also when not defining if a Size clause applies. That information is
41188 not to be ignored.
41189
41190 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
41191
41192 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
41193 symbolic links for the shared gnat run time when needed.
41194
41195 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
41196
41197 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
41198 for writing, and terminate with an error message if not.
41199
41200 2004-01-15 Ed Schonberg <schonberg@gnat.com>
41201
41202 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
41203 warning on an access to subprogram in an instance, when the target
41204 type is declared in the same generic unit.
41205 (Eval_Attribute): If 'access is known to fail accessibility check,
41206 rewrite as a raise statement.
41207
41208 2004-01-15 GNAT Script <nobody@gnat.com>
41209
41210 * Make-lang.in: Makefile automatically updated
41211
41212 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
41213
41214 * Make-lang.in (ada.srcextra): Dummy entry.
41215
41216 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
41217
41218 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
41219
41220 2004-01-13 Ed Schonberg <schonberg@gnat.com>
41221
41222 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
41223 components that are initialized with aggregates.
41224
41225 2004-01-13 Vincent Celier <celier@gnat.com>
41226
41227 * gnatlink.adb (Process_Binder_File): To find directory of shared
41228 libgcc, if "gcc-lib" is not a subdirectory, look for the last
41229 subdirectory "lib" in the path of the shared libgnat or libgnarl.
41230
41231 * make.adb (Gnatmake): If GCC version is at least 3, link with
41232 -shared-libgcc, when there is at least one shared library project.
41233
41234 * opt.ads (GCC_Version): New integer constant.
41235
41236 * adaint.c (get_gcc_version): New function.
41237
41238 2004-01-13 Robert Dewar <dewar@gnat.com>
41239
41240 * sem_dist.adb, sem_res.adb, sem_util.adb,
41241 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
41242 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
41243
41244 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
41245
41246 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
41247 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
41248 declarations.
41249
41250 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
41251
41252 * misc.c: Remove trailing spaces.
41253 Update copyright notice missed in previous change.
41254
41255 PR ada/13572
41256 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
41257 prefix/share/make
41258
41259 * Makefile.generic: Update copyright.
41260 Add license notice.
41261
41262 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
41263 of prefix/share/make.
41264
41265 * Makefile.prolog: Update copyright.
41266 Add license notice.
41267
41268 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
41269
41270 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
41271 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
41272 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
41273 instead of String.
41274
41275 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
41276 signature.
41277
41278 2004-01-12 Javier Miranda <miranda@gnat.com>
41279
41280 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
41281 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
41282 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
41283 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
41284 Component_Definition node.
41285
41286 2004-01-12 Ed Falis <falis@gnat.com>
41287
41288 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
41289
41290 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
41291
41292 * link.c: Change default libgnat kind to STATIC for FreeBSD.
41293
41294 2004-01-12 Bernard Banner <banner@gnat.com>
41295
41296 * Makefile.in: map 86numaux to a-numaux for x86_64
41297
41298 2004-01-12 Ed Schonberg <schonberg@gnat.com>
41299
41300 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
41301 generated to rename a generic actual, go to the actual itself, the
41302 subtype is not a user-visible entity.
41303
41304 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
41305 part is a private subtype, reset the visibility of its full view, if
41306 any, to be consistent.
41307
41308 PR ada/13417
41309 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
41310 to use a generic package G as a formal package for another generic
41311 declared within G.
41312
41313 2004-01-12 Robert Dewar <dewar@gnat.com>
41314
41315 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
41316
41317 * usage.adb: Remove mention of obsolete -gnatwb switch
41318 Noticed during code reading
41319
41320 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
41321
41322 * 1ssecsta.adb: Minor changes for -gnatwa warnings
41323
41324 2004-01-12 GNAT Script <nobody@gnat.com>
41325
41326 * Make-lang.in: Makefile automatically updated
41327
41328 2004-01-09 Mark Mitchell <mark@codesourcery.com>
41329
41330 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
41331
41332 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41333
41334 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
41335
41336 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
41337
41338 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
41339 Update comment and copyright date.
41340 * stamp-xgnatug: Delete.
41341
41342 2004-01-05 Robert Dewar <dewar@gnat.com>
41343
41344 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
41345 be modified by the binder generated main program if the -D switch is
41346 used.
41347
41348 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
41349 imported functions (since now we expect this to be done for imported
41350 functions)
41351
41352 * 5vtaprop.adb: Add several ??? for sections requiring more comments
41353 Minor reformatting throughout
41354
41355 * 5zinit.adb: Minor reformatting
41356 Add 2004 to copyright date
41357 Minor changes to avoid -gnatwa warnings
41358 Correct some instances of using OR instead of OR ELSE (noted while
41359 doing reformatting)
41360
41361 * sprint.adb: Minor updates to avoid -gnatwa warnings
41362
41363 * s-secsta.ads, s-secsta.adb:
41364 (SS_Get_Max): New function to obtain high water mark for ss stack
41365 Default_Secondary_Stack is not a constant since it may be modified by
41366 the binder generated main program if the -D switch is used.
41367
41368 * switch-b.adb: New -Dnnn switch for binder
41369
41370 * switch-c.adb:
41371 Make -gnatg imply all warnings currently in -gnatwa
41372
41373 * vms_conv.adb: Minor reformatting
41374 Add 2004 to copyright notice
41375 Add 2004 to printed copyright notice
41376
41377 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
41378 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
41379 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
41380 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
41381 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
41382 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
41383 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
41384 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
41385 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
41386 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
41387 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
41388 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
41389 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
41390 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
41391 checks.adb, clean.adb, cstand.adb, einfo.ads,
41392 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
41393 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
41394 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
41395 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
41396 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
41397 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
41398 Minor reformatting and code clean ups.
41399 Minor changes to prevent -gnatwa warnings
41400
41401 * ali.adb: Minor reformatting and cleanup of code
41402 Acquire new SS indication of secondary stack use from ali files
41403
41404 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
41405 (since now we expect this to be done for imported functions)
41406
41407 * bindgen.adb: Generate call to modify default secondary stack size if
41408 -Dnnn switch given
41409
41410 * bindusg.adb: Add line for new -D switch
41411
41412 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
41413 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
41414 Add circuitry for both records and arrays to avoid gigi
41415 processing if the type involved has non-bit-aligned components
41416
41417 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
41418 N_String_Literal node always references an E_String_Literal_Subtype
41419 entity. This may not be true in the future.
41420 (Possible_Bit_Aligned_Component): Move processing of
41421 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
41422
41423 * exp_ch6.adb (Expand_Thread_Body): Pick up
41424 Default_Secondary_Stack_Size as variable so that we get value modified
41425 by possible -Dnnn binder parameter.
41426
41427 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
41428 (Type_May_Have_Bit_Aligned_Components): New function.
41429
41430 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
41431 (Type_May_Have_Bit_Aligned_Components): New function.
41432
41433 * fe.h: (Set_Identifier_Casing): Fix prototype.
41434 Add declaration for Sem_Elim.Eliminate_Error_Msg.
41435 Minor reformatting.
41436
41437 * freeze.adb (Freeze_Entity): Add RM reference to error message about
41438 importing constant atomic/volatile objects.
41439 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
41440 unless explicit Pure_Function pragma given, to avoid insidious bug of
41441 call to non-pure imported function getting eliminated.
41442
41443 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
41444 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
41445 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
41446 Add 2004 to printed copyright notice
41447
41448 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
41449 stack used.
41450
41451 * Makefile.rtl: Add entry for g-sestin.o
41452 g-sestin.ads: New file.
41453
41454 * mdll.adb: Minor changes to avoid -gnatwa warnings
41455
41456 * mlib-tgt.adb: Minor reformatting
41457
41458 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
41459 New switch Sec_Stack_Used (GNAT, GNATBIND)
41460 Make Default_Secondary_Stack_Size a variable instead of a constant,
41461 so that it can be modified by the new -Dnnn bind switch.
41462
41463 * rtsfind.adb (Load_Fail): Give full error message in configurable
41464 run-time mode if all_errors mode is set. This was not done in the case
41465 of a file not found, which was an oversight.
41466 Note if secondary stack unit is used by compiler.
41467
41468 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
41469 ineffective elaborate all pragmas on non-visible packages (this
41470 happened when a renamed subprogram was called). Now the elaborate all
41471 always goes on the package containing the renaming rather than the one
41472 containing the renamed subprogram.
41473
41474 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
41475 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
41476
41477 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
41478 has an Etype that references an E_String_Literal.
41479 (Eval_String_Literal): Avoid assumption that N_String_Literal node
41480 always references an E_String_Literal_Subtype entity. This may not
41481 be true in the future.
41482
41483 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
41484 pragma location.
41485
41486 * sem_res.adb (Resolve): Specialize msg for function name used in proc
41487 call.
41488
41489 2004-01-05 Ed Falis <falis@gnat.com>
41490
41491 * g-debuti.adb: Replaced direct boolean operator with short-circuit
41492 form.
41493
41494 2004-01-05 Vincent Celier <celier@gnat.com>
41495
41496 * bld.adb: Minor comment updates
41497 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
41498 of Item_Name).
41499
41500 * make.adb (Gnatmake): Special process for files to compile/check when
41501 -B is specified. Fail when there are only foreign mains in attribute
41502 Main of the project file and -B is not specified. Do not skip bind/link
41503 steps when -B is specified.
41504
41505 * makeusg.adb: Document new switch -B
41506
41507 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
41508
41509 * switch-m.adb: (Scan_Make_Switches): Process -B switch
41510
41511 * vms_data.ads: Add new GNAT PRETTY qualifier
41512 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
41513
41514 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41515
41516 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
41517 case.
41518
41519 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
41520 Set_Identifier_Casing.
41521
41522 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
41523 has size that overflows.
41524
41525 2004-01-05 Gary Dismukes <dismukes@gnat.com>
41526
41527 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
41528 -gnatwa warning on static condition.
41529
41530 2004-01-05 Doug Rupp <rupp@gnat.com>
41531
41532 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
41533
41534 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
41535
41536 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
41537 all attributes, including read-only attribute.
41538
41539 2004-01-05 Pascal Obry <obry@gnat.com>
41540
41541 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
41542 library naming scheme.
41543
41544 * mlib-prj.adb (Build_Library): Generate different names for the static
41545 or dynamic version of the GNAT runtime. This is needed to support the
41546 new shared library naming scheme.
41547 (Process_Binder_File): Add detection of shared library in binder file
41548 based on the new naming scheme.
41549
41550 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
41551 scheme for the shared runtime libraries.
41552
41553 * Makefile.in:
41554 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
41555 scheme.
41556 (install-gnatlib): Do not create symlinks for shared libraries.
41557 (gnatlib-shared-default): Idem.
41558 (gnatlib-shared-dual-win32): New target. Not used for now as the
41559 auto-import feature does not support arrays/records.
41560 (gnatlib-shared-win32): Do not create copy for the shared libraries.
41561 (gnatlib-shared-vms): Fix shared runtime libraries names.
41562
41563 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
41564 dependent runtime shared library name.
41565
41566 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
41567
41568 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
41569 than the object.
41570
41571 2004-01-05 Ed Schonberg <schonberg@gnat.com>
41572
41573 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
41574 protected objects when allocator has a subtype indication, not a
41575 qualified expression. Note that qualified expressions may have to be
41576 checked when limited aggregates are implemented.
41577
41578 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
41579 pure, emit warning.
41580 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
41581 subprogram is imported, remove warning.
41582
41583 2004-01-05 Geert Bosch <bosch@gnat.com>
41584
41585 * s-poosiz.adb: Update copyright notice.
41586 (Allocate): Use Task_Lock to protect against concurrent access.
41587 (Deallocate): Likewise.
41588
41589 2004-01-05 Joel Brobecker <brobecker@gnat.com>
41590
41591 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
41592 comment.
41593
41594 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
41595
41596 * gnat_ug.texi: Force a CVS commit by updating copyright.
41597 * gnat_ug_vxw.texi: Regenerate.
41598 * gnat_ug_wnt.texi: Regenerate.
41599 * gnat_ug_vms.texi: Regenerate.
41600 * gnat_ug_unx.texi: Regenerate.
41601
41602 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
41603
41604 * trans.c: Remove uses of "register" specifier in
41605 declarations of local variables.
41606
41607 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
41608
41609 * stamp-xgnatug: New stamp file.
41610 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
41611 (ada/doctools/xgnatug): Add $(build_exeext).
41612 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
41613 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
41614
41615 2003-12-17 Ed Falis <falis@gnat.com>
41616
41617 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
41618 eliminate warning.
41619
41620 * a-exextr.adb: Add context clause for
41621 Ada.Exceptions.Last_Chance_Handler.
41622
41623 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
41624
41625 * cstand.adb (Create_Standard): Change the way how the declaration of
41626 the Duration type is created (making it the same way as it is for all
41627 the other standard types).
41628
41629 2003-12-17 Robert Dewar <dewar@gnat.com>
41630
41631 * s-crtl.ads: Fix header format
41632 Change Pure to Preelaborate
41633
41634 2003-12-17 Ed Schonberg <schonberg@gnat.com>
41635
41636 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
41637 the expression type only if it is declared in the current unit.
41638
41639 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
41640 are universal and already analyzed, as can occur in constrained
41641 subcomponents that depend on discriminants, when one constraint is a
41642 subtype mark.
41643
41644 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
41645 type Any_Fixed is legal as the argument of a conversion, if only one
41646 fixed-point type is in context.
41647
41648 2003-12-17 GNAT Script <nobody@gnat.com>
41649
41650 * Make-lang.in: Makefile automatically updated
41651
41652 2003-12-15 Robert Dewar <dewar@gnat.com>
41653
41654 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
41655 sec stack size.
41656
41657 2003-12-15 Vincent Celier <celier@gnat.com>
41658
41659 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
41660 (Gnatchop): Do not set failure status when reporting the number of
41661 warnings.
41662
41663 2003-12-15 Doug Rupp <rupp@gnat.com>
41664
41665 * s-ctrl.ads: New file.
41666
41667 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
41668
41669 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
41670 (GNATBIND_OBJS): Add ada/s-crtl.o.
41671
41672 * Makefile.in [VMS]: Clean up ifeq rules.
41673
41674 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
41675 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
41676 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
41677 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
41678 s-tasdeb.adb: Update copyright.
41679 Import System.CRTL.
41680 Make minor modifications to use System.CRTL declared functions instead
41681 of importing locally.
41682
41683 2003-12-15 GNAT Script <nobody@gnat.com>
41684
41685 * Make-lang.in: Makefile automatically updated
41686
41687 2003-12-11 Ed Falis <falis@gnat.com>
41688
41689 * 5zinit.adb: Clean up.
41690
41691 * 5zintman.adb (Notify_Exception): replaced case statement with a call
41692 to __gnat_map_signal, imported from init.c to support
41693 signal -> exception mappings that depend on the vxWorks version.
41694
41695 * init.c:
41696 Created and exported __gnat_map_signal to support signal -> exception
41697 mapping that is dependent on the VxWorks version.
41698 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
41699
41700 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
41701
41702 * 5wosinte.ads: Link with -mthreads switch.
41703
41704 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
41705
41706 * init.c (__gnat_install_handler [NetBSD]): Set
41707 __gnat_handler_installed, as done on all other platforms.
41708 Remove duplicated code.
41709
41710 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
41711
41712 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
41713
41714 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
41715
41716 * sinfo.ads: Fix inconsistent example code in comment.
41717
41718 2003-12-11 Robert Dewar <dewar@gnat.com>
41719
41720 * a-tiinau.adb: Add a couple of comments
41721
41722 * sem_ch3.adb: Minor reformatting
41723
41724 * sem_prag.adb:
41725 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
41726 Minor reformatting throughout
41727
41728 2003-12-11 Ed Schonberg <schonberg@gnat.com>
41729
41730 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
41731 bounds of a loop, create a separate block in order to generate proper
41732 cleanup actions to prevent memory leaks.
41733
41734 * sem_res.adb (Resolve_Call): After a call to
41735 Establish_Transient_Scope, the call may be rewritten and relocated, in
41736 which case no further processing is needed.
41737
41738 * sem_util.adb: (Wrong_Type): Refine previous fix.
41739 Fixes ACATS regressions.
41740
41741 PR ada/13353
41742 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
41743 be inlined.
41744
41745 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
41746
41747 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
41748 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
41749 obsolete files.
41750
41751 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
41752 (rts-zfp): Ditto.
41753
41754 2003-12-08 Robert Dewar <dewar@gnat.com>
41755
41756 * 7sintman.adb: Minor reformatting
41757
41758 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
41759 standard linker options to get standard libraries linked. We now plan
41760 to provide dummy versions of these libraries to match the appropriate
41761 configurable run-time (e.g. if a library is not needed at all, provide
41762 a dummy empty library).
41763
41764 * targparm.ads: Configurable_Run_Time mode no longer affects linker
41765 options (-L parameters and standard libraries). What we plan to do is
41766 to provide dummy libraries where the libraries are not required.
41767
41768 * gnatbind.adb: Minor comment improvement
41769
41770 2003-12-08 Javier Miranda <miranda@gnat.com>
41771
41772 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
41773 aggregate in the parent. Otherwise constants with limited aggregates
41774 are not supported. Add new formal to pass the component type (Ctype).
41775 It is required to call the corresponding IP subprogram in case of
41776 default initialized components.
41777 (Gen_Assign): In case of default-initialized component, generate a
41778 call to the IP subprogram associated with the component.
41779 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
41780 of aggregate with default initialized components.
41781 (Has_Default_Init_Comps): Improve implementation to recursively check
41782 all the present expressions.
41783
41784 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
41785 to indicate that the initialization call corresponds to a
41786 default-initialized component of an aggregate.
41787 In case of default initialized aggregate with tasks this parameter is
41788 used to generate a null string (this is just a workaround that must be
41789 improved later). In case of discriminants, this parameter is used to
41790 generate a selected component node that gives access to the discriminant
41791 value.
41792
41793 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
41794 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
41795 allocated aggregates with default-initialized components.
41796
41797 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
41798 the box notation is used in positional aggregates.
41799
41800 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
41801
41802 * lib.ads: Fix typo in comment
41803
41804 2003-12-08 Vincent Celier <celier@gnat.com>
41805
41806 * prj.adb (Project_Empty): New component Unkept_Comments
41807 (Scan): Remove procedure; moved to Prj.Err.
41808
41809 * prj.ads (Project_Data): New Boolean component Unkept_Comments
41810 (Scan): Remove procedure; moved to Prj.Err.
41811
41812 * prj-dect.adb: Manage comments for the different declarations.
41813
41814 * prj-part.adb (With_Record): New component Node
41815 (Parse): New Boolean parameter Store_Comments, defaulted to False.
41816 Set the scanner to return ends of line and comments as tokens, if
41817 Store_Comments is True.
41818 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
41819 comments are associated with these nodes. Store the node IDs in the
41820 With_Records.
41821 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
41822 With_Records.
41823 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
41824 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
41825 current project. Call Tree.Restore afterwards. Set the various nodes
41826 for comment storage (Next_End, End_Of_Line, Previous_Line,
41827 Previous_End).
41828
41829 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
41830 defaulted to False.
41831
41832 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
41833 to False. When Truncated is True, truncate the string, never go to the
41834 next line.
41835 (Write_End_Of_Line_Comment): New procedure
41836 (Print): Process comments for nodes N_With_Clause,
41837 N_Package_Declaration, N_String_Type_Declaration,
41838 N_Attribute_Declaration, N_Typed_Variable_Declaration,
41839 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
41840 Process nodes N_Comment.
41841
41842 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
41843 without comments and there are some comments, set the flag
41844 Unkept_Comments to True.
41845 (Scan): If there are comments, set the flag Unkept_Comments to True and
41846 clear the comments.
41847 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
41848 (Next_End_Nodes: New table
41849 (Comment_Zones_Of): New function
41850 (Scan): New procedure; moved from Prj. Accumulate comments in the
41851 Comments table and set end of line comments, comments after, after end
41852 and before end.
41853 (Add_Comments): New procedure
41854 (Save, Restore, Seset_State): New procedures
41855 (There_Are_Unkept_Comments): New function
41856 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
41857 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
41858 procedures.
41859 (First_Comment_After, First_Comment_After_End): New functions
41860 (First_Comment_Before, First_Comment_Before_End): New functions
41861 (Next_Comment): New function
41862 (End_Of_Line_Comment, Follows_Empty_Line,
41863 Is_Followed_By_Empty_Line): New functions
41864 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
41865 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
41866 (Set_Next_Comment): New procedure
41867 (Default_Project_Node): Associate comment before if the node can store
41868 comments.
41869
41870 * scans.ads (Token_Type): New enumeration value Tok_Comment
41871 (Comment_Id): New global variable
41872
41873 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
41874 defaulted to False.
41875 (Scan): Store position of start of comment. If comments are tokens, set
41876 Comment_Id and set Token to Tok_Comment when scanning a comment.
41877 (Set_Comment_As_Token): New procedure
41878
41879 * sinput-p.adb: Update Copyright notice
41880 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
41881 that no longer exists.
41882
41883 2003-12-08 Javier Miranda <miranda@gnat.com>
41884
41885 * sem_aggr.adb: Add dependence on Exp_Tss package
41886 Correct typo in comment
41887 (Resolve_Aggregate): In case of array aggregates set the estimated
41888 type of the aggregate before calling resolve. This is needed to know
41889 the name of the corresponding IP in case of limited array aggregates.
41890 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
41891 in case of default initialized array components.
41892
41893 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
41894 types. Required to give support to limited aggregates in generic
41895 formals.
41896
41897 2003-12-08 Ed Schonberg <schonberg@gnat.com>
41898
41899 * sem_ch3.adb (Check_Initialization): For legality purposes, an
41900 inlined body functions like an instantiation.
41901 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
41902 until bounds are analyzed, to diagnose premature use of type.
41903
41904 * sem_util.adb (Wrong_Type): Improve error message when the type of
41905 the expression is used prematurely.
41906
41907 2003-12-08 GNAT Script <nobody@gnat.com>
41908
41909 * Make-lang.in: Makefile automatically updated
41910
41911 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
41912
41913 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
41914 they are automatically generated by Make-lang.in and cause nothing but
41915 maintenance troubles.
41916
41917 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
41918
41919 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
41920 version of this unit).
41921
41922 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
41923
41924 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
41925 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
41926 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
41927 the body of System.Interrupt_Management common to several targets.
41928 Update copyright notice when appropriate.
41929
41930 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
41931 constant.
41932
41933 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
41934 to ensure that the kernel fills in the interrupted context structure
41935 before calling a signal handler, which is necessary to be able to
41936 unwind past it. Update the copyright notice.
41937
41938 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
41939
41940 * a-elchha.ads: New file.
41941
41942 * a-elchha.adb: New default last chance handler. Contents taken from
41943 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
41944
41945 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
41946 is moved to a-elchha.adb to provide a target-independent default last
41947 chance handler.
41948
41949 * Makefile.rtl: Add a-elchha.o
41950
41951 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
41952
41953 2003-12-05 Ed Schonberg <schonberg@gnat.com>
41954
41955 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
41956 declared in an instance, do not inline the call if the instance is not
41957 frozen yet, to prevent order of elaboration problems.
41958
41959 * sem_prag.adb: Add comments for previous fix.
41960
41961 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
41962
41963 * g-table.adb: Use the right variable in Set_Item.
41964 Update copyright notice.
41965
41966 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
41967
41968 * Makefile.in: Remove unused rules.
41969
41970 2003-12-05 Vincent Celier <celier@gnat.com>
41971
41972 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
41973 -nostdlib. Not needed here after all.
41974
41975 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
41976
41977 PR ada/11724
41978 * adaint.h, adaint.c, g-os_lib.ads:
41979 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
41980 on some platforms (including FreeBSD), it is a 64 bit value.
41981 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
41982
41983 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
41984
41985 * gnatvsn.ads (Library_Version): Now contain only the relevant
41986 version info.
41987 (Verbose_Library_Version): New constant.
41988
41989 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
41990 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
41991 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
41992
41993 * gnatlbr.adb: Clean up: replace Library_Version by
41994 Verbose_Library_Version.
41995
41996 * make.adb, lib-writ.adb, exp_attr.adb:
41997 Clean up: replace Library_Version by Verbose_Library_Version.
41998
41999 * 5lintman.adb: Removed.
42000
42001 * Makefile.in:
42002 Update and simplify computation of LIBRARY_VERSION.
42003 Fix computation of GSMATCH_VERSION.
42004 5lintman.adb is no longer used: replaced by 7sintman.adb.
42005
42006 2003-12-03 Robert Dewar <dewar@gnat.com>
42007
42008 * exp_ch5.adb:
42009 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
42010 name. Modified to consider small non-bit-packed arrays as troublesome
42011 and in need of component-by-component assigment expansion.
42012
42013 2003-12-03 Vincent Celier <celier@gnat.com>
42014
42015 * lang-specs.h: Process nostdlib as nostdinc
42016
42017 * back_end.adb: Update Copyright notice
42018 (Scan_Compiler_Arguments): Process -nostdlib directly.
42019
42020 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
42021
42022 * Makefile.in:
42023 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
42024 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
42025 included in HIE_NONE_TARGET_PAIRS.
42026
42027 2003-12-03 Ed Schonberg <schonberg@gnat.com>
42028
42029 * sem_attr.adb:
42030 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
42031 is legal in an instance, because legality is cheched in the template.
42032
42033 * sem_prag.adb:
42034 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
42035 appplied to an unchecked conversion of a formal parameter.
42036
42037 * sem_warn.adb:
42038 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
42039 variables.
42040
42041 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
42042
42043 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
42044 routines. The second one is new functionality to deal with backtracing
42045 through signal handlers.
42046 (unwind): Split into the two separate subroutines above.
42047 Update the documentation, and deal properly with sizeof (REG) different
42048 from sizeof (void*).
42049
42050 2003-12-01 Nicolas Setton <setton@act-europe.fr>
42051
42052 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
42053 so that the debugger can reliably access the value of the parameter,
42054 and therefore is able to display the exception name when an exception
42055 breakpoint is reached.
42056
42057 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
42058
42059 * fmap.adb: Fix typo in warning message.
42060
42061 * g-socket.ads, g-socket.adb: Make Free a visible instance of
42062 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
42063
42064 2003-12-01 Vincent Celier <celier@gnat.com>
42065
42066 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
42067 ther is no Afile.
42068 (Build_Library): Get the switches only if Default_Switches is declared
42069 in package Binder.
42070
42071 2003-12-01 Ed Schonberg <schonberg@gnat.com>
42072
42073 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
42074 actuals that are indexed components, reanalyze actual to ensure that
42075 packed array references are properly expanded.
42076
42077 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
42078 attempted assignment to a discriminant.
42079
42080 2003-12-01 Robert Dewar <dewar@gnat.com>
42081
42082 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
42083 reformatting.
42084
42085 * switch-c.adb: Minor reformatting of comments
42086
42087 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
42088
42089 * Makefile.in: Clean ups.
42090
42091 2003-12-01 GNAT Script <nobody@gnat.com>
42092
42093 * Make-lang.in: Makefile automatically updated
42094
42095 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
42096
42097 * 5wsystem.ads: Disable zero cost exception, not ready yet.
42098
42099 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
42100
42101 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
42102 to force serialization.
42103
42104 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
42105
42106 * g-socket.ads, g-socket.adb:
42107 Clarify documentation of function Stream. Introduce a Free procedure
42108 to release the returned Stream once it becomes unused.
42109
42110 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
42111
42112 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
42113
42114 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
42115 since NT 4 cannot handle timeout values that are too large,
42116 e.g. DWORD'Last - 1.
42117
42118 2003-11-26 Ed Schonberg <schonberg@gnat.com>
42119
42120 * exp_ch4.adb:
42121 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
42122 in procedure calls and whose expansion must be deferred.
42123
42124 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
42125 is in exp_ch4.
42126
42127 * sem_ch3.adb:
42128 (Build_Derived_Array_Type): Create operator for unconstrained type
42129 if ancestor is unconstrained.
42130
42131 2003-11-26 Vincent Celier <celier@gnat.com>
42132
42133 * make.adb (Project_Object_Directory): New global variable
42134 (Change_To_Object_Directory): New procedure
42135 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
42136 of Change_Dir directly. Do not change working directory to object
42137 directory of main project after each compilation.
42138 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
42139 directly.
42140 Change to object directory of main project before binding step.
42141 (Initialize): Initialize Project_Object_Directory to No_Project
42142
42143 * mlib-prj.adb:
42144 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
42145 binding a Stand-Alone Library.
42146
42147 * output.adb: Update Copyright notice
42148 (Write_Char): Output buffer when full
42149
42150 2003-11-26 Robert Dewar <dewar@gnat.com>
42151
42152 * sem_ch13.adb: (Check_Size): Reset size if size is too small
42153
42154 * sem_ch13.ads:
42155 (Check_Size): Fix documentation to include bit-packed array case
42156
42157 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
42158
42159 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
42160
42161 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
42162
42163 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
42164
42165 PR ada/13142
42166 * utils.c (init_gigi_decls): Change name of built-in setjmp to
42167 __builtin_setjmp, since this is apparently needed by recent
42168 non Ada changes.
42169
42170 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42171
42172 * adadecode.c: Only include ctype.h if not IN_GCC.
42173 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
42174
42175 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
42176
42177 * Makefile.in:
42178 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
42179 signals and interrupts.
42180
42181 * 5zintman.ads: New File.
42182
42183 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
42184 add exception signals to the set of unmasked signals.
42185
42186 * 5ztaprop.adb:
42187 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
42188 between signals and interrupts.
42189 Add to Unblocked_Signal_Mask the set of signals that are in
42190 Keep_Unmasked.
42191
42192 * 7sinmaop.adb:
42193 Adding a check to see whether the Interrupt_ID we want to unmask is in
42194 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
42195 reason is that the index type of the Keep_Unmasked array is not always
42196 Interrupt_ID; it may be a subtype of Interrupt_ID.
42197
42198 2003-11-24 Gary Dismukes <dismukes@gnat.com>
42199
42200 * exp_util.adb:
42201 (Remove_Side_Effects): Condition constantness of object created for a
42202 an unchecked type conversion on the constantness of the expression
42203 to ensure the correct value for 'Constrained when passing components
42204 of view-converted class-wide objects.
42205
42206 2003-11-24 Robert Dewar <dewar@gnat.com>
42207
42208 * par-load.adb (Load): Improve handling of misspelled and missing units
42209 Removes several cases of compilation abandoned messages
42210
42211 * lib.adb: (Remove_Unit): New procedure
42212
42213 * lib.ads: (Remove_Unit): New procedure
42214
42215 * lib-load.adb: Minor reformatting
42216
42217 2003-11-24 Vincent Celier <celier@gnat.com>
42218
42219 * make.adb:
42220 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
42221 (Marking_Label): Label to mark processed source files. Incremented for
42222 each executable.
42223 (Gnatmake): Increase Marking_Labet for each executable
42224 (Is_Marked): Compare against marking label
42225 (Mark): Mark with marking label
42226
42227 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
42228
42229 * s-thread.ads:
42230 Move the declaration of the TSD for System.Threads to System.Soft_Links.
42231 Add some comments.
42232
42233 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
42234 (rts-cert): build a single relocatable object for the run-time lib.
42235 Fix perms.
42236
42237 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
42238
42239 * Make-lang.in:
42240 Use gnatls rather than gcc to obtain the location of GNAT RTL for
42241 crosstools build.
42242
42243 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
42244
42245 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
42246 can not use it as before (that is, as a variable) when dumping it into
42247 the tree file. Add a local variable to store the result of this
42248 function and to be used as the string to be written into the tree.
42249
42250 * scn.adb (Initialize_Scanner): Add comments explaining the recent
42251 changes.
42252
42253 * sinput.adb (Source_First, Source_Last): In case of
42254 Internal_Source_File, replace returning attributes of
42255 Internal_Source_Ptr (which is wrong) with returning attributes of
42256 Internal_Source.
42257
42258 2003-11-24 Ed Schonberg <schonberg@gnat.com>
42259
42260 * sem_ch3.adb:
42261 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
42262 used for implicit concatenation operators.
42263 Code cleanup.
42264
42265 * sem_elab.adb:
42266 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
42267 task bodies that are in the scope of a Suppress pragma.
42268 (Check_A Call): Use the flag to prevent spurious elaboration checks.
42269
42270 * sinfo.ads, sinfo.adb:
42271 New flag No_Elaboration_Check on function/procedure calls, to properly
42272 suppress checks on calls in task bodies that are within a local suppress
42273 pragma.
42274
42275 * exp_ch4.adb:
42276 (Expand_Concatenate_Other): Use the proper integer type for the
42277 expression for the upper bound, to avoid universal_integer computations
42278 when possible.
42279
42280 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
42281
42282 * .cvsignore: Delete.
42283
42284 2003-11-21 Andreas Schwab <schwab@suse.de>
42285
42286 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
42287
42288 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
42289
42290 * 5wsystem.ads: Enable zero cost exception.
42291
42292 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
42293
42294 * 5ztiitho.adb: Remove an unreferenced variable.
42295
42296 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
42297
42298 * adaint.c: For FreeBSD, use mkstemp.
42299
42300 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
42301
42302 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
42303
42304 2003-11-21 Robert Dewar <dewar@gnat.com>
42305
42306 * bld.adb: Remove useless USE of gnatvsn
42307
42308 * gnatchop.adb: Minor reformatting
42309 Clean up version handling to be more consistent
42310
42311 * gnatxref.adb: Minor reformatting
42312
42313 * gprcmd.adb: Minor reformatting
42314 Fix output of copyright to be more consistent with other tools
42315
42316 2003-11-21 Vincent Celier <celier@gnat.com>
42317
42318 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
42319
42320 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
42321
42322 * atree.adb (Initialize): Add initializations for global variables
42323 used in New_Copy_Tree.
42324
42325 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
42326 Internal_Source_File as the actual).
42327 Put the set of statements creating Any_Character before the set of
42328 statements creating Any_Array to have Any_Character fully initialized
42329 when it is used in creating Any_Array.
42330
42331 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
42332 not call Scan in case if the actual is Internal_Source_File
42333 Add 2003 to copyright note.
42334
42335 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
42336 processing Internal_Source_File.
42337
42338 * types.ads: Add the constant Internal_Source_File representing the
42339 source buffer for artificial source-code-like strings created within
42340 the compiler (the definition of Source_File_Index is changed).
42341
42342 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
42343
42344 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
42345 56system.ads: New file, FreeBSD version.
42346
42347 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
42348
42349 * Make-lang.in (ada.extraclean): Delete.
42350
42351 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
42352
42353 * gnatmem.adb: Clean up verbose output.
42354
42355 * gprcmd.adb: Change copyright to FSF.
42356
42357 2003-11-19 Vincent Celier <celier@gnat.com>
42358
42359 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
42360 and Version (ignored).
42361
42362 * symbols.ads: (Policy): New type
42363 (Initialize): New parameter Reference, Symbol_Policy and
42364 Library_Version.
42365 Remove parameter Force.
42366 Minor reformatting.
42367
42368 * snames.ads, snames.adbadb: New standard names
42369 Library_Reference_Symbol_File and Library_Symbol_Policy
42370
42371 * mlib-prj.adb:
42372 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
42373 project.
42374
42375 * mlib-tgt.adb:
42376 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
42377
42378 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
42379
42380 * prj.adb: (Project_Empty): New component Symbol_Data
42381
42382 * prj.ads: (Policy, Symbol_Record): New types
42383 (Project_Data): New component Symbol_Data
42384
42385 * prj-attr.adb:
42386 New attributes Library_Symbol_File, Library_Symbol_Policy and
42387 Library_Reference_Symbol_File.
42388
42389 * prj-nmsc.adb:
42390 (Ada_Check): When project is a Stand-Alone library project, process
42391 attribute Library_Symbol_File, Library_Symbol_Policy and
42392 Library_Reference_Symbol_File.
42393
42394 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
42395 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
42396 5sml-tgt.adb (Build_Dynamic_Library): New parameter
42397 Symbol_Data (ignored).
42398
42399 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
42400 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
42401 functions Option_File_Name and Version_String. Set new options of
42402 gnatsym related to symbol file, symbol policy and reference symbol
42403 file.
42404
42405 * 5vsymbol.adb:
42406 Extensive modifications to take into account the reference symbol file,
42407 the symbol policy, the library version and to put in the symbol file the
42408 minor and major IDs.
42409
42410 * bld.adb (Process_Declarative_Items): Put second argument of
42411 gprcmd to_absolute between single quotes, to avoid problems with
42412 Windows.
42413
42414 * bld-io.adb: Update Copyright notice.
42415 (Flush): Remove last character of a line, if it is a back slash, to
42416 avoid make problems.
42417
42418 * gnatsym.adb:
42419 Implement new scheme with reference symbol file and symbol policy.
42420
42421 * g-os_lib.ads: (Is_Directory): Clarify comment
42422
42423 2003-11-19 Robert Dewar <dewar@gnat.com>
42424
42425 * atree.adb: Move New_Copy_Tree global variables to head of package
42426
42427 * errout.adb: Minor reformatting
42428
42429 2003-11-19 Javier Miranda <miranda@gnat.com>
42430
42431 * sem_ch4.adb: (Diagnose_Call): Improve error message.
42432 Add reference to Ada0Y (AI-50217)
42433
42434 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
42435 sem_util.adb: Add reference to AI-50217
42436
42437 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
42438
42439 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
42440
42441 * sem_aggr.adb: Complete documentation of AI-287 changes
42442
42443 * par-ch4.adb: Document previous changes.
42444
42445 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
42446 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
42447 Ada0Y (AI-50217)
42448
42449 * exp_aggr.adb: Add references to AI-287 in previous changes
42450
42451 2003-11-19 Ed Schonberg <schonberg@gnat.com>
42452
42453 * exp_ch6.adb:
42454 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
42455 in the rewriting is the result of an inlined call.
42456
42457 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
42458 parameter is a type conversion, use original node to construct the
42459 post-call assignment, because expression may have been rewritten, e.g.
42460 if it is a packed array.
42461
42462 * sem_attr.adb:
42463 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
42464 body, just as it is in an instance.
42465 Categorization routines
42466
42467 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
42468 Instantiate_Object): Set proper sloc reference for message on missing
42469 actual.
42470
42471 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
42472
42473 * Makefile.in: Add FreeBSD libgnat pairs.
42474
42475 * usage.adb: Fix typo in usage message.
42476
42477 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
42478
42479 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
42480 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
42481 pragma Thread_Body.
42482 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
42483
42484 * s-thread.adb: This file is now a dummy implementation of
42485 System.Thread.
42486
42487 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
42488
42489 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
42490
42491 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
42492
42493 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
42494 instanciation references in the parent type description.
42495
42496 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42497
42498 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
42499
42500 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
42501 TYPE_PRECISION directly from esize.
42502
42503 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
42504
42505 * cstreams.c:
42506 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
42507
42508 * init.c: Initialization routines for FreeBSD
42509
42510 * link.c: Link info for FreeBSD
42511
42512 * sysdep.c: Add the case of FreeBSD
42513
42514 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
42515
42516 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
42517 already called in System.Threads.
42518
42519 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
42520 environment task, as it has been moved to System.Threads.Initialization.
42521
42522 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
42523
42524 * adaint.c (__gnatlib_install_locks): Only reference
42525 __gnat_install_locks on VMS, since other platforms can avoid using
42526 --enable-threads=gnat
42527
42528 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42529
42530 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
42531
42532 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
42533 TYPE_PACKED_ARRAY_TYPE_P.
42534 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
42535
42536 Part of PR ada/12806
42537 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
42538 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
42539
42540 2003-11-17 Vincent Celier <celier@gnat.com>
42541
42542 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
42543 to False.
42544 Do not set exit status to Failure when Warning is True.
42545 (Gnatchop): Make errors "no compilation units found" and
42546 "no source files written" warnings only.
42547
42548 * make.adb (Gnatmake): When using a project file, set
42549 Look_In_Primary_Dir to False.
42550 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
42551 and Local_Configuration_Pragmas in the project where they are declared
42552 not an extending project which might have inherited them.
42553
42554 * osint.adb (Locate_File): If Name is already an absolute path, do not
42555 look for a directory.
42556
42557 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
42558 -gnats (Check_Syntax) is used, issue only a warning, not an error.
42559
42560 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
42561 in objects of type Variable_Value.
42562
42563 * prj.ads: (Variable_Value): New component Project
42564
42565 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
42566 is in a project extended by Project.
42567
42568 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
42569 Project of Variable_Values to this new parameter value.
42570 (Expression): Set component Project of Variable_Values.
42571 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
42572 Set the component Project in array elements.
42573
42574 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
42575
42576 * errout.adb: (Initialize): Add initialization for error nodes.
42577
42578 * sem_ch12.adb (Initialize): Add missing initializations for
42579 Exchanged_Views and Hidden_Entities.
42580
42581 2003-11-17 Ed Schonberg <schonberg@gnat.com>
42582
42583 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
42584 already instantiated tree for use in subsequent inlining.
42585 (Analyze_Associations, Instantiate_Formal_Subprogram,
42586 Instantiate_Object): improve error message for mismatch in
42587 instantiations.
42588
42589 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
42590 instantiations of subprograms declared in instances.
42591
42592 2003-11-17 Javier Miranda <miranda@gnat.com>
42593
42594 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
42595 executed only under the Extensions_Allowed flag.
42596
42597 2003-11-17 Robert Dewar <dewar@gnat.com>
42598
42599 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
42600 zeroes suppressed.
42601 (Address_Image): Fix bug of returning 0x instead of 0x0
42602 Minor reformatting (function specs).
42603
42604 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
42605 (missed case of 33-63)
42606
42607 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
42608
42609 * s-thread.adb: Add comments for pragma Restriction
42610
42611 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
42612 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
42613
42614 2003-11-17 Ed Falis <falis@gnat.com>
42615
42616 * s-thread.adb: Added No_Tasking restriction for this implementation.
42617
42618 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
42619
42620 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
42621 instanciation references in the parent type description.
42622
42623 2003-11-17 GNAT Script <nobody@gnat.com>
42624
42625 * Make-lang.in: Makefile automatically updated
42626
42627 2003-11-16 Jason Merrill <jason@redhat.com>
42628
42629 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
42630 and TAGS files that include them for each front end.
42631
42632 2003-11-14 Andreas Jaeger <aj@suse.de>
42633
42634 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
42635 is the canonical version.
42636 * misc.c (gnat_handle_option): Likewise.
42637
42638 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
42639
42640 * 5nsystem.ads: New file for x86_64-linux-gnu.
42641
42642 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
42643
42644 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
42645
42646 * comperr.adb: Fix logic in previous change.
42647
42648 2003-11-13 Vincent Celier <celier@gnat.com>
42649
42650 * 5bml-tgt.adb (Build_Dynamic_Library): Use
42651 Osint.Include_Dir_Default_Prefix instead of
42652 Sdefault.Include_Dir_Default_Name.
42653
42654 * gnatlbr.adb: Update Copyright notice
42655 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
42656 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
42657 instead of Sdefault.Object_Dir_Default_Name
42658
42659 * gnatlink.adb:
42660 (Process_Binder_File): Never suppress the option following -Xlinker
42661
42662 * mdll-utl.adb:
42663 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
42664 Sdefault.Object_Dir_Default_Name.
42665
42666 * osint.ads, osint.adb:
42667 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
42668 Minor reformatting.
42669
42670 * vms_conv.ads: Minor reformating
42671 Remove GNAT STANDARD and GNAT PSTA
42672
42673 * vms_conv.adb:
42674 Allow GNAT MAKE to have several files on the command line.
42675 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
42676 Sdefault.Object_Dir_Default_Name.
42677 Minor Reformating
42678 Remove data for GNAT STANDARD
42679
42680 * vms_data.ads:
42681 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
42682 Remove data for GNAT STANDARD
42683 Remove options and documentation for -gnatwb/-gnatwB: these warning
42684 options no longer exist.
42685
42686 2003-11-13 Ed Falis <falis@gnat.com>
42687
42688 * 5zthrini.adb: (Init_RTS): Made visible
42689
42690 * 5zthrini.adb:
42691 (Register): Removed unnecessary call to taskVarGet that checked whether
42692 an ATSD was already set as a task var for the argument thread.
42693
42694 * s-thread.adb:
42695 Updated comment to reflect that this is a VxWorks version
42696 Added context clause for System.Threads.Initialization
42697 Added call to System.Threads.Initialization.Init_RTS
42698
42699 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
42700
42701 * 5zthrini.adb:
42702 (Init_RTS): New procedure, for the initialization of the run-time lib.
42703
42704 * s-thread.adb:
42705 Remove dependancy on System.Init, so that this file can be used in the
42706 AE653 sequential run-time lib.
42707
42708 2003-11-13 Robert Dewar <dewar@gnat.com>
42709
42710 * bindgen.adb: Minor reformatting
42711
42712 2003-11-13 Ed Schonberg <schonberg@gnat.com>
42713
42714 * checks.adb:
42715 (Apply_Discriminant_Check): Do no apply check if target type is derived
42716 from source type with no applicable constraint.
42717
42718 * lib-writ.adb:
42719 (Ensure_System_Dependency): Do not apply the style checks that may have
42720 been specified for the main unit.
42721
42722 * sem_ch8.adb:
42723 (Find_Selected_Component): Further improvement in error message, with
42724 RM reference.
42725
42726 * sem_res.adb:
42727 (Resolve): Handle properly the case of an illegal overloaded protected
42728 procedure.
42729
42730 2003-11-13 Javier Miranda <miranda@gnat.com>
42731
42732 * exp_aggr.adb:
42733 (Has_Default_Init_Comps): New function to check the presence of
42734 default initialization in an aggregate.
42735 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
42736 extension aggregate of a limited record. In addition, a new formal
42737 was added to do not initialize the record controller (if any) during
42738 this recursive expansion of ancestors.
42739 (Init_Controller): Add support for limited record components.
42740 (Expand_Record_Aggregate): In case of default initialized components
42741 convert the aggregate into a set of assignments.
42742
42743 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
42744 describing the new syntax.
42745 Nothing else needed to be done because this subprogram delegates part of
42746 its work to P_Precord_Or_Array_Component_Association.
42747 (P_Record_Or_Array_Component_Association): Give support to the new
42748 syntax for default initialization of components.
42749
42750 * sem_aggr.adb:
42751 (Resolve_Aggregate): Relax the strictness of the frontend in case of
42752 limited aggregates.
42753 (Resolve_Record_Aggregate): Give support to default initialized
42754 components.
42755 (Get_Value): In case of default initialized components, duplicate
42756 the corresponding default expression (from the record type
42757 declaration). In case of default initialization in the *others*
42758 choice, do not check that all components have the same type.
42759 (Resolve_Extension_Aggregate): Give support to limited extension
42760 aggregates.
42761
42762 * sem_ch3.adb:
42763 (Check_Initialization): Relax the strictness of the front-end in case
42764 of aggregate and extension aggregates. This test is now done in
42765 Get_Value in a per-component manner.
42766
42767 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
42768 expression corresponds to a limited aggregate. This test is now done
42769 in Get_Value.
42770
42771 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
42772 Box_Present flag.
42773
42774 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
42775 present in an N_Component_Association node
42776
42777 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
42778
42779 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
42780 type-conformant entry only if they are homographs.
42781
42782 2003-11-13 GNAT Script <nobody@gnat.com>
42783
42784 * Make-lang.in: Makefile automatically updated
42785
42786 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42787
42788 * adadecode.c: Use <> form of include for ctype.h.
42789 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
42790
42791 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42792
42793 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
42794 Works around PR middle-end/6552.
42795
42796 2003-11-10 Ed Falis <falis@gnat.com>
42797
42798 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
42799
42800 * 5zinit.adb: (Install_Handler): Moved back to spec
42801 (Install_Signal_Handlers): Deleted
42802
42803 * 5zthrini.adb: Added context clause for System.Storage_Elements
42804 (Register): Only handles creation of taskVar; initialization moved to
42805 Thread_Body_Enter.
42806 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
42807 Added declaration of environment task secondary stack and
42808 initialization.
42809
42810 * s-thread.adb: Implement bodies for thread body processing
42811
42812 * s-thread.ads:
42813 Added comment identifying supported targets for pragma Thread_Body.
42814
42815 2003-11-10 Pascal Obry <obry@gnat.com>
42816
42817 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
42818 GNAT_MAX_PATH_LEN.
42819
42820 * s-fileio.adb:
42821 (Open): Properly check for string length before copying into the buffer.
42822 Raises Name_Error if buffer is too small. Note that this was a potential
42823 buffer overflow.
42824
42825 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
42826
42827 * bindgen.adb, comperr.adb: Code clean ups.
42828 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
42829
42830 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
42831
42832 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
42833
42834 2003-11-10 Vincent Celier <celier@gnat.com>
42835
42836 * gprcmd.adb:
42837 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
42838 installation.
42839
42840 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
42841
42842 * prj.adb: (Project_Empty): Add new boolean component Virtual
42843
42844 * prj.ads: (Virtual_Prefix): New constant string
42845 (Project_Data): New boolean component Virtual
42846
42847 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
42848 a library project is extended by a virtual extending project.
42849
42850 * prj-part.adb:
42851 Modifications throughout to implement extending-all project, including:
42852 (Virtual_Hash, Processed_Hash): New hash tables
42853 (Create_Virtual_Extending_Project): New procedure
42854 (Look_For_Virtual_Projects_For): New procedure
42855
42856 * prj-proc.adb:
42857 (Process): After checking the projects, if main project is an
42858 extending-all project, set the object directory of all virtual extending
42859 project to the object directory of the main project.
42860 Adjust error message when a virtual extending project has the same
42861 object directory as an project being extended.
42862 (Recursive_Process): If name starts with the virtual prefix, set Virtual
42863 to True in the project data.
42864
42865 * prj-tree.adb:
42866 (Default_Project_Node): Add new boolean component Extending_All
42867 (Is_Extending_All): New function
42868 (Set_Is_Extending_All): New procedure
42869
42870 * prj-tree.ads: (Is_Extending_All): New function
42871 (Set_Is_Extending_All): New procedure
42872 (Project_Node_Record): New boolean component Extending_All
42873
42874 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
42875
42876 * vms_data.ads:
42877 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
42878
42879 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
42880 "gprcmd prefix" to define it.
42881
42882 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
42883
42884 * einfo.ads: Fix a typo and remove an extraneous word in comments.
42885
42886 * lib-load.adb:
42887 (Create_Dummy_Package_Unit): Set the scope of the entity for the
42888 created dummy package to Standard_Standard, not to itself, to
42889 defend other parts of the front-end against encoutering a cycle in
42890 the scope chain.
42891
42892 * sem_ch10.adb:
42893 (Analyze_With_Clause): When setting the entities for the successive
42894 N_Expanded_Names that constitute the name of a child unit, do not
42895 attempt to go further than Standard_Standard in the chain of scopes.
42896 This case arises from the placeholder units created by
42897 Create_Dummy_Package_Unit in the case of a with_clause for a
42898 nonexistent child unit.
42899
42900 2003-11-10 Ed Schonberg <schonberg@gnat.com>
42901
42902 * exp_ch6.adb:
42903 (Expand_Thread_Body): Place subprogram on scope stack, so that new
42904 declarations are given the proper scope.
42905
42906 * sem_ch13.adb:
42907 (Check_Expr_Constants): Reject an expression that contains a constant
42908 created during expansion, and that appears after the object to which
42909 the address clause applies.
42910
42911 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
42912 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
42913 that uses 'Range of a function call with controlled components, so
42914 that the function result can be finalized before starting the loop.
42915
42916 * sem_ch8.adb:
42917 (Find_Selected_Component): Improve error message when prefix is
42918 an implicit dereference of an incomplete type.
42919
42920 2003-11-10 Robert Dewar <dewar@gnat.com>
42921
42922 * opt.ads: New Print_Standard flag for -gnatS switch
42923
42924 * sem_ch13.adb: Remove some additional checks for unaligned arrays
42925
42926 * cstand.adb (Create_Standard): Print out package standard if -gnatS
42927 switch set
42928
42929 * debug.adb: Update doc for -gnatds to discuss relationship with new
42930 -gnatS flag
42931
42932 * sinfo.adb: Add new field Entity_Or_Associated_Node
42933
42934 * sinfo.ads: Add new field Entity_Or_Associated_Node
42935 Update documentation for Associated_Node and Entity fields to clarify
42936 relationship and usage.
42937
42938 * sprint.adb:
42939 (Write_Id): Properly process Associated_Node field in generic template
42940
42941 * switch-c.adb:
42942 Recognize new -gnatS switch for printing package Standard
42943 This replaces gnatpsta
42944
42945 * usage.adb:
42946 Add line for new -gnatS switch for printing package Standard
42947 This replaces gnatpsta
42948
42949 2003-11-10 Andreas Jaeger <aj@suse.de>
42950
42951 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
42952 integer.
42953
42954 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42955
42956 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
42957 by gnat1.
42958
42959 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42960
42961 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
42962 no longer needed.
42963
42964 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
42965
42966 * sysdep.c: Add handling of cygwin.
42967
42968 2003-11-10 GNAT Script <nobody@gnat.com>
42969
42970 * Make-lang.in: Makefile automatically updated
42971
42972 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42973
42974 PR 12950
42975 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
42976 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
42977 Replace GNAT_ROOT by GCC_ROOT.
42978
42979 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
42980
42981 2003-11-06 Zack Weinberg <zack@codesourcery.com>
42982
42983 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
42984 and update for changed meaning of GET_MODE_BITSIZE.
42985
42986 2003-11-04 Doug Rupp <rupp@gnat.com>
42987
42988 * sysdep.c: Problem discovered during IA64 VMS port.
42989 [VMS] #include <unixio.h> to get proper prototypes.
42990
42991 * adaint.c:
42992 Issues discovered/problems fixed during IA64 VMS port.
42993 [VMS] #define _POSIX_EXIT for proper semantics.
42994 [VMS] #include <unixio.h> for proper prototypes.
42995 [VMS] (fork): #define IA64 version.
42996 (__gnat_os_exit): Remove unnecessary VMS specific code.
42997
42998 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42999
43000 Part of PR ada/12806
43001 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
43002 tree, not integer.
43003
43004 * decl.c:
43005 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
43006 not integer.
43007
43008 * targtyps.c, decl.c, misc.c,
43009 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
43010 routines to work around change in FP sizing semantics in GCC.
43011
43012 * utils.c:
43013 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
43014
43015 * gigi.h: (enumerate_modes): New function.
43016
43017 * Make-lang.in: (ada/misc.o): Add real.h.
43018
43019 * misc.c: (enumerate_modes): New function.
43020
43021 2003-11-04 Robert Dewar <dewar@gnat.com>
43022
43023 * 3vtrasym.adb: Minor reformatting
43024 Use terminology encoded/decoded name, rather than C++ specific notion
43025 of mangling (this is the terminology used throughout GNAT).
43026
43027 * einfo.h: Regenerated
43028
43029 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
43030
43031 * exp_ch6.adb:
43032 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
43033
43034 * par-prag.adb: Add dummy entry for Thread_Body pragma
43035
43036 * rtsfind.ads:
43037 Add entries for System.Threads entities for thread body processing
43038
43039 * sem_attr.adb:
43040 (Analyze_Pragma, Access attributes): Check these are not applied to a
43041 thread body, since this is not permitted
43042
43043 * sem_prag.adb: Add processing for Thread_Body pragma.
43044 Minor comment fix.
43045
43046 * sem_res.adb:
43047 (Resolve_Call): Check for incorrect attempt to call a thread body
43048 procedure with a direct call.
43049
43050 * snames.ads, snames.adb: Add entry for Thread_Body pragma
43051 Add names associated with thread body expansion
43052
43053 * snames.h: Add entry for Thread_Body pragma
43054
43055 * s-thread.adb: Add entries for thread body processing
43056 These are dummy bodies so far
43057
43058 * s-thread.ads: Add documentation on thread body handling.
43059 Add entries for thread body processing.
43060
43061 2003-11-04 Javier Miranda <miranda@gnat.com>
43062
43063 * sem_ch10.adb:
43064 (Build_Limited_Views): Return after posting an error in case of limited
43065 with_clause on subprograms, generics, instances or generic renamings
43066 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
43067 on subprograms, generics, instances or generic renamings
43068
43069 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
43070
43071 * raise.c (setup_to_install): Correct mistake in last revision; two
43072 arguments out of order.
43073
43074 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
43075 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
43076 notice, missed in previous change.
43077 Remove trailing blanks and other style errors introduced in previous
43078 change.
43079
43080 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
43081
43082 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
43083 rid of the wrapper for a LJM type, ensuring we don't do that if the
43084 field is addressable. This avoids potential low level type view
43085 mismatches later on, for instance in a by-reference argument passing
43086 process.
43087
43088 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43089
43090 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
43091 aligned at byte boundary.
43092
43093 2003-11-04 Joel Brobecker <brobecker@gnat.com>
43094
43095 * decl.c (components_to_record): Do not delete the empty variants from
43096 the end of the union type.
43097
43098 2003-11-04 Ed Schonberg <schonberg@gnat.com>
43099
43100 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
43101 operation for a derived type, an explicit declaration may use a local
43102 subtype of Boolean.
43103
43104 2003-11-04 Vincent Celier <celier@gnat.com>
43105
43106 * make.adb (Gnatmake): Allow main sources on the command line with a
43107 library project when it is only for compilation (no binding or
43108 linking).
43109
43110 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43111
43112 * Makefile.in: Remove many duplicate variables.
43113
43114 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
43115
43116 * Make-lang.in (dvi): Move targets to $(docobjdir).
43117 (gnat_ug_vms.dvi): Simplify rule and adjust target.
43118 (gnat_ug_wnt.dvi): Likewise.
43119 (gnat_ug_unx.dvi): Likewise.
43120 (gnat_ug_vxw.dvi): Likewise.
43121 (gnat_rm.dvi): Likewise.
43122 (gnat-style.dvi): Likewise.
43123
43124 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
43125
43126 * gigi.h: Missed commit from update for C90.
43127
43128 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
43129
43130 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
43131
43132 2003-10-31 Andreas Schwab <schwab@suse.de>
43133
43134 * raise.c (get_action_description_for): Fix typo in last change.
43135
43136 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
43137
43138 PR ada/12761
43139 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
43140 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
43141
43142 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
43143
43144 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
43145 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
43146 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
43147 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
43148 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
43149
43150 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
43151
43152 * 3vtrasym.adb:
43153 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
43154 numbers when symbol name is too long.
43155
43156 2003-10-30 Ed Falis <falis@gnat.com>
43157
43158 * g-signal.ads, g-signal.adb: New files
43159
43160 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
43161
43162 * Makefile.rtl: Introduce GNAT.Signals
43163
43164 2003-10-30 Robert Dewar <dewar@gnat.com>
43165
43166 * freeze.adb: Minor reformatting
43167
43168 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
43169
43170 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
43171 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
43172 New handling of Id_Check parameter to improve recognition of keywords
43173 used as identifiers.
43174 Update copyright notice to include 2003
43175
43176 2003-10-29 Robert Dewar <dewar@gnat.com>
43177
43178 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
43179 sem_ch10.adb: Minor reformatting
43180
43181 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
43182 (Expand_Assign_Record): Test right hand side for bit unaligned as well
43183
43184 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
43185
43186 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
43187 Support for TBK$SYMBOLIZE-based symbolic traceback.
43188
43189 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
43190
43191 * exp_disp.adb:
43192 Revert previous change, that did not work well when pragma No_Run_Time
43193 was used in conjunction with a run-time other than ZFP.
43194
43195 2003-10-29 Vincent Celier <celier@gnat.com>
43196
43197 * make.adb:
43198 (Gnatmake): When there are no Ada mains in attribute Main, disable the
43199 bind and link steps only is switch -z is not used.
43200
43201 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
43202
43203 * Makefile.generic: Remove duplicated setting of CC.
43204
43205 * Makefile.prolog: Set CC to gcc by default, to override make's
43206 default (cc).
43207
43208 * einfo.h: Regenerated.
43209
43210 2003-10-29 Ed Schonberg <schonberg@gnat.com>
43211
43212 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
43213 current body, after compiling subunit.
43214
43215 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
43216 when in deleted code, because gigi needs properly ordered freeze
43217 actions to annotate types.
43218
43219 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
43220 prevent the premature freezing of record type that contains
43221 subcomponents with a private type that does not yet have a completion.
43222
43223 2003-10-29 Javier Miranda <miranda@gnat.com>
43224
43225 * sem_ch12.adb:
43226 (Analyze_Package_Instantiation): Check that instances can not be used in
43227 limited with_clauses.
43228
43229 * sem_ch8.adb:
43230 (Analyze_Package_Renaming): Check that limited withed packages cannot
43231 be renamed. Improve text on error messages related to limited
43232 with_clauses.
43233
43234 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
43235
43236 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
43237 Update copyright notice.
43238
43239 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
43240 (Install_Limited_Context_Clauses): New subprogram that isolates all the
43241 checks required for limited context_clauses and installs the limited
43242 view.
43243 (Install_Limited_Withed_Unit): Complete its documentation.
43244 (Analyze_Context): Check that limited with_clauses are only allowed in
43245 package specs.
43246 (Install_Context): Call Install_Limited_Context_Clauses after the
43247 parents have been installed.
43248 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
43249 package as 'From_With_Type'; this mark indicates that the limited view
43250 is installed. Used to check bad usages of limited with_clauses.
43251 (Build_Limited_Views): Do not add shadow entities to the scope's list
43252 of entities. Do not add real entities to the Non_Limited_Views chain.
43253 Improve error notification.
43254 (Remove_Context_Clauses): Remove context clauses in two phases:
43255 limited views first and regular views later (to maintain the
43256 stack model).
43257 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
43258 its visible entities.
43259
43260 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
43261
43262 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
43263 with any type that Is_Fixed_Point_Type.
43264
43265 * sinfo.ads: Fix documentation for Associated_Node attribute.
43266
43267 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
43268
43269 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
43270 both '-gnatc' and '-gnatt' are specified.
43271
43272 * atree.adb (Initialize): Add initialization for Node_Count (set to
43273 zero).
43274
43275 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43276
43277 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
43278 do not consider as Pure.
43279
43280 Part of implementation of function-at-a-time:
43281
43282 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
43283 (tree_transform): Add new argument to build_component_ref.
43284 (tree_transform, case N_Assignment_Statement): Make and return an
43285 EXPR_STMT.
43286 (tree_transform): If result IS_STMT, set flags and return it.
43287 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
43288
43289 * utils2.c (build_simple_component_ref, build_component_ref): Add new
43290 arg, NO_FOLD_P.
43291 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
43292 (build_allocator): Likewise.
43293
43294 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
43295 Add new arg to build_component_ref.
43296 (maybe_unconstrained_array, unchecked_convert): Likewise.
43297
43298 * ada-tree.def (EXPR_STMT): New code.
43299
43300 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
43301
43302 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
43303 build_component_ref calls.
43304
43305 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
43306
43307 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
43308 (build_component_ref): Add new argument, NO_FOLD_P.
43309
43310 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
43311
43312 * Makefile.generic: Add missing substitution on object_deps handling.
43313
43314 PR ada/5909
43315 * Make-lang.in (check-ada): Enable ACATS test suite.
43316
43317 2003-10-27 Robert Dewar <dewar@gnat.com>
43318
43319 * exp_ch3.adb:
43320 (Freeze_Array_Type): We do not need an initialization routine for types
43321 derived from String or Wide_String. They should be treated the same
43322 as String and Wide_String themselves. This caused problems with the
43323 use of Initialize_Scalars.
43324
43325 * exp_ch5.adb:
43326 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
43327 composites. This allows use of component clauses that are not byte
43328 aligned.
43329
43330 * sem_prag.adb:
43331 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
43332 is an attempt to pack an array of atomic objects.
43333
43334 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
43335
43336 2003-10-27 Pascal Obry <obry@gnat.com>
43337
43338 * g-dirope.adb:
43339 (Basename): Check for drive letters in a pathname only on DOS based OS.
43340
43341 2003-10-27 Vincent Celier <celier@gnat.com>
43342
43343 * make.adb:
43344 (Gnatmake): When unable to change dir to the object dir, display the
43345 content of the parent dir of the obj dir, to try to understand why this
43346 happens.
43347
43348 2003-10-27 GNAT Script <nobody@gnat.com>
43349
43350 * Make-lang.in: Makefile automatically updated
43351
43352 2003-10-27 Ed Schonberg <schonberg@gnat.com>
43353
43354 * sem_ch12.adb:
43355 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
43356 should not be done in Save/Restore_Scope_Stack, because it is performed
43357 locally.
43358
43359 * sem_ch8.adb:
43360 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
43361 whether use clauses should be removed/restored.
43362
43363 * sem_ch8.ads:
43364 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
43365 whether use clauses should be removed/restored.
43366
43367 2003-10-26 Andreas Jaeger <aj@suse.de>
43368
43369 * Makefile.in: Remove duplicated lines.
43370
43371 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
43372
43373 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
43374 minimize the differences with ACT tree.
43375
43376 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
43377 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
43378 Gnatvsn.Gnat_Static_Version_String to reduce differences between
43379 ACT and FSF trees.
43380
43381 2003-10-24 Pascal Obry <obry@gnat.com>
43382
43383 PR ada/12014
43384 * adadecode.c (ostrcpy): New function.
43385 (__gnat_decode): Use ostrcpy of strcpy.
43386 (has_prefix): Set first parameter a const.
43387 (has_suffix): Set first parameter a const.
43388 Update copyright notice. Fix source name in header.
43389 Removes a trailing space.
43390
43391 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
43392
43393 * exp_disp.adb:
43394 Remove the test against being in No_Run_Time_Mode before generating a
43395 call to Register_Tag. It is redundant with the test against the
43396 availability of the function Register_Tag.
43397
43398 2003-10-24 Vincent Celier <celier@gnat.com>
43399
43400 * g-catiio.adb: (Month_Name): Correct spelling of February
43401
43402 * make.adb: (Mains): New package
43403 (Initialize): Call Mains.Delete
43404 (Gnatmake): Check that each main on the command line is a source of a
43405 project file and, if there are several mains, each of them is a source
43406 of the same project file.
43407 (Gnatmake): When a foreign language is specified in attribute Languages,
43408 no main is specified on the command line and attribute Mains is not
43409 empty, only build the Ada main. If there is no Ada main, just compile
43410 the Ada sources and their closure.
43411 (Gnatmake): If a main is specified on the command line with directory
43412 information, check that the source exists and, if it does, that the path
43413 is the actual path of a source of a project.
43414
43415 * prj-env.adb:
43416 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
43417 Full_Path is True, return the full path instead of the simple file name.
43418 (Project_Of): New function
43419
43420 * prj-env.ads:
43421 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
43422 defaulted to False.
43423 (Project_Of): New function
43424
43425 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
43426
43427 * Makefile.generic:
43428 Ensure objects of main project are always checked and rebuilt if needed.
43429 Set CC to gcc by default.
43430 Prepare new handling of link by creating a global archive (not activated
43431 yet).
43432
43433 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
43434 stringt.h: Update copyright notice. Remove trailing blanks.
43435 Fix source name in header.
43436
43437 2003-10-24 Robert Dewar <dewar@gnat.com>
43438
43439 * sem_ch12.adb: Minor reformatting
43440
43441 * sem_ch3.adb:
43442 Minor reformatting (including new function return style throughout)
43443
43444 * sem_ch3.ads:
43445 Minor reformatting (including new function return style throughout)
43446
43447 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
43448
43449 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
43450 stringt.h: Update copyright notice. Remove trailing blanks.
43451 Fix source name in header.
43452
43453 2003-10-24 GNAT Script <nobody@gnat.com>
43454
43455 * Make-lang.in: Makefile automatically updated
43456
43457 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
43458
43459 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
43460 stringt.h: Convert to ISO C90 declarations and definitions.
43461
43462 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
43463
43464 PR ada/11978
43465 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
43466 External_Tag attribute definition clauses.
43467
43468 2003-10-23 Ed Schonberg <schonberg@gnat.com>
43469
43470 PR ada/7613
43471 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
43472 child unit, generate a fully qualified name to avoid spurious errors
43473 when the context contains renamings of different child units with
43474 the same simple name.
43475
43476 * exp_dbug.ads: Add documentation on name qualification for renamings
43477 of child units.
43478
43479 2003-10-23 Robert Dewar <dewar@gnat.com>
43480
43481 * g-regpat.ads, g-regpat.adb: Minor reformatting
43482
43483 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
43484
43485 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
43486
43487 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43488
43489 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
43490 Machine call.
43491
43492 * urealp.h: (Machine): Update to proper definition.
43493
43494 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
43495
43496 * init.c, adaint.c: Minor reformatting.
43497
43498 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
43499
43500 * adaint.c (w32_epoch_offset): Define static const at file level.
43501 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
43502 rather than t_create, t_access in call to GetFileTime. Use union
43503 to convert between FILETIME and unsigned long long.
43504 (__gnat_file_time_name): Test for invalid file handle.
43505 (__gnat_set_filetime_name): Support win32 targets using
43506 w32api SetFileTime.
43507
43508 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
43509
43510 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
43511
43512 * ctrl_c.c (__gnat_int_handler): Remove declaration.
43513
43514 * decl.c (creat_concat_name): Const-ify prefix.
43515
43516 * adaint.c: Include ctype.h if __MINGW32__.
43517 (__gnat_readlink): Mark arguments as possibly unused.
43518 (__gnat_symlink): Likewise.
43519 (__gnat_is_symbolic_link): Likewise.
43520 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
43521 declaration
43522 (__gnat_file_time_name): Don't declare struct stat statbuf when
43523 not needed.
43524 (__gnat_is_absolute_path): Add parenthesis around condition of
43525 'if' statement to avoid warning.
43526 (__gnat_plist_init): Specify void as parameter.
43527 (plist_enter): Likewise.
43528 (plist_leave): Likewise.
43529 (remove_handle): Make static. Initialize prev.
43530
43531 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
43532
43533 PR ada/10110
43534 * Makefile.in: Disable build of gnatpsta.
43535 * cstreams.c (__gnat_full_name): Minor improvements and clean up
43536 of previous change.
43537
43538 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43539
43540 * tracebak.c (MAX): Avoid redefinition warning.
43541
43542 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
43543 Change msg to const char *.
43544 (__gnat_install_handler): Remove ss, unused.
43545 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
43546 to const char *.
43547 * cstreams.c (__gnat_full_name): Declare p only when used.
43548 (__gnat_full_name) [sgi] Return buffer.
43549
43550 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
43551
43552 * mingw32.h: New file.
43553 * gnat_wrapper.adb: New file.
43554
43555 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
43556
43557 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
43558 string match a pre compiled regular expression (the corresponding
43559 version of the function working on a raw regular expression)
43560 Fix typos in various comments
43561 Update copyright notice in spec
43562
43563 2003-10-21 Gary Dismukes <dismukes@gnat.com>
43564
43565 * exp_ch3.adb:
43566 (Component_Needs_Simple_Initialization): Return False when the type is a
43567 packed bit array. Revise spec comments to document this case.
43568
43569 * exp_prag.adb:
43570 (Expand_Pragma_Import): Set any expression on the imported object to
43571 empty to avoid initializing imported objects (in particular this
43572 covers the case of zero-initialization of bit arrays).
43573 Update copyright notice.
43574
43575 2003-10-21 Ed Schonberg <schonberg@gnat.com>
43576
43577 * sem_ch12.adb:
43578 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
43579 a subunit is missing.
43580 (Instantiate_Subprogram_Body): If body of function is missing, set type
43581 of return expression explicitly in dummy body, to prevent cascaded
43582 errors when a subunit is missing.
43583 Fixes PR 5677.
43584
43585 * sem_ch3.adb:
43586 (Access_Subprogram_Declaration): Verify that return type is valid.
43587 Fixes PR 8693.
43588
43589 * sem_elab.adb:
43590 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
43591 generic.
43592 Fixes PR 12318.
43593
43594 * sem_util.adb:
43595 (Corresponding_Discriminant): If the scope of the discriminant is a
43596 private type without discriminant, use its full view.
43597 Fixes PR 8247.
43598
43599 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
43600
43601 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
43602 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
43603 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
43604 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
43605 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
43606 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
43607 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
43608 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
43609 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
43610 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
43611 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
43612 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
43613 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
43614 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
43615 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
43616 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
43617 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
43618 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
43619 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
43620 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
43621 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
43622 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
43623 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
43624 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
43625 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
43626 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
43627 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
43628 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
43629 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
43630 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
43631 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
43632 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
43633 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
43634 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
43635 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
43636 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
43637 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
43638 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
43639 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
43640 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
43641 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
43642 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
43643 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
43644 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
43645 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
43646 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
43647 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
43648 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
43649 vms_conv.ads, vms_conv.adb, vms_data.ads,
43650 vxaddr2line.adb: Files added. Merge with ACT tree.
43651
43652 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
43653 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
43654 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
43655 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
43656 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
43657 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
43658 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43659 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
43660 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
43661 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
43662
43663 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43664 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43665 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43666 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43667 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
43668 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
43669 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43670 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
43671 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
43672 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
43673 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
43674 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
43675 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
43676 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
43677 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
43678 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
43679 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
43680 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43681 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
43682 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
43683 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
43684 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
43685 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
43686 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
43687 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
43688 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
43689 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
43690 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
43691 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
43692 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
43693 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
43694 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
43695 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
43696 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
43697 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
43698 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
43699 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
43700 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
43701 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
43702 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
43703 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
43704 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
43705 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
43706 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
43707 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
43708 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
43709 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
43710 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
43711 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
43712 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
43713 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
43714 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
43715 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
43716 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
43717 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
43718 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
43719 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
43720 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
43721 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
43722 checks.adb, checks.ads, cio.c, comperr.adb,
43723 comperr.ads, csets.adb, cstand.adb, cstreams.c,
43724 debug_a.adb, debug_a.ads, debug.adb, decl.c,
43725 einfo.adb, einfo.ads, errout.adb, errout.ads,
43726 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
43727 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
43728 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
43729 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
43730 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
43731 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
43732 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
43733 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
43734 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
43735 fe.h, fmap.adb, fmap.ads, fname.adb,
43736 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
43737 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
43738 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
43739 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43740 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43741 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43742 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
43743 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
43744 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
43745 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
43746 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
43747 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
43748 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
43749 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
43750 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
43751 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
43752 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
43753 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
43754 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
43755 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
43756 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
43757 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
43758 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
43759 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
43760 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
43761 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
43762 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
43763 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
43764 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
43765 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
43766 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
43767 layout.adb, lib.adb, lib.ads, lib-list.adb,
43768 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
43769 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43770 link.c, live.adb, make.adb, make.ads,
43771 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
43772 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
43773 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
43774 misc.c, mkdir.c, mlib.adb, mlib.ads,
43775 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
43776 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
43777 namet.adb, namet.ads, namet.h, nlists.ads,
43778 nlists.h, nmake.adt, opt.adb, opt.ads,
43779 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
43780 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
43781 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43782 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
43783 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
43784 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
43785 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
43786 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
43787 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
43788 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
43789 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
43790 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
43791 prj-util.adb, prj-util.ads, raise.c, raise.h,
43792 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
43793 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
43794 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
43795 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
43796 scans.ads, scn.adb, scn.ads, s-crc32.adb,
43797 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
43798 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
43799 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
43800 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
43801 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
43802 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43803 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43804 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
43805 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
43806 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
43807 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
43808 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
43809 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
43810 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
43811 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43812 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
43813 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
43814 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
43815 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
43816 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
43817 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
43818 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
43819 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
43820 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
43821 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
43822 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
43823 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
43824 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
43825 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
43826 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
43827 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
43828 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
43829 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
43830 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
43831 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
43832 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
43833 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
43834 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
43835 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
43836 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
43837 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
43838 stringt.adb, stringt.ads, stringt.h, style.ads,
43839 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
43840 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
43841 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
43842 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
43843 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
43844 table.adb, table.ads, targparm.adb, targparm.ads,
43845 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
43846 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
43847 ttypes.ads, types.ads, types.h, uintp.adb,
43848 uintp.ads, uintp.h, uname.adb, urealp.adb,
43849 urealp.ads, urealp.h, usage.adb, utils2.c,
43850 utils.c, validsw.adb, validsw.ads, widechar.adb,
43851 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
43852 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
43853 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
43854 gnatvsn.ads: Merge with ACT tree.
43855
43856 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
43857
43858 2003-10-20 Mark Mitchell <mark@codesourcery.com>
43859
43860 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
43861 (gnat_ug_vmx.info): Likewise.
43862 (gnat_ug_vxw.info): Likewise.
43863 (gnat_ug_wnt.info): Likewise.
43864 (gnat_rm.info): Likewise.
43865 (gnat-style.info): Likewise.
43866
43867 * Make-lang.in (ada.install-info): Remove target.
43868 (info): New target.
43869 (install-info): Likewise.
43870 (gnat_ug_unx.info): Simplify rule.
43871 (gnat_ug_vmx.info): Likewise.
43872 (gnat_ug_vxw.info): Likewise.
43873 (gnat_ug_wnt.info): Likewise.
43874 (gnat_rm.info): Likewise.
43875 (gnat-style.info): Likewise.
43876
43877 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
43878
43879 * Make-lang.in: Replace uses of $(target_alias) with
43880 $(target_noncanonical).
43881 * ada/Makefile.in: Remove unused mention of $(target_alias).
43882
43883 2003-10-06 Mark Mitchell <mark@codesourcery.com>
43884
43885 * Make-lang.in (ada.info): Replace with ...
43886 (info): ... this.
43887 (ada.dvi): Replace with ...
43888 (dvi): ... this.
43889
43890 2003-09-29 Zack Weinberg <zack@codesourcery.com>
43891
43892 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
43893 initialize dconstp5 and dconstmp5.
43894
43895 2003-09-28 Richard Henderson <rth@redhat.com>
43896
43897 * trans.c (tree_transform): Update call to expand_asm_operands.
43898
43899 2003-09-21 Richard Henderson <rth@redhat.com>
43900
43901 * trans.c, utils.c: Revert.
43902
43903 2003-09-21 Richard Henderson <rth@redhat.com>
43904
43905 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
43906 change to const.
43907
43908 2003-09-04 Michael Matz <matz@suse.de>
43909
43910 * misc.c: Include "target.h".
43911 * Make-lang.in (misc.o): Add dependency on target.h.
43912
43913 2003-09-03 DJ Delorie <dj@redhat.com>
43914
43915 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
43916 hook.
43917
43918 2003-08-30 Zack Weinberg <zack@codesourcery.com>
43919
43920 * Makefile.in: Update substitutions to match changes to
43921 configure. Use include directives instead of @-insertions
43922 to read in host and target fragments. Add a rule to
43923 regenerate ada/Makefile.
43924
43925 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
43926
43927 * lang-options.h: Remove.
43928 * lang.opt: Add help text.
43929
43930 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
43931
43932 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
43933 calls.
43934
43935 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
43936
43937 * misc.c (gnat_handle_option): Don't handle filenames.
43938
43939 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
43940
43941 * Make-lang.in: Replace PWD with PWD_COMMAND.
43942 * Makefile.adalib: Likewise.
43943 * Makefile.in: Likewise.
43944
43945 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
43946
43947 * misc.c (gnat_argv): Revert last change.
43948 (gnat_handle_option, gnat_init_options): Copy arguments.
43949
43950 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
43951
43952 * misc.c (gnat_argv): Make const.
43953
43954 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
43955
43956 * misc.c (save_argc, save_argv): Keep non-static!
43957
43958 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
43959
43960 * misc.c (save_argc, save_argv): Make static.
43961 (gnat_init_options): New prototype.
43962 (gnat_init_options): Update.
43963
43964 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
43965
43966 * gnat_ug.texi: Remove unlikely characters from @vars.
43967 * gnat_ug_vms.texi: Regenerate.
43968
43969 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
43970
43971 * misc.c (record_code_position): Adjust emit_note call.
43972
43973 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
43974
43975 * misc.c (gnat_handle_option): Don't check for missing arguments.
43976
43977 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
43978
43979 * utils.c (end_subprog_body): Adjust expand_function_end call.
43980
43981 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
43982
43983 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
43984 Bind_Main_Program.
43985
43986 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
43987
43988 * lang.opt: Declare Ada.
43989 * misc.c (gnat_init_options): Update.
43990
43991 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
43992
43993 * utils.c (begin_subprog_body): Adjust init_function_start call.
43994
43995 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
43996
43997 * Make-lang.in: Update to use options.c and options.h.
43998 * misc.c: Include options.h not aoptions.h.
43999 (gnat_handle_option): Abort on unrecognized switch.
44000 (gnat_init_options): Request Ada switches.
44001
44002 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
44003
44004 * lang.opt: Add -Wall.
44005 * misc.c (gnat_handle_option): Handle it.
44006
44007 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
44008
44009 * misc.c (gnat_handle_option): Fix warnings.
44010
44011 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
44012
44013 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
44014
44015 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
44016
44017 * Make-lang.in: Update to handle command-line options.
44018 * lang.opt: New file.
44019 * misc.c: Include aoptions.h.
44020 (cl_options_count, cl_options): Remove.
44021 (gnat_handle_option): New.
44022 (gnat_decode_option): Remove.
44023 (LANG_HOOKS_DECODE_OPTION): Remove.
44024 (LANG_HOOKS_HANDLE_OPTION): Override.
44025
44026 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
44027
44028 * init.c, misc.c, trans.c, utils.c: Remove dead code.
44029
44030 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
44031
44032 * Makefile.in: Replace "host_canonical" with "host" for autoconf
44033 substitution.
44034
44035 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
44036
44037 * Make-lang.in: Update.
44038 * misc.c: Include opts.h. Define cl_options_count and cl_options.
44039
44040 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
44041
44042 * misc.c (gnat_init_options): Update.
44043
44044 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
44045
44046 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
44047 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
44048 __attribute__ ((__unused__)).
44049
44050 2003-06-05 Jan Hubicka <jh@suse.cz>
44051
44052 * Make-lang.in: Add support for stageprofile and stagefeedback
44053
44054 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
44055
44056 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
44057 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
44058
44059 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
44060
44061 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
44062 Remove non-VMS directive.
44063 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
44064 alternatives.
44065 (Examples of gnatls Usage): Remove VMS alternative.
44066
44067 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
44068
44069 PR ada/9953
44070 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
44071 and turn ZCX_By_Default back to False since the underlying support
44072 is not quite there yet.
44073
44074 2003-06-01 Andreas Jaeger <aj@suse.de>
44075
44076 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
44077 and ROUND_TYPE_SIZE_UNIT.
44078
44079 2003-05-22 Geert Bosch <bosch@gnat.com>
44080
44081 * gnat_rm.texi : Remove reference to Ada Core Technologies.
44082
44083 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
44084
44085 * trans.c (tree_transform): Use location_t and input_location
44086 directly.
44087 (build_unit_elab): Likewise.
44088 * utils.c (create_label_decl): Likewise.
44089
44090 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
44091
44092 * trans.c (tree_transform, build_unit_elab,
44093 set_lineno): Rename lineno to input_line.
44094 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
44095 end_subprog_body): Likewise.
44096 * utils2.c (build_call_raise): Likewise.
44097
44098 2003-05-01 Laurent Guerby <guerby@acm.org>
44099
44100 PR ada/10546
44101 * 5iosinte.ads: Increase pthread_cond_t size to match recent
44102 LinuxThread and NPTL version, merge from ACT.
44103
44104 2003-04-28 Zack Weinberg <zack@codesourcery.com>
44105
44106 * utils.c (convert): No need to clear TREE_CST_RTL.
44107
44108 2003-04-23 Geert Bosch <bosch@gnat.com>
44109
44110 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
44111 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
44112 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
44113 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
44114 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
44115 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
44116 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
44117 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
44118 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
44119 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
44120 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
44121 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
44122 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
44123 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
44124 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
44125 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
44126 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
44127 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
44128 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
44129 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
44130 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
44131 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
44132 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
44133 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
44134 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
44135 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
44136 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
44137 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
44138 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
44139 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
44140 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
44141 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
44142 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
44143 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
44144 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
44145 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
44146 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
44147 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
44148 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
44149 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
44150 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
44151 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
44152 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
44153 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
44154 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
44155 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
44156 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
44157 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
44158 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
44159 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
44160 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
44161 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
44162 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
44163 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
44164 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
44165 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
44166 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
44167 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
44168 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
44169 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
44170 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
44171 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
44172 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
44173 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
44174 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
44175 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
44176 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
44177 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
44178 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
44179 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
44180 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
44181 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
44182 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
44183 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
44184 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
44185 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
44186 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
44187 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
44188 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
44189 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
44190 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
44191 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
44192 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
44193 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
44194 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
44195 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
44196 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
44197 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
44198 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
44199 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
44200 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
44201 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
44202 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
44203 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
44204 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
44205 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
44206 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
44207 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
44208 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
44209 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
44210 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
44211 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
44212 ali.adb, ali.ads, alloc.ads, argv.c,
44213 atree.adb, atree.ads, atree.h, aux-io.c,
44214 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
44215 binde.adb, binde.ads, binderr.adb, binderr.ads,
44216 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
44217 butil.adb, butil.ads, cal.c, calendar.ads,
44218 casing.adb, casing.ads, ceinfo.adb, checks.adb,
44219 checks.ads, cio.c, comperr.adb, comperr.ads,
44220 config-lang.in, csets.adb, csets.ads, csinfo.adb,
44221 cstand.adb, cstand.ads, cuintp.c, debug.adb,
44222 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
44223 dec-io.ads, dec.ads, deftarg.c, directio.ads,
44224 einfo.adb, einfo.ads, elists.adb, elists.ads,
44225 elists.h, errno.c, errout.adb, errout.ads,
44226 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
44227 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
44228 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
44229 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
44230 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
44231 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
44232 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
44233 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
44234 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
44235 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
44236 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
44237 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
44238 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
44239 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
44240 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
44241 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
44242 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
44243 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
44244 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
44245 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
44246 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
44247 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
44248 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
44249 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
44250 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
44251 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
44252 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
44253 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
44254 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
44255 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
44256 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
44257 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
44258 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
44259 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
44260 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
44261 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
44262 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
44263 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
44264 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
44265 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
44266 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
44267 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
44268 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
44269 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
44270 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
44271 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
44272 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
44273 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
44274 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
44275 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
44276 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
44277 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
44278 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
44279 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
44280 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
44281 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
44282 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
44283 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
44284 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
44285 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
44286 lib.adb, lib.ads, live.adb, live.ads,
44287 machcode.ads, make.adb, make.ads, makeusg.adb,
44288 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
44289 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
44290 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
44291 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
44292 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
44293 mlib.ads, namet.adb, namet.ads, nlists.adb,
44294 nlists.ads, opt.adb, opt.ads, osint-b.adb,
44295 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
44296 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
44297 osint.ads, output.adb, output.ads, par-ch10.adb,
44298 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
44299 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
44300 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
44301 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
44302 par-tchk.adb, par-util.adb, par.adb, par.ads,
44303 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
44304 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
44305 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
44306 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
44307 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
44308 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
44309 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
44310 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
44311 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
44312 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
44313 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
44314 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
44315 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
44316 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
44317 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
44318 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
44319 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
44320 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
44321 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
44322 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
44323 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
44324 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
44325 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
44326 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
44327 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
44328 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
44329 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
44330 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
44331 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
44332 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
44333 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
44334 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
44335 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
44336 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
44337 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
44338 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
44339 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
44340 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
44341 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
44342 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
44343 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
44344 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
44345 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
44346 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
44347 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
44348 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
44349 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
44350 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
44351 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
44352 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
44353 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
44354 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
44355 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
44356 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
44357 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
44358 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
44359 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
44360 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
44361 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
44362 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
44363 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
44364 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
44365 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
44366 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
44367 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
44368 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
44369 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
44370 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
44371 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
44372 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
44373 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
44374 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
44375 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
44376 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
44377 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
44378 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
44379 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
44380 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
44381 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
44382 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
44383 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
44384 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
44385 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
44386 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
44387 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
44388 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
44389 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
44390 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
44391 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
44392 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
44393 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
44394 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
44395 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
44396 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
44397 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
44398 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
44399 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
44400 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
44401 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
44402 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
44403 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
44404 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
44405 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
44406 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
44407 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
44408 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
44409 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
44410 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
44411 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
44412 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
44413 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
44414 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
44415 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
44416 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
44417 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
44418 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
44419 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
44420 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
44421 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
44422 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
44423 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
44424 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
44425 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
44426 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
44427 snames.ads, sprint.adb, sprint.ads, stand.adb,
44428 stand.ads, stringt.adb, stringt.ads, style.adb,
44429 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
44430 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
44431 switch-m.ads, switch.adb, switch.ads, system.ads,
44432 table.adb, table.ads, targparm.adb, targparm.ads,
44433 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
44434 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
44435 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
44436 ttypef.ads, ttypes.ads, types.adb, types.ads,
44437 uintp.adb, uintp.ads, uname.adb, uname.ads,
44438 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
44439 usage.adb, usage.ads, validsw.adb, validsw.ads,
44440 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
44441 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
44442 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
44443 formatting and other trivial changes from ACT.
44444
44445 2003-04-12 Zack Weinberg <zack@codesourcery.com>
44446
44447 * gigi.h, utils2.c (build_constructor):
44448 Rename gnat_build_constructor. Use build_constructor.
44449 * decl.c (gnat_to_gnu_entity)
44450 * trans.c (tree_transform, pos_to_constructor, extract_values)
44451 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
44452 (unchecked_convert)
44453 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
44454 (fill_vms_descriptor):
44455 Update to match.
44456
44457 2003-04-06 Zack Weinberg <zack@codesourcery.com>
44458
44459 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
44460 * misc.c (gnat_tree_size): New function.
44461 (LANG_HOOKS_TREE_SIZE): Override.
44462
44463 2003-04-03 Jason Merrill <jason@redhat.com>
44464
44465 * misc.c (gnat_adjust_rli): #if 0.
44466
44467 2003-03-31 Geert Bosch <bosch@gnat.com>
44468
44469 PR ada/10020
44470 * link.c : Fix misspelled "const" keyword
44471
44472 2003-03-23 Mark Mitchell <mark@codesourcery.com>
44473
44474 PR c++/7086
44475 * utils2.c: Adjust calls to put_var_into_stack.
44476
44477 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
44478
44479 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
44480
44481 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
44482
44483 * misc.c (gnat_init): Update for new prototype.
44484
44485 2003-03-05 Olivier Hainque <hainque@gnat.com>
44486
44487 ada/9961
44488 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
44489 warning, and fix return type for the IN_RTS && !SJLJ case.
44490
44491 2003-03-04 Tom Tromey <tromey@redhat.com>
44492
44493 * Make-lang.in (ada.tags): New target.
44494
44495 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
44496
44497 ada/9911
44498 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
44499 wrapper, which name remains constant whatever underlying GCC
44500 scheme.
44501
44502 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
44503 the stable interface needed for a-except.
44504
44505 2003-03-02 Andreas Jaeger <aj@suse.de>
44506
44507 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44508 gnat_ug_wnt.texi: Regenerate.
44509
44510 2003-03-02 Laurent Guerby <guerby@acm.org>
44511
44512 * Makefile.in (install-gnatlib): Match previous change there
44513 so it works.
44514
44515 2003-02-28 Andreas Schwab <schwab@suse.de>
44516
44517 * Make-lang.in (install-gnatlib): Change to ada directory before
44518 running make instead of using ada/Makefile directly.
44519
44520 2003-02-18 Ben Elliston <bje@redhat.com>
44521
44522 Part of PR ada/9406
44523 * gnat_ug.texi (Binder output file): Grammar fix.
44524
44525 2003-02-18 Ben Elliston <bje@redhat.com>
44526
44527 PR other/7350
44528 * 5qtaprop.adb (Sleep): Fix typo in comment.
44529
44530 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
44531
44532 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
44533 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44534 gnat_ug_wnt.texi: Regenerate.
44535
44536 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
44537
44538 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
44539 be created if necessary.
44540 (ada.install-common): Let $(DESTDIR)$(bindir) be created
44541 if necessary. Remove erroneous and redundant gnatchop
44542 installation commands. Test for gnatdll before attempting
44543 to install it.
44544 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
44545 and gnatdll from all plausible locations.
44546
44547 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
44548
44549 * utils2.c (build_unary_op): Don't check flag_volatile.
44550 * gnat_ug.texi: Remove -fvolatile from example.
44551 * gnat_ug_vxw.texi: Likewise.
44552
44553 2003-01-29 Laurent Guerby <guerby@acm.org>
44554
44555 PR ada/8344
44556 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
44557 * Makefile.in: match previous change.
44558 * Make-lang.in: match previous change.
44559
44560 2003-01-29 Joel Sherrill <joel@OARcorp.com>
44561
44562 * 5rosinte.ads: Add SIGXCPU.
44563 * 5rtpopsp.adb: New file.
44564 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
44565 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
44566 specific file 5rtpopsp.adb.
44567 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
44568 is likely needed for all newlib targets.
44569 * init.c: Add RTEMS specific version of __gnat_initialize().
44570
44571 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44572
44573 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
44574
44575 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44576
44577 * init.c (__gnat_error_handler): Make msg const.
44578
44579 * gmem.c (convert_addresses): Move declaration ...
44580 * adaint.h: ... here.
44581 * adaint.c (convert_addresses): Adapt addrs type to match
44582 prototype.
44583
44584 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
44585
44586 2003-01-24 Andreas Schwab <schwab@suse.de>
44587
44588 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
44589 size_t to avoid warning.
44590
44591 2003-01-21 Zack Weinberg <zack@codesourcery.com>
44592
44593 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
44594
44595 2003-01-09 Geoffrey Keating <geoffk@apple.com>
44596
44597 * gnat_rm.texi: Remove RCS version number.
44598
44599 * ada-tree.h (union lang_tree_node): Add chain_next option.
44600
44601 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
44602
44603 * Make-lang.in (ada.install-info, ada.install-common,
44604 ada.uninstall): Prepend $(DESTDIR) to the destination
44605 directory in all (un)installation commands.
44606 * Makefile.in (install-gnatlib, install-rts): Ditto.
44607
44608 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
44609
44610 * gnat_rm.texi, gnat_ug.texi: Use @copying.
44611 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44612 gnat_ug_wnt.texi: Regenerate.
44613
44614 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
44615
44616 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
44617 only.
44618 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
44619 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
44620 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
44621 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
44622 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
44623 $(srcdir)/doc/include/gcc-common.texi.
44624
44625 2002-12-15 Geert Bosch <bosch@gnat.com>
44626
44627 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
44628
44629 2002-12-14 Geert Bosch <bosch@gnat.com>
44630
44631 PR ada/5690
44632 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
44633 case of a body created for a Renaming_As_Body, on which
44634 conformance checks are not performed.
44635
44636 2002-11-30 Zack Weinberg <zack@codesourcery.com>
44637
44638 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
44639 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
44640 not already included.
44641 * Make-lang.in: Update dependencies.
44642
44643 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
44644 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
44645 solution to buffer overflow bug on GNU/Linux.
44646
44647 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
44648
44649 PR ada/5856
44650 PR ada/6919
44651 * bindgen.adb: Remove all references to Public_Version.
44652 * comperr.adb: Remove all references to Public_Version and
44653 GNATPRO_Version; correct bug reporting instructions.
44654 * comperr.ads: Change to match bug box.
44655 * gnatvsn.ads: Remove all references to Public version and
44656 GNATPRO version.
44657
44658 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
44659
44660 PR ada/6919
44661 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
44662 GNU/Linux.
44663
44664 PR ada/6558
44665 * config-lang.in: Remove diff_excludes.
44666
44667 2002-11-05 Graham Stott <graham.stott@btinternet.com>
44668
44669 PR ada/8358
44670 * trans.c (gnu_pending_elaboration_lists): New GC root.
44671 (build_unit_elab): Use..
44672
44673 2002-10-30 Geert Bosch <bosch@gnat.com>
44674
44675 PR ada/6558
44676 * misc.c : Include optabs.h
44677
44678 * Make-lang.in (misc.o): Add dependency on optabs.h
44679
44680 2002-10-29 Geert Bosch <bosch@gnat.com>
44681
44682 PR ada/6558
44683 * Make-lang.in (gnatbind): Depend on CONFIG_H
44684
44685 2002-10-29 Geert bosch <bosch@gnat.com>
44686
44687 PR ada/6558
44688 * misc.c: Unrevert misc.c (1.13)
44689
44690 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
44691
44692 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
44693 maintainership comments.
44694
44695 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
44696
44697 PR ada/5904
44698 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
44699 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
44700 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
44701 7staprop.adb: Correct statements in comments about
44702 maintainership of GNAT.
44703
44704 PR ada/5904
44705 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
44706 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
44707 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
44708 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
44709 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
44710 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
44711 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
44712 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
44713 comments about maintainership of GNAT.
44714
44715 PR ada/6919 (forward port of patch for PR ada/5904)
44716 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
44717 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
44718 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
44719 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
44720 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
44721 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
44722 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
44723 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
44724 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
44725 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
44726 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
44727 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
44728 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
44729 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
44730 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
44731 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
44732 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
44733 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
44734 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
44735 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
44736 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
44737 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
44738 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
44739 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
44740 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
44741 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
44742 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
44743 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
44744 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
44745 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
44746 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
44747 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
44748 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
44749 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
44750 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
44751 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
44752 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
44753 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
44754 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
44755 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
44756 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
44757 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
44758 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
44759 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
44760 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
44761 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
44762 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
44763 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
44764 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
44765 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
44766 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
44767 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
44768 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
44769 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
44770 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
44771 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
44772 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
44773 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
44774 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
44775 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
44776 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
44777 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
44778 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
44779 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
44780 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
44781 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
44782 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
44783 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
44784 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
44785 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
44786 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
44787 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
44788 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
44789 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
44790 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
44791 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
44792 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
44793 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
44794 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
44795 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
44796 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
44797 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
44798 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
44799 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
44800 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
44801 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
44802 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
44803 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
44804 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
44805 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
44806 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
44807 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
44808 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
44809 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
44810 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
44811 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
44812 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
44813 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
44814 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
44815 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
44816 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
44817 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
44818 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
44819 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
44820 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
44821 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
44822 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
44823 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
44824 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
44825 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
44826 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
44827 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
44828 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
44829 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
44830 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
44831 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
44832 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
44833 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
44834 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
44835 par-endh.adb par-labl.adb par-load.adb par-prag.adb
44836 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
44837 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
44838 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
44839 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
44840 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
44841 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
44842 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
44843 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
44844 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
44845 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
44846 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
44847 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
44848 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
44849 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
44850 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
44851 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
44852 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
44853 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
44854 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
44855 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
44856 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
44857 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
44858 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
44859 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
44860 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
44861 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
44862 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
44863 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
44864 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
44865 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
44866 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
44867 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
44868 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
44869 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
44870 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
44871 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
44872 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
44873 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
44874 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
44875 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
44876 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
44877 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
44878 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
44879 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
44880 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
44881 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
44882 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
44883 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
44884 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
44885 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
44886 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
44887 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
44888 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
44889 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
44890 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
44891 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
44892 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
44893 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
44894 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
44895 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
44896 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
44897 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
44898 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
44899 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
44900 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
44901 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
44902 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
44903 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
44904 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
44905 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
44906 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
44907 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
44908 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
44909 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
44910 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
44911 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
44912 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
44913 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
44914 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
44915 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
44916 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
44917 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
44918 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
44919 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
44920 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
44921 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
44922 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
44923 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
44924 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
44925 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
44926 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
44927 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
44928 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
44929 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
44930 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
44931 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
44932 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
44933 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
44934 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
44935 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
44936 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
44937 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
44938 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
44939 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
44940 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
44941 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
44942 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
44943 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
44944 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
44945 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
44946 stringt.ads stringt.h style.adb style.ads stylesw.adb
44947 stylesw.ads switch.adb switch.ads sysdep.c system.ads
44948 table.adb table.ads targparm.adb targparm.ads targtyps.c
44949 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
44950 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
44951 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
44952 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
44953 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
44954 usage.ads utils.c utils2.c validsw.adb validsw.ads
44955 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
44956 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
44957 xtreeprs.adb: Correct statements in comments about maintainership
44958 of GNAT.
44959
44960 2002-09-23 Zack Weinberg <zack@codesourcery.com>
44961
44962 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
44963 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
44964 * gnatvsn.ads: Gnat_Version_String is now a function.
44965 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
44966 copy the C version_string into a String and return it.
44967 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
44968 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
44969 Remove pragma Ident (Gnat_Version_String). If this was the
44970 sole use of package Gnatvsn, remove the with statement too.
44971 * gnat1drv.adb: Tweak -gnatv output.
44972
44973 2002-09-17 Richard Henderson <rth@redhat.com>
44974
44975 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
44976 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
44977 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
44978 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
44979 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
44980 and real_2expN instead of a loop.
44981 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
44982 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
44983
44984 2002-08-25 Andre Leis <a.leis@gmx.net>
44985 David Billinghurst <David.Billinghurst@riotinto.com>
44986
44987 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
44988
44989 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44990
44991 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
44992 Remove $(CONFIG_H) dependency.
44993
44994 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
44995
44996 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
44997
44998 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44999
45000 * adadecode.c (ada_demangle): Use xstrdup in lieu of
45001 xmalloc/strcpy.
45002 * misc.c (gnat_decode_option): Likewise.
45003
45004 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
45005
45006 * make.adb (Add_Switch): Make Generic_Position a procedure. The
45007 function approach did not work well because of a side effect (the
45008 function call could reallocate the table which was being indexed
45009 using its result). Fixes ada/4851. [RESURRECTED]
45010
45011 2002-07-01 Roger Sayle <roger@eyesopen.com>
45012
45013 * ada/utils.c (builtin_function): Accept an additional parameter.
45014
45015 2002-06-28 Andreas Jaeger <aj@suse.de>
45016
45017 PR ada/7144
45018 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
45019 <adi@thur.de>.
45020
45021 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45022
45023 * Makefile.in (SHELL): Set to @SHELL@.
45024
45025 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45026
45027 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
45028 array size calculation.
45029
45030 2002-06-04 Andreas Jaeger <aj@suse.de>
45031
45032 * Make-lang.in (gnatbind): Readd rule that has been lost in last
45033 patch.
45034
45035 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
45036
45037 Merge from pch-branch:
45038
45039 * config-lang.in (gtfiles): Add ada-tree.h.
45040 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
45041 (SET_TYPE_MODULUS): New.
45042 (SET_TYPE_INDEX): New.
45043 (SET_TYPE_DIGITS_VALUE): New.
45044 (SET_TYPE_RM_SIZE): New.
45045 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
45046 (SET_TYPE_ADA_SIZE): New.
45047 (SET_TYPE_ACTUAL_BOUNDS): New.
45048 (SET_DECL_CONST_CORRESPONDING_VAR): New.
45049 (SET_DECL_ORIGINAL_FIELD): New.
45050 (TREE_LOOP_ID): Correct typo.
45051 * decl.c: Use new macros.
45052 * utils.c: Include debug.h, use new macros.
45053 * utils2.c: Use new macros.
45054
45055 * ada-tree.h: Update all macros for new tree description.
45056 (struct tree_loop_id): New.
45057 (union lang_tree_node): New.
45058 (struct lang_decl): New.
45059 (struct lang_type): New.
45060 * misc.c (gnat_mark_tree): Delete.
45061 (LANG_HOOKS_MARK_TREE): Delete.
45062 * trans.c (tree_transform): No longer any need to cast
45063 for TREE_LOOP_ID.
45064
45065 * utils.c (struct language_function): New dummy structure.
45066
45067 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
45068 (misc.o): Likewise.
45069 (utils.o): Likewise; also gtype-ada.h.
45070 * Make-lang.in (gnat1): Add dependency on s-gtype.
45071 (gnatbind): Add dependency on $(CONFIG_H).
45072 * utils.c: Correct last #include.
45073 (stuct e_stack): Remove unnecessary 'static'.
45074 (mark_e_stack): Remove unused prototype.
45075
45076 * scn-nlit.adb: Remove whitespace after version number to
45077 keep lines under 80 chars.
45078 * snames.adb: Likewise.
45079 * treepr.ads: Likewise.
45080
45081 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
45082 (misc.o): Likewise.
45083 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
45084 * config-lang.in (gtfiles): New.
45085 * decl.c: Use gengtype for roots.
45086 * gigi.h: Use gengtype for roots.
45087 * trans.c: Use gengtype for roots.
45088 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
45089
45090 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
45091
45092 * misc.c (gnat_init): Adjust setting of internal_error_function.
45093
45094 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
45095
45096 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
45097 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
45098 gnat_ug_wnt.texi: Regenerate.
45099
45100 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
45101
45102 * 5ntaprop.adb (with System.OS_Primitives): Remove.
45103
45104 * cstreams.c (max_path_len): Move from here ...
45105 * adaint.c (__gnat_max_path_len): ... to here.
45106 * adaint.c (__gnat_max_path_len): Declare.
45107 * g-dirope.adb (Max_Path): Adjust.
45108 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
45109 * i-cstrea.ads (max_path_len): Adjust.
45110 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
45111 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
45112
45113 * Makefile.in, Make-lang.in: Documentation is now built in
45114 Make-lang.in. Store Info and generated Texinfo files in the
45115 source directory.
45116 * gnat_ug.texi: Remove CVS keywords, correct version number.
45117 Set file name correctly.
45118
45119 * gnat_ug_*.texi: Add.
45120 * .cvsignore: Ignore generated Texinfo files.
45121
45122 2002-05-30 Zack Weinberg <zack@codesourcery.com>
45123
45124 * ada.h: Add MI guard macro.
45125 (SUBTYPE): Define constants with an anonymous enum, not static
45126 const variables.
45127 (IN): Cast constants to appropriate type before use.
45128
45129 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
45130
45131 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
45132 (experimental)".
45133
45134 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45135
45136 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
45137 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
45138 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
45139 (ALL_ADA_CFLAGS): Likewise.
45140 (ADA_INCLUDES): Likewise.
45141 Adapt for new working dir.
45142 (GNATBIND): Use Makefile.in version.
45143 (.SUFFIXES): Copy from Makefile.in.
45144 (ada-warn): Define.
45145 (.adb.o, .ads.o): Copy from Makefile.in.
45146 Added $(OUTPUT_OPTION).
45147 (GNAT1_C_OBJS): Moved from Makefile.in.
45148 Prefix with ada subdir.
45149 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
45150 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
45151 Adapt for new working dir.
45152 (EXTRA_GNATBIND_OBJS): Likewise.
45153 (ADA_BACKEND): Moved from Makefile.in.
45154 Renamed to avoid conflict with global BACKEND.
45155 Use that one.
45156 (TARGET_ADA_SRCS): Moved from Makefile.in.
45157 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
45158 Use ADA_BACKEND.
45159 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
45160 (ada_extra_files): Moved from Makefile.in.
45161 Prefix with ada subdir.
45162 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
45163 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
45164 (ada/nmake.ads): Likewise.
45165 (update-sources): Moved from Makefile.in.
45166 Prefix with ada subdir.
45167 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
45168 (ADA_TREE_H): Likewise.
45169 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
45170 (ada/memtrack.o): Likewise.
45171 (ada/adadecode.o): Likewise.
45172 Update dependencies.
45173 (ada/adaint.o): New.
45174 (ada/argv.o): Moved from Makefile.in.
45175 Prefix with ada subdir.
45176 Update dependencies.
45177 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
45178 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
45179 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
45180 Prefix with ada subdir.
45181 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
45182 (GNAT DEPENDENCIES): Regenerate.
45183 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
45184 toplevel Makefile.in.
45185 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
45186 (TARGET_ADA_SRCS): Removed.
45187 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
45188 (GNATBIND_OBJS): Likewise.
45189 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
45190 (BACKEND): Removed.
45191 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
45192 (TREE_H): Likewise.
45193 (ada_extra_files): Likewise.
45194 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
45195 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
45196 (update-sources): Likewise.
45197 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
45198 (ADA_TREE_H): Likewise.
45199 (adadecoce.o): Likewise.
45200 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
45201 (GNAT DEPENDENCIES): Likewise.
45202
45203 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45204
45205 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
45206 * Makefile.in: Likewise.
45207
45208 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45209
45210 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
45211 Restore $(CONFIG_H) and prefix.o dependencies.
45212 (ada.stage[1-4]): Depend on stage?-start.
45213
45214 * Makefile.in (b_gnatb.c): Depend on interfac.o.
45215
45216 2002-05-02 Jim Wilson <wilson@redhat.com>
45217
45218 * utils.c (finish_record_type): Change record_size to record_type.
45219
45220 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
45221
45222 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
45223 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
45224 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
45225
45226 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
45227
45228 * misc.c (gnat_parse_file): Update.
45229
45230 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
45231
45232 * misc.c (gnat_init): Don't set lang_attribute_common.
45233
45234 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
45235
45236 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
45237
45238 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
45239
45240 * gnat_ug.texi: New file.
45241
45242 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
45243 instead of gfdl.texi
45244
45245 * xgnatug.adb, ug_words: New files.
45246
45247 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
45248 gnat_rm and gnat-style manuals.
45249
45250 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
45251
45252 * gigi.h (incomplete_type_error): Remove.
45253 * utils.c (incomplete_type_error): Remove.
45254
45255 2002-04-16 Mark Mitchell <mark@codesourcery.com>
45256
45257 * trans.c (tree_transform): Add has_scope argument to
45258 expand_start_stmt_expr.
45259
45260 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
45261
45262 * gigi.h (truthvalue_conversion): Rename.
45263 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
45264 * trans.c (tree_transform): Update.
45265 * utils2.c (truthvalue_conversion): Rename, update.
45266 (build_binary_op, build_unary_op): Update.
45267
45268 2002-04-04 Laurent Guerby <guerby@acm.org>
45269
45270 * make.adb: Implement -margs, remove restriction about file name placement.
45271 * makeusg.adb: Documentation update.
45272 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
45273 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
45274
45275 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
45276
45277 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
45278 (builtin_function): Similarly.
45279
45280 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
45281
45282 * decl.c (gnat_to_gnu_entity): Update.
45283 * gigi.h (mark_addressable): Rename.
45284 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
45285 * trans.c (tree_transform): Update.
45286 * utils.c (create_var_decl): Update.
45287 * util2.c (build_binary_op, build_unary_op,
45288 fill_vms_descriptor): Update.
45289 (mark_addressable): Rename, update.
45290
45291 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
45292
45293 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
45294 Rename.
45295 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
45296 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
45297 * trans.c (tree_transform, convert_with_check): Update.
45298 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
45299 Rename.
45300
45301 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
45302
45303 * gigi.h (finish_incomplete_decl): Rename.
45304 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
45305 * utils.c (gnat_init_decl_processing): Don't set hook.
45306 (finish_incomplete_decl): Rename.
45307
45308 2002-03-29 Andreas Schwab <schwab@suse.de>
45309
45310 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
45311 directory.
45312
45313 2001-03-28 Robert Dewar <dewar@gnat.com>
45314
45315 * checks.ads:
45316 (Remove_Checks): New procedure
45317
45318 * checks.adb:
45319 (Remove_Checks): New procedure
45320
45321 * exp_util.adb:
45322 Use new Duplicate_Subexpr functions
45323 (Duplicate_Subexpr_No_Checks): New procedure
45324 (Duplicate_Subexpr_No_Checks_Orig): New procedure
45325 (Duplicate_Subexpr): Restore original form (checks duplicated)
45326 (Duplicate_Subexpr): Call Remove_Checks
45327
45328 * exp_util.ads:
45329 (Duplicate_Subexpr_No_Checks): New procedure
45330 (Duplicate_Subexpr_No_Checks_Orig): New procedure
45331 Add 2002 to copyright notice
45332
45333 * sem_util.adb: Use new Duplicate_Subexpr functions
45334
45335 * sem_eval.adb:
45336 (Eval_Indexed_Component): This is the place to call
45337 Constant_Array_Ref and to replace the value. We simply merge
45338 the code of this function in here, since it is now no longer
45339 used elsewhere. This fixes the problem of the back end not
45340 realizing we were clever enough to see that this was
45341 constant.
45342 (Expr_Val): Remove call to Constant_Array_Ref
45343 (Expr_Rep_Val): Remove call to Constant_Array_Ref
45344 Minor reformatting
45345 (Constant_Array_Ref): Deal with string literals (patch
45346 suggested by Zack Weinberg on the gcc list)
45347
45348 2001-03-28 Ed Schonberg <schonber@gnat.com>
45349
45350 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
45351 Duplicate_Subexpr_Move_Checks.
45352
45353 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
45354 Duplicate_Subexpr_Move_Checks.
45355
45356 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
45357 value of array exists before retrieving it (it may a private
45358 protected component in a function).
45359
45360 2002-03-28 Geert Bosch <bosch@gnat.com>
45361
45362 * prj-pp.adb : New file.
45363
45364 * prj-pp.ads : New file.
45365
45366 2002-03-28 Andreas Jaeger <aj@suse.de>
45367
45368 * Makefile.in (stamp-sdefault): Fix path for Makefile.
45369
45370 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
45371
45372 * misc.c (gnat_expand_expr): Move prototype.
45373
45374 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
45375
45376 * misc.c (insert_default_attributes): Remove.
45377
45378 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
45379
45380 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
45381 (gnat_init): Don't set hook.
45382 (gnat_expand_expr): Fix prototype.
45383
45384 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
45385
45386 * misc.c (ggc_p): Remove.
45387
45388 2002-03-27 Geert Bosch <bosch@gnat.com>
45389
45390 * prj-makr.ads, prj-makr.adb : New files.
45391
45392 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
45393
45394 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
45395 (lang_mark_tree): Make static, rename.
45396
45397 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
45398
45399 * misc.c (maybe_build_cleanup): Remove.
45400
45401 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
45402
45403 * gigi.h (yyparse): Remove.
45404
45405 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
45406
45407 From Ben Brosgol <brosgol@gnat.com>
45408 * gnat_rm.texi: Sync with ACT version.
45409
45410 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
45411
45412 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
45413 (gnat_init): Remove old hook.
45414
45415 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
45416
45417 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
45418 (yyparse): Rename gnat_parse_file.
45419
45420 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
45421
45422 Delete all lines containing "$Revision:".
45423 * xeinfo.adb: Don't look for revision numbers.
45424 * xnmake.adb: Likewise.
45425 * xsinfo.adb: Likewise.
45426 * xsnames.adb: Likewise.
45427 * xtreeprs.adb: Likewise.
45428
45429 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45430
45431 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
45432 gnat_tree_code_name): Delete.
45433 (tree_code_type, tree_code_length, tree_code_name): Define.
45434 (gnat_init): Don't try to copy into the various tree_code
45435 arrays.
45436
45437 2002-03-11 Richard Henderson <rth@redhat.com>
45438
45439 * Makefile.in (.NOTPARALLEL): Add fake tag.
45440
45441 2002-03-07 Geert Bosch <bosch@gnat.com>
45442
45443 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
45444 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
45445 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
45446 switch-m.adb, switch-m.ads : New files.
45447
45448 2002-03-07 Geert Bosch <bosch@gnat.com>
45449
45450 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
45451 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
45452 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
45453 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
45454 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
45455 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
45456 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
45457 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
45458 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
45459 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
45460 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
45461 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
45462 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
45463 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
45464 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
45465 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
45466 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
45467 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
45468 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
45469 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
45470 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
45471 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
45472 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
45473 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
45474 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
45475 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
45476 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
45477 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
45478 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
45479 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
45480 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
45481 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
45482 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
45483 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
45484 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
45485 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
45486 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
45487 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
45488 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
45489 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
45490 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
45491 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
45492 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
45493 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
45494 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
45495 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
45496 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
45497 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
45498 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
45499 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
45500 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
45501 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
45502 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
45503 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
45504 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
45505 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
45506 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
45507 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
45508 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
45509 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
45510 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
45511 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
45512 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
45513 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
45514 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
45515 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
45516 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
45517 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
45518 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
45519 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
45520 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
45521 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
45522 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
45523 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
45524 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
45525 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
45526 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
45527 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
45528 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
45529 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
45530 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
45531 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
45532 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
45533 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
45534 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
45535 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
45536 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
45537 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
45538 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
45539 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
45540 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
45541 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
45542 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
45543 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
45544 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
45545 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
45546 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
45547
45548 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
45549 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
45550 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
45551 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
45552
45553 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
45554 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
45555
45556 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
45557 to mdll-fil.ad[bs] and mdll-util.ad[bs]
45558
45559 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
45560 from mdllfile.ad[bs] and mdlltool.ad[bs]
45561
45562 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45563
45564 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
45565 lieu of explicit sizeof/sizeof.
45566
45567 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
45568
45569 * misc.c (copy_lang_decl): Remove.
45570
45571 2002-02-27 Zack Weinberg <zack@codesourcery.com>
45572
45573 * misc.c: Delete traditional-mode-related code copied from the
45574 C front end but not used, or used only to permit the compiler
45575 to link.
45576
45577 2002-02-07 Richard Henderson <rth@redhat.com>
45578
45579 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
45580 * adaint.h (__gnat_to_gm_time): Update prototype.
45581
45582 2002-01-30 Richard Henderson <rth@redhat.com>
45583
45584 * trans.c (tree_transform) [N_Loop_Statement]: Use
45585 expand_exit_loop_top_cond.
45586
45587 2001-12-23 Richard Henderson <rth@redhat.com>
45588
45589 * utils.c (end_subprog_body): Push GC context around
45590 rest_of_compilation for nested functions.
45591
45592 2001-12-23 Richard Henderson <rth@redhat.com>
45593
45594 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
45595
45596 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
45597
45598 * gnat-style.texi (Declarations and Types): Remove ancient style
45599 rule which was mandated by code generation issues.
45600
45601 * gnat-style.texi (header): Add @dircategory, @direntry.
45602 (title page): Remove date.
45603 (general) Add @./@: where approriate, and two spaces after the
45604 full stop at the end of a sentence. Use @samp markup when
45605 referring concrete lexical entities (keywords, attribute names
45606 etc.), and @syntax for ARM grammar elements. Use @r for English
45607 text in comments. Use @emph for emphasis. Change "if-statements"
45608 etc. to "if statements" (without @samp). Break long lines. Make
45609 casing of section names consistent.
45610 (Identifiers): Use @samp markup for variable names.
45611 (Comments): Use @samp markup for comment characters. Line-end
45612 comments may follow any Ada code, not just statements. Fix
45613 misspelling of "Integer" as "integer".
45614 (Loop statements): Do not use variable name "I", use "J".
45615 (Subprogram Declarations): Document alignment.
45616 (Subprogram Bodies, Block statements): Document empty line before
45617 "begin".
45618
45619 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
45620
45621 * make.adb (Add_Switch): Make Generic_Position a procedure. The
45622 function approach did not work well because of a side effect (the
45623 function call could reallocate the table which was being indexed
45624 using its result). Fixes ada/4851.
45625
45626 2001-12-19 Robert Dewar <dewar@gnat.com>
45627
45628 * bindgen.adb: Minor reformatting
45629
45630 * cstand.adb: Minor reformatting
45631
45632 * fmap.adb: Minor reformatting
45633 Change name from Add for Add_To_File_Map (Add is much too generic)
45634 Change Path_Name_Of to Mapped_Path_Name
45635 Change File_Name_Of to Mapped_File_Name
45636 Fix copyright dates in header
45637
45638 * fmap.ads:
45639 Change name from Add for Add_To_File_Map (Add is much too generic)
45640 Change Path_Name_Of to Mapped_Path_Name
45641 Change File_Name_Of to Mapped_File_Name
45642 Fix copyright dates in header
45643
45644 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
45645 Add use clause for Fmap.
45646
45647 * make.adb: Minor reformatting
45648
45649 * osint.adb: Minor reformatting. Change of names in Fmap.
45650 Add use clause for Fmap.
45651
45652 * prj-env.adb: Minor reformatting
45653
45654 * prj-env.ads: Minor reformatting
45655
45656 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
45657 error found (there were odd exceptions to this general rule in
45658 -gnatec/-gnatem processing)
45659
45660 2001-12-19 Olivier Hainque <hainque@gnat.com>
45661
45662 * raise.c (__gnat_eh_personality): Exception handling personality
45663 routine for Ada. Still in rough state, inspired from the C++ version
45664 and still containing a bunch of debugging artifacts.
45665 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
45666 inspired from the C++ library.
45667
45668 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
45669 exception handling integration.
45670
45671 2001-12-19 Arnaud Charlet <charlet@gnat.com>
45672
45673 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
45674 (HIE_SOURCES): Add s-secsta.ad{s,b}.
45675 (HIE_OBJS): Add s-fat*.o
45676 (RAVEN_SOURCES): Remove files that are no longer required. Add
45677 interrupt handling files.
45678 (RAVEN_MOD): Removed, no longer needed.
45679
45680 2001-12-19 Robert Dewar <dewar@gnat.com>
45681
45682 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
45683 Add 2001 to copyright date
45684
45685 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
45686 need to force universal inlining for these cases.
45687
45688 2001-12-19 Arnaud Charlet <charlet@gnat.com>
45689
45690 * s-taprob.adb: Minor clean ups so that this unit can be used in
45691 Ravenscar HI.
45692
45693 * exp_ch7.adb: Allow use of secondary stack in HI mode.
45694 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
45695
45696 2001-12-19 Vincent Celier <celier@gnat.com>
45697
45698 * prj-tree.ads (Project_Node_Record): Add comments for components
45699 Pkg_Id and Case_Insensitive.
45700
45701 2001-12-19 Pascal Obry <obry@gnat.com>
45702
45703 * g-socket.adb: Minor reformatting. Found while reading code.
45704
45705 2001-12-19 Robert Dewar <dewar@gnat.com>
45706
45707 * prj-tree.ads: Minor reformatting
45708
45709 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
45710
45711 * config-lang.in (diff_excludes): Remove.
45712
45713 2001-12-17 Ed Schonberg <schonber@gnat.com>
45714
45715 * sem_res.adb (Resolve_Selected_Component): do not generate a
45716 discriminant check if the selected component is a component of
45717 the argument of an initialization procedure.
45718
45719 * trans.c (tree_transform, case of arithmetic operators): If result
45720 type is private, the gnu_type is the base type of the full view,
45721 given that the full view itself may be a subtype.
45722
45723 2001-12-17 Robert Dewar <dewar@gnat.com>
45724
45725 * sem_res.adb: Minor reformatting
45726
45727 * trans.c (tree_transform, case N_Real_Literal): Add missing third
45728 parameter in call to Machine (unknown horrible effects from this
45729 omission).
45730
45731 * urealp.h: Add definition of Round_Even for call to Machine
45732 Add third parameter for Machine
45733
45734 2001-12-17 Ed Schonberg <schonber@gnat.com>
45735
45736 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
45737 predefined units in No_Run_Time mode.
45738
45739 2001-12-17 Richard Kenner <kenner@gnat.com>
45740
45741 * misc.c (insn-codes.h): Now include.
45742
45743 2001-12-17 Olivier Hainque <hainque@gnat.com>
45744
45745 * a-except.adb: Preparation work for future integration of the GCC 3
45746 exception handling mechanism
45747 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
45748 to factorize previous code sequences and make them externally callable,
45749 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
45750 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
45751 Use the new notification routines.
45752
45753 2001-12-17 Emmanuel Briot <briot@gnat.com>
45754
45755 * prj-tree.ads (First_Choice_Of): Document the when others case
45756
45757 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45758
45759 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
45760 HI-E mode, in order to support Ravenscar profile properly.
45761
45762 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
45763 mode on 32 bits targets.
45764
45765 2001-12-17 Vincent Celier <celier@gnat.com>
45766
45767 * fmap.adb: Initial version.
45768
45769 * fmap.ads: Initial version.
45770
45771 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
45772 If search is successfully done, add to mapping.
45773
45774 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
45775
45776 * make.adb:
45777 (Gnatmake): Add new local variable Mapping_File_Name.
45778 Create mapping file when using project file(s).
45779 Delete mapping file before exiting.
45780
45781 * opt.ads (Mapping_File_Name): New variable
45782
45783 * osint.adb (Find_File): Use path name found in mapping, if any.
45784
45785 * prj-env.adb (Create_Mapping_File): New procedure
45786
45787 * prj-env.ads (Create_Mapping_File): New procedure.
45788
45789 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
45790 (Mapping_File)
45791
45792 * usage.adb: Add entry for new switch -gnatem.
45793
45794 * Makefile.in: Add dependencies for fmap.o.
45795
45796 2001-12-17 Ed Schonberg <schonber@gnat.com>
45797
45798 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
45799 is a package instantiation rewritten as a package body.
45800 (Install_Withed_Unit): Undo previous change, now redundant.
45801
45802 2001-12-17 Gary Dismuke <dismukes@gnat.com>
45803
45804 * layout.adb:
45805 (Compute_Length): Move conversion to Unsigned to callers.
45806 (Get_Max_Size): Convert Len expression to Unsigned after calls to
45807 Compute_Length and Determine_Range.
45808 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
45809 Compute_Length and Determine_Range.
45810 Above changes fix problem with length computation for supernull arrays
45811 where Max (Len, 0) wasn't getting applied due to the Unsigned
45812 conversion used by Compute_Length.
45813
45814 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45815
45816 * rtsfind.ads:
45817 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
45818 System.Secondary_Stack.
45819 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
45820 in HI-E mode.
45821 Remove unused entity RE_Exception_Data.
45822
45823 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
45824
45825 * rident.ads (No_Secondary_Stack): New restriction.
45826
45827 2001-12-17 Joel Brobecker <brobecke@gnat.com>
45828
45829 * gnat_rm.texi: Fix minor typos. Found while reading the section
45830 regarding "Bit_Order Clauses" that was sent to a customer.
45831 Very interesting documentation!
45832
45833 2001-12-17 Robert Dewar <dewar@gnat.com>
45834
45835 * sem_case.adb (Choice_Image): Avoid creating improper character
45836 literal names by using the routine Set_Character_Literal_Name. This
45837 fixes bombs in certain error message cases.
45838
45839 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45840
45841 * a-reatim.adb: Minor reformatting.
45842
45843 2001-12-17 Ed Schonberg <schonber@gnat.com>
45844
45845 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
45846 case where the formal is an extension of another formal in the current
45847 unit or in a parent generic unit.
45848
45849 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45850
45851 * s-tposen.adb: Update comments. Minor reformatting.
45852 Minor code clean up.
45853
45854 * s-tarest.adb: Update comments. Minor code reorganization.
45855
45856 2001-12-17 Gary Dismukes <dismukes@gnat.com>
45857
45858 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
45859 when Java_VM.
45860
45861 2001-12-17 Robert Dewa <dewar@gnat.com>
45862
45863 * exp_attr.adb: Minor reformatting
45864
45865 2001-12-17 Ed Schonberg <schonber@gnat.com>
45866
45867 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
45868 derivations nested within a child unit: verify that the parent
45869 type is declared in an outer scope.
45870
45871 2001-12-17 Robert Dewar <dewar@gnat.com>
45872
45873 * sem_ch12.adb: Minor reformatting
45874
45875 2001-12-17 Ed Schonberg <schonber@gnat.com>
45876
45877 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
45878 warning if current unit is a predefined one, from which bodies may
45879 have been deleted.
45880
45881 2001-12-17 Robert Dewar <dewar@gnat.com>
45882
45883 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
45884 Fix header format. Add 2001 to copyright date.
45885
45886 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
45887 which caused CE during compilation if checks were enabled.
45888
45889 2001-12-17 Vincent Celier <celier@gnat.com>
45890
45891 * make.adb:
45892 (Switches_Of): New function
45893 (Test_If_Relative_Path): New procedure
45894 (Add_Switches): Use new function Switches_Of
45895 (Collect_Arguments_And_Compile): Use new function Switches_Of.
45896 When using a project file, test if there are any relative
45897 search path. Fail if there are any.
45898 (Gnatmake): Only add switches for the primary directory when not using
45899 a project file. When using a project file, change directory to the
45900 object directory of the main project file. When using a project file,
45901 test if there are any relative search path. Fail if there are any.
45902 When using a project file, fail if specified executable is relative
45903 path with directory information, and prepend executable, if not
45904 specified as an absolute path, with the exec directory. Make sure
45905 that only one -o switch is transmitted to the linker.
45906
45907 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
45908
45909 * prj-nmsc.adb:
45910 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
45911 when using a non standard naming scheme.
45912 (Check_Ada_Naming_Scheme): Make sure that error messages
45913 do not raise exceptions.
45914 (Is_Illegal_Append): Return True if there is no dot in the suffix.
45915 (Language_Independent_Check): Check the exec directory.
45916
45917 * prj.adb (Project_Empty): Add new component Exec_Directory
45918
45919 * prj.ads:
45920 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
45921 (Project_Data): Add component Exec_Directory
45922
45923 * snames.adb: Updated to match snames.ads revision 1.215
45924
45925 * snames.ads: Added Exec_Dir
45926
45927 2001-12-17 Robert Dewar <dewar@gnat.com>
45928
45929 * make.adb: Minor reformatting
45930
45931 * prj-nmsc.adb: Minor reformatting
45932
45933 * snames.adb: Updated to match snames.ads
45934
45935 * snames.ads: Alphebetize entries for project file
45936
45937 2001-12-17 Ed Schonberg <schonber@gnat.com>
45938
45939 * trans.c (process_freeze_entity): Do nothing if the entity is a
45940 subprogram that was already elaborated.
45941
45942 2001-12-17 Richard Kenner <kenner@gnat.com>
45943
45944 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
45945 and Esize if object is referenced via pointer.
45946
45947 2001-12-17 Ed Schonberg <schonber@gnat.com>
45948
45949 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
45950 is discrete before analyzing choices.
45951
45952 2001-12-17 Joel Brobecker <brobecke@gnat.com>
45953
45954 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
45955 containing the name of the Ada Main Program. This string is mainly
45956 intended for the debugger.
45957 (Gen_Output_File_C): Do the equivalent change when generating a C file.
45958
45959 2001-12-17 Robert Dewar <dewar@gnat.com>
45960
45961 * ali.adb: Set new Dummy_Entry field in dependency entry
45962
45963 * ali.ads: Add Dummy_Entry field to source dependency table
45964
45965 * bcheck.adb (Check_Consistency): Ignore dummy D lines
45966
45967 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
45968
45969 * lib-writ.ads: Document dummy D lines for missing files.
45970
45971 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
45972
45973 2001-12-17 Robert Dewar <dewar@gnat.com>
45974
45975 * ali.adb: Type reference does not reset current file.
45976
45977 * ali.adb: Recognize and scan renaming reference
45978
45979 * ali.ads: Add spec for storing renaming references.
45980
45981 * lib-xref.ads: Add documentation for handling of renaming references
45982
45983 * lib-xref.adb: Implement output of renaming reference.
45984
45985 * checks.adb:
45986 (Determine_Range): Document local variables
45987 (Determine_Range): Make sure Hbound is initialized. It looks as though
45988 there could be a real problem here with an uninitialized reference
45989 to Hbound, but no actual example of failure has been found.
45990
45991 2001-12-17 Laurent Pautet <pautet@gnat.com>
45992
45993 * g-socket.ads:
45994 Fix comment of Shutdown_Socket and Close_Socket. These functions
45995 should not fail silently because if they are called twice, this
45996 probably means that there is a race condition in the user program.
45997 Anyway, this behaviour is consistent with the rest of this unit.
45998 When an error occurs, an exception is raised with the error message
45999 as exception message.
46000
46001 2001-12-17 Robert Dewar <dewar@gnat.com>
46002
46003 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
46004 that it happens before modification of Sloc values for -gnatD.
46005
46006 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
46007 so that it happens before modification of Sloc values for -gnatD.
46008
46009 * switch.adb: Minor reformatting
46010
46011 2001-12-15 Richard Henderson <rth@redhat.com>
46012
46013 * sem_ch7.adb: Wrap comment.
46014
46015 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
46016
46017 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
46018 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
46019 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
46020 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
46021 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
46022 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
46023 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
46024 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
46025 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
46026 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
46027 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
46028 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
46029 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
46030 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
46031 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
46032 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
46033 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
46034 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
46035 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
46036 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
46037 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
46038 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
46039 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
46040 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
46041 spelling errors.
46042
46043 2001-12-14 Vincent Celier <celier@gnat.com>
46044
46045 * osint.adb(Create_Debug_File): When an object file is specified,
46046 put the .dg file in the same directory as the object file.
46047
46048 2001-12-14 Robert Dewar <dewar@gnat.com>
46049
46050 * osint.adb: Minor reformatting
46051
46052 * lib-xref.adb (Output_Instantiation): New procedure to generate
46053 instantiation references.
46054
46055 * lib-xref.ads: Add documentation of handling of generic references.
46056
46057 * ali.adb (Read_Instantiation_Ref): New procedure to read
46058 instantiation references
46059
46060 * ali.ads: Add spec for storing instantiation references
46061
46062 * bindusg.adb: Minor reformatting
46063
46064 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46065
46066 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46067
46068 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46069
46070 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46071
46072 * csets.ads:
46073 Fix header format
46074 Add 2001 to copyright date
46075 Add entry for Latin-5 (Cyrillic ISO-8859-5)
46076
46077 2001-12-14 Matt Gingell <gingell@gnat.com>
46078
46079 * adaint.c: mktemp is a macro on Lynx and can not be used as an
46080 expression.
46081
46082 2001-12-14 Richard Kenner <kenner@gnat.com>
46083
46084 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
46085 if operand is CONSTRUCTOR.
46086
46087 2001-12-14 Ed Schonberg <schonber@gnat.com>
46088
46089 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
46090 before emiting check on right-hand side, so that exception information
46091 is correct.
46092
46093 2001-12-14 Richard Kenner <kenner@gnat.com>
46094
46095 * utils.c (create_var_decl): Throw away initializing expression
46096 if just annotating types and non-constant.
46097
46098 2001-12-14 Vincent Celier <celier@gnat.com>
46099
46100 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
46101 Default_Ada_...
46102
46103 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46104 Remove functions.
46105 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
46106
46107 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46108 Remove functions.
46109 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
46110
46111 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
46112
46113 * ChangeLog: Remove piece of diff output.
46114
46115 2001-12-14 Geert Bosch <bosch@gnat.com>
46116
46117 * config-lang.in: Update copyright notice
46118
46119 * layout.adb: Remove commented out code.
46120
46121 * mdllfile.ads: Update copyright notice. Fix header format.
46122
46123 * sem_case.ads: Likewise.
46124
46125 * sem_ch3.adb: Minor reformatting.
46126
46127 2001-12-12 Geert Bosch <bosch@gnat.com>
46128
46129 * freeze.ads: Update copyright date.
46130
46131 * g-comlin.ads: Minor reformatting.
46132
46133 * gnat-style.texi: Fix typo.
46134
46135 2001-12-12 Geert Bosch <bosch@gnat.com>
46136
46137 * einfo.h: Regenerate.
46138
46139 2001-12-12 Ed Schonberg <schonber@gnat.com>
46140
46141 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
46142 on known node types, rather than untyped fields. Further cleanups.
46143
46144 2001-12-12 Robert Dewar <dewar@gnat.com>
46145
46146 * sem_ch12.adb:
46147 (Save_Entity_Descendant): Minor comment update.
46148 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
46149 of an N_Attribute_Reference node. As per note below, this does not
46150 eliminate need for Associated_Node in attribute ref nodes.
46151 (Associated_Node): Documentation explicitly mentions attribute
46152 reference nodes, since this field is used in such nodes.
46153
46154 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
46155
46156 2001-12-12 Robert Dewar <dewar@gnat.com>
46157
46158 * s-stalib.adb: Add more comments on with statements being needed
46159
46160 * par-ch12.adb: Minor reformatting
46161
46162 * prj-dect.ads: Fix copyright header
46163
46164 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
46165 inputs fit in 32 bits, but the result still overflows.
46166
46167 * s-fatgen.ads: Minor comment improvement
46168
46169 2001-12-12 Ed Schonberg <schonber@gnat.com>
46170
46171 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
46172 formal derived type, look for an inherited component from the full
46173 view of the parent, if any.
46174
46175 2001-12-12 Robert Dewar <dewar@gnat.com>
46176
46177 * checks.ads (Apply_Alignment_Check): New procedure.
46178
46179 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
46180 ensure that the alignment of objects with address clauses is
46181 appropriate, and raise PE if not.
46182
46183 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
46184 Exp_Pakd.Known_Aligned_Enough
46185
46186 * mdllfile.ads: Minor reformatting
46187
46188 * mlib-fil.ads: Minor reformatting
46189
46190 2001-12-12 Ed Schonberg <schonber@gnat.com>
46191
46192 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
46193 fix to any component reference if enclosing record has non-standard
46194 representation.
46195
46196 2001-12-12 Vincent Celier <celier@gnat.com>
46197
46198 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
46199 Iteration
46200
46201 2001-12-12 Ed Schonberg <schonber@gnat.com>
46202
46203 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
46204 sem_attr.
46205
46206 2001-12-12 Robert Dewar <dewar@gnat.com>
46207
46208 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
46209
46210 2001-12-12 Emmanuel Briot <briot@gnat.com>
46211
46212 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
46213 and it adds dependencies to system.io.
46214
46215 2001-12-12 Pascal Obry <obry@gnat.com>
46216
46217 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
46218 variable name.
46219
46220 2001-12-11 Ed Schonberg <schonber@gnat.com>
46221
46222 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
46223 that is the parent of other generics, the instance body replaces the
46224 instance node. Retrieve the instance of the spec, which is the one
46225 that is visible in clients and within the body.
46226
46227 2001-12-11 Vincent Celier <celier@gnat.com>
46228
46229 * gnatmain.adb: Initial version.
46230
46231 * gnatmain.ads: Initial version.
46232
46233 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
46234
46235 * snames.adb: Updated to match snames.ads.
46236
46237 * snames.ads: Added Gnatstub.
46238
46239 2001-12-11 Vincent Celier <celier@gnat.com>
46240
46241 * prj-attr.adb (Initialization_Data): Change name from
46242 Initialisation_Data.
46243
46244 2001-12-11 Emmanuel Briot <briot@gnat.com>
46245
46246 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
46247 + and * applied to backslashed expressions like \r.
46248
46249 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
46250
46251 * g-os_lib.ads: String_List type added, Argument_List type is now
46252 subtype of String_List.
46253
46254 2001-12-11 Robert Dewar <dewar@gnat.com>
46255
46256 * g-os_lib.ads: Change copyright to FSF
46257 Add comments for String_List type
46258
46259 2001-12-11 Vincent Celier <celier@gnat.com>
46260
46261 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
46262 string to the buffer).
46263
46264 2001-12-11 Ed Schonberg <schonber@gnat.com>
46265
46266 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
46267 sem_attr.
46268
46269 * sem_attr.adb: Simplify previous fix for Address.
46270 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
46271 to avoid anomalies where the bound of the type appears to raise
46272 constraint error.
46273
46274 2001-12-11 Robert Dewar <dewar@gnat.com>
46275
46276 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
46277 handled.
46278
46279 2001-12-11 Ed Schonber <schonber@gnat.com>
46280
46281 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
46282 renamed unit before checking for recursive instantiations.
46283
46284 2001-12-11 Emmanuel Briot <briot@gnat.com>
46285
46286 * prj.ads: Add comments for some of the fields.
46287
46288 2001-12-11 Robert Dewar <dewar@gnat.com>
46289
46290 * lib-xref.adb (Output_Refs): Don't output type references outside
46291 the main unit if they are not otherwise referenced.
46292
46293 2001-12-11 Ed Schonberg <schonber@gnat.com>
46294
46295 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
46296 code and diagnose additional illegal uses
46297
46298 * sem_util.adb (Is_Object_Reference): An indexed component is an
46299 object only if the prefix is.
46300
46301 2001-12-11 Vincent Celier <celier@gnat.com>
46302
46303 * g-diopit.adb: Initial version.
46304
46305 * g-diopit.ads: Initial version.
46306
46307 * g-dirope.adb:
46308 (Expand_Path): Avoid use of Unbounded_String
46309 (Find, Wildcard_Iterator): Moved to child package Iteration
46310
46311 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
46312
46313 2001-12-11 Robert Dewar <dewar@gnat.com>
46314
46315 * sem_attr.adb: Minor reformatting
46316
46317 2001-12-11 Ed Schonberg <schonber@gnat.com>
46318
46319 * sem_ch3.adb: Clarify some ???.
46320
46321 2001-12-11 Robert Dewar <dewar@gnat.com>
46322
46323 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
46324 Exp_Pakd.Known_Aligned_Enough
46325
46326 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
46327 version is moved to Exp_Ch13.
46328
46329 2001-12-11 Robert Dewar <dewar@gnat.com>
46330
46331 * einfo.ads: Minor reformatting
46332
46333 * exp_ch5.adb: Add comment for previous.change
46334
46335 * ali.adb: New interface for extended typeref stuff.
46336
46337 * ali.ads: New interface for typeref stuff.
46338
46339 * checks.adb (Apply_Alignment_Check): New procedure.
46340
46341 * debug.adb: Add -gnatdM for modified ALI output
46342
46343 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
46344
46345 * lib-xref.adb: Extend generation of <..> notation to cover
46346 subtype/object types. Note that this is a complete rewrite,
46347 getting rid of the very nasty quadratic algorithm previously
46348 used for derived type output.
46349
46350 * lib-xref.ads: Extend description of <..> notation to cover
46351 subtype/object types. Uses {..} for these other cases.
46352 Also use (..) for pointer types.
46353
46354 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
46355
46356 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
46357 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
46358
46359 2001-12-11 Vincent Celier <celier@gnat.com>
46360
46361 * gnatcmd.adb:
46362 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
46363 Changed /BIND_ONLY to /ACTIONS=BIND
46364 Changed /LINK_ONLY to /ACTIONS=LINK
46365
46366 2001-12-11 Ed Schonberg <schonber@gnat.com>
46367
46368 * sem_ch8.adb (Find_Selected_Component): improved search for a
46369 candidate package in case of error.
46370
46371 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
46372 chain back on scope stack before reinstalling use clauses.
46373
46374 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
46375 is enabled, do not kill the code for the condition, to preserve
46376 warning.
46377
46378 2001-12-11 Robert Dewar <dewar@gnat.com>
46379
46380 * checks.adb (Insert_Valid_Check): Apply validity check to expression
46381 of conversion, not to result of conversion.
46382
46383 2001-12-11 Ed Schonberg <schonber@gnat.com>
46384
46385 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
46386 before freezing parent. If the declarations are mutually recursive,
46387 an access to the current record type may be frozen before the
46388 derivation is complete.
46389
46390 2001-12-05 Vincent Celier <celier@gnat.com>
46391
46392 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
46393 -c /COMPILE_ONLY, -l /LINK_ONLY
46394
46395 * opt.ads:
46396 (Bind_Only): New Flag
46397 (Link_Only): New flag
46398
46399 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
46400 and -l (Link_Only)
46401
46402 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
46403
46404 * make.adb:
46405 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
46406 (Gnatmake): Set the step flags. Only perform a step if the
46407 corresponding step flag is True.
46408 (Scan_Make_Arg): Reset the bind and link step flags when -u
46409 or -gnatc has been specified.
46410
46411 2001-12-05 Ed Schonberg <schonber@gnat.com>
46412
46413 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
46414 get bounds from right operand.
46415
46416 * sem_eval.adb: Minor reformatting
46417
46418 * exp_util.adb (Make_Literal_Range): use bound of literal rather
46419 than Index'First, its lower bound may be different from 1.
46420
46421 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
46422 and C48009J
46423
46424 2001-12-05 Vincent Celier <celier@gnat.com>
46425
46426 * prj-nmsc.adb Minor reformatting
46427
46428 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
46429 set and libraries are not supported.
46430
46431 2001-12-05 Ed Schonberg <schonber@gnat.com>
46432
46433 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
46434 private view explicitly, so the back-end can treat as a global
46435 when appropriate.
46436
46437 2001-12-05 Ed Schonberg <schonber@gnat.com>
46438
46439 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
46440 unit, always replace instance node with new body, for ASIS use.
46441
46442 2001-12-05 Vincent Celier <celier@gnat.com>
46443
46444 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
46445 libraries are not supported and both attributes Library_Name and
46446 Library_Dir are specified.
46447
46448 * prj-proc.adb (Expression): Set location of Result to location of
46449 first term.
46450
46451 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
46452 (prj-nmsc is now importing MLib.Tgt)
46453
46454 * prj-proc.adb: Put the change indicated above that was forgotten.
46455
46456 2001-12-05 Robert Dewar <dewar@gnat.com>
46457
46458 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
46459
46460 2001-12-05 Ed Schonberg <schonber@gnat.com>
46461
46462 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
46463 constraint, introduce explicit subtype declaration and derive from it.
46464
46465 * sem_ch3.adb: Minor reformatting
46466
46467 2001-12-05 Robert Dewar <dewar@gnat.com>
46468
46469 * checks.adb (Determine_Range): Increase cache size for checks.
46470 Minor reformatting
46471
46472 * exp_ch6.adb: Minor reformatting
46473 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
46474 a parameter whose root type is System.Address, since treating such
46475 subprograms as pure in the code generator is almost surely a mistake
46476 that will lead to unexpected results.
46477
46478 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
46479 change handling of conversions.
46480
46481 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
46482
46483 2001-12-05 Ed Schonberg <schonber@gnat.com>
46484
46485 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
46486 aggregate with static wrong size, attach generated Raise node to
46487 declaration.
46488
46489 2001-12-05 Robert Dewar <dewar@gnat.com>
46490
46491 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
46492 Fixes compilation abandoned bomb in B24009B.
46493
46494 2001-12-05 Ed Schonberg <schonber@gnat.com>
46495
46496 * sem_ch12.adb:
46497 Document use of Associated_Node on Selected_Components.
46498 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
46499 to clarify use of untyped descendant fields.
46500
46501 2001-12-05 Robert Dewar <dewar@gnat.com>
46502
46503 * prj-dect.ads: Add ??? comment
46504 Add 2001 to copyright notice (was not done in after all)
46505
46506 * prj-part.adb: Minor reformatting. Reword one awkward error message.
46507
46508 * prj.ads: Minor reformatting throughout, and add some ??? comments
46509
46510 * snames.ads: Minor reformatting
46511
46512 2001-12-05 Geert Bosch <bosch@gnat.com>
46513
46514 * snames.adb: Autoupdate
46515
46516 2001-12-05 Vincent Celier <celier@gnat.com>
46517
46518 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
46519
46520 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
46521
46522 * prj-env.adb: Minor comment changes (modifying -> extends).
46523
46524 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
46525
46526 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
46527 Tok_Extends.
46528
46529 * prj.adb (Initialize): Change Modifying to Extends.
46530
46531 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
46532
46533 * prj.ads: Minor comment change (Modifying -> extending).
46534
46535 * snames.ads: Change modifying to extends.
46536
46537 2001-12-05 Robert Dewar <dewar@gnat.com>
46538
46539 * sem_warn.adb: Remove stuff for conditionals, we are not going to
46540 do this after all.
46541
46542 * sem_warn.ads: Remove stuff for conditionals, we are not going to
46543 do this after all. Add 2001 to copyright notice
46544
46545 2001-12-04 Geert Bosch <bosch@gnat.com>
46546
46547 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
46548
46549 2001-12-04 Robert Dewar <dewar@gnat.com>
46550
46551 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
46552 location if we already have errors. Stops some cases of cascaded
46553 errors.
46554
46555 * errout.adb: Improve comment.
46556
46557 2001-12-04 Robert Dewar <dewar@gnat.com>
46558
46559 * sem_ch12.adb:
46560 (Analyze_Formal_Type_Definition): Defend against Error.
46561 (Analyze_Formal_Subprogram): Defend against Error.
46562
46563 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
46564 remove following semicolon if present. Removes cascaded error.
46565
46566 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
46567
46568 * bindgen.adb:
46569 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
46570 exceptions equals 0.
46571 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
46572 Fixes PIWG E tests (which have to be run with -gnatL).
46573
46574 2001-12-04 Robert Dewar <dewar@gnat.com>
46575
46576 * einfo.ads: Minor reformatting
46577
46578 2001-12-04 Ed Schonberg <schonber@gnat.com>
46579
46580 * einfo.ads: Block_Node points to the identifier of the block, not to
46581 the block node itself, to preserve the link when the block is
46582 rewritten, e.g. within an if-statement with a static condition.
46583
46584 * inline.adb (Cleanup_Scopes): recover block statement from block
46585 entity using new meaning of Block_Node.
46586
46587 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
46588 identifier of block node, rather than to node itself.
46589
46590 2001-12-04 Gary Dismukes <dismukes@gnat.com>
46591
46592 * layout.adb:
46593 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
46594 (Discrimify): Go back to setting the Etypes of the selected component
46595 because the Vname component does not exist at this point and will
46596 fail name resolution. Also set Analyzed.
46597 Remove with and use of Sem_Res.
46598
46599 2001-12-04 Arnaud Charlet <charlet@gnat.com>
46600
46601 * Makefile.in: (HIE_SOURCES): add s-fat*.
46602
46603 2001-12-04 Robert Dewar <dewar@gnat.com>
46604
46605 * sem_attr.adb:
46606 (Compile_Time_Known_Attribute): New procedure.
46607 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
46608 proper range check.
46609
46610 2001-12-04 Ed Schonberg <schonber@gnat.com>
46611
46612 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
46613 processing discriminants to diagnose illegal default values.
46614
46615 2001-12-04 Ed Schonberg <schonber@gnat.com>
46616
46617 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
46618 access discriminant within a type extension that constrains its
46619 parent discriminants.
46620
46621 2001-12-04 Ed Schonberg <schonber@gnat.com>
46622
46623 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
46624 is malformed, use instance of Any_Id to allow analysis to proceed.
46625
46626 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
46627 type definition is illegal.
46628 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
46629 misplaced.
46630
46631 2001-12-04 Ed Schonberg <schonber@gnat.com>
46632
46633 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
46634 constants.
46635
46636 2001-12-04 Robert Dewar <dewar@gnat.com>
46637
46638 * errout.adb: Minor reformatting
46639
46640 2001-12-04 Robert Dewar <dewar@gnat.com>
46641
46642 * exp_util.adb: Minor reformatting from last change
46643
46644 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
46645 which is a rewriting of an expression, traverse the original
46646 expression to remove warnings that may have been posted on it.
46647
46648 2001-12-04 Ed Schonberg <schonber@gnat.com>
46649
46650 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
46651 record that has other packed components.
46652
46653 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
46654
46655 * adaint.c: Minor cleanups.
46656
46657 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
46658
46659 * adaint.c: Do not use utime.h on vxworks.
46660
46661 2001-12-04 Arnaud Charlet <charlet@gnat.com>
46662
46663 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
46664 more confusion than it solves.
46665
46666 2001-12-04 Geert bosch <bosch@gnat.com>
46667
46668 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
46669
46670 2001-12-04 Geert Bosch <bosch@gnat.com>
46671
46672 * Makefile.in (update-sources): New target.
46673 For use by gcc_release script.
46674
46675 2001-12-04 Ed Schonberg <schonber@gnat.com>
46676
46677 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
46678 a configuration pragma, it is now legal wherever a pragma can appear.
46679
46680 2001-12-04 Zack Weinberg <zack@codesourcery.com>
46681
46682 * Makefile.in: Don't set ALL. Delete @cross_defines@,
46683 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
46684 is now @CROSS@ -DIN_GCC; update comment.
46685
46686 2001-12-04 Robert Dewar <dewar@gnat.com>
46687
46688 * einfo.adb (Has_Pragma_Pure_Function): New flag.
46689 Fix problem that stopped ceinfo from working
46690
46691 * einfo.ads (Has_Pragma_Pure_Function): New flag.
46692
46693 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
46694
46695 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
46696
46697 * gnatchop.adb:
46698 (File_Time_Stamp): New procedure.
46699 (Preserve_Mode): New boolean.
46700 (Write_Unit): Pass time stamp.
46701 Implement -p switch (preserve time stamps).
46702
46703 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
46704
46705 * gnatchop.adb: Do usage info for -p switch
46706
46707 * adaint.h (__gnat_set_file_time_name): New function
46708
46709 * adaint.c (__gnat_set_file_time_name): Implement
46710
46711 * adaint.h: Fix typo
46712
46713 2001-12-03 Robert Dewar <dewar@gnat.com>
46714
46715 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
46716 have Associated_Node.
46717
46718 2001-12-03 Robert Dewar <dewar@gnat.com>
46719
46720 * prj-proc.adb: Minor reformatting
46721
46722 * make.adb: Minor reformatting
46723
46724 2001-12-03 Geert Bosch <bosch@gnat.com>
46725
46726 * make.adb: Minor reformatting.
46727
46728 2001-12-03 Robert Dewar <dewar@gnat.com>
46729
46730 * sem_ch12.adb: Minor reformatting
46731
46732 2001-12-03 Ed Schonberg <schonber@gnat.com>
46733
46734 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
46735 push Standard on the stack before analyzing the instance body,
46736 in order to have a clean visibility environment.
46737
46738 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
46739
46740 2001-12-03 Ed Schonberg <schonber@gnat.com>
46741
46742 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
46743 instantiation of a body that contains an inlined body.
46744
46745 2001-12-03 Ed Schonberg <schonber@gnat.com>
46746
46747 * sem_ch12.adb:
46748 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
46749 to prevent freezing within formal packages.
46750 (Freeze_Subprogram_Body): If body comes from another instance that
46751 appeared before its own body, place freeze node at end of current
46752 declarative part, to prevent a back-end crash.
46753 (Inline_Instance_Body): Handle properly a package instance within
46754 a subprogram instance that is a child unit.
46755
46756 2001-12-01 Graham Stott <grahams@redhat.com>
46757
46758 * Makefile.in (misc.o): Add missing $(srcdir) prefix
46759 and add optabs.h dependency.
46760
46761 * misc.c: Include optabs.h
46762 (gnat_tree_code_type): Make static and const.
46763 (gnat_tree_code_length): Likewise.
46764 (gnat_tree_code_name): Likewise.
46765 (update_setjmp_buf): Obtain operands mode from insn_data.
46766
46767 2001-11-29 Richard Henderson <rth@redhat.com>
46768
46769 * init.c: Remove obsolete dwarf2 frame.h section.
46770
46771 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
46772
46773 * Make-lang.in (ada.generated-manpages): New dummy target.
46774
46775 2001-11-29 Ed Schonberg <schonber@gnat.com>
46776
46777 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
46778 into Command, an array conversion is illegal here. Uncovered by
46779 ACATS B460005.
46780
46781 2001-11-28 Geert Bosch <bosch@gnat.com>
46782
46783 * init.c: Minor whitespace changes.
46784
46785 2001-11-28 Doug Rupp <rupp@gnat.com>
46786
46787 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
46788 signal stack.
46789
46790 2001-11-28 Zack Weinberg <zack@codesourcery.com>
46791
46792 * misc.c (gnat_expand_constant): Move declaration above
46793 definition of lang_hooks.
46794 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
46795 (gnat_init): lang_expand_constant no longer exists.
46796
46797 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
46798 always have vprintf.
46799 (gnat_init): Always call set_internal_error_function.
46800
46801 2001-11-27 Andreas Jaeger <aj@suse.de>
46802
46803 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
46804
46805 2001-11-27 Laurent Guerby <guerby@acm.org>
46806
46807 * Makefile.in: Regenerate Ada dependencies.
46808
46809 2001-11-26 Richard Henderson <rth@redhat.com>
46810
46811 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
46812 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
46813 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
46814
46815 2001-11-25 Laurent Guerby <guerby@acm.org>
46816
46817 * sysdep.c (rts_get_*): Fix style.
46818
46819 2001-11-19 Laurent Guerby <guerby@acm.org>
46820
46821 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
46822 since it is of no apparent use and cause warnings.
46823
46824 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
46825
46826 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
46827 static too.
46828 (gnat_init): Don't return NULL.
46829 (finish_parse): Remove.
46830
46831 2001-11-17 Laurent Guerby <guerby@acm.org>
46832
46833 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
46834 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
46835 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
46836 * lang-spec.h: Add missing struct field to silence warnings.
46837 * sysdep.c (rts_get_*): Provide K&R prototype.
46838 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
46839 * traceback.c (Unlock_Task, Lock_Task): Likewise.
46840 * tracebak.c (__gnat_backtrace): Remove unused variable.
46841 * utils.c (end_subprog_body): Move to K&R style.
46842
46843 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
46844
46845 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
46846
46847 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
46848
46849 * misc.c (gnat_init): Change prototype. Include the
46850 functionality of the old init_parse and init_decl_processing.
46851 (gnat_init_decl_processing): New prototype.
46852 (init_parse): Remove.
46853 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
46854
46855 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46856
46857 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
46858 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
46859 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
46860 set_yydebug): Remove.
46861
46862 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46863
46864 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
46865 (struct lang_hooks): Constify.
46866 (language_string, lang_identify): Remove.
46867 * utils.c (init_decl_processing): Update.
46868
46869 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
46870
46871 * misc.c: Include langhooks-def.h.
46872 * Makefile.in: Update.
46873
46874 2001-10-30 Robert Dewar <dewar@gnat.com>
46875
46876 * style.adb:
46877 (Check_Identifier): Rewrite circuit to be compatible with use of letters
46878 in the upper half of ASCII.
46879 (Check_Identifier): Minor reformatting
46880
46881 2001-10-30 Geert Bosch <bosch@gnat.com>
46882
46883 * (Associated_Node, Set_Associated_Node): Do not check for
46884 Freeze_Entity.
46885
46886 2001-10-30 Robert Dewar <dewar@gnat.com>
46887
46888 * a-reatim.ads: Minor reformatting
46889
46890 2001-10-30 Robert Dewar <dewar@gnat.com>
46891
46892 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
46893 undocumented declarations.
46894
46895 2001-10-30 Pascal Obry <obry@gnat.com>
46896
46897 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
46898 to the binder and linker.
46899 Minor style fix.
46900
46901 * mdll.ads: Fix layout. Update copyright notice.
46902
46903 * mdll.adb: Fix layout. Update copyright notice.
46904
46905 2001-10-30 Robert Dewar <dewar@gnat.com>
46906
46907 * usage.adb: Minor fix to output for -gnaty.
46908
46909 2001-10-30 Ed Schonberg <schonber@gnat.com>
46910
46911 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
46912 to accommodate all its possible values.
46913
46914 * a-reatim.adb (Split): Special-case handling of Time_Span_First
46915 and of small absolute values of T.
46916
46917 2001-10-30 Richard Kenner <kenner@gnat.com>
46918
46919 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
46920 set_mem_attributes since not needed and wrong if RESULT if a REG;
46921 fixes ACATS failures.
46922
46923 2001-10-30 Geert Bosch <bosch@gnat.com>
46924
46925 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
46926 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
46927
46928 2001-10-30 Robert Dewar <dewar@gnat.com>
46929
46930 * bindusg.adb: Undocument -f switch.
46931
46932 * gnatcmd.adb: Remove /FULL_ELABORATION.
46933
46934 * opt.ads (Force_RM_Elaboration_Order): Document that this is
46935 obsolescent.
46936
46937 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
46938
46939 * gnatbind.adb: Minor update of warning msg.
46940
46941 2001-10-30 Vincent Celier <celier@gnat.com>
46942
46943 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
46944 for project file switches (-P (/PROJECT_FILE=),
46945 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
46946 or MEDIUM or HIGH)
46947
46948 2001-10-30 Geert Bosch <bosch@gnat.com>
46949
46950 * decl.c: Minor whitespace fixes.
46951
46952 2001-10-30 Richard Kenner <kenner@gnat.com>
46953
46954 * utils2.c (build_allocator): Test for SIZE overflow in array case too
46955
46956 2001-10-30 Geert Bosch <bosch@gnat.com>
46957
46958 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
46959 Found due to GCC 3.0 warning of using uninitialized value.
46960
46961 * layout.adb:
46962 (Get_Max_Size): Use variant record for tracking value/expression.
46963 Makes logic clearer and prevents warnings for uninitialized variables.
46964 (Layout_Array_Type): Use variant record for tracking value/expression.
46965 Makes logic clearer and prevents warnings for uninitialized variables.
46966
46967 2001-10-30 Robert Dewar <dewar@gnat.com>
46968
46969 * lib.adb: Minor reformatting
46970
46971 * s-taprop.ads: Minor reformatting
46972
46973 2001-10-29 Laurent Guerby <guerby@acm.org>
46974
46975 * init.c:
46976 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
46977 const.
46978 (_gnat_error_handler): Make MSG const.
46979
46980 2001-10-29 Richard Kenner <kenner@gnat.com>
46981
46982 * sysdep.c: Fix localtime_r problem on LynxOS.
46983 Also remove #elif to avoid warnings.
46984
46985 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
46986 used by this.
46987
46988 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
46989
46990 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
46991
46992 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
46993 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
46994 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
46995 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
46996 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
46997 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
46998 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
46999 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
47000 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
47001 types.ads, urealp.adb: Fix spelling errors.
47002
47003 2001-10-27 Laurent Guerby <guerby@acm.org>
47004
47005 * trans.c (gigi): Fix non determinism leading to bootstrap
47006 comparison failures for debugging information.
47007
47008 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
47009
47010 * gnat_rm.texi: Use @./@: where appropriate.
47011
47012 2001-10-26 Robert Dewar <dewar@gnat.com>
47013
47014 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
47015
47016 2001-10-26 Richard Kenner <kenner@gnat.com>
47017
47018 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
47019
47020 2001-10-26 Richard Kenner <kenner@gnat.com>
47021
47022 * decl.c (validate_size): Modify message for bad size to avoid
47023 implication that compiler is modifying the size.
47024
47025 2001-10-26 Robert Dewar <dewar@gnat.com>
47026
47027 * prj-util.adb: Minor reformatting. Fix bad header format.
47028
47029 2001-10-26 Robert Dewar <dewar@gnat.com>
47030
47031 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
47032
47033 * sinfo.ads: Clarify use of Associated_Node (documentation only).
47034
47035 * sem_ch12.adb: Change Node4 to Associated_Node. Change
47036 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
47037 much more narrowly in places where needed. These are cleanups.
47038
47039 2001-10-26 Joel Brobecker <brobecke@gnat.com>
47040
47041 * 5zosinte.ads (null_pthread): new constant.
47042
47043 * 5ztaprop.adb:
47044 (Initialize_TCB): Initialize thread ID to null, to be able to verify
47045 later that this field has been set.
47046 (Finalize_TCB): ditto.
47047 (Suspend_Task): Verify that the thread ID is not null before using it.
47048 (Resume_Task): ditto.
47049
47050 * s-tasdeb.adb:
47051 (Resume_All_Tasks): Lock the tasks list before using it.
47052 (Suspend_All_Tasks): ditto.
47053
47054 2001-10-26 Richard Kenner <kenner@gnat.com>
47055
47056 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
47057 Make constant variant of designated type for Is_Access_Constant.
47058 Call update_pointer_to with main variant.
47059
47060 * trans.c (process_freeze_entity, process_type):
47061 Call update_pointer_to on main variant.
47062
47063 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
47064 If main variant, update all other variants.
47065
47066 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
47067 TREE_STATIC.
47068
47069 2001-10-26 Robert Dewar <dewar@gnat.com>
47070
47071 * prj-util.adb: Minor reformatting
47072
47073 2001-10-26 Robert Dewar <dewar@gnat.com>
47074
47075 * prj-util.adb: Minor reformatting
47076
47077 2001-10-26 Robert Dewar <dewar@gnat.com>
47078
47079 * prj-attr.adb: Minor reformatting throughout
47080
47081 2001-10-26 Robert Dewar <dewar@gnat.com>
47082
47083 * prj-attr.ads: Minor reformatting
47084 Add ??? comment (this whole spec has almost no comments)
47085
47086 2001-10-26 Vincent Celier <celier@gnat.com>
47087
47088 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
47089 ("//") that precede the drive letter on Interix.
47090
47091 2001-10-26 Geert Bosch <bosch@gnat.com>
47092
47093 * gnat_rm.texi: Add GNAT Reference Manual.
47094
47095 2001-10-25 Robert Dewar <dewar@gnat.com>
47096
47097 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
47098 is Error. Similar change for other renaming cases.
47099
47100 2001-10-25 Robert Dewar <dewar@gnat.com>
47101
47102 * s-atacco.ads: Add pragma Inline_Always for functions.
47103 Fix header format. Add copyright 2001
47104
47105 2001-10-25 Ed Schonberg <schonber@gnat.com>
47106
47107 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
47108 return Error rather than Empty so that analysis can proceed.
47109
47110 2001-10-25 Ed Schonberg <schonber@gnat.com>
47111
47112 * sem_util.adb (Enter_Name): better handling of cascaded error
47113 messages when a unit appears in its own context.
47114
47115 2001-10-25 Ed Schonberg <schonber@gnat.com>
47116
47117 * sem_util.adb (Defining_Entity): in case of error, attach created
47118 entity to specification, so that semantic analysis can proceed.
47119
47120 2001-10-25 Robert Dewar <dewar@gnat.com>
47121
47122 * sem_util.adb
47123 (Defining_Entity): Deal with Error.
47124 (Process_End_Label): Deal with bad end label for.
47125
47126 2001-10-25 Ed Schonberg <schonber@gnat.com>
47127
47128 * sem_elab.adb (Check_A_Call): refine message when call is in an
47129 instance but callee is not declared in the generic unit.
47130
47131 2001-10-25 Ed Schonberg <schonber@gnat.com>
47132
47133 * sem_elab.adb (Check_A_Call): check for renaming before finding the
47134 enclosing unit, which may already be different from the calling unit.
47135
47136 2001-10-25 Geert Bosch <bosch@gnat.com>
47137
47138 * 4gintnam.ads: fix header format.
47139
47140 2001-10-25 Ed Schonberg <schonber@gnat.com>
47141
47142 * sem_res.adb (Resolve_Call): if the call is actually an indexing
47143 operation on the result of a parameterless call, perform elaboration
47144 check after the node has been properly rewritten.
47145
47146 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
47147 inlined within the generic tree, the defining identifier is not a
47148 compilation_unit.
47149
47150 2001-10-25 Ed Schonberg <schonber@gnat.com>
47151
47152 * sem_res.adb (Resolve): special-case resolution of Null in an
47153 instance or an inlined body to avoid view conflicts.
47154
47155 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
47156 compatibility by retrieving the access type of the generic copy.
47157
47158 2001-10-25 Robert Dewar <dewar@gnat.com>
47159
47160 * sem_ch3.adb:
47161 (Analyze_Number_Declaration): Handle error expression.
47162 (Signed_Integer_Type_Declaration): Handle error bound.
47163 (Analyze_Subtype_Indication): Handle error range.
47164
47165 * sem_util.adb (Get_Index_Bounds): Check for Error.
47166
47167 2001-10-25 Robert Dewar <dewar@gnat.com>
47168
47169 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
47170 in no run time mode.
47171
47172 2001-10-25 Pascal Obry <obry@gnat.com>
47173
47174 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
47175 mode case for ALLOC case.
47176
47177 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
47178 all platforms. Improvement of last change.
47179
47180 2001-10-25 Robert Dewar <dewar@gnat.com>
47181
47182 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
47183
47184 2001-10-25 Geert Bosch <bosch@gnat.com>
47185
47186 * osint.adb (Is_Relative): Remove duplicate.
47187
47188 2001-10-25 Pascal Obry <obry@gnat.com>
47189
47190 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
47191 pathnames in UNIX and DOS style with drive letter.
47192 (Is_Relative): new routine.
47193
47194 * osint.adb: Minor reformatting
47195
47196 * osint.adb (Is_Relative): implementation using
47197 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
47198
47199 2001-10-25 Pascal Obry <obry@gnat.com>
47200
47201 * g-dirope.adb (Basename): correctly compute offset between the
47202 original Path and the translated one.
47203
47204 * g-dirope.adb: (Base_Name): add some comments.
47205
47206 2001-10-25 Robert Dewar <dewar@gnat.com>
47207
47208 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
47209 in HIE mode, avoids compilation abandoned message
47210
47211 * exp_imgv.adb: Correct typo in previous change
47212
47213 * exp_imgv.adb: Correct typo in previous change (not my day!)
47214
47215 2001-10-25 Robert Dewar <dewar@gnat.com>
47216
47217 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
47218
47219 2001-10-25 Pascal Obry <obry@gnat.com>
47220
47221 * g-awk.ads: Move all pragma inlines next to the routine
47222 declarations. This is more uniform with other GNAT spec.
47223
47224 2001-10-22 Geert Bosch <bosch@gnat.com>
47225
47226 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
47227
47228 2001-10-19 Geert Bosch <bosch@gnat.com>
47229
47230 * Makefile.in (tools, gnattools): Remove gnatmem.
47231
47232 2001-10-17 Richard Henderson <rth@redhat.com>
47233
47234 * Makefile.in (misc.o): Depend on langhooks.h.
47235 * misc.c: Include it.
47236 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
47237 (LANG_HOOKS_DECODE_OPTION): New.
47238 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
47239
47240 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
47241
47242 * trans.c (tree_transform): Adjust to recent change in
47243 expand_asm_operands to implement named asm operands.
47244
47245 2001-10-11 Ed Schonberg <schonber@gnat.com>
47246
47247 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
47248 renaming of discriminant for mutable record type.
47249
47250 2001-10-11 Robert Dewar <dewar@gnat.com>
47251
47252 * validsw.adb: Properly save -gnatVn status.
47253
47254 2001-10-11 Robert Dewar <dewar@gnat.com>
47255
47256 * usage.adb: Add lines for V switch.
47257
47258 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
47259 (/VALIDITY_CHECKING).
47260
47261 2001-10-11 Ed Schonberg <schonber@gnat.com>
47262
47263 * sem_type.adb (Add_One_Interp): an operator for a type declared in
47264 an extension of System is known to be visible.
47265
47266 2001-10-11 Ed Schonberg <schonber@gnat.com>
47267
47268 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
47269 properly. Fixes regression on ACATS C34005G.
47270
47271 2001-10-11 Robert Dewar <dewar@gnat.com>
47272
47273 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
47274 loop in generic instance, since this is likely not very useful.
47275
47276 2001-10-11 Robert Dewar <dewar@gnat.com>
47277
47278 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
47279 the error message for high integrity mode.
47280
47281 * rtsfind.adb (RTE): Give message if we try to find an entity that
47282 is not available in high integrity mode.
47283
47284 * rtsfind.ads:
47285 (OK_To_Use_In_HIE_Mode): New array.
47286 (RTE): May return Empty in high integrity mode.
47287
47288 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
47289 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
47290
47291 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
47292 unit if not inlined always and in no runtime mode. Fixes problem
47293 caused by new Rtsfind changes.
47294
47295 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
47296 body is deleted.
47297
47298 * rtsfind.adb (RTE): Make sure we do not try to load unit after
47299 giving message for entity not available in high integrity mode.
47300
47301 2001-10-11 Pascal Obry <obry@gnat.com>
47302
47303 * impunit.adb: Add GNAT.CRC32.
47304
47305 2001-10-11 Ed Schonberg <schonber@gnat.com>
47306
47307 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
47308 properly the case where one universal operand in a non-static
47309 exponentiation of a real literal.
47310
47311 2001-10-11 Ed Schonberg <schonber@gnat.com>
47312
47313 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
47314 clause, return the gobal finalization list, for lack of anthing else.
47315
47316 2001-10-11 Ed Schonberg <schonber@gnat.com>
47317
47318 * exp_ch7.adb (Make_Transient_Block): if statement is within
47319 exception handler, always use new transient scope to place Clean
47320 procedure.
47321
47322 2001-10-11 Pascal Obry <obry@gnat.com>
47323
47324 * Makefile.in:
47325 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
47326 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
47327 (GNATLS_RTL_OBJS): add g-crc32.o
47328 (GNATMAKE_RTL_OBJS): add g-crc32.o
47329
47330 * ali-util.adb:
47331 (CRC_Match): new function.
47332 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
47333 instead of the previous simple checksum algorithm.
47334 (Time_Stamp_Mismatch): use CRC_Match for comparison.
47335 (Set_Source_Table): idem.
47336
47337 * ali-util.ads:
47338 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
47339 instead of simple checksum.
47340 (CRC_Match): new function.
47341 (CRC_Error): new constant.
47342
47343 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
47344 a CRC now and not a simple checksum. A CRC uses lower-case hex
47345 letters, fixes ambiguity in parsing.
47346
47347 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
47348 is what this variable will store.
47349
47350 * bcheck.adb: Change reference to chechsum in comments by CRC.
47351 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
47352 rename All_Checksum_Match to All_CRC_Match. Change due to API
47353 renaming since now GNAT does not use a simple checksum but a
47354 CRC using GNAT.CRC32.
47355
47356 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
47357 now and not anymore a simple checksum.
47358
47359 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
47360 places.
47361
47362 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
47363
47364 * scans.adb:
47365 (Restore_Scan_State): rename Checksum to CRC.
47366 (Save_Scan_State): idem.
47367
47368 * scans.ads:
47369 With GNAT.CRC32.
47370 (Checksum): rename to CRC.
47371 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
47372
47373 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
47374 GNAT.CRC32). Update copyright notice.
47375
47376 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
47377 GNAT.CRC32). Update copyright notice.
47378
47379 * scn.adb:
47380 (Accumulate_Checksum): removed.
47381 (Update): new procedure. Add a wide-character into the CRC.
47382
47383 * sinput-l.adb:
47384 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
47385 (Load_File): fix initialization of S (change Source_Checksum to
47386 Source_CRC)
47387
47388 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
47389 Source_CRC in S initialization.
47390
47391 * sinput.adb (Source_Checksum): renamed to Source_CRC.
47392
47393 * sinput.ads (Source_Checksum): renamed to Source_CRC.
47394 Update comments for the CRC.
47395
47396 * types.adb (Hex): Use lowercase for the letter part.
47397
47398 * types.ads (Get_Hex_String): Returns the hexadecimal representation
47399 for a word. This is currently used only for CRC. In previous version,
47400 the checksum was using a representation with all letter being
47401 upper-case. With the new implementation (using CRC) we do not remove
47402 the 32th bit of the CRC, so we can have an upper-case starting letter
47403 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
47404 It is ambigous since the CRC was optional and could be followed by
47405 options like EB, EE. So now this routines uses lower-case letter for
47406 the hexadecimal representation. Strange enough only lower case letters
47407 where checked in Scan_ALI (even if this was not a possible case).
47408
47409 * gnatvsn.ads (Library_Version): changed to 3.15a.
47410
47411 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
47412 for the compiler.
47413
47414 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
47415 for the compiler.
47416
47417 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
47418 Add 2001 to copyright notice
47419 (Accumulate_Checksum): Modify to use System.CRC32.
47420
47421 * ali-util.ads: Redo changes of previous revision to continue to use
47422 the word Checksum. Add 2001 to copyright notice.
47423
47424 * ali.adb: Undo some of previous changes, not needed.
47425 Keep the change for lower case letters in the checksum.
47426
47427 * ali.ads: Undo previous change not needed.
47428
47429 * bcheck.adb: Undo most of previous change, not needed.
47430 But do use Checksums_Match for checksum comparison.
47431
47432 * gnatls.adb: Undo most of previous change, not needed.
47433 But do use Checksums_Match for comparing checksums.
47434
47435 * lib-load.adb: Undo previous change, not needed.
47436
47437 * lib-writ.adb: Undo previous change, not needed.
47438
47439 * lib-writ.ads: Document that checksums use lower case,
47440 not upper case letters.
47441
47442 * scans.adb: Undo previous change, not needed
47443
47444 * scans.ads: Undo previous change, not needed.
47445
47446 * scn-nlit.adb: Undo previous changes, not needed.
47447
47448 * scn-slit.adb: Undo previous change, not needed. Fix header format.
47449
47450 * scn.adb:
47451 (Accumulate_Checksum): Use System.CRC32.
47452 (Initialize_Checksum): New procedure.
47453 Remove other changes of previous revision.
47454
47455 * sinput-p.adb: Undo previous change, not needed.
47456
47457 * sinput.adb: Undo previous change, not needed.
47458
47459 * sinput-l.adb: Undo previous change, not needed.
47460
47461 * sinput.ads: Undo previous change, not needed. Keep only comment
47462 on new checksum algorithm
47463
47464 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
47465 Also remove a-tags and a-stream from GNAT sources.
47466
47467 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
47468
47469 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
47470
47471 2001-10-11 Geert Bosch <bosch@gnat.com>
47472
47473 * einfo.h: Regenerate.
47474
47475 * nmake.ads: Regenerate.
47476
47477 * nmake.adb: Regenerate.
47478
47479 * sinfo.h: Regenerate.
47480
47481 * treeprs.adb: Regenerate.
47482
47483 2001-10-10 Geert Bosch <bosch@gnat.com>
47484
47485 * gnat-style.texi: New file describing coding guidelines for Ada.
47486
47487 2001-10-10 Ed Schonberg <schonber@gnat.com>
47488
47489 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
47490 is Flag174.
47491
47492 2001-10-10 Geert Bosch <bosch@gnat.com>
47493
47494 * snames.ads: Add new names for project facility.
47495
47496 * snames.adb: Update to reflect snames.ads changes.
47497
47498 * snames.h: Update to reflect snames.ads changes.
47499
47500 2001-10-10 Vincent Celier <celier@gnat.com>
47501
47502 * make.adb:
47503 (Add_Switches): reflect the changes for the switches attributes
47504 Default_Switches indexed by the programming language,
47505 Switches indexed by the file name.
47506 (Collect_Arguments_And_Compile): Idem.
47507 Reflect the attribute name changes.
47508
47509 * prj-attr.adb:
47510 (Initialisation_Data): Change the names of some packages and
47511 attributes.
47512 (Initialize): process case insensitive associative arrays.
47513
47514 * prj-attr.ads:
47515 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
47516
47517 * prj-dect.adb:
47518 (Parse_Attribute_Declaration): For case insensitive associative
47519 arrays, set the index string to lower case.
47520
47521 * prj-env.adb:
47522 Reflect the changes of the project attributes.
47523
47524 * prj-nmsc.adb:
47525 Replace Check_Naming_Scheme by Ada_Check and
47526 Language_Independent_Check.
47527
47528 * prj-nmsc.ads:
47529 Replaced Check_Naming_Scheme by 2 procedures:
47530 Ada_Check and Language_Independent_Check.
47531
47532 * prj-proc.adb:
47533 (Process_Declarative_Items): For case-insensitive associative
47534 arrays, set the index string to lower case.
47535 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
47536 Prj.Nmsc.Check_Naming_Scheme.
47537
47538 * prj-tree.adb:
47539 (Case_Insensitive): New function
47540 (Set_Case_Insensitive): New procedure
47541
47542 * prj-tree.ads:
47543 (Case_Insensitive): New function
47544 (Set_Case_Insensitive): New procedure
47545 (Project_Node_Record): New flag Case_Insensitive.
47546
47547 * prj-util.adb:
47548 (Value_Of): new function to get the string value of a single
47549 string variable or attribute.
47550
47551 * prj-util.ads:
47552 (Value_Of): new function to get the string value of a single
47553 string variable or attribute.
47554
47555 * prj.adb:
47556 (Ada_Default_Spec_Suffix): New function
47557 (Ada_Default_Impl_Suffix): New function
47558 Change definitions of several constants to reflect
47559 new components of record types.
47560
47561 * prj.ads:
47562 (Naming_Data): Change several components to reflect new
47563 elements of naming schemes.
47564 (Project_Data): New flags Sources_Present and
47565 Language_Independent_Checked.
47566 (Ada_Default_Spec_Suffix): New function.
47567 (Ada_Default_Impl_Suffix): New function.
47568
47569 * snames.ads:
47570 Modification of predefined names for project manager: added
47571 Implementation, Specification_Exceptions, Implementation_Exceptions,
47572 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
47573 Default_Switches, _Languages, Builder, Cross_Reference,
47574 Finder. Removed Body_Part, Specification_Append, Body_Append,
47575 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
47576 Gnatlink.
47577
47578 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
47579 Add comments.
47580
47581 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
47582 not that it is Nil_Variable_Value.
47583
47584 * prj.ads: Add ??? for uncommented declarations
47585
47586 2001-10-10 Ed Schonberg <schonber@gnat.com>
47587
47588 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
47589 constant, do not indicate possible modification, so that gigi can
47590 treat it as a bona fide constant.
47591
47592 2001-10-10 Robert Dewar <dewar@gnat.com>
47593
47594 * sem_prag.adb: Add processing for pragma External.
47595
47596 * snames.ads: Add entry for pragma External.
47597
47598 * par-prag.adb: Add pragma External.
47599
47600 * snames.adb: Updated to match snames.ads.
47601
47602 2001-10-10 Ed Schonberg <schonber@gnat.com>
47603
47604 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
47605 a dynamic task if the allocator appears in an indexed assignment
47606 or selected component assignment.
47607
47608 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
47609 For a dynamic task in an assignment statement, use target of
47610 assignment to generate meaningful name.
47611
47612 2001-10-10 Ed Schonberg <schonber@gnat.com>
47613
47614 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
47615 a generic package.
47616
47617 * einfo.ads: Body_Entity is also defined for generic package.
47618 Documentation change only
47619
47620 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
47621 others_choice for a discriminated component initialization,
47622 convert discriminant references into the corresponding discriminals.
47623
47624 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
47625 only if original type is private and expression has to be wrapped
47626 in a conversion.
47627
47628 * checks.adb:
47629 (Apply_Constraint_Check): Do not perform length check
47630 if expression is an aggregate with only an others_choice.
47631 (Length_N_Cond): two references to the same in_parameter
47632 (typically the discriminal in an init_proc) denote the same value.
47633 Two useful optimization uncovered by bugfixes above.
47634
47635 2001-10-10 Robert Dewar <dewar@gnat.com>
47636
47637 * xeinfo.adb: Change int to char in translation of enumeration types.
47638 This fixes a problem in the C representation of component alignment.
47639 Add 2001 to copyright notice
47640
47641 2001-10-10 Richard Kenner <kenner@gnat.com>
47642
47643 * decl.c: (validate_size): Do check size of object of integral type
47644 if it is a packed array type.
47645
47646 2001-10-10 Richard Kenner <kenner@gnat.com>
47647
47648 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
47649 VAR_DECL for constant if not Is_Public but -O0.
47650
47651 2001-10-10 Richard Kenner <kenner@gnat.com>
47652
47653 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
47654
47655 2001-10-10 Geert Bosch <bosch@gnat.com>
47656
47657 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
47658 use '/' as switch character, allowing for absolute file names.
47659
47660 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
47661
47662 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
47663 FSF address.
47664
47665 2001-10-08 Geert Bosch <bosch@gnat.com>
47666
47667 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
47668 Automatically build utilities when files need to be regenerated.
47669
47670 2001-10-08 Geert Bosch <bosch@gnat.com>
47671
47672 * xsnames.adb: New utility for updating snames.ads and snames.adb
47673
47674 2001-10-08 Zack Weinberg <zack@codesourcery.com>
47675
47676 * Make-lang.in (ADAFLAGS): Add -W -Wall.
47677 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
47678 (gnat1): Also depend on attribs.o.
47679 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
47680 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
47681 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
47682 (ADAFLAGS): Add -W -Wall.
47683 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
47684 take out CFLAGS.
47685
47686 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
47687 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
47688 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
47689 Use $(ADAC), not $(CC), as compilation command.
47690
47691 (gnattools): Depend directly on tools to build, don't use
47692 recursive make.
47693 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
47694
47695 * einfo.h, sinfo.h: New files (autogenerated).
47696
47697 2001-10-08 Richard Henderson <rth@redhat.com>
47698
47699 * comperr.adb (Abort_In_Progress): New.
47700 (Compiler_Abort): Use it to prevent recursion.
47701
47702 2001-10-08 Robert Dewar <dewar@gnat.com>
47703
47704 * atree.adb: Set Error_Posted in Error node, helps error recovery.
47705
47706 * par-endh.adb (Output_End_Expected): We should also not test
47707 Error_Posted on the Error node, since now it is always set.
47708
47709 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
47710 to help error recovery. Part of general work on 9407-004.
47711
47712 * par.adb: Add ??? for misuse of error
47713
47714 * sem_res.adb:
47715 (Resolve): Defend against Error, fixes 9407-003.
47716 (Resolve_Discrete_Subtype_Indication): Defend against Error.
47717
47718 * sinfo.ads (N_Error): Now has Etype field (which will be set
47719 to Any_Type to help error recovery).
47720
47721 2001-10-08 Richard Kenner <kenner@gnat.com>
47722
47723 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
47724 Consistently set MEM attributes from expression; fixes
47725 bootstrap failure on x86.
47726
47727 2001-10-08 Geert Bosch <bosch@gnat.com>
47728
47729 * 5oosinte.adb: Add 2001 to copyright notice.
47730
47731 2001-10-08 Geert Bosch <bosch@gnat.com>
47732
47733 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
47734
47735 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
47736
47737 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
47738
47739 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
47740
47741 2001-10-05 Geert Bosch <bosch@gnat.com>
47742
47743 * adaint.h: Small formatting fix.
47744
47745 2001-10-04 Geert Bosch <bosch@gnat.com>
47746
47747 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
47748 Arg is int, not FILE *, in dummy version of functions.
47749
47750 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
47751 Arg is int, not FILE *.
47752
47753 2001-10-04 Geert Bosch <bosch@gnat.com>
47754
47755 * 3lsoccon.ads: Added file, missed with initial check ins.
47756
47757 * 4lintnam.ads: Fix header format.
47758 Change Linux to GNU/Linux.
47759
47760 * 5iosinte.adb: Change Linux to GNU/Linux.
47761
47762 * 5iosinte.ads: Change Linux to GNU/Linux.
47763
47764 * 5itaprop.adb: Change Linux to GNU/Linux.
47765
47766 * 5itaspri.ads: Change Linux to GNU/Linux.
47767 Update copyright notice.
47768
47769 * 5lintman.adb: Change Linux to GNU/Linux.
47770
47771 * 5lml-tgt.adb: Change Linux to GNU/Linux.
47772
47773 * 5losinte.ads: Change Linux to GNU/Linux.
47774
47775 * 5lsystem.ads: Change Linux to GNU/Linux.
47776
47777 * 5qosinte.adb: Change Linux to GNU/Linux.
47778
47779 * 5qosinte.ads: Change Linux to GNU/Linux.
47780
47781 * 5qparame.ads: Change Linux to GNU/Linux.
47782
47783 * 5qtaprop.adb: Change Linux to GNU/Linux.
47784
47785 * 5qtaspri.ads: Change Linux to GNU/Linux.
47786 Add 2001 to copyright notice.
47787
47788 * 5vintman.ads: Change Linux to GNU/Linux.
47789 Fix header format. Add 2001 to copyright notice.
47790
47791 * g-soccon.ads: Change Linux to GNU/Linux.
47792
47793 * g-trasym.ads: Change Linux to GNU/Linux.
47794 Add 2001 to copyright notice.
47795
47796 * memtrack.adb: Change Linux to GNU/Linux.
47797
47798 * s-intman.ads: Change Linux to GNU/Linux.
47799 Add 2001 to copyright notice. Fix header format.
47800
47801 * s-stache.adb: Change Linux to GNU/Linux.
47802
47803 * adaint.c: Change Linux to GNU/Linux.
47804
47805 * cio.c: Change Linux to GNU/Linux.
47806
47807 * cstreams.c: Change Linux to GNU/Linux.
47808
47809 * init.c: Change Linux to GNU/Linux.
47810
47811 * gmem.c: Change Linux to GNU/Linux.
47812
47813 * tracebak.c: Change Linux to GNU/Linux.
47814
47815
47816 2001-10-02 Geert Bosch <bosch@gnat.com>
47817
47818 * misc.c (insert_default_attributes): Add dummy version.