OSDN Git Service

* decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-04-17  Eric Botcazou  <ebotcazou@adacore.com>
2
3         * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4         objects by default.
5         * fe.h (Debug_Flag_Dot_A): Delete.
6         * debug.adb (-gnatd.a): Update documentation.
7
8 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
9
10         * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
11         "not null" parameter.
12
13 2008-04-17  Samuel Tardieu  <sam@rfc1149.net>
14
15         * g-socket.adb: Add a message "IPv6 not supported" to the
16         Socket_Error exception.
17
18 2008-04-16  Samuel Tardieu  <sam@rfc1149.net>
19
20         PR ada/29015
21         * sem_ch12.adb (Instantiate_Type): Check whether the full view of
22         the type is known instead of the underlying type.
23
24 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
25
26         PR ada/22387
27         * exp_ch5.adb (Expand_Assign_Record): Within an initialization
28         procedure for a derived type retrieve the discriminant values from
29         the parent using the corresponding discriminant.
30
31 2008-04-15  Samuel Tardieu  <sam@rfc1149.net>
32             Gary Dismukes  <dismukes@adacore.com>
33
34         PR ada/28733
35         * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
36         which is not an entity (and hence not a package).
37         (End_Use_Package): Ditto.
38
39 2008-04-15  Ed Schonberg  <schonberg@adacore.com>
40
41         PR ada/16086
42         * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
43         protected operation that matches the signature, not only an entry, a
44         regular subprogram or a literal.
45
46 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
47
48         * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
49         * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
50         if a size or alignment is specified.  Do not take into account
51         alignment promotions for the computation of the object's size.
52         <type>: Call maybe_pad_type only if a size or alignment is specified.
53         (maybe_pad_type): Really reuse the RM_Size of the original type if
54         requested.
55         * trans.c (Attribute_to_gnu): Fix a couple of nits.
56         * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
57         statements.  Use the padded view of the type when copying between
58         padded objects of the same underlying type.
59
60 2008-04-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61
62         * vms_data.ads: Fix typo in constant.
63         * gen-soccon.c: Fix typo in error string.
64         * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
65         Fix typos.
66         * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
67         bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
68         erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
69         exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
70         exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
71         g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
72         mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
73         s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
74         s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
75         sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
76         sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
77         sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
78         sinfo.ads: Fix typos in comments.
79
80 2008-04-14  Robert Dewar  <dewar@adacore.com>
81
82         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
83         to every non-object and change error message.
84
85 2008-04-14  Robert Dewar  <dewar@adacore.com>
86
87         * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
88         * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
89         directly.
90
91 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
92
93         PR ada/18680
94         * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
95         apply pragma Linker_Section on type.
96
97 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
98
99         PR ada/16098
100         * sem_prag.adb (Error_Pragma_Ref): New.
101         (Process_Convention): Specialized message for non-local
102         subprogram renaming. Detect the problem in homonyms as well.
103
104 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
105
106         PR ada/15915
107         * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
108         * sem_ch12.adb (Instantiate_Object): Use it.
109         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
110         storage pool denotes a variable as per RM 13.11(15).
111
112 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
113
114         * sem_util.ads, sem_util.adb (In_Subprogram): New function.
115         * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
116
117 2008-04-14  Rolf Ebert  <rolf.ebert.gcc@gmx.de>
118
119         PR ada/20822
120         * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
121         line endings even on non-Unix platforms.
122
123 2008-04-14  Samuel Tardieu  <sam@rfc1149.net>
124
125         PR ada/35050
126         * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
127         renaming information.
128
129 2008-04-13  Samuel Tardieu  <sam@rfc1149.net> 
130
131         PR ada/17985
132         * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
133         itself.
134
135 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
136
137         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
138         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
139         snames.ads, sprint.adb, stand.ads, stringt.ads,
140         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
141         switch.ads, sysdep.c, table.adb, table.ads,
142         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
143         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
144         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
145         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
146         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
147         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
148         Fix comment typos.
149
150         * sem_ch10.adb, sem_ch10.ads,
151         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
152         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
153         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
154         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
155         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
156         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
157         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
158         sem_warn.ads: Fix comment typos.
159
160         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
161         s-soflin.ads, s-stalib.ads, s-stausa.adb,
162         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
163         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
164         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
165         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
166         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
167         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
168         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
169         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
170         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
171         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
172         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
173         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
174         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
175         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
176         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
177         sem_cat.adb, sem_cat.ads: Fix comment typos.
178
179 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
180
181         PR ada/35825
182         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
183
184 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
185
186         * s-linux-hppa.ads: Fix syntax errors.
187
188 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
189
190         * gnat_ugn.texi: Fix typos.
191         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
192         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
193         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
194         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
195         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
196         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
197         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
198         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
199         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
200         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
201         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
202         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
203         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
204         s-osinte-darwin.ads, s-osinte-freebsd.ads,
205         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
206         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
207         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
208         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
209         s-parame-hpux.ads, s-parame-vms-alpha.ads,
210         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
211         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
212         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
213         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
214         s-rident.ads: Fix comment typos.
215
216 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
217
218         PR ada/28305
219         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
220         environment if generic instance is a top-level one.
221
222 2008-04-09  Doug Rupp  <rupp@adacore.com>
223
224         * decl.c (validate_size): Set minimum size for fat pointers same as
225         access types. Code clean ups.
226
227         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
228         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
229
230         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
231
232         * s-crtl.ads (malloc32) New function, alias for malloc
233         (realloc32) New function, alias for realloc
234
235         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
236
237         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
238         allocator size is 32 and default pointer size is 64.
239         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
240         lhs type if smaller, whatever the modes.
241
242         * gigi.h (malloc32_decl): New macro definition
243
244         * utils.c (init_gigi_decls): New malloc32_decl
245         Various code clean ups.
246
247         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
248         Task_Address vice System.Address.
249
250         * s-taspri-vms.ads: Import System.Aux_DEC
251         (Task_Address): New subtype of System.Aux_DEC.Short_Address
252         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
253
254         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
255         Task_Address vice System.Address.
256
257         * s-inmaop-vms.adb: Import System.Task_Primitives
258         (To_Address): Unchecked convert to Task_Address vice System.Address
259
260         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
261         expires now.
262         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
263         (To_Address) Unchecked convert to Task_Address vice System.Address
264
265         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
266
267         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
268
269 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
270
271         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
272         (fdesc_type_node): Define.
273         (null_fdesc_node): Likewise.
274         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
275         uses descriptors for vtables and the type comes from a dispatch table,
276         return the descriptor type.
277         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
278         uses descriptors for vtables and the type comes from a dispatch table,
279         build a descriptor in the static case and copy the existing one in the
280         non-static case.
281         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
282         the type is a pointer-to-subprogram coming from a dispatch table,
283         return the null descriptor.
284         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
285         vtables, the source type is the descriptor type and the target type
286         is a pointer type, first build the pointer.
287         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
288         build the descriptor type and the null descriptor.
289
290 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
291
292         * decl.c (prepend_attributes): Fix typo.
293         * trans.c (Pragma_to_gnu): Likewise.
294         * utils.c (gnat_genericize): Likewise.
295
296 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
297             Richard Kenner  <kenner@adacore.com>
298
299         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
300         * decl.c (gnat_to_gnu_entity): Adjust for above change.
301         <E_Record_Type>: Try to get a better form of the component for
302         packing, even if it has an integral mode.
303         <E_Record_Subtype>: Likewise.
304         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
305         exception suppressing the final conversion between record types.
306
307 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
308
309         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
310         alignment for space, promote the alignment of non-scalar variables with
311         no size and alignment.
312         * gigi.h (gnat_types_compatible_p): Declare.
313         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
314         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
315         * utils.c (gnat_types_compatible_p) : New predicate.
316         (convert): Use it throughout to test for cases where a mere view
317         conversion is sufficient.
318         * utils2.c (build_binary_op): Minor tweaks.
319         (build_unary_op): Likewise.
320
321 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
322
323         * decl.c (adjust_packed): Expand comment.
324
325 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
326
327         * s-tasuti.ads: Use Task_Address instead of System.Address.
328
329         * makeutl.adb (Path_Or_File_Name): New function
330
331         * nlists.ads, itypes.ads: Update comments.
332
333         * s-crtl.ads (malloc32, realloc32): New functions.
334
335         * s-auxdec.ads (Short_Address_Size): New constant.
336
337         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
338
339         * s-ststop.ads, s-ststop.adb: New file.
340
341         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
342         Minor reformatting.
343
344 2008-04-08  Pascal Obry  <obry@adacore.com>
345
346         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
347         (Stop_Bits_Number): New type.
348         (Parity_Check): Likewise.
349         (Set): Add parameter to set the number of stop bits and
350         the parity. Parameter timeout is now a duration instead
351         of a plain integer.
352
353         * g-sercom-linux.adb:
354         Implement the stop bits and parity support for GNU/Linux.
355         Fix handling of timeout, it must be given in tenth of seconds.
356         
357         * g-sercom-mingw.adb:
358         Implement the stop bits and parity support for Windows.
359         Use new s-win32.ads unit instead of declaring Win32 services
360         directly into this body.
361         Update handling of timeout as now a duration.
362
363         * s-win32.ads, s-winext.ads: New files.
364
365 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
366             Arnaud Charlet  <charlet@adacore.com>
367
368         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
369
370         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
371         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
372
373         * s-osinte-lynxos-3.ads,
374         (Alternate_Stack): Remove when not needed. Simplify declaration
375         otherwise.
376         (Alternate_Stack_Size): New constant.
377
378         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
379         'Unrestricted_Access.
380
381         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
382         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
383         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
384         s-osinte-solaris.ads, s-osinte-vms.ads
385         (SA_ONSTACK): New constant.
386         (stack_t): New record type.
387         (sigaltstack): New imported function.
388         (Alternate_Stack): New imported variable.
389         (Alternate_Stack_Size): New constant.
390
391         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
392
393         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
394         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
395         s-taspri-vms.ads (Task_Address): New subtype of System.Address
396         (Task_Address_Size): New constant size of System.Address
397         (Alternate_Stack_Size): New constant.
398
399         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
400         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
401         Establish the alternate stack if the platform makes use of n alternate
402         signal stack for stack overflows.
403         (Create_Task): Take into account the alternate stack in the stack size.
404         (Initialize): Save the address of the alternate stack into the ATCB for
405         the environment task.
406         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
407
408         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
409
410         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
411
412         * s-intman-posix.adb: 
413         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
414         alternate signal stack for stack overflows.
415
416         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
417         x86-64, adjust the saved value of the stack pointer if the signal was
418         raised by a stack checking probe.
419         (HP-UX section): Use global __gnat_alternate_stack as signal handler
420         stack and only for SIGSEGV.
421         (Linux section): Likewise on x86 and x86-64.
422         [VxWorks section]
423         (__gnat_map_signal): Now static.
424         (__gnat_error_handler): Not static any more.
425         (__gnat_adjust_context_for_raise): New function. Signal context
426         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
427         propagation circuitry.
428         (__gnat_error_handler): Second argument of a sigaction handler is a
429         pointer, not an int, and is unused.
430         Adjust signal context before mapping to exception.
431         Install signal handlers for LynxOS case.
432
433         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
434         (Task_Id): Set size to Task_Address_Size
435         (To_Task_id): Unchecked convert from Task_Address vice System.Address
436         (To_Address): Unchecked convert to Task_Address vice System.Address
437
438         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
439         address into the ATCB if the platform makes use of an alternate signal
440         stack for stack overflows.
441         (Free_Task): Add call to Finalize_Attributes_Link.
442         Add argument Relative_Deadline to pass the value specified for
443         the task. This is not yet used for any target.
444
445         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
446         the value specified for the task.
447
448 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
449
450         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
451         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
452         s-vxwext-rtp.adb): New files.
453
454         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
455         Minor updates to accomodate changes above.
456
457 2008-04-08  Pascal Obry  <obry@adacore.com>
458
459         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
460         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
461         Use new s-win32.ads unit instead of declaration
462         from s-osinte-mingw.ads.
463         
464         * s-osinte-mingw.ads:
465         Move all non tasking based interface to s-win32.ads.
466         
467         * s-osprim-mingw.adb:
468         Remove duplicated declarations and use s-win32.ads
469         unit instead.
470
471 2008-04-08  Vincent Celier  <celier@adacore.com>
472             Arnaud Charlet  <charlet@adacore.com>
473
474         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
475         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
476         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
477         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
478         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
479
480         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
481         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
482         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
483         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
484         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
485         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
486         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
487         mlib-tgt-specific-mingw.adb: New names.
488
489         * Makefile.in: 
490         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
491         Get rid of gnatbl.
492         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
493         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
494         Minor updates for VMS
495
496         * gnatbl.c: Removed.
497
498 2008-04-08  Thomas Quinot  <quinot@adacore.com>
499
500         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
501         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
502         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
503         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
504         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
505         ASCII.NUL throughout.
506
507 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
508             Matthew Heaney  <heaney@adacore.com>
509
510         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
511         renaming.
512
513         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
514         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
515         to convention for non-RM specs.
516         Add descriptive header, and documented each operation
517         document each operation
518
519 2008-04-08  Robert Dewar  <dewar@adacore.com>
520             Bob Duff  <duff@adacore.com>
521             Gary Dismukes  <dismukes@adacore.com>
522             Ed Schonberg  <schonberg@adacore.com>
523
524         * alloc.ads: Add entries for Obsolescent_Warnings table
525
526         * einfo.ads, einfo.adb: Minor reformatting.
527         (Is_Discriminal): New subprogram.
528         (Is_Prival): New subprogram.
529         (Is_Protected_Component): New subprogram.
530         (Is_Protected_Private): Removed.
531         (Object_Ref, Set_Object_Ref): Removed.
532         (Prival, Set_Prival): Change assertion.
533         (Privals_Chain, Set_Privals_Chain): Removed.
534         (Prival_Link, Set_Prival_Link): New subprogram.
535         (Protected_Operation, Set_Protected_Operation): Removed.
536         (Protection_Object, Set_Protection_Object): New subprogram.
537         (Write_Field17_Name): Remove case for Object_Ref.
538         (Write_Field20_Name): Add case for Prival_Link.
539         (Write_Field22_Name): Remove case for Protected_Operation,
540         Privals_Chain.
541         Add case for Protection_Object.
542         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
543         so clients
544         (Overlays_Constant): New flag
545         (Is_Constant_Object): New predicate
546         (Is_Standard_Character_Type): New predicate
547         (Optimize_Alignment_Space): New flag
548         (Optimize_Alignment_Time): New flag
549         (Has_Postconditions): New flag
550         (Obsolescent_Warrning): Field removed
551         (Spec_PPC_List): New field
552         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
553         subprograms to get and set the relative deadline associated to a task.
554
555         * exp_attr.adb (May_Be_External_Call): Account for the case where the
556         Access attribute is part of a named parameter association.
557         (Expand_Access_To_Protected_Op): Test for the attribute occurring
558         within an init proc and use that directly as the scope rather than
559         traversing up to the protected operation's enclosing scope. Only apply
560         assertion on Is_Open_Scopes in the case the scope traversal is done.
561         For the init proc case use the address of the first formal (_init) as
562         the protected object reference.
563         Implement Invalid_Value attribute
564         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
565         contents of the dispatch table there is no need to duplicate the
566         itypes associated with record types (i.e. the implicit full view
567         of private types).
568         Implement Enum_Val attribute
569         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
570         within _Postconditions procedure
571         (Expand_N_Attribute_Reference, case Result): Implement new attribute
572
573         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
574         a return statement calls a function that is not available in
575         configurable runtime.
576         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
577         (Expand_Non_Function_Return): Generate call to _Postconditions proc
578         (Expand_Simple_Function_Return): Ditto
579
580         * frontend.adb: Add call to Sem_Aux.Initialize
581
582         * sem_aux.ads, sem_aux.adb: New file.
583
584         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
585         Add new Pragma_Relative_Deadline.
586         Add support for pragmas Check and Check_Policy
587
588         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
589         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
590         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
591         missing check because they are not allowed in CPP tagged types.
592         Add Sure parameter to Note_Possible_Modification calls
593         Add implementation of Invalid_Value attribute
594         Implement new attribute Has_Tagged_Values
595         Implement Enum_Val attribute
596         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
597         generated attributes.
598         (Analyze_Attribute, case Result): If prefix of the attribute is
599         overloaded, it always resolves to the enclosing function.
600         (Analyze_Attribute, case Result): Properly deal with analysis when
601         Postconditions are not active.
602         (Resolve_Attribute, case Result): Properly deal with appearence during
603         preanalysis in spec.
604         Add processing for attribute Result
605
606         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
607         for operators.
608         (Analyze_Subprogram_Body): Install private_with_clauses when the body
609         acts as a spec.
610         (Check_Inline_Pragma): recognize an inline pragma that appears within
611         the subprogram body to which it applies.
612         (Analyze_Function_Return): Check that type of the expression of a return
613         statement in a function with a class-wide result is not declared at a
614         deeper level than the function.
615         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
616         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
617         user- defined operators.
618         (Install_Formals): Moved to spec to allow use from Sem_Prag for
619         analysis of precondition/postcondition pragmas.
620         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
621         Last_Formal, along with lots of comments on what this is about
622         (Analyze_Subprogram_Body): Fix case where we move entities from the
623         spec to the body when there are no body entities (now possible with
624         precondition and postcondition pragmas).
625         (Process_PPCs): New procedure
626         (Analyze_Subprogram_Body): Add call to Process_PPCs
627
628         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
629         clause.
630         (Pop_Scope): Restore Check_Policy_List on scope exit
631         (Push_Scope): Save Check_Policy_List on scope entry
632         Change name In_Default_Expression      => In_Spec_Expression
633         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
634         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
635         (Analyze_Object_Renaming): Allow 'Reference as object
636         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
637         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
638         of restriction identifier.
639         Add Sure parameter to Note_Possible_Modication calls
640
641         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
642         Don't check for primitive operations when calling Rep_Item_Too_Late.
643         (Process_Import_Or_Interface): Do not place flag on formal
644         subprograms.
645         (Analyze_Pragma, case Export): If the entity is a deferred constant,
646         propagate information to full view, which is the one elaborated by the
647         back-end.
648         (Make_Inline): the pragma is effective if it applies to an internally
649         generated subprogram declaration for a body that carries the pragma.
650         (Analyze_Pragma, case Optimize_Alignment): Set new flag
651         Optimize_Alignment_Local.
652         (Analyze_PPC_In_Decl_Part): New procedure
653         (Get_Pragma_Arg): Moved to outer level
654         (Check_Precondition_Postcondition): Change to allow new visibility
655         rules for package spec
656         (Analyze_Pragma, case Check_Policy): Change placement rules to be
657         same as pragma Suppress/Unsuppress.
658         Change name In_Default_Expression      => In_Spec_Expression
659         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
660         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
661         (Check_Precondition_Postcondition): Do proper visibility preanalysis
662         for the case of these pragmas appearing in the spec.
663         (Check_Enabled): New function
664         (Initialize): New procedure
665         (Tree_Read): New procedure
666         (Tree_Write): New procedure
667         (Check_Precondition_Postcondition): New procedure
668         Implement pragmas Check and Check_Policy
669         Merge Assert processing with Check
670
671         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
672         New warning flag -gnatw.e
673
674         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
675         returning whether a task (or main procedure) has a pragma
676         Relative_Deadline.
677         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
678         (or main procedure) has a pragma Relative_Deadline.
679         Add Next_Pragma field to N_Pragma node
680         (PPC_Enabled): New flag
681         (Next_Pragma): Now used for Pre/Postcondition processing
682
683         * snames.h, snames.ads, snames.adb: New standard name
684         Inherit_Source_Path
685         Add entry for 'Invalid_Value attribute
686         Add entry for new attribute Has_Tagged_Values
687         Add entry for Enum_Val attribute
688         Add new standard names Aggregate, Configuration and Library.
689         Add _Postconditions
690         Add _Result
691         Add Pragma_Precondition
692         Add Pragma_Postcondition
693         Add Attribute_Result
694         New standard name Archive_Builder_Append_Option
695         (Preset_Names): Add _relative_deadline and relative_deadline definitions
696         There was also a missing non_preemptive_within_priorities.
697         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
698         Relative_Deadline.
699         Add support for pragmas Check and Check_Policy
700
701         * tree_gen.adb: Call Sem_Aux.Tree_Write
702
703         * tree_in.adb: Call Sem_Aux.Tree_Read
704
705         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
706         sequence
707
708         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
709         sequence
710
711         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
712         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
713         Relative_Deadline.
714         (Expand_Pragma_Check): New procedure
715
716         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
717         buffer.
718
719         * sinfo.adb (PPC_Enabled): New flag
720
721 2008-04-08  Robert Dewar  <dewar@adacore.com>
722             Gary Dismukes  <dismukes@adacore.com>
723             Javier Miranda  <miranda@adacore.com>
724             Ed Schonberg  <schonberg@adacore.com>
725
726         * fe.h: Remove global Optimize_Alignment flag, no longer used
727
728         * layout.adb: Test Optimize_Alignment flags rather than global switch
729
730         * lib.ads, lib.adb: New OA_Setting field in library record
731
732         * lib-load.adb: New OA_Setting field in library record
733
734         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
735         units mentioned in limited_with_ clauses in the ali file, with an
736         'Y' marker.
737         New Ox fields in U line
738
739         * opt.adb: New flag Optimize_Alignment_Local
740         (Check_Policy_List[_Config]): New flags
741
742         * opt.ads (Invalid_Value_Used): New flag
743         New switch Optimize_Alignment_Local
744         (Warn_On_Parameter_Order): New flag
745         (Check_Policy_List[_Config]): New flags
746
747         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
748         limited_with clauses.
749         New data structures for Optimize_Alignment
750
751         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
752         New procedure
753         (Check_Consistent_Optimize_Alignment): Rework for new structure
754         (Check_Consistent_Restrictions): Fix incorrect error message
755
756         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
757         created class-wide type (to the Parent field of the specific type).
758         (Install_Siblings): Handle properly private_with_clauses on subprogram
759         bodies and on generic units.
760         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
761         illegal limited_with_clause that names a non-existent package.
762         (Check_Body_Required): Determine whether a unit named a limited_with
763         clause needs a body.
764         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
765         Capture Optimize_Alignment settings to set new OA_Setting field in
766         library record.
767         (Build_Limited_Views): Include task and protected type declarations.
768
769         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
770         case of a possible constant redeclaration where the current object is
771         an entry index constant.
772         (Analyze_Object_Declaration): Generate an error in case of CPP
773         class-wide object initialization.
774         (Analyze_Object_Declaration): Add extra information on warnings for
775         declaration of unconstrained objects.
776         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
777         conflicts with the setting of Stored_Constraint in the case where the
778         access type entity has already been created as an E_Incomplete_Type due
779         to a limited with clause.
780         Use new Is_Standard_Character_Type predicate
781         (Analyze_Object_Declaration): Apply access_constant check only after
782         expression has been resolved, given that it may be overloaded with
783         several access types.
784         (Constant_Redeclaration): Additional legality checks for deferred
785         constant declarations tha involve anonymous access types and/or null
786         exclusion indicators.
787         (Analyze_Type_Declaration): Set Optimize_Alignment flags
788         (Analyze_Subtype_Declaration): Ditto
789         (Analyze_Object_Declaration): Ditto
790         (Analyze_Object_Declaration): Don't count tasks in generics
791         Change name In_Default_Expression      => In_Spec_Expression
792         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
793         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
794         (Process_Discriminants): Additional check for illegal use of default
795         expressions in access discriminant specifications in a type that is not
796         explicitly limited.
797         (Check_Abstract_Overriding): If an inherited function dispaches on an
798         access result, it must be overridden, even if the type is a null
799         extension.
800         (Derive_Subprogram): The formals of the derived subprogram have the
801         names and defaults of the parent subprogram, even if the type is
802         obtained from the actual subprogram.
803         (Derive_Subprogram): In the presence of interfaces, a formal of an
804         inherited operation has the derived type not only if it descends from
805         the type of the formal of the parent operation, but also if it
806         implements it. This is relevant for the renamings created for the
807         primitive operations of the actual for a formal derived type.
808         (Is_Progenitor): New predicate, to determine whether the type of a
809         formal in the parent operation must be replaced by the derived type.
810
811         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
812         predicate recursive to handle components that have a user-defined
813         Initialize procedure. Handle controlled derived types whose ancestor
814         has a user-defined Initialize procedured.
815         (Note_Possible_Modification): Add Sure parameter, generate warning if
816         sure modification of constant
817         Use new Is_Standard_Character_Type predicate
818         (Find_Parameter_Type): when determining whether a protected operation
819         implements an interface operation, retrieve the type of the formal from
820         the entity when the formal is an access parameter or an
821         anonymous-access-to-subprogram.
822         Move Copy_Parameter_List to sem_util, for use when building stubbed
823         subprogram bodies.
824         (Has_Access_Values): Tagged types now return False
825         (Within_HSS_Or_If): New procedure
826         (Set_Optimize_Alignment_Flags): New procedure
827         Change name In_Default_Expression      => In_Spec_Expression
828         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
829         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
830
831 2008-04-08  Tristan Gingold  <gingold@adacore.com>
832
833         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
834
835 2008-04-08  Tristan Gingold  <gingold@adacore.com>
836
837 PR ada/10768
838
839         * cuintp.c: Fix 16 bits issue for AVR.
840         On AVR, integer is 16 bits, so it can't be used to do math with
841         Base (=32768).
842         So use long_integer instead.
843
844 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
845
846         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
847         System.OS_Primitives.
848         Change type of various constants, parameters and local variables from
849         Time to representation type OS_Time.
850         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
851         Remove the declaration of constant Mili_F from several routines. New
852         body for internal package Conversions_Operations.
853         (Time_Of): Add default parameters for several formals.
854
855         * a-caldel.adb: Minor reformatting
856
857         * a-calend.ads, a-calend.adb: New body for internal package
858         Conversions_Operations.
859         (Time_Of): Add default parameters for several formals.
860
861         * Makefile.rtl: Add a-ststop
862         Add Ada.Calendar.Conversions to the list of runtime files.
863         Add g-timsta
864
865         * a-calcon.adb, a-calcon.ads: New files.
866
867 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
868             Tristan Gingold  <gingold@adacore.com>
869
870         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
871         (Install_Restricted_Handlers): New procedure
872         which is a simplified version of Install_Handlers that does not store
873         previously installed.
874
875         * s-interr-vxworks.adb: Fix ACATS cxc3001
876         On VxWorks interrupts can't be detached.
877         (Install_Restricted_Handlers): New procedure.
878
879         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
880         procedure.
881
882 2008-04-08  Olivier Hainque  <hainque@adacore.com>
883
884         * s-intman-vxworks.ads, s-intman-vxworks.adb
885         (Map_And_Raise_Exception): Remove. Was an import of only part of the
886         required services already implemented elsewhere.
887         (Notify_Exception): Delete body, import __gnat_error_handler instead.
888         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
889         argument passed to the handler, which we need for ZCX propagation
890         purposes.
891
892 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
893
894         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
895
896         * g-timsta.adb, g-timsta.ads: New files.
897
898 2008-04-08  Robert Dewar  <dewar@adacore.com>
899
900         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
901         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
902         (Raise_Exception_Always): Fix documentation accordingly
903
904 2008-04-08  Robert Dewar  <dewar@adacore.com>
905
906         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
907         Stream_Convert)
908
909         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
910         FOnly
911
912 2008-04-08  Javier Miranda  <miranda@adacore.com>
913             Robert Dewar  <dewar@adacore.com>
914             Ed Schonberg  <schonberg@adacore.com>
915
916         * a-tags.adb (Register_Interface_Offset): New subprogram.
917         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
918         (To_Predef_Prims_Table_Ptr): Removed.
919         (Acc_Size): Removed.
920         (To_Acc_Size): Removed.
921         (Parent_Size): Modified to the call the subprogram returning the size of
922         the parent by means of the new TSD component Size_Func.
923
924         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
925         (DT_Offset_To_Top_Offset): New constant value that is used to generate
926         code referencing the Offset_To_Top component of the dispatch table's
927         prologue.
928         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
929         use of 'address to initialize dispatch table slots.
930         (Size_Func): New component of the TSD. Used by the run-time to call the
931         size primitive of the tagged type.
932
933         * checks.adb (Apply_Access_Check): Avoid check when accessing the
934         Offset_To_Top component of a dispatch table.
935         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
936         deferred constant declaration. do not add a null expression, to prevent
937         spurious errors when full declaration is analyzed.
938         (Apply_Discriminant_Check): If both discriminant constraints share a
939         node which is not static but has no side effects, do not generate a
940         check for that discriminant.
941         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
942         subexpr, since the prefix of an attribute is a name.
943
944         * checks.ads: Fix nit in comment.
945
946         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
947         and body of predefined primitives in case of CPP tagged type
948         derivations.
949         (Freeze_Type): Deal properly with no storage pool case
950         (Make_Predefined_Primitive_Specs): Generate specification of abstract
951         primitive Deep_Adjust if a nonlimited interface is derived from a
952         limited interface.
953         (Build_Dcheck_Functions): Create discriminant-checking functions only
954         for variants that have some component(s).
955         (Build_Slice_Assignment): In expanded code for slice assignment, handle
956         properly the case where the slice bounds extend to the last value of the
957         underlying representation.
958         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
959         (Is_Variable_Size_Record): An array component has a static size if
960         index bounds are enumeration literals.
961
962         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
963         an external tag has been specified for the type.
964         (Building_Static_DT): Add missing support for private types.
965         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
966         to the entity associated with the parent of Typ. This is done to
967         avoid wrong access when the parent is a private type.
968         (Expand_Interface_Conversion): Improve error message when the
969         configurable runtime has no support for dynamic interface conversion.
970         (Expand_Interface_Thunk): Add missing support to interface types in
971         configurable runtime.
972         (Expand_Dispatching_Call): remove obsolete code.
973         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
974         ensure that all subtypes and aggregates associated with dispatch
975         tables have the attribute Is_Dispatch_Table_Entity set to true.
976         (Register_Primitive): Rename one variable to improve code reading.
977         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
978         of the pointer to the 'size primitive in the TSD.
979
980         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
981         (RE_Offset_To_Top_Ptr): New entity.
982         (RE_Register_Interface_Offset): New entity.
983         (RE_Set_Dynamic_Offset_To_Top): New entity.
984         (RE_Set_Offset_To_Top): Removed entity.
985         (RE_Prim_Ptr): New entity
986         (RE_Size_Func): New entity
987         (RE_Size_Ptr): New entity
988         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
989         (Ada_Dispatching_Child): Define this new subrange.
990         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
991          RE_Time_Span, and RE_Time_Span_Zero).
992         (RE_Unit_Table): Add new required run-time calls
993
994         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
995         children.
996
997         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
998         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
999          initializes the Offset_To_Top component of a dispatch table.
1000         (Build_Predef_Prims): Removed.
1001         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
1002          its actual code.
1003         (Build_Set_Size_Function): New subprogram.
1004
1005         * exp_ch13.adb: Do not generate storage variable for storage_size zero
1006         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
1007
1008 2008-04-08  Robert Dewar  <dewar@adacore.com>
1009
1010         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
1011         computing Fore when Exp > 0
1012
1013 2008-04-08  Robert Dewar  <dewar@adacore.com>
1014
1015         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
1016
1017         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
1018         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
1019
1020         * fmap.adb: Remove Big_String declarations (now in Types)
1021         (No_Mapping_File): New Boolean global variable
1022         (Initialize): When mapping file cannot be read, set No_Mapping_File to
1023         False.
1024         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
1025         tables were empty before adding entries, open the mapping file
1026         with Truncate = True, instead of delete/re-create.
1027
1028         * fname-sf.adb: Remove Big_String declarations (now in Types)
1029
1030         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
1031         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
1032         big pointer types
1033
1034         * table.ads: Add for Table_Ptr'Storage_Size use 0
1035
1036         * types.ads: Add Big_String declarations
1037         Add Size_Clause of zero for big pointer types
1038
1039 2008-04-08  Vincent Celier  <celier@adacore.com>
1040
1041         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
1042         (Usage): Add line for switch --subdirs=
1043         Add new switch -eL, to follow symbolic links when processing project
1044         files.
1045
1046         * gnatcmd.adb: Process switches -eL and --subdirs=
1047         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
1048         Program_Name to get proper tool names when AAMP_On_Target is set.
1049         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
1050         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
1051         Osint.Program_Name).
1052
1053         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
1054         (Usage): Add lines for switches -eL and --subdirs=
1055
1056         * makeusg.adb: Add line for switch --subdirs=
1057
1058         * prj.ads: 
1059         (Source_Data): New Boolean component Compiled, defaulted to True
1060         (Empty_File_Name: New global variable in private part, initialized in
1061         procedure Initialize.
1062         (Subdirs_Option): New constant string
1063         (Subdirs): New String_Ptr global variable
1064         (Language_Config): New component Include_Compatible_Languages
1065         (Project_Qualifier): New type for project qualifiers
1066         (Project_Data): New component Qualifier
1067         (Project_Configuration): New component Archive_Builder_Append_Option
1068
1069         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
1070         another imported project indicate the name of this imported project.
1071         (Check_File): When a unit is in two project files, indicate the project
1072         names and the paths of the source files for each project.
1073         (Add_Source): Set Compiled to False if compiler driver is empty. Only
1074         set object, dependency and switches file names if Compiled is True.
1075         (Process_Compiler): Allow the empty string for value of attribute Driver
1076         (Get_Directories): When Subdirs is not null and Object_Dir is not
1077          specified, locate and create if necessary the actual object dir.
1078         (Locate_Directory): When Subdirs is not empty and Create is not the
1079         empty string, locate and create if necessary the actual directory
1080         as a subdirectory of directory Name.
1081         (Check_Library_Attributes.Check_Library): Allow a project where the only
1082         "sources" are header files of file based languages to be imported by
1083         library projects, in multi-language mode (gprbuild).
1084         (Check_Library_Attributes.Check_Library): In multi-language mode
1085         (gprbuild), allow a library project to import a project with no
1086         sources, even when this is not declared explicitly.
1087         (Check_If_Externally_Built): A virtual project extending an externally
1088         built project is also externally built.
1089         (Check_Library_Attributes): For a virtual project extending a library
1090         project, inherit the library directory.
1091         (Process_Project_Level_Array_Attributes): Process new attribute
1092         Inherit_Source_Path.
1093         For projects with specified qualifiers "standard", "library" or
1094         "abstract", check that the project conforms to the qualifier.
1095         (Process_Project_Level_Simple_Attributes): Process new attribute
1096          Archive_Builder_Append_Option.
1097
1098         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
1099         (Normalize_Compiler_Switches): Only keep compiler switches that are
1100         passed to gnat1 by the gcc driver and that are stored in the ALI file
1101         by gnat1.
1102         Do not take into account switc -save-temps
1103
1104         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
1105         gprmake is called with -eL.
1106         (Scan_Arg): Recognize switch -eL
1107         (Usage): Add line for switch -eL
1108
1109         * prj.adb (Initialize): Initialize Empty_File_Name
1110         (Project_Empty): New component Qualifier
1111
1112         * prj-attr.ads, prj-attr.adb: New project level attribute
1113         Inherit_Source_Path.
1114         New project level attribute Archive_Builder_Append_Option
1115
1116         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
1117
1118         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
1119         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
1120         upward compatibility.
1121
1122         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
1123         each Trying ..." on different lines.
1124         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
1125         is "configuration" when not in configuration. Fail when in configuration
1126         when a specified qualifier is other than "configuration".
1127
1128         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
1129         full associative array together.
1130         (Recursive_Process): Put the project qualifier in the project data
1131         
1132         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
1133         (Set_Project_Qualifier_Of): New procedure
1134
1135 2008-04-08  Robert Dewar  <dewar@adacore.com>
1136
1137         * errout.ads: Update comments for new handling of info: messages
1138
1139         * erroutc.adb (Matches): New procedure
1140         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
1141         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
1142          info messages as well as style messages.
1143
1144         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
1145
1146         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
1147         subprograms.
1148         (Check_A_Call): Special "info: " warnings now have ? in the text
1149         (Elab_Warning): Use info message in static case
1150
1151 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1152
1153         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
1154         whether an array aggregate with static bounds and scalar components
1155         should be expanded into a static constant.
1156
1157 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
1158             Ed Schonberg  <schonberg@adacore.com>
1159             Robert Dewar  <dewar@adacore.com>
1160
1161         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
1162         Has_Stream_Attribute_ Definition when checking for available stream
1163         attributes on parameters of a limited type in Ada 2005. Necessary for
1164         proper recognition of visible stream attribute clauses.
1165         (Has_Stream_Attribute_Definition): If the type is derived from a
1166         private type, then use the derived type's underlying type for checking
1167         whether it has stream attributes.
1168         (Validate_Object_Declaration): The check for a user-defined Initialize
1169         procedure applies also to types with controlled components or a
1170         controlled ancestor.
1171         Reject an object declaration in a preelaborated unit if the type is a
1172         controlled type with an overriding Initialize procedure.
1173         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
1174         checking when the parent of a dereference is a selected component and
1175         the name has not been analyzed.
1176
1177         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
1178         prefixes that are invalid explicit dereferences of remote
1179         access-to-class-wide values, first checking whether the selected
1180         component is a prefixed form of call to a tagged operation.
1181         (Analyze_Call): Remove code that issues an error for limited function
1182         calls in illegal contexts, as we now support all of the contexts that
1183         were forbidden here.
1184         Allow a function call that returns a task.and appears as the
1185         prefix of a selected component.
1186         (Analyze_Reference): Give error message if we try to make a 'Reference
1187         for an object that is atomic/aliased without its type having the
1188         corresponding attribute.
1189         (Analyze_Call): Remove condition checking for attributes to allow
1190         calls to functions with inherently limited results as prefixes of
1191         attributes. Remove related comment about Class attributes.
1192         (Analyze_Selected_Component): If the prefix is a remote type, check
1193         whether this is a prefixed call before reporting an error.
1194         (Complete_Object_Operation): If the controlling formal is an access to
1195         variable reject an actual that is a constant or an access to one.
1196         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1197         primitive operations from base type.
1198
1199         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
1200         build-in-place
1201         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1202         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
1203         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1204         (Expand_N_Slice): Test for prefix that is a build-in-place function call
1205         and call Make_Build_In_Place_Call_In_Anonymous_Context.
1206         (Analyze_Call): Remove code that issues an error for limited function
1207         calls in illegal contexts, as we now support all of the contexts that
1208         were forbidden here.
1209         New calling sequence for Get_Simple_Init_Val
1210         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
1211         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
1212
1213 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1214             Ed Schonberg  <schonberg@adacore.com>
1215             Robert Dewar  <dewar@adacore.com>
1216
1217         * exp_ch2.adb: Minor reformatting.
1218         (Expand_Entry_Index_Parameter): Set the type of the identifier.
1219         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
1220         (Expand_Protected_Component): New routine.
1221         (Expand_Protected_Private): Removed.
1222         Add Sure parameter to Note_Possible_Modification calls
1223
1224         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
1225         generated subprogram declaration must inherit the overriding indicator
1226         from the instantiation node.
1227         (Validate_Access_Type_Instance): If the designated type of the actual is
1228         a limited view, use the available view in all cases, not only if the
1229         type is an incomplete type.
1230         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
1231         and the actual subtype does not exclude null.
1232         (Process_Default): Handle properly abstract formal subprograms.
1233         (Check_Formal_Package_Instance): Handle properly defaulted formal
1234         subprograms in a partially parameterized formal package.
1235         Add Sure parameter to Note_Possible_Modification calls
1236         (Validate_Derived_Type_Instance): if the formal is non-limited, the
1237         actual cannot be limited.
1238         (Collect_Previous_Instances): Generate instance bodies for subprograms
1239         as well.
1240
1241         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
1242         try to set RM_Size.
1243         Add Sure parameter to Note_Possible_Modification calls
1244         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
1245         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
1246         constant overlaid by variable and issue warning.
1247         Use new Is_Standard_Character_Type predicate
1248         (Analyze_Record_Representation_Clause): Check that the specified
1249         Last_Bit is not less than First_Bit - 1.
1250         (Analyze_Attribute_Definition_Clause, case Address): Check for
1251         self-referential address clause
1252
1253         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
1254         detection mechanism when the lhs is a prival.
1255         (Analyze_Assignment): Call Check_Unprotected_Access to detect
1256         assignment of a pointer to protected data, to an object declared
1257         outside of the protected object.
1258         (Analyze_Loop_Statement): Check for unreachable code after loop
1259         Add Sure parameter to Note_Possible_Modication calls
1260         Protect analysis from previous syntax error such as a scope mismatch
1261         or a missing begin.
1262         (Analyze_Assignment_Statement): The assignment is illegal if the
1263         left-hand is an interface.
1264
1265         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
1266         violation of restriction No_Implicit_Conditionals
1267         Add Sure parameter to Note_Possible_Modication calls
1268         Use new Is_Standard_Character_Type predicate
1269         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
1270         call as operator. Fixes problems (e.g. validity checking) which
1271         come from the result looking as though it does not come from source).
1272         (Resolve_Call): Check case of name in named parameter if style checks
1273         are enabled.
1274         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
1275         from the checking that such calls should not occur from an entry body.
1276         (Resolve_Call): If the return type of an Inline_Always function
1277         requires the secondary stack, create a transient scope for the call
1278         if the body of the function is not available for inlining.
1279         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
1280         that are actuals for in-out formals.
1281         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1282         primitive operations from base type.
1283         (Analyze_Selected_Component): If the context is a call to a protected
1284         operation the parent may be an indexed component prior to expansion.
1285         (Resolve_Actuals): If an actual is of a protected subtype, use its
1286         base type to determine whether a conversion to the corresponding record
1287         is needed.
1288         (Resolve_Short_Circuit): Handle pragma Check
1289
1290         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
1291         Use new Is_Standard_Character_Type predicate
1292         (Eval_Relational_Op): Catch more cases of string comparison
1293
1294 2008-04-08  Robert Dewar  <dewar@adacore.com>
1295             Gary Dismukes  <dismukes@adacore.com>
1296
1297         * s-rident.ads: Add No_Default_Initialization restriction
1298
1299         * exp_tss.adb: 
1300         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
1301         (Set_TSS): Handle No_Default_Initialization case
1302
1303         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
1304         No_Default_Initialization
1305         (Expand_N_Subprogram_Body): Remove redundant initialization of out
1306         parameters when Normalize_Scalars is active.
1307         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
1308         Fix casing error in formal parameter name in call
1309         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
1310         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1311         dispatching call on VM targets.
1312
1313 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
1314             Thomas Quinot  <quinot@adacore.com>
1315
1316         * exp_ch7.adb (Find_Final_List): Change the test for generating a
1317         selected component from an access type's Associated_Final_Chain to
1318         check for the presence of that field, rather than assuming it exists
1319         for all named access types.
1320         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
1321         procedure to call at the end of the generated cleanup procedure.
1322         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
1323         and an At_End_Proc already exists in the handled sequence of statements
1324         for which cleanup actions are being expanded, the original cleanup
1325         action must be preserved.
1326
1327 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1328             Ed Schonberg  <schonberg@adacore.com>
1329             Robert Dewar  <dewar@adacore.com>
1330             Gary Dismukes  <dismukes@adacore.com>
1331
1332         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1333         Build_Unprotected_Subprogram_Body): Generate debug info for
1334         declarations related to the handling of private data in task and
1335         protected types.
1336         (Debug_Private_Data_Declarations): New subprogram.
1337         (Install_Private_Data_Declarations): Remove all debug info flagging.
1338         This is now done by Debug_Private_Data_Declarations at the correct
1339         stage of expansion.
1340         (Build_Simple_Entry_Call): If the task name is a function call, expand
1341         the prefix into an object declaration, and make the surrounding block a
1342         task master.
1343         (Build_Master_Entity): An internal block is a master if it wraps a call.
1344         Code reformatting, update comments. Code clean up.
1345         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1346         (Replicate_Entry_Formals): If the formal is an access parameter or
1347         anonymous access to subprogram, copy the original tree to create new
1348         entities for the formals of the subprogram.
1349         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1350         for tasks to store the value passed using pragma Relative_Deadline.
1351         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1352         run-time call to create a task.
1353         (Build_Wrapper_Spec): If the controlling argument of the interface
1354         operation is an access parameter with a non-null indicator, use the
1355         non-null indicator on the wrapper.
1356
1357         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1358         present, which it may not be in the case where the type entity is an
1359         incomplete view brought in by a limited with.
1360         (Analyze_Task_Type): Only retrieve the full view when present, which it
1361         may not be in the case where the type entity is an incomplete view brought
1362         in by a limited with.
1363         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1364         private components of a protected type, to prevent the generation of freeze
1365         nodes for which there is no proper scope of elaboration.
1366
1367         * exp_util.ads, exp_util.adb
1368         (Remove_Side_Effects): If the expression is a function call that returns a
1369         task, expand into a declaration to invoke the build_in_place machinery.
1370         (Find_Protection_Object): New routine.
1371         (Remove_Side_Effects): Also make a copy of the value
1372         for attributes whose result is of an elementary type.
1373         (Silly_Boolean_Array_Not_Test): New procedure
1374         (Silly_Boolean_Array_Xor_Test): New procedure
1375         (Is_Volatile_Reference): New function
1376         (Remove_Side_Effects): Use Is_Volatile_Reference
1377         (Possible_Bit_Aligned_Component): Handle slice case properly
1378
1379         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1380         case test to Exp_Util
1381         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1382
1383 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1384
1385         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1386         in call
1387         (Add_RACW_Features): When processing an RACW in another unit than the
1388         main unit, set Body_Decls to No_List to indicate that the bodies of
1389         the type's TSS must not be generated.
1390         (GARLIC_Support.Add_RACW_Read_Attribute,
1391         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1392         Body_Decls is No_List.
1393         (PolyORB_Support.Add_RACW_Read_Attribute,
1394         PolyORB_Support.Add_RACW_Write_Attribute,
1395         PolyORB_Support.Add_RACW_From_Any,
1396         PolyORB_Support.Add_RACW_To_Any,
1397         PolyORB_Support.Add_RACW_TypeCode): Same.
1398         (Transmit_As_Unconstrained): New function.
1399         (Build_Ordered_Parameters_List): Use the above to order parameters.
1400         (GARLIC_Support.Build_General_Calling_Stubs):
1401         Use the above to determine which parameters to unmarshall using 'Input
1402         at the point where their temporary is declared (as opposed to later on
1403         with a 'Read call).
1404         (PolyORB_Support.Build_General_Calling_Stubs):
1405         Use the above to determine which parameters to unmarshall using From_Any
1406         at the point where their temporary is declared (as opposed to later on
1407         with an assignment).
1408
1409 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1410
1411         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1412         an Input function for an access type, do not perform default
1413         initialization on the local variable that receives the value, to
1414         prevent spurious warnings when the type is null-excluding.
1415
1416 2008-04-08  Robert Dewar  <dewar@adacore.com>
1417             Ed Schonberg  <schonberg@adacore.com>
1418
1419         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1420         units.
1421         (Size_Known): Generic formal scalar types have known at compile
1422         time size, so remove check.
1423         Fix casing error in formal parameter name in call
1424         (Freeze_Subprogram): If the subprogram is a user-defined operator,
1425         recheck its overriding indication.
1426
1427 2008-04-08  Vincent Celier  <celier@adacore.com>
1428
1429         * gnat1drv.adb: Send all messages indicating an error to standard error
1430
1431 2008-04-08  Robert Dewar  <dewar@adacore.com>
1432
1433         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1434         (List_Applicable_Restrictions): Do not list existing restrictions
1435
1436 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1437
1438         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1439         add a pointer to generic sockets literature
1440         do not mention that the given example is "typical" usage.
1441         Remove obsolete comment about multicast not being supported on Windows.
1442         (Connect_Socket): Make Server mode IN rather than IN OUT
1443         since this formal is never modified.
1444
1445 2008-04-08  Robert Dewar  <dewar@adacore.com>
1446
1447         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1448         the declaration for some different entity.
1449         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1450         list is precent (following the parent subtype indication), display
1451         appropriate "and" keyword.
1452
1453         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1454         Remove unnecessary calls to Init_Size_Align and Init_Esize.
1455         Add notes on use of Parent field of an Itype
1456
1457 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1458             Robert Dewar  <dewar@adacore.com>
1459             Gary Dismukes  <dismukes@adacore.com>
1460
1461         * lib-xref.adb (Is_On_LHS): Remove dead code
1462         (Output_Overriden_Op): If the overridden operation is itself inherited,
1463         list the ancestor operation, which is the one whose body or absstract
1464         specification is actually being overridden. For source navigation
1465         purposes.
1466
1467         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1468         operation is primitive for the type.
1469         (Declare_Inherited_Private_Subprograms): If the new operation overrides
1470         an inherited private subprogram, set properly the Overridden_Operation
1471         attribute, for better cross-reference information.
1472         (Analyze_Package_Specification): Do late analysis of spec PPCs
1473         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1474         properly the full view and underlying full views of a private type in a
1475         child unit, whose full view is derived from a private type in a parent
1476         unit, and whose own full view becomes visible in the child body.
1477
1478         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1479         primitive operation after the type has been frozen, add an explicit
1480         reference to the type and the operation, because other primitive
1481         references have been emitted already.
1482         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1483         dispatching call on VM targets.
1484
1485 2008-04-08  Vincent Celier  <celier@adacore.com>
1486             Thomas Quinot  <quinot@adacore.com>
1487
1488         * make.adb: (Gnatmake_Called): Remove, no longer necessary
1489         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1490         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1491         (Insert_Project_Sources): Take into account index in multi-unit source
1492         files.
1493         After building a library project, delete all temporary files.
1494         (Initialize): Reset current output after parsing project file.
1495         (Collect_Arguments_And_Compile): Never insert in the queue the sources
1496         of library projects that are externally built.
1497         Put file name in error and inform messages if -df is used
1498         (Display): If invoked with -d7, do not display path names, but only
1499         file names.
1500
1501         * makeutl.ads (Path_Or_File_Name): New function
1502         (Path_Or_File_Name): New function
1503
1504 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
1505
1506         * Make-lang.in: Disable warnings during first stage of bootstrap
1507         Get rid of gnatbl.
1508         Update dependencies.
1509
1510 2008-04-08  Vincent Celier  <celier@adacore.com>
1511
1512         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1513         case to decide if ALI object file is included in library.
1514         (Build_Library): Never attempt to build a library if the project is
1515         externally built.
1516
1517 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1518
1519         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1520         (No_List) is defined to return Empty.
1521
1522 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
1523
1524         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1525         documentation.
1526         Update comments.
1527         (Read_Default_Search_Dirs): Do not consider spaces as path separators
1528         because spaces may be part of legal paths.
1529
1530 2008-04-08  Robert Dewar  <dewar@adacore.com>
1531
1532         * par-ch11.adb (P_Exception_Handler): Check indentation level for
1533         handler
1534
1535 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1536
1537         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1538         in a type declaration, if this is not an interface declaration or
1539         private type extension.
1540
1541 2008-04-08  Vincent Celier  <celier@adacore.com>
1542
1543         * prj-util.adb (Executable_Of): New String parameter Language. When
1544         Ada_Main is False and Language is not empty, attempt to remove the body
1545         suffix or the spec suffix of the language to get the base of the
1546         executable file name.
1547         (Put): New Boolean parameter Lower_Case, defauilted to False. When
1548         Lower_Case is True, put the value in lower case in the name list.
1549         (Executable_Of): If there is no executable suffix in the configuration,
1550         then do not modify Executable_Extension_On_Target.
1551
1552         * prj-util.ads (Executable_Of): New String parameter Language,
1553         defaulted to the empty string.
1554         (Put): New Boolean parameter Lower_Case, defauilted to False
1555
1556 2008-04-08  Robert Dewar  <dewar@adacore.com>
1557
1558         * scng.adb (Scan_Identifier): Handle case of identifier starting with
1559         wide character using UTF-8 encoding.
1560
1561 2008-04-08  Javier Miranda  <miranda@adacore.com>
1562
1563         * sem.adb (Analyze): Consider case in which we analyze an empty node
1564         that was generated by a call to a runtime function that is not
1565         available under the configurable runtime.
1566
1567         * sem.ads (Inside_Freezing_Actions): New flag.
1568         (Save_Check_Policy_List): New field in scope stack entry
1569
1570 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1571             Robert Dewar  <dewar@adacore.com>
1572
1573         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1574         the ancestor part of an extension aggregate for a limited type.
1575         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1576         enumeration index bounds.
1577         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1578         when array is too short.
1579         (Check_Expr_OK_In_Limited_Aggregate): Move function
1580         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1581         change name).
1582         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1583         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1584         component associations.
1585         (Check_Non_Limited_Type): Moved to outer level and renamed.
1586         (Resolve_Record_Aggregate): In an extension aggregate, an association
1587         with a box initialization can only designate a component of the
1588         extension, not a component inherited from the given ancestor
1589
1590         * sem_case.adb: Use new Is_Standard_Character_Type predicate
1591
1592 2008-04-08  Robert Dewar  <dewar@adacore.com>
1593
1594         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1595         negative scale
1596         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1597         Properly handle case where Aft > Scale and input number is less than
1598         one.
1599
1600 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1601
1602         * s-stoele.ads, s-soflin.ads: Move the location of
1603         Dummy_Communication_Block from System.Storage_Elements to
1604         System.Soft_Links.
1605
1606         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1607         emulate Communication_Block in certain scenarios.
1608
1609 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1610
1611         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1612         subprogram.
1613         Add new subtype S_WWC, unchecked conversion routines From_WWC and
1614         To_WWC.
1615         (I_WWC, O_WWC): New routines for input and output of
1616         Wide_Wide_Character.
1617
1618 2008-04-08  Robert Dewar  <dewar@adacore.com>
1619
1620         * stringt.adb (Write_String_Table_Entry): Handle wide characters
1621         properly
1622
1623 2008-04-08  Robert Dewar  <dewar@adacore.com>
1624
1625         * styleg.adb (Check_Comment): Allow special char after -- in
1626         non-end-of-line case
1627
1628 2008-04-08  Robert Dewar  <dewar@adacore.com>
1629
1630         * stylesw.adb: Implement -gnaty + - y options
1631         (Set_GNAT_Style_Check_Options): Includ I in style check string
1632
1633         * stylesw.ads: Add comments for new style switch options
1634
1635 2008-04-08  Sergey Rybin  <rybin@adacore.com>
1636
1637         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1638         to the set of the GNAT components needed by ASIS.
1639
1640 2008-04-08  Bob Duff  <duff@adacore.com>
1641
1642         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1643
1644 2008-04-08  Tristan Gingold  <gingold@adacore.com>
1645
1646         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1647         Improve error message generation.
1648
1649 2008-04-08  Vincent Celier  <celier@adacore.com>
1650
1651         * a-direct.adb (Start_Search): Check for Name_Error before checking for
1652         Use_Error, as specified in the RM. Check if directory is open and raise
1653         Use_Error if it is not.
1654
1655 2008-04-08  Vincent Celier  <celier@adacore.com>
1656             Robert Dewar  <dewar@adacore.com>
1657
1658         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1659         AAMP_On_Target is set.
1660
1661         * vms_data.ads: Add NOxxx to style check switch list
1662         Add entry COMPONENTS for -gnatVe
1663         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1664         (/SUBDIRS=).
1665         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1666         Add qualifiers for gnatmetric coupling options
1667         Add note that -gnata enables all checks
1668         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1669         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1670         New warning flag -gnatw.e
1671
1672         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1673         Add entry for -gnatyN (forgotten before)
1674         Line for new warning switch -gnatw.p
1675         New warning flag -gnatw.e
1676
1677         * gnat_ugn.texi: Add documentation fpr project file switch -aP
1678         Document -gnaty - + y
1679         Replace occurences of "package specification" with "package spec"
1680         Define preprocessing symbols in documentation of gnatprep
1681         Clarify reason for distinguishing overflow checking
1682         Add documentation for project-aware tool switches -eL and --subdirs=
1683         Complete list of configuration pragmas
1684         Specify that, even when gnatmake switch -x is used, mains on the command
1685         line need to be sources of project files.
1686         Editing of gnatcheck/gnatmetric doc.
1687         Add documentation for -gnatw.p/-gnatw.P
1688         Add missing documentation for -fno-inline-functions.
1689         Add documentation for -gnatw.e
1690
1691         * gnat_rm.texi: Add documentation for No_Default_Initialization
1692         Replace occurences of "package specification" with "package spec"
1693         Document use of * in Warnings Off string
1694         Update documentation of alignment/component clauses.
1695         Add documentation for Invalid_Value
1696         Document new consistency rule for Optimize_Alignment
1697         Add documentation for Precondition and Postcondition pragmas
1698         Add documentation for Check and Check_Policy pragmas
1699         Document new Enum_Val attribute
1700         Remove requirement for static string in pragma Assert
1701         Add documentation on GNAT.Time_Stamp
1702
1703         * ug_words: add entry for -gnatVe
1704         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1705         Add entry for -gnatw.e
1706
1707         * debug.adb: Add missing documentation for d.a flag
1708         Document new -gnatd.a switch.
1709         Add documentation for new gnatmake debug switch -df
1710
1711 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1712
1713         * gen-soccon.c: Bump year in copyright notices.
1714
1715         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1716
1717 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1718
1719         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1720         Minor reformatting.
1721
1722 2008-04-08  Robert Dewar  <dewar@adacore.com>
1723             Bob Duff  <duff@adacore.com>
1724
1725         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1726         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1727
1728         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1729
1730         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1731
1732         * g-trasym.ads: Minor comment improvements
1733
1734         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1735
1736         * a-sequio.ads, a-direio.ads: improve message for tagged type
1737
1738         * a-strunb.ads: Minor reformatting
1739
1740         * a-tifiio.adb: Minor reformatting
1741
1742         * atree.adb (Fix_Parents): Use clearer names for formals
1743         Cleanup and simplify code
1744         Use named notation in calls
1745
1746         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1747         confusing calls
1748
1749         * uintp.adb: Used named notation for some confusing calls
1750
1751         * bindusg.adb: Minor change in one line of output
1752
1753         * cstand.adb: Minor reformatting of src representation of Standard
1754
1755         * a-assert.ads: Add comment.
1756
1757         * g-decstr.adb: Fix bad indentation
1758
1759         * expander.ads, expander.adb: Code clean up.
1760
1761         * sem_dist.ads: Minor comment improvement
1762
1763         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1764         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1765
1766         * i-cstrin.adb: Fix casing error in formal parameter name in call
1767
1768 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1769
1770         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1771         mentioned in limited_with_clauses to do create semantic dependencies
1772         even though they appear in the ali file.
1773
1774 2008-04-08  Emmanuel Briot  <briot@adacore.com>
1775
1776         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1777         statement.
1778         (Get_Configuration): New subprogram.
1779
1780         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1781         These optional parameters help preserve the casing of the project's name
1782         when pretty-printing.
1783
1784 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
1785             Arnaud Charlet  <charlet@adacore.com>
1786
1787         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1788         then use __gnat_set_exit_status to report the returned status code.
1789
1790         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1791         messages on .NET, since some constructs of the language are not
1792         properly supported.
1793
1794         * gnatlink.adb (Gnatlink): In case the command line is too long for the
1795         .NET linker, gnatlink now concatenate all .il files and pass this to
1796         ilasm.
1797
1798 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1799             Xavier Grave  <grave@ipno.in2p3.fr>
1800
1801         * Makefile.in: Add make ifeq define for mips/mipsel support.
1802         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
1803         system-linux-mips.ads: New files.
1804
1805 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1806
1807         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1808         detect systems using GNU libc.
1809         * gsocket.h: ditto.
1810         * socket.c: ditto.
1811         * adaint.c: ditto.
1812         * link.c: ditto.
1813
1814 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1815
1816         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
1817         constant constant for sysconf call.
1818         (bit_field): New packed boolean type used by cpu_set_t.
1819         (cpu_set_t): New type corresponding to the C type with
1820         the same name. Note that on the Ada side we use a bit
1821         field array for the affinity mask. There is not need
1822         for the C macro for setting individual bit.
1823         (pthread_setaffinity_np): New imported routine.
1824         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1825         on GNU/kFreeBSD.
1826
1827 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1828
1829         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1830
1831 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1832
1833         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1834         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1835         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1836         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1837         Return by Depressed Stack Pointer.
1838
1839 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1840
1841         * decl.c (is_variable_size): Do not unconditionally return false
1842         on non-strict alignment platforms.
1843
1844 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1845
1846         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1847         used to process all the variants of the specified type.
1848         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1849         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
1850         (rest_of_type_decl_compilation): Likewise.
1851         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1852
1853 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1854
1855         * gigi.h (insert_block): Kill.
1856         * utils.c (insert_block): Kill.
1857
1858 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1859
1860         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1861         type has self-referential size, get the size from the initializing
1862         expression directly if it is also a constant whose nominal type
1863         has self-referential size.
1864
1865 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1866
1867         PR ada/33688
1868         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1869
1870         PR ada/33857
1871         * env.c: Always include crt_externs.h if __APPLE__ is defined.
1872         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1873
1874 2008-04-01  Andreas Jaeger  <aj@suse.de>
1875
1876         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1877         IP_PKTINFO.
1878
1879 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1880
1881         * g-table.adb, g-tasloc.adb, g-traceb.ads,
1882         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1883         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1884         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1885         gnatlink.adb, gnatmem.adb, gprep.adb,
1886         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1887         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1888         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1889         lib-xref.ads, lib.adb, link.c, live.ads,
1890         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1891         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1892         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1893         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1894         namet.adb, namet.h, nlists.adb, nlists.ads,
1895         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1896         osint-c.ads, osint.adb, osint.ads, output.ads,
1897         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1898         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1899         par-endh.adb, par-labl.adb, par-prag.adb,
1900         par-sync.adb, par-tchk.adb, par-util.adb,
1901         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1902         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1903         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1904         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1905
1906 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1907
1908         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1909         size if it has overflowed.
1910
1911 2008-03-31  Olivier Hainque  <hainque@adacore.com>
1912             Eric Botcazou  <ebotcazou@adacore.com>
1913
1914         * utils2.c (find_common_type): Document assumption on t1/t2 vs
1915         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1916
1917 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1918
1919         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1920         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1921         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1922         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1923         exp_tss.ads, exp_util.adb, exp_util.ads,
1924         exp_vfpt.adb, freeze.adb, freeze.ads,
1925         frontend.adb, g-alleve.adb, g-altcon.adb,
1926         g-altive.ads, g-alveop.ads, g-alvevi.ads,
1927         g-arrspl.adb, g-busorg.ads, g-calend.adb,
1928         g-calend.ads, g-casuti.ads, g-cgideb.adb,
1929         g-comlin.adb, g-comlin.ads, g-curexc.ads,
1930         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1931         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1932         g-dyntab.adb, g-encstr.ads, g-excact.ads,
1933         g-except.ads, g-expect.ads, g-heasor.adb,
1934         g-hesora.adb, g-hesorg.adb, g-htable.ads,
1935         g-locfil.ads, g-md5.adb, g-md5.ads,
1936         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1937         g-pehage.adb, g-pehage.ads, g-regexp.adb,
1938         g-regexp.ads, g-regpat.adb, g-regpat.ads,
1939         g-soccon-aix.ads, g-soccon-darwin.ads,
1940         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1941         g-soccon-hpux.ads, g-soccon-irix.ads,
1942         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1943         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1944         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1945         g-soccon-solaris.ads, g-soccon-tru64.ads,
1946         g-soccon-vms.ads, g-soccon-vxworks.ads,
1947         g-soccon.ads, g-socket.adb, g-socket.ads,
1948         g-socthi-mingw.adb, g-socthi-vms.adb,
1949         g-socthi-vxworks.adb, g-soliop-mingw.ads,
1950         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1951         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1952         typos.
1953
1954 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
1955
1956         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1957         if the procedure is imported.
1958
1959 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1960
1961         * adaint.c: Fix warnings.
1962
1963 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1964
1965         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1966
1967 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1968
1969         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1970         Fix problem of status check for null file
1971
1972 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1973
1974         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1975         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1976         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1977         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1978         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1979         comments.
1980
1981 2008-03-26  Thomas Quinot  <quinot@adacore.com>
1982
1983         PR ada/33688
1984         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1985         Get_Socket_Option): Add support for Receive_Packet_Info.
1986
1987         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1988         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1989         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1990         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1991         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1992         new constants SO_REUSEPORT and IP_PKTINFO
1993
1994 2008-03-26  Robert Dewar  <dewar@adacore.com>
1995
1996         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1997         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1998         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1999         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
2000         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
2001         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
2002         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
2003         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
2004         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
2005         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
2006         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
2007         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
2008         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
2009         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
2010         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
2011         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
2012         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
2013         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
2014         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
2015         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
2016         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
2017         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
2018         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
2019         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
2020         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
2021         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
2022         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
2023         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
2024         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
2025         s-tasloc.adb: Minor reformatting.
2026         Update comments.
2027         Remove "used for" sections from comments.
2028
2029 2008-03-26  Robert Dewar  <dewar@adacore.com>
2030
2031         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2032         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2033         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2034         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2035         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2036         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2037         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2038         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2039         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2040         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2041         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2042         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2043         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2044         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2045         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2046         double spaced if it fits on one line and otherwise single spaced.
2047
2048 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
2049
2050         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
2051         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
2052         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
2053         or task info if the thread could not be created.
2054
2055 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
2056
2057         * gnatvsn.ads (Library_Version): Bump to 4.4.
2058         (Current_Year): Bump to 2008.
2059
2060 2008-03-26  Robert Dewar  <dewar@adacore.com>
2061
2062         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
2063
2064         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
2065
2066         * debug.adb: Add debug flags d.r and d.v
2067         Add debug flag .T (Optimize_Alignment (Time))
2068         Add debug flag .S (Optimize_Alignment (Space))
2069
2070         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
2071         depending on setting of relevant debug flags.
2072         Replace use of Warnings_Off by Has_Warnings_Off
2073         (Freeze_Entity): In circuit for warning on suspicious convention
2074         actuals, do not give warning if subprogram has same entity as formal
2075         type, or if subprogram does not come from source.
2076         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
2077         if Optimize_Alignment set to Space.
2078
2079         * frontend.adb: Add call to Sem_Warn.Initialize
2080         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
2081         Reset Optimize_Alignment mode from debug switches .S and .T
2082
2083         * layout.adb (Layout_Composite_Object): Rewritten for
2084         Optimize_Aligment pragma.
2085
2086         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
2087         mode.
2088
2089         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
2090
2091         * par-prag.adb (N_Pragma): Chars field removed, use Chars
2092         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
2093         this change. Add entry for pragma Optimize_Alignment
2094
2095         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
2096         (Pragma_Identifier (..
2097         instead, adjustments throughout to accomodate this change.
2098         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
2099         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
2100         Add implementation of pragma Optimize_Alignment
2101
2102 2008-03-26  Vincent Celier  <celier@adacore.com>
2103
2104         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
2105         Improve memory usage to avoid use of stack.
2106
2107 2008-03-26  Robert Dewar  <dewar@adacore.com>
2108
2109         * a-teioed.ads: Correct value of Default_Fill
2110
2111         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
2112
2113 2008-03-26  Robert Dewar  <dewar@adacore.com>
2114
2115         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
2116         with Current_Output (introduce Self).
2117
2118 2008-03-26  Robert Dewar  <dewar@adacore.com>
2119
2120         * checks.adb (Ensure_Valid): Capture valid status if possible
2121         (eliminate checks)
2122
2123 2008-03-26  Robert Dewar  <dewar@adacore.com>
2124
2125         * stand.ads: Deal with reordering of package standard declarations
2126
2127         * cstand.adb: Put package Standard declarations in proper order
2128
2129 2008-03-26  Robert Dewar  <dewar@adacore.com>
2130
2131         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
2132         (Pragma_Identifier (.. instead.
2133         (OK_To_Reorder_Components): New flag
2134         (Has_Entries): Code cleanup.
2135         (Warnings_Off_Used): New flag
2136         (Warnings_Off_Used_Unmodified): New flag
2137         (Warnings_Off_Used_Unreferenced): New flag
2138         (Has_Warnings_Off): New function
2139         (Has_Unmodified): New function
2140         (Has_Unreferenced): New function
2141         (Is_Trivial_Subprogram): New flag
2142         (Is_Static_Dispatch_Table_Entity): New attribute.
2143         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
2144         (more consistent with other similar names)
2145         (Access_Subprogram_Type): New classification function
2146
2147 2008-03-26  Robert Dewar  <dewar@adacore.com>
2148
2149         * errout.ads: Document new !! insertion sequence
2150
2151         * errout.adb (N_Pragma): Chars field removed, use Chars
2152         (Pragma_Identifier (..  instead.
2153         Replace use of Warnings_Off by Has_Warnings_Off
2154         (Error_Msg_Internal): Don't delete warning ending in !!
2155
2156 2008-03-26  Robert Dewar  <dewar@adacore.com>
2157
2158         * par.adb (Check_No_Right_Paren): Removed no longer used
2159
2160         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
2161         (Pragma_Identifier (..  instead.
2162
2163         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
2164
2165         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
2166         par-ch4.adb: Minor improvements in error recovery and messages.
2167
2168         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
2169         non-serious
2170
2171         * par-ch9.adb: Minor improvements in error recovery and messages
2172         (P_Protected): Better error recovery for "protected type x;"
2173
2174         * par-util.adb: Minor improvements in error recovery and messages
2175         (Check_No_Right_Paren): Removed no longer used
2176
2177 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2178
2179         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
2180         that the prefix of an attribute is the type of the aggregate being
2181         expanded.
2182
2183 2008-03-26  Javier Miranda  <miranda@adacore.com>
2184             Robert Dewar  <dewar@adacore.com>
2185
2186         * exp_attr.adb (N_Pragma): Chars field removed.
2187         (Expand_N_Attribute_Reference): If the designated type associated with
2188         attribute 'Unrestricted_Access is a subprogram entity then replace it
2189         by an E_Subprogram_Type itype.
2190         Implement attribute Old
2191
2192         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
2193
2194         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
2195         Replace call to
2196         New_Internal_Entity by call to Create_Itype to centralize calls
2197         building itypes, ad propagate the convention of the designated
2198         subprogram. In addition, disable the machinery cleaning constant
2199         indications from all entities in current scope when 'Unrestricted_Access
2200         corresponds with a node initializing a dispatch table slot.
2201         (Analyze_Attribute): Parameterless attributes returning a string or a
2202         type will not be called with improper arguments, so we can remove junk
2203         code that was dealing with this case.
2204         Implement attribute Old
2205
2206         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
2207         Add entry for pragma Optimize_Alignment
2208         New standard names Sync and Synchronize
2209
2210 2008-03-26  Robert Dewar  <dewar@adacore.com>
2211             Arnaud Charlet  <charlet@adacore.com>
2212
2213         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
2214         stmt.
2215         (No_Exception_Propagation_Active): New function.
2216         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2217         Update comments, and review all uses of No_Exception_Propagation, which
2218         are now correct and in sync with what gigi expects.
2219
2220         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
2221         function.
2222         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2223         Update comments, and review all uses of No_Exception_Propagation, which
2224         are now correct and in sync with what gigi expects.
2225
2226 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2227
2228         * sem_ch3.adb (Access_Definition): If the access type is the return
2229         result of a protected function, create an itype reference for it
2230         because usage will be in an inner scope from the point of declaration.
2231         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
2232         OK_To_Reorder_Components.
2233         (Make_Index): If an overloaded range includes a universal integer
2234         interpretation, resolve to Standard.Integer.
2235         (Analyze_Subtype_Indication): Copy Convention to subtype
2236         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
2237         limited an synchronized progenitors in type declaration and private
2238         extension declarations.
2239
2240         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
2241         protected subprogram body, determine proper scope from subprogram
2242         declaration.
2243
2244 2008-03-26  Robert Dewar  <dewar@adacore.com>
2245
2246         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
2247         No_Run_Time_Mode
2248
2249 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
2250
2251         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
2252         of a heap allocator for a limited unconstrained function return when
2253         resstriction No_Allocators is active.
2254         (Analyze_Allocator): The restriction No_Allocators is now only checked
2255         on allocators that have Comes_From_Source set, as per RM-H.4(7).
2256
2257         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
2258         of a heap allocator for a limited unconstrained function return when
2259         resstriction No_Allocators is active.
2260         (Analyze_Allocator): The restriction No_Allocators is now only checked
2261         on allocators that have Comes_From_Source set, as per RM-H.4(7).
2262         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
2263         operands are fixed-point types, the universal_fixed predefined operation
2264         is used, regardless of whether the operand type (s) have a primitive
2265         operation of the same name.
2266
2267 2008-03-26  Javier Miranda  <miranda@adacore.com>
2268
2269         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
2270         Is_Static_Dispatch_Table
2271         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
2272         to Exchange_Declarations to exchange the private and full-view. Bug
2273         found working in this issue.
2274         (Expand_Dispatching_Call): Propagate the convention of the subprogram
2275         to the subprogram pointer type.
2276         (Make_Secondary_DT): Replace generation of Prim'Address by
2277         Address (Prim'Unrestricted_Access)
2278         (Make_DT): Replace generation of Prim'Address by
2279         Address (Prim'Unrestricted_Access)
2280         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
2281         simple call form for single entry.
2282         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
2283         tables of predefined primitives).
2284         (Make_Secondary_DT): Add support to handle access to dispatch tables of
2285         predefined primitives.
2286         (Make_Tags): Add entities to Access_Dispatch_Table associated with
2287         access to dispatch tables containing predefined primitives.
2288
2289         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
2290         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
2291         this change.
2292         (Register_Predefined_DT_Entry): Updated to handle the new contents
2293         of attribute Access_Disp_Table (pointers to dispatch tables containing
2294         predefined primitives).
2295
2296         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
2297         subprogram.
2298         (Find_Interface_ADT): Updated to skip the new contents of attribute
2299         Access_Dispatch_Table (pointers to dispatch tables containing predefined
2300         primitives).
2301
2302         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
2303         concurrent types.
2304         (Set_Convention): Use new function Is_Access_Subprogram_Type
2305         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
2306         Access_Dispatch_Table (pointers to dispatch tables containing predefined
2307         primitives).
2308
2309         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
2310         expanded code avoiding calls to Build_Predef_Prims.
2311         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
2312         call to Build_Get_Predefined_Prim_Op_Address.
2313
2314 2008-03-26  Javier Miranda  <miranda@adacore.com>
2315
2316         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
2317         subprogram Corresponding_Runtime_Package to know the runtime package
2318         that will provide support to a given protected type.
2319
2320         * exp_ch9.adb (Add_Private_Declarations,
2321         Build_Protected_Subprogram_Call,
2322         Build_Protected_Entry, Build_Simple_Entry_Call,
2323         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2324         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2325         cleanup using the new centralized subprogram Corresponding_Runtime
2326         Package to know the runtime package that provides support to
2327         a given protected type.
2328
2329 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2330
2331         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2332         assignment is within the initialization procedure for a packed array,
2333         and Initialize_Scalars is enabled, compile right-hand side with checks
2334         off, because the value is purposely out of range.
2335
2336 2008-03-26  Vincent Celier  <celier@adacore.com>
2337
2338         * gnatcmd.adb: Add processing for GNAT SYNC
2339
2340         * vms_conv.ads: (Command_Type): Add command Sync
2341
2342         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2343
2344         * vms_data.ads: Add entries for -gnatw.w
2345         Add qualifier for gnatstub --header-file option
2346         Add switches for GNAT SYNC
2347
2348         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2349         (Add_Package_Name): New procedure
2350         (Package_Name_List): New function
2351         (Initialize): Add known package names to the list
2352         (Register_New_Package): Add the new package name to the list
2353
2354 2008-03-26  Robert Dewar  <dewar@adacore.com>
2355
2356         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2357         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2358         Raise_Exception by "raise with" construct.
2359
2360 2008-03-26  Pascal Obry  <obry@adacore.com>
2361
2362         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2363         supported platforms.
2364         
2365         * Makefile.rtl: Add g-sercom.o.
2366         
2367         * impunit.adb: Add g-sercom.adb.
2368         
2369         * s-crtl.ads (open): New routine.
2370         (close): Likewise.
2371         (write): Likewise.
2372         
2373         * s-osinte-mingw.ads (BYTE): New type.
2374         (CHAR): Likewise.
2375         (OVERLAPPED): Likewise.
2376         (GENERIC_READ): New constant.
2377         (GENERIC_WRITE): Likewise.
2378         (OPEN_EXISTING): Likewise.
2379         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2380         type instead.
2381         (CreateFile): New routine.
2382         (WriteFile): Likewise.
2383         (ReadFile): Likewise.
2384         (CloseHandle): Move next to the other file oriented routines.
2385
2386         * g-sercom.ads: New unit.
2387
2388         * g-sercom.adb: Default implementation, calls to this unit will raise
2389         a program error exception.
2390         
2391         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2392         GNU/Linux implementations.
2393
2394 2008-03-26  Robert Dewar  <dewar@adacore.com>
2395
2396         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2397
2398         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2399         unchecked conversion for different conventions only for subprogram
2400         pointers or on VMS.
2401
2402 2008-03-26  Vincent Celier  <celier@adacore.com>
2403
2404         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2405         to check if the specified object file is correct.
2406
2407 2008-03-26  Thomas Quinot  <quinot@adacore.com>
2408
2409         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2410         Comes_From_Source to exclude primitives from being checked. We want to
2411         exclude predefined primitives only, so use the appropriate specific
2412         predicate. Also, flag a formal parameter of an anonymous
2413         access-to-subprogram type as illegal for a primitive operation of a
2414         remote access to class-wide type.
2415
2416 2008-03-26  Vincent Celier  <celier@adacore.com>
2417
2418         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2419         known, check if it may be a missspelling of a known package name. In
2420         not verbose, not mode, issue warnings only if the package name is a
2421         possible misspelling.
2422         In verbose mode, always issue a warning for a not known package name,
2423         plus a warning if the name is a misspelling of a known package name.
2424
2425         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2426         limited withs or limited withs are parse during one call.
2427         (Parse_Single_Project): Post parse context clause in two passes: non
2428         limited withs before current project and limited withs after current
2429         project.
2430
2431         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2432         project with the name With_Name, even if it is only extended indirectly.
2433         (Recursive_Process): Process projects in order: first single withs, then
2434         current project, then limited withs.
2435
2436         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2437         project with the name With_Name, even if it is only extended indirectly.
2438
2439 2008-03-26  Robert Dewar  <dewar@adacore.com>
2440
2441         * scn.adb (Initialize_Scanner): Format messages belong on standard error
2442
2443 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2444
2445         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2446         a generic subprogram that is imported, do not attempt to compile
2447         non-existent body.
2448
2449         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2450         imported, do not generate a raise_program_error for the non-existent
2451         body.
2452         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2453         perform minimal name resolution on the generic to avoid spurious
2454         warnings.
2455         (Find_Actual_Type): the designated type of the actual in a child unit
2456         may be declared in a parent unit without being an actual.
2457
2458 2008-03-26  Robert Dewar  <dewar@adacore.com>
2459
2460         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2461         * sinfo.ads, sinfo.adb (From_At_End): New flag
2462
2463 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2464
2465         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2466         operations that have an interface parameter.
2467         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2468         Don't treat No_Return call as raise.
2469
2470         * sem_disp.adb (Check_Dispatching_Operations): apply check for
2471         non-primitive interface primitives to access parameters, not to all
2472         parameters of an access type.
2473
2474 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2475
2476         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2477         declarations of a parent unit are made visible when compiling a child
2478         instance, the parent is not a hidden open scope, even though it may
2479         contain other pending instance.
2480         
2481         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2482         hidden open scope for some child instance, it does affect the
2483         visibility status of other stach entries.
2484         (Analyze_Object_Renaming): Check that a class-wide object cannot be
2485         renamed as an object of a specific type.
2486
2487 2008-03-26  Robert Dewar  <dewar@adacore.com>
2488
2489         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2490         recursion and raise SE directly.
2491         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2492         set for formal type for IN mode parameter.
2493
2494 2008-03-26  Robert Dewar  <dewar@adacore.com>
2495
2496         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2497         (Initialize): New procedure
2498         (Output_Warnings_Off_Warnings): New procedure
2499         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2500         (Output_Non_Modifed_In_Out_Warnings): Ditto
2501         (Warn_On_Unreferenced_Entity): Ditto
2502
2503 2008-03-26  Vincent Celier  <celier@adacore.com>
2504
2505         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2506         readable.
2507
2508 2008-03-26  Matthew Heaney  <heaney@adacore.com>
2509
2510         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
2511         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2512         Marked with clauses as private, and controlled operations as overriding
2513
2514 2008-03-26  Robert Dewar  <dewar@adacore.com>
2515
2516         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2517
2518 2008-03-26  Robert Dewar  <dewar@adacore.com>
2519
2520         * back_end.adb, back_end.ads: Minor reformatting
2521
2522         * bindgen.adb: Minor clarification of comments
2523
2524         * fname.ads: Minor comment fixes
2525
2526         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2527         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2528
2529         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2530         xsnames.adb: Remove warnings off pragma no longer needed
2531
2532         * a-catizo.ads, a-calari.ads, a-calfor.adb,
2533         a-calfor.ads: Fix header.
2534
2535 2008-03-26  Tristan Gingold  <gingold@adacore.com>
2536
2537         * init.c: Do not adjust pc for HPARITH on alpha/vms.
2538
2539 2008-03-26  Robert Dewar  <dewar@adacore.com>
2540
2541         * lib-xref.adb: (OK_To_Set_Reference): New function
2542         (Generate_Reference): Don't set referenced from occurrence in Warnings,
2543         Unmodified, or Unreferenced pragma
2544
2545 2008-03-26  Robert Dewar  <dewar@adacore.com>
2546
2547         * alloc.ads: Add entries for Warnings_Off_Pragmas table
2548
2549 2008-03-26  GNAT Script  <nobody@adacore.com>
2550
2551         * Make-lang.in: Makefile automatically updated
2552
2553 2008-03-26  Robert Dewar  <dewar@adacore.com>
2554
2555         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2556         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2557         removed, use Chars (Pragma_Identifier (..  instead, adjustments
2558         throughout to accomodate this change.
2559
2560         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2561
2562         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2563         Einfo.Set_Needs_Debug_Info)
2564
2565 2008-03-26  Robert Dewar  <dewar@adacore.com>
2566
2567         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2568         Add description for the new gnatstub option '--header-file'
2569         clarification of -gnatwz/-gnatwZ
2570         Add a "Irix-Specific Considerations" section to document the need to
2571         set LD_LIBRARY_PATH when using the default shared runtime library.
2572         Added documentation for both gcov and gprof.
2573
2574         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2575         messages that are not suppressed when clients are compiled.
2576         Add documentation of s-pooglo s-pooloc
2577         Document the new GNAT.Serial_Communications API.
2578         Add documentation for 'Old attribute
2579         Add description of pragma Optimize_Alignment
2580
2581         * ug_words: Add entries for -gnatw.w -gnatw.W
2582
2583         * usage.adb: Add line for -gnatw.w (warn on warnings off)
2584
2585 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2586
2587         Revert
2588         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2589         PR ada/35186
2590         * decl.c (maybe_pad_type): Avoid padding an integral type when
2591         bumping its alignment is sufficient.
2592
2593 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
2594
2595         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2596         Fix wrong formatting (lines too long)
2597
2598 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2599
2600         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2601         a-calend-vms.adb, a-calend.adb, a-calend.ads,
2602         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2603         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2604         a-cohama.ads, a-comlin.ads, a-coorse.adb,
2605         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2606         a-except-2005.ads, a-except.adb, a-except.ads,
2607         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2608         a-exextr.adb, a-filico.ads, a-finali.ads,
2609         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2610         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2611         a-sequio.ads, a-strbou.ads, a-strfix.adb,
2612         checks.adb, exp_ch3.adb, exp_ch4.adb,
2613         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2614         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2615         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2616         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2617         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2618
2619 2008-03-24  Robert Dewar  <dewar@adacore.com>
2620
2621         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2622         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2623         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2624         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2625         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2626         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2627         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2628         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2629         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2630         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2631         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2632         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2633         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2634         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2635         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2636         double spaced if it fits on one line and otherwise single spaced.
2637
2638 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2639
2640         PR documentation/15479
2641         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2642         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2643         (doc/gnat_ugn.info): Renamed from ...
2644         (doc/gnat_ugn_unw.info): ... this.
2645         (doc/gnat_ugn.dvi): Renamed from ...
2646         (doc/gnat_ugn_unw.dvi): ... this.
2647         (doc/gnat_ugn.pdf): Renamed from ...
2648         (doc/gnat_ugn_unw.pdf): ... this.
2649         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2650         Adjusted.
2651         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2652         unconditionally to gnat_ugn.info.  Fix cross references to the
2653         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
2654         and GNU make manuals to be proper texinfo links.
2655         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2656
2657 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2658
2659         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2660         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2661
2662 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
2663
2664         * trans.c (addressable_p): Add notes on addressability issues.
2665
2666 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2667             Ed Schonberg  <schonberg@adacore.com>
2668
2669         * trans.c (addressable_p): Accept COND_EXPR when both arms
2670         are addressable.
2671         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2672         (call_to_gnu): Do not use name reference in the error message
2673         for a misaligned by_reference_parameter. The actual may be a
2674         general expression.
2675
2676 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2677
2678         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2679
2680 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2681
2682         * gnat_rm.texi (Implementation Defined Characteristics)
2683         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2684         appropriate.
2685         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2686         (Switches for gnatchop, Installing a library): Likewise.
2687
2688 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
2689
2690         * trans.c (emit_range_check): Do not emit the check if the base type
2691         of the expression is the type against which its range must be checked.
2692
2693 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2694
2695         * decl.c (maybe_pad_type): Use value_factor_p.
2696
2697 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2698
2699         * lang.opt (nostdlib): Move around.
2700         * misc.c (gnat_handle_option): Fix formatting.
2701         (gnat_dwarf_name): Move around.
2702         * trans.c (Case_Statement_to_gnu): Fix formatting.
2703         (gnat_to_gnu): Likewise.
2704         * utils.c (aggregate_type_contains_array_p): Likewise.
2705         (create_subprog_decl): Likewise.
2706
2707 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2708
2709         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2710         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2711
2712 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2713
2714         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2715         BIGGEST_ALIGNMENT when capping the alignment of records with
2716         strict alignment and size clause.
2717
2718 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2719
2720         * lang-specs.h: Pass -gnatwa if -Wall is passed.
2721         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2722         and -Wuninitialized.
2723         (gnat_post_options): Clear warn_unused_parameter.
2724
2725 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2726
2727         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2728         aligned bit-fields, bumping the alignment of the record type if deemed
2729         profitable.
2730         (value_factor_p): Return false instead of 0.
2731
2732 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2733
2734         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2735         for scalar types with small alignment.
2736
2737 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2738
2739         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2740         from that of the front-end's end label.
2741         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2742         from that of the loop label.
2743
2744 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2745
2746         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2747         comment for the packed array type case.
2748         * utils.c (build_template): Use a loop to strip padding or
2749         containing records for justified modular types.
2750
2751 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2752
2753         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2754         large alignments specified for types.
2755         (validate_alignment): Minor cleanup.
2756
2757 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2758
2759         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2760         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2761         the component for packing, if possible, as well as if a component
2762         size clause is specified.
2763         <E_Record_Subtype>: For an array type used to implement a packed
2764         array, get the component type from the original array type.
2765         Try to get a smaller form of the component for packing, if possible,
2766         as well as if a component size clause is specified.
2767         (round_up_to_align): New function.
2768         (make_packable_type): Add in_record parameter.
2769         For a padding record, preserve the size.  If not in_record and the
2770         size is too large for an integral mode, attempt to shrink the size
2771         by lowering the alignment.
2772         Ditch the padding bits of the last component.
2773         Compute sizes and mode manually, and propagate the RM size.
2774         Return a BLKmode record type if its size has shrunk.
2775         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2776         Use Original_Array_Type to retrieve the type in case of an error.
2777         Adjust call to make_packable_type.
2778         (gnat_to_gnu_field): Likewise.
2779         (concat_id_with_name): Minor tweak.
2780         * trans.c (larger_record_type_p): New predicate.
2781         (call_to_gnu): Compute the nominal type of the object only if the
2782         parameter is by-reference.  Do the conversion actual type -> nominal
2783         type if the nominal type is a larger record.
2784         (gnat_to_gnu): Do not require integral modes on the source type to
2785         avoid the conversion for types with identical names.
2786         (addressable_p): Add gnu_type parameter.  If it is specified, do not
2787         return true if the expression is not addressable in gnu_type.
2788         Adjust recursive calls.
2789         * utils.c (finish_record_type): Remove dead code.
2790
2791 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2792
2793         PR ada/35186
2794         * decl.c (maybe_pad_type): Avoid padding an integral type when
2795         bumping its alignment is sufficient.
2796
2797 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2798
2799         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2800         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2801         statement.
2802         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2803         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2804         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2805         code output strings.
2806         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2807         system-vms_64.ads: Fix typos in ada source code comments.
2808         * sinfo-cn.adb: Remove incomplete sentence.
2809
2810         PR documentation/15479
2811         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2812
2813 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2814
2815         PR ada/22255
2816         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2817
2818 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2819
2820         PR ada/34799
2821         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2822         that underlying type is present.
2823
2824 2008-02-26  Tom Tromey  <tromey@redhat.com>
2825
2826         * misc.c (internal_error_function): Remove test of
2827         USE_MAPPED_LOCATION.
2828         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2829         (Sloc_to_locus): Remove old location code.
2830
2831 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2832
2833         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2834         `i.e.' by adding comma or `@:' as appropriate.
2835         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2836         plain characters `C', use `@samp{C}'.
2837         * gnat_ugn.texi (File Naming Rules, About gnatkr)
2838         (Krunching Method): Likewise.
2839
2840         * gnat_ugn.texi (Conventions): List environment variables and
2841         metasyntactic variables.
2842         (Compiling Programs): Fix notation of metasyntactic variables.
2843         Add @file where appropriate.  Use @file for file extensions,
2844         @samp for strings.
2845         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2846         instead of @file, @env instead of @code.
2847
2848 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2849
2850         PR documentation/15479
2851         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2852         and `...' with `@dots{}' or `@enddots{}'.
2853
2854         PR documentation/15479
2855         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2856         use @command instead of @code, @option instead of @samp or @code,
2857         @code instead of @var, @samp instead of @file.
2858
2859         PR documentation/15479
2860         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2861         in Makefile rules, by using `&&' rather than `;'.
2862
2863 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2864
2865         PR documentation/15479
2866         * gnat_ugn.texi: In non-code, avoid space before colon.
2867         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2868         (Examples of gnatxref Usage): Use @command{vi} instead of
2869         @file{vi}.
2870         (Character Set Control): Do not use @code for UTF-8.
2871         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
2872         use @code for IEEE.
2873         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2874         sample.
2875         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
2876
2877 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
2878
2879         PR ada/35143
2880         * env.c: Add __rtems__ to if defined.
2881         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
2882         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2883         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
2884         pragma Convention as required.
2885         * gsocket.h: Make compile in and out of RTS.
2886         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
2887         Use g-soccon-rtems.ads.
2888         * g-soccon-rtems.ads, system-rtems.ads: New files.
2889
2890 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2891
2892         PR other/35107
2893         * Make-lang.in (gnat1): Add $(GMPLIBS).
2894
2895 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
2896
2897         * decl.c (components_to_record): Improve comment.
2898
2899 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2900
2901         * decl.c (components_to_record): Do not reuse the empty union type
2902         if there is a representation clause on the record.
2903         * trans.c (addressable_p): Return true for INTEGER_CST.
2904
2905 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
2906
2907         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2908         in pointer arithmetics.
2909         * utils2.c (build_allocator): Likewise.
2910
2911 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2912
2913         * utils.c (build_function_stub): Properly build the call expression.
2914
2915 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
2916
2917         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2918         before converting the expression to the type of the object.
2919         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2920         Stabilize constructors for special wrapping types.
2921
2922 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
2923
2924         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2925         when necessary.  Merge some conditional statements.  Update comments.
2926         Rename unchecked_convert_p local variable to suppress_type_conversion.
2927         Do not suppress conversions in the In case.
2928         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2929         into account on non strict-alignment platforms.
2930
2931 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2932
2933         * utils.c (aggregate_type_contains_array_p): New predicate.
2934         (create_field_decl): In a packed record, force byte alignment
2935         for fields without specified position that contain an array.
2936
2937 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2938
2939         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2940
2941 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
2942
2943         PR ada/34466
2944         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2945         sysconf call.
2946         (bit_field): New packed boolean type used by cpu_set_t.
2947         (cpu_set_t): New type corresponding to the C type with
2948         the same name. Note that on the Ada side we use a bit
2949         field array for the affinity mask. There is not need
2950         for the C macro for setting individual bit.
2951         (pthread_setaffinity_np): New imported routine.
2952
2953 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
2954
2955         PR ada/34647
2956         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2957         on OpenBSD as is done on other BSD systems.
2958
2959         PR ada/34645
2960         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2961         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2962         I/O.
2963
2964         PR ada/34644
2965         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2966         clearenv().
2967
2968         PR ada/34646
2969         * init.c (__gnat_error_handler, __gnat_install_handler,
2970         __gnat_init_float): Define for OpenBSD.
2971
2972         * initialize.c (__gnat_initialize): Define for OpenBSD.
2973
2974 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
2975
2976         PR ada/34553
2977         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2978         instead of mktemp() or tmpnam() on NetBSD.
2979
2980 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
2981
2982         * trans.c (call_to_gnu): Make the temporary for non-addressable
2983         In parameters passed by reference.
2984         (addressable_p): Return true for STRING_CST and CALL_EXPR.
2985
2986 2007-12-19  Robert Dewar  <dewar@adacore.com>
2987
2988         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
2989         Add pragma Warnings (Off) for unassigned IN OUT arguments
2990
2991         * sem_warn.adb (Output_Reference): Suppress messages for internal names
2992         (Check_References): Extensive changes to tune up warnings
2993         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2994         (Has_Pragma_Unmodifed_Check_Spec): New function
2995         (Check_References): Implement pragma Unmodified
2996         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2997
2998         * par-prag.adb: Dummy entry for pragma Unmodified
2999
3000         * sem_prag.adb: Implement pragma Unmodified
3001
3002         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
3003         (Proc_Next_Component_Or_Discriminant): Fix typo.
3004         Update comments.
3005
3006         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
3007         Unmodified.
3008         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
3009         because the former already takes care of discarding the result.
3010         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
3011         Add comment.
3012
3013         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
3014
3015 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
3016
3017         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
3018         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
3019         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
3020         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
3021         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
3022         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
3023         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
3024         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
3025         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
3026         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
3027         (Dynamic_Trampolines_Used): Delete.
3028
3029         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
3030         Turn on stack probing mechanism on LynxOS.
3031
3032 2007-12-19  Bob Duff  <duff@adacore.com>
3033
3034         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
3035         the resulting tail recursion by hand. This prevents running out of
3036         memory on deeply nested concatenations, since Field2 is where the left
3037         operand of concatenations is stored.
3038         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
3039         clarify that it can only return OK or Abandon.
3040
3041         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
3042         operand by iteration, in order to avoid running out of memory on
3043         deeply-nested concatenations. Use the Parent pointer to get back up the
3044         tree.
3045         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
3046          Resolve_Op_Concat_Rest): New procedures split out of
3047         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
3048         clearer.
3049
3050         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
3051         Traverse_Func, because the former already takes care of discarding the
3052         result.
3053
3054         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
3055         because the former already takes care of discarding the result.
3056         (Remove_Warning_Messages): Use appropriate subtype for Status and
3057         Discard 
3058
3059 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3060
3061         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
3062         discriminants forces expansion of the aggregate into assignments.
3063         (Init_Record_Controller):  If the type of the aggregate is untagged and
3064         is not inherently limited, the record controller is not limited either.
3065
3066 2007-12-19  Robert Dewar  <dewar@adacore.com>
3067
3068         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
3069         handling compile time known size of record or array (case of front end
3070         layout active, e.g. in GNAAMP).
3071
3072 2007-12-19  Javier Miranda  <miranda@adacore.com>
3073
3074         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
3075         that forces the construction of static dispatch tables in case of
3076         record subtypes.
3077
3078 2007-12-19  Robert Dewar  <dewar@adacore.com>
3079
3080         * exp_ch9.adb (Null_Statements): Moved to library level
3081         (Trivial_Accept_OK): New function
3082         (Expand_Accept_Declaration): Use Trivial_Accept_OK
3083         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
3084
3085 2007-12-19  Robert Dewar  <dewar@adacore.com>
3086
3087         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
3088         in complex case where array is Volatile.
3089
3090 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3091
3092         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
3093         properly the Ada2005 rules concerning when the current instance of a
3094         record type is aliased.
3095
3096 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3097
3098         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
3099         mangled declaration
3100         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
3101         declarations.
3102         (P_Variant_Part): Cleaner patch for parenthesized discriminant
3103
3104 2007-12-19  Vincent Celier  <celier@adacore.com>
3105
3106         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
3107         package is not known
3108
3109         * prj-attr.ads (Unknown_Package): New constant
3110         Do not crash when an unknown package is in several projects
3111
3112         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
3113         ignored
3114
3115         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
3116         existing package Language_Processing.
3117
3118 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3119             Gary Dismukes  <dismukes@adacore.com>
3120             Samuel Tardieu  <sam@rfc1149.net>
3121
3122         PR ada/15803, ada/15805
3123         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
3124         illegal access subtypes when there is a constrained partial view.
3125         (Check_For_Premature_Usage): New procedure inside
3126         Access_Subprogram_Declaration for checking that an access-to-subprogram
3127         type doesn't reference its own name within any formal parameters or
3128         result type (including within nested anonymous access types).
3129         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
3130         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
3131         context is an access_to_variable, the expression cannot be an
3132         access_to_constant.
3133
3134 2007-12-19  Bob Duff  <duff@adacore.com>
3135
3136         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
3137         (Analyze_Concatenation): Use iteration instead of recursion in order
3138         to avoid running out of stack space for deeply nested concatenations.
3139
3140 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3141             Gary Dismukes  <dismukes@adacore.com>
3142
3143         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
3144         whose renamed entity is a subprogram that requires overriding.
3145         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
3146         issuing an error for premature usage and issue a message that says
3147         'type' rather than 'object'.
3148
3149 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
3150
3151         PR ada/34149
3152         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
3153         presence of a statically tagged operand (Present (Static_Tag)) with
3154         test for Indeterm_Ancestor_Call when determining whether to propagate
3155         the static tag to tag-indeterminate operands (which forces dispatching
3156         on such calls).
3157         (Check_Controlling_Formals): Ada2005, access parameters can have
3158         defaults.
3159         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
3160         not insert subprogram in list of primitive operations if already there.
3161
3162 2007-12-19  Tristan Gingold  <gingold@adacore.com>
3163
3164         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
3165         global variable.
3166
3167 2007-12-19  Thomas Quinot  <quinot@adacore.com>
3168
3169         Part of PR ada/33688
3170         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
3171         datagram info on Linux.
3172
3173 2007-12-19  Vincent Celier  <celier@adacore.com>
3174
3175         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
3176         that the source path name is always found in the dependencies.
3177
3178 2007-12-19  Robert Dewar  <dewar@adacore.com>
3179
3180         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
3181         Fix name of Wide_Wide_Latin_1/9 file names
3182         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
3183         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
3184         Add missing documentation for Ada.Command_Line.Response_File
3185         Update list of warning letters for Warnings pragma
3186         Add documentation for pragma Unmodified
3187
3188 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
3189
3190         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
3191
3192 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
3193
3194         * s-vxwork-alpha.ads: Removed, no longer used.
3195
3196 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
3197
3198         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
3199
3200 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
3201
3202         PR ada/34360
3203         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
3204         mlib-tgt-specific.adb.
3205
3206 2007-12-13  Bob Duff  <duff@adacore.com>
3207
3208         * trans.c (Attribute_to_gnu): Check for violations of the
3209         No_Implicit_Dynamic_Code restriction. This checking used to be done in
3210         the front end, but is moved here so we can make it more accurate.
3211
3212 2007-12-13  Pascal Obry  <obry@adacore.com>
3213
3214         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
3215          version is provided for older GNU/Linux distribution not
3216          supporting thread affinity sets.
3217         
3218         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
3219         call.
3220         (bit_field): New packed boolean type used by cpu_set_t.
3221         (cpu_set_t): New type corresponding to the C type with
3222         the same name. Note that on the Ada side we use a bit
3223         field array for the affinity mask. There is not need
3224         for the C macro for setting individual bit.
3225         (pthread_setaffinity_np): New imported routine.
3226         
3227         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
3228         no null.
3229         (Create_Task): Set the processor affinity mask if information
3230         is present.
3231         
3232         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
3233         
3234 2007-12-13  Robert Dewar  <dewar@adacore.com>
3235
3236         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
3237         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
3238         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
3239         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
3240         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
3241         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
3242         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
3243         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
3244         for subprogram pointers.
3245
3246         * g-ctrl_c.adb: New file.
3247
3248         * g-ctrl_c.ads (Install_Handler): New body.
3249
3250         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
3251         instead of obsolete function Is_Always_Inlined.
3252         (Freeze_Entity): check for tagged type in imported C subprogram
3253         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
3254         (Freeze_Entity): check for convention Ada subprogram pointer in
3255         imported C subprogram.
3256         (Freeze_Fixed_Point_Type): In the case of a base type where the low
3257         bound would be chopped off and go from negative to zero, force
3258         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
3259         bound) so that the size computation for the base type will take
3260         negative values into account.
3261
3262 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
3263             Bob Duff  <duff@adacore.com>
3264             Tristan Gingold  <gingold@adacore.com>
3265
3266         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
3267         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
3268         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
3269         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
3270         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
3271         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
3272         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
3273         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
3274         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
3275         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
3276         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
3277         (Always_Compatible_Rep): New flag to control trampolines globally.
3278         (Dynamic_Trampolines_Used): New flag for implementing the
3279         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
3280         and not yet set correctly for some targets).
3281
3282         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
3283         Simply indirectly call s-stchop when a task is created.
3284
3285         * ali.ads: 
3286         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
3287         appears as an argument (entries A) in an ALI file.
3288
3289         * fe.h (Stack_Check_Limits): Declare new target parameter.
3290         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
3291
3292         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
3293         This variable is declared in C to be sure not subject to elaboration
3294         code.
3295         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
3296         Storage_Error.
3297
3298         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
3299         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
3300
3301         * s-stchop.ads: Add comments.
3302
3303         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
3304         limit method of stack checking.
3305
3306         * s-stchop-limit.ads: New file.
3307
3308 2007-12-13  Robert Dewar  <dewar@adacore.com>
3309
3310         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
3311         a-cihama.adb, g-awk.adb, 
3312         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
3313         warnings
3314
3315         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
3316
3317         * sem.adb: Update handling of assigned value/unreferenced warnings
3318
3319         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
3320
3321         * lib-xref.ads: Improve documentation for k xref type
3322
3323         * lib-xref.adb: 
3324         Update handling of assigned value/unreferenced warnings
3325         (Generate_Reference): Warning for reference to entity for which a
3326         pragma Unreferenced has been given should be unconditional.
3327         If the entity is a discriminal, mark the original
3328         discriminant as referenced.
3329
3330         * sem_warn.ads, sem_warn.adb
3331         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3332         no entities referenced in package
3333         (Check_One_Unit): Don't give message about no entities referenced in
3334         a package if a pragma Unreferenced has appeared.
3335         Handle new warning flag -gnatw.a/-gnatw.A
3336         Update handling of assigned value/unreferenced warnings
3337
3338         * atree.h: Add flags up to Flag247
3339         (Flag231): New macro.
3340
3341 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
3342
3343         * adaint.h: (__gnat_plist_init): Not defined for RTX.
3344
3345         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3346         RTX systems.
3347
3348         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3349         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3350         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3351         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3352
3353         * mingw32.h: 
3354         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3355
3356         * sysdep.c (winflush_function for RTX): Procedure that does nothing
3357         since we only have problems with Windows 95/98, which are not
3358         supported by RTX.
3359         (__gnat_ttyname): Return the empty string on Nucleus, just as
3360         done on vxworks.
3361
3362 2007-12-13  Robert Dewar  <dewar@adacore.com>
3363
3364         * a-textio.adb, a-textio.ads: 
3365         Extensive changes to private part for wide character encoding
3366
3367         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3368         (Look_Ahead): Fix mishandling of encoded sequences
3369         Move declaration of Wch_Con to private part (should not be visible)
3370
3371         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3372         UTF-8. Probably this is never used, but if it is, brackets is
3373         clearly correct.
3374
3375         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3376         setting wide character encoding for no main program case and when
3377         encoding is specified using -W?
3378         Initialize stack limit of environment task if stack limit method of
3379         stack checking is enabled.
3380         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3381         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3382         (Get_Main_Unit_Name): New function.
3383         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3384         (Gen_Output_File): Set Bind_Main_Program to True for .NET
3385
3386         * bindusg.adb: Add line for -Wx switch
3387
3388         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3389         Add comments
3390         Add new useful constant WC_Longest_Sequences
3391
3392         * switch-b.adb: Clean up handling of -Wx switch
3393         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3394
3395         * switch-c.adb: -gnatg activates warning on assertion errors
3396         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3397
3398         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3399
3400 2007-12-13  Robert Dewar  <dewar@adacore.com>
3401             Ed Schonberg  <schonberg@adacore.com>
3402
3403         * a-ngcoty.adb: New pragma Fast_Math
3404
3405         * opt.adb: New pragma Fast_Math
3406
3407         * par-prag.adb: 
3408         Add Implemented_By_Entry to the list of pragmas which do not require any
3409         special processing.
3410         (Favor_Top_Level): New pragma.
3411         New pragma Fast_Math
3412
3413         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3414         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3415         Expand_Allocator_Expression): Take into account VM_Target
3416         (Expand_Attribute, case 'Identity):  Handle properly the case where
3417         the prefix is a task interface.
3418         New pragma Fast_Math
3419
3420         * par.adb (Next_Token_Is): New function
3421         (P_Pragma): Add Skipping parameter
3422         (U_Left_Paren): New procedure
3423         (U_Right_Paren): New procedure
3424         New pragma Fast_Math
3425
3426         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3427         subunit
3428         New pragma Fast_Math
3429
3430         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3431         Implemented_By_Entry.
3432         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3433         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3434         items, since it can apply to more than one overloadable entity. Set
3435         new flag Has_Pragma_Inline_Always for Inline_Always case.
3436         (Analyze_Pragma, case Complex_Representation): Improve error message.
3437         (Analyze_Pragma, case Assert): When assertions are disabled build the
3438         rewritten code with Sloc of expression rather than pragma, so new
3439         warning about failing is not deleted.
3440         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3441         protected types and update error message to reflect that. Test whether
3442         the protected type is allowed for the pragma (an error is issued if the
3443         type has any entries, or components that do not have preelaborable
3444         initialization).
3445         New pragma Fast_Math
3446         (Analyze_Pragma, case No_Return): Handle generic instance
3447
3448         * snames.h, snames.ads, snames.adb: 
3449         Add new predefined name for interface primitive _Disp_Requeue.
3450         New pragma Fast_Math
3451
3452         * a-tags.ads, a-tags.adb: New calling sequence for
3453         String_To_Wide_[Wide_]String
3454         (Secondary_Tag): New subprogram.
3455
3456         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3457         from Exp_Attr
3458         New calling sequence for String_To_Wide_[Wide_]String
3459         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3460         the use of the secondary stack for image routines.
3461
3462         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3463         calling sequence for String_To_Wide_[Wide_]String
3464
3465         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3466         Ada 95 mode
3467         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3468         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3469
3470         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3471         (P_Formal_Part): Use Skipping parameter in P_Pragma call
3472         to improve error recovery
3473
3474         * par-util.adb (Next_Token_Is): New function
3475         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3476
3477         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3478         semicolon if missing
3479         (P_Pragma): Implement new Skipping parameter
3480         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3481         Fix location of flag for unrecognized pragma message
3482
3483         * par-tchk.adb (U_Left_Paren): New procedure
3484         (U_Right_Paren): New procedure
3485
3486 2007-12-13  Geert Bosch  <bosch@adacore.com>
3487
3488         * a-tifiio.adb: 
3489         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3490         the second or later Scaled_Divide would omit leading zeroes,
3491         resulting in too few digits produced and a Layout_Error as result.
3492         (Put): Initialize Pos.
3493
3494 2007-12-13  Robert Dewar  <dewar@adacore.com>
3495
3496         atree.ads, atree.adb (Flag231..Flag247): New functions
3497         (Set_Flag231..Set_Flag247): New procedures
3498         (Basic_Set_Convention): Rename Set_Convention to be
3499         Basic_Set_Convention
3500         (Nkind_In): New functions
3501         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3502
3503         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3504         instead
3505          of obsolete function Is_Always_Inlined
3506         (Register_Predefined_DT_Entry): Initialize slots of the second
3507         secondary dispatch table.
3508         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3509         (Expand_N_Function_Call): Remove special provision for stack checking.
3510
3511         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3512         Include _Disp_Requeue in the list of predefined operations.
3513         (Find_Interface_ADT): Modified to fulfill the new specification.
3514         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3515
3516         * par-ch4.adb, nlists.ads, nlists.adb: 
3517         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3518
3519         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3520         Fix location of flag for unrecognized pragma message
3521
3522         * sem_ch7.adb: Use Nkind_In
3523
3524 2007-12-13  Vincent Celier  <celier@adacore.com>
3525
3526         * opt.ads: 
3527         Indicate what flags are used by the Project Manager, gprbuild and
3528         gprclean.
3529         (Opt.Follow_Links_For_Dirs): New flag
3530         (Warn_On_Assertion_Failure): New flag
3531         (Wide_Character_Encoding_Method_Specified): New flag
3532         (Suppress_All_Inlining): New switch set by -fno-inline
3533         (Real_VMS_Target): New flag
3534         New pragma Fast_Math
3535
3536 2007-12-13  Robert Dewar  <dewar@adacore.com>
3537
3538         * back_end.adb: Recognize -fno-inline
3539
3540 2007-12-13  Robert Dewar  <dewar@adacore.com>
3541
3542         * checks.adb: Fix optimization problem with short-circuited form
3543
3544 2007-12-13  Bob Duff  <duff@adacore.com>
3545
3546         * clean.adb (Usage): Add line for -aP
3547         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3548         with a parameter "procedure Usage", instead of passing a pointer to a
3549         procedure. This is to eliminate trampolines (since the Usage procedure
3550         is often nested in a main procedure, and it would be inconvenient to
3551         unnest it).
3552
3553         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3554         to be generic, with a parameter "procedure Callback (...)", instead of
3555         passing a pointer to a procedure. This is to eliminate trampolines
3556         (since the Callback procedure is usually nested).
3557
3558         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
3559         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3560         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3561
3562         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3563         Use the generic Heap_Sort_G instead of Heap_Sort_A.
3564
3565 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3566
3567         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3568         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3569         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3570         (Renamed_In_Spec): New flag
3571         (Has_Pragma_Inline_Always): New flag
3572         Add missing doc for pragma Obsolescent_Warning
3573         Add missing doc for 17 additional unused flags (230-247)
3574         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3575         Alphabetize with clauses.
3576         Separate Is_Thunk and Has_Thunks flags
3577         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3578         (Related_Interface): Renamed to Related_Type.
3579         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3580         (Set_Is_Flag): Restrict the assertion.
3581
3582 2007-12-13  Vincent Celier  <celier@adacore.com>
3583
3584         * errout.adb (Output_Source_Line): Do not keep a trailing space after
3585         the source line number if the source line is empty.
3586
3587 2007-12-13  Geert Bosch  <bosch@adacore.com>
3588
3589         * eval_fat.adb (Decompose_Int): Handle argument of zero.
3590         (Compose): Remove special casing of zero.
3591         (Exponent): Likewise.
3592         (Fraction): Likewise.
3593         (Machine): Likewise.
3594         (Decompose): Update comment.
3595
3596 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3597
3598         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3599         limited ancestor part, initialize controllers of enclosing record
3600         before expanding ancestor aggregate.
3601         (Gen_Assign): If a component of the aggregate is box-initialized, add
3602         code to call Initialize if the component is controlled, and explicit
3603         assignment of null if the component is an access type.
3604
3605         Handle properly aggregates for limited types that appear in object
3606         declarations when the aggregate contains controlled values such as
3607         protected types.
3608         When expanding limited aggregates into individual components, do not
3609         call Adjust on controlled components that are limited.
3610
3611 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3612
3613         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3614
3615 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3616
3617         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3618         predefined primitive _Disp_Requeue.
3619         (Make_Predefined_Primitive_Specs): Create the spec for predefined
3620         primitive _Disp_Requeue.
3621         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3622         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3623         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3624         an interface type. In case of limited interfaces we now declare all the
3625         predefined primitives associated with synchronized interfaces as
3626         abstract.
3627         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3628         declarations.
3629         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3630         tagged type is an interface type and there is no user-defined equality
3631         function.
3632         Add also bodies of predefined primitives associated with synchronized
3633         interfaces.
3634         (Freeze_Record_Type): Do not build bodies of predefined primitives of
3635         interface types because they are now defined abstract.
3636         Add missing documentation.
3637         (Expand_Record_Controller): Update occurrence of Related_Interface
3638         to Related_Type.
3639         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3640         (Expand_N_Object_Declaration): Take into account VM_Target when handling
3641         class wide interface object declaration.
3642         (Expand_Previous_Access_Type): Do not create a duplicate master entity
3643         if the access type already has one.
3644         (Expand_N_Object_Declaration): Defend against attempt to validity check
3645         generic types. Noticed for -gnatVcf specified with previous errors.
3646
3647 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3648
3649         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3650         Expand_Allocator_Expression): Take into account VM_Target
3651
3652         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3653         secondary stack when VM_Target /= No_VM
3654
3655 2007-12-13  Javier Miranda  <miranda@adacore.com>
3656             Ed Schonberg  <schonberg@adacore.com>
3657
3658         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3659         Is_Complation_Unit by Is_Library_Level_Entity in the code
3660         that decides if the static dispatch tables need to be built.
3661         (Wrap_Transient_Declaration): Do not generate a finalization call if
3662         this is a renaming declaration and the renamed object is a component
3663         of a controlled type.
3664
3665 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
3666
3667         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3668         In the case where the renamed subprogram is a dereference, call
3669         Force_Evaluation on the prefix.
3670
3671 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3672             Ed Schonberg  <schonberg@adacore.com>
3673
3674         * exp_ch9.adb (Expand_N_Asynchronous_Select,
3675         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3676         comment reformatting.
3677         (Set_Privals): Inherit aliased flag from formal. From code reading.
3678         (Build_Simple_Entry_Call): Out parameters of an access type are passed
3679         by copy and initialized from the actual. This includes entry parameters.
3680         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3681         and Ada 2005 models of requeue.
3682         (Null_Statements): Still connsider do-end block null if it contains
3683         Unreferenced and Warnings pragmas.
3684         (Expand_N_Accept_Statement): Do not optimize away null do end if
3685         dispatching policy is other than defaulted.
3686         (Expand_N_Timed_Entry_Call): When the triggering statement is a
3687         dispatching call, manually analyze the delay statement.
3688         (Find_Parameter_Type): Move subprogram to Sem_Util.
3689
3690 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3691             Javier Miranda  <miranda@adacore.com>
3692
3693         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3694         _Disp_Requeue occupies dispatch table slot number 15. Move
3695         _Disp_Timed_Select to slot 16.
3696         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3697         generate the spec and body of _Disp_Reqeueue.
3698         (Make_DT): Build and initialize the second dispatch table.
3699         Handle initialization of RC_Offset when the parent
3700         is a private type with variable size components.
3701         (Make_Secondary_DT): Complete documentation. Add support to
3702         initialize the second dispatch table.
3703         (Make_Tags): Generate the tag of the second dispatch table.
3704         (Register_Primitive): Add support to register primitives in the
3705         second dispatch table.
3706
3707 2007-12-13  Pascal Obry  <obry@adacore.com>
3708
3709         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3710         Windows. This signal is used by gnatmake to kill child processes for
3711         example.
3712
3713 2007-12-13  Javier Miranda  <miranda@adacore.com>
3714
3715         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3716         support for generic dispatching constructor calls in which we need to
3717         locate the tag of a secondary dispatch table associated with an
3718         interface type to properly dispatch the call.
3719         (Expand_N_Attribute_Reference [case Address],
3720         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3721         handling of VM targets.
3722
3723 2007-12-13  Robert Dewar  <dewar@adacore.com>
3724             Ed Schonberg  <schonberg@adacore.com>
3725
3726         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3727         assert fail
3728
3729         * ug_words: Add entries for -gnatw.a -gnatw.A
3730
3731         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3732         literal is a subtype with non-static constraints, use the base type of
3733         the context as the base of the string subtype, to prevent type
3734         mismatches in gigi.
3735         (Resolve_Actuals): If the actual is an entity name, generate a
3736         reference before the actual is resolved and expanded, to prevent
3737         spurious warnings on formals of enclosing protected operations.
3738         (Analyze_Overloaded_Selected_Component): If type of prefix if
3739         class-wide, use visible components of base type.
3740         (Resolve_Selected_Component): Ditto.
3741         (Resolve_Short_Circuit): Detect case of pragma Assert argument
3742         evaluating to False, and issue warning message.
3743
3744         * usage.adb: Add lines for -gnatw.a and -gnatw.A
3745
3746 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3747
3748         * g-calend.ads (No_Time): New constant, to represent an uninitialized
3749         time value
3750
3751         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3752         formats.
3753         (Month_Name_To_Number): New subprogram
3754
3755         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3756         letter to upper-case.
3757
3758 2007-12-13  Robert Dewar  <dewar@adacore.com>
3759             Ed Schonberg  <schonberg@adacore.com>
3760
3761         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3762
3763         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3764         context is a limited view, use non-limited view when available. If the
3765         non-limited view is an unconstrained array, this enforces consistency
3766         requirements in 3.10.2 (27).
3767         (Layout_Type): For an access type whose designated type is a limited
3768         view, examine its declaration to determine if it is an unconstrained
3769         array, and size the access type accordingly.
3770         (Layout_Type): Do not force 32-bits for convention c subprogram
3771         pointers in -gnatdm mode, only if real vms target.
3772
3773         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3774         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3775         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3776         violations of the No_Implicit_Dynamic_Code restriction.
3777         (Resolve_Attribute, case 'Access): If designated type of context is a
3778         limited view, use non-limited view when available. If the non-limited
3779         view is an unconstrained array, this enforces consistency requirements
3780         in 3.10.2 (27).
3781         (Layout_Type): For an access type whose designated type is a limited
3782         view, examine its declaration to determine if it is an unconstrained
3783         array, and size the access type accordingly.
3784
3785 2007-12-13  Vincent Celier  <celier@adacore.com>
3786
3787         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3788         object directory of main project does not exist.
3789         On VMS, correctly set then environment variable for the source
3790         directories.
3791
3792 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
3793
3794         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3795         set to True this procedure will create the value of type REG_EXPAND_SZ.
3796         It was only possible to create REG_SZ values before.
3797
3798 2007-12-13  Robert Dewar  <dewar@adacore.com>
3799
3800         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3801         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3802         namet-sp.adb, namet-sp.ads: New files.
3803
3804         * g-speche.adb: Use generic routine in g-spchge
3805
3806         * s-wchcnv.ads, s-wchcnv.adb: 
3807         Minor code cleanup (make formal type consistent with spec)
3808
3809         * namet.adb: Update comments.
3810
3811         * par-endh.adb (Evaluate_End_Entry): Use new
3812         Namet.Sp.Is_Bad_Spelling_Of function
3813
3814         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3815
3816         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3817         ancestor is an access type initialized with a box, set its type
3818         explicitly, for use in subsequent expansion.
3819         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3820         function
3821
3822 2007-12-13  Robert Dewar  <dewar@adacore.com>
3823
3824         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3825         access Vstring)
3826
3827 2007-12-13  Robert Dewar  <dewar@adacore.com>
3828
3829         * inline.adb (Back_End_Cannot_Inline): Use new flag
3830         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3831
3832         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3833         Has_Pragma_Inline_Always instead.
3834         of obsolete function Is_Always_Inlined
3835         (Build_Body_To_Inline): Same change
3836         (Cannot_Inline): Same change
3837         Do not give warning on exception raise in No_Return function
3838
3839         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3840         component has two inconsistent component clauses in the same record
3841         representation clause, favor the message that complains about
3842         duplication rather than inconsistency.
3843         Update comments.
3844         (Record_Representation_Clause): Do not warn on missing component
3845         clauses for inherited components of a type extension.
3846         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3847         an overloadable item if it is a pragma that can apply to multiple
3848         overloadable entities (e.g. Inline) because a pragma cannot be on
3849         more than one chain at a time.
3850         (Validate_Unchecked_Conversion): Add code to warn on unchecked
3851         conversion where one of the operands is Ada.Calendar.Time.
3852         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3853         For now, ignore Component_Size clause on VM targets, as done for
3854         pragma Pack.
3855
3856 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3857             Vincent Celier  <celier@adacore.com>
3858
3859         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3860         string
3861         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3862         prj.ads
3863         (Hash): Move instantiation of System.HTable.Hash from spec to body
3864         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3865         systems, since we do not need to recompute the Name_Id for the canonical
3866         file name.
3867         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3868         as a parameter. This parameter is in fact always "ada" in all calls, and
3869         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3870         while loading a project with 40000 files
3871
3872         * prj-attr.adb: Fix name of attribute Dependency_Driver
3873         Change the kind of indexing for attribute Root
3874
3875         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3876         variables already declared, in case constructions.
3877
3878         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3879         Current_Object_Path_File to No_Path.
3880
3881         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3882         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3883
3884         * prj-makr.adb: new parameter Current_Dir
3885
3886         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3887         Ada sources when language is not Ada.
3888         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3889         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3890         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3891         (Locate_Directory): Always resolve links when computing Canonical_Path
3892         (Look_For_Sources): Make sure that Name_Buffer contains the file name
3893         in Source_Files before checking for the presence of a directory
3894         separator.
3895         Optimize calls to Name_Find when on case sensitive systems.
3896         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3897         as a parameter.
3898         (Prj.Nmsc.Check): new parameter Current_Dir
3899         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3900         cannot be empty and the spec suffix cannot be the same as the body or
3901         separate suffix.
3902         (Get_Unit): When a file name can be of several unit kinds (spec, body or
3903         subunit), always consider the longest suffix.
3904         (Check_Configuration): Do not issue an error if there is no compiler
3905         for a language. Just issue a warning and ignore the sources for the
3906         language.
3907         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3908         not empty.
3909         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3910         (Unit_Exceptions): New hash table
3911         (Check_Naming_Schemes): Check if a file that could be a unit because of
3912         the naming scheme is not in fact a source because there is an exception
3913         for the unit.
3914         (Look_For_Sources): Put the unit exceptions in hash table
3915         Unit_Exceptions
3916         (Get_Unit_Exceptions): Give initial value No_Source to local variable
3917         Other_Part to avoid exception when code is compiled with validity
3918         checking.
3919         (Get_Sources_From_File): Check that there is no directory information
3920         in the file names.
3921         (Look_For_Sources): Check that there is no directory information in the
3922         list of file names in Source_Files.
3923         (Look_For_Sources): In multi-language mode, do not allow exception file
3924         names that are excluded.
3925         (Excluded_Sources_Htable): New hash table
3926         (Search_Directories.Check_File): New procedure to simplify
3927         Search_Directories.
3928         (Search_Directories): Do not consider excluded sources
3929         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3930         Search_Directories.
3931         (Get_Exceptions): Set component Lang_Kind of Source_Data
3932         (Get_Unit_Exceptions): Ditto
3933         (Search_Directories): Ditto
3934
3935         * prj-pars.adb: new parameter Current_Dir
3936
3937         * prj-part.ads, prj-part.adb: 
3938         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3939         (Opt.Follow_Links_For_Dirs): New flag
3940         (Project_Path_Name_Of): Cache information returned by this routine as
3941         Locate_Regular_File is a costly routine. The code to output a log
3942         information and the effective call to Locate_Regular_File is now
3943         factorized into a routine (code clean-up).
3944         (Parse, Parse_Single_Project): new parameter Current_Dir
3945         When main project file cannot be found, indicate in the error
3946         message the project path that was used to do the search.
3947
3948         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3949         (Prj.Proc.Process*): new parameter Current_Dir
3950
3951         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3952
3953 2007-12-13  Bob Duff  <duff@adacore.com>
3954
3955         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3956         procedure to be called from the back end to check the
3957         No_Implicit_Dynamic_Code restriction.
3958
3959 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3960
3961         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3962         Fixes another case where RTE_Available_Call was ignored instead of being
3963         taken into account.
3964         (Load_Fail): Ditto.
3965
3966         * rtsfind.ads: Add new entries.
3967
3968 2007-12-13  Robert Dewar  <dewar@adacore.com>
3969
3970         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3971         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3972
3973         * scn.adb: Implement BOM recognition
3974
3975 2007-12-13  Thomas Quinot  <quinot@adacore.com>
3976             Ed Schonberg  <schonberg@adacore.com>
3977
3978         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3979         subprogram body that acts as its own spec may not have a non-private
3980         WITH clause on a private sibling.
3981         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3982         child unit is a renaming, create an implicit with_clause on that
3983         parent, and not on the unit it renames, to prevent visibility errors
3984         in the current unit.
3985
3986 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3987
3988         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3989         renaming declaration, use the Slocs of the formal parameters from the
3990         declaration of the formal subprogram when creating the formal parameter
3991         entities in the renaming declaration.
3992         (Analyze_Formal_Type_Declaration): Change the placement of the error
3993         message concerning illegal known discriminants. It is now posted on the
3994         type rather than on the first discriminant. This change ensures early
3995         error report.
3996         (Freeze_Subprogram_Body): If the generic subprogram is nested within
3997         the package body that contains the instance, do not generate an
3998         out-of-place freeze node for the enclosing package.
3999         (Collect_Previous_Instantiations): Ignore internal instantiations
4000         generated for formal packages.
4001         (Validate_Derived_Type_Instance): Add a check that when a formal
4002         derived type is Known_To_Have_Preelab_Init then the actual type must
4003         have preelaborable initialization, and issue an error when this
4004         condition is violated.
4005
4006 2007-12-13  Robert Dewar  <dewar@adacore.com>
4007
4008         * s-imenne.adb, s-imenne.ads: New files.
4009
4010         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
4011         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
4012         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
4013         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
4014         s-imgwch.ads: New calling sequence for Image routines to avoid sec
4015         stack usage.
4016
4017 2007-12-13  Javier Miranda  <miranda@adacore.com>
4018             Ed Schonberg  <schonberg@adacore.com>
4019
4020         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
4021         generation of spurious error if parent is an interface type; caused
4022         because predefined primitive bodies will be generated later by
4023         Freeze_Record_Type.
4024         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
4025         flag.
4026         (Derive_Subprograms): Handle derivations of predefined primitives
4027         after all the user-defined primitives to ensure that they are
4028         found in proper order in instantiations.
4029         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
4030         of Related_Interface to Related_Type.
4031         (Record_Type_Declaration): Minor reordering of calls to decorate the
4032         Tag component because the entity must have set its Ekind attribute
4033         before setting its Is_Tag attribute.
4034         (Analyze_Subtype_Declaration): In the case of subtypes with
4035         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
4036
4037 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
4038             Ed Schonberg  <schonberg@adacore.com>
4039
4040         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
4041         statement to the list of contexts where a selected component with a
4042         concurrent tagged type prefix should yield a primitive operation.
4043         (Find_Primitive_Operation): Handle case of class-wide types.
4044         (Analyze_Overloaded_Selected_Component): If type of prefix is
4045         class-wide, use visible components of base type.
4046         (Resolve_Selected_Component): Ditto.
4047         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
4048         formal of a generic subprogram. find candidate interpretations by
4049         scanning the list of generic formal declarations.:
4050         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
4051         type from a limited_with_clause, and the full view is available, use it
4052         for subsequent semantic checks.
4053         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
4054         (Find_Primitive_Operation): New function.
4055         (Analyze_Overloaded_Selected_Component): insert explicit dereference
4056         only once if several interpretations of the prefix yield an access type.
4057         (Try_Object_Operation): Code and comment cleanup.
4058         (Analyze_Selected_Component): Reorder local variables. Minot comment and
4059         code reformatting. When the type of the prefix is tagged concurrent, a
4060         correct interpretation might be available in the primitive and
4061         class-wide operations of the type.
4062
4063 2007-12-13  Robert Dewar  <dewar@adacore.com>
4064             Ed Schonberg  <schonberg@adacore.com>
4065
4066         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
4067         renaming entry as subprogram using rename-as-body if subprogram spec
4068         frozen.
4069         (Use_One_Type): The clause is legal on an access type whose designated
4070         type has a limited view.
4071         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
4072         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
4073         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
4074         operation denoted by a selected component.
4075         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
4076         it can be an expression, possibly overloaded, that returns a task or
4077         an access to one.
4078
4079 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
4080             Gary Dismukes  <dismukes@adacore.com>
4081
4082         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
4083         requeue statement is dispatching. Do not emit an error when the name is
4084         not an entry and the context is a dispatching select. Add code to
4085         perform subtype conformance between the formals of the current entry
4086         and those of the target interface primitive.
4087         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
4088         Timed_Entry_Call): Analyze the triggering statement as the first step of
4089         the processing. If this is a dispatching select, postpone the analysis
4090         of all select statements until the Expander transforms the select. This
4091         approach avoids generating duplicate identifiers after the Expander has
4092         replicated some of the select statements. In case the Expander is
4093         disabled, perform regular analysis.
4094         (Check_Triggering_Statement): New routine.
4095         (Analyze_Requeue): Exclude any interpretations that are not entries when
4096         checking overloaded names in a requeue. Also test type conformance for
4097         matching interpretations rather than requiring subtype conformance at
4098         that point to conform with the RM's resolution rule for requeues.
4099
4100 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
4101
4102         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
4103         inherited operation is a defaulted tag-indeterminate call, and there is
4104         a statically tagged actual, use the static tag as a controlling actual
4105         for the defaulted actual.
4106
4107 2007-12-13  Geert Bosch  <bosch@adacore.com>
4108
4109         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
4110         context, so do not call Check_Non_Static_Context.
4111
4112 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
4113
4114         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
4115         whether formal E is an entity which may have parameters.
4116
4117 2007-12-13  Bob Duff  <duff@adacore.com>
4118             Javier Miranda  <miranda@adacore.com>
4119             Robert Dewar  <dewar@adacore.com>
4120
4121         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
4122         (Set_Convention): New procedure to set the Convention flag, and in
4123         addition make sure the Favor_Top_Level flag is kept in sync (all
4124         foreign-language conventions require Favor_Top_Level = True).
4125         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
4126         to Related_Type.
4127         (Collect_Interfaces_Info): Minor update to handle the two secondary
4128         dispatch tables. Update occurrence of Related_Interface to Related_Type.
4129         (Generate_Parent_Ref): Add parameter to specify entity to check
4130         (Is_Preelaborable_Expression): Allow the name of a discriminant to
4131         initialize a component of a type with preelaborable initialization.
4132         This includes the case of a discriminal used in such a context.
4133         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
4134         latest Ada 2005 rules about renaming and 'Access of
4135         discriminant-dependent components.
4136         (Check_Nested_Access): Add handling when there are no enclosing
4137         subprograms (e.g. case of a package body).
4138         (Find_Parameter_Type): Factor routine from several other compiler files.
4139         Remove routine from Find_Overridden_Synchronized_Primitive.
4140
4141 2007-12-13  Thomas Quinot  <quinot@adacore.com>
4142
4143         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
4144         an invalid access to an uninitialized slot in the
4145         Source_File_Index_Table.
4146
4147 2007-12-13  Thomas Quinot  <quinot@adacore.com>
4148
4149         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
4150
4151 2007-12-13  Bob Duff  <duff@adacore.com>
4152
4153         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
4154         access-to-subprogram types in this package.
4155
4156 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4157
4158         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
4159         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
4160         Stack_Overlay_Address and document that we are using an internal
4161         abstraction.
4162         (Byte_Size, Unsigned_32_Size): Remove, now useless.
4163         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
4164         consistently throughout the various implementation pieces.
4165
4166         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
4167         overlay we are using to fill the stack area with patterns.
4168         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
4169         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
4170         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
4171
4172 2007-12-13  Robert Dewar  <dewar@adacore.com>
4173
4174         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
4175
4176 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
4177
4178         * s-tassta.adb: 
4179         (Create_Task): Take into account tasks created by foreign threads.
4180         Code clean up: use constants instead of hard coded values.
4181
4182 2007-12-13  Robert Dewar  <dewar@adacore.com>
4183
4184         * styleg.adb (Check_Comment): More liberal rules for comment placement
4185
4186 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4187
4188         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
4189         of Procedure Value instead of Frame Pointer as the invocation
4190         identifier associated with the instruction pointer in each traceback
4191         entry.
4192
4193         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
4194         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
4195         Pointer as the invocation identifier passed to tbk$symbolize.
4196
4197         * s-traent-vms.ads, s-traent-vms.adb
4198         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
4199         Procedure Value instead of Frame Pointer as the invocation identifier
4200         passed to tbk$symbolize.
4201
4202 2007-12-13  Robert Dewar  <dewar@adacore.com>
4203
4204         * tbuild.ads, tbuild.adb: 
4205         Fix location of flag for unrecognized pragma message
4206
4207 2007-12-13  Robert Dewar  <dewar@adacore.com>
4208
4209         * treepr.ads, treepr.adb: (pl): implement use of positive value
4210         shorthands
4211
4212 2007-12-13  Robert Dewar  <dewar@adacore.com>
4213
4214         * xeinfo.adb: Remove warnings
4215         * xnmake.adb: Remove warnings
4216         * xsinfo.adb: Remove warnings
4217         * xtreeprs.adb: Remove warnings
4218         * xsnames.adb: Remove warnings
4219
4220         * a-ngcoar.adb: Fix typo.
4221         * s-interr.adb: Minor reformatting
4222         * env.c: Minor reformatting.
4223         * g-bytswa.adb: Minor reformatting.
4224         * g-rannum.ads: Minor documentation improvements
4225         * s-tasinf-mingw.adb: Minor header fix
4226         * a-clrefi.adb: Minor reformatting
4227         * g-sttsne.ads: Minor documentation improvement
4228         * g-sttsne-locking.ads: Minor documentation improvement
4229         * g-soliop-solaris.ads: Minor documentation improvement
4230         * g-soliop-mingw.ads: Minor documentation improvement
4231         * g-soliop.ads: Minor documentation improvement
4232         * exp_aggr.ads: Minor reformatting
4233         * debug.adb: Add documentation for the gprbuild debug flags
4234         * exp_ch2.adb: Use Nkind_In to simplify code throughout
4235         * exp_pakd.adb: Minor reformatting
4236
4237         * g-altive.ads, g-alleve.adb: Remove assertions.
4238         Add comment about minor differences between targets regarding
4239         floating-point operations.
4240
4241         * g-thread.adb: Remove pragma unreferenced.
4242         * lib.ads: Minor reformatting
4243         * par-ch9.adb: Minor reformatting of error messages
4244         * sem_case.adb: Minor reformatting
4245         * s-fileio.adb: Minor reformattinng
4246         * s-vmexta.ads: Minor typo
4247         * vxaddr2line.adb: 
4248         Take into account 'Success' value as per new GNAT warning.
4249
4250 2007-12-13  Vincent Celier  <celier@adacore.com>
4251
4252         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
4253         even on Windows
4254
4255 2007-12-13  Robert Dewar  <dewar@adacore.com>
4256             Bob Duff  <duff@adacore.com>
4257
4258         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
4259         Document that suffixes may be terminations of each others
4260         Add doc for -gnatw.a and -gnatw.A
4261         Document gnatbind -Wx switch
4262         Document BOM recognition
4263         Document pragma Implemented_By_Entry.
4264         Document new units.
4265
4266         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
4267         Add doc for pragma Unreferenced suppressing no entities referenced msg
4268         Add documentation of GNAT.Directory_Operations.Iteration
4269         Add documentation of GNAT.Random_Numbers
4270         Add documentation for pragma Shared.
4271         Correct documentation for Bit_Order
4272         Add documentation for the Pool_Address attribute.
4273         Fix and improve documentation of pragma machine_attribute.
4274         New pragma Fast_Math
4275         Document BOM recognition
4276
4277         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
4278         Add /Wide_Character_Encoding for binder
4279         Add qualifier for the new gnatpp option --no-separate-loop-then
4280
4281 2007-12-13  Matthew Heaney  <heaney@adacore.com>
4282
4283         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
4284         which generic formal operations are called for each operation.
4285
4286 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4287
4288         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
4289         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
4290
4291 2007-12-13  Emmanuel Briot  <briot@adacore.com>
4292
4293         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
4294         Reference_Dir unless we actually need it.
4295
4296 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
4297             Tristan Gingold  <gingold@adacore.com>
4298
4299         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
4300
4301         * s-osprim-vms.adb,
4302         a-calend-vms.adb: Remove pragma warning off and add pragma
4303         unreferenced.
4304
4305 2007-12-13  Robert Dewar  <dewar@adacore.com>
4306
4307         * impunit.adb: Add entries for missing units
4308
4309         * Makefile.rtl: Add new run-time units.
4310
4311         * Make-lang.in:  Update dependencies.
4312
4313 2007-12-13  Bob Duff  <duff@adacore.com>
4314
4315         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
4316         types, set Can_Use_Internal_Rep appropriately, based on
4317         Always_Compatible_Rep_On_Target.
4318
4319 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
4320             Arnaud Charlet  <charlet@adacore.com>
4321
4322         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
4323         it to the front end and setting the aamp_target environment variable
4324         to the switch's argument to ensure that gnaampbind and gnaamplink will
4325         take the specified library into account.
4326         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4327         target, since the CIL compiler supports an "object" file (.il files).
4328
4329 2007-12-13  Vincent Celier  <celier@adacore.com>
4330
4331         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4332         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4333
4334 2007-12-13  Geert Bosch  <bosch@adacore.com>
4335
4336         * s-parame-vxworks.adb: 
4337         Update comments to reflect usage of this package by Nucleus.
4338
4339 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
4340
4341         * i-vxwork.ads: Kill new warning on Convention C, since changing the
4342         spec would break code.
4343
4344         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4345
4346         * system-vxworks-alpha.ads: Removed.
4347
4348 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
4349
4350         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4351
4352 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
4353
4354         PR ada/34366
4355         * sem_ch3.adb (Designates_T): New function.
4356         (Mentions_T): Factor reusable part of the logic into Designates_T.
4357         Consider non-access parameters and access and non-access result.
4358         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4359         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4360
4361         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4362
4363 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
4364
4365         PR ada/34361
4366         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4367         the new implementation of target-specific calls.
4368
4369 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4370
4371         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4372         the designated full view, only follow a second level Full_View link
4373         for Non_Limited_Views of from_limited_with references.
4374         
4375 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
4376
4377         PR ada/15805
4378         * sem_ch6.adb (Process_Formals): Prevent an access type formal
4379         to be initialized with an access to constant object.
4380
4381         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4382         when an access to constant is used to initialize an access
4383         value.
4384
4385         PR ada/21346
4386         * a-direct.adb (Compose): Containing_Directory can be an empty string.
4387
4388 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4389
4390         PR ada/34173
4391         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4392         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4393         this is from an alignment clause on the GNAT entity.
4394         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4395         to distinguish the case where we set it from the type's alignment.
4396         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4397         whether this alignment was set from an explicit alignment clause.
4398
4399 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
4400
4401         * decl.c (make_packable_type): Revert last change.
4402         (gnat_to_gnu_field): Avoid setting size and position multiple times.
4403         * utils.c (finish_record_type): Retrieve the real name of the type.
4404
4405 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
4406
4407         * trans.c (lvalue_required_p): Take base node directly instead
4408         of its parent.  Rename second parameter to 'gnu_type'.
4409         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4410         <N_Slice>: Likewise.
4411         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4412         Adjust calls to lvalue_required_p.
4413
4414 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
4415
4416         PR ada/21489
4417         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4418         parameters of an entry call.
4419
4420 2007-12-03  Robert Dewar  <dewar@adacore.com>
4421             Samuel Tardieu  <sam@rfc1149.net>
4422
4423         PR ada/34287
4424         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4425         of variables declared in a library-level package.
4426     
4427 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
4428
4429         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4430         of Empty_String'Unchecked_Access.
4431
4432         * Makefile.in: Add support for sh4-linux.
4433
4434         * system-linux-sh4.ads: New file.
4435
4436 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
4437
4438         PR ada/33722
4439         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4440         and its argument must not be free()ed.
4441
4442 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
4443
4444         * decl.c (make_packable_type): Retrieve the real name of the type.
4445         (maybe_pad_type): Simplify similar code.
4446
4447 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
4448
4449         PR ada/15804
4450         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4451         than an identifier is used after "case" in a variant_part.
4452
4453         PR ada/17318
4454         * par-ch4.adb (Is_Parameterless_Attribute): New map.
4455         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4456         attribute name or not depending on the new map.
4457
4458         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4459         returning a string or a type will not be called with improper
4460         arguments.
4461
4462         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4463
4464         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4465
4466         PR ada/32792
4467         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4468         Signal an error when attribute argument is a fixed-point value of
4469         an unknown type.
4470
4471         PR ada/22559
4472         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4473         a derived ordinary fixed point type.
4474
4475         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4476         RM_Size when a Small clause is found.
4477
4478 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4479
4480         PR 34081/C++
4481         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4482         Pass 'false' for the new allocate_struct_function parameter.
4483         * utils.c (build_function_stub): Likewise.
4484
4485 2007-11-25  Richard Guenther  <rguenther@suse.de>
4486
4487         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4488         (gnat_poplevel): Likewise.
4489
4490 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
4491
4492         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4493         strict alignment, no alignment clause and a known static size, cap
4494         the type alignment to the greatest power of 2 factor of the size.
4495         (gnat_to_gnu_field): If the field has a component clause, is aliased
4496         or of a type with strict alignment, require that its size be equal to
4497         that of the type.
4498         (validate_size): Use the type size as the minimum size for a type with
4499         strict alignment.
4500
4501 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
4502
4503         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4504         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4505         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4506         Use 'Access instead of 'Unchecked_Access in second and third
4507         arguments of pthread_sigmask.
4508
4509 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4510
4511         * decl.c (ceil_alignment): New function.
4512         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4513         (make_packable_type): Likewise.
4514
4515 2007-11-22  Olivier Hainque  <hainque@adacore.com>
4516
4517         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4518         to fit in 80 columns.
4519
4520 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
4521
4522         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4523         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4524
4525 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
4526
4527         PR ada/34098
4528         * misc.c (gnat_adjust_rli): Delete.
4529         (gnat_init): Do not initialize the translation code here.
4530         Do not call set_lang_adjust_rli.
4531         * trans.c (init_code_table): Make static.
4532         (gnat_init_stmt_group): Delete.
4533         (gigi): Initialize the translation code entirely here.
4534         Emit debug info for the common types here instead of...
4535         * utils.c (gnat_init_decl_processing): ...here.
4536         * gigi.h (init_code_table): Delete.
4537         (gnat_init_stmt_group): Likewise.
4538
4539 2007-11-16  Olivier Hainque  <hainque@adacore.com>
4540
4541         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4542         retrieving an allocator return value from a super-aligned address from
4543         here to ...
4544         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4545         expect a super-aligned address for a fat or thin pointer.
4546         
4547 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
4548
4549         * trans.c (call_to_gnu): Always set the source location on the call
4550         expression.  If the function returns-by-target, also set it on the
4551         address expression.
4552
4553 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
4554
4555         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4556         sections of non-supported Interix target.
4557
4558         * s-osinte-interix.ads: Removed.
4559
4560         * i-cstrin.ads (chars_ptr): Make it a C convention type.
4561
4562 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
4563
4564         * a-tasatt.adb: Add a comment at the beginning of the package
4565         explaining why in general 'Unchecked_Access must be used instead
4566         of 'Access.
4567
4568         * sem_prag.adb (Process_Convention): Move the test for the
4569         entity on which the Convention pragma applies down to also
4570         forbid pragma Convention on enumeration literals reached
4571         through renamings.
4572
4573 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
4574
4575         * a-tasatt.adb: Revert previous change for this file as it will
4576         generate an error when this package is instantiated from a
4577         local context.
4578
4579 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
4580
4581         * a-tasatt.adb: Type Wrapper should be declared in comment instead
4582         of already declared type Node_Access.
4583         Use 'Access instead of 'Unchecked_Access when applicable. Local
4584         lifetime is the one of the package.
4585         (Set_Value): W is allocated on the heap.
4586
4587         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4588         applicable.
4589         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4590         access type.
4591         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4592         access type.
4593
4594         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4595         applicable.
4596         (elaboration code): Timer_Queue lifetime is the one of the
4597         package.
4598
4599         * tracebak.c (i386 alternative): Remove useless comparaison
4600         which is always false; LOWEST_ADDRESS is 0 and is never greater
4601         than an unsigned integer.
4602
4603         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4604         embedded check for "Ada_Version >= Ada_05".
4605
4606 2007-11-07  Olivier Hainque  <hainque@adacore.com>
4607
4608         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4609         craft and expand comment.
4610
4611 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
4612
4613         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4614
4615 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4616
4617         * misc.c (gnat_handle_option): Replace call to abort with
4618         call to gcc_unreachable.
4619         (gnat_init): Likewise.
4620         (gnat_expand_expr): Likewise.
4621         (fp_prec_to_size): Likewise.
4622         (fp_size_to_prec): Likewise.
4623
4624 2007-10-23  Richard Guenther  <rguenther@suse.de>
4625
4626         PR bootstrap/33608
4627         * tracebak.c: #undef abort after including system.h.
4628
4629 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
4630
4631         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4632         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4633         for win32 targets.
4634         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4635
4636 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
4637
4638         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4639         Set the protection status of the guard page based on the value of On.
4640
4641         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4642
4643         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4644         (Exit_Task): Pass False to Hide_Yellow_Zone.
4645
4646 2007-10-15  Robert Dewar  <dewar@adacore.com>
4647
4648         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
4649         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4650         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
4651         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
4652         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
4653         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
4654         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
4655         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
4656         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
4657         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4658         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
4659         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
4660         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
4661         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
4662         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
4663         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4664         Minor reformatting.
4665         Add Unreferenced and Warnings (Off) pragmas for cases of
4666         variables modified calls where they are IN OUT or OUT parameters and
4667         the resulting values are not subsequently referenced. In a few cases,
4668         we also remove redundant code found by the new warnings.
4669
4670         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
4671         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4672         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4673         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4674         warning controlled by -gnatw.o that warns on cases of out parameter
4675         values being ignored.
4676
4677 2007-10-15  Geert Bosch  <bosch@adacore.com>
4678
4679         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4680
4681         * expect.c: Initial port to arm-mentor-nucleus.
4682         Use kill for __gnat_kill() on VMS.
4683
4684 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4685
4686         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4687         value.
4688         (Xref_Record): Change type for Line, since in the case of a reference to
4689         a predefined entity (as happens for array index types), the line is set
4690         to 0.
4691         Add support for parsing multiple array index types info, or
4692         multiple inherited interfaces info. This information cannot be stored
4693         in Xref_Entity_Record, which only supports a single instance of Tref_*,
4694         and is therefore stored in the list of references instead. It has a
4695         special treatement later on in tools that use this information.
4696
4697 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4698
4699         * debug.adb: Document use of -gnatd.a and -gnatd.I
4700
4701         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4702
4703 2007-10-15  Javier Miranda  <miranda@adacore.com>
4704
4705         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4706         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4707         care of access to class-wide interface types plus removal of bizarre
4708         conversion of tagged object to access type (reported by Gary
4709         Dismukes). After this patch there is no need to perform any
4710         additional management on these nodes in Expand_Interface_Actuals.
4711
4712         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4713         that handles use of 'Access and 'Unchecked_Access applied to
4714         actuals covering interface types. Such code is now
4715         centralized in Expand_N_Attribute_Reference.
4716
4717 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4718
4719         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4720         of tagged types whose ultimate ancestor is a CPP type.
4721         (Freeze_Array_Type): For a packed array type, generate an initialization
4722         procedure if the type is public, to handle properly a client that
4723         specifies Normalize_Scalars.
4724
4725 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4726
4727         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4728         inside a generic body, retrieve the full view of the entry family
4729         discrete subtype if available.
4730
4731 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4732
4733         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4734         attempt to generate stubs for hidden primitive operations.
4735
4736 2007-10-15  Vincent Celier  <celier@adacore.com>
4737
4738         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4739         returning None, used when there is no platform specific body for
4740         MLib.Tgt.Specific.
4741
4742 2007-10-15  Bob Duff  <duff@adacore.com>
4743
4744         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4745         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4746         the generic Heap_Sort_G, in order to avoid trampolines.
4747
4748 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
4749             Jose Ruiz  <ruiz@adacore.com>
4750
4751         * vx_stack_info.c: New file.
4752
4753         * i-forbla-unimplemented.ads: New file.
4754
4755         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4756         for unsupported configurations; use it on VMS targets instead of the
4757         real one.
4758         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4759         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4760         used by VxWorks targets to have access to task-specific data and be
4761         able to extract the stack boundaries for stack checking.
4762         Use system-vms-ia64.ads on ivms.
4763
4764         * Make-lang.in: Update dependencies.
4765
4766         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4767         (vx_stack_info.c).
4768
4769 2007-10-15  Vincent Celier  <celier@adacore.com>
4770
4771         * snames.adb, snames.ads: Add new standard name runtime_library_dir
4772
4773         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4774
4775         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4776
4777         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4778         the source is unknown.
4779
4780         * prj-ext.adb: Spelling error fix
4781
4782         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4783         95 reserved word in its name.
4784         (Process_Project_Level_Array_Attributes): Process new attribute
4785         Runtime_Library_Dir.
4786
4787         * prj-part.adb (Parse_Single_Project): Do not check the name of the
4788         config project against the user project names.
4789
4790         * prj-proc.adb (Expression): In multi-language mode, indexes that do
4791         not include a dot are always case insensitive.
4792         (Process_Declarative_Items): Ditto
4793         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4794         detected.
4795
4796         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4797         True, compare both indexes in lower case.
4798
4799 2007-10-15  Robert Dewar  <dewar@adacore.com>
4800
4801         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4802
4803 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4804
4805         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4806         association for an access component, add an association with null as
4807         the expression. Remove testing for array subtypes and the setting in
4808         that case of Ctyp to the array component type, which prevented proper
4809         inclusion of an association for null-initialized arrays. Collapse
4810         condition that tests for array subtypes into just a test of
4811         Is_Partially_Initialized_Type (which already covers arrays anyway).
4812
4813 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4814
4815         * sem_ch12.adb: Minor code reformatting.
4816         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4817         find the parent package which may have been hidden by local
4818         declarations.
4819
4820 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4821
4822         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4823         flag of derived concurrent types, taking into account the flag setting
4824         on the parent subtype and any new set of discriminants.
4825
4826 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4827
4828         * sem_ch4.adb: Minor code and comment reformatting.
4829         (Analyze_Allocator): When the designated type of an unconstrained
4830         allocator is a record with unknown discriminants or an array with
4831         unknown range bounds, emit a detailed error message depending on the
4832         compilation mode and whether the designated type is limited.
4833
4834 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4835
4836         * system-vms-ia64.ads: New file.
4837
4838         * system-vms_64.ads: Minor comment fix.
4839
4840 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4841
4842         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4843         body generated for a function with a controlling result that is a null
4844         extension, discard the generated body in favor of the current explicit
4845         one.
4846
4847 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4848
4849         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4850         examining its original form, to handle properly operator calls that
4851         have been rewritten.
4852
4853 2007-10-15  Olivier Hainque  <hainque@adacore.com>
4854
4855         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4856         instead of a procedure value in each traceback entry.
4857
4858         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4859         instead of procedure value to TBK$SYMBOLIZE.
4860
4861         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4862         field.
4863         (TB_Entry_For): Account for the PV/FP renaming.
4864
4865         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4866         add comment.
4867         (Null_TB_Entry): Account for change of component name.
4868         (PV_For): Rename as FP_For.
4869
4870 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4871
4872         * trans.c (gnat_to_gnu): Remove the padding structure more often.
4873         This optimize assignment to over-aligned record.
4874
4875 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4876
4877         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4878         interfaces.
4879
4880         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4881         type, for dispatching calls.
4882
4883 2007-10-15  Vincent Celier  <celier@adacore.com>
4884             Robert Dewar  <dewar@adacore.com>
4885
4886         * gnat_ugn.texi: Add documentation for switches --version and --help
4887         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4888         gnatxref, gnatfind, gnatls, and gnatclean.
4889         Document -gnatw.o.
4890         Mention attribute Excluded_Source_Dirs
4891         Replace obsolescent attribute Locally_Removed_Files with attribute
4892         Excluded_Source_Files.
4893         Improve documentation of -u (gnatbind)
4894         Document how to do reliable stack checking for the environmental task
4895         on iVMS.
4896
4897         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4898         Document attribute Excluded_Source_Files and indicate that attribute
4899         Locally_Removed_Files is obsolescent.
4900
4901 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4902
4903         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4904
4905         * gen-soccon.c: 
4906         Update documentation to note that OpenVMS 8.3 or later must be used
4907         to generate g-soccon-vms.ads.
4908
4909         * atree.adb: Add ??? comment
4910
4911         * exp_util.adb: Minor reformatting.
4912         Add ??? comment in Kill_Dead_Code.
4913
4914 2007-10-15  Robert Dewar  <dewar@adacore.com>
4915
4916         * errout.ads: Comment clarification
4917
4918         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4919         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4920
4921         * lib.ads: Comment update
4922
4923         * init.c: Minor reformatting.
4924
4925         * sem_attr.adb: Minor formatting
4926
4927         * osint-b.ads: Minor reformatting
4928
4929         * sem_ch9.adb: Implement -gnatd.I switch
4930
4931         * g-comlin.adb: (Start): Fix handling of empty command line.
4932
4933         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4934         even when -rules follows the -cargs section.
4935
4936 2007-10-08  Ollie Wild  <aaw@google.com>
4937
4938         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4939         gnat_return_tree.
4940         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4941         gnat_return_tree.
4942         (gnat_eh_runtime_type): Removed.
4943         (gnat_return_tree): New function.
4944
4945 2007-10-08  Ben Elliston  <bje@au.ibm.com>
4946
4947         PR ada/33454
4948         Revert:
4949         2007-08-31  Ben Elliston  <bje@au.ibm.com>
4950
4951         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4952         when compiling for powerpc64-*-linux.
4953         * system-linux-ppc64.ads: New file.
4954
4955 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4956
4957         Mapped location support
4958         * back_end.adb (Call_Back_End): Pass information about source
4959         files instead of units to gigi.
4960         * gigi.h (struct File_Info_Type): New.
4961         (gigi): Rename and change type of number_units parameter, change
4962         type of file_info_ptr parameter.
4963         * trans.c (number_files): New global variable.
4964         (gigi): Rename and change type of number_units parameter, change
4965         type of file_info_ptr parameter.
4966         If mapped location support is enabled, create the isomorphic mapping
4967         between source files and line maps.
4968         (Sloc_to_locus): If mapped location support is enabled, translate
4969         source location into mapped location.
4970         (annotate_with_node): Rename into set_expr_location_from_node.
4971         Call set_expr_location instead of annotate_with_locus.
4972         (Pragma_to_gnu): Adjust for above change.
4973         (Loop_Statement_to_gnu): Likewise.
4974         (call_to_gnu): Likewise.
4975         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4976         (gnat_to_gnu): Likewise.
4977         (add_stmt_with_node): Likewise.
4978         (add_cleanup): Likewise.
4979         * utils.c (gnat_init_decl_processing): Do not set input_line.
4980
4981 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4982
4983         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4984         (Applicable_Use): Emit a warning when a package tries to use itself.
4985         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4986         is already in use or the package where it is declared is in use or is
4987         declared in the current package.
4988         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4989
4990         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4991         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4992         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4993
4994 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4995
4996         * a-calend-vms.adb, a-calend.adb: 
4997         Add a section on leap seconds control along with two entities used to
4998         enable and disable leap seconds support. The array Leap_Second_Times is
4999         now constant and contains hard time values pre-generated. Remove
5000         all elaboration code used to populate the table of leap seconds.
5001
5002         * bindgen.adb: 
5003         Add entity Leap_Seconds_Support to the list of global run-time variables
5004         along with a comment on its usage and values.
5005         (Gen_Adainit_Ada): Add code to generate the declaration and import of
5006         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
5007         or one (enabled) depending on the presence of binder switch "-y".
5008         (Gen_Adainit_C): Add code to generate the declaration of external int
5009         __gl_leap_seconds_support. Set is value to zero (disabled) or one
5010         (enabled) depending on the presence of binder switch "-y".
5011
5012         * init.c: Add __gl_leap_seconds_support to the list of global values
5013         computed by the binder.
5014
5015 2007-09-26  Jerome Guitton  <guitton@adacore.com>
5016
5017         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
5018         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
5019          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
5020         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
5021
5022         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
5023
5024         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
5025         function which can be called by the debugger to interrupt the tasks of
5026         an Ada application asynchronously, as needed on VxWorks.
5027         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
5028
5029         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
5030         renamed from Stop_All_Tasks. Update comments.
5031         (Stop_All_tasks): New function declaration.
5032
5033 2007-09-26  Olivier Hainque  <hainque@adacore.com>
5034
5035         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
5036         #include <utime.h> and #define GCC_RESOURCE_H before
5037         #include <sys/wait.h>.
5038         Add more protections in __gnat_translate_vms.
5039
5040         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
5041         #include <sys/wait.h>.
5042
5043 2007-09-26  Thomas Quinot  <quinot@adacore.com>
5044             Sergey Rybin  <rybin@adacore.com>
5045
5046         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
5047
5048         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
5049         where it belongs.
5050
5051         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
5052
5053         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
5054         where it belongs.
5055
5056         * sem_dist.ads: Minor comment fix
5057
5058         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
5059
5060 2007-09-26  Javier Miranda  <miranda@adacore.com>
5061             Eric Botcazou  <ebotcazou@adacore.com>
5062
5063         * a-tags.adb: 
5064         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
5065          indirection added to the HT_Link component of the TSD. This is required
5066          to statically allocate the TSD.
5067
5068         * a-tags.ads: 
5069         Minor reordering of the declarations in the private part. Required to
5070         add a level of indirection to the contents of the TSD component HT_Link.
5071         This is required to statically allocate the TSD.
5072
5073         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
5074         Is_Statically_Allocated set from constant objects.
5075         Do not make exported constants created by the compiler volatile.
5076         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
5077         as read-only.
5078
5079         * trans.c (Identifier_to_gnu): For constants, unshare initializers
5080         before returning them.
5081
5082         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
5083         public part of the package.
5084         (Make_DT): Move HT_Link component out of the TSD record. For this
5085         purpose Make_DT now declares a separate object that stores the
5086         HT_Link value, and initializes the TSD component with the address
5087         of this new object. The addition of this level of indirection is
5088         required to statically allocate the TSD because the TSD cannot
5089         have variable components.
5090         (Expand_Interface_Conversion): Improve the expanded code.
5091         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
5092
5093         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
5094         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
5095         if we are building static dispatch tables then we must not generate
5096         extra code to register the primitive because the dispatch table will
5097         be built at the end of the library package; otherwise we notify that
5098         we cannot build the static dispatch table.
5099
5100 2007-09-26  Robert Dewar  <dewar@adacore.com>
5101
5102         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
5103         overlays.
5104
5105         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
5106         (Analyze_Record_Representation_Clause): Suppress junk warning for
5107         missing component clause.
5108         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
5109         tests for controlled type overlay to composites with controlled
5110         components.
5111         (Analyze_Record_Representation_Clause): Add reference for component name
5112
5113 2007-09-26  Javier Miranda  <miranda@adacore.com>
5114             Gary Dismukes  <dismukes@adacore.com>
5115
5116         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
5117         for thunks associated with interface types.
5118
5119         * einfo.ads: Improve documentatation of Is_Internal
5120         (Is_Thunk): New attribute applicable to subprograms. True for thunks
5121         associated with interface types.
5122         Extensive comment fixes regarding flags that appear in all entities. The
5123         documentation is now consistent for all such flags (there were a number
5124         of errors in the documentation in this regard).
5125
5126         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
5127
5128         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
5129         of these procedures are passed a function call that already has
5130         build-in-place actuals (testing new flag
5131         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
5132         the case where processing continues.
5133         (Expand_Call): If the call is generated from a thunk body then we
5134         propagate the extra actuals associated with the accessibility
5135         level of the access type actuals.
5136
5137         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
5138         of each extra formal of a protected operation to reference the
5139         corresponding extra formal of the subprogram denoted by the
5140         operation's Protected_Body_Subprogram.
5141         
5142         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
5143         N_Function_Call nodes.
5144
5145 2007-09-26  Robert Dewar  <dewar@adacore.com>
5146
5147         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
5148
5149         * debug.adb: Add d.s flag.
5150
5151 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5152
5153         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
5154         debug variable so that it won't be initialized when pragma
5155         Initialize_Scalars is in effect.
5156
5157 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5158
5159         * freeze.adb (Freeze_Entity): Remove check for preelaborable
5160         initialization of a full view. This is moved to
5161         Analyze_Package_Specification.
5162
5163         * sem_ch7.adb (Analyze_Package_Specification): Add check for
5164         preelaborable initialization of a full view in entity loop.
5165         (Uninstall_Declarations): If entity is a use-visible compilation unit,
5166         its child units are use-visible only if they are visible child units.
5167
5168         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
5169         whether an expression can be used within a type declaration that
5170         requires preelaborable init.
5171         (Check_Components): Replace inline code that does partial checking for
5172         preelaborable default expressions with call to
5173         Is_Preelaborable_Expression.
5174         (Has_Preelaborable_Initialization): In the case of a generic actual
5175         subtype, (that is, Is_Generic_Actual is True), return the result of
5176         applying Has_Preelaborable_Initialization to the generic actual's base
5177         type.
5178
5179 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
5180
5181         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
5182         call to Jan_1_Day _Of_Week to optimize its performance.
5183         (Is_Leap): Move the routine to the scope of Week_In_Year.
5184         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
5185         weekday on which January 1 falls of Year - 1 and Year + 1. This function
5186         avoids calling Time_Of and Split, thus making it more efficent.
5187         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
5188
5189         * g-calend.ads (Week_In_Year): Change comment to reflect new
5190         implementation.
5191
5192 2007-09-26  Emmanuel Briot  <briot@adacore.com>
5193
5194         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
5195         Command_Line): New types
5196         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
5197         support for defining how switches can be grouped on a command line (as
5198         is the case for -gnatw... for GNAT), and how simple switches can be
5199         used as aliases for more complex switches (-gnatwa is same as
5200         -gnatwbcef...)
5201         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
5202         (Start, Current_*): New subprograms
5203         Added support for parsing an array of strings in addition to the real
5204         command line.
5205         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
5206          be moved from the body to the private part of the spec.
5207         (*): All subprograms now have an extra parameter with default value to
5208         specify which parser should be used. For backward compatibility, it
5209         defaults to parsing the command line of the application. They were also
5210         modified to properly handle cases where each of the argument does not
5211         start at index 1 (which is always true for Ada.Command_Line, but not
5212         when processing any Argument_List).
5213         (Free): New subprogram
5214         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
5215         Argument): New subprograms
5216         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
5217         special characters like ':', '=',... are now handled in a single place,
5218         which makes the code more extensible eventually.
5219         (Getopt, Full_Switch): When the switch was returned as part of the
5220         special character '*', make sure it is prepended by the switch character
5221         ('-' in general), so that the application knows whether "foo" or "-foo"
5222         was specified on the command line.
5223
5224 2007-09-26  Florian Villoing  <villoing@adacore.com>
5225
5226         * g-dirope.adb (Remove_Dir): In case we are removing directories
5227         recursively, make sure that if an exception is raised during the
5228         processing, the current working directory is reset to its initial
5229         value before propagating the exception.
5230
5231 2007-09-26  Vincent Celier  <celier@adacore.com>
5232
5233         * gnatbind.adb: If there are several ALI files specified and there is
5234         a main program to bind, the first ALI is expected to contain the main
5235         subprogram and the names of the binder generated files will be derived
5236         from the first ALI file name.
5237         (Gnatbind): Fix insertion character in invocation of Error_Msg
5238
5239 2007-09-26  Vincent Celier  <celier@adacore.com>
5240
5241         * gnatcmd.adb (Check_Files): Do not include sources that have been
5242         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
5243
5244 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5245
5246         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
5247         information about each of its index types, following the type
5248         reference for its component type.
5249
5250 2007-09-26  Vincent Celier  <celier@adacore.com>
5251
5252         * make.adb: (Kill): New procedure (__gnat_kill imported)
5253         (Running_Compile, Outstanding_Compiles): Global variables that
5254         were previously local to procedure Compile_Sources.
5255         (Sigint_Intercepted): Send signal SIGINT to all outstanding
5256         compilation processes.
5257
5258         (Gnatmake): If project files are used, create the mapping of all the
5259         sources, so that the correct paths will be found.
5260
5261         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
5262
5263 2007-09-26  Vincent Celier  <celier@adacore.com>
5264
5265         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
5266
5267         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
5268         Replace components Compiler_Min_Options and Binder_Min_Options with
5269         Compiler_Required_Switches and Binder_Required_Switches in record
5270         Language_Config.
5271         Remove components Default_Language and Config in Project_Tree_Data,
5272         no longer used.
5273
5274         * prj-attr.adb: New attributes Required_Switches (<language>) in
5275         packages Compiler and Binder.
5276
5277         * prj-nmsc.adb: Major rewrite of the processing of configuration
5278         attributes for gprbuild. No impact on GNAT tools.
5279
5280         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
5281         process configuration attributes: this is done in Prj.Nmsc.Check.
5282         (Recursive_Process): Make a full copy of packages inherited from project
5283         being extended, instead of a shallow copy.
5284         (Process_Project_Tree_Phase_1): New procedure
5285         (Process_Project_Tree_Phase_1): New procedure
5286         (Process): Implementation now uses the two new procedures
5287
5288         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
5289         from the project config, not the tree config that no longer exists.
5290
5291 2007-09-26  Vincent Celier  <celier@adacore.com>
5292
5293         * Make-lang.in: Update dependencies..
5294
5295 2007-09-26  Vincent Celier  <celier@adacore.com>
5296
5297         * osint.adb, osint.ads: Minor reformatting
5298
5299         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
5300
5301 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5302
5303         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
5304         message to cite use of <> in aggregate component associations rather
5305         than wrongly indicating use of limited aggregates.
5306
5307 2007-09-26  Robert Dewar  <dewar@adacore.com>
5308
5309         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
5310         Address_Taken.
5311
5312 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5313
5314         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
5315         ancestor of the derived type, the operations are inherited from the
5316         primary dispatch table of the parent.
5317         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
5318         when the context is an explicit type conversion.
5319
5320 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5321
5322         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
5323         rule for qualified expressions properly, to detect improper conversions
5324         and resolve some cases of overloading.
5325
5326 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5327
5328         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5329         proper kind of reference to the primitive operation, for better source
5330         navigation.
5331         (Valid_Conversion): A tagged conversion is legal if both operands are
5332         tagged.
5333
5334 2007-09-26  Robert Dewar  <dewar@adacore.com>
5335
5336         * sem_warn.adb (Check_References): Catch more cases of unreferenced
5337         packages.
5338
5339 2007-09-26  Vincent Celier  <celier@adacore.com>
5340
5341         * snames.adb, snames.ads: Change Include_Option to Include_Switches
5342
5343 2007-09-26  Robert Dewar  <dewar@adacore.com>
5344
5345         * s-wchstw.adb: provide messages for run time unit exceptions
5346
5347         * a-witeio.adb: Minor reformatting
5348
5349         * exp_ch13.adb: Minor reformatting
5350
5351 2007-09-26  Sergey Rybin  <rybin@adacore.com>
5352
5353         * vms_data.ads: Revise gnatmetric qualifiers.
5354         Add qualified for the new gnatbind option '-y'
5355
5356         * gnat_ugn.texi: Revise the gnatmetric section.
5357         Add entry for new gnatbind option '-y'.
5358
5359         * gnat_rm.texi: Minor spelling correction.
5360         Document restriction on overlaying controlled types
5361
5362 2007-09-26  Vincent Celier  <celier@adacore.com>
5363
5364         * makegpr.adb (Link_Executables): Do not fail when the root project has
5365         no sources, but is an extending project.
5366
5367 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
5368
5369         * trans.c: Fix misplaced #define.
5370
5371 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
5372
5373         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5374         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5375
5376 2007-09-21  Olivier Hainque  <hainque@adacore.com>
5377
5378         * utils.c (type_for_nonaliased_component_p): Return false for
5379         all AGGREGATE_TYPEs.
5380
5381 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5382
5383         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5384         object covered by 13.3(19) volatile.
5385
5386 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
5387
5388         PR ada/26797
5389         PR ada/32407
5390         * utils.c (unchecked_convert): Use a subtype as the intermediate type
5391         in the special VIEW_CONVERT_EXPR case.
5392
5393 2007-09-12  Robert Dewar  <dewar@adacore.com>
5394
5395         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5396
5397         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5398         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5399         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5400         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5401         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5402         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5403         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5404         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5405         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
5406         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
5407         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
5408         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
5409         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
5410         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
5411         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
5412         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
5413         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5414         pragma Compiler_Unit and adds it to relevant library units.
5415
5416 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
5417
5418         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5419         a box need not correspond to any component.
5420
5421 2007-09-12  Robert Dewar  <dewar@adacore.com>
5422
5423         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5424         the tasking version of the Ada run time when foreign threads are
5425         present and there are no explicit Ada tasks or tasking constructs.
5426
5427         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5428
5429 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
5430
5431         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5432         the usage of switch -y.
5433
5434         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5435         when switch -y is present.
5436
5437         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5438         leap seconds in Ada.Calendar and its children.
5439
5440 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
5441
5442         * a-extiti.ads (Timer): The discriminant is a "not null access
5443         constant" in the Reference Manual.
5444         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5445
5446 2007-09-12  Robert Dewar  <dewar@adacore.com>
5447
5448         * a-swuwha.adb: Remove junk RM header
5449
5450 2007-09-12  Vincent Celier  <celier@adacore.com>
5451
5452         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5453         indicator
5454
5455         * g-bytswa.ads: Minor reformatting
5456
5457 2007-09-12  Thomas Quinot  <quinot@adacore.com>
5458
5459         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
5460         Add new constant Thread_Blocking_IO, always True by default, set False
5461         on a per-runtime basis.
5462         (Need_Netdb_Buffer): New constant.
5463
5464 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
5465
5466         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5467         Added renames for corresponding functions in System.Partition_Interface.
5468
5469 2007-09-12  Doug Rupp  <rupp@adacore.com>
5470
5471         * Makefile.in: Remove VMS specific System.CRTL packages which are no
5472         longer needed.
5473
5474         * s-crtl-vms64.ads: Removed.
5475
5476 2007-09-12  Olivier Hainque  <hainque@adacore.com>
5477
5478         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5479         with discriminant constraints, generalize the code for BIT_FIELDs
5480         to PACKED fields of constant size and propagate DECL_PACKED.
5481
5482 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5483
5484         * decl.c (array_type_has_nonaliased_component): New predicate.
5485         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5486         set the TYPE_NONALIASED_COMPONENT flag on the type.
5487         <E_Array_Subtype>: Likewise.
5488         * gigi.h (type_for_nonaliased_component_p): Declare.
5489         * utils.c (type_for_nonaliased_component_p): New predicate.
5490         (create_field_decl): Invoke the above predicate to set the
5491         DECL_NONADDRESSABLE_P flag on the field.
5492
5493 2007-09-11  Javier Miranda  <miranda@adacore.com>
5494
5495         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5496         in library level record type entities if we are generating statically
5497         allocated dispatch tables.
5498
5499         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5500         importing/exporting the _tag declaration by new code
5501         importing/exporting the dispatch table wrapper. This change allows us
5502         to statically allocate of the TSD.
5503         (Make_DT.Export_DT): New procedure.
5504         (Build_Static_DT): New function.
5505         (Has_DT): New function.
5506
5507         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5508         True_Constant and Current_Value. Required to statically
5509         allocate the dispatch tables.
5510         (Check_Allocator): Make function iterative instead of recursive.
5511         Also return inner allocator node, when present, so that we do not have
5512         to look for that node again in the caller.
5513
5514 2007-09-11  Jan Hubicka  <jh@suse.cz>
5515
5516         * misc.c (gnat_expand_body): Kill.
5517         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5518
5519 2007-09-10  Robert Dewar  <dewar@adacore.com>
5520
5521         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5522         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5523         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5524         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5525         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5526         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5527         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5528         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5529         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5530         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5531         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5532         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5533         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5534         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5535         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5536         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5537         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5538         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5539         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5540         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5541         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5542         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5543         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5544         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5545         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5546         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5547         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5548         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5549         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5550         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5551         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5552         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5553         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5554         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5555         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5556         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5557         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5558         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5559         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5560         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5561         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5562         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5563         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5564         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5565         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5566         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5567         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5568         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5569         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5570         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5571         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5572         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5573         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5574         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5575         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5576         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5577         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5578         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5579         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5580         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5581         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5582         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5583         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5584         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5585         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5586         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5587         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5588         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5589         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5590         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5591         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5592         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5593         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5594         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5595         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5596         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5597         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5598         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5599         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5600         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5601         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5602         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5603         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5604
5605 2007-09-10  Emmanuel Briot  <briot@adacore.com>
5606
5607         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5608         classes ("[]").
5609
5610 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
5611
5612         * adaint.c (__gnat_translate_vms): new function.
5613
5614 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
5615             Thomas Quinot  <quinot@adacore.com>
5616
5617         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5618         create an abstract subprogram in the case of 'Input. For 'Output we now
5619         create a real spec/body when the type is abstract, since it can
5620         potentially be called.
5621         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5622         body for 'Output when the type is abstract (only the creation of the
5623         body for 'Input is excluded when the type is abstract).
5624         (Stream_Operation_OK): Add an additional condition in the return
5625         statement, so that False will be returned for TTS_Stream_Input if the
5626         associated tagged type is an abstract extension. Add comments for
5627         return statement.
5628         (Expand_N_Object_Declaration): For the case of a shared passive
5629         variable, insert init proc call only after the shared variable
5630         procedures have been processed, because the IP call needs to undergo
5631         shared passive variable reference expansion, which requires these
5632         procedures to be available (and elaborated).
5633
5634 2007-09-10  Vincent Celier  <celier@adacore.com>
5635
5636         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5637         parameter Runtime_Project.
5638
5639 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5640
5641         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5642         given a box association, the type of the component is discriminated,
5643         and the value of the discriminant is the discriminant of the enclosing
5644         type, retrieve its value from the aggregate itself, where it must have
5645         been supplied.
5646
5647         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5648         to remove other spurious ambiguities on arithmetic operations involving
5649         literals and addresses, on systems where Address is a visible integer
5650         type, when the operator is called in functional notation.
5651         (Try_Primitive_Operation): Within an instance, a call in prefixed form
5652         is legal when the types match, even if the operation is currently
5653         hidden.
5654
5655 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5656
5657         * sem_ch12.adb (Build_Local_Package): A formal package with no
5658         associations is legal if all formals have defaults. It is not
5659         equivalent to a formal declared with a box.
5660
5661 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5662
5663         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5664
5665 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5666
5667         * gnat_ugn.texi: Add description of the new '-lratio' option
5668         Update 7.3.1 section about availability of the feature.
5669
5670 2007-09-10  Thomas Quinot  <quinot@adacore.com>
5671
5672         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5673         inserted node.
5674
5675 2007-09-10  Olivier Hainque  <hainque@adacore.com>
5676
5677         * Makefile.in: (mips-irix section): Activate build of libgmem.
5678
5679 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5680
5681         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5682         x87 registers.
5683
5684 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5685
5686         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5687         a debug renaming declaration specially.
5688
5689 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5690
5691         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5692         which a constant renaming is treated as a normal object declaration.
5693         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5694         the N_Indexed_Component case.
5695         <N_Indexed_Component>: Fall through to above case.
5696         <N_Object_Renaming_Declaration>: Return true for all composite types.
5697
5698 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5699
5700         * decl.c (make_packable_type): If the new type has been given BLKmode,
5701         try again to get an integral mode for it.
5702
5703 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
5704
5705         Re-apply accidentally reverted change:
5706
5707         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5708
5709         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5710         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
5711         and _Unwind_SWord with _sleb128_t.
5712
5713 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
5714
5715         * trans.c (convert_with_check): Update call to real_2expN.
5716
5717 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
5718
5719         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5720         * utils.c (end_subprog_body): Likewise.
5721
5722 2007-09-03  Nick Clifton  <nickc@redhat.com>
5723
5724         * Make-lang.in: Change copyright header to refer to version 3 of
5725         the GNU General Public License and to point readers at the
5726         COPYING3 file and the FSF's license web page.
5727         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5728         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5729         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5730         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5731         Likewise.
5732
5733 2007-08-31  Vincent Celier  <celier@adacore.com>
5734
5735         PR ada/4720
5736
5737         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
5738         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5739         (Check_Version_And_Help): New procedure in package Switch to process
5740         switches --version and --help.
5741         Use Check_Version_And_Help in GNAT tools
5742
5743         * make.adb:  Ditto.
5744         (Compile_Sources): Make sure that sources that are "excluded" are not
5745         compiled.
5746         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5747         project file is used.
5748         (Version_Switch): Remove, moved to Switch
5749         (Help_Switch): Remove, moved to Switch
5750         (Display_Version): Remove, moved to Switch
5751
5752         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5753         package Switch to process switches --version and --help.
5754         (Display_Version): New procedure
5755
5756         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5757
5758 2007-08-31  Javier Miranda  <miranda@adacore.com>
5759
5760         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5761         internal tags.
5762
5763 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5764
5765         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5766         (Mark_Non_Null): If the node for which we just generated an access check
5767         is a reference to an *in* parameter and the reference appears in the
5768         declarative part of a subprogram body, mark the node as known non null.
5769
5770 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5771
5772         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5773         structure of E_Exception to reflect the new flag.
5774         (Is_Raised, Set_Is_Raised): New inlined routines.
5775         Update the usage of available flag to reflect the addition of Is_Raised.
5776         (Is_Raised, Set_Is_Raised): Bodies of new routines.
5777         (Write_Entity_Flags): Write the status of flag Is_Raised.
5778         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5779         spurious ambiguities when integer literals appear in the context of an
5780         address type that is a visible integer type.
5781
5782         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5783         exceptions never being raised.
5784         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5785         explicitly raised.
5786
5787 2007-08-31  Javier Miranda  <miranda@adacore.com>
5788
5789         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5790         statement when compiling under restriction No_Exceptions_Proparation.
5791
5792 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5793
5794         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5795         initialization aggregate for the type, generate itype references for
5796         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5797
5798 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
5799
5800         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5801         library-level package renaming, pass the declaration associated with
5802         the renaming's special debug variable to Qualify_Entity_Names to ensure
5803         that its encoded name is properly qualified.
5804
5805         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5806         occurring in the list of entities to qualify, and do not attempt to
5807         traverse an entity list in that case. Variables associated with
5808 `       library-level package renamings can now occur in the table.
5809
5810         * exp_dbug.ads: Revise documentation of the encoding for renaming
5811         declarations.
5812
5813 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5814
5815         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5816         access type points to an unconstrained array.
5817
5818 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5819
5820         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5821         conversion.
5822
5823         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5824         simple redundant qualifications. The check is performed whenever the
5825         expression is a non-overloaded identifier.
5826         (Resolve_Type_Conversion): Enchance the redundant type conversion check
5827         to include loop parameters.
5828         (Valid_Conversion): Avoid generation of spurious error message.
5829
5830 2007-08-31  Bob Duff  <duff@adacore.com>
5831
5832         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5833         concatenations of string literals into a single literal, in order to
5834         avoid very deep recursion in the front end, which was causing stack
5835         overflow.
5836
5837         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5838         string, and the right operand is a string literal (the case of "" &
5839         "..."), optimize by avoiding copying the right operand -- just use the
5840         value of the right operand directly.
5841
5842         * stringt.adb (Store_String_Chars): Optimize by growing the
5843         String_Chars table all at once, rather than appending characters one by
5844         one.
5845         (Write_String_Table_Entry): If the string to be printed is very long,
5846         just print the first few characters, followed by the length. Otherwise,
5847         doing "pn(n)" in the debugger can take an extremely long time.
5848
5849         * sem_prag.adb (Process_Interface_Name): Replace loop doing
5850         Store_String_Char with Store_String_Chars.
5851
5852 2007-08-31  Vincent Celier  <celier@adacore.com>
5853
5854         * prj-attr.adb: Add new attribute Excluded_Source_Files
5855
5856         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5857         Locally_Removed_Files.
5858
5859         * snames.ads, snames.adb: New standard name Excluded_Source_Files
5860
5861 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5862
5863         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5864         clauses of subunits, ignore limited_with_clauses that are illegal and
5865         have not been fully analyzed.
5866
5867 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5868
5869         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5870         flag, for effiency. It is called when analyzing arithmetic operators
5871         and also for actuals in calls that are universal_integers. The flag is
5872         set for the predefined type address, and for any type or subtype
5873         derived from it.
5874
5875         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5876         Universal_Integer, when the formal is a descendent of address and the
5877         call appears in user code.
5878         (Analyze_Selected_Component): if the prefix is a private extension, the
5879         tag component is visible.
5880
5881         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5882         entity flag.
5883
5884 2007-08-31  Robert Dewar  <dewar@adacore.com>
5885
5886         * s-fileio.adb (Open): Normalize file name to lower case in non-case
5887         sensitive file name systems to avoid unexpected mismatch in Vista.
5888
5889 2007-08-31  Vincent Celier  <celier@adacore.com>
5890
5891         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5892
5893 2007-08-31  Vincent Celier  <celier@adacore.com>
5894
5895         * symbols-vms.adb (Initialize): Read symbol files with continuation
5896         lines
5897         (Finalize): If symbol is long, split the line
5898
5899 2007-08-31  Vincent Celier  <celier@adacore.com>
5900
5901         * fmap.ads: Minor comment updates
5902
5903 2007-08-31  GNAT Script  <nobody@adacore.com>
5904
5905         * Make-lang.in: Makefile automatically updated
5906
5907 2007-08-31  Bob Duff  <duff@adacore.com>
5908
5909         * sinfo.ads: Minor comment fix.
5910
5911 2007-08-31  Thomas Quinot  <quinot@adacore.com>
5912
5913         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5914         with implementation.
5915         Documentation cleanup only.
5916
5917 2007-08-31  Sergey Rybin  <rybin@adacore.com>
5918
5919         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5920         gnatpp '--separate-stmt-name' option.
5921         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5922         option.
5923
5924         * gnat_ugn.texi: Add description for the new gnatpp
5925         '--separate-stmt-name' and '--use-on-new-line' options.
5926
5927 2007-08-31  Ben Elliston  <bje@au.ibm.com>
5928
5929         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5930         when compiling for powerpc64-*-linux.
5931         * system-linux-ppc64.ads: New file.
5932
5933 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
5934
5935         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5936         NetBSD.
5937
5938 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5939
5940         * misc.c (gnat_type_max_size): Constify.
5941
5942 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5943
5944         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5945         associated with Standard_Debug_Renaming_Type, to be used as the type of
5946         the special variables whose names provide debugger encodings for
5947         renaming declarations.
5948
5949         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5950         (Set_Debug_Renaming_Link): Change to set Node25.
5951         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5952         (Write_Field25_Name): Add case for E_Variable to output
5953         "Debug_Renaming_Link".
5954         (Write_Field23_Name): Correct the output string for "Limited_View".
5955
5956         * exp_dbug.adb: Add with and use of Tbuild.
5957         (Debug_Renaming_Declaration): Replace creation of an enumeration type
5958         and literal with creation of a variable of type
5959         Standard_Debug_Renaming_Type whose name encodes both the renamed object
5960         and the entity of the renaming declaration.
5961         (Qualify_Entity_Name): Add the delayed qualification of the entity name
5962         part of the name of a variable that has a Debug_Renaming_Link.
5963
5964         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5965         special type to be associated with variables that provide debugger
5966         encodings for renaming declarations.
5967
5968 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5969             Ed Schonberg  <schonberg@adacore.com>
5970             Javier Miranda  <miranda@adacore.com>
5971
5972         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5973         ancestor part given by an aggregate to test for an unchecked conversion,
5974         since this can occur in some cases when the ancestor part is a function
5975         call, and we don't want to fall into the recursive call to this
5976         procedure in that case.
5977
5978         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5979         stream attributes on limited types to account for user-specified
5980         attributes as well as whether Input (resp. Output) becomes available
5981         due to Read (resp. Write) being available for the type. Change Boolean
5982         variable to the more accurate name
5983         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5984         double-"not" predicate at beginning of return statement to more
5985         understandable form.
5986
5987         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5988         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5989         in a block statement and use that as the first statement of the
5990         expanded return rather than incorrectly using the handled sequence as
5991         the first statement.
5992
5993         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5994         operation, generate an explicit freeze node for it rather than
5995         generating extra formals, to ensure that gigi has the proper order of
5996         elaboration for anonymous subtypes in the signature of the subprograms.
5997         (Build_In_Place_Formal): Move assertion to beginning of loop.
5998         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5999         applied to a function call (occurs for some cases of 'Input).
6000         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
6001         applied to a function call (occurs for some cases of 'Input).
6002
6003         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
6004         2005, generate an extended return statement enclosing the result object
6005         and 'Read call.
6006
6007         * freeze.adb (Freeze_Record_Type): Extend the current management of
6008         components that are access type with an allocator as default value: add
6009         missing support to the use of qualified expressions of the
6010         allocator (which also cause freezing of the designated type!)
6011         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
6012         dispatching operation, since extra formals may be needed by calls to
6013         build-in-place functions (such as stream 'Input).
6014
6015         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
6016         formals for 'Constrained and accessibility level in the case of a
6017         predefined dispatching operation.
6018
6019         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
6020         point, no need to find the parent node.
6021
6022 2007-08-16  Javier Miranda  <miranda@adacore.com>
6023
6024         * exp_attr.adb (Attribute_Priority): Add missing support for entries
6025         and entry barriers.
6026
6027 2007-08-16  Javier Miranda  <miranda@adacore.com>
6028
6029         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
6030         is not really required and can introduce regression with the debugger.
6031         The original problem is fixed with the patch written for checks.adb.
6032
6033 2007-08-16  Thomas Quinot  <quinot@adacore.com>
6034
6035         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
6036         Range_Check on Allocated_Table.
6037
6038 2007-08-16  Vincent Celier  <celier@adacore.com>
6039
6040         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
6041         Including_Non_Switch set to False.
6042         (Gnatmake): For the compiler, call Test_If_Relative_Path with
6043         Including_Non_Switch set to False.
6044
6045         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
6046         parameter Including_Non_Switch, defaulted to True. When
6047         Including_Non_Switch is False, options that are not switches and
6048         appear as relative path are not converted to absolute paths.
6049
6050 2007-08-16  Nicolas Roche  <roche@adacore.com>
6051
6052         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
6053         makefiles
6054
6055         * Make-lang.in: Update dependencies
6056
6057 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
6058
6059         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
6060         currently inspected is a selected component, retrieve the entity of
6061         its selector.
6062         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
6063         from the immediate ancestor of Main_Unit_Entity.
6064         (Install_Limited_Withed_Unit): Do not install the limited view of
6065         package P if P is reachable through an ancestor chain from package C
6066         and C also has a with clause for P in its body.
6067         (Has_Limited_With_Clause): New routine.
6068         (Has_With_Clause): New routine.
6069
6070 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
6071
6072         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
6073         generic for an enclosing instance is a global reference, even though
6074         its scope is the enclosing instance.
6075
6076 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
6077             Javier Miranda  <miranda@adacore.com>
6078
6079         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
6080         initialize a limited object.
6081         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
6082         13/2 and 14/2.
6083         Make sure Has_Complex_Representation is inherited by derived type.
6084
6085 2007-08-16  Robert Dewar  <dewar@adacore.com>
6086
6087         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
6088         exception case
6089
6090 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
6091
6092         * sem_disp.adb (Check_Dispatching_Operation): If the operation
6093         implements an operation inherited from a progenitor interface, verify
6094         that they are subtype-conformant.
6095
6096 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
6097             Bob Duff  <duff@adacore.com>
6098             Nicolas Setton  <setton@adacore.com>
6099
6100         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
6101         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
6102         the statement which is being resolved comes from a predefined library
6103         unit, all non-predefined library interpretations are skipped.
6104         (Resolve_Op_Concat): If string concatenation was folded in the parser,
6105         but the "&" is user defined, give an error, because the folding would
6106         be wrong.
6107
6108         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
6109         the parser has folded a long sequence of concatenations of string
6110         literals.
6111
6112         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
6113         and "JMP_BUF" variables as artificial.
6114         (N_String_Literal): Do not use alloca for very long string literals. Use
6115         xmalloc/free instead. Otherwise the stack might overflow.
6116
6117         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
6118         compiler.
6119
6120 2007-08-16  Vincent Celier  <celier@adacore.com>
6121
6122         * vms_conv.adb (Process_Argument): Ensure that project related options
6123         are not put in the -cargs section when using GNAT COMPILE.
6124
6125 2007-08-16  Robert Dewar  <dewar@adacore.com>
6126
6127         * gnat_ugn.texi: Add note on preprocessing (output file not written)
6128
6129 2007-08-16  Thomas Quinot  <quinot@adacore.com>
6130
6131         * a-tags.adb: Minor reformatting.
6132
6133 2007-08-16  Bob Duff  <duff@adacore.com>
6134
6135         * sem_type.ads, sem_ch4.adb: Minor reformatting.
6136
6137 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6138
6139         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
6140         s-osinte-interix.ads, system-interix.ads: Removed.
6141
6142 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
6143
6144         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
6145         calls to Check_Within_Time_Bounds.
6146         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
6147         (Difference): Account for possible rounding of the resulting difference
6148
6149 2007-08-14  Robert Dewar  <dewar@adacore.com>
6150
6151         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
6152         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
6153         s-osinte-solaris.adb, s-osinte-solaris.ads,
6154         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
6155
6156         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
6157         switch -gnatyS. Enable -gnatyS in GNAT style check mode
6158
6159 2007-08-14  Robert Dewar  <dewar@adacore.com>
6160             Ed Schonberg  <schonberg@adacore.com>
6161
6162         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
6163         Suppress unmodified in-out parameter warning in some cases
6164         This patch is a also fairly significant change to the way suppressible
6165         checks are handled.
6166
6167         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
6168         needed for access to concurrent record types generated by the expander.
6169         (Generate_Range_Check): When generating a temporary to capture the
6170         value of a conversion that requires a range check, set the type of the
6171         temporary before rewriting the node, so that the type is always
6172         properly placed for back-end use.
6173         (Apply_Float_Conversion_Check): Handle case where the conversion is
6174         truncating.
6175         (Get_Discriminal): Code reformatting. Climb the scope stack looking
6176         for a protected type in order to examine its discriminants.
6177
6178 2007-08-14  Robert Dewar  <dewar@adacore.com>
6179             Gary Dismukes  <dismukes@adacore.com>
6180             Ed Schonberg  <schonberg@adacore.com>
6181             Thomas Quinot  <quinot@adacore.com>
6182
6183         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
6184         a-stwisu.adb, a-strsup.adb: Fix warnings for range
6185         tests optimized out.
6186
6187         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
6188         (Get_Allocator_Final_List): For the case of an anonymous access type
6189         that has a specified Associated_Final_Chain, do not go up to the
6190         enclosing scope.
6191         (Expand_N_Type_Conversion): Test for the case of renamings of access
6192         parameters when deciding whether to apply a run-time accessibility
6193         check.
6194         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
6195         aggregate code before allocator, and ahead of declaration for
6196         temporary, to prevent access before elaboration when the allocator is
6197         an actual for an access parameter.
6198         (Expand_N_Type_Conversion): On an access type conversion involving an
6199         access parameter, do not apply an accessibility check when the
6200         operand's original node was an attribute other than 'Access. We now
6201         create access conversions for the expansion of 'Unchecked_Access and
6202         'Unrestricted_Access in certain cases and clearly accessibility should
6203         not be checked for those.
6204
6205         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
6206         includes a type conversion of a packed component that has been expanded,
6207         recover the original expression for the object, and use this expression
6208         in the post-call assignment statement, so that the assignment is made
6209         to the object and not to a back-end temporary.
6210         (Freeze_Subprogram): In case of primitives of tagged types not defined
6211         at the library level force generation of code to register the primitive
6212         in the dispatch table. In addition some code reorganization has been
6213         done to leave the implementation clear.
6214         (Expand_Call): When expanding an inherited implicit conversion,
6215         preserve the type of the inherited function after the intrinsic
6216         operation has been expanded.
6217
6218         * exp_ch2.ads, exp_ch2.adb
6219         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
6220         of an entry formal appearing in an assignment statement does not assign
6221         to the formal.
6222         (Expand_Current_Value): Instead of calling a routine to determine
6223         whether the prefix of an attribute reference should be optimized or
6224         not, prevent the optimization of such prefixes all together.
6225
6226         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
6227         component whose prefix is known to be of an access type is an implicit
6228         dereference and does not assign to the prefix.
6229
6230 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6231             Robert Dewar  <dewar@adacore.com>
6232
6233         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
6234         itype is visited, make an entry into table to link associated node and
6235         new itype.
6236         Add comments and correct harmless error in Build_NCT_Hash_Tables
6237         (Array_Aggr_Subtype): Associate each itype created for an index type to
6238         the corresponding range construct, and not to the aggregate itself. to
6239         maintain a one-to-one correspondence between itype and its associated
6240         node, to prevent errors when complex expression is copied.
6241         Fix mishandling of multiple levels of parens
6242
6243         * sem_aggr.adb: Create a limited view of an incomplete type, to make
6244         treatment of limited views uniform for all visible declarations in a
6245         limited_withed package.
6246         (New_Copy_Tree): If hash table is being used and itype is visited,
6247         make an entry into table to link associated node and new itype.
6248         (Resolve_Record_Aggregate): Do not add an others box association for a
6249         discriminated record component that has only discriminants, when there
6250         is a box association for the component itself.
6251
6252         * par-ch4.adb: Fix mishandling of multiple levels of parens
6253
6254 2007-08-14  Robert Dewar  <dewar@adacore.com>
6255
6256         * comperr.adb: Fix problem with suppressing warning messages from gigi
6257
6258         * erroutc.ads, erroutc.adb, errout.ads, 
6259         errout.adb (Write_Eol): Remove trailing spaces before writing the line
6260         (Write_Eol_Keep_Blanks): New procedure to write a line, including
6261         possible trailing spaces.
6262         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
6263         Fix problem with suppressing warning messages from back end
6264         Improve handling of deleted warnings
6265
6266         * gnat1drv.adb: 
6267         Fix problem with suppressing warning messages from back end
6268         Handle setting of Static_Dispatch_Tables flag.
6269
6270         * prepcomp.adb: 
6271         Fix problem with suppressing warning messages from back end
6272
6273         * exp_intr.adb: Improve handling of deleted warnings
6274
6275 2007-08-14  Robert Dewar  <dewar@adacore.com>
6276
6277         * debug.adb: Improve -gnatdI to cover all cases of serialization
6278         Add documentation of dZ, d.t
6279
6280         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
6281         serialization.
6282         (Sprint_Node_Actual): Generate new output associated with implicit
6283         importation and implicit exportation of object declarations.
6284
6285 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6286             Robert Dewar  <dewar@adacore.com>
6287             Javier Miranda  <miranda@adacore.com>
6288             Gary Dismukes  <dismukes@adacore.com>
6289
6290         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
6291         to make treatment of limited views uniform for all visible declarations
6292         in a limited_withed package.
6293         Improve warnings for in out parameters
6294         (Set_Related_Interaface/Related_Interface): Allow the use of this
6295         attribute with constants.
6296         (Write_Field26_Name): Handle attribute Related_Interface in constants.
6297         Warn on duplicate pragma Preelaborable_Initialialization
6298
6299         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
6300         generation of a freezing node to ensure proper management of null
6301         excluding access types in the backend.
6302         (Create_Extra_Formals): Test base type of the formal when checking for
6303         the need to add an extra accessibility-level formal. Pass the entity E
6304         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
6305         originally being done in a couple of cases), to ensure that the
6306         Extra_Formals list gets set on the entity E when the first entity is
6307         added.
6308         (Conforming_Types): Add missing calls to Base_Type to the code that
6309         handles anonymous access types. This is required to handle the
6310         general case because Process_Formals builds internal subtype entities
6311         to handle null-excluding access types.
6312         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6313         functions that need it, even when not marked Requires_Overriding.
6314         Improve warnings for in out parameters
6315         (Analyze_Function_Return): Warn for disallowed null return
6316         Warn on return from procedure with unset out parameter
6317         Ensure consistent use of # in error messages
6318         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
6319         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
6320         the implicit conversion of the expression done for anonymous access
6321         types. This is required to generate the code of the null excluding
6322         check (if required).
6323
6324         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6325         A formal parameter is never publicly referenceable outside of its body.
6326         (Check_References): For an unreferenced formal parameter in an accept
6327         statement, use the same warning circuitry as for subprogram formal
6328         parameters.
6329         (Warn_On_Unreferenced_Entity): New subprogram, taken from
6330         Output_Unreferenced_Messages, containing the part of that routine that
6331         is now reused for entry formals as described above.
6332         (Goto_Spec_Entity): New function
6333         (Check_References): Do not give IN OUT warning for dispatching operation
6334         Improve warnings for in out parameters
6335         (Test_Ref): Check that the entity is not undefinite before calling
6336         Scope_Within, in order to avoid infinite loops.
6337         Warn on return from procedure with unset out parameter
6338         Improved warnings for unused variables
6339
6340 2007-08-14  Robert Dewar  <dewar@adacore.com>
6341             Javier Miranda  <miranda@adacore.com>
6342             Gary Dismukes  <dismukes@adacore.com>
6343
6344         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6345         (Expand_N_Attribute_Reference): Further unify the handling of the
6346         three forms of access attributes, using common code now for all three
6347         cases. Add a test for the case of applying an access attribute to
6348         an explicit dereference when the context is an access-to-interface
6349         type. In that case we need to apply the conversion to the prefix
6350         of the explicit dereference rather than the prefix of the attribute.
6351         (Attribute_Version, UET_Address): Set entity as internal to ensure
6352         proper dg output of implicit importation.
6353         (Expand_Access_To_Type): Removed.
6354         (Expand_N_Attribute_Reference): Merge the code from the three cases
6355         of access attributes, since the processing is largely identical for
6356         these cases. The substantive fix here is to process the case of a
6357         type name prefix (current instance case) before handling the case
6358         of interface prefixes.
6359
6360 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6361             Ed Schonberg  <schonberg@adacore.com>
6362             Javier Miranda  <miranda@adacore.com>
6363             Robert Dewar  <dewar@adacore.com>
6364
6365         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6366         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6367         type that is an anonymous access to controlled object, establish
6368         an associated finalization chain to avoid corrupting the global
6369         finalization list when a dynamically allocated object designated
6370         by such a component is deallocated.
6371         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6372         functions that need it, even when not marked Requires_Overriding.
6373         (Initialize_Tag): Replace call to has_discriminants by call to
6374         Is_Variable_Size_Record in the circuitry that handles the
6375         initialization of secondary tags.
6376         (Is_Variable_Size_Record): New implementation.
6377         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6378         Suppress_Initialization pragma for a derived type.
6379         (Is_Variable_Size_Record): New subprogram.
6380         (Build_Offset_To_Top_Functions): New implementation that simplifies the
6381         initial version of this routine and also fixes problems causing
6382         incomplete initialization of the table of interfaces.
6383         (Build_Init_Procedure): Improve the generation of code to initialize the
6384         the tag components of secondary dispatch tables.
6385         (Init_Secondary_Tags): New implementation that simplifies the previous
6386         version of this routine.
6387         (Make_DT): Add parameter to indicate when type has been frozen by an
6388         object declaration, for diagnostic purposes.
6389         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6390         diagnose attemps to freeze a subprogram when some untagged type of its
6391         profile is a private type whose full view has not been analyzed yet.
6392         (Freeze_Array_Type): Generate init proc for packed array if either
6393         Initialize or Normalize_Scalars is set.
6394         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6395         constructing the new profile, copy the null_exclusion indicator for each
6396         parameter, to ensure full conformance of the new body with the spec.
6397
6398         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6399         Create wrappers for constructor functions that need it, even when not
6400         marked Requires_Overriding.
6401         (Covers): Handle properly designated types of anonymous access types,
6402         whose non-limited views are themselves incomplete types.
6403         (Add_Entry): Use an entity to store the abstract operation which hides
6404         an interpretation.
6405         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6406         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6407         initialization aggregate.
6408         (Function_Interp_May_Be_Hidden): Rename to
6409         Function_Interp_Has_Abstract_Op.
6410         (Has_Compatible_Type): Remove machinery that skips interpretations if
6411         they are labeled as potentially hidden by an abstract operator.
6412         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6413         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6414         (Write_Overloads): Output the abstract operator if present.
6415         (Add_Entry): Before inserting a new entry into the interpretation table
6416         for a node, determine whether the entry will be disabled by an abstract
6417         operator.
6418         (Binary_Op_Interp_May_Be_Hidden): New routine.
6419         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6420         aggregate.
6421         (Function_Interp_May_Be_Hidden): New routine.
6422         (Has_Compatible_Type): Do not consider interpretations hidden by
6423         abstract operators when trying to determine whether two types are
6424         compatible.
6425         (Has_Hidden_Interp): New routine.
6426         (Set_May_Be_Hidden_Interp): New routine.
6427         (Write_Overloads): Write the status of flag May_Be_Hidden.
6428
6429 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6430             Javier Miranda  <miranda@adacore.com>
6431
6432         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6433         types declared in the declarative part of a nested package body or in
6434         the proper body of a stub.
6435         (Set_All_DT_Position): Add missing check to avoid wrong assignation
6436         of the same dispatch table slot to renamed primitives.
6437         (Make_Select_Specific_Data_Table): Handle private types.
6438         (Tagged_Kind): Handle private types.
6439         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6440         output of implicit importation and exportation.
6441         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6442         first formal of the thunk is always associated with the controlling
6443         type. In addition perform the following code cleanup: remove formal
6444         Thunk_Alias which is no longer required, cleanup evaluation of the
6445         the controlling type, and update the documentation.
6446         Replace occurrence of Default_Prim_Op_Count by
6447         Max_Predef_Prims. Addition of compile-time check to verify
6448         that the value of Max_Predef_Prims is correct.
6449         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6450         (Make_DT): Add parameter to indicate when type has been frozen by an
6451         object declaration, for diagnostic purposes.
6452         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6453         construction of statically allocated dispatch tables.
6454         (Make_DT): In case of library-level tagged types export the declaration
6455         of the primary tag. Remove generation of tags (now done by Make_Tags).
6456         Additional modifications to handle non-static generation of dispatch
6457         tables. Take care of building tables for asynchronous interface types
6458         (Make_Tags): New subprogram that generates the entities associated with
6459         the primary and secondary tags of Typ and fills the contents of Access_
6460         Disp_Table. In case of library-level tagged types imports the forward
6461         declaration of the primary tag that will be declared later by Make_DT.
6462         (Expand_Interface_Conversion): In case of access types to interfaces
6463         replace an itype declaration by an explicit type declaration to avoid
6464         problems associated with the scope of such itype in transient blocks.
6465
6466 2007-08-14  Robert Dewar  <dewar@adacore.com>
6467             Ed Schonberg  <schonberg@adacore.com>
6468             Javier Miranda  <miranda@adacore.com>
6469
6470         * exp_util.ads, exp_util.adb: 
6471         This patch replaces a number of occurrences of explicit tests for N_Null
6472         with calls to Known_Null. This improves tracking of null values, since
6473         Known_Null also catches null constants, and variables currently known to
6474         be null, so we get better tracking.
6475         (Ensure_Defined): create an itype reference only in the scope of the
6476         itype.
6477         (Side_Effect_Free): A selected component of an access type that
6478         denotes a component with a rep clause must be treated as not
6479         side-effect free, because if it is part of a linked structure its
6480         value may be affected by a renaming.
6481         (Expand_Subtype_From_Expr): For limited objects initialized with build
6482         in place function calls, do nothing; otherwise we prematurely introduce
6483         an N_Reference node in the expression initializing the object, which
6484         breaks the circuitry that detects and adds the additional arguments to
6485         the called function. Bug found working in the new patch for statically
6486         allocated dispatch tables.
6487         (Is_Library_Level_Tagged_Type): New subprogram.
6488         (Remove_Side_Effects): If the expression of an elementary type is an
6489         operator treat as a function call.
6490         (Make_Literal_Range): If the index type of the array is not integer, use
6491         attributes properly to compute the constraint on the resulting aggregate
6492         which is a string.
6493
6494         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6495         class-wide type whose base type is an incomplete private type, leave
6496         class-wide type unfrozen so that freeze nodes can be generated
6497         properly at a later point.
6498         (Freeze_Entity, array case): Handle case of pragma Pack and component
6499         size attributre clause for same array.
6500
6501 2007-08-14  Vincent Celier  <celier@adacore.com>
6502
6503         * prj.ads, prj.adb: Update Project Manager to new attribute names for
6504         gprbuild.
6505         Allow all valid declarations in configuration project files
6506         (Reset): Initialize all tables and hash tables in the project tree data
6507         Major update of the Project Manager and of the project aware tools,
6508         including gprmake, so that the same sources in the GNAT repository
6509         can be used by gprbuild.
6510         (Slash_Id): Change type to be Path_Name_Type
6511         (Slash): Return a Path_Name_Type instead of a File_Name_Type
6512
6513         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6514         gprbuild.
6515         Update Project Manager to new attribute names for ghprbuild
6516         Allow all valid declarations in configuration project files
6517         Major update of the Project Manager and of the project aware tools,
6518         including gprmake, so that the same sources in the GNAT repository
6519         can be used by gprbuild.
6520
6521         * prj-com.ads: 
6522         Major update of the Project Manager and of the project aware tools,
6523         including gprmake, so that the same sources in the GNAT repository
6524         can be used by gprbuild.
6525
6526         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6527         insensitive flag for attributes with optional index.
6528         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6529         array attribute, put the index in lower case.
6530         Update Project Manager to new attribute names for ghprbuild
6531         Allow all valid declarations in configuration project files
6532         Major update of the Project Manager and of the project aware tools,
6533         including gprmake, so that the same sources in the GNAT repository
6534         can be used by gprbuild.
6535
6536         * prj-env.ads, prj-env.adb: 
6537         Major update of the Project Manager and of the project aware tools,
6538         including gprmake, so that the same sources in the GNAT repository
6539         can be used by gprbuild.
6540         (Get_Reference): Change type of parameter Path to Path_Name_Type
6541
6542         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6543         removing '-' from the path to start with the first character of the
6544         next directory.
6545         Major update of the Project Manager and of the project aware tools,
6546         including gprmake, so that the same sources in the GNAT repository
6547         can be used by gprbuild.
6548         Major update of the Project Manager and of the project aware tools,
6549         including gprmake, so that the same sources in the GNAT repository
6550         can be used by gprbuild.
6551
6552         * prj-nmsc.ads, prj-nmsc.adb: 
6553         Update Project Manager to new attribute names for ghprbuild
6554         Allow all valid declarations in configuration project files
6555         (Search_Directories): Detect subunits that are specified with an
6556         attribute Body in package Naming. Do not replace a source/unit in the
6557         same project when the order of the source dirs are known. Detect
6558         duplicate sources/units in the same project when the order of the
6559         source dirs are not known.
6560         (Check_Ada_Name): Allow all identifiers that are not reserved words
6561         in Ada 95.
6562         Major update of the Project Manager and of the project aware tools,
6563         including gprmake, so that the same sources in the GNAT repository
6564         can be used by gprbuild.
6565         (Look_For_Sources): If the list of sources is empty, set the object
6566         directory of non extending project to nil.
6567         Change type of path name variables to be Path_Name_Type
6568         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6569         otherwise creating missing directories will fail.
6570
6571         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
6572         prj-part.ads, prj-part.adb:
6573         Major update of the Project Manager and of the project aware tools,
6574         including gprmake, so that the same sources in the GNAT repository
6575         can be used by gprbuild.
6576
6577         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6578         insensitive flag for attributes with optional index.
6579         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6580         array attribute, put the index in lower case.
6581         (Parse_Variable_Reference): Allow the current project name to be used in
6582         the prefix of an attribute reference.
6583
6584         * prj-util.ads, prj-util.adb
6585         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6586         defaulted to False. When True, always check against indexes in lower
6587         case.
6588
6589         * snames.ads, snames.h, snames.adb: 
6590         Update Project Manager to new attribute names for gprbuild
6591         Allow all valid declarations in configuration project files
6592
6593 2007-08-14  Robert Dewar  <dewar@adacore.com>
6594             Ed Schonberg  <schonberg@adacore.com>
6595
6596         * opt.ads: Warning for non-local exception propagation now off by
6597         default
6598         New switch -gnatI to disable representation clauses
6599         Implement new pragma Implicit_Packing
6600
6601         * usage.adb: 
6602         Warning for non-local exception propagation now off by default
6603         Add warning for unchecked conversion of pointers wi different
6604         conventions.
6605         New switch -gnatI to disable representation clauses
6606
6607         * usage.adb: new switch -gnatyS
6608
6609         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6610         note that aggregates of anonymous array types are not flagged.
6611         -gnatwc now includes membership tests optimized away
6612         -gnatw.x warnings are now off by default
6613         Added conditional compilation Appendix
6614         Add documentation of -gnatI
6615         Add documentation for new -gnatyS style check
6616         Update documentation about SAL and auto-init on Windows.
6617
6618         * gnat_rm.texi: 
6619         Add documentation for pragma Check_Name and 'Enabled attribute
6620         Document that Eliminate on dispatching operation is ignored
6621         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6622         Document pragma Main
6623         Document pragma Implicit_Packing
6624
6625         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6626         different conventions
6627         New switch -gnatI to disable representation clauses
6628
6629         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6630         recognized, report the invalid characters including "-gnat" instead of
6631         just the first character in the switch.
6632         New switch -gnatI to disable representation clauses
6633         Set Warn_On_Object_Renames_Function true for -gnatg
6634
6635         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6636         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6637         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6638         to switch -aP (add directory to project search dir).
6639
6640         * par-prag.adb: Implement new pragma Implicit_Packing
6641
6642         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6643         type as having a non-standard representation, to force expansion on
6644         conversion to related types.
6645         (Analyze_Pragma): Warn on misspelled pragma
6646         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6647         Ensure consistent use of # in error messages
6648         Implement pragma Implicit_Packing
6649
6650 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6651             Eric Botcazou  <ebotcazou@adacore.com>
6652
6653         * targtyps.c (get_target_maximum_default_alignment): New function.
6654         Maximum alignment
6655         that the compiler might choose by default for a type or object.
6656         (get_target_default_allocator_alignment): New function. Alignment known
6657         to be honored by the target default allocator.
6658         (get_target_maximum_allowed_alignment): New function. Maximum alignment
6659         we might accept for any type or object on the target.
6660         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6661
6662         * gigi.h (get_target_maximum_default_alignment): Declare new function.
6663         (get_target_default_allocator_alignment): Likewise.
6664         (get_target_maximum_allowed_alignment): Likewise.
6665
6666         PR ada/19037
6667         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6668         result of a function call, first try to use a stabilized reference for
6669         a constant renaming too.
6670         (validate_alignment): Use target_maximum_allowed_alignment instead of
6671         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6672         (gnat_to_gnu_entity): Use common nodes directly.
6673         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6674         alignment and size for the object.
6675         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6676         and N_Procedure_Call_Statement.
6677         (takes_address): Rename to lvalue_required_p, add third parameter
6678         'aliased' and adjust recursive calls.
6679         <N_Indexed_Component>: Update 'aliased' from the array type.
6680         <N_Selected_Component>: New case.
6681         <N_Object_Renaming_Declaration>: New Likewise.
6682         (Identifier_to_gnu): Adjust for above changes.
6683         (maybe_stabilize_reference) <CONST_DECL>: New case.
6684
6685         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6686         between type variants.
6687         (build_simple_component_ref): Likewise.
6688         (build_call_alloc_dealloc): Use target_default_allocator_alignment
6689         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6690         aligning type circuitry for allocations from the default storage pool.
6691         (build_allocator): Likewise.
6692         (build_simple_component_ref): Manually fold the reference for a
6693         constructor if the record type contains a template.
6694
6695         * utils.c (value_zerop): Delete.
6696         (gnat_init_decl_processing): Emit debug info for common types.
6697         (rest_of_record_type_compilation): If a union contains a field
6698         with a non-constant qualifier, treat it as variable-sized.
6699         (finish_record_type): Give the stub TYPE_DECL a name.
6700         (rest_of_record_type_compilation): Likewise.
6701         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
6702         types are equivalent array types.
6703         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6704         even if the type is not passed by reference.
6705         (static_ctors, static_dtors): Delete.
6706         (end_subprog_body): Do not record constructors and destructors.
6707         (build_global_cdtor): Delete.
6708         (gnat_write_global_declarations): Do not call build_global_cdtor.
6709
6710         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6711         -fRTS=rtp is specified.
6712         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6713         specified.
6714
6715         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6716         of the personality function with SJLJ exceptions.
6717
6718         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6719         the name of the personality function with SJLJ exceptions.
6720
6721 2007-08-14  Robert Dewar  <dewar@adacore.com>
6722             Ed Schonberg  <schonberg@adacore.com>
6723
6724         * par.ads, par.adb: Improve handling of extra right parens.
6725         (Par): Remove flag From_Limited_With_Clause.
6726
6727         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6728         Improve handling of extra right parens.
6729
6730 2007-08-14  Robert Dewar  <dewar@adacore.com>
6731
6732         * par-tchk.adb (TF_Semicolon): Improve error recovery
6733
6734 2007-08-14  Robert Dewar  <dewar@adacore.com>
6735             Ed Schonberg  <schonberg@adacore.com>
6736
6737         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6738         enumeration type, mark all literals as referenced.
6739         (Eval_Attribute, case 'Image): If the argument is an enumeration
6740         literal and names are available, constant-fold but mark nevertheless as
6741         non-static.
6742         Clean up function names.
6743         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6744         comment.
6745         (Requires_Simple_Name_Prefix): Removed.
6746
6747 2007-08-14  Robert Dewar  <dewar@adacore.com>
6748             Ed Schonberg  <schonberg@adacore.com>
6749
6750         * sem_ch11.adb: Improved warnings for unused variables
6751
6752         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6753         is a synchronized interface, the derived type is limited.
6754         (Analyze_Object_Declaration): Mark the potential coextensions in the
6755         definition and expression of an object declaration node.
6756         (Build_Derived_Type): For the completion of a private type declaration
6757         with a derived type declaration, chain the parent type's representation
6758         items to the last representation item of the derived type (not the
6759         first one) if they are not present already.
6760         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6761         object declaration of forward references to tags.
6762         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6763         subprogram types can appear as access discriminants of synchronized
6764         types.
6765         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6766         given in prefixed form as a selected component.
6767         (Process_Discriminants): If not all discriminants have defaults, place
6768         error message on a default that is present.
6769         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6770         extend a synchronized tagged type.
6771         Improved warnings for unused variables
6772         (Is_Visible_Component): Fix a visibility hole on a component inherited
6773         by a private extension when parent is itself declared as a private
6774         extension, and the derivation is in a child unit.
6775         (Find_Hidden_Interface): Move spec from the package body.
6776
6777 2007-08-14  Robert Dewar  <dewar@adacore.com>
6778             Ed Schonberg  <schonberg@adacore.com>
6779
6780         * sem_ch5.adb: Improve warnings on redundant assignments
6781
6782         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6783         parameter
6784         (Is_Synchronized_Tagged_Type): New subprogram that returns true
6785         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6786         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6787         is set to False. Improves handling of Known_[Not_]Null.
6788         (Wrong_Type): Special case address arithmetic attempt
6789         (Collect_Abstract_Interfaces): Add new formal to allow collecting
6790         abstract interfaces just using the partial view of private types.
6791         (Has_Abstract_Interfaces): Add new formal to allow checking types
6792         covering interfaces using the partial view of private types.
6793         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6794         component still needs to be defined in this case, but is never
6795         initialized as VMs are using other dispatching mechanisms.
6796         (Abstract_Interface_List): For a protected type, use base type to get
6797         proper declaration.
6798         Improve warnings on redundant assignments
6799         (Is_Variable): Handle properly an implicit dereference of a prefixed
6800         function call.
6801         (Build_Actual_Subtype): If this is an actual subtype for an
6802         unconstrained formal parameter, use the sloc of the body for the new
6803         declaration, to prevent anomalises in the debugger.
6804
6805 2007-08-14  Robert Dewar  <dewar@adacore.com>
6806
6807         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6808         dispatching operation
6809
6810 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6811             Gary Dismukes  <dismukes@adacore.com>
6812
6813         * exp_aggr.ads, 
6814         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6815         expanded aggregate code before allocator, and ahead of declaration for
6816         temporary, to prevent access before elaboration when the allocator is
6817         an actual for an access parameter.
6818         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6819         the TSD and the table of interfaces.
6820         (Convert_To_Assignments): Augment the test for delaying aggregate
6821         expansion for limited return statements to include the case of extended
6822         returns, to prevent creation of an unwanted transient scope.
6823         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6824         (Expand_Array_Aggregate): Handle aggregates associated with
6825         statically allocated dispatch tables.
6826         (Expand_Record_Aggregate): Handle aggregates associated with
6827         statically allocated dispatch tables.
6828         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6829         of anonymous access type.
6830
6831 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6832
6833         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6834         is a variable that renames a slice, use the variable itself in the
6835         expannsion when the renamed expression itself may be modified between
6836         the declaration of the renaming and the array assignment.
6837
6838 2007-08-14  Jerome Guitton  <guitton@adacore.com>
6839
6840         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
6841         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
6842         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6843         New functions; dummy implementations.
6844
6845         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6846         functions, used to implement the multi-tasks mode routines on VxWorks.
6847
6848         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6849         New functions, thin
6850         binding to the VxWorks routines which have changed between VxWorks 5
6851         and 6.
6852         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6853         which are not callable from a RTP.
6854
6855         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6856         implemented for the multi-tasks mode on VxWorks 5 and 6.
6857
6858         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6859
6860         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6861         functions.
6862
6863 2007-08-14  Vincent Celier  <celier@adacore.com>
6864
6865         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
6866         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6867         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
6868         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
6869         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
6870         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6871         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6872         procedure.
6873         (Major_Id_Name): New function.
6874         mlib-tgt.ads/mlib.tgt.adb:
6875         (Library_Major_Minor_Id_Supported): New function, default returns True
6876         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6877         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6878         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6879         Implementation of Library_Major_Minor_Id_Supported returns False
6880         clean.adb:
6881         (Clean_Library_Directory): If major/minor ids are supported, clean all
6882         library files.
6883         Major update of the Project Manager and of the project aware tools,
6884         including gprmake, so that the same sources in the GNAT repository
6885         can be used by gprbuild.
6886
6887 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6888
6889         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6890         (GCC_ZCX_Support): Switch to True.
6891         
6892         * s-intman-solaris.adb (Notify_Exception): Call
6893         Adjust_Context_For_Raise before raising, as expected for signal
6894         handlers in general.
6895         
6896         * s-intman-posix.adb (Notify_Exception): Remove declaration of
6897         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6898         to other implementation bodies.
6899         
6900         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6901         be visible by multiple implementation bodies.
6902         
6903         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6904         only for conditions coming from hardware.
6905         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6906         adjustments to signal context prior to exception raise from signal
6907         handler.
6908         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6909         mode.
6910         Solaris section: (__gnat_adjust_context_for_raise): New function.
6911         Implementation of the machine context adjustments to perform prior to
6912         raise from a signal handler. Version for both sparc and x86.
6913         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6914         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6915         prior to raising as expected for any handler, before possible nested
6916         faults to make sure all the contexts in a chain have been adjusted by
6917         the time we propagate.
6918
6919 2007-08-14  Pascal Obry  <obry@adacore.com>
6920
6921         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6922         (SYSTEM_INFO): New record.
6923         (SetThreadIdealProcessor): New imported routine needed for supporting
6924         task_info pragma on Windows.
6925
6926         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6927         info can be applied to the current host.
6928         (Create_Task): Set the ideal processor if information is present.
6929
6930         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6931         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6932
6933 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6934
6935         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6936         stack size and initial stack pointer value for a given task.
6937         (Enter_Task): Get the stack attributes of the task we are entering and
6938         let the stack checking engine know about them.
6939
6940         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6941         Let the stack-checking engine know about the initial sp value and stack
6942         size associated with the current task.
6943         (Set_Stack_Info): If a stack base has been notified for the current
6944         task, honor it. Fallback to the previous less accurate method otherwise.
6945
6946         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6947
6948 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6949
6950         * sem_ch10.adb: Create a limited view of an incomplete type, to make
6951         treatment of limited views uniform for all visible declarations in a
6952         limited_withed package.
6953         Set flag indicating that a subprogram body for a child unit has a
6954         generated spec.
6955         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6956         separate declaration, remove the unit name from visibility after
6957         compilation, so that environment is clean for subsequent compilations.
6958         (Install_Limited_Context_Clauses): Do not install a
6959         limited_private_with_clause unless the current unit is a body or a
6960         private child unit.
6961         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6962         in the same fashion.
6963         (Install_Limited_Withed_Unit): Do not install a limited with clause if
6964         it applies to the declaration of the current package body.
6965         (Remove_Private_With_Clauses): If there is a regular with_clause for
6966         the unit, delete Private_With_Clause from context, to prevent improper
6967         hiding when processing subsequent nested packages and instantiations.
6968
6969 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
6970
6971         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6972         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6973         representing absolute path names.
6974         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6975
6976         * cstreams.c (__gnat_full_name for VxWorks): Use
6977         __gnat_is_absolute_path to detect whether we need to add the current
6978         directory to normalize the path.
6979
6980 2007-08-14  Javier Miranda  <miranda@adacore.com>
6981
6982         * a-tags.ads, 
6983         a-tags.adb (Displace): Associate a message with the raised CE
6984         exception.
6985         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6986         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6987         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6988         spec.
6989         (Default_Prim_Op_Count): Removed.
6990         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6991         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6992         Remove pragma Inline_Always.
6993
6994         * rtsfind.ads (Default_Prim_Op_Count): Removed
6995         (Max_Predef_Prims): New entity
6996         (RE_Expanded_Name): Removed
6997         (RE_HT_Link): Removed
6998         (RE_Iface_Tag): Remmoved
6999         (RE_Ifaces_Table): Removed
7000         (RE_Interfaces_Array): Removed
7001         (RE_Interface_Data_Element): Removed
7002         (RE_Nb_Ifaces): Removed
7003         (RE_RC_Offset): Removed
7004         (RE_Static_Offset_To_Top): Removed
7005
7006         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
7007         formal.
7008         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
7009         Prim_Op_Count by Max_Predef_Prims.
7010
7011 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7012             Vincent Celier  <celier@adacore.com>
7013
7014         * binde.adb (Elab_All_Links): Remove unnecessary call to
7015         Generic_Separately_Compiled (if a unit satisfies this predicate, there
7016         won't be an associated Afile).
7017         (Elab_All_Links): Fail if a referenced unit cannot be found
7018
7019         * bindgen.adb: 
7020         Fix comments in bindgen regarding consistency checks done in Bcheck:
7021         the checks are made across units within a partition, not across several
7022         partitions.
7023         Fix generation of C binder file for VxWorks.
7024
7025         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
7026         Generic_May_Lack_ALI, more descriptive of the current use of the
7027         predicate, and update documentation.
7028
7029         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
7030         reorganization and documentation update for the case of predefined
7031         library generics (for which we do not reference an Afile).
7032
7033 2007-08-14  Robert Dewar  <dewar@adacore.com>
7034
7035         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
7036         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
7037         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
7038         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
7039         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
7040         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
7041         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
7042         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
7043         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
7044         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
7045         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
7046         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
7047         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
7048         g-altcon.adb: Minor reformatting
7049
7050         ada-tree.h: Delete empty line.
7051
7052         ali.ads: Minor reformatting
7053         Clarification of comments.
7054         Minor spelling correction
7055
7056         * exp_dbug.adb: Add Warnings Off to suppress new warning
7057
7058         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
7059         formal
7060
7061         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
7062         value
7063
7064         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
7065
7066         * a-textio.ads: Reorder the standard input/output/error declarations
7067         for consistency.
7068
7069         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
7070
7071         * par-ch2.adb: Recognize RM specially in errout
7072         Change 'R'M to RM in all error messages
7073
7074         * scng.adb: Recognize RM specially in errout
7075
7076         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
7077         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
7078
7079         * s-direio.adb: Add missing routine header box.
7080
7081         * sem_attr.ads: Add ??? comments
7082
7083         * sem_eval.adb: Recognize RM specially in errout
7084         Change 'R'M to RM in all error messages
7085
7086         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
7087
7088         * s-tasinf.ads: Fix minor comment typo.
7089
7090         * a-cihama.adb: Minor comment addition
7091
7092         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
7093         formal
7094
7095         * s-tasinf-tru64.ads: Fix minor comment typo.
7096
7097         * itypes.ads: Comment update.
7098
7099         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
7100         anymore.
7101
7102         * argv.c: Added protection against null gnat_argv and gnat_envp.
7103
7104         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
7105         warning message when Tolerate_Consistency_Errors is True.
7106
7107         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
7108         Any_Id, as this subprogram is only applicable to *type* entities (it
7109         sets RM_Size). Instead initialize just Esize and Alignment.
7110
7111 2007-08-14  Bob Duff  <duff@adacore.com>
7112
7113         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
7114         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
7115         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
7116         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
7117         a-coorse.ads (Next): Applied pragma Inline.
7118         Make all Containers packages Remote_Types (unless they are already
7119         Pure).
7120         (Previous): applied pragma Inline
7121         (Elements_Type): is now a record instead of an array
7122
7123 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7124
7125         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
7126         of Set_Item.
7127         (Set_Item): When the new item is an element of the currently allocated
7128         table passed by reference, save a copy on the stack if we're going
7129         to reallocate. Also, in Table.Set_Item, make sure we test the proper
7130         variable to determine whether to call Set_Last.
7131
7132         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
7133         symbols-vms.adb, symbols-processing-vms-alpha.adb,
7134         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
7135         some occurrences of the pattern
7136            T.Increment_Last;
7137            T.Table (T.Last) := Value;
7138         with a cleaner call to
7139            T.Append (Value);
7140
7141 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7142             Gary Dismukes  <dismukes@adacore.com>
7143             Thomas Quinot  <quinot@adacore.com>
7144
7145         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
7146         derived type with interface progenitors use the analyzed formal as the
7147         parent of the actual, to create renamings for all the inherited
7148         operations in Derive_Subprograms.
7149         (Collect_Previous_Instances): new procedure within of
7150         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
7151         unit being loaded, to ensure that the generation of global symbols is
7152         consistent in different compilation modes.
7153         (Is_Tagged_Ancestor): New function testing the ancestor relation that
7154         takes progenitor types into account.
7155         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
7156         traversing over the primitives of the formal and actual types to locate
7157         any abstract subprograms of the actual type that correspond to a
7158         nonabstract subprogram of the formal type's ancestor type(s), and issue
7159         an error if such is found.
7160         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
7161         Instantiate_Package_Body, Instantiate_Subprogram_Body):
7162         Remove bogus guard around calls to Inherit_Context.
7163         (Reset_Entity): If the entity is the selector of a selected component
7164         that denotes a named number, propagate constant-folding to the generic
7165         template only if the named number is global to the generic unit.
7166         (Set_Instance_Env): Only reset the compilation switches when compiling
7167         a predefined or internal unit.
7168
7169 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7170
7171         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
7172         parameter to determine whether operation applies to the prefix.
7173         (Complete_Object_Operation): If actual has an access type and
7174         controlling formal is not an in_parameter, reject the actual if it is
7175         an access_to_constant type.
7176         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
7177         type, the candidate operations are found in the scope of declaration of
7178         the type, because the type has no primitive subprograms.
7179         (Analyze_Selected_Component): If prefix is class-wide, and root type is
7180         a private extension, only examine visible components before trying to
7181         analyze as a prefixed call.
7182         Change Entity_List to Type_To_Use, for better readability.
7183         (Has_Fixed_Op): Use base type when checking whether the type of an
7184         operator has a user-defined multiplication/division
7185         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
7186         user-defined operators are available for fixed-point types.
7187
7188 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7189             Ed Schonberg  <schonberg@adacore.com>
7190
7191         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
7192         formal At_Any_Place indicating, when True, that we want to test for
7193         availability of the stream attribute at any place (as opposed to the
7194         current visibility context only).
7195         (Missing_Read_Write_Attributes): A stream attribute is missing for the
7196         purpose of enforcing E.2.2(8) only if it is not available at any place.
7197         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
7198         when checking the legality of an extension aggregate in a preelaborable
7199         package. Treat the literal null as a valid default expression in a
7200         component declaration for a type with preelaborable initialization.
7201         A limited interface is a legal progenitor for the designated type of a
7202         remote access to class-wide type.
7203
7204 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7205             Ed Schonberg  <schonberg@adacore.com>
7206
7207         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
7208         reference): Use correct entity as denoted entity for the selector of
7209         the rewritten node.
7210         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
7211         setting the Referenced_As_LHS flag for entities that are implicitly
7212         dereferenced.
7213         (Find_Type): If the type is an internally generated incomplete type,
7214         mark the full view as referenced, to prevent spurious warnings.
7215         (Find_Selected_Component, Has_Components): Handle properly non-limited
7216         views that are themselves incomplete types.
7217         Handle interfaces visible through limited-with clauses.
7218         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
7219         subprogram generic actual for which we have generated a renaming.
7220         Warn when the renaming introduces a homonym of
7221         the renamed entity, and the renamed entity is directly visible.
7222
7223 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7224             Hristian Kirtchev  <kirtchev@adacore.com>
7225
7226         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
7227         appear in the subtree to the current allocator if it is not a static
7228         coextension.
7229         (Resolve_Allocator): Perform cleanup if resolution has determined that
7230         the allocator is not a coextension.
7231         (Resolve): Skip an interpretation hidden by an abstract operator only
7232         when the type of the interpretation matches that of the context.
7233         (Resolve): When looping through all possible interpretations of a node,
7234         do not consider those that are hidden by abstract operators.
7235         (Resolve_Actuals): When verifying that an access to class-wide object
7236         is an actual  for a controlling formal, ignore anonymous access to
7237         subprograms whose return type is an access to class_wide type.
7238         (Resolve_Slice): If the prefix of the slice is a selected component
7239         whose type depends on discriminants, build its actual subtype before
7240         applying range checks on the bounds of the slice.
7241         (Valid_Conversion): In an instance or inlined body, compare root types,
7242         to prevent anomalies between private and public views.
7243         (Resolve): Improve error message for ambiguous fixed multiplication
7244         expressions that involve universal_fixed multiplying operations.
7245
7246 2007-08-14  Javier Miranda  <miranda@adacore.com>
7247             Hristian Kirtchev  <kirtchev@adacore.com>
7248
7249         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
7250         location to allow the correct generation of errors in case of
7251         restrictions applied to the expanded code.
7252         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
7253         function if the condition does not reference them.
7254         (Expand_Entry_Body_Declarations): Mark the index constant as having a
7255         valid value.
7256
7257 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7258             Pablo Oliveira  <oliveira@adacore.com>
7259
7260         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
7261         typecode parameters for a union (in a variant record), remove
7262         extraneous layer of Any wrapping for member label.
7263         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
7264         elabration statements, register the package with the name server
7265         at the beginning, not at the end, of the elaboration statements so
7266         that they can create remote access to subprogram values that designate
7267         remote subprograms from the package.
7268
7269 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7270
7271         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
7272         values to compute the number of seconds since the Unix Epoc in order to
7273         account for Daylight Savings Time. Perform special processing for dates
7274         that are earlier than the Unix Epoc to obtain a negative number.
7275
7276 2007-08-14  Emmanuel Briot  <briot@adacore.com>
7277
7278         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
7279         switches.
7280
7281 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
7282
7283         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
7284         binder-generated file is not in Ada.
7285         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
7286         recorded in the ALI file.
7287         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
7288
7289 2007-08-14  Vincent Celier  <celier@adacore.com>
7290
7291         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
7292         (Output_Source): Do nothing if parameter is No_Sdep_Id
7293
7294         * make.adb (Gnatmake): Do not rebuild an archive simply because a
7295         shared library it imports has a later time stamp.
7296         (Check): Resolve the symbolic links in the path name of the object
7297         directory.
7298         Check that the ALI file is in the correct object directory
7299         Check if a file name does not correspond to the mapping of units
7300         to file names.
7301         (Display_Version): New procedure
7302         (Initialize): Process switches --version and --help
7303         Use type Path_Name_Type for path name
7304
7305 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
7306
7307         * impunit.adb: Re-organize System.Random_Numbers and
7308         GNAT.Random_Numbers and add to builds.
7309
7310         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
7311
7312         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
7313
7314         * a-assert.ads, a-assert.adb: New files.
7315
7316 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
7317
7318         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
7319         if AAMP_On_Target is True, then the size of the type encompasses two
7320         addresses (a static link and a subprogram address), except in the case
7321         of library-level access types.
7322
7323 2007-08-14  Vincent Celier  <celier@adacore.com>
7324
7325         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7326         writing the line.
7327         (Write_Eol_Keep_Blanks): New procedure to write a line, including
7328         possible trailing spaces.
7329         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7330
7331 2007-08-14  Javier Miranda  <miranda@adacore.com>
7332
7333         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7334         null-excluding access types.
7335
7336 2007-08-14  Javier Miranda  <miranda@adacore.com>
7337
7338         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7339         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7340         of private types add missing check on matching interfaces in the
7341         partial and full declarations.
7342         (Analyze_Protected_Type): Code cleanup.
7343         (Analyze_Task_Type): Code cleanup.
7344
7345 2007-08-14  Javier Miranda  <miranda@adacore.com>
7346
7347         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7348         generated interface thunk.
7349
7350 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7351
7352         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7353         obsolescent warning on application of 'Class to an incomplete type.
7354
7355         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7356         prevent obsolescent warning on application of 'Class to an incomplete
7357         type.
7358
7359 2007-08-14  Pascal Obry  <obry@adacore.com>
7360
7361         * s-fileio.adb (Is_Open): Add check for usability of the underlying
7362         file stream.
7363
7364 2007-08-14  Cyrille Comar  <comar@adacore.com>
7365
7366         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7367         since it is potentially used in cases implying double finalization of
7368         the same object.
7369
7370 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
7371
7372         * s-tasini.adb (Get_Stack_Info): Move this function to
7373         System.Soft_Links.Tasking because it is common to the full and the
7374         restricted run times.
7375         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7376         in SSL.Tasking.Init_Tasking_Soft_Links.
7377
7378         * s-solita.adb (Get_Stack_Info): Function moved from
7379         System.Tasking.Initialization because it is common to the full and the
7380         restricted run times.
7381         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7382
7383 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7384
7385         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7386         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7387         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7388         parameter.
7389
7390         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7391         guard to 12K.
7392
7393 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
7394
7395         * s-veboop.adb (SU): New named number initialized to
7396         System.Storage_Unit.
7397         (True_Val): The initialization expression is revised to use SU (=
7398         Storage_Unit) rather than assuming 8 for the component size of an
7399         unpacked Boolean array.
7400
7401 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7402
7403         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7404
7405         * tb-ivms.c: New file.
7406
7407         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7408
7409 2007-08-14  Geert Bosch  <bosch@adacore.com>
7410
7411         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7412         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7413         Add required linker pragmas for automatically linking with the gnalasup
7414         linear algebra support library, and the systems math library.
7415         Rename cdot to cdotu and zdot to zdotu.
7416         Update header comment to describe purpose of package.
7417
7418 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7419
7420         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7421         an explicitly specified Associated_Final_Chain, use that list.
7422         (Expand_N_Package_Body): Build dispatch tables of library level tagged
7423         types.
7424         (Expand_N_Package_Declaration): Build dispatch tables of library level
7425         tagged types. Minor code cleanup.
7426
7427 2007-08-14  Vincent Celier  <celier@adacore.com>
7428
7429         * gnatchop.adb (Terminate_Program): Remove exception and use
7430         Types.Terminate_Program instead.
7431
7432         * osint.ads, osint.adb (Current_Exit_Status): New global variable
7433         (Find_Program_Name): Added protection against empty name.
7434         (OS_Exit_Through_Exception): New procedure
7435
7436         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7437         (OS_Exit_Default): New procedure that contains the previous
7438         implementation of procedure OS_Exit.
7439         (Final_Value): Remove obsolete Interix stuff.
7440
7441 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7442
7443         * g-socket.ads: Reorganize example code so that it also works on
7444         Windows XP.
7445
7446 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7447
7448         * g-trasym.ads: AIX now supports symbolic backtraces.
7449
7450 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7451
7452         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7453         units being loaded to detect circularities. A circularity may be
7454         present even if the current chain of pending units to load starts from
7455         a limited_with_clause.
7456
7457         * lib-load.ads: Change profile of Load_Unit to use a with_clause
7458         rather than a boolean flag, in order to detect circularities in
7459         with_clauses.
7460
7461         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7462         than propagating the From_Limited_With flag, in order to handle
7463         properly circularities involving with_clauses.
7464
7465 2007-08-14  Nicolas Setton  <setton@adacore.com>
7466
7467         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7468         warnings.
7469
7470 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7471
7472         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7473         to build for libgnala.
7474         libgnat: Add rules to build libgnala.a
7475         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7476         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7477         Add s-osinte-vxworks-kernel.adb to the target pairs of the
7478         kernel run-time lib for VxWorks 6, which would provide a different
7479         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7480         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7481         running ZCX by default.
7482         Add g-sttsne-locking to LynxOS version.
7483         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7484         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7485
7486         * system-darwin-x86.ads: New file.
7487
7488         * Make-lang.in: Delete files before copying onto them, so if they are
7489         read-only, the copy won't fail.
7490         Update dependencies
7491
7492 2007-08-14  Pascal Obry  <obry@adacore.com>
7493
7494         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7495         naming scheme.
7496
7497 2007-08-14  Vincent Celier  <celier@adacore.com>
7498
7499         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7500         (Gcc): Initialize Gcc_Name at the first call
7501
7502 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7503
7504         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7505         with_clauses of the enclosing unit when analyzing the package
7506         specification of a nested instance.
7507
7508 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7509
7510         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7511         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7512         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7513         layout of N_Allocator.
7514
7515 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7516
7517         * rtsfind.adb (Check_RPC): Add PCS version check.
7518
7519         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7520         (Gnat_Free_Software): New function.
7521
7522         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7523         the PCS_Version value from s-parint, used to check that it is consistent
7524         with what exp_dist expects.
7525
7526         * s-parint.ads (PCS_Version): New entity for checking consistency
7527         between exp_dist and PCS.
7528
7529         * gen-soccon.c: (SO_REUSEPORT): New constant.
7530
7531 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7532
7533         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7534         variable Sub_Second to Duration in order to accomodate a larger range
7535         of arithmetic operations.
7536
7537 2007-08-14  Bob Duff  <duff@adacore.com>
7538
7539         * g-sttsne-locking.ads: Move comments from spec to body.
7540         * g-sttsne-locking.adb: Move comments from spec to body.
7541         * g-sttsne-vxworks.ads: Removed.
7542         * g-sttsne-vxworks.adb: Removed.
7543
7544 2007-08-11  Ian Lance Taylor  <iant@google.com>
7545
7546         * misc.c (gnat_get_alias_set): Change return type to
7547         alias_set_type.
7548
7549 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7550
7551         * decl.c, utils2.c: Fix whitespace in last change.
7552
7553 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7554
7555         * decl.c (compare_field_bitpos): Constify.
7556         * utils2.c (compare_elmt_bitpos): Likewise.
7557
7558 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
7559
7560         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
7561         anonymous access type.
7562         (pthread_sigmask): Now take an access sigset_t.
7563
7564 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
7565
7566         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7567         
7568 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
7569
7570         PR tree-optimization/25737
7571         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7572
7573 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7574
7575         * trans.c (Attribute_to_gnu): When subtracting an
7576         offset from a pointer, use POINTER_PLUS_EXPR with
7577         NEGATE_EXPR instead of MINUS_EXPR.
7578         (gnat_to_gnu): Likewise.
7579         * utils.c (convert): When converting between
7580         thin pointers, use POINTER_PLUS_EXPR and sizetype
7581         for the offset.
7582         * utils2.c (known_alignment): POINTER_PLUS_EXPR
7583         have the same semantics as PLUS_EXPR for alignment.
7584         (build_binary_op): Add support for the semantics of
7585         POINTER_PLUS_EXPR's operands.
7586         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7587
7588 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
7589
7590         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7591         of get_signed_or_unsigned_type.
7592         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7593
7594 2007-06-11  Bob Duff  <duff@adacore.com>
7595             Thomas Quinot  <quinot@adacore.com>
7596
7597         * g-stsifd-sockets.adb (Create): Work around strange behavior of
7598         'bind' on windows that causes 'connect' to fail intermittently, by
7599         retrying the 'bind'.
7600         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7601
7602 2007-06-10  Duncan Sands  <baldrick@free.fr>
7603
7604         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7605         than to void, for the fields when making a new fat pointer type.
7606         (gnat_substitute_in_type): Now substitute_in_type.
7607         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
7608         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7609         * utils.c (update_pointer_to): Update fat pointers by updating the
7610         dummy node pointers used for the fields.
7611
7612 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7613             Bob Duff  <duff@adacore.com>
7614
7615         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7616         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
7617         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
7618         constant Thread_Blocking_IO, always True by default, set False
7619         on a per-runtime basis.
7620         (Need_Netdb_Buffer): New constant.
7621
7622         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7623         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7624         files.
7625
7626         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7627         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7628         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7629         child package Task_Safe_NetDB
7630         (Host_Error_Messages): Add stub body.
7631         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7632
7633         * g-soccon-mingw.ads: Add Windows-specific constants.
7634         (Need_Netdb_Buffer): New constant.
7635         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7636         wrapper and import inet_addr(3) from the standard sockets library
7637         directly instead.
7638         (In_Addr): Add alignment clause.
7639         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7640
7641 2007-06-06  Robert Dewar  <dewar@adacore.com>
7642
7643         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7644         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7645         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7646         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7647         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7648         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7649         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7650         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7651         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7652         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7653         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7654         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7655         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7656         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7657         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7658         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7659         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7660         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7661         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7662         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7663         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7664         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7665         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7666         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7667         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7668         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7669         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7670         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7671         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7672         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7673         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7674         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7675         Unchecked_* by Ada.Unchecked_*
7676
7677 2007-06-06  Robert Dewar  <dewar@adacore.com>
7678
7679         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7680         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7681         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7682         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7683         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7684         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7685
7686         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7687         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7688         s-tasloc.adb, s-tasloc.ads: New files.
7689
7690 2007-06-06  Bob Duff  <duff@adacore.com>
7691
7692         * g-expect-vms.adb: 
7693         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7694         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7695         (Send_Signal, Close): Raise Invalid_Process if the process id is
7696         invalid.
7697         (Pattern_Matcher_Access): Is now a general access type to be able to
7698         use aliased string.
7699
7700 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7701             Arnaud Charlet  <charlet@adacore.com>
7702
7703         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7704         (SIGEMT is now used instead of SIGTERM on AIX).
7705
7706         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7707         (Time_Slice_Supported): Set to True.
7708         Use SIGEMT instead of SIGTERM as SIGADAABORT.
7709
7710 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7711
7712         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7713         (Time, Time)): Use To_Relative_Time rather than manual calculation to
7714         express the bounds of Duration as Time. Raise Time_Error when the
7715         result is greater or equal to the higher bound of Duration (on the
7716         margin case).
7717         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7718         Ada_High_And_Leaps.
7719         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7720         Ada_High_And_Leaps.
7721         ("-" (Time, Time)): Reorder code.
7722         (All_Leap_Seconds): Removed.
7723         (Arithmetic_Operations.Add): Remove sign related kludge.
7724         (Arithmetic_Operations.Difference): Control the leaps seconds processing
7725         with flag Leap_Support.
7726         (Arithmetic_Operations.Subtract): Remove sign related kludge.
7727         (Check_Within_Time_Bounds): New procedure.
7728         (Clock): Control the leap seconds processing with flag Leap_Support.
7729         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7730         (Formatting_Operations.Split): Control the leap seconds processing with
7731         flag Leap_Support.
7732         (Formatting_Operations.Time_Of): Control the leaps seconds processing
7733         with flag Leap_Support. Adjust the year, month and day (if applicable)
7734         when the value of day seconds designates a new day.
7735         (Split): Use parameter associations for better readability. Integrate
7736         flag Is_Ada_05.
7737         (Time_Of): Use parameter associations for better readability. Integrate
7738         flag Is_Ada_05.
7739
7740         * a-calfor.adb (Split): Use parameter associations for better
7741         readability. Integrate flag Is_Ada_05.
7742         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7743         better readability. Integrate flag Is_Ada_05.
7744
7745 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7746
7747         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
7748         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
7749         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
7750         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
7751         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
7752         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
7753         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
7754         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
7755         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
7756         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7757         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7758         time when entering this routine to detect a backward clock setting
7759         (manual setting or DST adjustment), to avoid waiting for a longer delay
7760         than needed.
7761         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7762         Remove handling of deferred priority change, and replace by setting the
7763         task priority directly, as required by AI-188.
7764         Update comments.
7765         (Max_Task_Image_Length): New constant.
7766         Replace Warnings (Off) by Unreferenced pragma, cleaner.
7767         (Dynamic_Priority_Support): Removed, no longer needed.
7768         (Poll_Base_Priority_Change): Ditto.
7769         (Set_Ceiling): Add this procedure to change the ceiling priority
7770         associated to a lock. This is a dummy implementation because dynamic
7771         priority ceilings are not supported by the underlying system.
7772
7773         * a-dynpri.adb (Set_Priority): Take into account case where Target is
7774         accepting a RV with its priority boosted.
7775         Remove handling of deferred priority change, and replace by setting the
7776         task priority directly, as required by AI-188.
7777
7778         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7779         Succeeded = True.
7780         Remove handling of deferred priority change, and replace by setting the
7781         task priority directly, as required by AI-188.
7782         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7783         of Self_Id earlier.
7784
7785         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7786         (Poll_Base_Priority_Change): Removed.
7787         Code clean up: use SSL.Current_Target_Exception.
7788
7789         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7790         to run as this is a potentially dispatching point.
7791         (Call_Synchronous): Use Local_Defer_Abort.
7792         (Callable): Relax assertion.
7793         (Selective_Wait): Relax assertion in case abort is not allowed.
7794         Remove handling of deferred priority change, and replace by setting the
7795         task priority directly, as required by AI-188.
7796
7797         * s-tasuti.adb (Make_Passive): Adjust assertions.
7798         Remove handling of deferred priority change, and replace by setting the
7799         task priority directly, as required by AI-188.
7800
7801 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7802
7803         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7804         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
7805         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
7806         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
7807         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
7808         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
7809         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
7810         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
7811         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7812         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7813         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7814         This patch changes the largest non-binary modulus from 2**31-1 to
7815         2**32-1.
7816         (Compiler_System_Version): Removed, no longer used.
7817         Clean up system files by removing flags only used on a single target.
7818         Also remove obsolete flags, only used during bootstrap from system.ads
7819         (Address): Add a pragma Preelaborable_Initialization.
7820
7821         * system-aix.ads:  Ditto.
7822         (GCC_ZCX_Support): Set to true.
7823         Update priority range on AIX and map Ada priorities to target
7824         priorities appropriately for different scheduling policies.
7825
7826         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7827
7828 2007-06-06  Vincent Celier  <celier@adacore.com>
7829
7830         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7831         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7832
7833         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
7834         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
7835         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
7836         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
7837         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7838         MLib.Tgt, containing the default versions of the exported subprograms.
7839         For each platform, create a specific version of the body of new child
7840         package MLib.Tgt.Specific that contains only the body of subprograms
7841         that are different from the default.
7842         (Archive_Builder_Append_Options): New function.
7843
7844 2007-06-06  Matthew Gingell  <gingell@adacore.com>
7845
7846         * s-osinte-aix.adb: Map Ada priorities to target priorities
7847         appropriately for different scheduling policies.
7848
7849 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7850
7851         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7852         its C counterpart.
7853         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7854         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
7855
7856 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
7857
7858         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7859         Noop on VMS, added for interface commonality.
7860
7861 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7862             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7863             Olivier Hainque  <hainque@adacore.com>
7864
7865         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7866         renamed expression of a full renaming at toplevel.
7867         (gnat_to_gnu_entity, case object): If not defining, do not look inside
7868         the values the constant is initialized to if it is an N_Allocator.
7869         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7870         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7871         (make_aligning_type): Accept an extra ROOM argument for storage to be
7872         made available before the aligned field, and an extra BASE_ALIGN
7873         argument for callers to pass the alignment guaranteed to be honored for
7874         the whole aligning object. Avoid call to finish_record_type, which only
7875         interferes with the sizes we want to set.
7876         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7877         make_aligning_type for super-aligned objects on stack.
7878         (components_to_record): Pass the adjusted size of the type when creating
7879         fields in the qualified union for the variant part.
7880         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7881         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7882         packed array type.
7883         (maybe_pad_type): Set TYPE_USER_ALIGN.
7884         (make_aligning_type): Likewise.
7885         ALIGN argument is unsigned int.
7886         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7887         (gnat_to_gnu_param): Likewise, for parameters.
7888         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7889         if it is constant and stems from a function call.
7890         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7891         of the record is specified.  Adjust accordingly.
7892         (adjust_packed): New static function.
7893         (gnat_to_gnu_field): Use it to adjust the packedness setting.
7894         (components_to_record): Likewise.
7895         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7896         side-effects if the object is deemed constant.
7897         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7898         type instead of merely finalizing it.  Tidy.
7899         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7900         <E_Access_Type>: Likewise.
7901         (defer_debug_incomplete_list): Rename to defer_finalize_list.
7902         (defer_debug_level): Delete.
7903         (gnat_to_gnu_entity) <debug_deferred>: Likewise
7904         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7905         type.
7906         <E_Record_Type>: Do not explicitly defer finalizing the type.
7907         Adjust for write_record_type_debug_info renaming.
7908         <E_Subprogram_Type>: Likewise.
7909         Finalize deferred types right after deferred incomplete types are
7910         expanded.
7911         (rest_of_type_decl_compilation): New global function.
7912         (components_to_record): Rename defer_debug parameter to do_not_finalize.
7913         (components_to_record): Propagate the packedness to the fields of the
7914         qualified union type if there is a variant part.
7915         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7916         instead of inline code to adjust the XUT field offsets.
7917         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7918         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7919         and write the debug info if the type derives from a discriminated one.
7920         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7921         <E_Array_Subtype>: Likewise.
7922         <E_String_Literal_Subtype>: Likewise.
7923         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7924         an alignment clause.
7925         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7926         before giving warning.
7927         (prepend_one_attribute_to): New function, helper to prepend an attribute
7928         to an attribute list.
7929         (gnat_to_gnu_entity) <E_Procedure>: Use it.
7930         (prepend_attributes): Likewise.
7931         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7932         <E_Array_Type>: Declare the padding type for the element type, if any.
7933         <E_Array_Subtype>: Likewise.
7934         (defer_limited_with): New variable.
7935         (Gigi_Equivalent_Type): New function.
7936         (gnat_to_gnu_entity): Use it at start and use result throughout.
7937         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7938         Gigi_Equivalent_Type, support Limited_With, allow two levels of
7939         indirection, precompute if unconstrained array to simplify logic, and
7940         use defer_limited_with to defer elaboration of some types from limited
7941         with.
7942         (finalize_from_with_types): New function.
7943
7944 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
7945             Eric Botcazou  <ebotcazou@adacore.com>
7946             Tristan Gingold  <gingold@adacore.com>
7947             Olivier Hainque  <hainque@adacore.com>
7948
7949         * trans.c (Identifier_to_gnu): Change test for deferred constant by
7950         adding guard that the entity is an E_Constant before testing presence
7951         of Full_view (and remove unnecessary test that entity is not a type).
7952         For a CONST_DECL used by reference, manually retrieve
7953         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
7954         (struct language_function): Move from utils.c to here.
7955         (struct parm_attr): New structure.
7956         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7957         (f_parm_attr_cache): New macro.
7958         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7959         expressions for the 'First, 'Last and 'Length attributes of the
7960         unconstrained array IN parameters.
7961         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7962         Allocate the information structure for the function earlier, as well
7963         as the language-specific part.
7964         If the parameter attributes cache has been populated, evaluate the
7965         cached expressions on entry.
7966         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
7967         N_Procedure_Call_Statement and N_Indexed_Component.
7968         (Pragma_to_gnu): Translate inspection_point to an asm statement
7969         containaing a comment and a reference to the object (either its address
7970         for BLKmode or its value).
7971         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7972         to go to DECL_INITIAL. Together with the size constraint relaxation
7973         in create_var_decl, enlarges the set of situations in which an
7974         identifier may be used as an initializer without implying elaboration
7975         code.
7976         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7977         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7978         node.
7979         (maybe_stabilize_reference): Remove lvalues_only parameter.
7980         (gnat_stabilize_reference): Adjust for above change.
7981         (gnat_to_gnu): Do not set location information on the result
7982         if it is a reference.
7983         (add_cleanup): Add gnat_node parameter and set the location of the
7984         cleanup to it.
7985         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7986         (Exception_Handler_to_gnu_zcx): Likewise.
7987         (gigi): Remove the cgraph node if the elaboration procedure is empty.
7988         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7989         the former right after the latter.
7990         (start_stmt_group): Make global.
7991         (end_stmt_group): Likewise.
7992         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7993         vars.
7994         (gnu_program_error_label_stack): Likewise.
7995         (gigi): Initialize them.
7996         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7997         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7998         New cases.
7999         (push_exception_label_stack): New function.
8000         (takes_address): New function.
8001
8002         * utils.c (struct language_function): Move to trans.c from here.
8003         (unchecked_convert): Do not wrap up integer constants in
8004         VIEW_CONVERT_EXPRs.
8005         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
8006         the latter for aggregate types, unexpected by later passes, and relax an
8007         arbitrary size constraint on the former.
8008         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
8009         to compare the sizes.
8010         (convert_vms_descriptor): When converting to a fat pointer type, be
8011         prepared for a S descriptor at runtime in spite of a SB specification.
8012         (shift_unc_components_for_thin_pointers): New function.
8013         (write_record_type_debug_info): For variable-sized fields, cap the
8014         alignment of the pointer to the computed alignment.
8015         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
8016         If REP_LEVEL is 2, do not compute the sizes.
8017         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
8018         (build_unc_object_type): Likewise.
8019         (declare_debug_type): New function.
8020
8021         * ada-tree.def: USE_STMT: removed (not emitted anymore).
8022
8023         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
8024         no statement is expandable anymore.
8025         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
8026         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
8027         when the user requested it explicitely.
8028         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
8029         to 0 for Ada.
8030         (get_alias_set): Return alias set 0 for a type if
8031         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
8032
8033         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
8034         (DECL_FUNCTION_STUB): New accessor macro.
8035         (SET_DECL_FUNCTION_STUB): New setter macro.
8036
8037         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
8038
8039         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
8040         declarations.
8041
8042 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
8043
8044         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
8045         Rename to Abort_Task_Interrupt to be able to keep the same interface
8046         as the rest of the targets.
8047
8048         * s-osinte-vxworks.ads s-osinte-vxworks.adb
8049         (To_VxWorks_Priority): Remove explicit "in" mode indicator
8050
8051         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
8052         New files.
8053
8054 2007-06-06  Robert Dewar  <dewar@adacore.com>
8055
8056         * a-chahan.ads: Remove obsolescent pragmas
8057
8058         * a-chlat1.ads: Minor reformatting
8059
8060 2007-06-06  Robert Dewar  <dewar@adacore.com>
8061
8062         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
8063         for Errout
8064
8065         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
8066         implementation
8067
8068         * errout.ads (Finalize): Changed interface
8069         (Output_Messages): New procedure
8070         (Compilation_Errors): New Interface
8071
8072         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
8073         Finalize/Output_Messages interface for Errout
8074         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
8075         Errout.
8076
8077 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8078             Olivier Hainque  <hainque@adacore.com>
8079             Robert Dewar  <dewar@adacore.com>
8080
8081         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
8082         check.
8083         (Raise_Current_Excep): Call Debug_Raise_Exception just before
8084         propagation starts, to let debuggers know about the event in a reliable
8085         fashion.
8086         (Local_Raise): Moved to System.Exceptions
8087         More convenient to have this as a separate unit
8088
8089         * s-except.adb, s-except.ads: New files.
8090
8091         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
8092         Debug_Unhandled_Exception in System.Exceptions where it belongs
8093         together with a couple of other debug helpers.
8094         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
8095         the former Unhandled_Exception.
8096
8097         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
8098         (Warn_No_Exception_Propagation): New procedure
8099         (Warn_If_No_Propagation): Rewritten for new warning generation
8100         (Expand_Exception_Handlers): New warning generation
8101         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
8102         (Add_Exception_Label): Use Special_Exception_Package_Used for test
8103         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
8104         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
8105         even if restriction is set (makes life easier in Check_Returns)
8106         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
8107         checking exception identities.
8108         (Expand_Local_Exception_Handlers): Do not optimize when all others case
8109         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
8110         block for handler (used by Check_Returns)
8111         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
8112         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
8113         remove all exception handlers when optimizing local raise statements.
8114         (Find_Local_Handler): Use Get_Renamed_Entity
8115         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
8116         marked analyzed after expanding exception handlers, do not generate
8117         redundant cleanup actions, because they have been constructed already.
8118
8119 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8120
8121         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
8122         presence of this categorization pragma is mandated by the language.
8123         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
8124         for this type.
8125
8126 2007-06-06  Vincent Celier  <celier@adacore.com>
8127             Robert Dewar  <dewar@adacore.com>
8128
8129         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
8130         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
8131         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
8132         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
8133         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
8134         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
8135         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
8136         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
8137         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
8138         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
8139         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
8140         ali.ads, ali.adb: 
8141         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
8142         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
8143         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
8144         Use variables of types File_Name_Type and Unit_Name_Type in error
8145         messages.
8146         (Get_Name): Add parameter Ignore_Special, and set it reading file name
8147         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
8148         here.
8149         Define flags Flag217-Flag230 with associated subprograms
8150         (Flag_Word5): New record type.
8151         (Flag_Word5_Ptr): New access type.
8152         (To_Flag_Word5): New unchecked conversion.
8153         (To_Flag_Word5_Ptr): Likewise.
8154         (Flag216): New function.
8155         (Set_Flag216): New procedure.
8156
8157 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8158
8159         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
8160         instead of 'Size.
8161
8162         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
8163
8164 2007-06-06  Javier Miranda  <miranda@adacore.com>
8165
8166         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
8167         the package.
8168         (Object_Specific_Data_Array): This is now internal to the package.
8169         (Object_Specific_Data): This is now internal to the package.
8170         (Select_Specific_Data_Element): This is now internal to the package.
8171         (Select_Specific_Data_Array): This is now internal to the package.
8172         (Select_Specific_Data): This is now internal to the package.
8173         (Offset_To_Top_Function_Ptr): This is now public.
8174         (To_Offset_To_Top_Function_Ptr): Removed.
8175         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
8176          local to subprogram Offset_To_Top.
8177         (Predefined_DT): Removed.
8178         (Typeinfo_Ptr): Removed.
8179         (OSD): This function is now internal to this package.
8180         (SSD): This function is now internal to this package.
8181         (DT): New function that displaces the pointer to the table of primitives
8182          to get access to the enclosing wrapper record.
8183         (IW_Membership): Code cleanup.
8184         (Offset_To_Top): Code cleanup.
8185         (Predefined_DT): Removed.
8186         (Register_Interface_Tag): Removed.
8187         (Set_Interface_Table): Removed.
8188         (Set_Offset_Index): Removed.
8189         (Set_Offset_To_Top): Code cleanup.
8190         (Set_OSD): Removed.
8191         (Set_Signature): Removed.
8192         (Set_SSD): Removed.
8193         (Set_Tagged_Kind): Removed.
8194         (Typeinfo_Ptr): Removed.
8195         (TSD): Removed.
8196         (Displace): Add missing check on null actual.
8197
8198         * exp_disp.ads, exp_disp.adb
8199         (Select_Expansion_Utilities): Removed.
8200         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
8201         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
8202         the interface requires a new parameter.
8203         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
8204         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
8205         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
8206         Done to remove package Select_Expansion_Utilities.
8207         (Make_DT): New implementation for statically allocated dispatch tables.
8208         (Make_Secondary_DT): Moved to the scope of Make_DT.
8209         (Register_Primitive): Code cleanup plus incoporate the use of the new
8210         function DT_Address_Attribute.
8211         (Expand_Interface_Thunk): The profile of this subprogram has been
8212         changed to return the Thunk_Id and the corresponding code.
8213         (Fill_DT_Entry): Removed. Its functionality is now provided by
8214         subprogram Register_Primitive.
8215         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
8216         subprogram Register_Primitive.
8217         (Register_Primitive): New subprogram that incorporates the previous
8218         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
8219         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
8220         was only required to call Make_DT_Access_Action, which is now removed.
8221         (Ada_Actions): Removed
8222         (Action_Is_Proc): Removed
8223         (Action_Nb_Arg): Removed
8224         Replace all the calls to Make_DT_Access_Action by direct calls to
8225         Make_Procedure_Call_Statement or Make_Function_Call.
8226         (Set_DTC_Entity_Value): New subprogram.
8227         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
8228         (Expand_Interface_Thunk): Add missing support for primitives that are
8229         functions with a controlling result (case in which there is no need
8230         to generate the thunk).
8231
8232         * exp_atag.ads, exp_atag.adb
8233         (Build_DT): New subprogram that displaces the pointer to reference the
8234         base of the wrapper record.
8235         (Build_Typeinfo_Offset): Removed.
8236         (RTE_Tag_Node): Removed.
8237         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
8238         (Build_Get_RC_Offset): Removed.
8239         (Build_Inherit_Predefined_Prims): Removed.
8240         (Build_Inherit_TSD: Removed.
8241         (Build_New_TSD): Removed.
8242         (Build_Set_External_Tag): Removed.
8243         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
8244         (Build_Set_Prim_Op_Address): Add documentation.
8245         (Build_Set_TSD): Removed.
8246
8247         * rtsfind.ads, rtsfind.adb
8248         (Load_Fail): If load fails and we are not in configurable run-time
8249         mode, then raise Unrecoverable_Error.
8250         (Text_IO_Kludge): Generate an error message if a run-time library is
8251         not available in a given run-time (ie. zfp run-time).
8252         (RTE_Record_Component): Add code to check that the component we search
8253         for is not found in two records in the given run-time package.
8254         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
8255         (RE_DT_Predef_Prims_Offset): New entity
8256         (RE_Static_Offset_To_Top): New entity
8257         (RE_HT_Link): New entity.
8258         (System_Address_Image): Addition of this run-time package.
8259         (RE_Address_Image): New entity.
8260         (RE_Abstract_Interface): Removed.
8261         (RE_Default_Prim_Op_Count): Removed.
8262         (RE_DT_Entry_Size): Removed.
8263         (RE_DT_Min_Prologue_Size): Removed.
8264         (RE_DT_Prologue_Size): Removed.
8265         (RE_Ifaces_Table_Ptr): Removed.
8266         (RE_Interface_Data_Ptr): Removed.
8267         (RE_Type_Specific_Data): Removed.
8268         (RE_Primary_DT): Removed.
8269         (RE_Register_Interface_Tag): Removed.
8270         (RE_Set_Offset_Index): Removed.
8271         (RE_Set_OSD): Removed.
8272         (RE_Set_SSD): Removed.
8273         (RE_Set_Signature): Removed.
8274         (RE_Set_Tagged_Kind): Removed.
8275         (RE_Address_Array): New entity.
8276         (RE_DT): New entity.
8277         (RE_Iface_Tag): New entity.
8278         (RE_Interfaces_Table): New entity.
8279         (RE_No_Dispatch_Table): New entity.
8280         (RE_NDT_Prims_Ptr): New entity.
8281         (RE_NDT_TSD): New entity.
8282         (RE_Num_Prims): New entity.
8283         (RE_Offset_To_Top_Function_Ptr): New entity.
8284         (RE_OSD_Table): New entity.
8285         (RE_OSD_Num_Prims): New entity.
8286         (RE_Predef_Prims): New entity
8287         (RE_Predef_Prims_Table_Ptr): New entity.
8288         (RE_Primary_DT): New entity.
8289         (RE_Signature): New entity.
8290         (RE_SSD): New entity.
8291         (RE_TSD): New entity.
8292         (RE_Type_Specific_Data): New entity.
8293         (RE_Tag_Kind): New entity.
8294
8295 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8296
8297         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
8298         C imported variable.
8299         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
8300         on entry.
8301
8302 2007-06-06  Robert Dewar  <dewar@adacore.com>
8303
8304         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
8305         character
8306
8307 2007-06-06  Vincent Celier  <celier@adacore.com>
8308
8309         * a-tifiio.adb (Put, internal): For negative numbers, check that there
8310         is room for at least one digit and the minus sign.
8311         (Put.Put_Character): Never put a character outside of the range of
8312         string To.
8313
8314 2007-06-06  Olivier Hainque  <hainque@adacore.com>
8315             Eric Botcazou  <ebotcazou@adacore.com>
8316
8317         * utils2.c (build_allocator): Provide the extra arguments to
8318         make_aligning_type for super-aligned objects allocated from the default
8319         pool. Leave enough room for a pointer before the aligning field, and
8320         store the system's allocator return value there.
8321         (build_call_alloc_dealloc): When releasing a super-aligned object,
8322         retrieve the system's allocator return value from where build_allocator
8323         has stored it, just ahead of the adjusted address we are passed.
8324         (build_call_raise): Handle properly the generation of line numbers when
8325         the node is marked No_Location.
8326         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
8327         by using DECL_UID on ties.
8328         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8329         main variant.
8330         (build_call_raise): Handle converting exception into goto; support new
8331         argument KIND.
8332         (build_component_ref): Add new arg to build_call_raise.
8333
8334 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8335
8336         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8337         "." in the case of nnn.xxx when nnn terminates with an underscore.
8338         Parse the remaining "#" or ":" in the case of nnn#.xxx#
8339
8340 2007-06-06  Robert Dewar  <dewar@adacore.com>
8341
8342         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8343
8344 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8345             Vincent Celier  <celier@adacore.com>
8346             Robert Dewar  <dewar@adacore.com>
8347
8348         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8349         needed.
8350         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8351         ((destructor)) for adafinal, even when switch -a is used.
8352         Do not issue pragma Linker_Destructor for adafinal when switch -a is
8353         used.
8354         (Gen_Object_Files_Options): Add formatting of Linker Options, when
8355         Output_Linker_Option_List is set. Suppress this formatting when
8356         Zero_Formatting is set.
8357         Add case for CLI_Target.
8358         (System_Restrictions_Used): New flag, used to avoid generating with of
8359         System_Restrictions and initialization of the data unless there is
8360         some use of System.Restrictions in the partition.
8361         (Check_System_Restrictions_Used): New procedure
8362
8363         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8364         since we only with this unit in the binder file if it is used elsewhere
8365         in the partition.
8366
8367 2007-06-06  Vincent Celier  <celier@adacore.com>
8368
8369         * bindusg.adb: Add line for @<response file>
8370         Add lines for new switches -R and -Z
8371
8372         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8373         hierarchy in the list of files of the closure when -R is used
8374         (Gnatbind): Accept arguments starting with '@' to indicate response
8375         files and take the arguments from the response files.
8376         If List_Closure is set, display the referenced files
8377
8378 2007-06-06  Javier Miranda  <miranda@adacore.com>
8379             Robert Dewar  <dewar@adacore.com>
8380             Ed Schonberg  <schonberg@adacore.com>
8381
8382         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8383         which the address-clause is applied to in-mode actuals (allowed by
8384         13.1(22)).
8385         (Apply_Discriminant_Check): Do not generate a check if the type is
8386         constrained by a current instance.
8387         (Activate_Division_Check): New procedure
8388         (Activate_Overflow_Check): New procedure
8389         (Activate_Range_Check): New procedure
8390         Call these new Activate procedures instead of setting flags directly
8391         (Apply_Array_Size_Check): Removed, no longer needed.
8392         Code clean up: remove obsolete code related to GCC 2.
8393         (Get_E_Length): Protect against bomb in case scope is standard
8394         (Selected_Range_Checks): If the node to be checked is a conversion to
8395         an unconstrained array type, and the expression is a slice, use the
8396         bounds of the slice to construct the required constraint checks.
8397         Improve NOT NULL error messages
8398         (Apply_Constraint_Check): If the context is a null-excluding access
8399         type, diagnose properly the literal null.
8400
8401 2007-06-06  Pascal Obry  <obry@adacore.com>
8402
8403         * clean.adb (Clean_Archive): Use untouched casing for the archive name
8404         and the corresponding .deps file.
8405         (Clean_Interface_Copy_Directory): Use untouched casing for the library
8406         src directory. Minor code-clean-up. Use untouched casing for files
8407         read into the library src dir.
8408         (Clean_Library_Directory): Idem.
8409         (Parse_Cmd_Line): Accept new switch -aP
8410
8411 2007-06-06  Javier Miranda  <miranda@adacore.com>
8412             Ed Schonberg  <schonberg@adacore.com>
8413             Robert Dewar  <dewar@adacore.com>
8414             Eric Botcazou  <ebotcazou@adacore.com>
8415             Arnaud Charlet  <charlet@adacore.com>
8416
8417         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8418         applicable to types that have the With_Type flag set. Returns the
8419         non-limited view of the type, if available, otherwise the type itself.
8420         For class-wide types, there is no direct link in the tree, so we have
8421         to retrieve the class-wide type of the non-limited view of the Etype.
8422         New attributes Static_Initialization and Static_Elaboration_Desired.
8423         Remove the pragma Thread_Body, and the associated flag
8424         Is_Thread_Body in entities, and all related code.
8425         (Suppress_Value_Tracking_On_Call): New flag
8426         E_Exception has Esize and Alignment fields
8427         (Universal_Aliasing): New function.
8428         (Set_Universal_Aliasing): New procedure.
8429         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8430         (Check_Nested_Access): New procedure.
8431         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8432         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8433         (Related_Interface): New attribute. Present in dispatch table pointer
8434         components of records. Set to point to the entity of the corresponding
8435         interface type.
8436         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8437         (Original_Access_Type): Remove, not needed.
8438         (Root_Type): Handle properly subtypes of class-wide-types.
8439         Update comments.
8440
8441         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8442         class-wide types visible through limited-with clauses.
8443         (Try_Primitive_Operation): When examining all primitive operations of a
8444         tagged type, do not consider subprograms labeled as hidden unless they
8445         belong to a private generic type with a tagged parent.
8446         (Try_Object_Operation): Extensive rewriting, to handle properly various
8447         overloading cases, when several ancestors may have class-wide operations
8448         that are possible candidates, and when the overloaded functions return
8449         array types and have defaulted parameters so that the call may be
8450         interpreted as an indexing.
8451         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8452         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8453         successive actuals before analyzing the call itself.
8454         (Try_Primitive_Operation): A primitive operation is compatible with the
8455         prefix if the prefix has a synchronized type and the type of the formal
8456         is its corresponding record, as can be the case when the primitive
8457         operation is declared outside of the body of the type.
8458         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8459         perform homonym traversal, looking for class-wide operation matches
8460         (formerly done in statements of Try_Class_Wide_Operation). Matches on
8461         access parameters are now restricted to anonymous access types.
8462         (Mark_Allocator): An allocator with a discriminant association parent is
8463         a coextension.
8464         (Try_One_Prefix_Interpretation): If the type of the object is
8465         incomplete, as can be happen when it is a limited view obtained through
8466         a limited_with_clause, the selected component is not part of a prefixed
8467         call.
8468         (Complete_Object_Operation): Diagnose properly an object that is not
8469         aliased when the corresponding controlling formal is an access
8470         parameter.
8471         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8472         ambiguous calls in prefixed notation, where two primitives differ only
8473         in that the controlling argument of one is an access parameter.
8474
8475         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8476         whether a function that returns an unconstrained type can be inlined.
8477         (Process_Formals): Diagnose properly the illegal use of an incomplete
8478         type in the profile of an access_to_subprogram declaration.
8479         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8480         operations are attached to the corresponding record.
8481         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8482         When processing a primitive of a concurrent type which implements an
8483         interface change the type of all controlling formals to that of the
8484         corresponding record type.
8485         (Check_Synchronized_Overriding): Relax the conditional logic when trying
8486         to determine the tagged type to which a primitive belongs.
8487         (Check_Conventions): Capture condition to ignore a primitive operation
8488         (which is shared between the loop in Check_Conventions and the one in
8489         Check_Convention) in a new local function Skip_Check.
8490         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8491         confusion with Check_Conventions' own Prim_Op local variable.
8492         (Create_Extra_Formals): Test for a tagged result type rather than a
8493         controlling result when determining whether to add a BIP_Alloc_Form
8494         formal and a BIP_Final_List formal to the function.
8495         (Check_Conformance); For parameters that are anonymous access types,
8496         subtype conformance requires that the not null and the constant
8497         indicators must match
8498         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8499         to retrieve the appropriate type when processing a concurrent type
8500         declared within a generic. Minor comment reformatting. Change invocation
8501         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8502         mitive.
8503         (Analyze_Subprogram_Body): If the return type of a function is an
8504         anonymous access to the limited view of a class-wide type, and the
8505         non-limited view of the type is available, update the type of the
8506         function so that code can be generated.
8507         (Process_Formals): In case of access-subtype itype whose designated
8508         type is also an itype (situation that happens now with access to
8509         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8510         attribute to avoid backend problems.
8511         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8512         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8513         anonymous types' designated types are same before testing
8514         Subtypes_Statically_Match.
8515         (Create_Extra_Formals): Test for a named access parameter that is a
8516         controlling formal as an additional condition for adding an
8517         accessibility level formal. This can occur in the subp type created for
8518         dispatching calls in Expand_Dispatching_Call, and allows calling
8519         Create_Extra_Formals from that procedure rather than special-casing the
8520         extra formals there.
8521         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8522         when the function has a controlling result.
8523         (Check_Returns): Add much more knowledge of the optimization of local
8524         raise statements to gotos, to retain proper warnings in this case.
8525         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8526         nodes when looking for last statement.
8527
8528         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8529         class-wide types visible through limited with clauses.
8530         (Add_One_Interp): If the operands are anonymous access types, the
8531         predefined operator on universal_access is immediately visibles
8532         (Find_Unique_Type): Handle anonymous access to subprogram types just as
8533         other anonymous access types.
8534         (Disambiguate): Take into account CIL convention.
8535         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8536
8537 2007-06-06  Robert Dewar  <dewar@adacore.com>
8538
8539         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8540         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8541         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8542         Fix lower bound of tables.
8543         Add rep clauses.
8544
8545         * nlists.adb: Ditto.
8546         (Prev_Node, Next_Node): Change index type to Int so that it properly
8547         covers the range First_Node_Id - 1 up.
8548
8549 2007-06-06  Javier Miranda  <miranda@adacore.com>
8550             Ed Schonberg  <schonberg@adacore.com>
8551             Bob Duff  <duff@adacore.com>
8552             Hristian Kirtchev  <kirtchev@adacore.com>
8553
8554         * exp_aggr.ads, exp_aggr.adb: 
8555         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8556         in extension aggregates.
8557         (Flatten): Other conditions being met, an aggregate is static if the
8558         low bound given by component associations is different from the low
8559         bound of the base index type.
8560         (Packed_Array_Aggregate_Handled): If the component type is itself a
8561         packed array or record, the front-end must expand into assignments.
8562         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8563         Init_Pr, instead of Ancestor_Is_Expression.
8564         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8565         coextension chain root, either generate a list controller or use the
8566         already existing one.
8567         (Static_Array_Aggregate): New procedure to construct a positional
8568         aggregate that can be handled by the backend, when all bounds and
8569         components are compile-time known constants.
8570         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8571         types covering interface types into assignments.
8572         (Replace_Type): move to Build_Record_Aggr_Code.
8573         (Expand_Record_Aggr_Code): if the target of the aggregate is an
8574         interface type, convert to the definite type of the aggregate itself,
8575         so that needed components are visible.
8576         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8577         components and the context is an extended return statement do not
8578         create a transient block for it, to prevent premature finalization
8579         before the return is executed.
8580         (Gen_Assign): Do not generate a call to deep adjust routine if the
8581         component type is itself an array of controlled (sub)-components
8582         initialized with an inner aggregate.
8583         (Component_Check): New name for Static_Check. This name is now more
8584         appropriate, and documentation is added which was missing.
8585         (Component_Check): Add test for bit aligned component value
8586         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8587         Tagged_Comps, name is more appropriate given added function below.
8588         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8589
8590 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8591             Javier Miranda  <miranda@adacore.com>
8592             Robert Dewar  <dewar@adacore.com>
8593
8594         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8595         Terminated: Add unchecked type conversion from System.Address to
8596         System.Tasking.Task_Id when calling the predefined primitive
8597         _disp_get_task_id.
8598         Disable new Ada 05 accessibility check for JVM.NET targets, which
8599         cannot be implemented in a practical way.
8600         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8601         the sources always references the tag of the actual object. Therefore,
8602         if 'Tag is applied in the sources to class-wide interface objects we
8603         generate code that displaces "this" to reference the base of the object.
8604         (Expand_N_Attribute_Reference, case Size): Return specified size if
8605         known to front end.
8606         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8607         has code that displaces the pointer of the object to manage interface
8608         types. However this code must not be executed when the prefix is a
8609         subprogram. This bug caused the wrong expansion of the internally
8610         generated assignment that fills the dispatch table when the primitive
8611         is a function returning a class-wide interface type.
8612         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8613         Set_Attribute_Name for Name_Unaligned_Valid.
8614
8615 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8616             Gary Dismukes  <dismukes@adacore.com>
8617
8618         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8619         If the initialization is the equivalent aggregate of the initialization
8620         procedure of the type, do not remove it.
8621         (Expand_N_Attribute_Definition_Clause): Exclude access variables
8622         initialized to null from having their expression reset to empty and
8623         note this exception in the comment.
8624
8625 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8626             Robert Dewar  <dewar@adacore.com>
8627             Ed Schonberg  <schonberg@adacore.com>
8628             Gary Dismukes  <dismukes@adacore.com>
8629
8630         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8631         Add "with" and "use" clauses for Sem_Attr.
8632         (Expand_Current_Value): Do not replace occurences of attribute
8633         references where the prefix must be a simple name.
8634
8635         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8636         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8637         Attribute_Requires_Simple_Name_Prefix.
8638         (Name_Modifies_Prefix): Body of new function.
8639         (Requires_Simple_Name_Prefix): Body of new function.
8640         (Resolve_Attribute, case Access): Improve error message for case of
8641         mismatched conventions.
8642         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8643         incomplete type.
8644         (Analyze_Attribute, case 'Access): If the type of the prefix is a
8645         constrained subtype for a nominal unconstrained type, use its base type
8646         to check for conformance with the context.
8647         (Resolve_Attribute): Remove test of the access type being associated
8648         with a return statement from condition for performing accessibility
8649         checks on access attributes, since this case is now captured by
8650         Is_Local_Anonymous_Access.
8651         (Analyze_Access_Attribute): Set Address_Taken on entity
8652         (Analyze_Attribute, case Address): Set Address_Taken on entity
8653         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8654         validating an access attribute whose prefix is a current instance.
8655         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8656         applied to dispatching operations, if freezing is required then we set
8657         the attribute Has_Delayed_Freeze in the prefix's entity.
8658         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8659         current scope if access of local subprogram taken
8660         (Analyze_Access_Attribute): Check legality of self-reference even if the
8661         expression comes from source, as when a single component association in
8662         an aggregate has a box association.
8663         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8664         the prefix if it is a protected operation and the attribute is
8665         Unrestricted_Access.
8666         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8667         reference to the base type of the context, to force a constraint check
8668         when the context is an access subtype with an explicit constraint.
8669         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8670         node is rewritten as an interface conversion. leave unanalyzed after
8671         resolution, to ensure that type checking against the context will take
8672         place.
8673
8674 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8675             Javier Miranda  <miranda@adacore.com>
8676             Robert Dewar  <dewar@adacore.com>
8677
8678         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8679         wrapper when the full view of the controlling type of an inherited
8680         function that dispatches on result implements interfaces.
8681         (Expand_N_Object_Declaration): In cases where the type of the
8682         declaration is anonymous access, create finalization list for it.
8683         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8684         if the object has no explicit initialization, to match description of
8685         functionality of pragam Persistent_BSS.
8686         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8687         new function to build static aggregates, to replace initialization call
8688         when static initialization is desired.
8689         (Freeze_Type): Generate a list controller for an access type whenever
8690         its designated type has controlled anonymous access discriminants.
8691         (Build_Equivalent_Aggregate): New procedure to compute a static
8692         aggregate to be used as default initialization for composite types,
8693         instead of a generating a call to the initialization procedure for the
8694         type.
8695         (Build_Initialization_Call): When available, replace a call to the
8696         initialization procedure with a copy of the equivalent static aggregate
8697         for the type.
8698         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
8699         declarations for objects of a class-wide interface type, rather than
8700         just identifiers, to prevent visibility problems.
8701         (Expand_N_Object_Declaration): When expanding the declaration for an
8702         object of a class-wide interface type, preserve the homonym chain of
8703         the original entity before exchanging it with that of the generated
8704         renaming declaration.
8705         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8706         active, because there is no way to handle the exception.
8707         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8708         to do a minimum decoration of the Access_Disp_Table list.
8709         (Expand_Record_Controller): Avoid the addition of the controller between
8710         the component containing the tag of a secondary dispatch table and its
8711         adjacent component that stores the offset to the base of the object.
8712         This latter component is only generated when the parent type has
8713         discriminants ---documented in Add_Interface_Tag_Components).
8714         (Apply_Array_Size_Check): Removed, no longer needed.
8715         (Expand_N_Full_Type_Declaration): If the type has anonymous access
8716         components, create a Master_Entity for it only if it contains tasks.
8717         (Build_Init_Procedure): Suppress the tag assignment compiling under
8718         no run-time mode.
8719         (Freeze_Record_Type): Remove code associated with creation of dispatch
8720         table.
8721         (Init_Secondary_Tags): Update type of actuals when generating calls to
8722         Ada.Tags.Set_Offset_To_Top
8723         (Stream_Operation_OK): Disable use of streams compiling under no
8724         run-time mode
8725         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8726         if Has_Init_Expression set.
8727         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8728         Register_Primitive, which provides the same functionality.
8729         (Requires_Init_Proc): Return false in case of interface types.
8730         (Add_Secondary_Tables): Use the new attribute Related_Interface to
8731         cleanup the code.
8732         (Predefined_Primitive_Freeze): Do not assume that an internal entity
8733         is always associated with a predefined primitive because the internal
8734         entities associated with interface types are not predefined primitives.
8735         Therefore, the call to Is_Internal is replaced by a call to the
8736         function Is_Predefined_Dispatching_Operation.
8737         (Make_Eq_If): When generating the list of comparisons for the
8738         components of a given variant, omit the controller component that is
8739         present if the variant has controlled components.
8740
8741 2007-06-06  Javier Miranda  <miranda@adacore.com>
8742             Hristian Kirtchev  <kirtchev@adacore.com>
8743             Bob Duff  <duff@adacore.com>
8744
8745         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8746         handle the creation of finalization lists and calls for nested
8747         coextensions when the root of the chains is part of a return statement.
8748         (Inside_A_Return_Statement): New function inside Complete_Coextension_
8749         Finalization.
8750         (Expand_Record_Equality): Skip components that are interface types.
8751         (Displace_Allocator_Pointer): Add missing support for interface subtypes
8752         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8753         with Rewrite_Coextension. Change the condition for detecting coextension
8754         root nodes.
8755         (Is_Local_Access_Discriminant): Removed.
8756         (Rewrite_Coextension): New routine which rewrites a static coextension
8757         as a temporary and uses its unrestricted access in the construction of
8758         the outer object.
8759         (Complete_Coextension_Finalization): New routine. Generate finalization
8760         attachment calls to all delayed coextensions.
8761         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8762         the allocator is not a coextension itself and has delayed coextensions.
8763         If the current allocator is controlled, but also a coextension, delay
8764         the generation of the finalization attachment call.
8765         Rename local variable "Node" to "Nod" in order to avoid confusion with
8766         "Elists.Node".
8767         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8768         limited types that are not inherently limited. Such an allocator is
8769         illegal, but is generated by the expander for a return statement, to
8770         copy the result onto the secondary stack. This is the only case where a
8771         limited object can be copied. Generate code to displace the pointer
8772         to the object if the qualified expression is a class-wide interface
8773         object. Such displacement was missing and hence the copy of the object
8774         was wrong.
8775         (Apply_Accessibility_Check): Handle allocated objects initialized in
8776         place.
8777         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8778         and Expand_Allocator_Expression. Allocating class-wide interface objects
8779         this routine displaces the pointer to the allocated object to reference
8780         the component referencing the corresponding secondary dispatch table.
8781         Expand_Allocator_Expression): Add missing support to allocate class-wide
8782         interface objects initialized with a qualified expression.
8783         (Get_Allocator_Final_List): Test for an anonymous access type that is a
8784         function result type, and use the finalization list associated with the
8785         function scope in that case (such an anonymous type should not be
8786         treated like an access parameter's type).
8787
8788 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8789             Gary Dismukes  <dismukes@adacore.com>
8790             Javier Miranda  <miranda@adacore.com>
8791
8792         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8793         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8794         required exception handler.
8795         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8796         properly the case of a function whose return type is a limited
8797         class-wide interface type. Modify the code of the accessibility
8798         check to handle class-wide interface objects. In this case we need to
8799         displace "this" to reference the primary dispatch table to get access
8800         to the TSD of the object (to evaluate its accessibility level).
8801         (Expand_N_Extended_Return_Statement): Test for a tagged result type
8802         rather than a controlling result as one of the conditions for
8803         generating tests of the implicit BIP_Alloc_Form formal. The
8804         initialization assignment is also handled according to whether the
8805         result is tagged instead of controlling.
8806         In the case where the init assignment is inserted in the "then" part of
8807         the allocation conditional, rewrite the target to be a dereference of
8808         the implicit BIP_Object_Access formal.
8809         If the returned value is unconstrained and created on the secondary
8810         stack, mark the enclosing block and function so that the secondary
8811         stack is not reclaimed on return.
8812         Treat returns from functions with controlling results similarly to
8813         returns from functions with unconstrained result subtypes.
8814         If the object returned is unconstrained, and an allocator must be
8815         created for it, analyze the allocator once the block for the extended
8816         return is installed, to ensure that finalizable components
8817         of the expression use the proper finalization list. Guard the call to
8818         Move_Final_List with a check that there is something to finalize.
8819         (Make_Tag_Ctrl_Assignment): Use "old" handling
8820         of controlled type assignment for virtual machines, since new code uses
8821         unsupported features (such as direct access to bytes in memory).
8822
8823 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
8824             Ed Schonberg  <schonberg@adacore.com>
8825
8826         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8827         accessibility actual, check for the case of an aliased object that has
8828         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8829         we fall into processing for the attribute rather than the name of the
8830         object.
8831         (Expand_Inline_Call): If an actual is a literal, and the corresponding
8832         formal has its address taken in the body, create a temporary to capture
8833         value.  If the return type is a limited interface, do not treat the
8834         return value as Controlled.
8835         (Is_In_Place_Function):  If the return type is a limited interface,
8836         treat as returning in place. The actual returned object may not always
8837         be limited, but the caller has to assume that it is returned in place.
8838         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8839         context of an allocator, use the correct finalization chain (that is,
8840         the chain belonging to the access type, rather than the chain belonging
8841         to the current scope).
8842         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8843         result type rather than a controlling result as a precondition for
8844         adding an allocation form actual to a build-in-place call.
8845         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8846         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8847         primitive in the dispatch tables. This work is now done by Make_DT when
8848         the type is frozen.
8849         (Register_Predefined_DT_Entry): Removed.
8850         (Add_Return): If end label is not present, use sloc of last statement
8851         for generated return statement in procedure, for better gdb behavior
8852         on expanded code.
8853         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8854         object address nodes to ensure proper processing by routines like
8855         Insert_After*.
8856         (Expand_Call): Fix generation of validity check for parameter
8857         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8858         the allocation form parameter if the result subtype is constrained,
8859         except when the function has a controlling result.
8860         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8861         rather than Is_Controlled and Has_Controlled_Component, since we want to
8862         include class-wide result types in this treatment. Also test for a
8863         controlling result, since that also requires passing a finalization
8864         list.
8865         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8866         even when the result subtype is constrained, to handle calls involving
8867         controlling results.
8868         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8869         is now called even when the result subtype is constrained, to handle
8870         calls involving controlling results.
8871         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8872         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8873         now performs the test).
8874         (Make_Build_In_Place_Call_In_Object_Declaration):
8875         Add_Alloc_Form_Actual_* is now called even when the result subtype is
8876         constrained, to handle calls involving controlling results.
8877         (Add_Return): Accomodate rewritten pattern from local raise to goto
8878         transformation, so that we still recognize an transfer statement
8879         and do the right thing here in that case.
8880         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8881         and end of subprogram code.
8882         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8883         support for primitives that are functions (without formals) with a
8884         controlling result.
8885         (Inherited_From_Formal): If the actual subtype has not generic parent
8886         type, it is not an actual for a formal derived type, and there is no
8887         operation to inherit from the formal.
8888
8889 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8890             Thomas Quinot  <quinot@adacore.com>
8891
8892         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8893         inserted cleanup code appropriately for GDB use.
8894         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8895         exception handler for Deep_Adjust or Deep_Finalize.
8896         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8897         Raise_From_Controlled_Operation is available, use a call to that
8898         subprogram instead of a plain "raise Program_Error" node to raise
8899         Program_Error if an exception is propagated from an Adjust or Finalize
8900         operation.
8901         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8902         appears in the optional statement list of a triggering alternative, the
8903         scope actions can be inserted directly there, and not in the list that
8904         includes the asynchronous select itself.
8905
8906 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8907             Robert Dewar  <dewar@adacore.com>
8908             Hristian Kirtchev  <kirtchev@adacore.com>
8909
8910         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8911         generated exception handler appropriately when debugging generated code.
8912         Deal properly with No_Exception_Propagation restriction mode.
8913         (Expand_N_Abort_Statement): Add an unchecked type conversion from
8914         System.Address to System.Tasking.Task_Id when processing the result of
8915         the predefined primitive _disp_get_task_id.
8916         (Expand_N_Asynchronous_Select): Clarify comment.
8917         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8918         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8919         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8920         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8921         privals and for generated call to Complete_Entry_Body, for better gdb
8922         behavior.
8923         (Copy_Result_Type): Utility to construct a parameter and result profile
8924         for protected functions whose return type is an anonymous access to
8925         subprogram.
8926         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8927         call the above.
8928         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8929         point when the local-raise-to-goto transformation has taken place.
8930
8931 2007-06-06  Javier Miranda  <miranda@adacore.com>
8932             Nicolas Setton  <setton@adacore.com>
8933
8934         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8935         functionality when the backend is generating code.
8936         Otherwise any serious error
8937         reported by the backend calling the frontend routine Error_Msg
8938         changes the Compilation_Mode to Check_Semantics, disables the
8939         functionality of this routine and causes the generation of
8940         spureous additional errors.
8941
8942         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8943         debugging information now generated by the compiler for fat-pointer
8944         types.
8945         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8946         DWARF2/3.
8947         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8948
8949 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8950
8951         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8952         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8953         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8954         For a remote call to a function with a classwide return type, apply an
8955         E.4(18) check to the returned value.
8956         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8957         stream attributes of the designated type of an RACW, as they are not
8958         dispatching primitive operations.
8959
8960 2007-06-06  Geert Bosch  <bosch@adacore.com>
8961
8962         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8963         negative literal
8964         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8965         positive
8966         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8967         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8968         positive
8969         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8970
8971 2007-06-06  Javier Miranda  <miranda@adacore.com>
8972
8973         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8974         attribute compiling package Ada.Tags under No_Run_Time_Mode.
8975
8976 2007-06-06  Javier Miranda  <miranda@adacore.com>
8977
8978         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8979         deallocation of class-wide interface objects.
8980         (Expand_Dispatching_Constructor_Call): Take into account that if the
8981         result of the dispatching constructor is an interface type, the
8982         function returns a class-wide interface type; otherwise the returned
8983         object would be actual. The frontend previously accepted returning
8984         interface types because Expand_Interface_Actuals silently performed
8985         the management of the returned type "as if" it were a class-wide
8986         interface type.
8987         (Expand_Dispatching_Constructor_Call): Replace call to
8988         Make_DT_Access_Action by direct call to Make_Function_Call.
8989
8990 2007-06-06  Robert Dewar  <dewar@adacore.com>
8991             Ed Schonberg  <schonberg@adacore.com>
8992
8993         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8994         compute masking constant, since we now set Esize properly to the
8995         underlying size.
8996         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8997         to match the alignment.
8998         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8999         packed arrays of 8 bits or less.
9000
9001         * freeze.adb (Freeze_Entity): When freezing the formals of a
9002         subprogram, freeze the designated type of a parameter of an access type
9003         only if it is an access parameter.
9004         Increase size of C convention enumeration object
9005         (Freeze_Entity, array type case): Make sure Esize value is properly
9006         adjusted for the alignment if it is known.
9007         (Freeze_Entity, array type case): When checking bit packed arrays for
9008         the size being incorrect, check RM_Size, not Esize.
9009         (Freeze_Record_Type): Check for bad discriminated record convention
9010         (In_Exp_Body): Return true if the body is generated for a subprogram
9011         renaming, either an attribute renaming or a renaming as body.
9012         (Check_Itype): If the designated type of an anonymous access component
9013         is a non-protected subprogram type, indicate that it is frozen, to
9014         prevent out-of-scope freeze node at some subsequent call.
9015         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
9016         only if the subprogram is neither imported nor exported, as well as the
9017         NCA descriptor class if the subprogram is exported.
9018
9019 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9020             Arnaud Charlet  <charlet@adacore.com>
9021             Robert Dewar  <dewar@adacore.com>
9022             Gary Dismukes  <dismukes@adacore.com>
9023
9024         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
9025         default initialization on an imported object, when there is no
9026         initialization call generated for it.
9027         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
9028         restriction
9029
9030         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
9031         Static_Elaboration_Desired.
9032         Remove pragma Thread_Body.
9033         Implement a new pragma No_Body
9034         Removes the Explicit_Overriding pragma
9035         Remove Optional_Overriding pragma
9036         (Prag): Deal with Universal_Aliasing.
9037         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9038         Pragma_CIL_Constructor): New names.
9039
9040         * sem_cat.adb (Validate_Object_Declaration): An initialization that
9041         uses the equivalent aggregate of a type must be treated as an implicit
9042         initialization.
9043         (Get_Categorization): Check a unit for pragma Preelaborate only if it
9044         has none of the other categories.
9045         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
9046         to apply Import to an object renaming declaration.
9047
9048         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
9049         from a C++ class should be declared as limited and that it will be
9050         considererd limited.
9051         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
9052         should be declared as limited and that it will be considererd limited.
9053         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
9054         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
9055         (Analyze_Pragma): Deal with Universal_Aliasing.
9056         (Sig_Flags): Likewise.
9057         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
9058         (Overflow_Checks_Unsuppressed): New flag.
9059         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
9060         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
9061         case of JVM or .NET targets, and compiling user code.
9062         Add debugging convenience routine rv
9063
9064 2007-06-06  Robert Dewar  <dewar@adacore.com>
9065
9066         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
9067         are interface type.
9068         (Build_Elementary_Input_Call): For floating-point use right type in the
9069         absence of strange size or stream size clauses.
9070         (Build_Elementary_Write_Call): Same fix
9071         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
9072         set to value that does not match base type size.
9073
9074 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9075
9076         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
9077         object of a limited type can be initialized with a call to a function
9078         that returns in place. If the limited type has unknown discriminants,
9079         and the underlying type is a constrained composite type, build an actual
9080         subtype from the function call, as is done for private types.
9081         (Side_Effect_Free): An expression that is the renaming of an object or
9082         whose prefix is the renaming of a object, is not side-effect free
9083         because it may be assigned through the renaming and its value must be
9084         captured in a temporary.
9085         (Has_Controlled_Coextensions): New routine.
9086         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
9087         as is done for other limited types.
9088         (Non_Limited_Designated_Type): new predicate.
9089         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
9090         objects.
9091         Remove all handling of with_type clauses.
9092
9093         * par-ch10.adb: Remove all handling of with_type clauses.
9094
9095         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
9096         checksum if the main source could not be parsed.
9097         (Loat_Unit): When processing a child unit, determine properly whether
9098         the parent unit is a renaming when the parent is itself a child unit.
9099         Remove handling of with_type clauses.
9100
9101         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
9102         (Set_Is_Static_Coextension): New procedure.
9103         (Has_Local_Raise): New function
9104         (Set_Has_Local_Raise): New procedure
9105         (Renaming_Exception): New field
9106         (Has_Init_Expression): New flag
9107         (Delay_Finalize_Attach): Remove because flag is obsolete.
9108         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
9109         Remove all handling of with_type clauses.
9110         (Exception_Junk): Can now be set in N_Block_Statement
9111
9112 2007-06-06  Vincent Celier  <celier@adacore.com>
9113             Robert Dewar  <dewar@adacore.com>
9114
9115         * frontend.adb (Frontend): Return immediately if the main source could
9116         not be parsed, because of preprocessing errors.
9117
9118         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
9119         (Gnat1drv): Exit with errors if the main source could not be parsed,
9120         because of preprocessing errors.
9121         (Check_Rep_Info): New procedure
9122
9123 2007-06-06  Robert Dewar  <dewar@adacore.com>
9124
9125         * g-hesorg.ads, g-heasor.ads,
9126         g-busorg.ads, g-bubsor.ads: Update documentation
9127         GNAT.Heap/Bubble_Sort_G is now pure
9128
9129 2007-06-06  Robert Dewar  <dewar@adacore.com>
9130
9131         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
9132
9133 2007-06-06  Robert Dewar  <dewar@adacore.com>
9134             Ed Schonberg  <schonberg@adacore.com>
9135
9136         * g-comlin.ads, g-comlin.adb: 
9137         Add new warning for renaming of function return objects
9138
9139         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
9140         (Tree_Read): Use size of object instead of type'object_size, since the
9141         latter is incorrect for packed array types.
9142         (Tree_Write): Same fix
9143
9144         * opt.ads: Add new warning for renaming of function return objects
9145         (Generating_Code): New boolean variable used to indicate that the
9146         frontend as finished its work and has called the backend to process
9147         the tree and generate the object file.
9148         (GCC_Version): Is now private
9149         (Static_Dispatch_Tables): New constant declaration.
9150         (Overflow_Checks_Unsuppressed): New flag.
9151         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
9152         (List_Closure): New flag for gnatbind (-R)
9153         Zero_Formatting: New flag for gnatbind (-Z)
9154         (Special_Exception_Package_Used): New flag.
9155         (Warn_On_Unrepped_Components): New flag.
9156
9157         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
9158         unit is a compilation unit, rather than relying on its scope, so that
9159         Standard can be renamed.
9160         (Analyze_Object_Renaming): Add new warning for renaming of function
9161         return objects.
9162         Also reject attempt to rename function return object in Ada 83 mode.
9163         (Attribute_Renaming): In case of tagged types, add the body of the
9164         generated function to the freezing actions of the type.
9165         (Find_Type): A protected type is visible right after the reserved word
9166         "is" is encountered in its type declaration. Set the entity and type
9167         rather than emitting an error message.
9168         (New_Scope): Properly propagate Discard_Names to inner scopes
9169         (Check_Nested_Access): New procedure.
9170         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
9171         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9172
9173         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
9174         Add new warning for renaming of function return objects
9175         (Check_References): Suppress warnings for objects whose type or
9176         base type has Warnings suppressed.
9177         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
9178         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
9179
9180 2007-06-06  Vincent Celier  <celier@adacore.com>
9181             Emmanuel Briot  <briot@adacore.com>
9182             Olivier Hainque  <hainque@adacore.com>
9183
9184         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
9185         absolute value of Header.Block_Size when displaying the freed physical
9186         memory in traces.
9187         (Allocate): Compute Storage_Address using Integer_Address, not
9188         Storage_Offset, because the range of Storage_Offset may not be large
9189         enough.
9190         (Configure): New parameter Low_Level_Traces
9191         (Allocate, Deallocation, Free_Physically): Added low-level traces
9192         (Configure): new parameter Errors_To_Stdout.
9193         (Output_File): new subprogram
9194         (Deallocate, Dereference): Send error messages to the proper stream
9195         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
9196         documented. Previous code would send it to the current output file
9197         defined in GNAT.IO, which might not be stdout
9198         (Is_Valid): Adjust comment to mention that a positive reply means that
9199         Header_Of may be used to retrieve the allocation header associated with
9200         the subprogram Storage address argument. Return False early if this
9201         address argument is misaligned.
9202
9203 2007-06-06  Vincent Celier  <celier@adacore.com>
9204
9205         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
9206         switch -P
9207         (ASIS_Main): New global variable
9208         (Get_Closure): New procedure
9209         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
9210         check, metric or pretty. Call Get_Closure in this case.
9211         (Check_Files): For GNAT LIST, check all sources of all projects when
9212         All_Projects is True.
9213         (GNATCmd): Accept -U for GNAT LIST
9214
9215 2007-06-06  Vincent Celier  <celier@adacore.com>
9216
9217         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
9218         has been specified
9219         Correct error message when invocation of the linker fails
9220         Add explicit size clause for the C imported variables
9221         Object_List_File_Supported and Using_GNU_Linker to emphasize that
9222         we expect char size.
9223         Read target parameters earlier, since this is needed to set
9224         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
9225         targets.
9226
9227 2007-06-06  Vincent Celier  <celier@adacore.com>
9228
9229         * gnatls.adb: 
9230         Add 3 spaces before the default project directory when displaying
9231         the project search path.
9232         Add new command line switch '-l' to display license information.
9233
9234 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
9235
9236         * gmem.c: Add support for timestamps on memory operations.
9237
9238         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
9239         operations (not used currently, just foundation for future
9240         enhancements). Add possibility to perform full dump of gmem.out file.
9241         (Print_Back_Traces): Declare accesses to root arrays constants since
9242         they aren't modified.
9243         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
9244
9245 2007-06-06  Vincent Celier  <celier@adacore.com>
9246
9247         * gnatsym.adb: Update Copyright notice
9248         (Parse_Cmd_Line): Accept new switch -D
9249         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
9250          file.
9251
9252         * prj.ads (Policy): New policy Direct
9253         (Yes_No_Unknown): New enumeration type
9254         (Project_Data): New component Libgnarl_Needed
9255
9256         * prj-nmsc.adb (Check_For_Source): When recording a source file make
9257         use the untouched pathname casing.
9258         (Get_Directories): Ensure that the Display_Exec_Directory is using the
9259         proper casing on non case-sensitive platforms like Windows.
9260         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
9261         on all platforms, as it is not possible to know which one is allowed
9262         before processing the project files.
9263         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
9264         specified when symbol policy is Direct. Check that when there is a
9265         symbol file defined (either by default or with attribute
9266         Library_Symbol_File) it is not the same as the reference symbol file.
9267         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
9268         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
9269         extending projects.
9270         (Record_Ada_Source): Record a source that has been locally removed in an
9271         imported project.
9272
9273         * symbols.ads (Policy): New policy Direct
9274
9275         * symbols-vms.adb (Initialize): Take new policy Direct in case
9276         statement
9277
9278 2007-06-06  Vincent Celier  <celier@adacore.com>
9279
9280         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
9281         Correct obvious bug (return Dir; instead of return Directory;).
9282         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
9283
9284 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9285
9286         * g-pehage.adb (Produce): Open output files in Binary mode, so that
9287         they have UNIX line endings (LF only) even on Windows, and thus pass
9288         all GNAT style checks.
9289
9290 2007-06-06  Emmanuel Briot  <briot@adacore.com>
9291
9292         * g-regpat.adb (Quote): Fix improper quoting of '.'
9293
9294 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9295
9296         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
9297         default, set False on a per-runtime basis.
9298         (Need_Netdb_Buffer): New constant.
9299
9300         * g-socket.ads, g-socket.adb: Import new package
9301         GNAT.Sockets.Thin.Task_Safe_NetDB.
9302         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
9303         binding to obtain proper message.
9304         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
9305         Replace various occurrences of Arry (Arry'First)'Address with the
9306         equivalent Arry'Address (GNAT always follows implementation advice from
9307         13.3(14)).
9308         (Get_Host_By_Address, Get_Host_By_Name,
9309         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
9310         instead, rely on platform-specific task safe netdb operations provided
9311         by g-socthi.
9312
9313         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
9314         parameter Process_Blocking_IO.
9315         (Host_Error_Messages): Add stub body.
9316         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9317         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
9318         Safe_Getservbyport): Move functions into new child package
9319         Task_Safe_NetDB.
9320         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
9321         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
9322         (In_Addr): Add alignment clause.
9323
9324 2007-06-06  Robert Dewar  <dewar@adacore.com>
9325
9326         * g-trasym.ads, g-traceb.ads: Update list of supported targets
9327         Add note about symbolic traceback
9328
9329 2007-06-06  Pascal Obry  <obry@adacore.com>
9330
9331         * hostparm.ads (Normalized_CWD): Use the host directory separator
9332         instead of the hardcoded forward slash which is not the proper
9333         character on Windows for example.
9334         (Java_VM): Removed.
9335
9336 2007-06-06  Vincent Celier  <celier@adacore.com>
9337             Arnaud Charlet  <charlet@adacore.com>
9338
9339         * a-clrefi.adb, a-clrefi.ads: New files
9340
9341         * impunit.adb: Add s-os_lib in the list of user visible units.
9342         (Non_Imp_File_Names_95): Add a-clrefi to this list
9343         Remove obsolete run-time entries.
9344         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9345          "a-exetim" -- Ada.Execution_Time
9346          "a-extiti" -- Ada.Execution_Time.Timers
9347
9348         * mlib-prj.ads, mlib-prj.adb
9349         (Build_Library): Use untouched object dir and library dir. At the
9350         same time makes sure that the checks are done using the canonical
9351         form. Removes hard-coded directory separator and use the proper host
9352         one instead.
9353         (Process_Project): Do not look in object directory to check if libgnarl
9354         is needed for a library, if there is no object directory.
9355         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9356         linking.
9357         (Build_Library): When invoking gnatbind, use a response file if the
9358         total size of the arguments is too large.
9359
9360         * Makefile.rtl: (g-sttsne): New object file.
9361         Add entry for a-clrefi, s-utf_32, System.Exceptions
9362
9363         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9364         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9365         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9366         Change g-string to s-string, g-os_lib to s-os_lib
9367         Change all g-utf_32 references to s-utf_32
9368
9369 2007-06-06  Tristan Gingold  <gingold@adacore.com>
9370             Olivier Hainque  <hainque@adacore.com>
9371
9372         * init.c: Do not adjust IP of an imported VMS exception of ia64.
9373         LIB$STOP is called to raise an exception and the IP of the exception
9374         is the instruction right after the call.
9375         (__gnat_adjust_context_for_raise, AIX): Implement.
9376         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9377          adjust_context_for_raise before Raise_From_Signal_Hanler.
9378         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9379         siginfo is passed to the handler, necessary to let the zcx propagation
9380         engine unwind past it.
9381
9382 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9383
9384         * initialize.c (__gnat_initialize for vxworks):  Update documentation
9385         on the ZCX support, using different sets of crtstuff objects than with
9386         GCC 3.4.
9387
9388 2007-06-06  Robert Dewar  <dewar@adacore.com>
9389
9390         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9391         spec from body
9392         (Layout_Type): Fix recomputation of size from alignment.
9393
9394 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9395             Javier Miranda  <miranda@adacore.com>
9396
9397         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9398         association in an instance.
9399         (Copy_Generic_Node): If the node is a string literal, no need to copy
9400         its descendants.
9401         (Is_Generic_Formal): For a formal subprogram, the declaration is the
9402         grandparent of the entity.
9403         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9404         to simplify handling of formal interfaces that derive from other formal
9405         interfaces.
9406         (Instantiate_Subprogram_Body): The defining unit name of the body of
9407         the instance should be a defining identifier.
9408         (Install_Formal_Packages): make global to the package, for use in
9409         instantiations of child units.
9410         (Analyze_Package_Instantiation): Do not attempt to set information on an
9411         enclosing master of an entry when expansion is disabled.
9412         (Instantiate_Type): If the actual is a tagged synchronized type and the
9413         generic ancestor is an interface, create a generic actual for the
9414         corresponding record.
9415         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9416         declaration, to ensure that the interface list is processed correctly.
9417         (Inline_Instance_Body): If enclosing scope is an instance body, remove
9418         its entities from visibiility as well.
9419         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
9420         given with a named association, analyze the expression only, not the
9421         discriminant association itself.
9422         (Reset_Entity): If the analysis of a selected component is transformed
9423         into an expanded name in the prefix of a call with parameters, do not
9424         transform the original node into an expanded name, to prevent visibility
9425         errors in the case of nested generics.
9426         (Check_Private_View): For an array type, check whether the index types
9427         may need exchanging.
9428
9429 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9430             Vincent Celier  <celier@adacore.com>
9431
9432         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9433         since both are separated.
9434         Add support for imported CIL packages.
9435         Add further special handling of "value_type" for CIL.
9436         Add special handling of pragma Import for CIL.
9437
9438         * make.ads, make.adb: When switch -eS is used, direct all outputs to
9439         standard output instead of standard error, except errors.
9440         (Absolute_Path): Use untouched casing for the parent directory.
9441         (Add_Library_Search_Dir): Use the untouched directory name.
9442         (Add_Source_Search_Dir): Idem.
9443         (Change_To_Object_Directory): Update output to use proper casing.
9444         (Create_Binder_Mapping_File): Use the untouched filename to set
9445         ALI_Name.
9446         (Gnatmake): Use untouched library and executable directory names.
9447         (Insert_Project_Sources): Use untouched filename for spec and body.
9448         (Is_In_Object_Directory): Use untouched object directory.
9449         (Mark_Directory): Idem.
9450         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9451         contains the non-canonical filename in all cases.
9452         (Change_To_Object_Directory): In verbose mode, display the name of the
9453         object directory we're changing to.
9454         (Compile_Sources): Make sure, when a project file is used, to compile
9455         the body of the unit, when there is one, even when only the spec is
9456         recorded in an ALI file.
9457         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9458         spec to the body.
9459         (Report_Compilation_Failed): New procedure
9460         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9461         procedures moved from the spec to the body.
9462         (Extract_Failure): Removed, not used
9463         Replace explicit raises of exception Bind_Failed and Link_Failed with
9464         calls to Make_Failed with the proper message.
9465         Replace explicit raises of exception Compilation_Failed with calls to
9466         procedure Report_Compilation_Failed.
9467         (Initialize): Create mapping files unconditionally when using project
9468         files.
9469
9470         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9471         Pragma_CIL_Constructor): New names.
9472
9473         * targparm.ads, targparm.adb
9474         (Compiler_System_Version): Removed, no longer used.
9475         (Get_Target_Parameters): Relax checks on system.ads validity. Add
9476         handling of two new system flags: JVM and CLI.
9477
9478 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9479             Arnaud Charlet  <charlet@adacore.com>
9480
9481         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9482         time, use the default s-interr body that provides interrupt support
9483         based on signals.
9484         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9485         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9486         g-soccon.ads, and s-taprop.adb for the marte run time.
9487         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9488         timers are supported on marte.
9489         (EH_MECHANISM for marte): Do not use ZCX.
9490         (THREADSLIB for marte): Use -lmarte.
9491         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9492         Add mlib-tgt-specific.o to gnatmake objects
9493         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9494         longer of MLib.Tgt.
9495         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9496         6, either kernel or rtp, use a specialized version of s-osinte.ads.
9497
9498 2007-06-06  Pascal Obry  <obry@adacore.com>
9499
9500         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9501
9502 2007-06-06  Vincent Celier  <celier@adacore.com>
9503
9504         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9505         separator, use instead the proper host directory separator.
9506         (Copy_ALI_Files): Make sure that an already existing ALI file in the
9507         ALI copy dir is writable, before doing the copy.
9508
9509         * mlib-utl.ads, mlib-utl.adb: 
9510         (Gcc): If length of command line is too long, put the list of object
9511         files in a response file, if this is supported by the platform.
9512         (Ar): If invocation of the archive builder is allowed to be done in
9513         chunks and building it in one shot would go above an OS dependent
9514         limit on the number of characters on the command line, build the archive
9515         in chunks.
9516
9517 2007-06-06  Vincent Celier  <celier@adacore.com>
9518
9519         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9520         of specified object file is not equal to base name of source.
9521
9522 2007-06-06  Javier Miranda  <miranda@adacore.com>
9523             Hristian Kirtchev  <kirtchev@adacore.com>
9524             Ed Schonberg  <schonberg@adacore.com>
9525
9526         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9527         the full type declaration.
9528         (Analyze_Component_Declaration): Add local variable E to capture the
9529         initialization expression of the declaration. Replace the occurences of
9530         Expression (N) with E.
9531         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9532         limited interface object with a function call.
9533         (Array_Type_Declaration): If the declaration lacks subtype marks for
9534         indices, create a simple index list to prevent cascaded errors.
9535         (Is_Null_Extension): Ignore internal components created for secondary
9536         tags when checking whether a record extension is a null extension.
9537         (Check_Abstract_Interfaces): Add missing support for interface subtypes
9538         and generic formals.
9539         (Derived_Type_Declaration): Add missing support for interface subtypes
9540         and generic formals.
9541         (Analyze_Object_Declaration): If an initialization expression is
9542         present, traverse its subtree and mark all allocators as static
9543         coextensions.
9544         (Add_Interface_Tag_Component): When looking for components that may be
9545         secondary tags, ignore pragmas that can appear within a record
9546         declaration.
9547         (Check_Abstract_Overriding): an inherited function that dispatches on
9548         result does not need to be overriden if the controlling type is a null
9549         extension.
9550         (Mentions_T): Handle properly a 'class attribute in an anonymous access
9551         component declaration, when the prefix is an expanded name.
9552         (Inherit_Component): If the derivation is for a private extension,
9553         inherited components remain visible and their ekind should not be set
9554         to Void.
9555         (Find_Type_Of_Object): In the case of an access definition, always set
9556         Is_Local_Anonymous_Access. We were previously not marking the anonymous
9557         access type of a return object as a local anonymous type.
9558         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9559         range with character literal bounds.
9560         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9561         (Access_Subprogram_Declaration): Indicate that the type declaration
9562         depends on an incomplete type only if the incomplete type is declared
9563         in an open scope.
9564         (Analyze_Subtype_Declaration): Handle properly subtypes of
9565         synchronized types that are tagged, and that may appear as generic
9566         actuals.
9567         (Access_Subprogram_Declaration): An anonymous access to subprogram can
9568         appear as an access discriminant in a private type declaration.
9569         (Add_Interface_Tag_Components): Complete decoration of the component
9570         containing the tag of a secondary dispatch table and the component
9571         containing the offset to the base of the object (this latter component
9572         is only generated when the parent type has discriminants --as documented
9573         in this routine).
9574         (Inherit_Components): Use the new decoration of the tag components to
9575         improve the condition that avoids inheriting the components associated
9576         with secondary tags of the parent.
9577         (Build_Discriminanted_Subtype): Indicate to the backend that the
9578         size of record types associated with dispatch tables is known at
9579         compile time.
9580         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9581         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9582         to include task, protected, and synchronized interfaces as limited
9583         interfaces.
9584         (Process_Discriminants): Remove the setting of
9585         Is_Local_Anonymous_Access on the type of (anonymous) access
9586         discriminants of nonlimited types.
9587         (Analyze_Interface_Type_Declaration): Complete the decoration of the
9588         class-wide entity it is is already present. This situation occurs if
9589         the limited-view has been previously built.
9590         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9591         field.
9592         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9593         Related_Interface.
9594
9595 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9596
9597         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9598         of the type that specify the position of interface tags when the type
9599         inherits discriminated array components from the parent type.
9600         If a component is initialized with a box, check for the presence of a
9601         default expression in its declaration before using its default
9602         initialization procedure.
9603         (Resolve_Record_Aggregate): If a component is box-initialized, and the
9604         component type has a discriminants, create a partial aggregate for it
9605         by copying the discriminants of the component subtype.
9606         Reject attempt to initialize a discriminant with a box.
9607         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9608         associated with dispatch tables is known at compile time.
9609         (Get_Value): If an association in a record aggregate has a box
9610         association, and the corresponding record component has a default
9611         expression, always copy the default expression, even when the
9612         association has a single choice, in order to create a proper
9613         association for the expanded aggregate.
9614
9615 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9616             Robert Dewar  <dewar@adacore.com>
9617
9618         * par-ch12.adb (P_Generic_Associations): The source position of an
9619         Others association is that of the others keyword, not that of the token
9620         that follows the box.
9621         (P_Formal_Type_Definition): Handle formal access types that carry a
9622         not null indicator.
9623
9624         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9625         multiple identifier are present, save Scan_State before scanning the
9626         colon, to ensure that separate trees are constructed for each
9627         declaration.
9628         (P_Identifier_Declarations): For object declaration, set new flag
9629         Has_Init_Expression if initialization expression present.
9630         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9631         Improve NOT NULL error messages
9632
9633 2007-06-06  Robert Dewar  <dewar@adacore.com>
9634
9635         * par-ch4.adb: (P_Name): Recover from literal used as name
9636
9637 2007-06-06  Vincent Celier  <celier@adacore.com>
9638
9639         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9640         defaulted to False.
9641         In the "not" case, recursive call with Complemented set to True.
9642         Do not allow "or" or "and" operators when Complemented is True.
9643
9644 2007-06-06  Vincent Celier  <celier@adacore.com>
9645
9646         * prj.adb (Project_Empty): Gives default value for new component
9647         Libgnarl_Needed
9648
9649         * prj-attr.ads: Minor reformatting
9650
9651         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9652         directory using the untouched casing.
9653         (For_All_Source_Dirs): Idem.
9654
9655         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9656         directories specified with switches -aP.
9657         (Add_Search_Project_Directory): New procedure
9658         (Initialize_Project_Path): Put the directories in table
9659         Search_Directories in the project search path.
9660         (Initialize_Project_Path): For VMS, transform into canonical form the
9661         project path.
9662
9663 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9664
9665         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9666         true if configurable run-time or No_Run_Time is set.
9667         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9668         processing an unit which is not the one being compiled.
9669
9670 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9671
9672         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9673         Replace UC by Ada.UC
9674
9675         * s-bitops.adb: Get rid of System.Pure_Exceptions.
9676         Replace UC by Ada.UC
9677
9678 2007-06-06  Robert Dewar  <dewar@adacore.com>
9679
9680         * scng.adb: (Check_End_Of_Line): Deal with very long lines
9681
9682 2007-06-06  Robert Dewar  <dewar@adacore.com>
9683
9684         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9685         Remove no longer used nodes.
9686
9687 2007-06-06  Javier Miranda  <miranda@adacore.com>
9688             Ed Schonberg  <schonberg@adacore.com>
9689             Robert Dewar  <dewar@adacore.com>
9690
9691         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9692         on obsolescent withed unit in case of limited-withed units.
9693         (Analyze_Compilation_Unit): Add guard to code that removed an
9694         instantiation from visibility, to prevent compiler aborts when
9695         instantiation is abandoned early on.
9696         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9697         current unit being analyzed, and Distinguish local incomplete types
9698         from limited views of types declared elsewhere.
9699         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9700         to state that the class-wide entity is shared by the limited-view
9701         and the full-view.
9702         (Analyze_With_Clause): Improve placement of flag for case of
9703         unimplemented unit.
9704         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9705         manner similar to GNAT.Current_Exception. This is a violation of
9706         restriction (No_Exception_Propagation), and also inhibits the
9707         optimization of local raise to goto.
9708         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9709         and if so set Most_Recent_Exception_Used flag in Opt, and also check
9710         for violation of restriction No_Exception_Propagation.
9711
9712 2007-06-06  Javier Miranda  <miranda@adacore.com>
9713             Hristian Kirtchev  <kirtchev@adacore.com>
9714             Gary Dismukes  <dismukes@adacore.com>
9715
9716         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9717         use of entity Exception_Occurrence if it is not available in the
9718         target run-time.
9719
9720         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9721         concurrent types are declared within an Ada 2005 generic, build their
9722         corresponding record types since they are needed for overriding-related
9723         semantic checks.
9724         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9725         protected type does not implement a task interface or a nonlimited
9726         interface.
9727         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9728         type does not implement a protected interface or a nonlimited interface.
9729         (Single_Task_Declaration, Single_Protected_Declaration): use original
9730         entity for variable declaration, to ensure that debugging information
9731         is correcty generated.
9732         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9733         routines if the expander is not active.
9734         (Analyze_Task_Body): Mark all handlers to stop optimization of local
9735         raise, since special things happen for task exception handlers.
9736
9737         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9738         concurrent types declared within a generic.
9739         (Check_Dispatching_Operation): Do not emit warning about late interface
9740         operations in the context of an instance.
9741         (Check_Dispatching_Call): Remove restriction against calling a
9742         dispatching operation with a limited controlling result.
9743         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9744         Register_Interface_DT_Entry by calls to Register_Primitive.
9745         (Check_Dispatching_Formals): Handle properly a function with a
9746         controlling access result.
9747
9748 2007-06-06  Robert Dewar  <dewar@adacore.com>
9749             Arnaud Charlet  <charlet@adacore.com>
9750
9751         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9752         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9753         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9754         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9755         message when using a VM, since this attribute is not supported.
9756         (Analyze_Record_Representation_Clause): Give unrepped component warnings
9757
9758         * usage.adb: Add new warning for renaming of function return objects
9759         Indicate that -gnatwp and -gnatwP concern front-end inlining
9760         Add line for -gnatyg
9761         Add usage information for -gnatw.c/C
9762
9763 2007-06-06  Robert Dewar  <dewar@adacore.com>
9764             Ed Schonberg  <schonberg@adacore.com>
9765
9766         * sem_ch5.adb
9767         (Find_Var): Do not consider function call in test for infinite loop
9768         warning if warnings set off for function entity.
9769         (One_Bound): Do not create a temporary for a loop bound if it is a
9770         character literal.
9771         (Analyze_Assignment): Traverse the right hand side of an assignment and
9772         mark all allocators as static coextensions.
9773         (Analyze_Assignment): Exempt assignments involving a dispatching call
9774         to a function with a controlling access result from the check requiring
9775         the target to be class-wide.
9776
9777 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9778             Ed Schonberg  <schonberg@adacore.com>
9779             Robert Dewar  <dewar@adacore.com>
9780             Javier Miranda  <miranda@adacore.com>
9781
9782         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9783         chain of coextensions when an allocator serves as the root of such a
9784         chain.
9785         (Propagate_Coextensions): Remove the test for the root being an
9786         allocator.
9787         (Resolve_Allocator): Add condition to ensure that all future decoration
9788         occurs on an allocator node. Add processing and cleanup for static
9789         coextensions.
9790         (Valid_Conversion): If the operand type is the limited view of a
9791         class-wide type, use the non-limited view is available to determine
9792         legality of operation.
9793         (Ambiguous_Character): move to spec, for use elsewhere.
9794         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9795         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9796         character literals.
9797         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9798         Do_Division_Check flag explicitly.
9799         (Resolve_Actuals): If the actual is of a synchronized type, and the
9800         formal is of the corresponding record type, this is a call to a
9801         primitive operation of the type, that is declared outside of the type;
9802         the actual must be unchecked-converted to the type of the actual
9803         (Resolve_Call): Kill all current values for any subprogram call if
9804         flag Suppress_Value_Tracking_On_Call is set.
9805         (Resolve_Type_Conversion): Generate error message the the operand
9806         or target of interface conversions come from a limited view.
9807         (Check_Infinite_Recursion): Ignore generated calls
9808         (Check_Allocator_Discrim_Accessibility): New procedure for checking
9809         that an expression that constrains an access discriminant in an
9810         allocator does not denote an object with a deeper level than the
9811         allocator's access type.
9812         (Resolve_Allocator): In the case of an allocator initialized by an
9813         aggregate of a discriminated type, check that associations for any
9814         access discriminants satisfy accessibility requirements by calling
9815         Check_Allocator_Discrim_Accessibility.
9816         (Resolve_Equality_Op): Handle comparisons of anonymous access to
9817         subprogram types in the same fashion as other anonymous access types.
9818         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9819         message that is not a continuation message.
9820         (Resolve_Type_Conversion): Add missing support for conversion to
9821         interface type.
9822         (Resolve_Actuals): Introduce a transient scope around the call if an
9823         actual is a call to a function returning a limited type, because the
9824         resulting value must be finalized after the call.
9825         (Resolve_Actuals): If the call was given in prefix notations, check
9826         whether an implicit 'Access reference or implicit dereference must be
9827         added to make the actual conform to the controlling formal.
9828
9829 2007-06-06  Robert Dewar  <dewar@adacore.com>
9830             Javier Miranda  <miranda@adacore.com>
9831
9832         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9833         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9834         overriding of an inherited private subprogram now there is no need to
9835         inherit its dispatching slot and reduce the size of the dispatch table.
9836         Set_All_DT_Position now ensures that the same slot is now assigned to
9837         both entities. This is required to statically build the dispatch table.
9838         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9839         of calling Set_All_DT_Position to re-evaluate the position of the
9840         entries in the dispatch table. Such reevaluation is not desired if
9841         the tagged type is already frozen.
9842
9843 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9844             Gary Dismukes  <dismukes@adacore.com>
9845             Robert Dewar  <dewar@adacore.com>
9846             Javier Miranda  <miranda@adacore.com>
9847
9848         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9849         reference acts as an lvalue when the attribute name modifies the prefix
9850         (Is_Coextension_Root): New routine.
9851         (Mark_Static_Coextensions): New routine.
9852         (Type_Access_Level): Revise code for checking the level of the
9853         anonymous access type of a return object.
9854         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9855         (Matches_Prefixed_View_Profile): Remove the no longer necessary
9856         retrieval of the corresponding controlling record type.
9857         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9858         concurrent types declared within a generic as well as class wide types.
9859         Emit a mode incompatibility error whenever a protected entry or routine
9860         override an interface routine whose first parameter is not of mode
9861         "out", "in out" or access to variable.
9862         (Overrides_Synchronized_Primitive): Rename to
9863         Find_Overridden_Synchronized_Primitive.
9864         (Collect_Interface_Components): New subprogram that collects all the
9865         components of a tagged record containing tags of secondary dispatch
9866         tables.
9867         (Add_Global_Declaration): New procedure
9868         (Abstract_Interface_List): Handle properly the case of a subtype of a
9869         private extension.
9870         (Type_Access_Level): In the case of a type whose parent scope is a
9871         return statement, call Type_Access_Level recursively on the enclosing
9872         function's result type to determine the level of the return object's
9873         type.
9874         (Build_Elaboration_Entity): Build name of elaboration entity from the
9875         scope chain of the entity, rather than the unit name of the file name.
9876         (Check_Nested_Access): New procedure.
9877         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9878         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9879         (Get_Renamed_Entity): Utility routine for performing common operation
9880         of chasing the Renamed_Entity field of an entity.
9881
9882 2007-06-06  Robert Dewar  <dewar@adacore.com>
9883
9884         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9885         elaboration model
9886         (Check_A_Call): Add check for entry call which was causing blowup
9887
9888 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9889
9890         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9891         special code on ia64-vms to handle major incompatibilities between the
9892         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9893         this routine with a very different set of arguments and expectations on
9894         the return value.
9895
9896 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9897
9898         * socket.c (__gnat_close_signalling_fd): New function.
9899         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9900         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9901         New supporting functions for task safe Netdb operations.
9902
9903 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9904             Olivier Hainque  <hainque@adacore.com>
9905
9906         * a-except-2005.ads, a-except-2005.adb
9907         (Raise_From_Controlled_Operation): New procedure in
9908         (private part of) Ada.Exceptions (standard runtime version). Used to
9909         provide informational exception message when Program_Error is raised as
9910         a result of an Adjust or Finalize operation propagating an exception.
9911         (Rmsg_28): Fix description for E.4(18) check.
9912         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9913         propagation starts, to let debuggers know about the event in a reliable
9914         fashion.
9915         Take the address of E and dereference to make sure it is homed on stack
9916         and prevent the stores from being deleted, necessary for proper
9917         debugger behavior on "break exception" hits.
9918         (Local_Raise): Moved to System.Exceptions
9919
9920         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9921         exception message from the current occurrence and raise Program_Error
9922         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9923
9924 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9925             Arnaud Charlet  <charlet@adacore.com>
9926
9927         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9928         lock, if needed.
9929
9930         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9931         priority associated to a lock.
9932
9933         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9934         assertion to take into account case of no abort restriction.
9935         (Initialize_Protection_Entries): Add initialization for the field
9936         New_Ceiling associated to the protected object.
9937         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9938         needed.
9939
9940         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9941         since this function needs to be set consistently with Update_Exception.
9942
9943         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9944         since this function needs to be set consistently with Update_Exception.
9945
9946         * s-taskin.ads: Update comments on
9947         Interrupt_Server_Blocked_On_Event_Flag.
9948         (Unbind_Handler): Fix handling of server_task wakeup
9949         (Server_Task): Set self's state so that Unbind_Handler can take
9950         appropriate actions.
9951         (Common_ATCB): Now use a constant from System.Parameters to determine
9952         the max size of the Task_Image field.
9953
9954         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9955         Initialize_Analyzer function.
9956         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9957         take into account case of no abort restriction.
9958         ([Vulnerable_]Complete_Master): Modify assertion.
9959
9960         * s-tataat.adb (Finalize): Use the nestable versions of
9961         Defer/Undefer_Abort.
9962
9963         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9964
9965         * s-tpobop.ads: Update comments.
9966
9967         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9968         of locking the object manually, to avoid inconsistencies between
9969         Lock/Unlock_Entry assertions.
9970
9971         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9972         terminating
9973         application and System.Parameters.No_Abort is True.
9974         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9975         (Unbind_Handler): Fix handling of server_task wakeup
9976         (Server_Task): Set self's state so that Unbind_Handler can take
9977         appropriate actions.
9978
9979 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9980
9981         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9982         declarations instead of an explicit null body, for conciseness.
9983
9984 2007-06-06  Robert Dewar  <dewar@adacore.com>
9985
9986         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9987         illegal aggregate and the type is still Any_Composite.
9988         (Subtypes_Statically_Match): Fix problem of empty discriminant list
9989
9990 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9991
9992         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9993         to prevent subsequent expansion.
9994
9995 2007-06-06  Robert Dewar  <dewar@adacore.com>
9996
9997         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9998
9999 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
10000             Robert Dewar  <dewar@adacore.com>
10001
10002         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
10003         exceptions.
10004         (Write_Itype): Handle case of string literal subtype, which
10005         comes up in this context.
10006         (Update_Itype): when debugging expanded code, update sloc of itypes
10007         associated with defining_identifiers and ranges, for gdb use.
10008         (Sprint_Node_Actual): Add static keyword to object or exception
10009         declaration output if Is_Statically_Allocated is True.
10010         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
10011         or task body, so that the tree carries the proper Sloc information for
10012         debugging use.
10013         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
10014
10015 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
10016
10017         * s-secsta.adb (Chunk): Ensure this object has a static size known at
10018         compile time, to avoid dynamic memory allocation
10019         (Elaboration code): Only use dynamic memory allocation when needed.
10020
10021 2007-06-06  Quentin Ochem  <ochem@adacore.com>
10022
10023         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
10024         "Overflow_Guard".
10025         (Stack_Analyzer): Added field "Overflow_Guard"
10026         (Task_Result): Added field "Overflow_Guard".
10027         (Index_Str): New constant.
10028         (Task_Name_Str): New constant.
10029         (Actual_Size_Str): New constant.
10030         (Pattern_Array_Element_Size): New constant.
10031         (Get_Usage_Range): New subprogram.
10032         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
10033         Now align the output.
10034         Added comments.
10035         (Initialize): Added value for Overflow_Guard.
10036         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
10037         Update the value of the overflow guard according to the actual
10038         beginning of the pattern array.
10039         (Initialize_Analyzer): Added parameter Overflow_Guard.
10040         Take this parameter into accound when computing the max size.
10041         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
10042         (Report_Result): Removed extra useless procedure.
10043         Updated call to Output_Result.
10044         Moved full computation of the Task_Result here.
10045
10046 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10047
10048         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
10049         Thread_Blocking_IO, always True by default, set False on a per-runtime
10050         basis.
10051         Add Windows-specific constants
10052         Add new constant Need_Netdb_Buffer.
10053         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
10054         not, whether to use getXXXbyYYY_r.
10055
10056         * gsocket.h: Add new constant Need_Netdb_Buffer.
10057         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
10058         not, whether to use getXXXbyYYY_r.
10059
10060 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10061
10062         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
10063         than their first call.
10064         Add type Dummy_Communication_Block used in the generation of the pre-
10065         defined dispatching primitive _disp_asynchronous_select.
10066         (Storage_Element): Put Pragma Universal_Aliasing on it.
10067
10068 2007-06-06  Vincent Celier  <celier@adacore.com>
10069
10070         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
10071         function.
10072
10073         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
10074         letter if it is not followed by a '/' or a '\'.
10075         (Windows): New Boolean function
10076
10077         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
10078         Ada 2005.
10079         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
10080         drive letter.
10081         (Containing_Directory): Raise Use_Error when the directory is a root
10082         directory.
10083         (Extension): When returning the result, use a conversion to Result_Type,
10084         not a qualification.
10085
10086 2007-06-06  Robert Dewar  <dewar@adacore.com>
10087
10088         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
10089         (Set_Style_Check_Options): Recognize new -gnatyg style switch
10090
10091         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
10092         Warn_On_Non_Local_Exception to False, to turn off warnings for
10093         No_Exception_Propagation in ZFP runtime.
10094         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
10095         back-ends.
10096         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
10097
10098 2007-06-06  Vincent Celier  <celier@adacore.com>
10099
10100         * switch-b.adb (Scan_Binder_Switches): Add processing for new
10101         switches -R and -Z
10102
10103         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
10104         (Scan_Make_Switches): Recognize new switch -aP
10105
10106 2007-06-06  Matthew Gingell  <gingell@adacore.com>
10107             Jose Ruiz  <ruiz@adacore.com>
10108
10109         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
10110         VxWorks task descriptor in the Ada run time, call a C subprogram
10111         (__gnat_get_stack_info) that extracts the required information.
10112
10113         * sysdep.c: Back out temporary lynxos workaround.
10114         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
10115         time the stack information associated to the currently executing task.
10116         Only VxWorks systems require this function.
10117
10118 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
10119
10120         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
10121         add the stack bias if the offset is computed from a frame address.
10122         (__gnat_backtrace): Adjust for above change.
10123
10124 2007-06-06  Thomas Quinot  <quinot@adacore.com>
10125
10126         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
10127         PE_Non_Transportable_Actual.
10128         (By_Descriptor_Last): New constant.
10129         (By_Copy_Return): Likewise.
10130
10131 2007-06-06  Vincent Celier  <celier@adacore.com>
10132
10133         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
10134         is.
10135
10136         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
10137         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
10138         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
10139         Add missing comment for /OPTIMIZE=SPACE
10140         Add entry for OPTIMIZE=SPACE
10141         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
10142         Add documentation for new qualifiers corresponding to -gnatw.c/.C
10143
10144 2007-06-06  Vincent Celier  <celier@adacore.com>
10145             Robert Dewar  <dewar@adacore.com>
10146
10147         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
10148         -gnatw.C)
10149
10150         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
10151         Document gnatbind switch -a
10152         (case Constructions): Document that variables declarations are allowed
10153         for previously declared variables.
10154         Fix external lib project example
10155         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
10156         Indicate that "#if not X or Y then" is not allowed in input files to
10157         gnatprep.
10158         Document gnatw.x and gnatw.X warning flags
10159         Mention -Winline switch to activate warnings when back-end inlining is
10160         ineffective.
10161         Add gnatcheck rule descriptions
10162         Describe how to use the GNAT driver to call a tool on a closure.
10163         Describe how to run project-wide checks or metrics.
10164         Document gnatbind's -R option
10165         Updated to account for Ada 2005 support
10166
10167         * gnat_rm.texi (Case Construction): Allow variable declarations for
10168         previously declared variables.
10169         (Representation Clauses and Pragmas): Lift restriction on alignment
10170         clauses for record types.
10171         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
10172         Document No_Exception_Propagation restriction
10173         Document No_Body pragma
10174         Updated to account for Ada 2005 support; corrected some typos
10175         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
10176
10177         * gnat-style.texi: Make it clear that we never use mode IN for
10178         procedures or functions
10179
10180         * ug_words: Add entries for -gnatw.x and -gnatw.X
10181         Add entries for -gnatw.c/.C
10182
10183 2007-06-06  Pascal Obry  <obry@adacore.com>
10184             Vincent Celier  <celier@adacore.com>
10185
10186         * makegpr.adb (Add_Archive_Path): Use untouched object and library
10187         dirs and library name.
10188         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
10189         comments.
10190         (Build_Library): Idem.
10191         (Compile_Individual_Sources): Idem.
10192         (Compile_Link_With_Gnatmake): Idem.
10193         (Compile_Sources): Idem.
10194         (Get_Imported_Directories): Idem.
10195         (Link_Executables): Idem. Same change for the executable dir.
10196         (Check_Compilation_Needed): C_Source_Path new variable containing
10197         the canonical form of Source_Path to check against the source names
10198         in the dependency file.
10199         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
10200         verbose mode, display the name of the object directory we're changing
10201         to.
10202         (Saved_Switches): New name of table X_Switches
10203         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
10204         (Usage): New line for switch -aP
10205         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
10206         testing if a directory should be added to the search path.
10207
10208 2007-06-06  Javier Miranda  <miranda@adacore.com>
10209
10210         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
10211         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
10212         declaration after freezing point of all its associated tagged types;
10213         otherwise such types are frozen too early.
10214
10215 2007-06-06  Robert Dewar  <dewar@adacore.com>
10216
10217         * a-reatim.adb: Documentation addition
10218
10219         * g-cgideb.adb: Minor code reorganization
10220
10221         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
10222         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
10223         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
10224
10225         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
10226         function.  Change name New_Scope to Push_Scope
10227         (Get_Debug_Flag_K): Remove unused obsolete function.
10228
10229         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
10230         Push_Scope.
10231
10232         * makeusg.adb: Update Copyright notice
10233         Add line for switch -aP
10234
10235         * makeusg.adb: Fix wording of some usage messages
10236
10237         * s-assert.adb (Raise_Assert_Failure): Add call to
10238         Debug_Raise_Assert_Failure.
10239
10240         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
10241         (2, Standard'Alignment) for compatibility with AAMP (where alignment
10242         is restricted to 1).
10243
10244         * s-wchjis.adb: Remove use of System.Pure_Exceptions
10245
10246         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
10247         node location to No_Location when we're not debugging the expanded
10248         code.
10249
10250 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
10251
10252         * misc.c (enumerate_modes): Consider log2_b to always be one.
10253
10254 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
10255
10256         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
10257
10258 2007-05-02  Pascal Obry  <obry@adacore.com>
10259
10260         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
10261         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
10262         encoding support of Stream_IO.
10263         (Write_Unit): Idem.
10264
10265         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
10266         filename and corresponding encoding to match the OS requirement.
10267         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
10268         routine will fail on specific devices like CON: AUX: ...
10269
10270         PR ada/29856: Add missing braces
10271
10272 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10273
10274         PR ada/31660
10275         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
10276
10277 2007-04-21  Jan Hubicka  <jh@suse.cz>
10278
10279         * misc.c (gnat_expand_body): Don't call target for destructors,
10280         avoid redundant check on syntax errors.
10281
10282 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10283
10284         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
10285         instead of checking GIMPLE_STMT_P in chain_next.
10286
10287 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10288
10289         PR ada/31576
10290         * system-linux-alpha.ads: Disable constant condition warning for the
10291         Default_Bit_Order variable.
10292         * system-linux-s390.ads: Likewise.
10293         * system-linux-s390x.ads: Likewise.
10294         * system-linux-sparc.ads: Likewise.
10295
10296 2007-04-06  Javier Miranda  <miranda@adacore.com>
10297             Matt Heaney  <heaney@adacore.com>
10298             Robert Dewar  <dewar@adacore.com>
10299
10300         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10301         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
10302         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
10303         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
10304         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
10305         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
10306         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
10307         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
10308         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
10309         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
10310         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
10311         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
10312         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
10313         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
10314         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
10315         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
10316         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
10317         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
10318         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
10319         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
10320         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
10321         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
10322         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
10323         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10324         s-taprop-tru64.adb, s-taprop-irix.adb,
10325         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10326         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10327         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10328         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
10329         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
10330         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
10331         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
10332         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
10333         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
10334         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
10335         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
10336         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
10337         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
10338         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
10339         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
10340         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
10341         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
10342         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10343         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
10344         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10345         access types.
10346         Update documentation.
10347         Minor rewording.
10348
10349 2007-04-06  Robert Dewar  <dewar@adacore.com>
10350
10351         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10352         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10353         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10354         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10355         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10356         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10357         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10358         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10359         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10360         system-hpux-ia64.ads, targparm.adb,
10361         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10362
10363         * system.ads: Move Functions_Return_By_DSP to obsolete section,
10364         kept for bootstrap purposes only.
10365
10366 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10367
10368         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10369         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10370         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10371         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10372
10373 2007-04-06  Robert Dewar  <dewar@adacore.com>
10374
10375         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10376         (Local_Raise): New dummy procedure called when a raise is converted
10377         to a local goto. Used for debugger to detect that the exception
10378         is raised.
10379
10380         * debug.adb: Document new d.g flag (expand local raise statements to
10381         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10382
10383         * exp_sel.adb: Use Make_Implicit_Exception_Handler
10384
10385         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10386         suppress warnings for unused handlers.
10387         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
10388         warnings for raise statements not handled locally.
10389         (Get_RT_Exception_Entity): New function
10390         (Get_Local_Call_Entity): New function
10391         (Find_Local_Handler): New function
10392         (Warn_If_No_Propagation): New procedure
10393         (Expand_At_End_Handler): Call Make_Implicit_Handler
10394         (Expand_Exception_Handlers): Major additions to deal with local handlers
10395         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10396         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10397         for local raise
10398
10399         * exp_ch11.ads (Get_RT_Exception_Entity): New function
10400         (Get_Local_Call_Entity): New function
10401
10402         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10403         of restrictions that the binder will never suggest adding.
10404
10405         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10406         to No_Elist.
10407
10408         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10409         be with'ed in the presence of pragma Restriction
10410         (No_Exception_Propagation).
10411
10412         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10413
10414         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10415         parameter, then the handler is not a suitable target for a local raise,
10416         and this is a violation of restriction No_Exception_Propagation.
10417         (Analyze_Handled_Statements): Analyze choice parameters in exception
10418         handlers before analyzing statement sequence (needed for proper
10419         detection of local raise statements).
10420         (Analyze_Raise_Statement): Reraise statement is a violation of the
10421         No_Exception_Propagation restriction.
10422
10423         * s-rident.ads: Add new restriction No_Exception_Propagation
10424
10425         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10426         function, like Make_Exception_Handler but sets Local_Raise_Statements
10427         to No_List.
10428         (Add_Unique_Serial_Number): Deal with case where this is called during
10429         processing of configuration pragmas.
10430
10431 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10432             Pat Rogers  <rogers@adacore.com>
10433             Pascal Obry  <obry@adacore.com>
10434
10435         * g-stsifd-sockets.adb: New file.
10436
10437         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10438         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10439         g-socthi-vms.adb: Move signalling
10440         fd management to a nested package, so that they can conveniently be
10441         moved to a subunit that is shared across Windows, VMS, and VxWorks
10442         (Ada implementation) or completed with imported bodies from socket.c
10443         (UNIX case).
10444         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10445         subprograms.
10446         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10447         the signalling file descriptor.
10448         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10449         signalling file descriptor.
10450         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10451         instead of creating a pair of sockets for signalling here.
10452
10453         * g-socthi.adb: Ditto.
10454         Set the runtime process to ignore SIGPIPEs on platforms that support
10455         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10456
10457         * g-socthi-mingw.adb: Ditto.
10458         (WS_Version): Use Windows 2.2.
10459         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10460
10461         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10462         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10463
10464         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10465         added GNAT byte swapping facility
10466         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10467
10468         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10469
10470         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10471         New subprograms.
10472         (__gnat_create_signalling_fds): New subprogram.
10473         Set the runtime process to ignore SIGPIPEs on platforms that support
10474         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10475
10476 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
10477             Vincent Celier  <celier@adacore.com>
10478
10479         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10480         New version of Ada.Calendar which supports the new upper bound of Ada
10481         time (2399-12-31 86_399.999999999).
10482         The following modifications have been made to the package:
10483          - New representation of time as count of nanoseconds since the start of
10484            Ada time (1901-1-1 0.0).
10485          - Target independent Split and Time_Of routines which service both
10486            Ada 95 and Ada 2005 code.
10487          - Target independent interface to the Ada 2005 children of Calendar.
10488          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10489          - Handling of non-leap centenial years.
10490          - Updated clock function.
10491          - Updated arithmetic and comparison operators.
10492
10493         * a-caldel.adb (To_Duration): Add call to target independent routine in
10494         Ada.Calendar to handle the conversion of time to duration.
10495
10496         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10497         (UTC Offset).
10498         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10499         set off to 0.
10500         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10501         targets do not have a natural time zone, GMT is used as a default.
10502         (__gnat_get_task_options): New.
10503
10504         * a-direct.adb (Modification_Time): Add with and use clauses for
10505         Ada.Calendar and Ada.
10506         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10507         since it is no longer needed.
10508         (Duration_To_Time): Removed.
10509         (OS_Time_To_Long_Integer): Removed.
10510         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10511         Formatting Time_Of routines which automatically handle time zones,
10512         buffer periods and leap seconds.
10513
10514         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10515         target independent routines in Ada.Calendar.
10516
10517         * a-calfor.ads, a-calfor.adb: 
10518         Code cleanup and addition of validity checks in various routines.
10519         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10520         Ada.Calendar.
10521
10522         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10523         independent routine in Ada.Calendar.
10524
10525 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10526
10527         * adaint.c: 
10528         (convert_addresses): Adjust prototype and dummy definition to expect an
10529          extra file_name argument.
10530
10531         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10532         filling the now expected file_name argument with the appropriate
10533         argv[0] expansion.
10534         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10535         (tracebk): Array of void * instead of char *, corresponding to what
10536          convert_addresses expects.
10537         (exename): New static global, to hold the executable file name to be
10538         used in all convert_addresses invocations.
10539         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10540         change.
10541         (__gnat_gmem_a2l_initialize): Resolve exename.
10542         (__gnat_convert_addresses): Use exename as the convert_addresses
10543         file_name argument.
10544
10545         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10546         "convert_addresses", now expecting a filename argument. Import the
10547         necessary entities to compute the filename to use and pass it to
10548         convert_addresses.
10549
10550 2007-04-06  Matt Gingell  <gingell@adacore.com>
10551
10552         * system-aix.ads: Back out previous change.
10553         (Functions_Return_By_DSP): Removed
10554
10555 2007-04-06  Pascal Obry  <obry@adacore.com>
10556
10557         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10558         or the monotonic used by Ada.Real_Time) to compute the sleep duration
10559         on Windows.
10560
10561 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10562
10563         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10564         function. Its value changes in different VxWorks versions, and it is
10565         now handled by the function __gnat_get_task_options.
10566
10567         * s-taprop-vxworks.adb (Create_Task): Call the function
10568         __gnat_get_task_options to get the required options for creating a task.
10569
10570 2007-04-06  Pascal Obry  <obry@adacore.com>
10571             Thomas Quinot  <quinot@adacore.com>
10572
10573         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10574         dealing with filename.
10575         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10576         filename from a standard string to a wide-string depending on the
10577         encoding value.
10578         (__gnat_freopen): Idem.
10579         (__gnat_current_time): New function (wrapper for time(3) standard C
10580         function).
10581
10582         * g-os_lib.ads (Current_Time): New function. Returns the current
10583         system time as an OS_Time value.
10584
10585         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10586         (Monotonic_Clock): Same.
10587
10588 2007-04-06  Quentin Ochem  <ochem@adacore.com>
10589
10590         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10591         not on a natural.
10592         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10593
10594 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10595
10596         * a-retide.adb: Add elaboration code to ensure that the tasking run
10597         time is initialized when using delay operations even when no task is
10598         created.
10599
10600 2007-04-06  Javier Miranda  <miranda@adacore.com>
10601
10602         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10603         component Num_Prim_Ops.
10604         (Set_Num_Prim_Ops): Removed.
10605         Remove all the assertions because all the routines of this
10606         package are inline always.
10607         (Get_Offset_Index): Add support to primary dispatch tables.
10608         Move the documentation about the dispatch table to a-tags.ads
10609         (Set_External_Tag): Removed
10610         (Inherit_TSD): Removed.
10611         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10612         moved to a-tags.ads
10613         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10614         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10615         of the TSD field "Table" because this field has been renamed to
10616         "Ifaces_Table".
10617         (Inherit_CPP_DT): Removed.
10618         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10619         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10620         declarations have been moved to a-tags.ads
10621         (Check_Size): Removed.
10622         (Expanded_Name): Updated to get access to the new field of TSD
10623         containing the address of the expanded name.
10624         (Get_Access_Level/Set_Access_Level): Removed.
10625         (Get_Predefined_Prim_Op_Address): Removed.
10626         (Set_Predefined_Prim_Op_Address): Removed.
10627         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10628         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10629         (Set_Expanded_Name): Removed.
10630         (Inherit_DT): Removed.
10631         (Inherit_CPP_DT): Removed.
10632         (Set_RC_Offset): Removed.
10633         (Set_TSD): Removed.
10634         (Base_Address): New function that displaces "this" to point to the base
10635         of the object (that is, to point to the primary tag of the object).
10636
10637 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10638             Javier Miranda  <miranda@adacore.com>
10639
10640         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10641         anonymous access component, do not create a master_id if type already
10642         has one, as may happen if the type is a subcomponent of a packed array
10643         type.
10644         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10645         Initialize_Tag): Remove code associated with the old CPP pragmas.
10646         CPP_Virtual and CPP_Vtable are no longer supported.
10647         (Build_Offset_To_Top_Internal): Add support for concurrent record types
10648         (Build_Offset_To_Top_Functions): Add support for concurrent record types
10649         (Freeze_Record_Type): Remove call to
10650         Init_Predefined_Interface_Primitives.
10651         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10652         code required to initialize the tags of the secondary dispatch tables.
10653         This leaves the algoritm more clear.
10654         (Init_Secondary_Tags): Add support for concurrent record types
10655         (Make_Predefined_Primitive_Specs): Code cleanup.
10656         (Predefined_Primitive_Bodies): Code cleanup.
10657         (Build_Master_Renaming): New local subprogram.
10658         (Expand_N_Full_Type_Declaration): Build the master_id associated with
10659         anonymous access to task type components.
10660         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10661         subtype indication are resolved during analysis, and must not be done
10662         here.
10663         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10664
10665 2007-04-06  Geert Bosch  <bosch@adacore.com>
10666             Ed Schonberg  <schonberg@adacore.com>
10667             Javier Miranda  <miranda@adacore.com>
10668             Bob Duff  <duff@adacore.com>
10669
10670         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10671         for conversion of a Float_Type'Truncation to integer.
10672
10673         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10674         check if a node is an attribute that can be handled directly by the
10675         back end.
10676         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10677         attributes that can be handled directly by the back end.
10678         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10679         use new predicate Is_Access_Protected_Subprogram_Type.
10680         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10681         and Unchecked_Union if it is generated as part of the default  Output
10682         procedure for a type with default discriminants.
10683         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10684         if we are compiling under restriction No_Dispatching_Calls.
10685         (Constrained): Use Underlying_Type, in case the type is private without
10686         discriminants, but the full type has discriminants.
10687         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10688         call to Build_Get_Access_Level.
10689         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10690         interface objects requires a call to the run-time subprogram that
10691         returns the base address of the object.
10692         (Valid_Conversion): Improve error message on illegal attempt to store
10693         an anonymous access to subprogram value into a record component.
10694
10695         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10696         null".
10697         (Simplify_Type_Conversion): New procedure that performs simplification
10698         of Int_Type (Float_Type'Truncation (X)).
10699         (Resolve_Type_Conversion): Call above procedure after resolving operand
10700         and before performing checks. This replaces the existing ineffective
10701         code in Exp_Ch4.
10702         (Set_String_Literal_Subtype): When creating the internal static lower
10703         bound subtype for a string literal, use a newly created copy of the
10704         subtree representing the lower bound.
10705         (Resolve_Call): Exclude build-in-place function calls from transient
10706         scope treatment. Update comments to describe this exception.
10707         (Resolve_Equality_Op): In case of dispatching call check violation of
10708         restriction No_Dispatching_Calls.
10709         (Resolve_Call): If the call returns an array, the context imposes the
10710         component type of the array, and the function has one non-defaulted
10711         parameter, rewrite the call as the indexing of a call with a single
10712         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10713         in prefix form.
10714         (Resolve_Actuals): If an actual is an allocator for an access parameter,
10715         the master of the created object is the innermost enclosing statement.
10716         (Remove_Conversions): For a binary operator, check if type of second
10717         formal is numeric, to check if an abstract interpretation is present
10718         in the case of exponentiation as well.
10719
10720 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10721             Bob Duff  <duff@adacore.com>
10722
10723         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10724         copying a parameter list in a call, set properly the First_Named_Formal
10725         and Next_Named_Formal fields in the new list and in the enclosing call.
10726         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10727         names, to ease typing in the debugger. Improve comments.
10728         (Watch_Node): New variable, intended to be set in the debugger.
10729         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10730         called when the watched node is created.
10731         (New_Node_Debugging_Output): Combined version of local procedures
10732         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10733         with a parameter so that conditional breakpoints like "if Node = 12345"
10734         work.
10735         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10736         Add Elist1 function
10737
10738 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10739             Ed Schonberg  <schonberg@adacore.com>
10740             Gary Dismukes  <dismukes@adacore.com>
10741
10742         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10743         required for a conversion between two access-to-unconstrained-array
10744         types.
10745         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10746         to discriminant constraints on discriminant objects. This rule must
10747         apply as well to discriminants of protected types in private components.
10748         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10749         object of a null-excluding access type then don't require the
10750         the object declaration to have an expression and don't emit a
10751         run-time check.
10752
10753 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10754             Eric Botcazou  <botcazou@adacore.com>
10755
10756         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10757         and made constant.
10758
10759         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10760         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10761         carry any.
10762
10763         * fe.h (Compiler_Abort): Add third parameter.
10764
10765         * misc.c (internal_error_function): Build third argument from current
10766         input location and pass it to Compiler_Abort.
10767
10768 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
10769
10770         * cstand.adb (Create_Standard): When the target's storage unit size is
10771         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10772         Standard_String.
10773
10774 2007-04-06  Nicolas Roche  <roche@adacore.com>
10775
10776         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10777         absolute path can have the following form: device:/a/b. In this case
10778         '/' should be inserted between the path and the filename.
10779
10780 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10781             Eric Botcazou  <botcazou@adacore.com>
10782
10783         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10784         VAR_DECL to a CONST_DECL we make for a public constant when we know the
10785         corresponding definition has created the so made visible variable.
10786         Handle anonymous access to protected subprogram.
10787         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10788         object with an address clause volatile.  Re-enable original fix.
10789         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10790         too.
10791         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10792         associated with either the Equivalent or Root type, instead of the
10793         naked type node.
10794         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10795         subtree for every field of a global record type.
10796         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10797         discriminants, invoke again variable_size on its newly computed sizes.
10798
10799 2007-04-06  Robert Dewar  <dewar@adacore.com>
10800             Thomas Quinot  <quinot@adacore.com>
10801             Ed Schonberg  <schonberg@adacore.com>
10802             Bob Duff  <duff@adacore.com>
10803
10804         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10805         (Next_Component_Or_Discriminant): New function and procedure
10806         (First_Index, First_Literal, Master_Id,
10807         Set_First_Index, Set_First_Literal, Set_Master_Id):
10808         Add missing Ekind assertions.
10809         (Is_Access_Protected_Subprogram_Type): New predicate.
10810         (Has_RACW): New entity flag, set on package entities to indicate that
10811         the package contains the declaration of a remote accecss-to-classwide
10812         type.
10813         (E_Return_Statement): This node type has the Finalization_Chain_Entity
10814         attribute, in case the result type has controlled parts.
10815         (Requires_Overriding): Add this new flag, because "requires
10816         overriding" is subtly different from "is abstract" (see AI-228).
10817         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10818         Is_Abstract_Type. Make sure these are called only when appropriate.
10819         (Has_Pragma_Unreferenced_Objects): New flag
10820
10821         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10822         class-wide, the tag of the right-hand side must be an exact match, not
10823         an ancestor of that of the object on left-hand side.
10824         (Move_Activation_Chain): New procedure to create the call to
10825         System.Tasking.Stages.Move_Activation_Chain.
10826         (Expand_N_Extended_Return_Statement): Generate code to call
10827         System.Finalization_Implementation.Move_Final_List at the end of a
10828         return statement if the function's result type has controlled parts.
10829         Move asserts to Build_In_Place_Formal.
10830         (Move_Final_List): New function to create the call statement.
10831         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10832         tagged type, replace generation of call to the run-time subprogram
10833         CW_Membership by call to Build_CW_Membership.
10834         (Expand_N_Return_Statement): Replace generation of call to the run-time
10835         subprogram Get_Access_Level by call to Build_Get_Access_Level.
10836         (Expand_N_Simple_Function_Return): Replace generation of call to the
10837         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10838
10839         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10840         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10841         access to protected operations.
10842         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10843         master and chain actual parameters to a build-in-place function call
10844         involving tasks.
10845         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10846         statement.
10847         (Make_Build_In_Place_Call_In_Allocator,
10848         Make_Build_In_Place_Call_In_Anonymous_Context,
10849         Make_Build_In_Place_Call_In_Assignment,
10850         Make_Build_In_Place_Call_In_Object_Declaration): Call
10851         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10852         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10853         stubbed procedure with a null body, replace the call with a null
10854         statement without using the full inlining machinery, for efficiency
10855         and to avoid invalid values in source file table entries.
10856
10857         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10858         renamings of calls to build-in-place functions.
10859
10860         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10861         provides the functionality of RTE_Available to record components.
10862         (RTU_Entity): The function Entity has been renamed to RTU_Entity
10863         to avoid undesired overloading.
10864         (Entity): New subprogram that returns the entity for the referened
10865         unit. If this unit has not been loaded, it returns Empty.
10866         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10867         Remove no longer used entities.
10868         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10869         (RE_Type_Specific_Data): New entity.
10870         (RE_Move_Any_Value): New entity.
10871         (RE_TA_A, RE_Get_Any_Type): New entities.
10872         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10873          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10874          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10875         (Entity): New subprogram that returns the entity for the referened
10876         unit. If this unit has not been loaded, it returns Empty.
10877         (RTE): Addition of a new formal that extends the search to the scopes
10878         of the record types found in the chain of the package.
10879
10880         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10881         "abstract subprograms must be visible" message, whether or not the type
10882         is an interface; that is, remove the special case for interface types.
10883         (Analyze_Function_Return): Remove error message "return of task objects
10884         is not yet implemented" because this is now implemented.
10885         (Create_Extra_Formals): Add the extra master and activation chain
10886         formals in case the result type has tasks.
10887         Remove error message "return of limited controlled objects is not yet
10888         implemented".
10889         (Create_Extra_Formals): Add the extra caller's finalization list formal
10890         in case the result type has controlled parts.
10891         (Process_Formals): In case of access formal types there is no need
10892         to continue with the analysis of the formals if we already notified
10893         errors.
10894         (Check_Overriding_Indicator): Add code to check overriding of predefined
10895         operators.
10896         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10897         flags for formals that do not require them,.
10898         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10899         hidden entity is use visible or directly visible.
10900         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10901         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10902         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10903         New_Overloaded_Entity): Split Is_Abstract flag into
10904         Is_Abstract_Subprogram and Is_Abstract_Type.
10905
10906         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10907         a return statement's finalization list to the caller's list, used for
10908         build-in-place functions with result type with controlled parts.
10909         Remove no longer used entities.
10910
10911         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10912         longer needed, because the full type is now limited, and therefore a
10913         pass-by-reference type.
10914         (Foreign_Task_Level): New constant.
10915
10916         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10917         move tasks from the activation chain belonging to a return statement to
10918         the one passed in by the caller, and update the master to the one
10919         passed in by the caller.
10920         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10921         of unactivated tasks, so we don't kill the ones that are being returned
10922         by a build-in-place function.
10923         (Create_Task): Ignore AI-280 for foreign threads.
10924
10925 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10926             Robert Dewar  <dewar@adacore.com>
10927             Bob Duff  <duff@adacore.com>
10928             Gary Dismukes  <dismukes@adacore.com>
10929
10930         * errout.adb (Unwind_Internal_Type): Use predicate
10931         Is_Access__Protected_Subprogram_Type.
10932
10933         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10934         (Freeze_Entity, packed array case): Do not override explicitly set
10935         alignment and size clauses.
10936         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
10937         the enclosing subprogram is a child unit body that acts as a spec.
10938         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10939         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10940         Remove all code for DSP option
10941
10942         * layout.adb (Layout_Record_Type): Use First/
10943         Next_Component_Or_Discriminant
10944         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10945         to handle properly the anonymous access case.
10946
10947         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10948         for all access attributes, because overload resolution should work the
10949         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10950         causes the error message for the ambiguous "X'Access = Y'Access" and
10951         "X'Unrestricted_Access = Y'Access" and so forth to match.
10952         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10953         now that anonymous access to protected operations have their own kind.
10954         (Resolve_Attribute): In case of dispatching call check the violation of
10955         restriction No_Dispatching_Calls.
10956         (Check_Array_Type): Check new -gnatyA array index style option
10957
10958         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10959         attempt to derive from a synchronized tagged type.
10960         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10961         type, inherit the class-wide type already created, because it may
10962         already have been used in a self-referential anonymous access component.
10963         (Mentions_T): Recognize self-referential anonymous access components
10964         that use (a subtype of) the class-wide type of the enclosing type.
10965         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10966         Derived_Type for Prev formal on call to
10967         Check_Anonymous_Access_Components rather than Empty.
10968         (Make_Incomplete_Type_Declaration): Add test for case where the type has
10969         a record extension in deciding whether to create a class-wide type,
10970         rather than just checking Tagged_Present.
10971         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10972         to stand-alone object declarations as well as component declarations.
10973         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10974         prevent accidental overwriting when enclosing package appears in
10975         a limited_with_clause.
10976         (Array_Type_Declaration): If the component type is an anonymous access,
10977         the associated_node for the itype is the type declaration itself.
10978         (Add_Interface_Tag_Components): Modified to support concurrent
10979         types with abstract interfaces.
10980         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10981         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10982         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10983         to complete the decoration of synchronized interface types. Add also
10984         a call to Check_Abstract_Interfaces to verify the ARM rules.
10985         (Derive_Interface_Subprograms): Modified to support concurrent types
10986         with abstract interfaces.
10987         (Analyze_Subtype_Indication): Resolve the range with the given subtype
10988         mark, rather than delaying the full resolution depending on context.
10989         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10990         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10991         Array_Type_Declaration,Build_Derived_Record_Type,
10992         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10993         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10994         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10995         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10996         called only when appropriate.
10997         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10998         to private type.
10999         (Analyze_Subtype_Declaration): For an access subtype declaration, create
11000         an itype reference for the anonymous designated subtype, to prevent
11001         scope anonmalies in gigi.
11002         (Build_Itype_Reference): New utility, to simplify construction of such
11003         references.
11004
11005 2007-04-06  Vincent Celier  <celier@adacore.com>
11006
11007         * errutil.adb (Initialize): Initialize warnings table, if all warnings
11008         are suppressed, supply an initial dummy entry covering all possible
11009         source locations.
11010
11011         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
11012         and start with only one, such as "-RTS=none".
11013         (Collect_Arguments): Do not check for sources outside of projects.
11014         Do not collect arguments if project is externally built.
11015         (Compile_Sources): Do nothing, not even check if the source is up to
11016         date, if its project is externally built.
11017         (Compile): When compiling a predefined source, add -gnatpg
11018         as the second switch, after -c.
11019         (Compile_Sources): Allow compilation of Annex J renames without -a
11020         (Is_In_Object_Directory): Check if the ALI file is in the object
11021         even if there is no project extension.
11022         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
11023         gnatbind if the ALI file effectively exists.
11024         (Initialize): Add the directory where gnatmake is invoked in front of
11025         the path if it is invoked from a bin directory, even without directory
11026         information, so that the correct GNAT tools will be used when spawned
11027         without directory information.
11028
11029         * makeusg.adb: Change switch -S to -eS
11030         Add lines for new switches -we, -wn and -ws
11031         Add line for new switch -p
11032
11033         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
11034         Treat_As_Error and there are warnings.
11035
11036         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
11037         -gnatww Change gnatmake switch -S to -eS
11038         (Scan_Make_Switches): Code reorganisation. Process separately multi
11039         character switches and single character switches.
11040         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
11041         False when switch is not recognized by gnatmake.
11042         (Scan_Make_Switches): Set Setup_Projects True when -p or
11043         --create-missing-dirs is specified.
11044
11045         * fname.adb (Is_Predefined_File_Name): Return True for annex J
11046         renamings Calendar, Machine_Code, Unchecked_Conversion and
11047         Unchecked_Deallocation only when Renamings_Included is True.
11048
11049         * par.adb: Allow library units Calendar, Machine_Code,
11050         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
11051         when -gnatg is not specified.
11052         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11053         there is no need to generate always a record_definition_node in case
11054         of synchronized interface types.
11055         (SIS_Entry_Active): Initialize global variable to False
11056         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
11057         indicate cases where AI-447 says "not null" is legal.
11058
11059         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
11060
11061         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
11062         files with with several lines starting with the object fileb name.
11063         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
11064         is specified.
11065         (Initialize): Add the directory where gprmake is invoked in front of the
11066         path, if it is invoked from a bin directory or with directory
11067         information, so that the correct GNAT tools will be used when invoked
11068         directly.
11069         (Check_Compilation_Needed): Process correctly backslashes on Windows.
11070
11071         * vms_data.ads: Update switches/qualifiers
11072
11073 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11074             Thomas Quinot  <quinot@adacore.com>
11075
11076         * exp_aggr.adb:
11077         If the array component is a discriminated record, the array aggregate
11078         is non-static even if the component is given by an aggregate with
11079         static components.
11080         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
11081         (Convert_Aggr_In_Allocator): If the allocator is for an access
11082         discriminant and the type is controlled. do not place on a finalization
11083         list at this point. The proper list will be determined from the
11084         enclosing object.
11085         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
11086         initialize record controller if needed, before the components, to ensure
11087         that they are properly finalized.
11088         (Build_Record_Aggr_Code): For the case of an array component that has a
11089         corresponding array aggregate in the record aggregate, perform sliding
11090         if required.
11091
11092 2007-04-06  Javier Miranda  <miranda@adacore.com>
11093             Gary Dismukes  <dismukes@adacore.com>
11094             Ed Schonberg  <schonberg@adacore.com>
11095
11096         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
11097         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
11098
11099         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
11100         accessibility on class-wide allocators if the allocator occurs at the
11101         same scope level as the allocator's type. The check is guaranteed to
11102         succeed in that case, even when the expression originates from a
11103         parameter of the containing subprogram.
11104         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
11105         under No_Dispatching_Calls restriction. During the semantic analysis
11106         we already notified such violation.
11107         (Tagged_Membership): Constant folding. There is no need to check
11108         the tag at run-time if the type of the right operand is non
11109         class-wide abstract.
11110         Replace call to Is_Ancestor by call to Is_Parent
11111         to support concurrent types with interface types.
11112         (Expand_N_Allocator): Add an assertion associated with the generation
11113         of the master_id.
11114         (Expand_N_Slice): Do not enable range check to nodes associated
11115         with the frontend expansion of the dispatch table.
11116         (Is_Local_Access_Discriminant): Subsidiary function to
11117         Expand_N_Allocator.
11118         (Tagged_Membership): Replace generation of call to the run-time
11119         subprogram CW_Membership by call to Build_CW_Membership.
11120         (Expand_Allocator_Expression): Replace generation of call to the
11121         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
11122
11123         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
11124         initialize most the TSD components by means of an aggregate.
11125         Modify the declaration of the object containing the TSD
11126         because we now expand code that has a higher level of abstraction.
11127         The TSD has a discriminant containing the Inheritance Depth Level,
11128         value that is used in the membership test but also to fix the size
11129         of the table of ancestors.
11130         (Expand_Interface_Conversion): Insert function body at the closest place
11131         to the conversion expression, to prevent access-before-elaboration
11132         errors in the backend.
11133         Code improved to reduce the size of the dispatch table if
11134         compiling under restriction No_Dispatching_Calls plus code cleanup.
11135         Code reorganization plus removal of calls to Set_Num_Prim_Ops
11136         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
11137         (Expand_Dispatching_Call): Minor code reorganization plus addition of
11138         code to return immediately if compiling under No_Dispatching_Calls
11139         restriction.
11140         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
11141         CPP_Virtual and CPP_Vtable are no longer supported.
11142         (Expand_Interface_Conversion): Add missing support for interface type
11143         derivations.
11144         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
11145         Is_Parent to support concurrent types with interfaces.
11146         (Init_Predefined_Interface_Primitives): Removed.
11147         (Make_Secondary_DT): Modified to support concurrent record types.
11148         (Set_All_DT_Position): Modified to support concurrent record types.
11149         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11150         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
11151         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
11152         with CW_Membership.
11153         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11154         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
11155         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
11156         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
11157         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
11158         (Expand_Dispatching_Call): Replace generation of call to the run-time
11159         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
11160         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
11161         Address.
11162         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
11163         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
11164         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
11165         Build_Set_Prim_Op_Address.
11166         (Get_Remotely_Callable): Subprogram removed.
11167         (Init_Predefined_Interface_Primitives): Replace generation of call to
11168         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
11169         Prims.
11170
11171         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
11172         First (Parameter_Associations ()) with the call to First_Actual that
11173         returns an actual parameter expression for both named and positional
11174         associations.
11175
11176         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
11177         check violation of restriction No_Dispatching_Calls.
11178         (Check_Controlling_Type): A formal of a tagged incomplete type is a
11179         controlling argument.
11180
11181         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
11182         First/Next_Component_Or_Discriminant
11183         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
11184         (Find_Implemented_Interface): Removed. All the calls to this subprogram
11185         specify Any_Limited_Interface, and this functionality is already
11186         provided by the function Has_Abstract_Interfaces.
11187         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
11188         support concurrent types implementing interfaces.
11189         (Find_Implemented_Interface): Removed. All the calls to this subprogram
11190         specify kind Any_Limited_Interface, and this functionality is already
11191         provided by the function Has_Abstract_Interfaces.
11192         (Remove_Side_Effects): replace Controlled_Type by
11193         CW_Or_Controlled_Type whenever the issue is related to
11194         using or not the secondary stack.
11195
11196         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
11197         P_Interface_Type_Definition to fulfill the new interface (the formal
11198         Is_Synchronized is no longer required).
11199
11200         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
11201         Update dependencies.
11202
11203         * exp_atag.ads, exp_atag.adb: New file
11204
11205 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11206             Bob Duff  <duff@adacore.com>
11207             Cyrille Comar  <comar@adacore.com>
11208
11209         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
11210         anonymous, use finalization list of enclosing dynamic scope.
11211         (Expand_N_Package_Declaration): For a library package declaration
11212         without a corresponding body, generate RACW subprogram bodies in the
11213         spec (just as we do for the task activation call).
11214         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
11215         Is_Abstract_Type. Make sure these are called only when appropriate.
11216         Remove all code for DSP option
11217         (CW_Or_Controlled_Type): new subprogram.
11218
11219 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11220             Ed Schonberg  <schonberg@adacore.com>
11221             Gary Dismukes  <dismukes@adacore.com>
11222
11223         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
11224         parameter. If it is set to true, return a result capped according to
11225         the global upper bound for the index of an entry family.
11226         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
11227         (Build_Find_Body_Index): Adjust for above change.
11228         (Entry_Index_Expression): Likewise.
11229         (Is_Potentially_Large_Family): New function extracted from...
11230         (Collect_Entry_Families): ...here. Call it to detect whether the family
11231         is potentially large.
11232         (Build_Entry_Count_Expression): If the family is potentially large, call
11233         Family_Size with 'Cap' set to true.
11234         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
11235         a protected version of an operation declared in the private part of
11236         a protected object, because they may be invoked through a callback.
11237         (Set_Privals): If the type of a private component is an anonymous access
11238         type, do not create a new itype for each protected body.
11239         If the body of a protected operation creates
11240         controlled types (including allocators for class-widetypes), the
11241         body of the corresponding protected subprogram must include a
11242         finalization list.
11243         (Build_Activation_Chain_Entity): Build the chain entity for extended
11244         return statements.
11245         (Type_Conformant_Parameters): Use common predicate Conforming_Types
11246         to determine whether operation overrides an inherited primitive.
11247         (Build_Wrapper_Spec): Add code to examine the parents while looking
11248         for a possible overriding candidate.
11249         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
11250         hold an actual parameter value since its initialization is separated
11251         from the the declaration. Prevents errors on null-excluding access
11252         formals.
11253
11254 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11255             Pablo Oliveira  <oliveira@adacore.com>
11256
11257         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
11258         Do an Unchecked_Conversion to handle the passage from the Underlying
11259         Type to the Base Type when calling Build_To_Any_Call and
11260         Build_From_Any_Call.
11261         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
11262         E_Constant, depending upon Variable formal.
11263         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11264         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
11265         parameter that requires an extra constrained parameter, declare
11266         temporary for actual as a variable, not a constant.
11267         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
11268         the unit being compiled is the one that contains the stub type.
11269         Change primitive operation name for the RACW associated with a RAS
11270         from Call to _Call so it cannot clash with any legal identifier.
11271         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
11272         Is_RAS.
11273         (Append_RACW_Bodies): New subprogram.
11274         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
11275         Add_Receiving_Stubs_To_Declarations functions.
11276         When expanding a package body, this list correspond to the
11277         statements in the HSS at the end of the pacakge.
11278         When expanding a package spec, this list correspond to the
11279         spec declarations.
11280         (Add_Receiving_Stubs_To_Declarations): Append the function
11281         registering the receiving stubs at the end of the 'Stmts' list.
11282         (RCI_Package_Locator): Pass the new Version generic formal when
11283         instantiating a RCI_Locator package.
11284         (Build_From_Any_Function): To compute the High bound for an
11285         unconstrained array actual, we add the Low bound with the length.
11286         Thus we must convert the low bound and the length to an appropriate
11287         type before doing the sum.
11288         (Build_Subprogram_Receiving_Stubs, PolyORB):
11289          * Retrieve the extra formals parameters at the
11290            end of the parameter stream.
11291          * Use Move_Any_Value to write back out parameters
11292            after executing the request as it is more efficient
11293            than Copy_Any_Value.
11294          * Build the any containing Extra Formals with the
11295            appropriate typecode.
11296         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
11297         empty Component_List.
11298         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
11299         the tree the declaration for an object that serves as actual parameter
11300         in server-side stubs.
11301         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11302         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11303         Use Build_Actual_Object_Declaration to prepare the actuals.
11304         (Add_Parameter_To_NVList): Set the parameter mode to In for
11305         Extra Constrained Parameters.
11306         (Build_General_Calling_Stubs): Set the parameter type to boolean for
11307         Extra Constrained parameters.
11308         (Build_To_Any_Function, Build_From_Any_Function,
11309         Built_TypeCode_Function): When Typ is implicit, call the correct
11310         function with the first not implicit parent type.
11311         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
11312         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
11313         typecode from the Etype. Therefore we retrieve the correct typecode
11314         with a call to Get_Any_Type.
11315         (Copy_Specification): Do controlling formal type substitution based on
11316         Is_Controlling_Formal flag, instead of caller-provided object type.
11317         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
11318         a RACW primitive operation, we might get a subprogram declaration for an
11319         ancestor of the RACW designated type (not for the designated type
11320         itself), in the case where this operation is inherited. In this case we
11321         have no easy means of determining the original tagged type for which
11322         the primitive was declared, so instead we now rely on
11323         Copy_Specification to use the Is_Controlling_Formal flag to determine
11324         which formals require type substitution.
11325
11326 2007-04-06  Robert Dewar  <dewar@adacore.com>
11327             Ed Schonberg  <schonberg@adacore.com>
11328
11329         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11330         GNAT.Current_Exception are not allowed if pragma Restrictions
11331         (No_Exception_Propagation) is set and in any case make the associated
11332         handler unsuitable as a target for a local raise statement.
11333         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11334         run-time subprogram CW_Membership by call to Build_CW_Membership.
11335         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11336         by a function call, a temporary must be created before expanding the
11337         Constructor_Call itself, to prevent out-of-order elaboration in the
11338         back-end when stack checking is enabled..
11339
11340 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11341
11342         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11343         result are the bounds of the left operand, not the right.
11344
11345 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11346
11347         * exp_strm.adb
11348         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11349          discriminant defaults.
11350         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11351         (Make_Component_List_Attributes): Ditto.
11352
11353 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11354             Bob Duff  <duff@adacore.com>
11355
11356         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11357         an association with a box as providing a value even though the
11358         initialization procedure for the type is not available.
11359         (Resolve_Record_Aggregate): Check that a choice of an association with a
11360         box corresponds to a component of the type.
11361         (Resolve_Record_Aggregate): Split Is_Abstract flag into
11362         Is_Abstract_Subprogram and Is_Abstract_Type.
11363
11364         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11365         assert.
11366
11367         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11368         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11369         called only when appropriate.
11370
11371 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11372
11373         * g-alleve.ads (Low Level Vector type definitions): Map each to the
11374         associated vector view instead of all to the unsigned char view.
11375
11376         * g-altcon.adb (Generic_Conversions): New internal generic package,
11377         offering facilities for all the Vector/View conversion routines
11378         implemented by this unit.
11379         (To_View/To_Vector - all versions): Reimplemented in a systematic
11380         manner, using the internal Generic_Conversions facilities.
11381
11382 2007-04-06  Pascal Obry  <obry@adacore.com>
11383
11384         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11385         string.
11386         (Create): Free the source string before storing the new one.
11387
11388 2007-04-06  Vincent Celier  <celier@adacore.com>
11389
11390         * g-debpoo.adb (Validity): New package with a complete new
11391         implementation of subprograms Is_Valid and Set_Valid.
11392         (Is_Valid): Move to local package Validity
11393         (Set_Valid): Move to local package Validity
11394
11395 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11396             Pablo Oliveira  <oliveira@adacore.com>
11397
11398         * g-expect.adb (Get_Command_Output): When expanding the output buffer
11399         we must ensure that there is enough place for the new data we are going
11400         to copy in.
11401
11402 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11403
11404         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11405         computation.
11406
11407 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
11408             Vincent Celier  <celier@adacore.com>
11409
11410         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11411         (Stack_String): Add this String that contains the name of the Stack
11412         package in the project file.
11413         (Packages_To_Check_By_Stack): Add this list that contains the packages
11414         to be checked by gnatstack, which are the naming and the stack packages.
11415         (Check_Files): If no .ci files were specified for gnatstack we add all
11416         the .ci files belonging to the projects, including binder generated
11417         files.
11418         (Non_VMS_Usage): Document that gnatstack accept project file switches.
11419         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11420         Add gnatstack to the list of commands that use project file related
11421         switches, and get the single attribute Switches from the stack package
11422         in a project file when calling gnatstack. Parse the -U flag for
11423         processing files belonging to all projects in the project tree.
11424         Remove all processing for command Setup
11425
11426         * prj-attr.adb: Add new package Stack with single attribute Switches
11427
11428         * vms_conv.ads (Command_Type): Add command Stack.
11429         Move to body declarations that are only used in the body: types Item_Id,
11430         Translation_Type, Item_Ptr, Item and its subtypes.
11431
11432         * vms_conv.adb: (Initialize): Add data for new command Stack.
11433         Add declarations moved from the spec: types Item_Id, Translation_Type,
11434         Item_Ptr, Item and its subtypes.
11435         (Cargs_Buffer): New table
11436         (Cargs): New Boolean global variable
11437         (Process_Buffer): New procedure to create arguments
11438         (Place): Put character in table Buffer or Cargs_Buffer depending on the
11439          value of Cargs.
11440         (Process_Argument): Set Cargs when processing qualifiers for GNAT
11441         COMPILE
11442         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11443         empty, for table Cargs_Buffer.
11444         (Initialize): Remove component Setup in Command_List
11445
11446 2007-04-06  Vincent Celier  <celier@adacore.com>
11447
11448         * gprep.adb (Process_Files.Process_One_File): Use full file name when
11449         issuing pragma Source_Reference.
11450
11451 2007-04-06  Emmanuel Briot  <briot@adacore.com>
11452
11453         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11454         [[:xdigit:]] character class.
11455         Also raise an exception when an invalid character class is used.
11456
11457 2007-04-06  Pascal Obry  <obry@adacore.com>
11458
11459         * i-cstrea.ads: (fopen): Add encoding parameter.
11460         (freopen): Idem.
11461         Change reference from a-sysdep.c to sysdep.c in comment.
11462         Update copyright notice.
11463         This set of patch add support for the encoding form parameter.
11464
11465         * mingw32.h (S2WSU): New macro to convert from a string to a
11466         wide-string using the UTF-8 encoding. The S2WS macro supports now only
11467         standard 8bits encoding.
11468         (WS2SU): As above but converting from wide-sring to string.
11469         This is needed as it is necessary to have access to both versions in the
11470         runtime for the form parameter encoding support.
11471         This set of patch add support for the encoding form parameter.
11472         (S2WS): Improve implementation to handle cases where the filename is not
11473         UTF-8 encoded. In this case we default to using the current code page
11474         for the conversion.
11475
11476         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11477         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11478         the constants defined in adaint.h.
11479         (fopen): Add encoding parameter.
11480         (freopen): Idem.
11481
11482         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11483         encoding. This is needed for the Reset routine (freopen low level-call).
11484
11485         * s-fileio.adb (Open): Decode encoding form parameter and set the
11486         corresponding encoding value into AFCB structure.
11487         (Reset): Pass the encoding value to freopen.
11488         (Close): Move the call to Lock_Task to the beginning of the procedure.
11489
11490 2007-04-06  Geert Bosch  <bosch@adacore.com>
11491             Robert Dewar  <dewar@adacore.com>
11492
11493         * i-fortra.ads: Add Double_Complex type.
11494
11495         * impunit.adb: (Is_Known_Unit): New function
11496         Add Gnat.Byte_Swapping
11497         Add GNAT.SHA1
11498         Add new Ada 2005 units
11499         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11500         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11501         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11502         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11503
11504         * impunit.ads (Is_Known_Unit): New function
11505
11506         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11507         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11508         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11509         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11510         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11511         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11512         New files.
11513
11514         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11515
11516         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11517
11518 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11519             Arnaud Charlet  <charlet@adacore.com>
11520
11521         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11522         __gnat_adjust_context_for_raise.
11523         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11524         implementation of floating point operations as native x86 targets.
11525         So the FPU should be initialized in the same way using finit. Fix
11526         floating point operations accuracy issues.
11527         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11528         member in struct sigaction, so as to avoid warning for incompatible
11529         pointer types.
11530
11531 2007-04-06 Serguei Rybin  <rybin@adacore.com>
11532
11533         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11534         switches from previously loaded tree
11535
11536 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11537
11538         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11539         cases where a given dependency has a body or not.
11540         (Write_With_File_Names): New subprogram, common code for the two cases
11541         above.
11542
11543 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11544             Javier Miranda  <miranda@adacore.com>
11545
11546         * lib-xref.ads, lib-xref.adb: 
11547         Modify the loop that collects type references, to include interface
11548         types that the type implements. List each of these interfaces when
11549         building the entry for the type.
11550         (Generate_Definition): Initialize component Def and Typ of new entry
11551         in table Xrefs, to avoid to have these components unitialized.
11552         (Output_References): Split Is_Abstract flag into
11553         Is_Abstract_Subprogram and Is_Abstract_Type.
11554         (Generate_Reference): Add barrier to do not generate the warning
11555         associated with Ada 2005 entities with entities generated by the
11556         expander.
11557
11558 2007-04-06  Robert Dewar  <dewar@adacore.com>
11559             Arnaud Charlet  <charlet@adacore.com>
11560             Vincent Celier  <celier@adacore.com>
11561
11562         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11563         Update 'Exception Handling Control' chapter which was outdated.
11564         Minor fix to documentation of -gnatwq
11565         Remove section "Adapting the Run Time to a New C++ Compiler" because
11566         it is now obsolete.
11567         Add passage on need of -nostart-files in some non-ada-main cases.
11568         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11569         Update documentation about Interfacing with C++
11570         Add documentation for new gnatmake switch -p
11571         Add missing protocol part in URLs.
11572         Document -gnatyA
11573         Document pragma Compile_Time_Error
11574         Add documentation for Object_Size indicating that stand alone
11575         objects can have a larger size in some cases.
11576         Add node for GNAT.Byte_Swapping, GNAT.SHA1
11577         Update reference to the Ravenscar profile.
11578         Document pragma Unreferenced_Objects
11579
11580         * gnat-style.texi: Fix typo
11581
11582 2007-04-06  Vincent Celier  <celier@adacore.com>
11583
11584         * mlib.adb (Building_Library): Only output "building a library..." in
11585         verbose mode
11586
11587         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11588         files in verbose mode.
11589
11590         * mlib-utl.adb (Ar): Only output the first object files when not in
11591         verbose mode.
11592         (Gcc): Do not display all the object files if not in verbose mode, only
11593         the first one.
11594
11595 2007-04-06  Robert Dewar  <dewar@adacore.com>
11596
11597         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11598         it no longer destroys the contents of Name_Buffer or Name_Len and
11599         non-standard and invalid names are handled better.
11600         (Get_Decoded_Name_String): Improve performance by using
11601         Name_Has_No_Encodings flag in the name table.
11602         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11603         Used for debugging printouts.
11604
11605 2007-04-06  Robert Dewar  <dewar@adacore.com>
11606             Javier Miranda  <miranda@adacore.com>
11607             Bob Duff  <duff@adacore.com>
11608
11609         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11610         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11611         there is no need to generate always a record_definition_node in case
11612         of synchronized interface types.
11613         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11614         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11615         illegal in Ada 95, in cases where it is legal. Change the warnings to
11616         errors in other cases. Don't give the error unless the "not null"
11617         parses properly. Correct the source position at which the error occurs.
11618         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11619         P_Null_Exclusion, to suppress "not null" warnings.
11620         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11621         associated goto statements.
11622
11623         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11624         of END RECORD
11625
11626         * scans.ads (Type_Token_Location): New flag
11627
11628         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11629         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11630         P_Null_Exclusion, to suppress "not null" warnings.
11631
11632 2007-04-06  Robert Dewar  <dewar@adacore.com>
11633             Javier Miranda  <miranda@adacore.com>
11634             Bob Duff  <duff@adacore.com>
11635             Vincent Celier  <celier@adacore.com>
11636
11637         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11638         (Extensions_Allowed): No longer sets Ada_Version
11639         Entry for pragma Unreferenced_Objects
11640
11641         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11642         system.tasking if pragma priority used in a procedure
11643         (Analyze_Pragma, case Warning): Handle dot warning switches
11644         (Process_Compile_Time_Warning_Or_Error): New procedure
11645         (Analyze_Pragma): Add processing for Compile_Time_Error
11646         Add support for extra arguments External_Name and Link_Name.
11647         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11648         (Process_Import_Or_Interface): Add support for the use of pragma Import
11649         with tagged types.
11650         (Extensions_Allowed): No longer affects Ada_Version
11651         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11652         Is_Abstract_Type. Make sure these are called only when appropriate.
11653         Add processing for pragma Unreferenced_Objects
11654
11655         * snames.h, snames.ads, snames.adb: Add entry for pragma
11656         Compile_Time_Error
11657         Add new standard name Minimum_Binder_Options for new gprmake
11658         Add new standard names for gprmake: Archive_Suffix,
11659         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11660         Library_Support, Library_Version_Options,
11661         Shared_Library_Minimum_Options,
11662         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11663         Change Name_Call to Name_uCall so that it cannot clash with a legal
11664         subprogram name.
11665         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11666         Append C_Plus_Plus to convention identifiers as synonym for CPP
11667         Add new standard names Stack and Builder_Switches
11668         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11669         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11670         Run_Path_Option, Toolchain_Version.
11671         Entry for pragma Unreferenced_Objects
11672
11673         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11674         switches, without repetition of "eD". Make sure that last character of
11675         -gnatep= switch is not taken as -gnat switch character.
11676         Complete rewrite of circuit for handling saving compilation options
11677         Occasioned by need to support dot switchs for -gnatw, but cleans up
11678         things in general.
11679         -gnatX does not affect Ada_Version
11680         Include -gnatyA in -gnatg style switches
11681
11682         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11683         warnings on return objects.
11684         (Warn_On_Useless_Assignment): Exclude warnings on return objects
11685         (Set_Dot_Warning_Switch): New procedure
11686         (Check_References): Add missing case of test for
11687         Has_Pragma_Unreferenced_Objects
11688         (Output_Unreferenced_Messages): Implement effect of new pragma
11689         Unreferenced_Objects, remove special casing of limited controlled
11690         variables.
11691
11692 2007-04-06  Vincent Celier  <celier@adacore.com>
11693
11694         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11695         the default project path, initially done during elaboration of the
11696         package.
11697         If the prefix returned by Sdefault is null, get the prefix from a call
11698         to Executable_Prefix_Path.
11699         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11700         null.
11701
11702         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11703         canonical directory name to open the directory from which files are
11704         retrieved.
11705         (Record_Other_Sources): Idem.
11706         (Locate_Directory): Add the possibility to create automatically missing
11707         directories when Setup_Projects is True.
11708         Call Locate_Directory so that the directory will be created when
11709         Setup_Projects is True, for object dir, library dir, library ALI dir,
11710         library source copy dir and exec dir.
11711
11712         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11713         versions of GNAT.
11714
11715 2007-04-06  Robert Dewar  <dewar@adacore.com>
11716
11717         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11718         Use First/Next_Component_Or_Discriminant
11719         (Analyze_Record_Representation_Clause):
11720         Use First/Next_Component_Or_Discriminant
11721         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11722         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11723         definition if type is unconstrained.
11724         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11725         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11726         Is_Abstract_Subprogram and Is_Abstract_Type.
11727         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11728
11729         * repinfo.adb (List_Record_Info): Use First/
11730         Next_Component_Or_Discriminant.
11731
11732         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11733         New procedure.
11734
11735         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11736         Include -gnatyA in default switches
11737
11738         * opt.ads: (Warn_On_Non_Local_Exception): New flag
11739         (Warn_On_Reverse_Bit_Order): New flag
11740         (Extensions_Allowed): Update the documentation.
11741         (Warn_On_Questionable_Missing_Parens): Now on by default
11742
11743         * usage.adb: Add documentation of -gnatw.x/X switches
11744         Document new -gnatyA style switch
11745         -gnatq warnings are on by default
11746
11747 2007-04-06  Ed Falis  <falis@adacore.com>
11748
11749         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11750         full word is no longer compared twice.
11751
11752 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11753
11754         * sem_ch10.adb (Install_Limited_Context_Clauses.
11755         Expand_Limited_With_Clause): Use a new copy of selector name in the
11756         call to Make_With_Clause. This fixes the tree structure for ASIS
11757         purposes. Nothing is changed in the compiler behaviour.
11758         (Process_Body_Clauses): Handle properly use clauses whose prefix is
11759         a package renaming.
11760         (Install_Limited_With_Clauses): Do not install non-limited view when it
11761         is still incomplete.
11762
11763 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11764             Gary Dismukes  <dismukes@adacore.com>
11765
11766         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11767         when capturing size information, instead of base type, which for a
11768         formal array type will be the unconstrained type.
11769         (Analyze_Formal_Object_Declaration): Add check for illegal default
11770         expressions for a formal in object of a limited type.
11771         (Instantiate_Object): Ditto.
11772         (Check_Formal_Package_Instance): Skip entities that are formal objects,
11773         because they were defaulted in the formal package and no check applies
11774         to them.
11775         (Check_Formal_Package_Instance): Extend conformance check to other
11776         discrete types beyond Integer.
11777         (Process_Default): Copy directly the unmatched formal. A generic copy
11778         has already been performed in Analyze_Formal_Package.
11779         (Analyze_Associations): If a formal subprogram has no match, check for
11780         partial parametrization before looking for a default, to prevent
11781         spurious errors.
11782         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11783         not set the instantiation environment before analyzing the actuals.
11784         Fixes regression on 8515-003 with implementation of AI-133.
11785         Set_Instance_Env checks whether the generic unit is a predefined
11786         unit, in which case the instance must be analyzed with the latest Ada
11787         mode. This setting must take place after analysis of the actuals,
11788         because the actuals must be analyzed and frozen in the Ada mode extant
11789         outside of the current instantiation.
11790         (Save_Env, Restore_Env): Preserve and restore the configuration
11791         parameters so that predefined units can be compiled in the proper Ada
11792         mode.
11793         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11794         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11795         and Is_Abstract_Type.
11796         (Analyze_Formal_Package): For better error recovery, Add exception
11797         handler to catch Instantion_Error, which can be raised in
11798         Analyze_Associations
11799
11800 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11801             Bob Duff  <duff@adacore.com>
11802             Gary Dismukes  <dismukes@adacore.com>
11803
11804         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11805         prefix type is a discriminated subtype of the type of the formal.
11806         (Analyze_Allocator): Collect all coextensions regardless of the context.
11807         Whether they can be allocated statically is determined in exp_ch4.
11808         (Analyze_Selected_Component): If the prefix is a limited view and the
11809         non-limited view is available, use the non-limited one.
11810         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11811         therefore illegal), suggest a qualified expression rather than a type
11812         conversion, because a type conversion would be illegal in this context.
11813         (Anayze_Allocator): Trace recursively all nested allocators so that all
11814         coextensions are on the corresponding list for the root. Do no mark
11815         coextensions if the root allocator is within a declaration for a stack-
11816         allocated object, because the access discriminants will be allocated on
11817         the stack as well.
11818         (Analyze_Call): Remove restriction on calls to limited functions for the
11819         cases of generic actuals for formal objects, defaults for formal objects
11820         and defaults for record components.
11821         (Analyze_Allocator): Before analysis, chain coextensions on the proper
11822         element list. Their expansion is delayed until the enclosing allocator
11823         is processed and its finalization list constructed.
11824         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11825         for an operation with the given name among the primitive operations of
11826         the corresponding record type.
11827         (Analyze_Selected_Component): If the prefix is a task type that
11828         implements an interface, and there is no entry with the given name,
11829         check whether there is another primitive operation (e.g. a function)
11830         with that name.
11831         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11832         properly the indexing of a function call written in prefix form, where
11833         the function returns an array type, and all parameters of the function
11834         except the first have defaults.
11835         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11836         the original operands, rather than relocating them, for efficiency and
11837         to work properly when an operand is overloaded.
11838         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11839         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11840         (Analyze_Selected_Component): If the prefix is a private extension, only
11841         scan the visible components, not those of the full view.
11842         (Try_Primitive_Operation): If the operation is a procedure, collect all
11843         possible interpretations, as for a function, because in the presence of
11844         classwide parameters several primitive operations of the type can match
11845         the given arguments.
11846
11847 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11848             Robert Dewar  <dewar@adacore.com>
11849
11850         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11851         tag-indeterminate call to an abstract function, when the left-hand side
11852         is not classwide.
11853         (Analyze_Loop_Statement): Improve detection of infinite loops
11854
11855 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11856             Thomas Quinot  <quinot@adacore.com>
11857
11858         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11859         out of Analyze_Package_Declaration, because processing must be applied
11860         to package bodies as well, for deferred constants completed by pragmas.
11861         (Analyze_Package_Declaration): When the package declaration being
11862         analyzed does not require an explicit body, call Check_Completion.
11863         (May_Need_Implicit_Body): An implicit body is required when a package
11864         spec contains the declaration of a remote access-to-classwide type.
11865         (Analyze_Package_Body): If the package contains RACWs, append the
11866         pending subprogram bodies generated by exp_dist at the end of the body.
11867         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11868         Is_Abstract_Subprogram and Is_Abstract_Type.
11869         (Preserve_Full_Attributes): The full entity list is not an attribute
11870         that must be preserved from full to partial view.
11871
11872         * sem_dist.adb (Add_RAS_Dereference_TSS):
11873         Change primitive name to _Call so it cannot clash with any legal
11874         identifier, and be special-cased in Check_Completion.
11875         Mark the full view of the designated type for the RACW associated with
11876         a RAS as Comes_From_Source to get proper view switching when installing
11877         private declarations.
11878         Provite a placeholder nested package body along with the nested spec
11879         to have a place for Append_RACW_Bodies to generate the calling stubs
11880         and stream attributes.
11881
11882 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11883             Robert Dewar  <dewar@adacore.com>
11884
11885         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11886         that is a limited view, check the non-limited view if available.
11887         (Undefined): Refine error message for missing with of Text_IO
11888         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11889         to distinguish real missing with cases.
11890         Fix format of all missing with messages
11891         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11892         renaming as body when renamed entity is abstract.
11893
11894 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11895             Javier Miranda  <miranda@adacore.com>
11896
11897         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11898         predicate recursive, to handle complex expressions on literals whose
11899         spurious ambiguity comes from the abstract interpretation of some
11900         subexpression.
11901         (Interface_Present_In_Ancestor): Add support to concurrent record
11902         types.
11903         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11904         Is_Abstract_Subprogram and Is_Abstract_Type.
11905
11906 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11907             Javier Miranda  <miranda@adacore.com>
11908
11909         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11910         dereference of a local object R created as a reference to another
11911         object O, use the access level of O.
11912         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11913         rather than local Same_Formal_Type, to check whether protected operation
11914         overrides an inherited one.
11915         (Same_Formal_Type): New predicate, used when matching signatures of
11916         overriding synchronized operations, to handle the case when a formal
11917         has a type that is a generic actual.
11918         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11919         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11920         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11921         syntactic ambiguities involving indexing of function calls that return
11922         arrays.
11923         (Abstract_Interface_List): New subprogram that returns the list of
11924         abstract interfaces associated with a concurrent type or a
11925         concurrent record type.
11926         (Interface_Present_In_Parent): New subprogram used to check if a
11927         given type or some of its parents implement a given interface.
11928         (Collect_Abstract_Interfaces): Add support for concurrent types
11929         with interface types.
11930         (Has_Abstract_Interfaces): Add support for concurrent types with
11931         interface types.
11932         (Is_Parent): New subprogram that determines whether E1 is a parent
11933         of E2. For a concurrent type its parent is the first element of its
11934         list of interface types; for other types this function provides the
11935         same result than Is_Ancestor.
11936         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11937         (Collect_Synchronized_Interfaces): Removed because the subprogram
11938         Collect_Abstract_Interfaces provides this functionality.
11939         (Collect_Abstract_Interfaces): Minor update to give support to
11940         concurrent types and thus avoid undesired code duplication.
11941         (Get_Subprogram_Entity): Handle entry calls.
11942         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11943         entry calls.
11944         (Enter_Name): Do not give -gnatwh hiding warning for record component
11945         entities, they never result in hiding.
11946
11947 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11948             Robert Dewar  <dewar@adacore.com>
11949
11950         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11951         to chain nested components that are allocators for access discriminants
11952         of the enclosing object.
11953         Add N_Push and N_Pop nodes
11954         New field Exception_Label added
11955         (Local_Raise_Statements): New field in N_Exception_Handler_Node
11956         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11957         (Is_Coextension): New flag for allocators, to mark allocators that
11958         correspond to access discriminants of dynamically allocated objects.
11959         (N_Block_Statement): Document the fact that the corresponding entity
11960         can be an E_Return_Statement.
11961         (Is_Coextension): New flag for allocators.
11962         Remove all code for DSP option
11963
11964         * sprint.ads, sprint.adb: Display basic information for class_wide
11965         subtypes. Add handling of N_Push and N_Pop nodes
11966
11967 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11968
11969         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11970         before propagating exception.
11971
11972 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11973
11974         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11975         an address always within the call instruction from a return address.
11976
11977 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11978             Eric Botcazou  <botcazou@adacore.com>
11979
11980         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11981         expression with a COMPOUND_EXPR including the call instead of emitting
11982         the call directly here.
11983         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11984         high bound is constant and the slice is empty.  Tidy.
11985         (tree_transform, case N_Op_Not): Handle properly the case where the
11986         operation applies to a private type whose full view is a modular type.
11987         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11988         Address_Clause, use the associated Expression as the GNAT tree
11989         representing the choice value to ensure the corresponding GCC tree is
11990         of the proper kind.
11991         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11992         instead of just the operands, as the base GCC stabilize_reference does.
11993         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11994         requested; otherwise fail.
11995         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11996
11997 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11998
11999         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
12000         implementation of UI_Div.
12001         (UI_Div): Reimplement as a call to UI_Div_Rem.
12002         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
12003         remainder, avoiding the cost of a multiplication and a subtraction.
12004         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
12005         provides both quotient and remainder in a single computation.
12006         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
12007         functions for uint.
12008         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
12009         is undefined if the given n is not inversible.
12010
12011 2007-04-06  Olivier Hainque  <hainque@adacore.com>
12012
12013         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
12014         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
12015         opcodes.
12016
12017 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
12018             Olivier Hainque  <hainque@adacore.com>
12019
12020         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
12021         when updating the contents of the old pointer to an unconstrained array.
12022         (end_subprog_body): Set error_gnat_node to Empty.
12023         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
12024         (unchecked_convert): For subtype to base type conversions, require that
12025         the source be a subtype if it is an integer type.
12026         (builtin_decls): New global, vector of available builtin functions.
12027         (gnat_pushdecl): Add global builtin function declaration nodes to the
12028         builtin_decls list.
12029         (gnat_install_builtins): Adjust comments.
12030         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
12031         calling gnat_pushdecl, so that it knows when it handed a builtin
12032         function declaration node.
12033         (builtin_decl_for): Search the builtin_decls list.
12034
12035 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
12036
12037         * s-stchop-vxworks.adb: 
12038         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
12039
12040 2007-04-06  Robert Dewar  <dewar@adacore.com>
12041             Arnaud Charlet  <charlet@adacore.com>
12042
12043         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
12044
12045         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
12046         of files
12047         Add mention of -Sev (set initialize_scalars option from environment
12048         variable at run time) in gnatbind usage message.
12049
12050         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
12051
12052         * fname-uf.ads: Minor comment fix
12053
12054         * osint.ads: Change pragma Elaborate to Elaborate_All
12055
12056         * par-load.adb: Add documentation.
12057
12058         * sem_cat.ads, sem_cat.adb: Minor code reorganization
12059
12060         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
12061
12062         * s-secsta.ads: Extra comments
12063
12064         * s-soflin.ads: Minor comment fixes
12065
12066         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
12067
12068         * s-wchcon.ads: Minor comment addition
12069
12070         * treepr.adb: Minor change in message
12071         (Print_Name,Print_Node): Make these debug printouts more robust: print
12072         "no such..." instead of crashing on bad input.
12073
12074 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
12075
12076         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
12077         instead of gnat_signed_or_unsigned_type.
12078         * utils.c (gnat_signed_or_unsigned_type): Remove.
12079         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
12080         * gigi.h (gnat_signed_or_unsigned_type): Remove
12081
12082 2007-03-09  Roger Sayle  <roger@eyesopen.com>
12083
12084         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
12085         fold with the result of buildN.
12086         * decl.c (gnat_to_gnu_entity): Likewise.
12087         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
12088         * utils.c (finish_record_type, merge_sizes, max_size, convert):
12089         Likewise.
12090         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
12091         nonbinary_modular_operation, build_binary_op, build_unary_op,
12092         build_cond_expr): Likewise.
12093
12094         * utils.c (convert): Use fold_build1 when casting values to void.
12095         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
12096         fold_convert instead of convert when appropriate.
12097
12098 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
12099
12100         * Make-lang.in: Add install-pdf target as copied from
12101         automake v1.10 rules.
12102
12103 2007-02-28  Andreas Schwab  <schwab@suse.de>
12104
12105         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
12106         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
12107         (doc/gnat-style.info): Likewise.
12108
12109 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
12110
12111         * gnat-style.texi: Standardize title page.
12112         * gnat_rm.texi: Likewise.
12113         * gnat_ugn.texi: Likewise.
12114
12115 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
12116
12117         * decl.c (annotate_value): Adjust for refactoring of tree_map
12118         hierarchy.
12119
12120 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
12121
12122         * decl.c (annotate_value): Adjust for refactoring of tree_map
12123         hierarchy.
12124
12125 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
12126
12127         PR ada/18819
12128         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
12129         untagged derived type, add hidden components to keep discriminant
12130         layout consistent, when a given discriminant of the derived type
12131         constraints several discriminants of the parent type.
12132
12133 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
12134             Sandra Loosemore  <sandra@codesourcery.com>
12135
12136         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
12137         build the call expression.
12138         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
12139         * utils.c (max_size) <tcc_exceptional>: Delete.
12140         <tcc_vl_exp>: New case.
12141         <tcc_expression>: Delete CALL_EXPR subcase.
12142         (build_global_cdtor): Use build_call_nary instead of build3.
12143         * utils2.c (build_call_1_expr): Likewise.
12144         (build_call_2_expr): Likewise.
12145         (build_call_0_expr): Likewise.
12146         (build_call_alloc_dealloc): Likewise.
12147
12148 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12149
12150         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
12151         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
12152         and _Unwind_SWord with _sleb128_t.
12153
12154 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
12155
12156         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
12157         * decl.c: Include gt-ada-decl.h.
12158         (annotate_value_cache): New.
12159         (annotate_value): Use it instead of TREE_COMPLEXITY.
12160
12161 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
12162
12163         * misc.c, utils2.c: Fix comment typos.
12164
12165 2007-01-24  Roger Sayle  <roger@eyesopen.com>
12166
12167         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
12168         TREE_CONSTANT_OVERFLOW.
12169         (allocatable_size_p, annotate_value): Likewise.
12170         * trans.c (gnat_to_gnu): Likewise.
12171         * utils.c (unchecked_convert): Likewise.
12172         * utils2.c (build_simple_component_ref): Likewise.
12173
12174 2007-01-23  Richard Guenther  <rguenther@suse.de>
12175
12176         PR bootstrap/30541
12177         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
12178         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
12179         (gnatboot3): Likewise.
12180         (GNATBIND): Do not define.
12181         * Makefile.in (GNATBIND): Do not define.
12182
12183 2007-01-08  Richard Guenther  <rguenther@suse.de>
12184
12185         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
12186         * trans.c (gnat_to_gnu): Likewise.
12187
12188 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
12189
12190         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
12191         * adaint.c: Likewise.
12192
12193 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
12194
12195         Merge from gimple-tuples-branch:
12196         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
12197
12198         * ada-tree.h (lang_tree_node): Handle gimple tuples.
12199         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
12200         GIMPLE_MODIFY_STMT.
12201
12202 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
12203
12204         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
12205         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
12206         Fix typos.
12207
12208 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
12209
12210         PR ada/27936
12211         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
12212         if the initializer takes into account the padding.
12213
12214 2006-11-11  Richard Guenther  <rguenther@suse.de>
12215
12216         * trans.c (maybe_stabilize_reference): Remove handling of
12217         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
12218
12219 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
12220
12221         PR ada/29707
12222         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
12223         (To_Target_Priority): New function.
12224
12225 2006-10-31  Robert Dewar  <dewar@adacore.com>
12226
12227         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
12228         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
12229         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
12230         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
12231         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
12232         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
12233         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
12234         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
12235         a-szbzha.adb: Minor reformatting. Fix header.
12236
12237         * a-numaux-x86.adb: Add parentheses for use of unary minus
12238         * a-ngcefu.adb: Supply missing parentheses for unary minus
12239         * a-ngcoty.adb: Add parens for use of unary minus
12240         * a-ngelfu.adb: Add missing parens for unary minus
12241         * a-tifiio.adb: Add parentheses for uses of unary minus
12242
12243 2006-10-31  Robert Dewar  <dewar@adacore.com>
12244             Bob Duff  <duff@adacore.com>
12245             Ed Schonberg  <schonberg@adacore.com>
12246
12247         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
12248         with multiplying operator.
12249         (Expected_Type_Is_Any_Real): New function to determine from the Parent
12250         pointer whether the context expects "any real type".
12251         (Resolve_Arithmetic_Op): Do not give an error on calls to the
12252         universal_fixed "*" and "/" operators when they are used in a context
12253         that expects any real type. Also set the type of the node to
12254         Universal_Real in this case, because downstream processing requires it
12255         (mainly static expression evaluation).
12256         Reword some continuation messages
12257         Add some \\ sequences to continuation messages
12258         (Resolve_Call): Refine infinite recursion case. The test has been
12259         sharpened to eliminate some false positives.
12260         Check for Current_Task usage now includes entry barrier, and is now a
12261         warning, not an error.
12262         (Resolve): If the call is ambiguous, indicate whether an interpretation
12263         is an inherited operation.
12264         (Check_Aggr): When resolving aggregates, skip associations with a box,
12265         which are priori correct, and will be replaced by an actual default
12266         expression in the course of expansion.
12267         (Resolve_Type_Conversion): Add missing support for conversion from
12268         a class-wide interface to a tagged type. Minor code cleanup.
12269         (Valid_Tagged_Converion): Add support for abstact interface type
12270         conversions.
12271         (Resolve_Selected_Component): Call Generate_Reference here rather than
12272         during analysis, and use May_Be_Lvalue to distinguish read/write.
12273         (Valid_Array_Conversion): New procedure, abstracted from
12274         Valid_Conversion, to incorporate accessibility checks for arrays of
12275         anonymous access types.
12276         (Valid_Conversion): For a conversion to a numeric type occurring in an
12277         instance or inlined body, no need to check that the operand type is
12278         numeric, since this has been checked during analysis of the template.
12279         Remove legacy test for scope name Unchecked_Conversion.
12280
12281         * sem_res.ads: Minor reformatting
12282
12283         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
12284         (PE_Current_Task_In_Entry_Body): New exception code
12285         (SE_Restriction_Violation): Removed, not used
12286
12287         * a-except.ads:  Update comments.
12288
12289         * types.h, types.ads: Add definition for Validity_Check
12290         (PE_Current_Task_In_Entry_Body): New exception code
12291         (SE_Restriction_Violation): Removed, not used
12292
12293 2006-10-31  Thomas Quinot  <quinot@adacore.com>
12294
12295         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
12296         error status.
12297
12298 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
12299             Jose Ruiz  <ruiz@adacore.com>
12300
12301         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
12302         part of Ada.Calendar: all subprogram raise Unimplemented.
12303         (Split_W_Offset): Temp function body, raising Unimplemented
12304
12305         * a-calend.ads, a-calend-vms.ads: 
12306         Add imported variable Invalid_TZ_Offset used to designate targets unable
12307         to support time zones.
12308         (Unimplemented): Temporary function raised by the body of new
12309         subprograms below.
12310         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
12311         unit provides handling of leap seconds and is used by the new Ada 2005
12312         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
12313         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
12314         version returns an extra value which is the offset to UTC.
12315
12316         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
12317         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
12318         (Split_W_Offset): New function body.
12319         (Time_Of): When a date is close to UNIX epoch, compute the time for
12320         that date plus one day (that amount is later substracted after
12321         executing mktime) so there are no problems with time zone adjustments.
12322
12323         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12324
12325         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12326         a-catizo.ads, a-catizo.adb: New files.
12327
12328         * impunit.adb: Add new Ada 2005 entries
12329
12330         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12331         Rename all occurences of "__gnat_localtime_r" to
12332         "__gnat_localtime_tzoff".
12333         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12334         zone data and calculate the GMT offset.
12335         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12336         Use the field "tm_gmtoff" to extract the GMT offset.
12337         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12338         the external variable "timezone" to calculate the GMT offset.
12339
12340 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
12341             Jose Ruiz  <ruiz@adacore.com>
12342
12343         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
12344         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
12345         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12346         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12347         System.Any_Priority to a POSIX priority on the target.
12348
12349         * system-linux-ia64.ads: 
12350         Extend range of Priority types on Linux to use the whole range made
12351         available by the system.
12352
12353         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12354         function maps from System.Any_Priority to a POSIX priority on the
12355         target.
12356         (PTHREAD_PRIO_PROTECT): Set real value.
12357         (PTHREAD_PRIO_INHERIT): Now a function.
12358         (SIGCPUFAIL): New signal.
12359         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12360         are documented as reserved by the OS.
12361
12362         * system-aix.ads: Use the full range of priorities provided by the
12363         system on AIX.
12364
12365         * s-taprop-posix.adb: Call new function To_Target_Priority.
12366         (Set_Priority): Take into account Task_Dispatching_Policy and
12367         Priority_Specific_Dispatching pragmas when determining if Round Robin
12368         must be used for scheduling the task.
12369
12370         * system-linux-x86_64.ads, system-linux-x86.ads, 
12371         system-linux-ppc.ads: Extend range of Priority types on Linux to use
12372         the whole range made available by the system.
12373
12374         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
12375         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
12376         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12377         when deallocating the TCB in order to avoid potential references to
12378         deallocated data.
12379         (Set_Priority): Take into account Task_Dispatching_Policy and
12380         Priority_Specific_Dispatching pragmas when determining if Round Robin
12381         or FIFO within priorities must be used for scheduling the task.
12382
12383         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12384         the Thread field (to be used internally by the run-time system) and the
12385         kernel-level task id in the LWP field (to be used by the debugger).
12386         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12387         instance, and propagate the current task options to the spawned task.
12388         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12389         (Initialize): Set Round Robin dispatching when the corresponding pragma
12390         is in effect.
12391
12392 2006-10-31  Robert Dewar  <dewar@adacore.com>
12393
12394         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
12395         system-linux-hppa.ads, system-hpux-ia64.ads, 
12396         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
12397         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
12398         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
12399         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
12400         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
12401         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
12402         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12403         Default_Bit_Order) to kill constant condition warnings for references
12404         to this switch.
12405
12406 2006-10-31  Vincent Celier  <celier@adacore.com>
12407             Eric Botcazou  <ebotcazou@adacore.com>
12408
12409         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12410         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12411         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12412         Ext_To, when building the library file name
12413
12414         * mlib-tgt-vxworks.adb: ditto.
12415         (Get_Target_Suffix): Add support for x86 targets.
12416
12417         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12418
12419         * mlib-tgt-darwin.adb: 
12420         Use Append_To, instead of Ext_To, when building the library file name
12421         (Flat_Namespace): New global variable.
12422         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12423         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12424         (Link_Shared_Libgcc): Delete.
12425         (Build_Dynamic_Library): Adjust for above changes.
12426         Use Opt package.
12427         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12428
12429 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12430
12431         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12432         (Initialize): Add type conversions required by above change.
12433
12434 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12435
12436         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
12437         (getpid): New body for this function that uses the underlying taskIdSelf
12438         function for VxWorks 5 and VxWorks 6 in kernel mode.
12439         (unsigned_int): New type, modular to allow logical bit operations.
12440         (taskOptionsGet): New imported function.
12441
12442         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12443         field to be compliant with the type used by the corresponding operating
12444         system primitive.
12445
12446 2006-10-31  Pascal Obry  <obry@adacore.com>
12447             Eric Botcazou  <ebotcazou@adacore.com>
12448             Vincent Celier  <celier@adacore.com>
12449
12450         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12451         ASCII version of the registry API. This is needed as the GNAT runtime
12452         is now UNICODE by default.
12453         Include version.h.
12454         (get_gcc_version): Do not hardcode the return value.
12455         (__gnat_file_time_name): On Windows properly set the default returned
12456         value to -1 which corresponds to Invalid_Time.
12457         (__gnat_fopen): New routine. A simple wrapper on all plateforms
12458          except on Windows where it does conversion for unicode support.
12459         (__gnat_freopen): Idem.
12460         (__gnat_locate_exec_on_path): If environment variable PATH does not
12461         exist, return a NULL pointer
12462
12463         * adaint.h: (__gnat_fopen): Declare.
12464         (__gnat_freopen): Likewise.
12465
12466         * mingw32.h (_tfreopen): Define this macro here for older MingW
12467         version.
12468         Activate the unicode support on platforms using a MingW runtime
12469         version 3.9 or newer.
12470
12471         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12472         This is needed for proper unicode support on Windows.
12473         (freopen): Idem.
12474
12475 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12476             Nicolas Setton  <setton@adacore.com>
12477             Olivier Hainque  <hainque@adacore.com>
12478             Gary Dismukes  <dismukes@adacore.com>
12479
12480         * gigi.h: (tree_code_for_record_type): Declare.
12481         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12482         (get_global_renaming_pointers): Rename to
12483         invalidate_global_renaming_pointers.
12484         (static_ctors): Delete.
12485         (static_dtors): Likewise.
12486         (gnat_write_global_declarations): Declare.
12487         (create_var_decl): Adjust descriptive comment to indicate that the
12488         subprogram may return a CONST_DECL node.
12489         (create_true_var_decl): Declare new function, similar to
12490         create_var_decl but forcing the creation of a VAR_DECL node.
12491         (get_global_renaming_pointers): Declare.
12492         (add_global_renaming_pointer): Likewise.
12493
12494         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12495
12496         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12497         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12498         processing.
12499         (gnat_to_gnu_entity): Remove From_With_Type from computation for
12500         imported_p.
12501         <E_Access_Type>: Use the Non_Limited_View as the full view of the
12502         designated type if the pointer comes from a limited_with clause.  Make
12503         incomplete designated type if it is in the main unit and has a freeze
12504         node.
12505         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12506         Underlying_Full_View similarly.  Return earlier if the full view already
12507         has an associated tree.
12508         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12509         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12510         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12511         reference type built for objects with an address clause.
12512         Use create_true_var_decl with const_flag set for
12513         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12514         TREE_READONLY set.
12515         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12516         for Character and Wide_Character types. This info is read by the
12517         dwarf-2 writer, and is needed to be able to use the command "ptype
12518         character" in the debugger.
12519         (gnat_to_gnu_entity): When generating a type representing
12520         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12521         so that debug writers can distinguish it from ordinary integers.
12522         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12523         addition to TREE_READONLY to assert the constantness of variables for
12524         elaboration purposes.
12525         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12526         parameters to call new Einfo function First_Formal_With_Extras.
12527         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12528         protected type with its corresponding discriminant, to obtain a usable
12529         declaration
12530         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12531         for a multiple elaboration of the "equivalent" type.
12532         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12533         into record_global_renaming_pointer.
12534         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12535         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12536         <E_Array_Subtype>: Likewise.
12537         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12538         incomplete subtypes and incomplete subtypes of incomplete types visible
12539         through a limited with clause.
12540         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12541         the base index type for the maximum size of the array only if they are
12542         constant.
12543         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12544         expression into a SAVE_EXPR if stabilization failed.
12545
12546         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12547         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12548         by lower level compilation passes.
12549         (gnat_genericize): New function, lowering a function body to GENERIC.
12550         Turn the type of RESULT_DECL into a real reference type if the decl
12551         has been marked DECL_BY_REFERENCE, and adjust references to the latter
12552         accordingly.
12553         (gnat_genericize_r): New function. Tree walking callback for
12554         gnat_genericize.
12555         (convert_from_reference, is_byref_result): New functions. Helpers for
12556         gnat_genericize_r.
12557         (create_type_decl): Call gnat_pushdecl before calling
12558         rest_of_decl_compilation, to make sure that field TYPE_NAME of
12559         type_decl is properly set before calling the debug information writers.
12560         (write_record_type_debug_info): The heuristics which compute the
12561         alignment of a field in a variant record might not be accurate. Add a
12562         safety test to make sure no alignment is set to a smaller value than
12563         the alignment of the field type.
12564         (make_dummy_type): Use the Non_Limited_View as the underlying type if
12565         the type comes from a limited_with clause. Do not loop on the full view.
12566         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12567         (dummy_node_table): New global variable, moved from decl.c.
12568         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12569         (save_gnu_tree): Use above macros.
12570         (get_gnu_tree): Likewise.
12571         (present_gnu_tree): Likewise.
12572         (init_dummy_type): New function, moved from decl.c. Use above macros.
12573         (make_dummy_type): Likewise.
12574         (tree_code_for_record_type): New function extracted from make_dummy_type
12575         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12576         (static_ctors): Change it to a vector, make static.
12577         (static_dtors): Likewise.
12578         (end_subprog_body): Adjust for above change.
12579         (build_global_cdtor): Moved from trans.c.
12580         (gnat_write_global_declarations): Emit global constructor and
12581         destructor, and call cgraph_optimize before emitting debug info for
12582         global declarations.
12583         (global_decls): New global variable.
12584         (gnat_pushdecl): Store the global declarations in global_decls, for
12585         later use.
12586         (gnat_write_global_declarations): Emit debug information for global
12587          declarations.
12588         (create_var_decl_1): Former create_var_decl, with an extra argument to
12589          state whether the creation of a CONST_DECL is allowed.
12590         (create_var_decl): Behavior unchanged. Now a wrapper around
12591         create_var_decl_1 allowing CONST_DECL creation.
12592         (create_true_var_decl): New function, similar to create_var_decl but
12593         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12594         (create_field_decl): Do not always mark the field as addressable
12595         if its type is an aggregate.
12596         (global_renaming_pointers): New static variable.
12597         (add_global_renaming_pointer): New function.
12598         (get_global_renaming_pointers): Likewise.
12599
12600         * misc.c (gnat_dwarf_name): New function.
12601         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12602         (gnat_post_options): Add comment about structural alias analysis.
12603         (gnat_parse_file): Do not call cgraph_optimize here.
12604         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12605
12606         * trans.c (process_freeze_entity): Don't abort if we already have a
12607         non dummy GCC tree for a Concurrent_Record_Type, as it might
12608         legitimately have been elaborated while processing the associated
12609         Concurrent_Type prior to this explicit freeze node.
12610         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12611         exception handler volatile if it is of variable size.
12612         (process_type): Remove bypass for types coming from a limited_with
12613         clause.
12614         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12615         actual, convert the corresponding gnu_actual to the real destination
12616         type when necessary.
12617         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12618         originally TREE_READONLY but whose elaboration cannot be performed
12619         statically.
12620         Part of fix for F504-021.
12621         (tree_transform, subprogram cases): Change loops on formal parameters to
12622         call new Einfo function First_Formal_With_Extras.
12623         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12624         stemming from type conversion for the lhs.
12625         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12626         number of bits per unit for components of records.
12627         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12628         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12629         with At_End_Proc after the SJLJ EH cleanup.
12630         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12631         compilation unit.
12632         (elaborate_all_entities): Do not retest type_annotate_only.
12633         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12634         result type of an abstract subprogram, which may be an itype associated
12635         with an anonymous access result (related to AI-318-02).
12636         (build_global_cdtor): Move to utils.c.
12637         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12638         this choice is not a null tree nor an integer constant.
12639         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12640         on the body of elaboration routines instead of mark_unvisited.
12641         (add_stmt): Do not mark the tree.
12642         (add_decl_expr): Tweak comment.
12643         (mark_unvisited): Delete.
12644         (unshare_save_expr): New static function.
12645         (call_to_gnu): Issue an error when making a temporary around a
12646         procedure call because of non-addressable actual parameter if the
12647         type of the formal is by_reference.
12648         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12649         after building the elaboration routine.
12650
12651 2006-10-31  Bob Duff  <duff@adacore.com>
12652
12653         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12654         as finalization-started, so we can raise Program_Error on 'new'.
12655
12656         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12657         collection has already started.
12658
12659         * s-finimp.ads (Collection_Finalization_Started): Added new special
12660         flag value for indicating that a collection's finalization has started.
12661
12662         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12663         create a task whose master has already waited for dependent tasks.
12664
12665 2006-10-31  Robert Dewar  <dewar@adacore.com>
12666
12667         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12668
12669         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
12670         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
12671         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
12672         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
12673         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
12674         a-except-2005.ads: Add pragma Preelaborable_Warning
12675
12676 2006-10-31  Robert Dewar  <dewar@adacore.com>
12677             Jose Ruiz  <ruiz@adacore.com>
12678
12679         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12680
12681         * ali.adb (Get_Name): Properly handle scanning of wide character names
12682         encoded with brackets notation.
12683         (Known_ALI_Lines): Add S lines to this list.
12684         (Scan_ALI): Acquire S (priority specific dispatching) lines.
12685         New flag Elaborate_All_Desirable in unit table
12686
12687         * ali.ads (Priority_Specific_Dispatching): Add this range of
12688         identifiers to be used for Priority_Specific_Dispatching table entries.
12689         (ALIs_Record): Add First_Specific_Dispatching and
12690         Last_Specific_Dispatching that point to the first and last entries
12691         respectively in the priority specific dispatching table for this unit.
12692         (Specific_Dispatching): Add this table for storing each S (priority
12693         specific dispatching) line encountered in the input ALI file.
12694         New flag Elaborate_All_Desirable in unit table
12695
12696         * bcheck.adb: (Check_Configuration_Consistency): Add call to
12697         Check_Consistent_Dispatching_Policy.
12698         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12699         verifying that the use of Priority_Specific_Dispatching,
12700         Task_Dispatching_Policy, and Locking_Policy is consistent across the
12701         partition.
12702
12703         * bindgen.adb: (Public_Version_Warning): function removed.
12704         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12705         required information from ALI files in order to initialize the table
12706         containing the specific dispatching policy.
12707         (Gen_Adainit_Ada): Generate the variables required for priority specific
12708         dispatching entries (__gl_priority_specific_dispatching and
12709         __gl_num_specific_dispatching).
12710         (Gen_Adainit_C): Generate the variables required for priority specific
12711         dispatching entries (__gl_priority_specific_dispatching and
12712         __gl_num_specific_dispatching).
12713         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12714         pragma entries.
12715         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12716         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12717         (Tab_To): Removed.
12718         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12719         a call to gnat_set_globals.
12720         Generate a string containing settings from
12721         Priority_Specific_Dispatching pragma entries.
12722         (Gen_Object_Files_Options): Do not include the runtime libraries when
12723         pragma No_Run_Time is specified.
12724
12725         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12726         consistency with s-intman-posix.adb.
12727         (__gnat_error_handler, case FreeBSD): Account for the fact that the
12728         handler is installed with SA_SIGINFO.
12729         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12730         FreeBSD ZCX support, copied from Linux version.
12731         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12732         sigfillset, and sigemptyset so the routines defined by MaRTE.
12733         (__gl_priority_specific_dispatching): Add this variable that stores the
12734         string containing priority specific dispatching policies in the
12735         partition.
12736         (__gl_num_specific_dispatching): Add this variable that indicates the
12737         highest priority for which a priority specific dispatching pragma
12738         applies.
12739         (__gnat_get_specific_dispatching): Add this routine that returns the
12740         priority specific dispatching policy, as set by a
12741         Priority_Specific_Dispatching pragma appearing anywhere in the current
12742         partition. The input argument is the priority number, and the result
12743         is the upper case first character of the policy name.
12744         (__gnat_set_globals): Now a dummy function.
12745         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12746         mechargs instead of sigargs, as the latter can be retrieved from the
12747         former and sigargs is not what we want on ia64.
12748         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12749         mechargs argument.
12750         (__gnat_adjust_context_for_raise, ia64-vms): New function.
12751         (tasking_error): Remove unused symbol.
12752         (_abort_signal): Move this symbol to the IRIX specific part since this
12753         is the only target that uses this definition.
12754         (Check_Abort_Status): Move this symbol to the IRIX specific part since
12755         this is the only target that uses this definition.
12756         (Lock_Task): Remove unused symbol.
12757         (Unlock_Task): Remove unused symbol.
12758
12759         * lib-writ.adb (Write_ALI): Output new S lines for
12760         Priority_Specific_Dispatching pragmas.
12761         Implement new flag BD for elaborate body desirable
12762
12763         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12764         (Specific_Dispatching): Add this table for storing the entries
12765         corresponding to Priority_Specific_Dispatching pragmas.
12766         Document new BD flag for elaborate body desirable
12767
12768         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12769         of known pragmas.
12770
12771 2006-10-31  Javier Miranda  <miranda@adacore.com>
12772
12773         * a-tags.ads, a-tags.adb: 
12774         (Predefined_DT): New function that improves readability of the code.
12775         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12776         Inherit_DT): Use the new function Predefined_DT to improve code
12777         readability.
12778         (Register_Interface_Tag): Update assertion.
12779         (Set_Interface_Table): Update assertion.
12780         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12781         determining progenitor interfaces in Tags.
12782         (Inherit_CPP_DT): New subprogram.
12783
12784         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12785         analysis of the thunk code.
12786         (Expand_Interface_Conversion): Handle run-time conversion of
12787         access to class wide types.
12788         (Expand_Dispatching_Call): When generating the profile for the
12789         subprogram itype for a dispatching operation, properly terminate the
12790         formal parameters chaind list (set the Next_Entity of the last formal
12791         to Empty).
12792         (Collect_All_Interfaces): Removed. This routine has been moved to
12793         sem_util and renamed as Collect_All_Abstract_Interfaces.
12794         (Set_All_DT_Position): Hidden entities associated with abstract
12795         interface primitives are not taken into account in the check for
12796         3.9.3(10); this check is done with the aliased entity.
12797         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12798         interfacing with CPP by default.
12799         (Expand_Interface_Conversion): Add missing support for static conversion
12800         from an interface to a tagged type.
12801         (Collect_All_Interfaces): Add new out formal containing the list of
12802         abstract interface types to cleanup the subprogram Make_DT.
12803         (Make_DT): Update the code to generate the table of interfaces in case
12804         of abstract interface types.
12805         (Is_Predefined_Dispatching_Alias): New function that returns true if
12806         a primitive is not a predefined dispatching primitive but it is an
12807         alias of a predefined dispatching primitive.
12808         (Make_DT): If the ancestor of the type is a CPP_Class and we are
12809         compiling under full ABI compatibility mode we avoid the generation of
12810         calls to run-time services that fill the dispatch tables because under
12811         this mode we currently inherit the dispatch tables in the IP subprogram.
12812         (Write_DT): Emit an "is null" indication for a null procedure primitive.
12813         (Expand_Interface_Conversion): Use an address as the type of the formal
12814         of the internally built function that handles the case in which the
12815         target type is an access type.
12816
12817 2006-10-31  Robert Dewar  <dewar@adacore.com>
12818
12819         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12820
12821 2006-10-31  Robert Dewar  <dewar@adacore.com>
12822
12823         * bindusg.ads, bindusg.adb:
12824         Change to package and rename procedure as Display, which
12825         now ensures that it only outputs usage information once.
12826
12827 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12828
12829         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12830         using RTPs.
12831
12832         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12833         when using RTPs.
12834
12835 2006-10-31  Robert Dewar  <dewar@adacore.com>
12836             Ed Schonberg  <schonberg@adacore.com>
12837
12838         * treepr.adb: Use new subtype N_Membership_Test
12839
12840         * checks.ads, checks.adb: Add definition for Validity_Check
12841         (Range_Or_Validity_Checks_Suppressed): New function
12842         (Ensure_Valid): Test Validity_Check suppressed
12843         (Insert_Valid_Check): Test Validity_Check suppressed
12844         (Insert_Valid_Check): Preserve Do_Range_Check flag
12845         (Validity_Check_Range): New procedure
12846         (Expr_Known_Valid): Result of membership test is always valid
12847         (Selected_Range_Checks): Range checks cannot be applied to discriminants
12848         by themselves. Disabling those checks must also be done for task types,
12849         where discriminants may be used for the bounds of entry families.
12850         (Apply_Address_Clause_Check): Remove side-effects if address expression
12851         is non-static and is not the name of a declared constant.
12852         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12853         Code cleanup and new error messages.
12854         (Enable_Range_Check): Test for some cases of suppressed checks
12855         (Generate_Index_Checks): Suppress index checks if index checks are
12856         suppressed for array object or array type.
12857         (Apply_Selected_Length_Checks): Give warning for compile-time detected
12858         length check failure, even if checks are off.
12859         (Ensure_Valid): Do not generate a check on an indexed component whose
12860         prefix is a packed boolean array.
12861         * checks.adb: (Alignment_Checks_Suppressed): New function
12862         (Apply_Address_Clause_Check): New procedure, this is a completely
12863         rewritten replacement for Apply_Alignment_Check
12864         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12865         we request a discriminal value only in case of discriminants.
12866         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12867         assignments where the target subtype is unconstrained and the target
12868         object is a parameter or dereference (other aliased cases are known
12869         to be unconstrained).
12870
12871 2006-10-31  Robert Dewar  <dewar@adacore.com>
12872
12873         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12874         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12875         vms_conv.adb: Fix bad table increment values (much too small)
12876
12877         * table.adb (Realloc): Make sure we get at least some new elements
12878         Defends against silly small values for table increment
12879
12880 2006-10-31  Robert Dewar  <dewar@adacore.com>
12881             Ed Schonberg  <schonberg@adacore.com>
12882             Bob Duff  <duff@adacore.com>
12883
12884         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12885         entities. Move other fields around to make this possible
12886         (Is_Derived_Type): Add missing call to Is_Type.
12887         (Extra_Formals): New function for subprograms, entries, subprogram
12888         types.
12889         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12890         (First_Formal_With_Extras): New function for subprogs, entries, subp
12891         types.
12892         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12893         Add node information for E_Return_Statement.
12894         (Elaborate_Body_Desirable): New flag
12895         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12896         to be Is_Inherently_Limited_Type, because return-by-reference has
12897         no meaning in Ada 2005.
12898         (E_Return_Statement): New entity kind.
12899         (Return_Applies_To): Field of E_Return_Statement.
12900         (Is_Return_Object): New flag in object entities.
12901         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12902         (Must_Have_Preelab_Init): New flag
12903         (Known_To_Have_Preelab_Init): New flag
12904         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12905         (Is_Visible_Formal): New flag on entities in formal packages.
12906         (Low_Bound_Known): New flag
12907         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12908         Incomplete_Kind.
12909         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12910         output when Id is an incomplete subtype.
12911
12912 2006-10-31  Robert Dewar  <dewar@adacore.com>
12913
12914         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12915         Avoid abbreviation Creat
12916         (Finalize): List all sources in extended mail source if -gnatl
12917         switch is active.
12918         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12919         (Finalize): Implement new -gnatl=xxx switch to output listing to file
12920         (Set_Specific_Warning_On): New procedure
12921         (Set_Specific_Warning_Off): New procedure
12922         Add implementation of new insertion \\
12923         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12924         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12925         types.
12926         (Error_Msg_Internal): Make sure that we set Last_Killed to
12927         True when a message from another package is suppressed.
12928         Implement insertion character ~ (insert string)
12929         (First_Node): Minor adjustments to get better placement.
12930
12931         * frontend.adb: 
12932         Implement new -gnatl=xxx switch to output listing to file
12933
12934         * gnat1drv.adb: 
12935         Implement new -gnatl=xxx switch to output listing to file
12936
12937         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12938         (Commands_To_Stdout): New flag
12939         Implement new -gnatl=xxx switch to output listing to file
12940         New switch Dump_Source_Text
12941         (Warn_On_Deleted_Code): New warning flag for -gnatwt
12942         Define Error_Msg_Line_Length
12943         (Warn_On_Assumed_Low_Bound): New switch
12944
12945         * osint.ads, osint.adb
12946         (Normalize_Directory_Name): Fix bug.
12947         Implement new -gnatl=xxx switch to output listing to file
12948         (Concat): Removed, replaced by real concatenation
12949         Make use of concatenation now allowed in compiler
12950         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12951         we find the 'lib' or 'bin' directory even when the tool has been
12952         invoked with a relative path.
12953         (Executable_Name): New function taking string parameters.
12954
12955         * osint-c.ads, osint-c.adb: 
12956         Implement new -gnatl=xxx switch to output listing to file
12957
12958         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12959
12960         * switch-c.adb: 
12961         Implement new -gnatl=xxx switch to output listing to file
12962         Recognize new -gnatL switch
12963         (no longer keep in old warning about old style usage)
12964         Use concatenation to simplify code
12965         Recognize -gnatjnn switch
12966         (Scan_Front_End_Switches): Clean up handling of -gnatW
12967         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12968
12969 2006-10-31  Robert Dewar  <dewar@adacore.com>
12970
12971         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12972         (Set_Specific_Warning_Off): New procedure
12973         (Warning_Specifically_Suppressed): New function
12974         (Validate_Specific_Warnings): New procedure
12975         (Output_Msg_Text): Complete rewrite to support -gnatjnn
12976
12977         * err_vars.ads: Implement insertion character ~ (insert string)
12978
12979 2006-10-31  Bob Duff  <duff@adacore.com>
12980             Ed Schonberg  <schonberg@adacore.com>
12981
12982         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12983         the parent part is a build-in-place function call, generate assignments.
12984         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12985         are build-in-place function calls.
12986         (Replace_Self_Reference): New subsidiary of
12987         Make_OK_Assignment_Statement, to replace an access attribute that is a
12988         self-reference into an access to the appropriate component of the
12989         target object. Generalizes previous mechanism to handle self-references
12990         nested at any level.
12991         (Is_Self_Referential_Init): Remove, not needed.
12992         (Is_Self_Referential_Init): New predicate to simplify handling of self
12993         referential components in record aggregates.
12994         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12995         check for presence of entity before checking for self-reference.
12996         (Has_Default_Init_Comps): Return True if a component association is a
12997         self-reference to the enclosing type, which can only come from a
12998         default initialization.
12999         (Make_OK_Assignment_Statement): If the expression is of the form
13000         Typ'Acc, where Acc is an access attribute, the expression comes from a
13001         default initialized self-referential component.
13002         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
13003         that has been derived from several abstract interfaces we must also
13004         initialize the tags of the secondary dispatch tables.
13005
13006 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13007             Thomas Quinot  <quinot@adacore.com>
13008             Javier Miranda  <miranda@adacore.com>
13009             Robert Dewar  <dewar@adacore.com>
13010
13011         * exp_attr.adb: 
13012         (Expand_Access_To_Protected_Op): If the context indicates that an access
13013         to a local operation may be transfered outside of the object, create an
13014         access to the wrapper operation that must be used in an external call.
13015         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
13016         target, pass the Valid attribute applied to a floating-point prefix on
13017         to the back end without expansion.
13018         (Storage_Size): Use the new run-time function Storage_Size to retrieve
13019         the allocated storage when it is specified by a per-object expression.
13020         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
13021         Nothing to do here, the attribute has been rewritten during semantic
13022         analysis.
13023         (Expand_Attribute_Reference): Handle expansion of the new Priority
13024         attribute
13025         (Find_Fat_Info): Handle case of universal real
13026         (Expand_Access_To_Protected_Op): Fix use of access to protected
13027         subprogram from inside the body of a protected entry.
13028         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
13029         'Access and 'Unrestricted_Access, to transform the attribute reference
13030         into a fat pointer.
13031         (Is_Constrained_Aliased_View): New predicate to help determine whether a
13032         subcomponent's enclosing variable is aliased with a constrained subtype.
13033         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
13034         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
13035         an aliased prefix must be known to be constrained in order to use True
13036         for the attribute value, and now it's possible for some aliased views
13037         to be unconstrained.
13038
13039 2006-10-31  Robert Dewar  <dewar@adacore.com>
13040
13041         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
13042         (Expand_Entity_Reference): Correct error of not handling subprogram
13043         formals in current_value processing.
13044
13045 2006-10-31  Javier Miranda  <miranda@adacore.com>
13046             Robert Dewar  <dewar@adacore.com>
13047             Ed Schonberg  <schonberg@adacore.com>
13048             Gary Dismukes  <dismukes@adacore.com>
13049
13050         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
13051         register in the final list objects containing class-wide interfaces;
13052         otherwise we incorrectly register the tag of the interface in the final
13053         list.
13054         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
13055         generate the wrapper if the parent primitive is abstract. This is
13056         required to report the correct error message.
13057         (Expand_N_Subtype_Indication): Do validity checks on range
13058         (Clean_Task_Names): If an initialization procedure includes a call to
13059         initialize a task (sub)component, indicate that the procedure will use
13060         the secondary stack.
13061         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
13062         compatibility for interfacing with CPP by default.
13063         (Expand_N_Object_Declaration): Only build an Adjust call when the
13064         object's type is a nonlimited controlled type.
13065         * exp_ch3.adb: Add with and use of Exp_Ch6.
13066         (Expand_N_Object_Declaration): Check for object initialization that is a
13067         call to build-in-place function and apply Make_Build_In_Place_Call_In_
13068         Object_Declaration to the call.
13069         (Freeze_Type): When the designated type of an RACW was not frozen at the
13070         point where the RACW was declared, validate the primitive operations
13071         with respect to E.2.2(14) when it finally is frozen.
13072         (Build_Initialization_Call,Expand_Record_Controller): Rename
13073         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
13074         return-by-reference has no meaning in Ada 2005.
13075         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
13076         to register tag of the immediate ancestor interfaces in the
13077         run-time structure.
13078         (Init_Secondary_Tags): Moved to the specification to allow the
13079         initialization of extension aggregates with abstract interfaces.
13080         (Build_Master_Renaming): Make public, for use by function declarations
13081         whose return type is an anonymous access type.
13082         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
13083         Insert_List_Before_And_Analyze after the generation of the specs
13084         associated with null procedures.
13085         (Expand_Tagged_Root): Update documentation in its specification.
13086         (Init_Secondary_Tags): Update documentation.
13087         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
13088         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
13089         then generate code to inherit the contents of the dispatch table
13090         directly from the ancestor.
13091         (Expand_Record_Controller): Insert controller component after tags of
13092         implemented interfaces.
13093         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
13094         create null procedure overridings when null procedures are inherited
13095         from interfaces.
13096         (Make_Null_Procedure_Specs): New procedure to generate null procedure
13097         declarations for overriding null primitives inherited from interfaces.
13098         (Is_Null_Interface_Procedure): New function in
13099         Make_Null_Procedure_Specs.
13100         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
13101         immediate ancestor of a tagged type is an abstract interface type we
13102         must generate the specification of the predefined primitives associated
13103         with controlled types (because the dispatch table of the ancestor is
13104         null and hence these entries cannot be inherited). This is required to
13105         elaborate well the dispatch table.
13106
13107 2006-10-31  Javier Miranda  <miranda@adacore.com>
13108             Ed Schonberg  <schonberg@adacore.com>
13109             Bob Duff  <duff@adacore.com>
13110             Gary Dismukes  <dismukes@adacore.com>
13111             Robert Dewar  <dewar@adacore.com>
13112
13113         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
13114         conversion.
13115         (Expand_N_In): Do validity checks on range
13116         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
13117         (Expand_N_Allocator): For "new T", if the object is constrained by
13118         discriminant defaults, allocate the right amount of memory, rather than
13119         the maximum for type T.
13120         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
13121         when the allocator is initialized by a build-in-place call, since the
13122         allocator is already rewritten as a reference to the function result,
13123         and this prevents an unwanted duplication of the function call.
13124         Add with and use of Exp_Ch6.
13125         (Expand_Allocator_Expresssion): Check for an allocator whose expression
13126         is a call to build-in-place function and apply
13127         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
13128         untagged designated types).
13129         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
13130         optimization if source or target is biased.
13131         (Expand_N_Allocator): Add comments for case of an allocator within a
13132         function that returns an anonymous access type designating tasks.
13133         (Expand_N_Allocator): apply discriminant checks for access
13134         discriminants of anonymous access types (AI-402, AI-416)
13135
13136 2006-10-31  Bob Duff  <duff@adacore.com>
13137             Robert Dewar  <dewar@adacore.com>
13138             Gary Dismukes  <dismukes@adacore.com>
13139             Ed Schonberg  <schonberg@adacore.com>
13140
13141         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
13142
13143         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
13144         (Expand_N_Assignment_Statement): Call
13145         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
13146         build-in-place function call. Currently, this can happen only for
13147         assignments that come from aggregates.
13148         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13149         in order to alleviate the upward compatibility introduced by AI-318.
13150         (Expand_N_Extended_Return_Statement): Add support for handling the
13151         return object as a build-in-place result.
13152         (Expand_Non_Function_Return): Implement simple return statements nested
13153         within an extended return.
13154         (Enable_New_Return_Processing): Turn on the new processing of return
13155         statements.
13156         (Expand_Non_Function_Return): For a return within an extended return,
13157         don't raise Program_Error, because Sem_Ch6 now gives a warning.
13158         (Expand_N_Extended_Return_Statement): Implement AI-318
13159         (Expand_Simple_Function_Return): Ditto.
13160         (Expand_N_If_Statement): Handle new -gnatwt warning
13161         (Expand_N_Case_Statement): Handle new -gnatwt warning
13162         (Expand_N_Assignment): Handle assignment to the Priority attribute of
13163         a protected object.
13164         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
13165         validity checking of assignments to elementary record components.
13166         (Expand_N_Return_Statement): return Class Wide types on the secondary
13167         stack independantly of their controlled status since with HIE runtimes,
13168         class wide types are not potentially controlled anymore.
13169
13170         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
13171         node kind.
13172
13173         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
13174         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
13175         it expects a block, procedure, or task. The return statement will get
13176         turned into a block, and Expand_Cleanup_Actions will happen then.
13177
13178 2006-10-31  Robert Dewar  <dewar@adacore.com>
13179             Ed Schonberg  <schonberg@adacore.com>
13180             Bob Duff  <duff@adacore.com>
13181             Gary Dismukes  <dismukes@adacore.com>
13182
13183         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
13184         capability.
13185         (Expand_Inlined_Call): Tagged types are by-reference types, and
13186         therefore should be replaced by a renaming declaration in the expanded
13187         body, as is done for limited types.
13188         (Expand_Call): If this is a call to a function with dispatching access
13189         result, propagate tag from context.
13190         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
13191         CPP by default.
13192         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
13193         build-in-place when the right-hand side of an assignment is a
13194         build-in-place function call.
13195         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
13196         of the explicit dereference of the allocator to the result subtype of
13197         the build-in-place function. This is needed to satisfy type checking
13198         in cases where the caller's return object is created by an allocator for
13199         a class-wide access type and the type named in the allocator is a
13200         specific type.
13201         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
13202         conversion of the reference to the declared object to the result subtype
13203         of the build-in-place function. This is needed to satisfy type checking
13204         in cases where the declared object has a class-wide type. Also, in the
13205         class-wide case, change the type of the object entity to the specific
13206         result subtype of the function, to avoid passing a class-wide object
13207         without explicit initialization to the back end.
13208         (Register_Interface_DT_Entry): Moved outside the body of
13209         Freeze_Subprogram because this routine is now public; it is called from
13210         Check_Dispatching_Overriding to handle late overriding of abstract
13211         interface primitives.
13212         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
13213         adding an implicit access actual on a call to a build-in-place function.
13214         (Expand_Actuals): Test for an actual parameter that is a call to a
13215         build-in-place function and apply
13216         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
13217         (Is_Build_In_Place_Function): New function to determine whether an
13218         entity is a function whose calls should be handled as build-in-place.
13219         (Is_Build_In_Place_Function_Call): New function to determine whether an
13220         expression is a function call that should handled as build-in-place.
13221         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
13222         calls to build-in-place functions as the initialization of an allocator.
13223         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
13224         handling calls to build-in-place functions in contexts that do not
13225         involve init of a separate object (for example, actuals of subprogram
13226         calls).
13227         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
13228         handling calls to build-in-place functions as the initialization of an
13229         object declaration.
13230         (Detect_Infinite_Recursion): Add explicit parameter Process to
13231         instantiation of Traverse_Body to avoid unreferenced warning.
13232         (Check_Overriding_Inherited_Interfaces): Removed.
13233         (Register_Interface_DT_Entry): Code cleanup.
13234         (Register_Predefined_DT_Entry): Code cleanup.
13235         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
13236         inlined statements if within a transient scope.
13237         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
13238         formal parameters with occurrences of actuals in inlined body, establish
13239         visibility on the proper view of the actual's subtype for the body's
13240         context.
13241         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
13242         compatibility mode and we have an imported CPP subprogram because
13243         for now we assume that imported CPP primitives correspond with
13244         objects whose constructor is in the CPP side (and therefore we
13245         don't need to generate code to register them in the dispatch table).
13246         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
13247         aligned selected component.
13248         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
13249         the actual of an in-mode parameter is a type conversion.
13250         (Expand_Actuals): If the call does not come from source and the actual
13251         is potentially misaligned, let gigi handle it rather than rejecting the
13252         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
13253         Class Wide types as returning by reference independantly of their
13254         controlled status since with HIE runtimes class wide types are not
13255         potentially controlled anymore.
13256
13257 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13258
13259         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
13260         references that are private components of the protected object.
13261         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
13262         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
13263         instantiation to deal with warnings.
13264         (Initialize_Protection): If expression for priority is non-static, use
13265         System_Priority as its expected type, in case the expression has not
13266         been analyzed yet.
13267
13268 2006-10-31  Robert Dewar  <dewar@adacore.com>
13269
13270         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
13271         initialization of Homonym_Len.
13272         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
13273         names from fully qualified name. Fixes problem of duplicate
13274         external names differing only in the presence of such a block name.
13275
13276 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13277             Pablo Oliveira  <oliveira@adacore.com>
13278
13279         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
13280         subprogram Ids, even if they are not yet assigned.
13281         (Build_Subprogram_Id): It is now this function that will take care of
13282         calling Assign_Subprogram_Ids if necessary.
13283         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
13284         should be done only once they are assigned.
13285         (Build_From_Any_Function, case of tagged types): Add missing call to
13286         Allocate_Buffer.
13287         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
13288         type for an RACW type.
13289         (Add_RACW_Features): When processing an RACW declaration for which the
13290         designated type is already frozen, enforce E.2.2(14) rules immediately.
13291         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
13292         special reordering of controlling formals.
13293
13294         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
13295         associated stub type for an RACW type.
13296
13297 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13298
13299         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
13300         fixed-point operations in an integer context, i.e. as operands of a
13301         conversion to an integer type, indicate that result must be rounded.
13302
13303 2006-10-31  Robert Dewar  <dewar@adacore.com>
13304
13305         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
13306         cases, pass the encoding method, since it is now required by the run
13307         time.
13308
13309         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
13310         assumption that Str'First = 1.
13311         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
13312         it on to the Value_Wide_Wide_Character call.
13313         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
13314         properly handles a string of the form quote-encoded_wide_char-quote.
13315
13316         * s-wchcnv.adb: Minor reformatting
13317
13318 2006-10-31  Javier Miranda  <miranda@adacore.com>
13319
13320         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
13321         run-time membership test to ensure that the constructed object
13322         implements the target abstract interface.
13323
13324 2006-10-31  Robert Dewar  <dewar@adacore.com>
13325
13326         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13327         Machine_Attribute pragma internally to implement the user pragma.
13328         Add processing for pragma Interface so that it is now completely
13329         equivalent to pragma Import.
13330
13331         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13332         so that it can be applied to all entities, including record components
13333         and enumeration literals.
13334         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13335         priority ranges are correct, verify compatibility against task
13336         dispatching and locking policies, and if everything is correct an entry
13337         is added to the table containing priority specific dispatching entries
13338         for this compilation unit.
13339         (Delay_Config_Pragma_Analyze): Delay processing
13340         Priority_Specific_Dispatching pragmas because when processing the
13341         pragma we need to access run-time data, such as the range of
13342         System.Any_Priority.
13343         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13344         Allow pragma Unreferenced as a context item
13345         Add pragma Preelaborable_Initialization
13346         (Analyze_Pragma, case Interface): Interface is extended so that it is
13347         now syntactically and semantically equivalent to Import.
13348         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13349         insertion characters.
13350         Add handling for Pragma_Wide_Character_Encoding
13351         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13352         never supercedes a real restriction, and that a real restriction
13353         always supercedes a warning.
13354         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13355         appropriate form.
13356
13357 2006-10-31  Bob Duff  <duff@adacore.com>
13358             Ed Schonberg  <schonberg@adacore.com>
13359             Robert Dewar  <dewar@adacore.com>
13360
13361         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13362         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13363         Is_Inherently_Limited_Type, because return-by-reference has no meaning
13364         in Ada 2005.
13365         (Find_Node_To_Be_Wrapped): Use new method of determining the result
13366         type of the function containing a return statement, because the
13367         Return_Type field was removed. We now use the Return_Applies_To field.
13368
13369         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13370         (Build_Task_Image_Decl): If procedure is not called from an
13371         initialization procedure, indicate that function that builds task name
13372         uses the sec. stack. Otherwise the enclosing initialization procedure
13373         will carry the indication.
13374         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13375         N_Object_Declaration instead.
13376         (Kill_Dead_Code): New interface to implement -gnatwt warning for
13377         conditional dead code killed, and change implementation accordingly.
13378         (Insert_Actions): Add N_Return_Object_Declaration case.
13379         Correct comment to mention N_Extension_Aggregate node.
13380         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13381         attempts to save information for global variables which cannot be
13382         safely tracked.
13383         (Get_Current_Value_Condition): Handle conditions the other way round
13384         (constant on left). Also handle right operand of AND and AND THEN
13385         (Set_Current_Value_Condition): Corresponding changes
13386         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13387         (Get_Current_Value_Condition): Handle simple boolean operands
13388         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13389         (Get_Current_Value_Condition): If the variable reference is within an
13390         if-statement, does not appear in the list of then_statments, and does
13391         not come from source, treat it as being at unknown location.
13392         (Get_Current_Value_Condition): Enhance to allow while statements to be
13393         processed as well as if statements.
13394         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13395         come from source.
13396         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13397         of loop. This is safe now that we fixed Kill_Current_Values.
13398         (OK_To_Do_Constant_Replacement): Check whether current scope is
13399         Standard, before examining outer scopes.
13400
13401 2006-10-31  Vincent Celier  <celier@adacore.com>
13402
13403         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13404         When True, apply VMS treatment to children of packages A, G, I and S.
13405         For F320-016
13406
13407         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13408
13409 2006-10-31  Robert Dewar  <dewar@adacore.com>
13410             Ed Schonberg  <schonberg@adacore.com>
13411
13412         * freeze.adb: Add handling of Last_Assignment field
13413         (Warn_Overlay): Supply missing continuation marks in error msgs
13414         (Freeze_Entity): Add check for Preelaborable_Initialization
13415
13416         * g-comlin.adb: Add Warnings (Off) to prevent new warning
13417
13418         * g-expect.adb: Add Warnings (Off) to prevent new warning
13419
13420         * lib-xref.adb: Add handling of Last_Assignment field
13421         (Generate_Reference): Centralize handling of pragma Obsolescent here
13422         (Generate_Reference): Accept an implicit reference generated for a
13423         default in an instance.
13424         (Generate_Reference): Accept a reference for a node that is not in the
13425         main unit, if it is the generic body corresponding to an subprogram
13426         instantiation.
13427
13428         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13429
13430         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13431         -gnatwq/Q.
13432         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13433         exception handler.
13434         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13435         use clauses, to avoid messages on packages used to qualify, and also
13436         to avoid messages from obsolescent units.
13437         (Warn_On_Useless_Assignments): Don't generate messages for imported
13438         and exported variables.
13439         (Warn_On_Useless_Assignments): New procedure
13440         (Output_Obsolescent_Entity_Warnings): New procedure
13441         (Check_Code_Statement): New procedure
13442
13443         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13444         Change name Is_Ada_2005 to Is_Ada_2005_Only
13445         (Last_Assignment): New field for useless assignment warning
13446
13447 2006-10-31  Olivier Hainque  <hainque@adacore.com>
13448
13449         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13450         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13451
13452 2006-10-31  Bob Duff  <duff@adacore.com>
13453             Robert Dewar  <dewar@adacore.com>
13454             Ed Schonberg  <schonberg@adacore.com>
13455
13456         * g-awk.adb (Default_Session, Current_Session): Compile this file in
13457         Ada 95 mode, because it violates the new rules for AI-318.
13458
13459         * g-awk.ads: Use overloaded subprograms in every case where we used to
13460         have a default of Current_Session. This makes the code closer to be
13461         correct for both Ada 95 and 2005.
13462
13463         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13464         code, relying on the fact that the compiler generates a warning
13465         instead of an error in -gnatg mode.
13466
13467         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13468         E_Return_Statement entity kind.
13469         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13470
13471         * par.adb (P_Interface_Type_Definition): Addition of one formal to
13472         report an error if the reserved word abstract has been previously found.
13473         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13474
13475         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13476         parenthesized range attribute usage
13477         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13478
13479         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13480         in the syntax for extended_return_statement. This is not in the latest
13481         RM, but the ARG is expected to issue an AI allowing this.
13482         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13483         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13484         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13485         P_Return_Statement): Parse the new syntax for extended_return_statement.
13486
13487         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13488         Output_End_Missing): Add error-recovery code for the new
13489         extended_return_statement syntax; that is, the new E_Return entry on
13490         the scope stack.
13491
13492         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13493         limited to nonlimited, because otherwise we violate the new Ada 2005
13494         rules about returning limited types in function Create_AST_Handler in
13495         s-asthan.adb.
13496
13497         * sem.adb (Analyze): Add cases for new node kinds
13498         N_Extended_Return_Statement and N_Return_Object_Declaration.
13499
13500         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13501         type is in the same category as type of context before applying check,
13502         to prevent anomalies in instantiations.
13503         (Resolve_Aggregate): Remove test for limited components in aggregates.
13504         It's unnecessary in Ada 95, because if it has limited components, then
13505         it must be limited. It's wrong in Ada 2005, because limited aggregates
13506         are now allowed.
13507         (Resolve_Record_Aggregate): Move check for limited types later, because
13508         OK_For_Limited_Init requires its argument to have been resolved.
13509         (Get_Value): When copying the component default expression for a
13510         defaulted association in an aggregate, use the sloc of the aggregate
13511         and not that of the original expression, to prevent spurious
13512         elaboration errors, when the expression includes function calls.
13513         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13514         were missing. We also didn't handle qualified expressions. Now also
13515         allow function calls. Use new common routine OK_For_Limited_Init.
13516         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13517         with space can upper case letter).
13518
13519         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13520         Has_Static_Discriminants flag
13521         (Record_Type_Declaration): Diagnose an attempt to declare an interface
13522         type with discriminants.
13523         (Process_Range_Expr_In_Decl): Do validity checks on range
13524         (Build_Discriminant_Constraints): Use updated form of
13525         Denotes_Discriminant.
13526         (Process_Subtype): If the subtype is a private subtype whose full view
13527         is a concurrent subtype, introduce an itype reference to prevent scope
13528         anomalies in gigi.
13529         (Build_Derived_Record_Type, Collect_Interface_Primitives,
13530         Record_Type_Declaration):  The functionality of the subprograms
13531         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13532         is now performed by a single routine.
13533         (Build_Derived_Record_Type): If the type definition includes an explicit
13534         indication of limitedness, then the type must be marked as limited here
13535         to ensure that any access discriminants will not be treated as having
13536         a local anonymous access type.
13537         (Check_Abstract_Overriding): Issue a detailed error message when an
13538         abstract subprogram was not overridden due to incorrect mode of its
13539         first parameter.
13540         (Analyze_Private_Extension_Declaration): Add support for the analysis of
13541         synchronized private extension declarations. Verify that the ancestor is
13542         a limited or synchronized interface or in the generic case, the ancestor
13543         is a tagged limited type or synchronized interface and all progenitors
13544         are either limited or synchronized interfaces.
13545         Derived_Type_Declaration): Check for presence of private extension when
13546         dealing with synchronized formal derived types.
13547         Process_Full_View): Enchance the check done on the usage of "limited" by
13548         testing whether the private view is synchronized.
13549         Verify that a synchronized private view is completed by a protected or
13550         task type.
13551         (OK_For_Limited_Init_In_05): New function.
13552         (Analyze_Object_Declaration): Move check for limited types later,
13553         because OK_For_Limited_Init requires its argument to have been resolved.
13554         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13555         in order to alleviate the upward compatibility introduced by AI-318.
13556         (Constrain_Corresponding_Record): If the constraint is for a component
13557         subtype, mark the itype as frozen, to avoid out-of-scope references to
13558         discriminants in the back-end.
13559         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13560         this subprogram against wrong sources.
13561         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13562         discriminant of limited type completed with a protected type, when the
13563         discriminant is used to constrain a private component of the type, and
13564         expansion is disabled.
13565         (Find_Type_Of_Object): Do not treat a return subtype that is an
13566         anonymous subtype as a local_anonymous_type, because its accessibility
13567         level is the return type of the enclosing function.
13568         (Check_Initialization): In -gnatg mode, turn the error "cannot
13569         initialize entities of limited type" into a warning.
13570         (OK_For_Limited_Init): Return true for generated nodes, since it
13571         sometimes violates the legality rules.
13572         (Make_Incomplete_Declaration): If the type for which an incomplete
13573         declaration is created happens to be the currently visible entity,
13574         preserve the homonym chain when removing it from visibility.
13575         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13576         inherited subprograms.
13577         (Access_Definition): If this is an access to function that is the return
13578         type of an access_to_function definition, context is a type declaration
13579         and the scope of the anonymous type is the current one.
13580         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13581         incomplete subtype to the set of private dependents of the original
13582         incomplete type.
13583         (Constrain_Discriminated_Type): Emit an error message whenever an
13584         incomplete subtype is being constrained.
13585         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13586         corresponding subtype of the full view of the original incomplete type.
13587         (Check_Incomplete): Properly detect invalid usage of incomplete types
13588         and subtypes.
13589
13590 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13591
13592         * g-catiio.ads, g-catiio.adb (Value): New function.
13593         Given an input String, try and parse a valid Time value.
13594
13595 2006-10-31  Vincent Celier  <celier@adacore.com>
13596
13597         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13598         Integer_Address arithmetic, as in Set_Valid.
13599
13600 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13601             Robert Dewar  <dewar@adacore.com>
13602
13603         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13604         handling executable extension manually and duplicating code.
13605
13606         * make.adb: Implement new -S switch
13607         (Gnatmake): Use new function Osint.Executable_Name instead
13608         of handling executable extension manually.
13609
13610         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13611         is specified, the executable name ends with this suffix.
13612         Take advantage of Osint.Executable_Name instead of duplicating code.
13613
13614         * switch-m.adb: Recognize new gnatmake -S switch
13615
13616         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13617         variable.
13618         (Get_Target_Parameters): Set Executable_Extension_On_Target if
13619         available.
13620
13621         * makeusg.adb: Add line for gnatmake -S switch
13622
13623 2006-10-31  Vincent Celier  <celier@adacore.com>
13624
13625         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13626         call it with -static-libgcc, as there are some platforms, such as
13627         Darwin, where one of these two switches is compulsory to link.
13628
13629 2006-10-31  Vincent Celier  <celier@adacore.com>
13630
13631         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13632         instead of ADA_PROJECT_PATH, for the project path.
13633         (Gnatls): When displaying the project path directories, use host dir
13634         specs.
13635
13636         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13637         names in the project path, as absolute paths may correspond to
13638         multi-valued VMS logical names.
13639
13640 2006-10-31  Vincent Celier  <celier@adacore.com>
13641
13642         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13643         absolute path name.
13644         (Locate_Regular_File): Ditto
13645         (Change_Dir): Remove, no longer used
13646         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13647         on Windows. Get it calling Get_Current_Dir.
13648         (OpenVMS): Remove imported boolean, no longer needed.
13649         (Normalize_Pathname)[VMS]: Do not resolve directory names.
13650         (Pid_To_Integer): New function to convert a Process_Id to  Integer
13651
13652 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13653
13654         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13655         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13656         to No_Socket.
13657         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13658         W_Sig_Socket.
13659
13660 2006-10-31  Robert Dewar  <dewar@adacore.com>
13661
13662         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13663         initial letter o as a zero.
13664
13665 2006-10-31  Robert Dewar  <dewar@adacore.com>
13666
13667         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13668
13669 2006-10-31  Robert Dewar  <dewar@adacore.com>
13670
13671         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13672         variant records
13673         (Layout_Variant_Record): Retrieve the discriminants from the entity
13674         rather than from the type definition, because in the case of a full
13675         type for a private type we need to take the discriminants from the
13676         partial view.
13677         (Layout_Component_List): When applying the Max operator to variants with
13678         a nonstatic size, check whether either operand is static and scale that
13679         operand from bits to storage units before applying Max.
13680         (Layout_Type): In VMS, if a C-convention access type has no explicit
13681         size clause (and does not inherit one in the case of a derived type),
13682         then the size is reset to 32 from 64.
13683
13684 2006-10-31  Vincent Celier  <celier@adacore.com>
13685
13686         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13687         its file has already been loaded, according to the unit being loaded,
13688         not to the current value of Multiple_Unit_Index.
13689
13690 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13691             Eric Botcazou  <ebotcazou@adacore.com>
13692             Arnaud Charlet  <charlet@adacore.com>
13693
13694         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13695         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13696         possible.
13697         (a-except.o): Pass it to the compiler.
13698         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13699         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13700         a-calend-mingw.adb version.
13701
13702         * Makefile.rtl: Added s-dsaser.
13703         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13704         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13705         Ada.Dispatching.Round_Robin.
13706         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13707
13708         * Make-lang.in: Remove all references to gt-ada-decl.h.
13709         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13710         sources.
13711         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13712         Update dependencies.
13713
13714         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13715
13716 2006-10-31  Vincent Celier  <celier@adacore.com>
13717
13718         * mlib-utl.adb (Initialized): Remove, no longer used
13719         (Initialize): Remove, no longer used
13720         (Ar): If Ar_Exec is null, get the location of the archive builder and,
13721         if there is one, the archive indexer. Fail if the archive builder cannot
13722         be found.
13723         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13724         be found.
13725
13726 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13727
13728         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13729         Process_Body_Clauses): If the context of a body includes a use clause
13730         for P.Q then a with_clause for P in the same body is not redundant,
13731         even if the spec also has a with_clause on P.
13732         Add missing continuation mark to error msg
13733         (Build_Limited_Views): A limited view of a type is tagged if its
13734         declaration includes a record extension.
13735         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13736         node, even if the subunit has errors. This avoids malfunction by
13737         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13738         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13739         generation of obsolescent messages for with statements (cannot do
13740         this too early, or we cannot implement avoiding the messages in the
13741         case of obsolescent units withing obsolescent units).
13742         (Install_Siblings): If the with_clause is on a remote descendant of
13743         an ancestor of the current compilation unit, find whether there is
13744         a sibling child unit that is immediately visible.
13745         (Remove_Private_With_Clauses): New procedure, invoked after completing
13746         the analysis of the private part of a nested package, to remove from
13747         visibility the private with_clauses of the enclosing package
13748         declaration.
13749         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13750         now centralized in Generate_Reference.
13751         (Install_Limited_Context_Clauses): Remove superfluous error
13752         message associated with unlimited view visible through use
13753         and renamings. In addition, at the point in which the error
13754         is reported, we add the backslash to the text of the error
13755         to ensure that it is reported as a single error message.
13756         Use new // insertion for some continuation messages
13757         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13758         to create implicit with_clause for parent unit mentioned in original
13759         limited_with_clause.
13760         (Install_Limited_With_Unit): Set entity of parent identifiers if the
13761         unit is a child unit. For ASIS queries.
13762         (Analyze_Subunit): If the subunit appears within a child unit, make all
13763         ancestor child units directly visible again.
13764
13765 2006-10-31  Robert Dewar  <dewar@adacore.com>
13766
13767         * par-ch10.adb (P_Context_Clause): Minor error message fix
13768
13769 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13770             Javier Miranda  <miranda@adacore.com>
13771
13772         * par-ch12.adb: Grammar update and cleanup.
13773         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13774         support for synchronized derived type definitions.
13775         Add the new actual Abstract_Present to every call to
13776         P_Interface_Type_Definition.
13777         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13778         a formal object declaration with an access definition or a subtype mark
13779         with a null exclusion.
13780         (P_Generic_Association): Handle association with box, and others_choice
13781         with box, to support Ada 2005 partially parametrized formal packages.
13782
13783 2006-10-31  Robert Dewar  <dewar@adacore.com>
13784             Javier Miranda  <miranda@adacore.com>
13785
13786         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13787         (P_Type_Declaration): Remove barrier against the reserved word "limited"
13788         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13789         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13790         private extensions.
13791         (P_Type_Declaration): Add the new actual Abstract_Present to every call
13792         to P_Interface_Type_Definition.
13793         (P_Interface_Type_Definition): Addition of one formal to report an error
13794         if the reserved word abstract has been previously found.
13795         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13796         object renaming declaration with an access definition or subtype mark
13797         with a possible null exclusion.
13798
13799         * par-ch9.adb: Minor error msg fix
13800
13801         * par-load.adb: Add missing continuation mark to error msg
13802
13803         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13804
13805 2006-10-31  Vincent Celier  <celier@adacore.com>
13806
13807         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13808         unknown attribute in unknown package or in package that does not need
13809         to be checked.
13810         (Parse_Package_Declaration): Do not issue warning for unknown package in
13811         quiet output.
13812
13813 2006-10-31  Vincent Celier  <celier@adacore.com>
13814
13815         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13816         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13817         Packages_To_Check.
13818
13819 2006-10-31  Vincent Celier  <celier@adacore.com>
13820
13821         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13822         on VMS, change "__" to '.' before checking the name.
13823         (Record_Ada_Source): Always add the source file name in the list of
13824         of sources, even if it is not the first time, as it is for another
13825         source index.
13826         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13827         dot, instead of replacing only the first '_'.
13828
13829         * prj-part.adb (Parse): Convert project file path to canonical form
13830
13831         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13832         extended, the project id of the project extending it is recorded in its
13833         data, even when it has already been processed as an imported project.
13834
13835 2006-10-31  Robert Dewar  <dewar@adacore.com>
13836
13837         * repinfo.adb (List_Entities): Don't list entities from renaming
13838         declarations.
13839
13840 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13841             Robert Dewar  <dewar@adacore.com>
13842
13843         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13844         only a restriction warning is active for the given restriction. This is
13845         desirable because we do not want to modify code in the case where only
13846         a warning is set.
13847         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13848         causes overriding of real restrictions.
13849         Take advantage of new No_Restrictions constant.
13850
13851         * raise.h: (__gnat_set_globals): Change profile.
13852
13853 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13854
13855         * rtsfind.adb: Remove s-polint from comment as it exists no more.
13856
13857         * rtsfind.ads: 
13858         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13859         Move all the entities in obsolete package System.PolyORB_Interface to
13860         System.Partition_Interface.
13861         (RE_Storage_Size): New function in System.Tasking.
13862         (RE_Get_Ceiling): New entity.
13863         (RE_Set_Ceiling): New entity.
13864         (RO_PE_Get_Ceiling): New entity.
13865         (RO_RE_Set_Ceiling): New entity.
13866         (Inherit_CPP_DT): New entity
13867
13868 2006-10-31  Robert Dewar  <dewar@adacore.com>
13869
13870         * scng.adb (Scan, case of numeric literal): Better msg for identifier
13871         starting with a digit.
13872
13873 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13874             Thomas Quinot  <quinot@adacore.com>
13875             Javier Miranda  <miranda@adacore.com>
13876             Gary Dismukes  <dismukes@adacore.com>
13877
13878         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13879         properly an attempt to apply Unchecked_Access to a protected operation.
13880         (OK_Self_Reference): New subprogram to check the legality of an access
13881         attribute whose prefix is the type of an enclosing aggregate.
13882         Generalizes previous mechanism to handle attribute references nested
13883         arbitrarily deep within the aggregate.
13884         (Analyze_Access_Attribute): An access attribute whose prefix is a type
13885         can appear in an aggregate if this is a default-initialized aggregate
13886         for a self-referential type.
13887         (Resolve_Attribute, case Access): Ditto.
13888         Add support for new implementation defined attribute Stub_Type.
13889         (Eval_Attribute, case Attribute_Stub_Type): New case.
13890         (Analyze_Attribute, case Attribute_Stub_Type): New case.
13891         (Stream_Attribute_Available): Implement using new subprogram from
13892         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13893         Has_Specified_Stream_Attribute flag.
13894         Disallow Storage_Size and Storage_Pool for access to subprogram
13895         (Resolve_Attribute, case 'Access et al): Take into account anonymous
13896         access types of return subtypes in extended return statements. Remove
13897         accessibility checks on anonymous access types when Unchecked_Access is
13898         used.
13899         (Analyze_Attribute): Add support for the use of 'Class to convert
13900         a class-wide interface to a tagged type.
13901         Add support for the attribute Priority.
13902         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13903         whether the designated type is discriminated with a constrained partial
13904         view and require static matching in that case.
13905         Add local variable Des_Btyp. The Designated_Type
13906         of an access to incomplete subtype is either its non-limited view if
13907         coming from a limited with or its etype if regular incomplete subtype.
13908
13909         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13910         Fix predicate to identify and allow cases of (expander-generated)
13911         references to tag of designated object of a RACW.
13912         (Validate_Static_Object_Name): In Ada 2005, a formal object is
13913         non-static, and therefore cannot appear as a primary in a preelaborable
13914         package.
13915         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13916         Has_Read_Write_Attributes.
13917         (Has_Read_Write_Attributes): Reimplement in termes of
13918         Has_Stream_Attribute_Definition.
13919         (Missing_Read_Write_Attributes): When checking component types in a
13920         record, unconditionally call Missing_Read_Write_Attributes recursively
13921         (remove guard checking for Is_Record_Type / Is_Access_Type).
13922
13923 2006-10-31  Robert Dewar  <dewar@adacore.com>
13924
13925         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13926         useless assignments here and conditionalize it on absence of exception
13927         handlers.
13928         (Analyze_Exception_Handlers): Small code reorganization of error
13929         detection code, for new handling of formal packages.
13930
13931 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13932             Hristian Kirtchev  <kirtchev@adacore.com>
13933
13934         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13935         that has been constant-folded, preserve information of original tree,
13936         for ASIS uses.
13937         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13938         generated private extension declaration if the formal derived type is
13939         synchronized. Carry synchronized present over to the generated private
13940         extension.
13941         (Validate_Derived_Type_Instance): Ensure that the actual of a
13942         synchronized formal derived type is a synchronized tagged type.
13943         (Instantiate_Formal_Package): When creating the instantiation used to
13944         validate the actual package of a formal declared without a box, check
13945         whether the formal itself depends on a prior actual.
13946         (Instantiate_Formal_Subprogram): Create new entities for the defining
13947         identifiers of the formals in the renaming declaration, for ASIS use.
13948         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13949         a renaming declaration or a subtype declaration for an actual in an
13950         instance, capture location information of declaration in generic, for
13951         ASIS use.
13952         (Instantiate_Formal_Package): Add comments on needed additional tests.
13953         AI-317 (partial parametrization) is fully implemented.
13954         (Validate_Private_Type_Instance): Add check for actual which
13955         must have preelaborable initialization
13956         Use new // insertion for some continuation messages
13957         (Analyze_Formal_Object_Declaration): Change usage of Expression to
13958         Default_Expression. Add type retrieval when the declaration has an
13959         access definition. Update premature usage of incomplete type check.
13960         (Check_Access_Definition): New subsidiary routine. Check whether the
13961         current compilation version is Ada 05 and the supplied node has an
13962         access definition.
13963         (Instantiate object): Alphabetize local variables. Handle the creation
13964         of new renaming declarations with respect to the kind of definition
13965         used - either an access definition or a subtype mark. Guard against
13966         unnecessary error message in the context of anonymous access types after
13967         they have been resolved. Add check for required null exclusion in a
13968         formal object declaration.
13969         (Switch_View): A private subtype of a non-private type needs to be
13970         switched (the base type can have been switched without its private
13971         dependents because of the last branch of Check_Private_View.
13972         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13973         value from BT.
13974         (Instantiate_Type): Emit an error message whenever a class-wide type of
13975         a tagged incomplete type is used as a generic actual.
13976         (Find_Actual_Type): Extend routine to handle a component type in a child
13977         unit that is imported from a formal package in a parent.
13978         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13979         agree on constrainedness, rather than checking against ultimate ancestor
13980         (Instantiate_Subprogram_Body): Create a cross-reference link to the
13981         generic body, for navigation purposes.
13982
13983 2006-10-31  Robert Dewar  <dewar@adacore.com>
13984             Thomas Quinot  <quinot@adacore.com>
13985
13986         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13987         type.
13988         (New_Stream_Subprogram): When processing an attribute definition clause
13989         for a stream-oriented subprogram, record an entity node occurring at
13990         the point of clause to use for checking the visibility of the clause,
13991         as defined by 8.3(23) as amended by AI-195.
13992         (New_Stream_Subprogram): New procedure, factoring behaviour from both
13993          New_Stream_Function and New_Stream_Procedure.
13994         (New_Stream_Function, New_Stream_Procedure): Removed.
13995         (Analyze_Attribute_Definition_Clause, case Address): Check new
13996         Alignment_Check check
13997
13998 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13999             Javier Miranda  <miranda@adacore.com>
14000             Robert Dewar  <dewar@adacore.com>
14001
14002         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
14003         generate the same errors compiling under -gnatc.
14004         (Try_Object_Operation): If no candidate interpretation succeeds, but
14005         there is at least one primitive operation with the right name, report
14006         error in call rather than on a malformed selected component.
14007         (Analyze_Selected_Component): If the prefix is an incomplete type from
14008         a limited view, and the full view is available, use the full view to
14009         determine whether this is a prefixed call to a primitive operation.
14010         (Operator_Check): Verify that a candidate interpretation is a binary
14011         operation before checking the type of its second formal.
14012         (Analyze_Call): Add additional warnings for function call contexts not
14013         yet supported.
14014         (Analyze_Allocator): Move the check for "initialization not allowed for
14015         limited types" after analyzing the expression. This is necessary,
14016         because OK_For_Limited_Init looks at the structure of the expression.
14017         Before analysis, we don't necessarily know what sort of expression it
14018         is. For example, we don't know whether F(X) is a function call or an
14019         indexed component; the former is legal in Ada 2005; the latter is not.
14020         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
14021         were missing. We also didn't handle qualified expressions. Now also
14022         allow function calls. Use new common routine OK_For_Limited_Init.
14023         (Analyze_Type_Conversion): Do not perform some legality checks in an
14024         instance, because the error message will be redundant or spurious.
14025         (Analyze_Overloaded_Selected_Component): Do not do style check when
14026         setting an entity, since we do not know it is the right entity yet.
14027         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
14028         (Analyze_Overloaded_Selected_Component): Same change
14029         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
14030         since regular incomplete subtypes are transformed into corresponding
14031         subtypes of their full views.
14032         (Complete_Object_Operation): Treat name of transformed subprogram call
14033         as coming from source, for browsing purposes.
14034         (Try_Primitive_Operation): If formal is an access parameter, compare
14035         with base type of object to determine whether it is a primitive
14036         operation.
14037         (Operator_Check): If no interpretation of the operator matches, check
14038         whether a use clause on any candidate might make the operation legal.
14039         (Try_Class_Wide_Operation): Check whether the first parameter is an
14040         access type whose designated type is class-wide.
14041
14042 2006-10-31  Robert Dewar  <dewar@adacore.com>
14043             Ed Schonberg  <schonberg@adacore.com>
14044             Gary Dismukes  <dismukes@adacore.com>
14045
14046         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
14047         warn on infinite loops.
14048         Add \\ to some continuation messages
14049         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
14050         (Process_Bounds): If the bounds are integer literals that result from
14051         constant-folding, and they carry a user-defined type, preserve that type
14052         rather than treating this as an integer range.
14053         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
14054         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
14055         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
14056         left hand side of assignment.
14057         (Analyze_Assignment): Add suport to manage assigments to the attribute
14058         priority of a protected object.
14059         (Check_Possible_Current_Value_Condition): Allow fully qualified names
14060         not just identifiers.
14061         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
14062         or AND THEN for possible tracking.
14063         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
14064         case of while loops so we can track values in the loop body.
14065
14066 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14067             Hristian Kirtchev  <kirtchev@adacore.com>
14068             Bob Duff  <duff@adacore.com>
14069
14070         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
14071         procedure cannot be a protected operation (it is a basic_declaration,
14072         not a subprogram_declaration).
14073         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
14074         Subp. Add logic for entry processing.
14075         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
14076         Determine whether an entry or subprogram of a protected or task type
14077         override an inherited primitive of an implemented interface.
14078         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
14079         Update the actual used in calls to Check_Overriding_Indicator.
14080         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
14081         generate the proper reference to the parent unit, for cross-reference.
14082         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
14083         Is_Formal.
14084         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
14085         (Add_Extra_Formal): Revise procedure to allow passing in associated
14086         entity, scope, and name suffix, and handle setting of the new
14087         Extra_Formals field.
14088         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
14089         pass new parameters. Add support for adding the new extra access formal
14090         for functions whose calls are treated as build-in-place.
14091         (Analyze_A_Return_Statement): Correct casing in error message.
14092         Move Pop_Scope to after Analyze_Function_Return, because an extended
14093         return statement really is a full-fledged scope. Otherwise, visibility
14094         doesn't work right. Correct use of "\" for continuation messages.
14095         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
14096         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
14097         the node doesn't get properly marked as analyzed.
14098         (Analyze_Subprogram_Body): If subprogram is a function that returns
14099         an anonymous access type that denotes a task, build a Master Entity
14100         for it.
14101         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
14102         proper usage of null exclusion in a result definition.
14103         (Process_Formals): Code cleanup and new error message.
14104         (Process_Formals): Detect incorrect application of null exclusion to
14105         non-access types.
14106         (Conforming_Types): Handle conformance between [sub]types and itypes
14107          generated for entities that have null exclusions applied to them.
14108         (Maybe_Primitive_Operation): Add an additional type retrieval when the
14109          base type is an access subtype. This case arrises with null exclusions.
14110         (New_Overloaded_Entity): Do not remove the overriden entity from the
14111         homonym chain if it corresponds with an abstract interface primitive.
14112         (Process_Formals): Replace membership test agains Incomplete_Kind with a
14113         call to the synthesized predicate Is_Incomplete_Type.
14114         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
14115         primitives.
14116         (Analyze_Subprogram_Declaration): Check that abstract interface
14117         primitives are abstract or null.
14118         (Analyze_Subprogram_Specification): Remove previous check for abstract
14119         interfaces because it was not complete.
14120         (Has_Interface_Formals): Removed.
14121
14122 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14123             Javier Miranda  <miranda@adacore.com>
14124
14125         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
14126         of Analyze_Package_Body, to create Itype references for anonymous
14127         access types created in the package declaration, whose designated types
14128         may have only a limited view.
14129         (Analyze_Package_Specification): For the private part of a nested
14130         package, install private_with_clauses of enclosing compilation unit if
14131         we are in its visible part.
14132         (Declare_Inherited_Private_Subprograms): Complete barrier
14133         to ensure that the primitive operation has an alias to some parent
14134         primitive. This is now required because, after the changes done for the
14135         implementation of abstract interfaces, the contents of the list of
14136         primitives has entities whose alias attribute references entities of
14137         such list of primitives.
14138         (Analyze_Package_Specification): Simplify code that handles parent units
14139         of instances and formal packages.
14140         (Uninstall_Declarations): Check the convention consistency among
14141         primitive overriding operations of a tagged record type.
14142
14143 2006-10-31  Robert Dewar  <dewar@adacore.com>
14144             Hristian Kirtchev  <kirtchev@adacore.com>
14145             Javier Miranda  <miranda@adacore.com>
14146             Ed Schonberg  <schonberg@adacore.com>
14147
14148         * sem_ch8.adb: Minor error msg rewording
14149         (Undefined): When checking for misspellings, invert arguments (to get
14150         expected and found set right)
14151         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
14152         (Analyze_Generic_Renaming): Same fix
14153         (Use_One_Package): Do not take into account the internal entities of
14154         abstract interfaces during the analysis of entities that are marked
14155         as potentially use-visible.
14156         (Find_Type): Handle the case of an attribute reference for
14157         implementation defined attribute Stub_Type (simply let the analysis of
14158         the attribute reference rewrite it).
14159         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
14160         type that appears in a Use_Type clause.
14161         (Analyze_Object_Renaming): Add support for renaming of the Priority
14162         attribute.
14163         (Find_Type): In Ada 2005, a task type can be used within its own body,
14164         when it appears in an access definition.
14165         (Analyze_Object_Renaming): Remove warning on null_exclusion.
14166         (Analyze_Object_Renaming): Introduce checks for required null exclusion
14167          in a formal object declaration or in a subtype declaration.
14168         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
14169         (Check_Null_Exclusion): New local routine to
14170         Analyze_Subprogram_Renaming. Check whether the formals and return
14171         profile of a renamed subprogram have required null exclusions when
14172         their counterparts of the renaming already impose them.
14173         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
14174         Determine whether an entity is inside a generic scope.
14175         (In_Open_Scope): First pass of documentation update.
14176         (Find_Expanded_Name): Add support for shadow entities associated with
14177         limited withed packages. This is required to handle nested packages.
14178         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
14179         that makes a renaming of a limited withed package illegal.
14180
14181 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14182             Ed Schonberg  <schonberg@adacore.com>
14183
14184         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
14185         Check_Overriding_Indicator.
14186         (Analyze_Task_Definition): Ditto.
14187         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
14188         (Check_Overriding_Indicator): To find overridden interface operation,
14189         examine only homonyms that have an explicit subprogram declaration, not
14190         inherited operations created by an unrelated type derivation.
14191         (Check_Overriding_Indicator): When checking for the presence of "null"
14192         in a procedure, ensure that the queried node is a procedure
14193         specification.
14194         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
14195         type when the formal is an access to variable.
14196         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
14197         (Analyze_Task_Type): Same addition
14198         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
14199         provide navigation capabilities for entries.
14200
14201 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14202             Ed Schonberg  <schonberg@adacore.com>
14203             Javier Miranda  <miranda@adacore.com>
14204             Gary Dismukes  <dismukes@adacore.com>
14205
14206         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
14207         inherited from an interface ancestor by another interface in the
14208         context of an instance as 'late'.
14209         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
14210         of a call to a function that dispatches on access result.
14211         (Check_Dispatching_Operation): In case of late overriding of a primitive
14212         that covers abstract interface subprograms we register it in all the
14213         secondary dispatch tables associated with abstract interfaces.
14214         (Check_Dispatching_Call): Add check that a dispatching call is not made
14215         to a function with a controlling result of a limited type. This is a
14216         current implementation restriction.
14217         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
14218         (Check_Dispatching_Operation): Do no emit a warning if the controlling
14219         argument is an interface type that is a generic formal.
14220         (Is_Interface_Subprogram): Removed.
14221         (Check_Dispatching_Operation): If the subprogram is not a dispatching
14222         operation, check the formals to handle the case in which it is
14223         associated with an abstract interface type.
14224
14225 2006-10-31  Robert Dewar  <dewar@adacore.com>
14226             Ed Schonberg  <schonberg@adacore.com>
14227
14228         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
14229         Add new calls to this procedure during traversal
14230         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
14231         another unit if expansion is disabled.
14232
14233 2006-10-31  Robert Dewar  <dewar@adacore.com>
14234
14235         * sem_eval.adb (Compile_Time_Compare): Make use of information from
14236         Current_Value in the conditional case, to evaluate additional
14237         comparisons at compile time.
14238
14239 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14240             Hristian Kirtchev  <kirtchev@adacore.com>
14241             Javier Miranda  <miranda@adacore.com>
14242
14243         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
14244         subprogram type to provide better diagnostics in case of ambiguity.
14245         (Covers): Handle coverage of formal and actual anonymous access types in
14246         the context of generic instantiation.
14247         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
14248         abstract interface types; this is required to handle concurrent types
14249         with discriminants and abstract interface types.
14250         (Covers): Include type coverage of both regular incomplete subtypes and
14251         incomplete subtypes of incomplete type visibles through a limited with
14252         clause.
14253
14254 2006-10-31  Robert Dewar  <dewar@adacore.com>
14255             Hristian Kirtchev  <kirtchev@adacore.com>
14256             Ed Schonberg  <schonberg@adacore.com>
14257
14258         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
14259         messages for entities in packages which are not used.
14260         (Collect_Synchronized_Interfaces): New procedure.
14261         (Overrides_Synchronized_Primitive): New function.
14262         (Denotes_Discriminant): Extend predicate to apply to task types.
14263         Add missing continuation marks in error msgs
14264         (Unqualify): New function for removing zero or more levels of
14265         qualification from an expression. There are numerous places where this
14266         ought to be used, but we currently only deal properly with zero or one
14267         level.
14268         (In_Instance); The analysis of the actuals in the instantiation of a
14269         child unit is not within an instantiation, even though the parent
14270         instance is on the scope stack.
14271         (Safe_To_Capture_Value): Exclude the case of variables that are
14272         renamings.
14273         (Check_Obsolescent): Removed
14274         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
14275         is an aliased view, even when rewritten as a reference to the target
14276         object in an assignment.
14277         (Get_Subprogram_Entity): New function
14278         (Known_To_Be_Assigned): New function
14279         (Type_Access_Level): Compute properly the access level of a return
14280         subtype that is an anonymous access type.
14281         (Explain_Limited_Type): Correct use of "\" for continuation messages.
14282         (Is_Transfer): The new extended_return_statement causes a transfer of
14283         control.
14284         (Has_Preelaborable_Initialization): New function
14285         (Has_Null_Exclusion): New function. Given a node N, determine whether it
14286         has a null exclusion depending on its Nkind.
14287         Change Is_Lvalue to May_Be_Lvalue
14288         (May_Be_Lvalue): Extensive additional code to deal with subprogram
14289         arguments (IN parameters are not Lvalues, IN OUT parameters are).
14290         (Safe_To_Capture_Value): Extend functionality so it can be used for
14291         the current value condition case.
14292         (Has_Compatible_Alignment): New function
14293         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
14294         objects to handle the Ada 2005 case, where aliasedness no longer implies
14295         that the object is constrained. In particular, for dereferenced names,
14296         the designated object must be assumed to be unconstrained.
14297         (Kill_Current_Values): Properly deal with the case where we encounter
14298         a loop in the scope chain.
14299         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
14300         a value.
14301         (Compile_Time_Constraint_Error): Improve error message in error case
14302
14303         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
14304         associated with entities of abstract interface primitives.
14305         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
14306
14307 2006-10-31  Robert Dewar  <dewar@adacore.com>
14308
14309         * s-osinte-tru64.adb: 
14310         Mark Asm statements Volatile to prevent warnings (seems a
14311         reasonable change anyway)
14312         Fixes new warnings
14313
14314         * s-mastop-irix.adb: Add Volatile to Asm statements
14315         Suppresses warning, and seems appropriate in any case
14316
14317         * s-osinte-vms.adb: Add Volatile to Asm statement
14318
14319         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
14320
14321         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
14322         returned.
14323         Add call to Check_Code_Statement
14324
14325 2006-10-31  Robert Dewar  <dewar@adacore.com>
14326             Ed Schonberg  <schonberg@adacore.com>
14327             Bob Duff  <duff@adacore.com>
14328
14329         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14330         Synchronized_Present): Add Formal_Derived_Type_Definition and
14331         Private_Extension_Declaration to the list of assertions.
14332         (Is_Entry_Barrier_Function): New flag
14333         (Has_Self_Reference): New flag on aggregates, to indicate that they
14334         contain a reference to the enclosing type, inserted through a default
14335         initialization.
14336         (Next_Rep_Item): Move from Node4 to Node5.
14337         (Entity): Add this field for N_Attribute_Definition_Clause.
14338         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14339         (N_Return_Object_Declaration): Remove this node kind. We now use
14340         N_Object_Declaration instead.
14341         (Actual_Designated_Subtype): Move to a different place to make room in
14342         N_Extended_Return_Statement.
14343         (Procedure_To_Call): Move to a different place to make room in
14344         N_Extended_Return_Statement.
14345         (Return_Type): Removed this field to make room in return statements
14346         (both kinds).
14347         (Return_Statement_Entity): New field in return statements, in part to
14348         replace Return_Type, and in part to support the fact that return
14349         statements are now pushed on the scope stack during semantic analysis.
14350         (Return_Object_Declarations): New field to support extended return
14351         statements.
14352         (N_Extended_Return_Statement): New node for extended_return_statement
14353         nonterminal.
14354         (N_Return_Object_Declaration): New node for part of
14355         extended_return_statement nonterminal. Needed because all the necessary
14356         fields won't fit in N_Extended_Return_Statement.
14357         Generic_associations now carry the Box_Present flag, to indicate a
14358         default for an actual in a partially parametrized formal package.
14359
14360         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14361         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14362         and for the new predefined dispatching policies: EDF_Across_Priorities,
14363         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14364         Introduce new name Stub_Type for implementation defined attribute.
14365         Add pragma Preelaborable_Initialization
14366         Add entry for Priority attribute.
14367         Add Pragma_Wide_Character_Encoding
14368         (Get_Convention_Name): Given a convention id, this function returns the
14369         corresponding name id from the names table.
14370
14371 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14372             Robert Dewar  <dewar@adacore.com>
14373             Bob Duff  <duff@adacore.com>
14374
14375         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14376         print null exclusion twice in the case of an access definition,
14377         Implement new -gnatL switch
14378         Remove N_Return_Object_Declaration. We now use
14379         N_Object_Declaration instead. Implement the case for
14380         N_Extended_Return_Statement. Alphabetize the cases.
14381         Add cases for new nodes N_Extended_Return_Statement and
14382         N_Return_Object_Declaration. The code is not yet written.
14383         Update the output for N_Formal_Object_Declaration
14384         and N_Object_Renaming_Declaration.
14385         (Write_Itype): Account for the case of a modular integer subtype whose
14386         base type is private.
14387
14388 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
14389
14390         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14391         Remove elaboration code, now done in the binder.
14392
14393         * s-rident.ads: Make this unit Preelaborate.
14394         (No_Restrictions): New constant used to clean up code and follow
14395         preelaborate constraints.
14396
14397         * s-stalib.adb: 
14398         Add System.Restrictions dependence, referenced directly from the
14399         binder generated file.
14400
14401 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
14402
14403         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14404         True when AAMP extended floating-point is in use (48-bit). Change type
14405         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14406         the two byte array types on AFloat. Change type of IV_Ilf overlay
14407         variable from Byte8 to ByteLF. Add appropriate initializations of
14408         floating-point overlays for AAMP cases.
14409
14410 2006-10-31  Javier Miranda  <miranda@adacore.com>
14411
14412         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14413         (Get_Ceiling): New subprogram that returns
14414         the ceiling priority of the protected object.
14415         (Set_Ceiling): New subprogram that sets the new ceiling priority of
14416         the protected object.
14417
14418         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14419
14420         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14421
14422 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14423
14424         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14425         requeuing to the same protected object to give higher priority tasks
14426         the opportunity to execute.
14427
14428 2006-10-31  Robert Dewar  <dewar@adacore.com>
14429
14430         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14431         add more precise check for the character sequence that follows '[' to
14432         avoid possible confusion in case if '[' is the last character of a
14433         string literals.
14434         (Scan_Wide): Always allow brackets encoding
14435
14436 2006-10-31  Olivier Hainque  <hainque@adacore.com>
14437
14438         * s-stchop.ads: make this unit preelaborate. This is desirable in
14439         general and made mandatory by the use of this unit by s-taprop which
14440         is itself preelaborate.
14441
14442         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14443         Td_Events component.
14444
14445 2006-10-31  Vincent Celier  <celier@adacore.com>
14446
14447         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14448         in file names.
14449
14450 2006-10-31  Vincent Celier  <celier@adacore.com>
14451
14452         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14453
14454 2006-10-31  Vincent Celier  <celier@adacore.com>
14455
14456         * makegpr.adb (Check_Compilation_Needed): Take into account path names
14457         with spaces.
14458         (Check_Compilation_Needed): When checking a C or C++ source, do not
14459         resolve symbolic links.
14460         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14461         When not in verbose mode and Ellipse is True, display "..." for the
14462         first argument with Display set to False.
14463         (Build_Global_Archive): Always set Display True for the first object
14464         file. Call Display_Command with Ellipse set to True.
14465
14466 2006-10-31  Matt Heaney  <heaney@adacore.com>
14467
14468         * a-crbtgo.ads: Commented each subprogram
14469
14470         * a-crbtgo.adb: Added reference to book from which algorithms were
14471         adapted.
14472
14473         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14474         indicate which child.
14475         (Generic_Conditional_Insert): changed parameter name from "Success" to
14476         "Inserted".
14477         (Generic_Unconditional_Insert_With_Hint): improved algorithm
14478
14479         * a-coorse.adb (Replace_Element): changed parameter name in call to
14480         conditional insert operation.
14481
14482         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14483
14484         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14485         Generic_Iteration
14486
14487         * a-ciorse.adb (Replace_Element): changed parameter name in call to
14488         conditional insert operation.
14489
14490         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14491         Generic_Iteration.
14492
14493         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14494         instead of mode inout.
14495
14496         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14497         draft
14498         (Generic_Read): preserve existing buckets array if possible
14499         (Generic_Write): don't send buckets array length anymore
14500
14501         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14502         instead of mode inout.
14503
14504         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14505         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14506
14507         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14508         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14509         (Replace_Element): local operation is now an instantiation
14510
14511         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14512         check current length.
14513         (Generic_Replace_Element): new operation
14514
14515 2006-10-31  Doug Rupp  <rupp@adacore.com>
14516
14517         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14518         Call TBK$SYMBOLIZE without omitting parameters.
14519
14520 2006-10-31  Vincent Celier  <celier@adacore.com>
14521
14522         * symbols-processing-vms-ia64.adb,
14523         symbols-processing-vms-alpha.adb (Process): Do not include symbols
14524         that come from generic instantiations in bodies.
14525
14526 2006-10-31  Pat Rogers  <rogers@adacore.com>
14527
14528         * a-rttiev.ads, a-rttiev.adb: 
14529         This is a significant redesign primarily for the sake of automatic
14530         timer task termination but also to fix a design flaw.
14531         Therefore we are now using an RTS lock, instead of a protected
14532         object, to provide mutual exclusion to the queue of pending events
14533         and the type Timing_Event is no longer a protected type.
14534
14535 2006-10-31  Robert Dewar  <dewar@adacore.com>
14536             Cyrille Comar  <comar@adacore.com>
14537             Ben Brosgol  <brosgol@adacore.com>
14538
14539         * debug.adb:  Update flags documentation
14540
14541         * gnat_ugn.texi: Add documentation for new -gnatwq switch
14542         Clean up documentation for several other warning switches
14543         Clarify how task stack size can be specified with various
14544         versions of Windows.
14545         Add note that -gnatVo includes ranges including loops
14546         Add documentation for -gnatL switch
14547         Add note on elaboration warning for initializing variables
14548         Add documentation for new -gnatwt warning switch
14549         Document new form of pragma Warnings (On|Off, string)
14550         Add comment on use of pragma Warnings to control warnings
14551         Add documentation for -gnatjnn switch
14552         Modify section on interfacing with C for VMS 64-bit.
14553         Add doc for -gnatVe/E
14554         Add documentation of new warning flags -gnatww/-gnatwW
14555         Add warnings about address clause overlays to list of warnings
14556         (Exception Handling Control): Document that the option --RTS must be
14557         used consistently for gcc and gnatbind.
14558         Clarify that inlining is not always possible
14559         Update documentation on pragma Unchecked_Union.
14560
14561         * gnat_rm.texi: 
14562         Add documentation for new extended version of pragma Obsolescent
14563         Add documentation for implementation defined attribute 'Stub_Type.
14564         Add note on use of Volatile in asm statements
14565         Add documentation on use of pragma Unreferenced in context clause
14566         Document new form of pragma Warnings (On|Off, pattern)
14567         Document pragma Wide_Character_Encoding
14568         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14569         enforced if code generation is active.
14570         Add section on pragma Suppress to document GNAT specific check
14571         Alignment_Check
14572         Clarify difference between No_Dispatching_Calls & No_Dispatch.
14573         Add documentation for pragma Restrictions (No_Elaboration_Code)
14574
14575         * gnat-style.texi: 
14576         Add comments on layout of subprogram local variables in the
14577         presence of nested subprograms.
14578
14579         * ug_words: Resync.
14580
14581         * elists.ads: Minor reformatting
14582         Node returns Node_Or_Entity_Id (doc change only)
14583
14584         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14585
14586         * g-arrspl.ads (Create): Update comments.
14587
14588         * sem.ads: Add details on the handling of the scope stack.
14589
14590         * usage.adb: Update documentation.
14591
14592         * validsw.ads, validsw.adb: 
14593         Add definition of Validity_Check_Components and implement -gnatVe/E
14594
14595         * vms_data.ads: Add missing VMS qualifiers.
14596
14597         * s-addope.ads: Add documentation on overflow and divide by zero
14598
14599 2006-10-31  Robert Dewar  <dewar@adacore.com>
14600             Thomas Quinot  <quinot@adacore.com>
14601             Arnaud Charlet  <charlet@adacore.com>
14602
14603         * fmap.adb: Put routines in alpha order
14604
14605         * g-boumai.ads: Remove redundant 'in' keywords
14606
14607         * g-cgi.adb: Minor reformatting
14608
14609         * g-cgi.ads: Remove redundant 'in' keywords
14610
14611         * get_targ.adb: Put routines in alpha order
14612
14613         * prj-attr.ads: Minor reformatting
14614
14615         * s-atacco.ads: Minor reformatting
14616
14617         * scn.adb: Put routines in alpha order
14618
14619         * sinput-l.adb: Minor comment fix
14620
14621         * sinput-p.adb: Minor comment fix
14622
14623         * s-maccod.ads: Minor reformatting
14624
14625         * s-memory.adb: Minor reformatting
14626
14627         * s-htable.adb: Fix typo in comment.
14628
14629         * s-secsta.adb: Minor comment update.
14630
14631         * s-soflin.adb: Minor reformatting
14632
14633         * s-stoele.ads: 
14634         Add comment about odd qualification in Storage_Offset declaration
14635
14636         * s-strxdr.adb: 
14637         Remove unnecessary 'in' keywords for formal parameters.
14638
14639         * treeprs.adt: Minor reformatting
14640
14641         * urealp.adb: Put routines in alpha order
14642
14643         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14644         taking string.
14645
14646         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14647
14648         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14649
14650         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14651         workaround as on other platforms.
14652
14653         * g-eacodu-vms.adb: Remove redundant 'in' keywords
14654         * g-expect-vms.adb: Remove redundant 'in' keywords
14655
14656         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14657         clear error message if the list-of-files file cannot be opened.
14658
14659         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14660         equality operator is always visible.
14661
14662         * lang.opt: Woverlength-strings: New option.
14663
14664         * nmake.adt: 
14665         Update copyright, since nmake.ads and nmake.adb have changed.
14666
14667         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14668         (Binder_Output_Time_Stamps_Set): removed.
14669         (Old_Binder_Output_Time_Stamp): idem.
14670         (New_Binder_Output_Time_Stamp): idem.
14671         (Recording_Time_From_Last_Bind): idem.
14672         (Recording_Time_From_Last_Bind): Make constant.
14673
14674         * output.ads, output.adb (Write_Str): Allow LF characters
14675         (Write_Spaces): New procedure
14676
14677         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14678
14679         * inline.adb: Minor reformatting
14680
14681         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14682
14683         * s-mastop-vms.adb: Remove redundant 'in' keywords
14684
14685         * s-osprim-vms.adb: Remove redundant 'in' keywords
14686
14687         * s-trafor-default.adb: Remove redundant 'in' keywords
14688
14689         * 9drpc.adb: Remove redundant 'in' keywords
14690
14691         * s-osinte-mingw.ads: Minor reformatting
14692
14693         * s-inmaop-posix.adb: Minor reformatting
14694
14695         * a-direio.ads: Remove quotes from Compile_Time_Warning message
14696
14697         * a-exexda.adb: Minor code reorganization
14698
14699         * a-filico.adb: Minor reformatting
14700
14701         * a-finali.adb: Minor reformatting
14702
14703         * a-nudira.ads: Remove quote from Compile_Time_Warning message
14704
14705         * a-numeri.ads: Minor reformatting
14706
14707         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14708
14709         * exp_pakd.ads: Fix obsolete comment
14710
14711         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14712         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14713         Probably not a bug, but certainly neater and more efficient.
14714
14715         * a-tienio.adb: Minor reformatting
14716
14717         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14718         Avoid assuming low bound of string is 1.
14719
14720         * gnatbind.adb: Change Bindusg to package and rename procedure as
14721         Display, which now ensures that it only outputs usage information once.
14722         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14723
14724         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14725         Table'First.
14726
14727         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14728         warning.
14729         (Match): Add pragma Assert to ensure that Matches'First is zero
14730
14731         * g-regpat.ads (Match): Document that Matches lower bound must be zero
14732
14733         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14734         documented preconditions (also kills warnings about bad indexes).
14735
14736         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14737         is 1.
14738         (Build_Import_Library): Ditto;
14739
14740         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14741
14742         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14743
14744         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14745         lower bound of choice table is 1.
14746
14747         * sem_case.ads (Analyze_Choices): Document that lower bound of
14748         Choice_Table is 1.
14749
14750         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14751         string is 1.
14752
14753         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14754         and add appropriate Assert pragma to suppress warnings.
14755
14756         * atree.h, atree.ads, atree.adb
14757         Change Elist24 to Elist25
14758         Add definitions of Field28 and Node28
14759         (Traverse_Field): Use new syntactic parent table in sinfo.
14760
14761         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14762
14763         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14764
14765         * exp_tss.adb: Put routines in alpha order
14766
14767         * fe.h: Remove redundant declarations.
14768
14769 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
14770
14771         * utils.c (builtin_function): Rename to gnat_builtin_function.
14772         Move common code to add_builtin_function.
14773         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14774         gnat_builtin_function.
14775         * gigi.h (builtin_function): Rename to gnat_builtin_function.
14776         Change the signature.
14777
14778 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
14779
14780         * Makefile.in: Add TEXI2PDF definition.
14781         * Make-lang.in: Add "ada.pdf" target.
14782
14783 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
14784
14785         * decl.c, utils.c: Fix comment typos.
14786         * utils.c: Fix a typo.
14787
14788 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
14789
14790         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14791         on "pure" Ada subprograms if SJLJ exceptions are used.
14792         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14793         on the declaration node of JMPBUF_SAVE.
14794         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14795         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14796         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14797
14798 2006-08-20  Laurent Guerby  <laurent@guerby.net>
14799
14800         PR ada/28716
14801         g-socket.adb (Bind_Socket): Call Set_Address.
14802
14803 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14804
14805         PR ada/15802
14806         * decl.c (same_discriminant_p): New static function.
14807         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14808         subtype and we have discriminants, fix up the COMPONENT_REFs
14809         for the discriminants to make them reference the corresponding
14810         fields of the parent subtype after it has been built.
14811
14812 2006-09-15  Roger Sayle  <roger@eyesopen.com>
14813
14814         PR ada/18817
14815         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14816         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14817
14818 2006-09-13  Olivier Hainque  <hainque@adacore.com>
14819
14820         PR ada/29025
14821         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14822         of a SAVE_EXPR, just make the operand addressable/not-readonly and
14823         let the common gimplifier code make and propagate a temporary copy.
14824         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14825         out/in-out actuals and defer setting the addressable/readonly bits
14826         to the gimplifier.
14827
14828 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14829
14830         PR ada/28591
14831         * decl.c (components_to_record): Defer emitting debug info for the
14832         record type associated with the variant until after we are sure to
14833         actually use it.
14834
14835 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14836
14837         PR ada/21952
14838         * gigi.h (gnat_internal_attribute_table): Declare.
14839         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14840         * utils.c (gnat_internal_attribute_table): New global variable.
14841         (builtin_function): Always call decl_attributes on the builtin.
14842         (handle_const_attribute): New static function.
14843         (handle_nothrow_attribute): Likewise.
14844
14845 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14846
14847         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14848
14849 2006-06-23  Olivier Hainque  <hainque@adacore.com>
14850
14851         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14852         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14853
14854 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
14855             Eric Botcazou  <ebotcazou@adacore.com>
14856
14857         PR ada/18692
14858         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
14859         check-gnat into check-acats.
14860
14861 2006-06-17  Karl Berry  <karl@gnu.org>
14862
14863         * gnat-style.texi (@dircategory): Use "Software development"
14864         instead of "Programming", following the Free Software Directory.
14865
14866 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14867
14868         PR ada/27944
14869         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14870
14871 2006-06-06  Laurent Guerby  <laurent@guerby.net>
14872
14873         PR ada/27769
14874         mlib-utl.adb: Use Program_Name.
14875
14876 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
14877
14878         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14879         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14880         trans.c, utils.c: Fix comment typos.  Follow spelling
14881         conventions.
14882         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
14883         conventions.
14884
14885 2006-05-19  Nicolas Setton  <setton@adacore.com>
14886
14887         * misc.c (gnat_dwarf_name): New function.
14888         (LANG_HOOKS_DWARF_NAME): Define to it.
14889
14890 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14891
14892         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14893         (ada/misc.o): Likewise.
14894         (ada/utils.o): Likewise.
14895
14896 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
14897
14898         * Makefile.in: Add Ada support for GNU/kFreeBSD.
14899         * s-osinte-kfreebsd-gnu.ads: New file.
14900
14901 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
14902
14903         * Make-lang.in: Rename docdir to gcc_docdir.
14904
14905 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
14906
14907         * gigi.h (get_ada_base_type): Delete.
14908         * utils2.c (get_ada_base_type): Likewise.
14909         * trans.c (convert_with_check): Operate in the real base type.
14910
14911 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14912
14913         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14914
14915 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
14916
14917         * utils.c (create_var_decl): Use have_global_bss_p when deciding
14918         whether to make the decl common.
14919
14920 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14921
14922         * Make-lang.in (Ada): Remove.
14923         (.PHONY): Remove Ada
14924
14925 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14926
14927         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14928         aggregate, check the interpretations of the other operand to find one
14929         that may be a boolean array.
14930
14931         (Analyze_Selected_Component): Fix flow-of-control typo in case where
14932         the prefix is a private extension.
14933
14934 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
14935
14936         PR ada/26315
14937         * utils2.c (find_common_type): If both input types are BLKmode and
14938         have the same constant size, keep using the first one.
14939
14940         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14941
14942         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14943
14944         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14945
14946 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
14947
14948         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
14949         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
14950         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
14951         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14952         Abort_Defer/Undefer pairs to avoid the possibility of a task being
14953         aborted while owning a lock.
14954
14955 2006-02-17  Javier Miranda  <miranda@adacore.com>
14956             Robert Dewar  <dewar@adacore.com>
14957
14958         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14959         through an access to class-wide interface we force the displacement of
14960         the pointer to the allocated object to reference the corresponding
14961         secondary dispatch table.
14962         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14963         if Long_Shifts are supported on the target, even if 64 bit divides
14964         are not supported (configurable run time mode).
14965         (Expand_N_Type_Conversion): Do validity check if validity checks on
14966         operands are enabled.
14967         (Expand_N_Qualified_Expression): Do validity check if validity checks
14968         on operands are enabled.
14969
14970 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14971
14972         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14973         must be materialized when the renamed expression is an explicit
14974         dereference.
14975
14976 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14977
14978         * freeze.adb (Statically_Discriminated_Components): Return false if
14979         the bounds of the type of the discriminant are not static expressions.
14980
14981         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14982         the bounds of the discriminant type are not static.
14983
14984 2006-02-17  Robert Dewar  <dewar@adacore.com>
14985
14986         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14987         then we close To if it is valid.
14988
14989 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14990
14991         * init.c (facility_resignal_table): new array
14992         (__gnat_default_resignal_p): enhance default predicate to resignal if
14993         VMS condition has one of the predefined facility codes.
14994
14995 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14996
14997         * Makefile.in: Use VMS64 specialized versions of several units in
14998         Interfaces.C hierarchy to be compatible with HP C default size choices.
14999         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
15000
15001 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
15002
15003         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
15004         instantiation, the corresponding entity is the related_instance of the
15005         wrapper package created for the instance.
15006
15007 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
15008
15009         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
15010         the current instance is nested within another instance in a child unit.
15011
15012 2006-02-17  Javier Miranda  <miranda@adacore.com>
15013             Ed Schonberg  <schonberg@adacore.com>
15014
15015         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
15016         type we cannot inherit the primitive operations; we inherit the
15017         Corresponding_Record_Type (which has the list of primitive operations).
15018         (Check_Anonymous_Access_Types): When creating anonymous access types for
15019         access components, use Rewrite in order to preserve the tree structure,
15020         for ASIS use.
15021         (Analyze_Object_Declaration): For limited types with access
15022         discriminants with defaults initialized by an aggregate, obtain
15023         subtype from aggregate as for other mutable types.
15024         (Derived_Type_Declaration): If the derived type is a limited interface,
15025         set the corresponding flag (Is_Limited_Record is not sufficient).
15026
15027 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
15028
15029         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
15030         to inline a function that returns an unconstrained type, the return
15031         expression must be the first variable declared in the body of the
15032         function.
15033
15034 2006-02-17  Javier Miranda  <miranda@adacore.com>
15035
15036         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
15037         abstract interface type, the static analysis is not enough to know if
15038         the interface is implemented or not by the source tagged type. Hence
15039         we must pass the work to the expander to generate the required code to
15040         evaluate the conversion at run-time.
15041         (Resolve_Equality_Op): Do not apply previous
15042         transformation if expansion is disasbled, to prevent anomalies when
15043         locating global references in a generic unit.
15044
15045 2006-02-17  Vincent Celier  <celier@adacore.com>
15046
15047         * snames.ads, snames.adb: New standard names for new project attributes:
15048         archive_builder, archive_indexer, compiler_pic_option,
15049         config_body_file_name, config_body_file_name_pattern,
15050         config_file_switches, config_file_unique, config_spec_file_name,
15051         config_spec_file_name_pattern, default_builder_switches,
15052         default_global_compiler_switches, default_language,
15053         dependency_file_kind, global_compiler_switches, include_path,
15054         include_path_file, language_kind, linker_executable_option,
15055         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
15056         roots, runtime_project.
15057
15058 2006-02-17  Matthew Heaney  <heaney@adacore.com>
15059
15060         * a-convec.ads, a-convec.adb: 
15061         (operator "&"): handle potential overflow for large index types
15062         (Insert): removed Contraint_Error when using large index types
15063         (Insert_Space): removed Constraint_Error for large index types
15064         (Length): moved constraint check from Length to Insert
15065
15066         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
15067         as not null access.
15068         Explicit raise statements now include an exception message.
15069         (operator "&"): handle potential overflow for large index types
15070         (Insert): removed Contraint_Error when using large index types
15071         (Insert_Space): removed Constraint_Error for large index types
15072         (Length): moved constraint check from Length to Insert
15073
15074 2006-02-17  Robert Dewar  <dewar@adacore.com>
15075
15076         * s-wchcnv.adb: Document handling of [ on output (we do not change
15077         this to ["5B"] and the new comments say why not.
15078
15079         * gnat_ugn.texi: 
15080         Add note for -gnatVo that this now includes the cases of type
15081         conversions and qualified expressions.
15082         Add comments on handling of brackets encoding for Text_IO
15083
15084 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
15085             Thomas Quinot  <quinot@adacore.com>
15086             Robert Dewar  <dewar@adacore.com>
15087             Javier Miranda  <miranda@adacore.com>
15088
15089         * expander.adb: Fix typo in comment
15090
15091         * exp_pakd.adb: Fix typo
15092         Minor comment reformatting.
15093
15094         * g-dyntab.adb: Minor reformatting
15095
15096         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
15097         aliased subprograms to look for the abstract interface subprogram.
15098
15099 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
15100
15101         * env.c (__gnat_setenv): Use size_t.
15102         (__gnat_unsetenv): Likewise.
15103         (__gnat_clearenv): Likewise.
15104
15105 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
15106
15107         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
15108
15109 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15110
15111         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
15112         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
15113         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
15114         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
15115         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
15116         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
15117         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
15118         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
15119         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
15120         no longer used.
15121
15122 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
15123
15124         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
15125         protection against race conditions is not needed.
15126         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
15127         fallback handler.
15128         (Set_Specific_Handler): Add mutual exclusive access to the specific
15129         handler.
15130         (Specific_Handler): Add mutual exclusive access for retrieving the
15131         specific handler.
15132
15133         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
15134         back handler.
15135
15136         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
15137         Fall_Back_Handler and Specific_Handler.
15138
15139         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
15140         termination handlers.
15141         Set two different owerflow depending on the maximal stack size.
15142
15143         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
15144         protection against race conditions is not needed when executing the
15145         task termination handler.
15146
15147 2006-02-13  Robert Dewar  <dewar@adacore.com>
15148
15149         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
15150         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
15151         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15152         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
15153         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
15154         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
15155         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
15156         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
15157         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
15158         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
15159         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
15160         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
15161         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
15162         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
15163         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
15164         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
15165         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
15166         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
15167         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
15168         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
15169         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
15170         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
15171         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
15172         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
15173         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
15174         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
15175         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
15176         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
15177         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
15178         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
15179         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
15180         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
15181         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
15182         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
15183         reformatting.
15184
15185 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
15186
15187         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
15188         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
15189         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
15190         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
15191         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
15192         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
15193         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
15194         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
15195         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
15196
15197 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15198
15199         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
15200         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
15201         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
15202         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
15203         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
15204         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
15205         replaced by anonymous access type.
15206         (pthread_sigmask): Now take an access sigset_t
15207
15208         * s-osinte-hpux.ads:  Ditto.
15209         (pthread_mutex_t, pthread_cond_t): Update definitions to support
15210         properly 32 and 64 bit ABIs.
15211
15212 2006-02-13  Pascal Obry  <obry@adacore.com>
15213
15214         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
15215         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
15216         s-taprop-linux.adb, s-taprop-solaris.adb,
15217         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
15218         adjustement is already done when calling this routine.
15219
15220 2006-02-13  Pascal Obry  <obry@adacore.com>
15221
15222         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
15223         table to take advantage of the 16 priority levels available on Windows
15224         2000 and XP. On NT4 there are only 7 priority levels, this is properly
15225         supported by this new mapping.
15226
15227 2006-02-13  Nicolas Setton  <setton@adacore.com>
15228
15229         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
15230         (get_encoding): New subprogram. Extracts the encodings from an encoded
15231         Ada name.
15232
15233 2006-02-13  Pascal Obry  <obry@adacore.com>
15234             Nicolas Roche  <roche@adacore.com>
15235             Arnaud Charlet  <charlet@adacore.com>
15236
15237         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
15238         support.
15239         (__gnat_try_lock): Add unicode support by using a specific section on
15240         Windows.
15241         (__gnat_get_current_dir): Idem.
15242         (__gnat_open_read): Idem.
15243         (__gnat_open_rw): Idem.
15244         (__gnat_open_create): Idem.
15245         (__gnat_create_output_file): Idem.
15246         (__gnat_open_append): Idem.
15247         (__gnat_open_new): Idem.
15248         (__gnat_file_time_name): Idem.
15249         (__gnat_set_file_time_name): Idem.
15250         (__gnat_stat): Idem.
15251         (win32_no_block_spawn): Idem.
15252         (__gnat_locate_exec_on_path): Idem.
15253         (__gnat_opendir): New routine.
15254         (__gnat_closedir): Idem.
15255         (__gnat_readdir): Add new parameter length (pointer to int). Update
15256         implementation to use it and add specific Win32 code for Unicode
15257         support.
15258         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
15259         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
15260         (convert_addresses): Do not define this dummy routine on VMS.
15261
15262         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
15263         runtime Unicode support will be activated.
15264         (S2WS): String to Wide-String conversion. This version just copy a
15265         string in non Unicode version.
15266         (WS2S): Wide-String to String conversion. This version just copy a
15267         string in non Unicode version.
15268
15269         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
15270         (Open): Now import __gnat_opendir from adaint.c.
15271         (Read): Change the implementation to support unicode characters. It is
15272         not possible to use strlen() on Windows as this version supports only
15273         standard ASCII characters. So the length of the directory entry is now
15274         returned from the imported __gnat_readdir routine.
15275         Update copyright notice.
15276
15277         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
15278         (opendir): Moved to adaint.c.
15279
15280         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
15281         (Get_Directory): Fix wrong indexing.
15282         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
15283         __gnat_getenv from env.c
15284         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
15285         from env.c
15286
15287         * env.h, env.c: New file.
15288
15289         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
15290         adaint.c by __gnat_getenv from env.c
15291
15292         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
15293         adaint.c by __gnat_getenv from env.c
15294
15295         * Make-lang.in: Add env.o in the list of C object needed by gnat1
15296         and gnatbind.
15297         Update dependencies.
15298
15299 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15300             Olivier Hainque  <hainque@adacore.com>
15301             Eric Botcazou  <ebotcazou@adacore.com>
15302
15303         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
15304         
15305         * gigi.h (value_factor_p): Add prototype and description, now public.
15306
15307         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
15308         promotion for field with rep clause if the associated size was proven
15309         to be in error.
15310         Expand comments describing attempts to use a packable type.
15311         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
15312         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
15313         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
15314         necessary since these are not different types and pointers may
15315         actually designate any subtype in this hierarchy.
15316         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
15317         discriminants but put them into record only if not Unchecked_Union;
15318         pass flag to components_to_record showing Unchecked_Union.
15319         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
15320         components before variants; don't set TYPE_UNCHECKED_UNION_P.
15321         (components_to_record): New argument UNCHECKED_UNION.
15322         Remove special case code for Unchecked_Union and instead use main code
15323         with small changes.
15324
15325         PR ada/26096
15326         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15327         variable with the expression being built, only its inner field.
15328
15329         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15330         emit_sequence_entry_statements.
15331         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15332         (establish_gnat_vms_condition_handler): Move before
15333         Subprogram_Body_to_gnu.
15334         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15335         for a subprogram if it has a foreign convention or is exported.
15336         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15337         substituted for a CONST_DECL.
15338         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15339         Etype to assoc_to_constructor.
15340         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15341         discriminants of Unchecked_Union.
15342         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15343         don't need cluttering preprocessor directives.
15344         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15345         condition handler as current in the compiled function.
15346         (body_with_handlers_p): New function. Tell whether a given sequence of
15347         statements node is attached to a package or subprogram body and involves
15348         exception handlers possibly nested within inner block statements.
15349         (emit_sequence_entry_statements): New function, to emit special
15350         statements on entry of sequences when necessary. Establish GNAT
15351         condition handler in the proper cases for VMS.
15352         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15353         emit_sequence_entry_statements.
15354
15355         * utils2.c (find_common_type): If both input types are BLKmode and
15356         have a constant size, use the smaller one.
15357         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15358         the same.
15359
15360         * utils.c (value_factor_p): Make public, to allow uses from other gigi
15361         units.
15362         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15363         (convert, case UNION_TYPE): Remove special treatment for unchecked
15364         unions.
15365
15366         PR ada/18659
15367         (update_pointer_to): Update variants of pointer types to unconstrained
15368         arrays by attaching the list of fields of the main variant.
15369
15370 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15371             Robert Dewar  <dewar@adacore.com>
15372
15373         * a-exexpr.adb, a-exexpr-gcc.adb
15374         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15375         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15376         Remove code unused for exception propagation for the compiler itself
15377         from a-except.adb and update to still share separate packages.
15378
15379         * a-except.ads, a-except.adb: Ditto.
15380         Add comments that this version is now used only by the compiler and
15381         other basic tools. The full version that includes the Ada 2005 stuff
15382         is in separate files a-except-2005.ads/adb. The reason is that we do
15383         not want to cause bootstrap problems with compilers not recognizing
15384         Wide_Wide_String.
15385         Add exception reason code PE_Implicit_Return
15386         Add new exception reason code (Null Exception_Id)
15387
15388         * a-except-2005.adb, a-except-2005.ads: New files.
15389
15390         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15391
15392         * s-wchcon.adb: New file.
15393
15394         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15395         (traceback.o deps): Likewise.
15396         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15397         Activate build of GMEM instrumentation library on VMS targets.
15398         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15399         Use a-except-2005.ads/adb for all run-time library builds unless
15400         specified otherwise.
15401         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15402         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15403         Use s-parame.adb on all native platforms.
15404         Use s-parame-vxworks.adb on all vxworks platforms.
15405         Add env.c env.h in LIBGNAT_SRCS
15406         Add env.o in LIBGNAT_OBJS
15407         (GNATMAKE_OBJS): Remove ctrl_c.o object.
15408         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15409         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15410         supports VxWorks 6 RTPs.
15411         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15412         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15413
15414         * types.h, types.ads (Terminate_Program): New exception
15415         Add comment on modifying multiple versions of a-except.adb when the
15416         table of exception reasons is modified.
15417         Add exception reason code PE_Implicit_Return
15418         Add new exception reason code (Null Exception_Id)
15419
15420         * clean.adb (Initialize): Get the target parameters before checking
15421         if target is OpenVMS. Move the OpenVMS specific code here from package
15422         body elaboration code.
15423
15424 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15425             Vincent Celier  <celier@adacore.com>
15426             Robert Dewar  <dewar@adacore.com>
15427
15428         * ali-util.adb (Get_File_Checksum): Update to account for change in
15429         profile of Initialize_Scanner.
15430
15431         * gprep.adb (Gnatprep): Update to account for change in profile of
15432         Initialize_Scanner.
15433         (Process_One_File): Same.
15434
15435         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15436         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15437         that behaviour using the new Unit information recorded in the source
15438         files table, rather than going through all units every time.
15439         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15440         (Get_Source_Unit): Same.
15441
15442         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15443         change in profile of Initialize_Scanner.
15444         (Prepare_To_Preprocess): Same.
15445
15446         * lib.ads: Fix typo in comment (templace -> template).
15447
15448         * prj-part.adb (Parse_Single_Project): Update to account for change in
15449         profile of Initialize_Scanner.
15450
15451         * scn.adb (Initialize_Scanner): Account for change in profile of
15452         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15453         Also record the association of the given Source_File_Index to the
15454         corresponding Unit_Number_Type.
15455
15456         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15457         procedure.
15458         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15459         Remove Unit formal for generic scanner: this formal
15460         is only relevant to Scn (the scanner instance used to parse Ada source
15461         files), not to other instances. Update comment accordingly.
15462         (Scan): Use new function Snames.Is_Keyword_Name.
15463
15464         * sinfo-cn.adb: Fix typo in comment.
15465
15466         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15467         Unit.
15468
15469         * sinput.ads (Source_File_Record): New component Unit, used to capture
15470         the unit identifier (if any) associated to a source file.
15471
15472         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15473         Unit in Source_File_Record.
15474
15475         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15476         in profile of Initialize_Scanner.
15477
15478         * scans.adb (Initialize_Ada_Keywords): New procedure
15479
15480         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15481         Ada keywords in the Namet table, without the need to call
15482         Initialize_Scanner.
15483
15484         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15485         (Is_Keyword_Name): New function
15486
15487         * snames.ads: Add subtype Configuration_Pragma_Names
15488         Add pragma Ada_2005 (synonym for Ada_05)
15489         (Is_Keyword_Name): New function
15490
15491         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15492
15493 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15494
15495         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15496         index.
15497
15498         * a-stwima.adb (To_Set): Add extra check when N = 0.
15499
15500         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15501
15502 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15503
15504         * s-parame-mingw.adb, s-parame-linux.adb,
15505         s-parame-solaris.adb: Removed, replaced by s-parame.adb
15506
15507         * s-parame-vxworks.ads: Fix typo.
15508
15509         * s-parame-vxworks.adb: New file.
15510
15511         * s-parame.adb: Version now used by all native platforms.
15512         (Default_Stack_Size): Use 2 megs for default stack size and use
15513         __gl_default_stack_size when available.
15514         (Minimum_Stack_Size): Use 12K.
15515
15516         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15517         (Create_Task): Refine implementation taking advantage of the XP stack
15518         size support. On XP, we now create the thread using the flag
15519         STACK_SIZE_PARAM_IS_A_RESERVATION.
15520
15521         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15522
15523         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15524         XP and 0 on older Windows versions.
15525
15526         * interfac-vms.ads: Removed, no longer used.
15527
15528 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15529
15530         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
15531         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
15532         a-cohase.adb: All explicit raise statements now include an exception
15533         message.
15534
15535         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15536         (Update_Element_Preserving_Key): renamed op to just Update_Element.
15537         Explicit raise statements now include an exception message
15538
15539         * a-cihase.ads, a-cohase.ads: Removed comment.
15540
15541         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15542         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15543         a-szbzha.adb, a-szfzha.ads: New files.
15544
15545 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15546
15547         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15548         quicksort.
15549
15550 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15551
15552         * lang.opt: Wvariadic-macros: New option.
15553         Wold-style-definition: Likewise.
15554         Wmissing-format-attribute: Likewise.
15555
15556         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15557         -Wold-style-definition and -Wmissing-format-attribute.
15558
15559 2006-02-13  Robert Dewar  <dewar@adacore.com>
15560
15561         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15562
15563         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15564
15565 2006-02-13  Nicolas Roche  <roche@adacore.com>
15566
15567         * a-envvar.adb, a-envvar.ads: New files.
15568
15569 2006-02-13  Douglas Rupp  <rupp@adacore.com>
15570
15571         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15572
15573         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15574
15575 2006-02-13  Pat Rogers  <rogers@adacore.com>
15576
15577         * a-rttiev.adb, a-rttiev.ads: New files.
15578
15579 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
15580
15581         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15582         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
15583
15584         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15585
15586 2006-02-13  Robert Dewar  <dewar@adacore.com>
15587
15588         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
15589         sem_case.adb: Minor code reorganization (not Present should be No)
15590
15591 2006-02-13  Geert Bosch  <bosch@adacore.com>
15592             Gary Dismukes  <dismukes@adacore.com>
15593
15594         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15595         0, since the lower bound of the actual string may be greater than one.
15596
15597         PR ada/20753
15598         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15599         layout is requested.
15600
15601 2006-02-13  Vincent Celier  <celier@adacore.com>
15602
15603         * back_end.adb (Scan_Compiler_Arguments): Check if
15604         Search_Directory_Present is True and, if it is, add the argument in
15605         the source search directory path.
15606
15607         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15608         Search_Directory_Present to True.
15609
15610 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
15611
15612         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15613         volatile, to tell the compiler to preserve this variable at any level
15614         of optimization.
15615         (Gen_Versions_Ada): Temporarily work around codegen bug.
15616
15617 2006-02-13  Vincent Celier  <celier@adacore.com>
15618
15619         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15620         gcc to link with option -shared-libgcc.
15621         (Gnatlink): Remove duplicate switches -shared-libgcc
15622
15623 2006-02-13  Robert Dewar  <dewar@adacore.com>
15624
15625         * gnatvsn.ads (Current_Year): New constant, used to easily update
15626         copyright on all GNAT tools.
15627
15628         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15629         copyright notice.
15630
15631 2006-02-13  Robert Dewar  <dewar@adacore.com>
15632
15633         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15634         after hyphen (small aesthetic change useful for a range of numbers
15635         using ^-^.
15636         Suppress range checks for a couple of assignments which otherwise
15637         cause validity checks with validity checking turned on.
15638
15639         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15640         Improvement in error message for object.
15641         (Rep_Item_Too_Late): Remove '!' in warning message.
15642
15643 2006-02-13  Robert Dewar  <dewar@adacore.com>
15644             Eric Botcazou  <ebotcazou@adacore.com>
15645
15646         * err_vars.ads: Suppress range checks for a couple of assignments
15647         which otherwise cause validity checks with validity checking turned on.
15648         Update comments.
15649
15650         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15651         Make message unconditional if it is a warning.
15652         (Error_Msg_NEL): Always output warning messages.
15653         Suppress range checks for a couple of assignments which otherwise
15654         cause validity checks with validity checking turned on.
15655
15656         * errout.ads (Message Insertion Characters): Document that '!' is
15657         implied by '?' in error messages.
15658
15659         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15660         (Gnat1drv): Use a goto to end of main subprogram instead of
15661         Exit_Program (E_Success) so that finalization can occur normally.
15662
15663 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15664
15665         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15666         wrapped around.
15667
15668 2006-02-13  Vincent Celier  <celier@adacore.com>
15669
15670         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15671         Unchecked_Conversion functions.
15672         (Modification_Time): Use direct conversion of OS_Time to Calendar time
15673         when OpenVMS returns False.
15674
15675         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15676         a-dirval.adb (OpenVMS): New Boolean function
15677
15678 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15679             Thomas Quinot  <quinot@adacore.com>
15680
15681         * checks.adb (Build_Discriminant_Checks): If the expression being
15682         checks is an aggregate retrieve the values of its discriminants to
15683         generate the check, rather than creating a temporary and a reference
15684         to it.
15685         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15686         (Install_Null_Excluding_Check): Ditto
15687         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15688         not for the renamed object, so that the actual itype is attached in the
15689         proper context.
15690
15691 2006-02-13  Robert Dewar  <dewar@adacore.com>
15692             Vincent Celier  <celier@adacore.com>
15693
15694         * debug.adb: Eliminate numeric switches for binder/gnatmake
15695
15696         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15697         switches for the compiler.
15698         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15699         (Scan_Make_Switches): When failing with an illegal switch, output an
15700         error message with the full switch.
15701         Eliminate numeric switches for binder/gnatmake
15702
15703         * switch.ads, switch.adb (Bad_Switch): New procedure
15704
15705         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15706         Remove 0-9 as debug flag character possibilities
15707         -d is now controlling the primary stack size when its value is a
15708         positive. Also add checks against invalid values, and support for kb,
15709         mb. Ditto for -D switch.
15710
15711 2006-02-13  Robert Dewar  <dewar@adacore.com>
15712             Serguei Rybin  <rybin@adacore.com>
15713
15714         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15715         save/restore routines.
15716         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15717         were not always properly handled previously.
15718         Since we are changing the tree format anyway, also get rid of the
15719         junk obsolete Immediate_Errors flag.
15720         (Tree_Read): Change the way of reading Tree_Version_String - now we
15721         read the version string from the tree even if its length is not the
15722         same as the length of the version string computed from Gnatvsn.
15723         (Search_Directory_Present): New Boolean flag for the compiler.
15724         Define Tree_Version_String as a dynamic string.
15725         (Default_Stack_Size): new variable, used to handle switch -d.
15726
15727         * par-prag.adb: 
15728         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15729         only for main unit.
15730         Add pragma Ada_2005 (synonym for Ada_05)
15731         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15732         were not always properly handled previously.
15733
15734         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15735         explicit Ada_95 to Ada_2005.
15736
15737 2006-02-13  Javier Miranda  <miranda@adacore.com>
15738             Robert Dewar  <dewar@adacore.com>
15739             Ed Schonberg  <schonberg@adacore.com>
15740
15741         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15742         against errors in the source program: a private types for which the
15743         corresponding full type declaration is missing and pragma CPP_Virtual
15744         is used.
15745         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15746         (Is_Known_Null): New flag
15747         (Has_Pragma_Pure): New flag
15748         (No_Return): Present in all entities, set only for procedures
15749         (Is_Limited_Type): A type whose ancestor is an interface is limited if
15750         explicitly declared limited.
15751         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15752         entities. Only used for component marked Is_Tag. If present it stores
15753         the Offset_To_Top function used to provide this value in tagged types
15754         whose ancestor has discriminants.
15755
15756         * exp_ch2.adb: Update status of new Is_Known_Null flag
15757
15758         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15759
15760         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15761         the categorization sense if Is_Pure was set by pragma Pure_Function.
15762
15763 2006-02-13  Quentin Ochem  <ochem@adacore.com>
15764             Olivier Hainque  <hainque@adacore.com>
15765
15766         * bindusg.adb: Updated documentation for -d and -D switches.
15767
15768         * raise.h (__gnat_set_globals): added new parameter for
15769         Default_Stack_Size.
15770
15771         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15772         (__gnat_handle_vms_condition): Adjust context before raise.
15773         (__gnat_install_handler): Restore the global vector setup for GCC
15774         versions before 3.4, as the frame based circtuitry is not available
15775         in this case.
15776         (__gnat_set_globals): added a parameter default_stack_size
15777         (__gl_default_stack_size): new variable.
15778
15779 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15780
15781         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15782         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15783         does not exist in the Ada RM.
15784         (Compatible_Int_Bounds): Determine whether two integer range bounds
15785         are of equal length and have the same start and end values.
15786         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15787         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15788         aggregate when it is part of an object declaration.
15789         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
15790         constrains discriminants of its parent, add explicitly the discriminant
15791         constraints of the ancestor by retrieving them from the
15792         stored_constraint of the parent.
15793
15794 2006-02-13  Robert Dewar  <dewar@adacore.com>
15795
15796         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15797         attribute Mechanism_Code is applied to renamed subprogram, modify
15798         prefix to point to base subprogram.
15799         Max/Min attributes now violate Restriction No_Implicit_Conditionals
15800
15801         * sinfo.ads: Document that Mechanism_Code cannot be applied to
15802         renamed subprograms so that the front-end must replace the prefix
15803         appropriately.
15804
15805 2006-02-13  Javier Miranda  <miranda@adacore.com>
15806             Gary Dismukes  <dismukes@adacore.com>
15807
15808         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15809         availability of RE_Interface_Tag.
15810         (Build_Initialization_Call): Fix wrong access to the discriminant value.
15811         (Freeze_Record_Type): Do not generate the tables associated with
15812         timed and conditional dispatching calls through synchronized
15813         interfaces if compiling under No_Dispatching_Calls restriction.
15814         When compiling for Ada 2005, for a nonabstract
15815         type with a null extension, call Make_Controlling_Function_Wrappers
15816         and insert the wrapper function declarations and bodies (the latter
15817         being appended as freeze actions).
15818         (Predefined_Primitive_Bodies): Do not generate the bodies of the
15819         predefined primitives associated with timed and conditional
15820         dispatching calls through synchronized interfaces if we are
15821         compiling under No_Dispatching_Calls.
15822         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
15823         service is available before generating a call.
15824         (Make_Controlling_Function_Wrappers): New procedure.
15825         (Expand_N_Full_Type_Declaration): Create a class-wide master for
15826         access-to-limited-interfaces because they can be used to reference
15827         tasks that implement such limited interface.
15828         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15829         procedure spec and body of the Offset_To_Top function that is generated
15830         when the parent of a type with discriminants has secondary dispatch
15831         tables.
15832         (Init_Secondary_Tags): Handle the case in which the parent of the type
15833         containing secondary dispatch tables has discriminants to generate the
15834         correct arguments to call Set_Offset_To_Top.
15835         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15836
15837         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15838         Add Wide_[Wide_]Expanded_Name.
15839         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15840         the same functionality of Get_Prim_Op_Address but applied to predefined
15841         primitive operations because the pointers to the predefined primitives
15842         are now saved in a separate table.
15843         (Parent_Size): Modified to get access to the separate table of primitive
15844         operations or the parent type.
15845         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15846         functionality of Set_Prim_Op_Address but applied to predefined primitive
15847         operations.
15848         (Set_Signature): New subprogram used to store the signature of a DT.
15849         (Displace): If the Offset_To_Top value is not static then call the
15850         function generated by the expander to get such value; otherwise use
15851         the value stored in the table of interfaces.
15852         (Offset_To_Top): The type of the actual has been changed to Address to
15853         give the correct support to tagged types with discriminants. In this
15854         case this value is stored just immediately after the tag field.
15855         (Set_Offset_To_Top): Two new formals have been added to indicate if the
15856         offset_to_top value is static and hence pass this value to the run-time
15857         to store it in the table of interfaces, or else if this value is dynamic
15858         and then pass to the run-time the address of a function that is
15859         generated by the expander to provide this value for each object of the
15860         type.
15861
15862         * rtsfind.ads (Default_Prin_Op_Count): Removed.
15863         (Default_Prim_Op_Count): New entity
15864         (Get_Predefined_Prim_Op_Address): New entity
15865         (Set_Predefined_Prim_Op_Address): New entity
15866         (RE_Set_Signature): New entity
15867
15868 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15869             Ed Schonberg  <schonberg@adacore.com>
15870
15871         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15872         Make_Adjust_Call done for a newly-allocated object.
15873
15874         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15875         in a subprogram are wrapped in a cleanup block, indicate that the
15876         subprogram contains an inner block with an exception handler.
15877         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15878         Adjust call is for a newly-allocated object. In that case we must not
15879         assume that the finalization list chain pointers are correct (since they
15880         come from a bit-for-bit copy of the original object's pointers) so if
15881         the attach level would otherwise be zero (no change), we set it to 4
15882         instead to cause the pointers to be reset to null.
15883
15884         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15885         reset chain pointers to null.
15886
15887 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15888
15889         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15890         string, and the context requires a loop for the assignment (e.g.
15891         because the left-hand side is packed), generate a unique name for the
15892         temporary that holds the string, to prevent spurious name clashes.
15893
15894 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15895             Javier Miranda  <miranda@adacore.com>
15896             Robert Dewar  <dewar@adacore.com>
15897             Gary Dismukes  <dismukes@adacore.com>
15898
15899         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15900         return unconstrained arrays.
15901         Update comments.
15902         (Expand_Call):  An indirect call through an access parameter of a
15903         protected operation is not a protected call.
15904         Add circuit to raise CE in Ada 2005 mode following call
15905         to Raise_Exception.
15906         (Register_DT_Entry): Do nothing if
15907         the run-time does not give support to abstract interfaces.
15908         (Freeze_Subprogram): In case of dispatching operations, do not generate
15909         code to register the operation in the dispatch table if the source
15910         is compiled with No_Dispatching_Calls.
15911         (Register_Predefined_DT_Entry): Generate code that calls the new
15912         run-time subprogram Set_Predefined_Prim_Op_Address instead of
15913         Set_Prim_Op_Address.
15914
15915         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15916         on array assignments if the right-hand side is a function call that has
15917         been inlined. Check is performed on the assignment in the block.
15918         (Process_Bounds): If bounds and range are overloaded, apply preference
15919         rule for root operations to disambiguate, and diagnose true ambiguity.
15920         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15921         a tag-indeterminate right-hand side even when Expander_Active is True.
15922         Needed to ensure that dispatching calls to T'Input are allowed and
15923         get the tag of the target class-wide object.
15924
15925         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15926         an inherited primitive operation that already overrides several
15927         abstract interface primitives. For transitivity, the new entity must
15928         also override all the abstract interface primitives covered by the
15929         inherited overriden primitive.
15930         Emit warning if new entity differs from homograph in same scope only in
15931         that one has an access parameter and the other one has a parameter of
15932         a general access type with the same designated type, at the same
15933         position in the signature.
15934         (Make_Inequality_Operator): Use source locations of parameters and
15935         subtype marks from corresponding equality operator when creating the
15936         tree structure for the implicit declaration of "/=". This does not
15937         change anything in behaviour except that the decoration of the
15938         components of the subtree created for "/=" allows ASIS to get the
15939         string images of the corresponding identifiers.
15940         (Analyze_Return_Statement): Remove '!' in warning message.
15941         (Check_Statement_Sequence): Likewise.
15942         (Analyze_Subprogram_Body): For an access parameter whose designated type
15943         is an incomplete type imported through a limited_with clause, use the
15944         type of the corresponding formal in the body.
15945         (Check_Returns): Implicit return in No_Return procedure now raises
15946         Program_Error with a compile time warning, instead of beging illegal.
15947         (Has_Single_Return):  Function returning unconstrained type cannot be
15948         inlined if expression in unique return statement is not an identifier.
15949         (Build_Body_To_Inline): It is possible to inline a function call that
15950         returns an unconstrained type if all return statements in the function
15951         return the same local variable. Subsidiary procedure Has_Single_Return
15952         verifies that the body conforms to this restriction.
15953
15954         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15955         same type, and  one of them is of an anonymous access type, convert
15956         the other operand to it, so that this is a valid binary operation for
15957         gigi.
15958         (Resolve_Type_Conversion): Handle subtypes of protected types and
15959         task types when accessing to the corresponding record type.
15960         (Resolve_Allocator): Add '\' in 2-line warning message.
15961         Remove '!' in warning message.
15962         (Resolve_Call): Add '\' in 2-line warning message.
15963         (Valid_Conversion): Likewise.
15964         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15965         resulting type may be an access type with an implicit dereference.
15966         Obtain the proper component from the designated type.
15967         (Make_Call_Into_Operator): Handle properly a call to predefined equality
15968         given by an expanded name with prefix Standard, when the operands are
15969         of an anonymous access type.
15970         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15971         Explicit_Dereference and Resolve_Selected_Component, to verify that the
15972         prefix of the expression is not of an incomplete type. Allows full
15973         diagnoses of all semantic errors.
15974         (Resolve_Actuals): If the actual is an allocator whose directly
15975         designated type is a class-wide interface we build an anonymous
15976         access type to use it as the type of the allocator. Later, when
15977         the subprogram call is expanded, if the interface has a secondary
15978         dispatch table the expander will add a type conversion to force
15979         the displacement of the pointer.
15980         (Resolve_Call): If a function that returns an unconstrained type is
15981         marked Inlined_Always and inlined, the call will be inlined and does
15982         not require the creation of a transient scope.
15983         (Check_Direct_Boolean_Op): Removed
15984         (Resolve_Comparison_Op): Remove call to above
15985         (Resolve_Equality_Op): Remove call to above
15986         (Resolve_Logical_Op): Inline above, since this is only call.
15987         (Valid_Conversion): Handle properly conversions between arrays of
15988         convertible anonymous access types.
15989
15990         PR ada/25885
15991         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15992         the literal in an unchecked conversion, because GCC 4.x needs a static
15993         value for a string bound.
15994
15995 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15996             Hristian Kirtchev  <kirtchev@adacore.com>
15997
15998         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15999         components of the corresponding record, take into account component
16000         definitions that are access definitions.
16001         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
16002         procedure is not considered a dispatching call and will be expanded
16003         properly.
16004
16005 2006-02-13  Javier Miranda  <miranda@adacore.com>
16006
16007         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
16008         controlling argument of the dispatching call is an abstract interface
16009         class-wide type then we use it directly.
16010         Check No_Dispatching_Calls restriction.
16011         (Default_Prim_Op_Position): Remove the code that looks for the last
16012         entity in the list of aliased subprograms. This code was wrong in
16013         case of renamings.
16014         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
16015         when the source is compiled with the No_Dispatching_Calls restriction.
16016         (Init_Predefined_Interface_Primitives): No need to inherit primitives
16017         if we are compiling with restriction No_Dispatching_Calls.
16018         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
16019         subprograms if we are compiling under No_Dispatching_Calls restriction.
16020         (Make_DT): Generate a dispatch table with a single dummy entry if
16021         we are compiling with the No_Dispatching_Calls restriction. In
16022         addition, in this case we don't generate code that calls to the
16023         following run-time subprograms: Set_Type_Kind, Inherit_DT.
16024         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
16025         of this subprogram if compiling with the No_Dispatching_Calls
16026         restriction.
16027         (Expand_Type_Conversion): Instead of using the actual parameter,
16028         the argument passed as parameter to the conversion function was
16029         erroneously referenced by the expander.
16030         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
16031         Set_Predefined_Primitive_Op_Address and Set_Signature.
16032         (Expand_Dispatching_Call): Generate call to
16033         Get_Predefined_Prim_Op_Address for predefined primitives.
16034         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
16035         predefined primitives.
16036         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
16037         primitives we reserve one dummy entry to ensure that the tag does not
16038         point to some memory that is associated with some other object. In
16039         addition, remove all the old code that generated the assignments
16040         associated with the signature of the dispatch table and replace them
16041         by a call to the new subprogram Set_Signature.
16042         (Set_All_DT_Position): Change the algorithm because now we have a
16043         separate dispatch table associated with predefined primitive operations.
16044         (Expand_Interface_Conversion): In case of non-static offset_to_top
16045         add explicit dereference to get access to the object after the call
16046         to displace the pointer to the object.
16047         (Expand_Interface_Thunk): Modify the generation of the actual used
16048         in the calls to the run-time function Offset_To_Top to fulfil its
16049         new interface.
16050         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
16051
16052 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16053
16054         * exp_dist.adb (Copy_Specification): For access parameters, copy
16055         Null_Exclusion flag, which will have been set for stream subprograms
16056         in Ada2005 mode.
16057
16058 2006-02-13  Pascal Obry  <obry@adacore.com>
16059
16060         * expect.c (__gnat_expect_portable_execvp): New implementation. The
16061         previous implementation was using the C runtime spawnve routine but
16062         the corresponding wait was using directly the Win32 API. This was
16063         causing some times a lock when waiting for an event using
16064         WaitForSingleObject in __gnat_waitpid. This new implementation uses
16065         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
16066         API fixes this problem.
16067
16068 2006-02-13  Robert Dewar  <dewar@adacore.com>
16069
16070         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
16071         call.
16072
16073 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16074
16075         * exp_pakd.ads: Fix typos in comments.
16076
16077         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
16078         array reference that is an explicit dereference, mark the converted
16079         (packed) array reference as analyzed to prevent a forthcoming
16080         reanalysis from resetting its type to the original (non-packed) array
16081         type.
16082
16083 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16084             Javier Miranda  <miranda@adacore.com>
16085             Eric Botcazou  <ebotcazou@adacore.com>
16086
16087         * exp_util.ads, exp_util.adb (Find_Prim_Op,
16088         Is_Predefined_Primitive_Operation): When
16089         searching for the predefined equality operator, verify that operands
16090         have the same type.
16091         (Is_Predefined_Dispatching_Operation): Remove the code that looks
16092         for the last entity in the list of aliased subprograms. This code
16093         was wrong in case of renamings.
16094         (Set_Renamed_Subprogram): New procedure
16095         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
16096         Exp_Type constant computed when entering this subprogram.
16097         (Known_Null): New function
16098         (OK_To_Do_Constant_Replacement): New function
16099         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
16100         (Side_Effect_Free): An attribute reference 'Input is not free of
16101         side effect, unlike other attributes that are functions. (from code
16102         reading).
16103         (Remove_Side_Effects): Expressions that involve packed arrays or records
16104         are copied at the point of reference, and therefore must be marked as
16105         renamings of objects.
16106         (Is_Predefined_Dispatching_Operation): Return false if the operation is
16107         not a dispatching operation.
16108
16109         PR ada/18819
16110         (Remove_Side_Effects): Lift enclosing type conversion nodes for
16111         elementary types in all cases.
16112
16113 2006-02-13  Javier Miranda  <miranda@adacore.com>
16114
16115         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
16116         task types when accessing to the corresponding record type.
16117         Remove '!' in warning message.
16118
16119 2006-02-13  Olivier Hainque  <hainque@adacore.com>
16120
16121         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
16122         to avoid useless and space inefficient overalignments on targets where
16123         Max_Alignment is larger than 16.
16124
16125 2006-02-13  Pascal Obry  <obry@adacore.com>
16126
16127         * g-catiio.adb (Sec_Number): New type used to compute the number of
16128         seconds since 1-1-1970.
16129         (Image) [Natural]: The parameter was an Integer, as we can't deal with
16130         negative numbers (years, months...) it is better to have a Natural here.
16131         Code clean-up.
16132         (Image) [Number]: Change parameter from Long_Integer to Number.
16133         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
16134         overflow for dates past year 2038.
16135
16136 2006-02-13  Matthew Heaney  <heaney@adacore.com>
16137
16138         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
16139         Constraint_Error.
16140
16141 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16142
16143         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
16144         native platforms.
16145         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
16146         finalization can occur normally.
16147
16148 2006-02-13  Vincent Celier  <celier@adacore.com>
16149
16150         * gnatcmd.adb (Rules_Switches): New table
16151         (Add_To_Rules_Switches): New procedure
16152         (GNATCmd): For command CHECK, put all options following "-rules" in the
16153         Rules_Switches table. Append these -rules switches after the -cargs
16154         switches.
16155
16156 2006-02-13  Robert Dewar  <dewar@adacore.com>
16157
16158         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
16159         These two cases were generating incorrect output, and if this unit
16160         was built with checks on, generated a discriminant mismatch constraint
16161         error.
16162
16163 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16164             Robert Dewar  <dewar@adacore.com>
16165
16166         * lib-xref.adb (Get_Type_Reference): For a private type whose full
16167         view is an array type, indicate the component type as well, for
16168         navigation purposes.
16169         (Generate_Reference): Don't consider array ref on LHS to be a case
16170         of violating pragma Unreferenced.
16171         Do not give Ada 2005 warning except on real reference.
16172
16173 2006-02-13  Vincent Celier  <celier@adacore.com>
16174
16175         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
16176         main source, add switch -mdebug-main=_ada_ so that the executable can
16177         be debugged by the standard VMS debugger.
16178         (Gnatmake): Set No_Main_Subprogram to True when there is no main
16179         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
16180         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
16181         of the last source, as the binding and linking phases are never
16182         performed.
16183         Set all executable obsolete when rebuilding a library.
16184
16185         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
16186         options.
16187
16188 2006-02-13  Javier Miranda  <miranda@adacore.com>
16189
16190         PR ada/23973
16191         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
16192         code to improve the error message reported when the program has
16193         declarations of abstract interface types and it is not compiled with
16194         the -gnat05 switch.
16195         (P_Access_Definition): Reorganize the code to improve the error
16196         message reported when the new Ada 2005 syntax for anonymous
16197         access types is used and the program is not compiled with the
16198         -gnat05 switch.
16199
16200 2006-02-13  Robert Dewar  <dewar@adacore.com>
16201
16202         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
16203         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
16204         (MODE_IN)
16205
16206 2006-02-13  Javier Miranda  <miranda@adacore.com>
16207
16208         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
16209         against source containing syntax errors.
16210
16211 2006-02-13  Vincent Celier  <celier@adacore.com>
16212
16213         * prj.adb (Reset): Initialize the first element of table Namings with
16214         the standard naming data.
16215
16216 2006-02-13  Vincent Celier  <celier@adacore.com>
16217
16218         * prj.ads (Error_Warning): New enumeration type
16219
16220         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
16221         unknown, use the location of the project to report the error.
16222         (When_No_Sources): New global variable
16223         (Report_No_Ada_Sources): New procedure
16224         (Check): New parameter When_No_Sources. Set value of global variable
16225         When_No_Sources,
16226         (Find_Sources): Call Report_No_Ada_Sources when appropriate
16227         (Get_Sources_From_File): Ditto
16228         (Warn_If_Not_Sources): Better warning messages indicating the unit name
16229         and the file name.
16230
16231         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
16232         Call Prj.Proc.Process with parameter When_No_Sources.
16233
16234         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
16235         Call Recursive_Check with parameter When_No_Sources.
16236         (Recursive_Check): New parameter When_No_Sources. Call itself and
16237         Prj.Nmsc.Check with parameter When_No_Sources.
16238         (Process): New parameter When_No_Sources. Call Check with parameter
16239         When_No_Sources.
16240         (Copy_Package_Declarations): New procedure to copy renamed parameters
16241         and setting the location of the declared attributes to the location
16242         of the renamed package.
16243         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
16244         packages.
16245
16246 2006-02-13  Vincent Celier  <celier@adacore.com>
16247
16248         * prj-makr.adb (Make): Preserve the comments from the original project
16249         file.
16250         When removing nodes (attributes Source_Dirs, Source_Files,
16251         Source_List_File and package Naming), save the comments and attach the
16252         saved comments to the newly created nodes.
16253         Do not add a with clause for the naming package if one already exists.
16254
16255 2006-02-13  Javier Miranda  <miranda@adacore.com>
16256             Gary Dismukes  <dismukes@adacore.com>
16257             Robert Dewar  <dewar@adacore.com>
16258
16259         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
16260
16261         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
16262         aliased entities to look for the overriden abstract interface
16263         subprogram.
16264         (Is_Interface_Subprogram): Complete documentation.
16265         (Check_Dispatching_Operation): Do not generate code to register the
16266         operation in the dispatch table if the source is compiled with
16267         restriction No_Dispatching_Calls.
16268         (Override_Dispatching_Operation): Check for illegal attempt to override
16269         No_Return procedure with procedure that is not No_Return
16270         (Check_Dispatching_Call): Suppress the check for an abstract operation
16271         when the original node of an actual is a tag-indeterminate attribute
16272         call, since the attribute, which must be 'Input, can never be abstract.
16273         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
16274         call to the Input attribute (even when rewritten).
16275         (Propagate_Tag): Augment comment to indicate the possibility of a call
16276         to an Input attribute.
16277
16278         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
16279         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
16280
16281         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
16282         No_Wide_Characters is no longer partition-wide
16283         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
16284         rather than GNAT
16285
16286 2006-02-13  Douglas Rupp  <rupp@adacore.com>
16287
16288         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
16289
16290 2006-02-13  Javier Miranda  <miranda@adacore.com>
16291
16292         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
16293         handles default-initialized components to keep separate the management
16294         of this feature but also avoid the unrequired resolution and
16295         expansion of components that do not have partially initialized
16296         values.
16297         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
16298         (Check_Bounds): Likewise.
16299         (Check_Length): Likewise.
16300
16301 2006-02-13  Javier Miranda  <miranda@adacore.com>
16302             Ed Schonberg  <schonberg@adacore.com>
16303
16304         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
16305         abstract interface type call analyze_and_resolve to expand the type
16306         conversion into the corresponding displacement of the
16307         reference to the base of the object.
16308         (Eval_Attribute, case Width): For systems where IEEE extended precision
16309         is supported, the maximum exponent occupies 4 decimal digits.
16310         (Accessibility_Message): Add '\' in 2-line warning message.
16311         (Resolve_Attribute): Likewise.
16312         (case Attribute_Access): Significantly revise checks
16313         for illegal access-to-subprogram Access attributes to properly enforce
16314         the rules of 3.10.2(32/2).
16315         Diagnose use of current instance with an illegal attribute.
16316
16317         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
16318         to a Node_Id.
16319         (Enclosing_Generic_Unit): New function to return a node's innermost
16320         enclosing generic declaration node.
16321         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
16322         (Type_Access_Level): The accessibility level of anonymous acccess types
16323         associated with discriminants is that of the current instance of the
16324         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16325         (Compile_Time_Constraint_Error): Handle case of conditional expression.
16326         (Kill_Current_Values_For_Entity): New function
16327         (Enter_Name): Change formal type to Entity_Id
16328
16329 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
16330             Ed Schonberg  <schonberg@adacore.com>
16331             Gary Dismukes  <dismukes@adacore.com>
16332
16333         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16334         Analyze_Compilation_Unit.
16335         Detect and warn on redundant with clauses detected in a package spec
16336         and/or body when -gnatwr is used.
16337         (Analyze_Context): Analyze config pragmas before other items
16338         (Install_Context_Items): Don't analyze config pragmas here
16339         (Install_Limited_Withed_Unit): Set limited entity of package in
16340         with_clause so that cross-reference information or warning messages on
16341         unused packages can be properly generated
16342         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16343         has Error_Posted set. Prevent infinite loops in illegal programs.
16344         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16345         to the point of the error test requiring the current unit to be private.
16346         This ensures that private with clauses are not exempted from the basic
16347         checking for being a descendant of the same library unit parent as a
16348         withed private descendant unit.
16349         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16350         handle private with clauses properly, as well as to account for cases
16351         where the withed unit is a public descendant of a private ancestor
16352         (in which case the current unit must be a descendant of the private
16353         ancestor's parent). The spec comments were updated accordingly. Also,
16354         the old error message in this subprogram was replaced with error
16355         messages that mirror the errors tested and reported by
16356         Check_Private_Child_Unit.
16357         Parameter and variable names improved for readability.
16358         (Install_Limited_Context_Clauses): Remove test for a withed unit being
16359         private as the precondition for calling
16360         Check_Private_Limited_Withed_Unit since that subprogram has been
16361         revised to test public units as well as private units.
16362
16363 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16364             Robert Dewar  <dewar@adacore.com>
16365             Ed Schonberg  <schonberg@adacore.com>
16366             Javier Miranda  <miranda@adacore.com>
16367
16368         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16369         that Scope_Stack.First = 1.
16370         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16371         were not always properly handled previously.
16372         (Formal_Entity): Complete rewrite, to handle properly some complex case
16373         with multiple levels of parametrization by formal packages.
16374         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16375         to the corresponding derived type declaration for proper semantics.
16376
16377         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16378         (Check_Component): Enforce restriction on components of
16379         unchecked_unions: a component in a variant cannot contain tasks or
16380         controlled types.
16381         (Unchecked_Union): Allow nested variants and multiple discriminants, to
16382         conform to AI-216.
16383         Add pragma Ada_2005 (synonym for Ada_05)
16384         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16385         were not always properly handled previously.
16386         Document that pragma Propagate_Exceptions has no effect
16387         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16388         (Set_Convention_From_Pragma): Check that if a convention is
16389         specified for a dispatching operation, then it must be
16390         consistent with the existing convention for the operation.
16391         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16392         longer required to specify an vtable-ptr component in the record. For
16393         compatibility reasons we leave the support for the previous definition.
16394         (Analyze_Pragma, case No_Return): Allow multiple arguments
16395
16396         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16397         non-overrideen inherited operation with a controlling result as
16398         illegal only its implicit declaration comes from the derived type
16399         declaration of its result's type.
16400         (Check_Possible_Deferred_Completion): Relocate the object definition
16401         node of the subtype indication of a deferred constant completion rather
16402         than directly analyzing it. The analysis of the generated subtype will
16403         correctly decorate the GNAT tree.
16404         (Record_Type_Declaration): Check whether this is a declaration for a
16405         limited derived record before analyzing components.
16406         (Analyze_Component_Declaration): Diagnose record types  not explicitly
16407         declared limited when a component has a limited type.
16408         (Build_Derived_Record_Type): Code reorganization to check if some of
16409         the inherited subprograms of a tagged type cover interface primitives.
16410         This check was missing in case of a full-type associated with a private
16411         type declaration.
16412         (Constant_Redeclaration): Check that the subtypes of the partial and the
16413         full view of a constrained deferred constant statically match.
16414         (Mentions_T): A reference to the current type in an anonymous access
16415         component declaration  must be an entity name.
16416         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16417         class_wide type to refer to full type, not to the incomplete one.
16418         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16419         available. Required to give support to the certified run-time.
16420         (Analyze_Component_Declaration): In case of anonymous access components
16421         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16422         (Process_Discriminants): For an access discriminant, use the
16423         discriminant specification as the associated_node_for_itype, to
16424         simplify accessibility checks.
16425
16426 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16427             Javier Miranda  <miranda@adacore.com>
16428
16429         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16430         abstract interpretations on an operator, remove interpretations that
16431         yield Address or a type derived from it, if one of the operands is an
16432         integer literal.
16433         (Try_Object_Operation.Try_Primitive_Operation,
16434         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16435         location when creating the new reference to a primitive or class-wide
16436         operation as a part of rewriting a subprogram call.
16437         (Try_Primitive_Operations): If context requires a function, collect all
16438         interpretations after the first match, because there may be primitive
16439         operations of the same type with the same profile and different return
16440         types. From code reading.
16441         (Try_Primitive_Operation): Use the node kind to choose the proper
16442         operation when a function and a procedure have the same parameter
16443         profile.
16444         (Complete_Object_Operation): If formal is an access parameter and prefix
16445         is an object, rewrite as an Access reference, to match signature of
16446         primitive operation.
16447         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16448         by an expanded name with prefix Standard, when the operands are of an
16449         anonymous access type.
16450         (Remove_Abstract_Operations): If the operation is abstract because it is
16451         inherited by a user-defined type derived from Address, remove it as
16452         well from the set of candidate interpretations of an overloaded node.
16453         (Analyze_Membership_Op): Membership test not applicable to cpp-class
16454         types.
16455
16456 2006-02-13  Bob Duff  <duff@adacore.com>
16457
16458         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16459         redundant use clauses.
16460         In particular, if the scope of two use clauses overlaps, but one is not
16461         entirely included in the other, we should not warn.  This can happen
16462         with nested packages.
16463         (Analyze_Subprogram_Renaming): Protect the compiler against previously
16464         reported errors. The bug was reported when the compiler was built
16465         with assertions enabled.
16466         (Find_Type): If the node is a 'Class reference and the prefix is a
16467         synchronized type without a corresponding record, return the type
16468         itself.
16469
16470 2006-02-13  Javier Miranda  <miranda@adacore.com>
16471
16472         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16473         if this is the full-declaration associated with a private declaration
16474         that implement interfaces, then the private type declaration must be
16475         limited.
16476         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16477         as aliased. The use of the 'access attribute is not available for such
16478         object (for this purpose the object should be explicitly marked as
16479         aliased, but being an anonymous type this is not possible).
16480
16481 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16482             Robert Dewar  <dewar@adacore.com>
16483
16484         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16485         compilation unit is an elaboration scope.
16486         (Add_Task_Proc): Add '\' in 2-line warning message.
16487         (Activate_All_Desirable): Deal with case of unit with'ed by parent
16488
16489 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16490             Javier Miranda  <miranda@adacore.com>
16491
16492         * sem_type.adb (Write_Overloads): Improve display of candidate
16493         interpretations.
16494         (Add_One_Interp): Do not add to the list of interpretations aliased
16495         entities corresponding with an abstract interface type that is an
16496         immediate ancestor of a tagged type; otherwise we have a dummy
16497         conflict between this entity and the aliased entity.
16498         (Disambiguate): The predefined equality on universal_access is not
16499         usable if there is a user-defined equality with the proper signature,
16500         declared in the same declarative part as the designated type.
16501         (Find_Unique_Type): The universal_access equality operator defined under
16502         AI-230 does not cover pool specific access types.
16503         (Covers): If one of the types is a generic actual subtype, check whether
16504         it matches the partial view of the other type.
16505
16506 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16507
16508         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16509         line. This is necessary to allow In_Extended_Main_Unit to provide
16510         correct results for itypes while writing out expanded source.
16511         (Close_File): No need to update the source_index_table here since it's
16512         now done for each line.
16513
16514 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16515             Robert Dewar  <dewar@adacore.com>
16516
16517         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16518         preserve the source unit where the itype is declared, and prevent a
16519         backend abort.
16520         (Note_Implicit_Run_Time_Call): New procedure
16521         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16522         E_Subprogram_Type)
16523
16524         * sprint.ads: Document use of $ for implicit run time routine call
16525
16526 2006-02-13  Quentin Ochem  <ochem@adacore.com>
16527
16528         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16529         task name.
16530
16531 2006-02-13  Bob Duff  <duff@adacore.com>
16532
16533         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16534         Scan_Unsigned, so we do not scan leading blanks and sign twice.
16535         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16536         raise Constraint_Error.
16537
16538         * s-vallli.adb (Scan_Long_Long_Integer): Call
16539         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16540         do not scan leading blanks and sign twice.
16541         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16542         raise Constraint_Error.
16543
16544         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16545         Scan_Long_Long_Unsigned): Split out most of the processing from
16546         Scan_Long_Long_Unsigned out into
16547         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16548         This prevents scanning leading blanks and sign twice.
16549         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16550         See RM-3.5(44).
16551
16552         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16553         out most of the processing from Scan_Unsigned out into
16554         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16555         This prevents scanning leading blanks and sign twice.
16556
16557         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16558         use with Modular'Value attribute.
16559         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16560         attribute.
16561
16562 2006-02-13  Robert Dewar  <dewar@adacore.com>
16563
16564         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16565
16566 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
16567
16568         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16569         (PPC VxWorks): Likewise.
16570         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16571         (forced_callee): Make non-inlinable and non-pure.
16572         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16573
16574 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16575             Ben Brosgol  <brosgol@adacore.com>
16576             Robert Dewar  <dewar@adacore.com>
16577
16578         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16579         support.
16580         Document that gnatbind -M option is for cross environments only.
16581         Added description of using gnatmem to trace gnat rtl allocs and deallocs
16582         Add note on use of $ to label implicit run time calls
16583         Add documentation for -gnatyI (check mode IN)
16584         Updated chapter on compatibility with HP Ada
16585         VMS-oriented edits.
16586         Ran spell and corrected errors
16587         Add documentation for gnatbind -d and rework documentation of -D
16588         at the same time.
16589         Add subprogram/data elimination section.
16590         Minor editing of annex A.
16591         Add section for gnatcheck.
16592         Add documentation for restriction No_Dispatching_Calls
16593         Add documentation for pragma Ada_2005
16594         Remove mention of obsolete pragma Propagate_Exceptions
16595         Document that pragma Unreferenced can appear after DO in ACCEPT
16596         Clarify Pure_Function for library level units
16597         Mention Max/Min in connection with No_Implicit_Conditionals
16598         No_Wide_Characters restriction is no longer partition-wide
16599         Add a nice example for Universal_Literal_String attribute
16600         Document that pragma No_Return can take multiple arguments
16601
16602         * ug_words: Added entry for gnatcheck
16603
16604         * g-ctrl_c.ads (Install_Handler): Enhance comments
16605
16606         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16607
16608         * g-trasym.ads: Add documentation on how to do off line symbolic
16609         traceback computation.
16610
16611         * s-fatgen.adb: Add comments for Unaligned_Valid
16612
16613         * stand.ads: Fix typo in comment
16614
16615 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16616
16617         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16618
16619 2006-02-06  Roger Sayle  <roger@eyesopen.com>
16620
16621         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16622
16623 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16624
16625         PR target/25926
16626         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16627         implementation that calls __main.
16628
16629 2006-01-25  Peter O'Gorman  <peter@pogma.com>
16630
16631         PR bootstrap/25859
16632         * Makefile.in (GCC_LINK): Remove quotes.
16633         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16634         or $(GCC_LINK).
16635
16636         (powerpc-darwin): Pass -shared-libgcc when building shared library.
16637
16638 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16639
16640         PR ada/24533
16641         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16642
16643 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16644
16645         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16646
16647 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16648
16649         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16650         needed.
16651
16652 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16653
16654         * Make-lang.in: Update dependencies
16655
16656 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16657
16658         * Make-lang.in: Add rule for ada/exp_sel.o
16659
16660 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16661
16662         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16663
16664 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
16665
16666         * gnatvsn.ads (Library_Version): Bump to version 4.2
16667         (ASIS_Version_Number): Bumped.
16668
16669 2005-12-09  Doug Rupp  <rupp@adacore.com>
16670
16671         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16672         Ada bind file prefix on VMS from b$ to b__.
16673         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16674         __init.
16675
16676         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16677         Targparm.OpenVMS_On_Target.
16678         (Object_Suffix): Initialize with target object suffix.
16679         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16680
16681         * butil.adb: Change some Hostparm.OpenVMS checks to
16682         Targparm.OpenVMS_On_Target.
16683
16684         * clean.adb: Change some Hostparm.OpenVMS checks to
16685         Targparm.OpenVMS_On_Target.
16686         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16687         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16688         Ada bind file prefix on VMS from b$ to b__.
16689
16690         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16691         --GCC so that Get_Target_Parameters can find system.ads.
16692         (Gnatlink): Call Get_Target_Parameters in mainline.
16693         Initialize standard packages for Targparm.
16694         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16695         (Process_Args): Also Check for object files with target object
16696         extension.
16697         (Make_Binder_File_Names): Create with target object extension.
16698         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16699         to b__.
16700
16701         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16702         Targparm.OpenVMS_On_Target.
16703         ({declaration},Build_Library,Check_Library): Change Ada bind file
16704         prefix on VMS from b$ to b__.
16705
16706         * osint-b.adb: Change some Hostparm.OpenVMS checks to
16707         Targparm.OpenVMS_On_Target.
16708         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16709         b__.
16710
16711         * targext.c: New file.
16712
16713         * Makefile.in: add support for vxworks653 builds
16714         (../../vxaddr2line): gnatlink with targext.o.
16715         (TOOLS_LIBS): Move targext.o to precede libgnat.
16716         (init.o, initialize.o): Minor clean up in dependencies.
16717         (GNATLINK_OBJS): Add targparm.o, snames.o
16718         Add rules fo building targext.o and linking it explicitly with all
16719         tools.
16720         Also add targext.o to gnatlib.
16721
16722         * Make-lang.in: Add rules for building targext.o and linking it in
16723         with gnat1 and gnatbind.
16724         Add entry for exp_sel.o.
16725
16726         * osint.adb Change some Hostparm.OpenVMS checks to
16727         Targparm.OpenVMS_On_Target.
16728         (Object_File_Name): Use target object suffix.
16729
16730         * osint.ads (Object_Suffix): Remove, no longer used.
16731         (Target_Object_Suffix): Initialize with target object suffix.
16732
16733         * rident.ads: Add special exception to license.
16734
16735         * targparm.adb (Get_Target_Parameters): Set the value of
16736         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16737         value.
16738         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16739         
16740         * targparm.ads: Add special exception to license.
16741
16742         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16743         function.
16744         (Copy_File): Make sure from file is closed if error on to file
16745         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16746
16747         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16748         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16749
16750         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16751         target object suffix.
16752
16753 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
16754             Quentin Ochem  <ochem@adacore.com>
16755             Florian Villoing  <villoing@adacore.com>
16756
16757         * a-taster.ads, a-taster.adb: New files.
16758
16759         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16760         link to the version that does nothing. This way the task termination
16761         routine is not executed twice for the environment task when finishing
16762         because of an unhandled exception.
16763
16764         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16765         handler because of an unhandled exception.
16766
16767         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16768         System.Tasking.Utilities instead of that in System.Tasking.Stages.
16769
16770         * s-finimp.adb (initialization code): Modify the soft link for the
16771         finalization of the global list instead of Adafinal.
16772
16773         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16774         non-tasking version of the soft link for task termination. We do
16775         nothing since if we are using the non-tasking version it
16776         means that the task termination functionality is not used.
16777         (Null_Finalize_Global_List): Add this null version for the procedure
16778         in charge of finalizing the global list for controlled objects.
16779         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16780         instead for handling run-time termination in a more flexible way.
16781         (Adafinal_NT): This new procedure will take care of finalizing the
16782         global list for controlled objects if needed, but no tasking
16783         finalization.
16784
16785         * s-tarest.adb (Task_Lock): Do not try to lock again the
16786         Global_Task_Lock if we already own it. Otherwise, we get blocked in
16787         some run-time operations.
16788         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16789         until all nested locks have been released.
16790         (Task_Wrapper): Call the fall-back task termination handler. It
16791         applies to all tasks but the environment task.
16792         (Finalize_Global_Tasks): Add the call for the task termination
16793         procedure for the environment task.
16794         (Task_Wrapper): suppress warnings around declaration of
16795         Secondary_Stack_Address.
16796
16797         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16798         moved to the Common_ATCB record.
16799         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16800         Common_ATCB record.
16801         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16802         Common_ATCB record.
16803
16804         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16805         Fall_Back_Handler, and Specific_Handler.
16806
16807         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16808         defined in Ada.Task_Termination, to avoid circular dependencies.
16809         (Termination_Handler): Redefine this type here, alredy defined in
16810         Ada.Task_Termination, for avoiding circular dependencies.
16811         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16812         for storing task termination handlers. In addition,
16813         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16814         Common_ATCB because it is used by both the regular and the restricted
16815         run times.
16816         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16817         Common_ATCB because it is used by both the regular and the restricted
16818         run times.
16819         (Common_ATCB): Added a dynamic task analyzer field.
16820
16821         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16822         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16823         (Task_Wrapper): Call the task termination handler. It applies to all
16824         tasks but the environment task.
16825         (Finalize_Global_Tasks): Call the task termination procedure for the
16826         environment task. The call to Finalize_Global_List is now performed
16827         using the soft links mechanism.
16828         (Task_Wrapper): added dynamic stack analysis.
16829
16830         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16831         potentially blocking operations has been moved from
16832         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16833         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16834         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16835         this run-time check.
16836
16837         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16838         of task termination procedure.
16839         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16840         link for the task termination procedure.
16841
16842         * bindusg.adb: (Bindusg): Added documentation for -u option.
16843
16844         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16845         (Get_Main_C): Add handling of dynamic stack analysis.
16846         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16847
16848         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16849         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16850         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16851
16852         * opt.ads: Added flags used by dynamic stack measurement.
16853         (Max_Line_Length): Remove (not used anymore)
16854
16855         * s-io.ads, s-io.adb (Standard_Error): new subprogram
16856         (Standart_Output): new subprogram
16857         (Set_Output): new subprogram
16858         (Put): now uses the value of Current_Out to know if the output has to be
16859         send to stderr or stdout.
16860         
16861         * s-stausa.ads: Complete implementation.
16862
16863         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16864         
16865         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16866         list of Ada 05 files.
16867         (GNAT Library Units): Add AltiVec files.
16868
16869         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16870         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16871         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16872
16873 2005-12-09  Nicolas Setton  <setton@adacore.com>
16874
16875         * adaint.c (__gnat_locate_regular_file): Return immediately if
16876         file_name is empty.
16877
16878 2005-12-09  Javier Miranda  <miranda@adacore.com>
16879             Hristian Kirtchev  <kirtchev@adacore.com>
16880
16881         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16882         to the specification because the frontend generates code that uses this
16883         subprogram.
16884         (Set_Interface_Table): Add missing assertion.
16885         Update documentation describing the run-time structure.
16886         (Displace): New subprogram that displaces the pointer to the object
16887         to reference one of its secondary dispatch tables.
16888         (IW_Membership): Modified to use the new table of interfaces.
16889         (Inherit_TSD): Modified to use the new table of interfaces.
16890         (Register_Interface_Tag): Use the additional formal to fill the
16891         contents of the new table of interfaces.
16892         (Set_Interface_Table): New subprogram that stores in the TSD the
16893         pointer to the table of interfaces.
16894         (Set_Offset_To_Top): Use the additional formal to save copy of
16895         the offset value in the table of interfaces.
16896         Update structure of GNAT Primary and Secondary dispatch table diagram.
16897         Add comment section on GNAT dispatch table prologue.
16898         (Offset_To_Signature): Update the constant value of the Signature field.
16899         (Dispatch_Table): Update comment on hidden fields in the prologue.
16900         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16901         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16902         the type of formal parameter T to Tag, introduce additional assertions.
16903         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16904         conversion.
16905         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16906
16907         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16908         in all the calls to Expand_Interface_Thunk. Instead of referencing the
16909         record component containing the tag of the secondary dispatch table we
16910         have to use the Offset_To_Top run-time function to get this information;
16911         otherwise if the pointer to the base of the object has been displace
16912         we get a wrong value if we use the 'position attribute.
16913
16914         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16915         all the calls to Expand_Interface_Thunk.
16916         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16917         interfaces; hence the call to Set_Interface_Table was clearly wrong.
16918         (Collect_All_Interfaces): Modify the internal subprogram Collect to
16919         ensure that the interfaces implemented by the ancestors are placed
16920         at the header of the generated list.
16921         (Expand_Interface_Conversion): Handle the case in which the displacement
16922         associated with the interface conversion is not statically known. In
16923         this case we generate a call to the new run-time subprogram Displace.
16924         (Make_DT): Generate and fill the new table of interfaces.
16925         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16926         Get_Tagged_Kind and Set_Tagged_Kind.
16927         (Tagged_Kind): New function that determines the tagged kind of a type
16928         with respect to limitedness and concurrency and returns a reference to
16929         RE_Tagged_Kind.
16930         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16931         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16932         primary dispatch table for a type.
16933         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16934         secondary dispatch table respectively of a tagged type.
16935
16936         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16937         (Expand_Interface_Conversion): New subprogram to indicate if the
16938         displacement of the type conversion is statically known.
16939         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16940
16941         * rtsfind.ads (RE_Offset_To_Top): New entity
16942         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16943         accessible to users.
16944         (Re_Displace): New entity
16945         (RE_Interface_Data): New entity
16946         (RE_Set_Interface_Data): New_Entity
16947         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16948         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16949         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16950         RE_TK_Tagged, RE_TK_Task.
16951
16952         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16953         Init_Secondary_Tags_Internal to allow its use with interface types and
16954         also to generate the code for the new additional actual required
16955         by Set_Offset_To_Top.
16956         (Build_Init_Statements): In case of components associated with abstract
16957         interface types there is no need to generate a call to its IP.
16958         (Freeze_Record_Type): Generate Select Specific Data tables only for
16959         concurrent types.
16960         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16961         the bodies and specifications of the predefined primitive operations
16962         dealing with dispatching selects and abort, 'Callable, 'Terminated only
16963         for concurrent types.
16964
16965         * exp_sel.ads, exp_sel.adb: New files.
16966
16967         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16968         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16969         properly protected objects and attach handler in the case of the
16970         restricted profile.
16971         Move embeded package Select_Expansion_Utilities into a separate external
16972         package.
16973         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16974         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16975         (Build_K, Build_S_Assignment): New subprograms, part of the select
16976         expansion utilities.
16977         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16978         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16979         where the trigger is a dispatching procedure of a limited tagged type.
16980
16981 2005-12-09  Olivier Hainque  <hainque@adacore.com>
16982
16983         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16984         pointer initialization values. Make a SAVE_EXPR instead. Add comments
16985         about the use and expansion of SAVE_EXPRs in the various possible
16986         renaming handling cases.
16987         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16988         abusing DECL_FCONTEXT.
16989
16990 2005-12-09  Matthew Heaney  <heaney@adacore.com>
16991
16992         * a-convec.adb (Merge): Added assertions to check whether vector params
16993         are sorted.
16994
16995         * a-coinve.adb (Merge): Added assertions to check whether vector params
16996         are sorted.
16997
16998         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16999         draft.
17000         (Cursor'Read): raises PE
17001
17002         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
17003         to its default value.
17004
17005         * a-cihama.adb: Manually check whether cursor's key and elem are
17006         non-null
17007
17008         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
17009         (Merge): Assert that target and source lists are in order
17010         (Swap): Declare non-const temporaries, to pass to Splice
17011
17012         * a-cdlili.ads: (Splice): Changed param name and param mode
17013
17014         * a-cdlili.adb: (Splice): Changed param name and param mode
17015         (Merge): Assert that target and source lists are in order
17016         (Swap): Declare non-const temporaries, to pass to Splice
17017
17018         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
17019         (Write): declare Stream param as not null
17020
17021         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
17022         an exception message.
17023
17024 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17025             Robert Dewar  <dewar@adacore.com>
17026
17027         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
17028         which is the absolute maximum length we can support.
17029
17030         * frontend.adb: For the processing of configuration pragma files,
17031         remove references to Opt.Max_Line_Length, which is not checked anymore.
17032
17033         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
17034         length.
17035
17036         * scn.adb, scng.adb: 
17037         Always check line length against the absolute supported maximum,
17038         Hostparm.Max_Line_Length.
17039
17040         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
17041         value for the maximum line length is Max_Line_Length (not
17042         Column_Number'Last).
17043         Minor error msg update
17044         (Set_Style_Check_Options): New interface returning error msg
17045         Minor code reorganization (processing for 'M' was out of alpha order)
17046
17047         * switch-c.adb: New interface for Set_Style_Check_Options
17048
17049         * stylesw.ads (Set_Style_Check_Options): New interface returning error
17050         msg.
17051
17052 2005-12-09  Javier Miranda  <miranda@adacore.com>
17053
17054         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
17055         with IP subprogram were only supported if there were limited types.
17056
17057         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
17058         records with IP subprogram were only supported if there were limited
17059         types.
17060
17061 2005-12-09  Olivier Hainque  <hainque@adacore.com>
17062             Eric Botcazou  <ebotcazou@adacore.com>
17063
17064         * trans.c (tree_transform, emit_check): Adjust calls to
17065         build_call_raise, passing the now expected GNAT_NODE argument.
17066
17067         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
17068         source line information than what the current global locus indicates
17069         when appropriate.
17070
17071         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
17072         field has overflowed.
17073         (build_call_raise): Add a GNAT_NODE argument to convey better source
17074         line information than what the current global locus indicates when
17075         appropriate.
17076         (build_component_ref): Adjust call to build_call_raise.
17077
17078 2005-12-09  Pascal Obry  <obry@adacore.com>
17079
17080         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
17081         the iterator is quitting iteration on parent directory.
17082
17083 2005-12-09  Javier Miranda  <miranda@adacore.com>
17084
17085         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
17086         and the assignment to a class-wide object, before the assignment we
17087         generate a run-time check to ensure that the tag of the Target is
17088         covered by the tag of the source.
17089
17090 2005-12-09  Robert Dewar  <dewar@adacore.com>
17091
17092         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
17093         parameter in call to Image_Wide_Character.
17094
17095         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
17096         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
17097         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
17098         annoying FFFE/FFFF inconsistency.
17099
17100 2005-12-09  Robert Dewar  <dewar@adacore.com>
17101             Javier Miranda  <miranda@adacore.com>
17102             Ed Schonberg  <schonberg@adacore.com>
17103
17104         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
17105         of type conversion.
17106         (Find_Interface): New subprogram that given a tagged type and one of its
17107         component associated with the secondary table of an abstract interface
17108         type, return the entity associated with such abstract interface type.
17109         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
17110         base type to create anonymous subtype, because entity may be a locally
17111         declared subtype or generic actual.
17112         (Find_Interface): New subprogram that given a tagged type and one of its
17113         component associated with the secondary table of an abstract interface
17114         type, return the entity associated with such abstract interface type.
17115
17116         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
17117         conversion cannot be handled at compile time. In this case we pass this
17118         information to the expander to generate the appropriate code.
17119
17120 2005-12-09  Robert Dewar  <dewar@adacore.com>
17121             Ed Schonberg  <schonberg@adacore.com>
17122             Gary Dismukes  <dismukes@adacore.com>
17123             Javier Miranda  <miranda@adacore.com>
17124             Hristian Kirtchev  <kirtchev@adacore.com>
17125
17126         * einfo.adb (Itype_Printed): New flag
17127         (Is_Limited_Type): Derived types do not inherit limitedness from
17128         interface progenitors.
17129         (Is_Return_By_Reference_Type): Predicate does not apply to limited
17130         interfaces.
17131
17132         * einfo.ads (Itype_Printed): New flag
17133         Move Is_Wrapper_Package to proper section
17134         Add missing Inline for Is_Volatile
17135
17136         * output.ads, output.adb (Write_Erase_Char): New procedure
17137         (Save/Restore_Output_Buffer): New procedures
17138         (Save/Restore_Output_Buffer): New procedures
17139
17140         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
17141         Add missing support for anonymous access type
17142         (Write_Id): Insert calls to Write_Itype
17143         (Write_Itype): New procedure to output itypes
17144
17145         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
17146         use of "limited" in declaration.
17147
17148         * sinfo.ads, sinfo.adb: 
17149         Formal derived types can carry an explicit "limited" indication.
17150
17151         * sem_ch3.adb: Add with and use of Targparm.
17152         (Create_Component): If Frontend_Layout_On_Target is True and the
17153         copied component does not have a known static Esize, then reset
17154         the size and positional fields of the new component.
17155         (Analyze_Component_Declaration): A limited component is
17156         legal within a protected type that implements an interface.
17157         (Collect_Interfaces): Do not add to the list the interfaces that
17158         are implemented by the ancestors.
17159         (Derived_Type_Declaration): If the parent of the full-view is an
17160         interface perform a transformation of the tree to ensure that it has
17161         the same parent than the partial-view. This simplifies the job of the
17162         expander in order to generate the correct object layout, and it is
17163         needed because the list of interfaces of the full-view can be given in
17164         any order.
17165         (Process_Full_View): The parent of the full-view does not need to be
17166         a descendant of the parent of the partial view if both parents are
17167         interfaces.
17168         (Analyze_Private_Extension_Declaration): If declaration has an explicit
17169         "limited" the parent must be a limited type.
17170         (Build_Derived_Record_Type): A derived type that is explicitly limited
17171         must have limited ancestor and progenitors.
17172         (Build_Derived_Type): Ditto.
17173         (Process_Full_View): Verify that explicit uses of "limited" in partial
17174         and full declarations are consistent.
17175         (Find_Ancestor_Interface): Remove function.
17176         (Collect_Implemented_Interfaces): New procedure used to gather all
17177         implemented interfaces by a type.
17178         (Contain_Interface): New function used to check whether an interface is
17179         present in a list.
17180         (Find_Hidden_Interface): New function used to determine whether two
17181         lists of interfaces constitute a set equality. If not, the first
17182         differing interface is returned.
17183         (Process_Full_View): Improve the check for the "no hidden interface"
17184         rule as defined by AI-396.
17185
17186 2005-12-09  Robert Dewar  <dewar@adacore.com>
17187
17188         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
17189         types, not on record subtypes.
17190         (Freeze_Entity): Code cleanup. Add barrier to the loop
17191         that generates the references for primitive operations. This allows to
17192         remove an unnecessary exception handler.
17193         Code reformatting and comment clean ups.
17194
17195 2005-12-09  Vincent Celier  <celier@adacore.com>
17196
17197         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
17198         If GNAT CHECK is called with a project file, but with no
17199         source on the command line, call gnatcheck with all the compilable
17200         sources of the project.
17201         Take into account the new command Check, for gnatcheck. Treat as for
17202         other ASIS tools: take into account project, specific package Check and
17203         Compiler switches.
17204         For ASIS tools, add the switches in package Compiler for
17205         the invocation of the compiler.
17206
17207         * prj-attr.adb: Add package Check and its attributes
17208
17209         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
17210
17211         * vms_conv.adb (Initialize): Change Params of command Check to
17212         unlimited files.
17213         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
17214         Add data for new command Check
17215
17216         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
17217         ELIM.
17218         Add qualifiers for Check command options
17219         (Command_Type): New command Check
17220
17221 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17222
17223         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
17224         command line switch overruns the output buffer.
17225
17226 2005-12-09  Robert Dewar  <dewar@adacore.com>
17227
17228         * sem_prag.adb: Processing for new pragma Complete_Representation
17229         (Analyze_Pragma, case Debug): Implement two argument form.
17230
17231         * par-prag.adb: Entry for new pragma Complete_Representation
17232         (Prag, case Debug): Recognize two argument form of pragma Debug
17233         New interface for Set_Style_Check_Options.
17234
17235         * sem_ch13.adb: Implement new pragma Complete_Representation.
17236
17237         * snames.adb, snames.ads, snames.h: Entry for new pragma
17238         Complete_Representation.
17239
17240 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
17241
17242         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
17243         available user-specified stream attributes on limited parameters to
17244         also test the type directly rather than only its underlying type (for
17245         Ada 95) and, in the case of Ada 2005, to check that the user-specified
17246         attributes are visible at the point of the subprogram declaration.
17247         For Ada 2005, the error message is modified to indicate that the
17248         type's stream attributes must be visible (again, only for -gnat05).
17249
17250 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17251
17252         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
17253         anonymous access types.
17254
17255         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
17256         matching of anonymous access types and anonymous access to subprogram
17257         types. 'R'M 4.9.1 (2/2).
17258
17259 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17260
17261         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
17262         rule prematurely when operands are universal, remaining ambiguities
17263         will be removed during resolution.
17264         Code cleanup.
17265
17266         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
17267         that are Ada 2005 functions.
17268         (Has_Abstract_Interpretation): Subsidiary to
17269         Remove_Conversions, to remove ambiguities caused by abstract operations
17270         on numeric types when operands are universal.
17271
17272 2005-12-09  Robert Dewar  <dewar@adacore.com>
17273
17274         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
17275         for case where spec is categorized.
17276
17277 2005-12-09  Javier Miranda  <miranda@adacore.com>
17278
17279         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
17280         types use the corresponding record type. This was not needed before
17281         the implementation of Ada 2005 synchronized types because
17282         concurrent types were never tagged types in Ada 95.
17283
17284 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17285
17286         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
17287         first subtype of the type of the expression to verify that it is a
17288         legal Time type.
17289
17290 2005-12-09  Robert Dewar  <dewar@adacore.com>
17291
17292         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
17293         decoded names.
17294
17295 2005-12-09  Quentin Ochem  <ochem@adacore.com>
17296             Robert Dewar  <dewar@adacore.com>
17297             Ed Falis  <falis@adacore.com>
17298             Florian Villoing  <villoing@adacore.com>
17299             Thomas Quinot  <quinot@adacore.com>
17300             Arnaud Charlet  <charlet@adacore.com>
17301
17302         * gnat_ugn.texi: Created section "Stack Related Tools"
17303         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
17304         "Stack Related Tools"
17305         Added subsection "Static Stack Usage Analysis"
17306         Added subsection "Dynamic Stack Usage Analysis"
17307         Include documentation of itypes in sprint listing (-gnatG)
17308         Documented gnatbind -D switch (default sec stack size for fixed sec
17309         stacks).
17310         Added Interrupt_State and Persistent_BSS to list of configuration
17311         pragmas.
17312         Add missing doc for maximum value of nnn in -gnatyMnnn
17313
17314         * gnat_rm.texi: Document the AltiVec binding.
17315         Add documentation for pragma Complete_Representation
17316         Shortened an overly long line (> 79 chars)
17317         Clarify documentation of unchecked conversion in implementation
17318         defined cases.
17319         Document two argument form of pragma Debug
17320
17321         * types.ads (Column_Number): Update documentation.
17322
17323         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17324         library level Finalize_Storage_Only objects (these are not attached to
17325         any finalization list).
17326
17327         * system-mingw.ads: (Underlying_Priorities): Update comment.
17328
17329 2005-12-09  Robert Dewar  <dewar@adacore.com>
17330
17331         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17332         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17333         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17334         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17335         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17336         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17337         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17338         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17339         reformatting.
17340
17341 2005-12-09  Robert Dewar  <dewar@adacore.com>
17342
17343         * s-vaflop-vms-alpha.adb: (Ne_F): New function
17344         (Ne_G): New function
17345
17346         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17347         for tag assignment.
17348         (Rewrite_Comparison): Handle case where operation is not a comparison
17349         and ignore, and also handle type conversion case.
17350
17351 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17352
17353         * exp_aggr.ads: Fix typo in comment.
17354         ???-mark Convert_Aggr_In_Assignment as needing documentation.
17355
17356 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
17357
17358         * layout.adb: Replace various uses of byte by storage unit throughout.
17359         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17360         static size, convert to storage units before returning, to conform to
17361         spec.
17362
17363 2005-12-09  Matthew Gingell  <gingell@adacore.com>
17364
17365         * g-exctra.ads: Fix typo in comment.
17366
17367 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17368
17369         * utils.c: Minor reformatting.
17370
17371 2005-12-09  Robert Dewar  <dewar@adacore.com>
17372
17373         * g-soccon.ads: 
17374         Further comment fixes to make the status of the default file clear
17375
17376         * s-bitops.adb: Clarify comment for Bits_Array
17377
17378 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17379
17380         * Make-lang.in (ada.install-normal): Remove.
17381
17382 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17383
17384         * Make-lang.in: Remove all dependencies on s-gtype.
17385
17386 2005-12-05  Richard Guenther  <rguenther@suse.de>
17387
17388         * utils.c (convert): Use fold_convert where appropriate.
17389
17390 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
17391
17392         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17393         a period is meant.
17394
17395 2005-12-02  Richard Guenther  <rguenther@suse.de>
17396
17397         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17398
17399 2005-12-01  Roger Sayle  <roger@eyesopen.com>
17400
17401         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17402         nodes.
17403
17404 2005-11-23  Laurent Guerby  <laurent@guerby.net>
17405
17406         * mlib-prj.adb (Build_Library): Initialize Delete.
17407
17408 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
17409
17410         * socket.c: Add extern int h_errno for rtems since networking header
17411         files are not available at this point in a tool bootstrap. Newlib
17412         only has basic C library header files.
17413
17414 2005-11-19  Richard Guenther  <rguenther@suse.de>
17415         Roger Sayle  <roger@eyesopen.com>
17416
17417         PR ada/23717
17418         * misc.c (internal_error_function): Don't use vsprintf to format
17419         the error message text, instead use pp_format_text and the new
17420         pretty printer APIs.  This allows handling of %qs, %w, etc.
17421
17422 2005-11-18  Laurent Guerby  <laurent@guerby.net>
17423
17424         PR ada/24857
17425         * Makefile.in: Use s-auxdec-empty for RTEMS.
17426
17427 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17428
17429         PR ada/22333
17430         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17431         a temporary if taking the address of something that is neither
17432         reference, declaration, or constant, since the gimplifier
17433         can't handle that case.
17434
17435 2005-11-17  Laurent Guerby  <laurent@guerby.net>
17436
17437         PR ada/24857
17438         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17439
17440 2005-11-16  Richard Guenther  <rguenther@suse.de>
17441
17442         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17443
17444 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
17445
17446         PR ada/24855
17447         * raise-gcc.c: Add missing stdarg.h include.
17448  
17449 2005-11-16  Richard Guenther  <rguenther@suse.de>
17450
17451         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17452         (ada/misc.o): Likewise.
17453
17454 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17455
17456         * g-soccon.ads: Minor reformatting. Update comments.
17457
17458         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17459         gain visibility on the declaration of struct timeval.
17460
17461         * g-soccon-freebsd.ads,
17462         g-soccon-darwin.ads,
17463         g-soccon-tru64.ads,
17464         g-soccon-aix.ads,
17465         g-soccon-irix.ads,
17466         g-soccon-hpux.ads,
17467         g-soccon-solaris.ads,
17468         g-soccon-vms.ads,
17469         g-soccon-mingw.ads,
17470         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17471
17472         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17473         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17474         g-soccon-linux-x86.ads: New files.
17475
17476         * g-socthi-mingw.adb: 
17477         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17478
17479         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17480         (time_t, suseconds_t): New types constructed to match the tv_sec
17481         and tv_usec fields of C struct timeval.
17482         (Timeval): Construct structure in terms of the new types.
17483         (Host_Errno): New function (imported from socket.c), returns last hosts
17484         database error.
17485
17486         * g-socthi-vxworks.adb:  Add error handling circuitry.
17487
17488         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17489         components of struct timeval.
17490         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17491         (Check_Selector): In error conditions, clear internal socket sets to
17492         avoid a memory leak.
17493         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17494         Send_Timeout, Receive_Timeout.
17495
17496         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17497         the tv_sec and tv_usec fields of C struct timeval.
17498         (Timeval): Construct structure in terms of the new types.
17499         (Host_Errno): New function (imported from socket.c), returns last hosts
17500         database error.
17501
17502         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17503         hosts database last error code.
17504
17505         * gen-soccon.c: Complete value expansion should not be performed on
17506         TARGET, as it has the form of a math expression, and some components
17507         may be platform-defined macros.
17508         For VxWorks, generate the OK and ERROR values.
17509         New constants giving the sizes of the components of C struct timeval.
17510
17511 2005-11-14  Robert Dewar  <dewar@adacore.com>
17512             Ed Schonberg  <schonberg@adacore.com>
17513
17514         PR ada/18434
17515         * types.ads: Include All_Checks in Suppress_Array
17516
17517         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17518         not(a=b), since we no longer do this rewriting, and hence it is not
17519         needed.
17520         (Elaboration_Checks_Suppressed): Add special casing to
17521         deal with different cases of static and dynamic elaboration checks (all
17522         checks does not count in the first case, but does in the second).
17523         (Expr_Known_Valid): Do not assume that the result of any arbitrary
17524         function call is valid, since this is not the case.
17525         (Ensure_Valid): Do not apply validity check to a real literal
17526         in a universal or fixed context
17527
17528         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17529         elementary types using the operator in standard. It is cleaner not to
17530         modify the programmers intent, especially in the case of floating-point.
17531         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17532         it did not matter because we always rewrote a/=b to not(a=b).
17533         (Expand_Allocator_Expression): For an allocator expression whose nominal
17534         subtype is an unconstrained packed type, convert the expression to its
17535         actual constrained subtype.
17536         Implement warning for <= or >= where < or > not possible
17537         Fix to Vax_Float tests (too early in many routines, causing premature
17538         Vax_Float expansions.
17539
17540         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17541         to be used with packages and generic packages as well as with
17542         subprograms.
17543         (Suppress): Set All_Checks, but not Elaboration_Check, for case
17544         of pragma Suppress (All_Checks)
17545         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17546         a string literal for precise control over warnings.
17547         Avoid raise of pragma in case of unrecognized pragma and just return
17548         instead.
17549
17550         * sem_prag.ads: Minor reformatting
17551
17552         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17553         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17554         Switch. Do not handle any exception.
17555         Include -gnatwx as part of -gnatg (warn on redundant parens)
17556         Allow optional = after -gnatm
17557         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17558         longer sets Elaboration_Checks.
17559         Code to set warning mode moved to Sem_Warn
17560         so that it can be shared by pragma processing.
17561
17562         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17563         statement.
17564
17565         * s-taprop-solaris.adb: 
17566         Change some <= to =, to avoid new warning
17567
17568         * a-exexda.adb, prj-proc.adb: 
17569         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17570         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17571
17572 2005-11-14  Robert Dewar  <dewar@adacore.com>
17573
17574         * exp_vfpt.adb: Handle /= case
17575         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17576         so that we do not get duplicate scaling for fixed point conversions.
17577
17578         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17579
17580 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17581
17582         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
17583         Increase default priority on Lynx from 15 to 17, and meet the Ada
17584         requirement that Default_Priority be ((Priority'First +
17585         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17586
17587 2005-11-14  Vincent Celier  <celier@adacore.com>
17588
17589         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17590         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17591         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17592         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17593         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17594         mlib-tgt-lynxos.adb (DLL_Prefix): New function
17595
17596 2005-11-14  Doug Rupp  <rupp@adacore.com>
17597
17598         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17599         private part.
17600
17601 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17602
17603         * s-traces-default.adb, s-trafor-default.ads,
17604         s-tratas-default.adb: Fix compilation errors.
17605
17606 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17607
17608         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17609         raising the exception so the memory used is freed.
17610
17611 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17612
17613         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17614         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17615         (convert_address): Update comments and list of platforms using this.
17616
17617         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17618         no longer used.
17619
17620 2005-11-14  Pascal Obry  <obry@adacore.com>
17621             Vincent Celier  <celier@adacore.com>
17622
17623         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17624         GNAT.Command_Line.
17625
17626         * memroot.adb: Remove redundant with/use clause on
17627         System.Storage_Elements.
17628
17629 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17630
17631         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17632         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17633         related code to a-exexpr.adb
17634         (Save_Occurrence_And_Private): Move GCC EH related code to
17635         a-exexpr-gcc.adb
17636         (Raise_Current_Excep): Add new variable Id with pragma
17637         volatile, to ensure that the variable lives on stack.
17638
17639         * a-exexpr-gcc.adb, raise-gcc.c: New file.
17640
17641         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17642         from a-except.adb.
17643         Move GCC EH related code to a-exexpr-gcc.adb
17644
17645         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17646         64-bit Solaris
17647         Split the Linux version of g-soccon into separate variants for 32 and 64
17648         bit platforms.
17649         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17650         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17651         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17652         of host variable $(RANLIB_FLAGS).
17653         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17654         Code clean up: remove unused/obsolete targets.
17655         (EH_MECHANISM): New variable introduced to differenciate between the
17656         two EH mechanisms statically.
17657         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17658         (LIBGNAT_OBJS): Add raise-gcc.o
17659         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17660         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17661         supports VxWorks 6 RTPs.
17662         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17663         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17664
17665         * raise.c: Move all GCC EH-related routines to raise-gcc.c
17666
17667 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17668
17669         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17670         deferral level, when abort is not allowed, to a later stage (the
17671         Task_Wrapper).
17672         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17673         it will not get changed by the generated code. It was previously done
17674         in Create_Task.
17675
17676 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17677             Olivier Hainque  <hainque@adacore.com>
17678             Eric Botcazou  <ebotcazou@adacore.com>
17679
17680         * decl.c:
17681         Factor common code to build a storage type for an unconstrained object
17682         from a fat or thin pointer type and a constrained object type.
17683         (annotate_value): Handle BIT_AND_EXPR.
17684         (annotate_rep): Don't restrict the back annotation of inherited
17685         components to the type_annotate_only case.
17686         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17687         we are not defining the type.
17688         <E_Record_Type>: Likewise.
17689         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17690         to get advantage of the new maybe_stabilize_reference interface, to
17691         ensure that what we reference is indeed stabilized instead of relying
17692         on assumptions on what the stabilizer does.
17693         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17694         type imported through a limited_with clause, use its non-limited view.
17695         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17696         differentiation.
17697         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17698         of #if sections + explicit comparisons of convention identifiers.
17699         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17700         before early-returning for certain types when code generation is
17701         disabled.
17702         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17703         nullification of gnu_expr we do for objects with address clause and
17704         that we are not defining.
17705         (elaborate_expression_1): Do not create constants when creating
17706         variables needed by the debug info: the dwarf2 writer considers that
17707         CONST_DECLs is used only to represent enumeration constants, and emits
17708         nothing for them.
17709         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17710         object with an address clause into an indirect reference, drop the
17711         initializing expression.
17712         Include "expr.h".
17713         (STACK_CHECK_BUILTIN): Delete.
17714         (STACK_CHECK_PROBE_INTERVAL): Likewise.
17715         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17716         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17717         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17718         corresponding to the renamed object as ignored for debugging purposes.
17719
17720         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17721         related): For a prefix that is a dereference of a fat or thin pointer,
17722         if there is an actual subtype provided by the front-end, use that
17723         subtype to build an actual type with bounds template.
17724         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17725         is provided by the front-end, use that subtype to compute the size of
17726         the deallocated object.
17727         (gnat_to_gnu): When adding a statement into an elaboration procedure,
17728         check for a potential violation of a No_Elaboration_Code restriction.
17729         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17730         with extra arguments to control whether to recurse through non-values
17731         and to let the caller know if the stabilization has succeeded.
17732         (gnat_stabilize_reference): Now a simple wrapper around
17733         maybe_stabilize, for common uses without restriction on lvalues and
17734         without need to check for the success indication.
17735         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17736         pass false instead of 0 as the FORCE argument which is a bool.
17737         (Identifier_to_gnu): Remove checks ensuring that an renamed object
17738         attached to a renaming pointer has been properly stabilized, as no such
17739         object is attached otherwise.
17740         (call_to_gnu): Invoke create_var_decl to create the temporary when the
17741         function uses the "target pointer" return mechanism.
17742         Reinstate conversion of the actual to the type of the formal
17743         parameter before any other specific treatment based on the passing
17744         mechanism. This turns out to be necessary in order for PLACEHOLDER
17745         substitution to work properly when the latter type is unconstrained.
17746
17747         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17748         common pattern.
17749         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17750         with extra arguments to control whether to recurse through non-values
17751         and to let the caller know if the stabilization has succeeded.
17752
17753         * utils2.c (gnat_build_constructor): Only sort the fields for possible
17754         static output of record constructor if all the components are constant.
17755         (gnat_build_constructor): For a record type, sort the list of field
17756         initializers in increasing bit position order.
17757         Factor common code to build a storage type for an unconstrained object
17758         from a fat or thin pointer type and a constrained object type.
17759         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17760         types variants, and process special cases of VIEW_CONVERT expressions
17761         as their NOP_EXPR counterpart to ensure we get to the
17762         CORRESPONDING_VARs associated with CONST_DECls.
17763         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17764         on the right-hand side.
17765
17766         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17767         a common pattern.
17768         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17769         are converting back to its original type.
17770         (convert) <JM input>: Fallthrough regular conversion code instead of
17771         extracting the object if converting to a type variant.
17772         (create_var_decl): When a variable has an initializer requiring code
17773         generation and we are at the top level, check for a potential violation
17774         of a No_Elaboration_Code restriction.
17775         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17776         SIZE and SIZE_UNIT which we need for later back-annotations.
17777         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17778         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17779         is an unchecked union.
17780         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17781         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17782         main variant, just replace the VIEW_CONVERT_EXPR.
17783         <UNION_TYPE>: Revert 2005-03-02 change.
17784
17785         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17786
17787         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17788
17789 2005-11-14  Matthew Heaney  <heaney@adacore.com>
17790
17791         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
17792         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
17793         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
17794         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
17795         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
17796         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
17797         Compiles against the spec for ordered maps described in sections
17798         A.18.6 of the most recent (August 2005) AI-302 draft.
17799
17800 2005-11-14  Olivier Hainque  <hainque@adacore.com>
17801
17802         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17803         to ensure bias adjustments take place when need be and to prevent
17804         occurrences of intermediate overflows.
17805
17806 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17807             Olivier Hainque  <hainque@adacore.com>
17808
17809         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17810         ia64 HP-UX.
17811
17812         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17813         tracebacks on ia64 HP-UX and provide explanatory comment.
17814         Enable backtraces on ia64 GNU/Linux.
17815         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17816         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17817
17818 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
17819             Javier Miranda  <miranda@adacore.com>
17820
17821         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17822         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17823         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17824         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17825
17826         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17827         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17828         assertions).
17829
17830         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17831         subprogram that generates the external name associated with a
17832         secondary dispatch table.
17833         (Get_Secondary_DT_External_Name): New subprogram that generates the
17834         external name associated with a secondary dispatch table.
17835
17836 2005-11-14  Emmanuel Briot  <briot@adacore.com>
17837
17838         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17839         line in the ALI file to include both an instantiation reference, and a
17840         returned value.
17841
17842 2005-11-14  Vincent Celier  <celier@adacore.com>
17843
17844         * clean.adb (Check_Project): Look for Ada code in extending project,
17845         even if Ada is not specified as a language.
17846         Use new function DLL_Prefix for DLL_Name
17847         (Clean_Interface_Copy_Directory): New procedure
17848         (Clean_Library_Directory): New procedure
17849         (Clean_Directory): Remove procedure, no longer used
17850         (Clean_Project): Do not delete any file in an externally built project
17851
17852         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17853         directory of an extending project, even when there are no Ada source
17854         present.
17855         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17856         (Set_Ada_Paths.Add.Recursive_Add): Ditto
17857
17858         * mlib-prj.adb (Check_Library): For all library projects, get the
17859         library file timestamp.
17860         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17861         (Build_Library): Use new function DLL_Prefix for the DLL_Name
17862         (Clean): Remove procedure, no longer used
17863         (Ultimate_Extension_Of): New function
17864         (Build_Library): When cleaning the library directory, only remove an
17865         existing library file and any ALI file of a source of the project.
17866         When cleaning the interface copy directory, remove any source that
17867         could be a source of the project.
17868
17869         * prj.ads, prj.adb (Project_Empty): Add values of new components
17870         Library_TS and All_Imported_Projects.
17871         (Project_Empty): Add values for new components of Project_Data:
17872         Library_ALI_Dir and Display_Library_ALI_Dir
17873
17874         * prj-attr.adb: New project level attribute name Library_ALI_Dir
17875
17876         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17877         attribute Library_ALI_Dir.
17878         (Check_Library_Attributes): The library directory cannot be the same as
17879         any source directory of the project tree.
17880         (Check_Stand_Alone_Library): The interface copy directory cannot be
17881         the same as any source directory of the project tree.
17882
17883         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17884         all temporary files.
17885
17886 2005-11-14  Robert Dewar  <dewar@adacore.com>
17887             Ed Schonberg  <schonberg@adacore.com>
17888
17889         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17890         (Check_Elab_Call): A call within a protected body is never an
17891         elaboration call, and does not require checking.
17892         (Same_Elaboration_Scope): Take into account protected types for both
17893         entities.
17894         (Activate_Elaborate_All_Desirable): New procedure
17895
17896         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17897         desirable
17898
17899         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17900         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17901
17902         * lib-writ.ads, lib-writ.adb: 
17903         Implement new AD/ED for Elaborate_All/Elaborate desirable
17904         Use new Elaborate_All_Desirable flag in N_With_Clause node
17905
17906         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17907         N_Free_Statement nodes.
17908         Define new class N_Subprogram_Instantiation
17909         Add Elaborate_Desirable flag to N_With_Clause node
17910         Add N_Delay_Statement (covering two kinds of delay)
17911
17912         * debug.adb: Introduce d.f flag for compiler
17913         Add -da switch for binder
17914
17915 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17916             Cyrille Comar  <comar@adacore.com>
17917
17918         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17919         for task component, in the case of a limited aggregate. The enclosed
17920         object declaration will create it earlier. Otherwise, in the case of a
17921         nested aggregate, the object may appear in the wrong scope.
17922         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17923         (Gen_Assign): If the component being assigned is an array type and the
17924         expression is itself an aggregate, wrap the assignment in a block to
17925         force finalization actions on the temporary created for each row of the
17926         enclosing object.
17927         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17928         structures are initialized after all discriminants are set so that
17929         they can be accessed even when their offset is dynamic.
17930
17931 2005-11-14  Robert Dewar  <dewar@adacore.com>
17932             Hristian Kirtchev  <kirtchev@adacore.com>
17933
17934         * sem_attr.adb: Implement Machine_Rounding attribute
17935         (Analyze_Access_Attribute): The access attribute may appear within an
17936         aggregate that has been expanded into a loop.
17937         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17938         'Terminated whenever the prefix is of a task interface class-wide type.
17939         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17940         the prefix is of a task interface class-wide type.
17941
17942         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17943         to avoid warnings.
17944
17945         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17946         Remove pragma Inline for [Unaligned_]Valid.
17947         Add comments that Valid routines do not work for Vax_Float
17948
17949         * exp_attr.adb: Implement Machine_Rounding attribute
17950
17951         * snames.h: Add entry for Machine_Rounding attribute
17952
17953 2005-11-14  Javier Miranda  <miranda@adacore.com>
17954             Robert Dewar  <dewar@adacore.com>
17955             Hristian Kirtchev  <kirtchev@adacore.com>
17956
17957         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17958         and related): For a prefix that is an explicit dereference of an
17959         access to unconstrained packed array type, annotate the dereference
17960         with an actual subtype so GIGI can make a correct size computation.
17961         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17962         'Unrestricted_Access, if the designated type is an interface we
17963         add a type conversion to force the displacement of the pointer
17964         to the secondary dispatch table.
17965         Use Universal_Real instead of Long_Long_Float when we need a high
17966         precision float type for the generated code (prevents gratuitous
17967         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17968         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17969         'Terminated for task interface class-wide objects. Generate a call to
17970         the predefined dispatching routine used to retrieve the _task_id from
17971         a task corresponding record.
17972         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17973
17974         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17975         (Check_Dispatching_Operation): Protect the frontend againts
17976         previously detected errors.
17977
17978         * Makefile.rtl: Add new instantiations of system.fat_gen
17979
17980         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
17981         Change name of instantiated package for better consistency
17982         with newly added system.fat_gen instantiations.
17983
17984         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17985         s-fvagfl.ads: New files.
17986
17987 2005-11-14  Cyrille Comar  <comar@adacore.com>
17988             Thomas Quinot  <quinot@adacore.com>
17989
17990         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17991         assignment of a value of a tagged type that has been rewritten to a
17992         block statement, it is known by construction that no checks are
17993         necessary for the statements within the block: analyze it with checks
17994         suppressed.
17995         (Expand_N_If_Statement): When killing a dead then-branch in an
17996         if-statement that has elsif_parts, recompute the Current_Value node
17997         for any entity whose value is known from the condition of the first
17998         elsif_part.
17999         (Expand_N_Return_Statement): When returning a mutable record, convert
18000         the return value into its actual subtype in order to help the backend
18001         to return the actual size instead of the maximum. This is another
18002         aftermath of not returning mutable records on the sec-stack anymore.
18003
18004         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
18005         handling of error msg for suspicious reverse range iteration.
18006         (Check_Possible_Current_Value_Condition): Move declaration from body to
18007         spec, to allow this subprogram to be called from exp_ch5.
18008
18009 2005-11-14  Thomas Quinot  <quinot@adacore.com>
18010
18011         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
18012         generate a set of nested array aggregates instead of a single flat
18013         aggregate for multi-dimensional arrays.
18014
18015 2005-11-14  Pascal Obry  <obry@adacore.com>
18016
18017         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
18018         by spawnve is a process handle, no need to convert. Add a parameter
18019         close to control wether the process handle must be closed.
18020         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
18021         a process handle, not need to convert.
18022         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
18023
18024         * g-expect.adb: (Kill): Document the new close parameter.
18025         (Close): Do not release the process handle in the kill there as
18026         waitpid() is using it.
18027         (Send_Signal): Release the process handle.
18028
18029 2005-11-14  Robert Dewar  <dewar@adacore.com>
18030
18031         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
18032         need a high precision float type for the generated code (prevents
18033         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
18034         used).
18035
18036         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
18037         need a high precision float type for the generated code (prevents
18038         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
18039         used).
18040         (Expand_Width_Attribute): In configurable run-time, the attribute is not
18041         allowed on non-static enumeration subtypes. Force a load error to emit
18042         the correct diagnostic.
18043
18044 2005-11-14  Thomas Quinot  <quinot@adacore.com>
18045             Robert Dewar  <dewar@adacore.com>
18046             Ed Schonberg  <schonberg@adacore.com>
18047
18048         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
18049         subtype to compute the size of the designated object at run-time,
18050         create such a subtype and store it in the Actual_Designated_Subtype
18051         attribute of the N_Free_Statement.
18052         Generate itype for classwide designated object in both cases of
18053         user-specified storage pool: specific and class-wide, not only in the
18054         specific case.
18055         Raise CE when trying to set a not null access type object to null.
18056         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
18057         an explicit loop, because freeze nodes make its position variable.
18058
18059         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
18060         null object.
18061
18062 2005-11-14  Javier Miranda  <miranda@adacore.com>
18063
18064         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
18065         Build_Stream_Procedure): Add the null-excluding attribute to the first
18066         formal.
18067         This has no semantic meaning under Ada95 mode but it is a
18068         requirement under Ada05 mode.
18069
18070         * par-ch3.adb (P_Access_Definition): Addition of warning message if
18071         the null exclusion is used under Ada95 mode
18072         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
18073         (P_Access_Definition): Remove assertion that forbids the use of
18074         the null-exclusion feature in Ada95.
18075
18076 2005-11-14  Robert Dewar  <dewar@adacore.com>
18077
18078         * impunit.adb: Exclude container helper units not intended for use by
18079         users.
18080
18081 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18082
18083         * freeze.adb (Freeze_Entity): For an access formal that is an access
18084         to subprogram, freeze the anonymous subprogram type at the same time,
18085         to prevent later freezing in the wrong scope, such as the enclosing
18086         subprogram body.
18087         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
18088         subprogram whenever available.
18089
18090 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
18091
18092         PR ada/23732
18093         * gnatvsn.ads (Library_Version): Bump to 4.1
18094
18095 2005-11-14  Robert Dewar  <dewar@adacore.com>
18096
18097         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
18098         Storage_Offset to avoid wrap around causing invalid results.
18099
18100 2005-11-14  Pascal Obry  <obry@adacore.com>
18101
18102         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
18103         cross-compiler.
18104         (Scan_Bind_Arg): Fail with an error message if -M option is used
18105         on a native compiler.
18106
18107 2005-11-14  Robert Dewar  <dewar@adacore.com>
18108             Vincent Celier  <celier@adacore.com>
18109
18110         * gprep.adb: Implement -C switch to scan comments
18111
18112         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
18113
18114         * scans.ads: Comment updates (including new use of Tok_Comment in
18115         preprocessing)
18116
18117         * opt.ads: Add documentation for flags that are used by gprmake,
18118         currently and in the next version of gprmake.
18119         (Verbosity_Level): New variable
18120         Add Replace_In_Comments switch
18121
18122         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
18123         and -vm.
18124         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
18125
18126 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
18127
18128         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
18129         message, friendlier.
18130
18131 2005-11-14  Robert Dewar  <dewar@adacore.com>
18132
18133         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
18134
18135 2005-11-14  Doug Rupp  <rupp@adacore.com>
18136
18137         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
18138
18139 2005-11-14  Robert Dewar  <dewar@adacore.com>
18140
18141         * interfac.ads: Change declarations of IEEE float types so that we no
18142         longer need a separate version of this package for VMS.
18143
18144 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18145
18146         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
18147         internal entity created for the declaration of a child subprogram body
18148         with no spec as coming from source, to generate proper cross-reference
18149         information.
18150
18151 2005-11-14  Vincent Celier  <celier@adacore.com>
18152
18153         * make.adb (Compile_Sources): Change verbose message to minimum
18154         verbosity level High for "is in an Ada library", "is a read-only
18155         library" and "is an internal library",
18156         (Create_Binder_Mapping_File): Path name of ALI file for library project
18157         must include the library directory, not the object directory.
18158         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
18159         for new switches -vl, -vm and -vh.
18160         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
18161         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
18162         (Compile_Sources): Do not attempt to compile if an ALI file is missing
18163         in a project that is externally built.
18164         (Compute_All_Imported_Projects): New procedure
18165         (Gnatmake): Check if importing libraries should be regenerated because
18166         at least an imported library is more recent.
18167         (Initialize): For each project compute the list of the projects it
18168         imports directly or indirectly.
18169         (Add_Library_Search_Dir): New procedure, used in place of
18170         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18171         put in the search paths.
18172         (Add_Source_Search_Dir): New procedure, used in place of
18173         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18174         put in the search paths.
18175         (Mark_Directory): Resolve the absolute path the directory before marking
18176         it.
18177
18178         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
18179         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
18180         Switch. Do not handle any exception.
18181         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
18182         so that the switch is recognized as valid.
18183         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
18184
18185 2005-11-14  GNAT Script  <nobody@adacore.com>
18186
18187         * Make-lang.in: Makefile automatically updated
18188
18189 2005-11-14  Pascal Obry  <obry@adacore.com>
18190
18191         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
18192         used.
18193         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
18194         In both cases the last argument was dropped.
18195
18196 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
18197
18198         * namet.h: (Column_Numbe): New type.
18199         (Get_Column_Number): Define to sinput__get_column_number.
18200         (Instantiation): Define to sinput__instantiation.
18201         (Get_Column_Number): Declare.
18202         (Instantiation): Likewise.
18203
18204 2005-11-14  Robert Dewar  <dewar@adacore.com>
18205
18206         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
18207         syntax, which could cause compiler hangs.
18208
18209 2005-11-14  Vincent Celier  <celier@adacore.com>
18210
18211         * prj-ext.adb: Take into account new environment variable
18212         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
18213         are defined.
18214         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
18215         normalize its path name, making it absolute and resolving symbolic
18216         links, and replace the original if resolved path is different.
18217
18218 2005-11-14  Vincent Celier  <celier@adacore.com>
18219
18220         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
18221         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
18222
18223 2005-11-14  Emmanuel Briot  <briot@adacore.com>
18224
18225         * prj-pp.adb (Print): Do not output the with statement if the
18226         associated name is empty, which happens for virtual extending projects.
18227         (Print): Preserve the "extends all" attribute when printing the project.
18228
18229         * prj-tree.ads (String_Value_Of): Add comment about returned value for
18230         a virtual extending project.
18231
18232 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18233
18234         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
18235         rhs of an assignment even if the type is unconstrained, when the
18236         context is non-expanding.
18237         In an inlined body, if the context type is private,
18238         resolve with its full view, which must be a composite type.
18239
18240 2005-11-14  Robert Dewar  <dewar@adacore.com>
18241             Ed Schonberg  <schonberg@adacore.com>
18242
18243         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
18244         Do not give obsolescent warning on with of subprogram (since we
18245         diagnose calls)
18246         (Analyze_With_Clause): Add test for obsolescent package
18247         (Install_Context_Clauses): If the unit is the body of a child unit, do
18248         not install twice the private declarations of the parents, to prevent
18249         circular lists of Use_Clauses in a parent.
18250         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
18251         compiling body of child unit.
18252         Use new class N_Subprogram_Instantiation
18253         (Expand_With_Clause): If this is a private with_clause for a child unit,
18254         appearing in the context of a package declaration, then the implicit
18255         with_clauses generated for parent units are private as well.
18256         (License_Check): Do not generate message if with'ed unit is internal
18257
18258 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
18259             Ed Schonberg  <schonberg@adacore.com>
18260             Thomas Quinot  <quinot@adacore.com>
18261
18262         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
18263         names are internal, because they will not have a corresponding partner
18264         in the actual package.
18265         (Analyze_Formal_Package): Move the setting of the formal package spec's
18266         Generic_Parent field so that it occurs prior to analyzing the package,
18267         to allow proper operation of Install_Parent_Private_Declarations.
18268         (Analyze_Package_Instantiation): Set the instantiated package entity's
18269         Package_Instantiation field.
18270         (Get_Package_Instantiation_Node): Move declaration to package spec.
18271         Retrieve the N_Package_Instantiation node when the Package_Instantiation
18272         field is present.
18273         (Check_Generic_Child_Unit): Within an inlined call, the only possible
18274         instantiation is Unchecked_Conversion, for which no parents are needed.
18275         (Inline_Instance_Body): Deinstall and record the use_clauses for all
18276         parent scopes of a scope being removed prior to inlining an instance
18277         body.
18278         (Analyze_Package_Instantiation): Do not perform front-end inlining when
18279         the current context is itself an instance within a non-instance child
18280         unit, to prevent scope stack errors.
18281         (Save_References): If the node is an aggregate that is an actual in a
18282         call, rewrite as a qualified expression to preserve some type
18283         information, to resolve possible ambiguities in the instance.
18284         (Instance_Parent_Unit): New global variable to record the ultimate
18285         parent unit associated with a generic child unit instance (associated
18286         with the existing Parent_Unit_Visible flag).
18287         (type Instance_Env): New component Instance_Parent_Unit for stacking
18288         parents recorded in the global Instance_Parent_Unit.
18289         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
18290         stack.
18291         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
18292         it's not a top-level unit, and only do this if Instance_Parent_Unit is
18293         not already set. Replace test of Is_Child_Unit with test of parent's
18294         scope against package Standard. Add comments and a ??? comment.
18295         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
18296         on a child instance parent to test that the parent equals
18297         Instance_Parent rather than simply checking that the unit is not a
18298         child unit.
18299         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
18300         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
18301         a formal interface are ancestors of the corresponding actual.
18302         (Validate_Formal_Interface_Type): Additional legality checks.
18303         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
18304         interface types with ancestors.
18305         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
18306         to diagnose attempts to use generic within its own declaration.
18307
18308 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18309             Javier Miranda  <miranda@adacore.com>
18310
18311         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
18312         discriminant.
18313         (Build_Private_Derived_Type): The entity of the created full view of the
18314         derived type does not come from source. If after installing the private
18315         declarations of the parent scope the parent is still private, use its
18316         full view to construct the full declaration of the derived type.
18317         (Build_Derived_Record_Type): Relax the condition that controls the
18318         execution of the check that verifies that the partial view and
18319         the full view agree in the set of implemented interfaces. In
18320         addition, this test now only takes into account the progenitors.
18321         (Derive_Interface_Subprograms): No need to derive subprograms
18322         of ancestors that are interfaces.
18323         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18324         associated code.
18325         Change name Is_Package to Is_Package_Or_Generic_Package
18326         (Complete_Subprograms_Derivation): Handle the case in which the full
18327         view is a transitive derivation of the ancestor of the partial view.
18328         (Process_Full_View): Rename local subprogram Find_Interface_In_
18329         Descendant to Find_Ancestor_Interface to leave the code more clear.
18330         Remove wrong code that avoids the generation of an error message
18331         when the immediate ancestor of the partial view is an interface.
18332         In addition some minor reorganization of the code has been done to
18333         leave it more clear.
18334         (Analyze_Type_Declaration): If type has previous incomplete tagged
18335         partial view, inherit properly its primitive operations.
18336         (Collect_Interfaces): Make public, for analysis of formal
18337         interfaces.
18338         (Analyze_Interface_Declaration): New procedure for use for regular and
18339         formal interface declarations.
18340         (Build_Derived_Record_Type): Add support for private types to the code
18341         that checks if a tagged type implements abstract interfaces.
18342         (Check_Aliased_Component_Type): The test applies in the spec of an
18343         instance as well.
18344         (Access_Type_Declaration): Clean up declaration of malformed type
18345         declared as an access to its own classwide type, to prevent cascaded
18346         crash.
18347         (Collect_Interfaces): For private extensions and for derived task types
18348         and derived protected types, the parent may be an interface that must
18349         be included in the interface list.
18350         (Access_Definition): If the designated type is an interface that may
18351         contain tasks, create Master_Id for it before analyzing the expression
18352         of the declaration, which may be an allocator.
18353         (Record_Type_Declaration): Set properly the interface kind, for use
18354         in allocators, the creation of master id's for task interfaces, etc.
18355
18356 2005-11-14  Javier Miranda  <miranda@adacore.com>
18357             Ed Schonberg  <schonberg@adacore.com>
18358
18359         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18360         omitted in case of stream attribute subprograms.
18361         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18362         appear immediately after a subprogram body, when there is no previous
18363         subprogram declaration.
18364         Change name Is_Package to Is_Package_Or_Generic_Package
18365         (Process_Formals): A non null qualifier on a non null named access
18366         type is not an error, and is a warning only if Redundant_Constructs
18367         are flagged.
18368
18369 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
18370             Ed Schonberg  <schonberg@adacore.com>
18371
18372         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18373         nested within Analyze_Package_Specification to install the private
18374         declarations and use clauses within each of the parent units of a
18375         package instance of a generic child package.
18376         (Analyze_Package_Specification): When entering a private part of a
18377         package associated with a generic instance or formal package, the
18378         private declarations of the parent must be installed (by calling new
18379         procedure Install_Parent_Private_Declarations).
18380         Change name Is_Package to Is_Package_Or_Generic_Package
18381         (Preserve_Full_Attributes): For a synchronized type, the corresponding
18382         record is absent in a generic context, which does not indicate a
18383         compiler error.
18384
18385 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18386
18387         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18388         not try to rewrite a renamed stream attribute, because the operations
18389         on the type may not have been generated.
18390         Handle properly a renaming_as_body generated for a stream operation
18391         whose default is abstract because the object type itself is abstract.
18392         (Find_Type): If the type is incomplete and appears as the prefix of a
18393         'Class reference, it is tagged, and its list of primitive operations
18394         must be initialized properly.
18395         (Chain_Use_Clauses): When chaining the use clauses that appear in the
18396         private declaration of a parent unit, prior to compiling the private
18397         part of a child unit, find on the scope stack the proper parent entity
18398         on which to link the use clause.
18399         (Note_Redundant_Use): Emit a warning when a redundant use clause is
18400         detected.
18401         (Analyze_Object_Renaming): An attribute reference is not a legal object
18402         if it is not a function call.
18403
18404 2005-11-14  Robert Dewar  <dewar@adacore.com>
18405             Ed Schonberg  <schonberg@adacore.com>
18406
18407         * sem_eval.adb: Implement d.f flag
18408         (Subtype_Statically_Match): A generic actual type has unknown
18409         discriminants when the corresponding actual has a similar partial view.
18410         If the routine is called to validate the signature of an inherited
18411         operation in a child instance, the generic actual matches the full view,
18412
18413 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
18414             Ed Schonberg  <schonberg@adacore.com>
18415             Robert Dewar  <dewar@adacore.com>
18416             Thomas Quinot  <quinot@adacore.com>
18417
18418         * sem_res.adb (Resolve_Call): Provide a better error message whenever
18419         a procedure call is used as a select statement trigger and is not an
18420         entry renaming or a primitive of a limited interface.
18421         (Valid_Conversion): If the operand has a single interpretation do not
18422         remove address operations.
18423         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18424         statement to inhibit warning.
18425         (Resolve_Unary_Op): Do not produce a warning when
18426         processing an expression of the form -(A mod B)
18427         Use Universal_Real instead of Long_Long_Float when we need a high
18428         precision float type for the generated code (prevents gratuitous
18429         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18430         (Resolve_Concatenation_Arg): Improve error message when argument is an
18431         ambiguous call to a function that returns an array.
18432         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18433         there is an implicit operator in the given scope if we are within an
18434         instance: legality check has been performed on the generic.
18435         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18436         after resolving operand, to avoid false warnings on overloaded calls.
18437
18438 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18439             Javier Miranda  <miranda@adacore.com>
18440
18441         PR ada/15604
18442         * sem_type.adb (Covers): In an inlined body, a composite type matches
18443         a private type whose full view is a composite type.
18444         (Interface_Present_In_Ancestor): Protect the frontend against
18445         previously detected errors to ensure that its compilation
18446         with assertions enabled gives the same output that its
18447         compilation without assertions.
18448         (Interface_Present_In_Ancestor): Add support for private types.
18449         Change name In_Actual to In_Generic_Actual (clean up)
18450         (Disambiguate): New predicate In_Actual, to recognize expressions that
18451         appear in the renaming declaration generated for generic actuals, and
18452         which must be resolved in the outer context.
18453
18454 2005-11-14  Robert Dewar  <dewar@adacore.com>
18455             Thomas Quinot  <quinot@adacore.com>
18456             Hristian Kirtchev  <kirtchev@adacore.com>
18457             Ed Schonberg  <schonberg@adacore.com>
18458
18459         * sem_util.ads, sem_util.adb: Change name Is_Package to
18460         Is_Package_Or_Generic_Package.
18461         (Check_Obsolescent): New procedure.
18462         (Set_Is_Public): Remove obsolete junk test.
18463         (Set_Public_Status): Do not set Is_Public on an object whose declaration
18464         occurs within a handled_sequence_of_statemets.
18465         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18466         for a parameterless procedure.
18467         (Enter_Name): Recognize renaming declarations created for private
18468         component of a protected type within protected operations, so that
18469         the source name of the component can be used in the debugger.
18470
18471 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18472             Robert Dewar  <dewar@adacore.com>
18473
18474         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18475         of a generic subprogram are not visible outside the body.
18476         (Set_Warning_Switch): New procedure (code to set warning mode moved
18477         here from Switch.C so that it can be shared by pragma processing.
18478         (Check_References): Special case warning for non-modified non-imported
18479         volatile objects.
18480         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18481         form with a string literal argument
18482
18483 2005-11-14  Javier Miranda  <miranda@adacore.com>
18484
18485         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18486         anonymous access.
18487         (Write): Addition of "not null" to the anonymous access.
18488         (Read): Addition of "not null" to the anonymous access.
18489         (Write): Addition of "not null" to the anonymous access.
18490
18491         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18492         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18493         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18494         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18495         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18496         "not null" to the anonymous access.
18497
18498 2005-11-14  Robert Dewar  <dewar@adacore.com>
18499
18500         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18501         offset values
18502
18503 2005-11-14  Vincent Celier  <celier@adacore.com>
18504
18505         * switch.adb (Bad_Switch): New procedure
18506         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18507         message when in error.
18508
18509         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18510         Too_Many_Output_Files): Remove declarations, no longer used.
18511         (Scan_Nat): New parameter Switch
18512         (Scan_Pos): Ditto
18513         (Bad_Switch): New procedure
18514
18515         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18516         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18517         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18518         to Osint.Fail. Do not handle any exception.
18519
18520 2005-11-14  Vincent Celier  <celier@adacore.com>
18521
18522         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18523         designates a non existent directory.
18524
18525 2005-11-14  Robert Dewar  <dewar@adacore.com>
18526
18527         * xgnatugn.adb: Replace invalid membership test by 'Valid
18528
18529 2005-11-14  Vincent Celier  <celier@adacore.com>
18530
18531         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18532         there is no object directory.
18533
18534 2005-11-14  Robert Dewar  <dewar@adacore.com>
18535
18536         * usage.adb: Minor adjustment to output format, use nn instead of nnn
18537         (so that -gnateInnn does not run into next column)
18538
18539 2005-11-14  Ed Falis  <falis@adacore.com>
18540
18541         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18542         "constrained"
18543
18544 2005-11-14  Cyrille Comar  <comar@adacore.com>
18545
18546         * s-chepoo.ads: Add comments on Dereference.
18547         Remove unnecessary inherited abstract primitives.
18548         Cosmetic cleanup.
18549
18550 2005-11-14  Robert Dewar  <dewar@adacore.com>
18551
18552         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18553         node parameter, not needed, since it is available as Declaration_Node.
18554
18555 2005-11-14  Geert Bosch  <bosch@adacore.com>
18556
18557         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18558         grammatically correct.
18559
18560 2005-11-14  Vincent Celier  <celier@adacore.com>
18561
18562         * s-fileio.ads: Correct spelling error in comment
18563
18564 2005-11-14  Cyrille Comar  <comar@adacore.com>
18565             Robert Dewar  <dewar@adacore.com>
18566             Vincent Celier  <celier@adacore.com>
18567             Ben Brosgol  <brosgol@adacore.com>
18568             Jose Ruiz  <ruiz@adacore.com>
18569             Pascal Obry  <obry@adacore.com>
18570
18571         * gnat_ugn.texi: 
18572         Document that -fstack-check is needed for strict compliance with the
18573         Ada 95 Reference Manual.
18574         Correct reference to VAX systems to meet HP guidelines
18575         Add documentation for new gnatmake switches -vl, -vm and -vh
18576         Replace DEC Ada by HP Ada
18577         Replace DIGITAL by HP
18578         Remove empty section on tools in compatibility section
18579         Clarify the Windows convention semantics.
18580         Document the Win32 calling convention.
18581         The Stdcall, Win32 and DLL convention are synonyms.
18582         Add a note in -gnatR description about zero size record components
18583         Note on new >= and <= warnings for -gnatwc
18584         Document that equal sign after -gnatm is optional.
18585         Note that strip is working fine on DLL built with a Library
18586         Project. The restriction apply only to DLL built with gnatdll.
18587         Update section about the way to debug a DLL.
18588         Update information about the DLL convention.
18589         Document -C switch for gnatprep
18590         Document new attribute Library_ALI_Dir
18591         Update elaboration doc to include implicit Elaborate pragmas now
18592         generated for subprogram instantiations.
18593         Document limitation on executable names that include spaces for --GCC,
18594         --GNATBIND, and --GNATLINK switches.
18595         Document that -w causes -gnatws to be added at start of gcc switches
18596
18597         * gnat_rm.texi: Document that -mieee is needed for generating infinite
18598         and NaN values in case of overflow on machines that are not fully
18599         compliant with the IEEE floating-point standard.
18600         Create a section describing the set of compiler options needed for
18601         strict compliance with the Ada 95 Reference Manual.
18602         Add documentation for pragma Obsolescent applied to a package
18603         Clarify potential issues of mixed language programs related to the
18604         I/O buffering enabling in the elaboration of the GNAT runtime.
18605         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18606         This documentation only patch adds extra documentsion for pragma
18607         Restrictions (No_Elaboration_Code), explaining why it is not possible
18608         to document this restriction in terms of allowed source constructs.
18609         Document string literal form of pragma Warnings
18610         Document new attribute Library_ALI_Dir
18611         Add documentation on stable attributes in project files that was missing
18612
18613         * gnat-style.texi: Indicate that paragraphs within a single comment
18614         should be separated by empty comment lines
18615
18616         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18617         /05 respectively)
18618
18619         * bindusg.adb: Minor cleanup, put -m before -M for consistency
18620
18621 2005-11-14  Robert Dewar  <dewar@adacore.com>
18622
18623         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18624         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18625         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18626         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18627         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18628         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18629         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18630         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18631         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18632         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18633         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18634         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18635         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18636         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18637         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18638         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18639         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18640         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18641         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18642         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18643         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18644         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18645         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18646         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18647         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18648         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18649         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18650         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18651         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18652         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18653         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18654         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18655         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18656         system-interix.ads, system-solaris-sparc.ads,
18657         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18658         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18659         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18660         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18661         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18662         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18663         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18664         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18665         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18666         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18667         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18668         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18669         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18670         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18671         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18672         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18673         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18674         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18675         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18676         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18677         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18678         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18679         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18680         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18681         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18682         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18683         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18684         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18685         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18686         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18687         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18688         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18689         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18690         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18691         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18692         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18693         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18694         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18695         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18696         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18697         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18698         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18699         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18700         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18701         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18702         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18703         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18704         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18705         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18706         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18707         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18708         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18709         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18710         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18711         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18712         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18713         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18714         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18715         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18716         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18717         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18718         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18719         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18720         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18721         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18722         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18723         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18724         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18725         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18726         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18727         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18728         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18729         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18730         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18731         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18732         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18733         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18734         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18735         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18736         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18737         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18738         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18739         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18740         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18741         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18742         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18743         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18744         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18745         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18746         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18747         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18748         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18749         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18750         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18751         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18752         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18753         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18754         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18755         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18756         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18757         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18758         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18759         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18760         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18761         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18762         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18763         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18764         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18765         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18766         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18767         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18768         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18769         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18770         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18771         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18772         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18773         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18774         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18775         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18776         a-numaux-darwin.ads, a-numaux-darwin.adb,
18777         a-swuwha.ads, a-stunha.ads: Minor reformatting
18778
18779 2005-11-14  Robert Dewar  <dewar@adacore.com>
18780
18781         PR ada/18434
18782         * osint-m.adb: Add pragma Elaborate_All for Osint
18783
18784 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
18785
18786         PR ada/23995
18787         * trans.c (call_to_gnu): Restore statement lost in translation.
18788
18789 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
18790
18791         * init.c: Use the Linux-specific section for the IA-64/Linux target.
18792         (__gnat_adjust_context_for_raise): Add conditional code so that the
18793         IA-64 is also supported.
18794
18795 2005-11-03  James E Wilson  <wilson@specifix.com>
18796
18797         PR ada/23427
18798         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18799         TREE_OVERFLOW check.
18800
18801 2005-09-21  Olivier Hainque  <hainque@adacore.com>
18802
18803         PR ada/22418
18804         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18805         as we create them to store a size in bits.
18806
18807 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
18808
18809         PR ada/21937
18810         PR ada/22328
18811         PR ada/22381
18812         PR ada/22383
18813         PR ada/22419
18814         PR ada/22420
18815         * utils2.c (build_return_expr): New helper function.
18816         * gigi.h (build_return_expr): Declare it.
18817         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18818         of manually building the RETURN_EXPR tree.
18819         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18820         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18821         build_binary_op for the "target pointer" case.  Use build_return_expr
18822         instead of manually building the RETURN_EXPR tree.
18823
18824 2005-09-16  Laurent Guerby  <laurent@guerby.net>
18825
18826         PR ada/23788
18827         * s-tpinop.ads: Make this unit Preelaborate.
18828
18829 2005-09-16  Andreas Jaeger  <aj@suse.de>
18830
18831         * socket.c: Add string.h for memcpy.
18832
18833 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
18834
18835         * dec-io.ads, dec-io.adb: Removed, no longer used.
18836
18837 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18838
18839         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18840
18841         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18842         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18843         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18844         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18845         dependent units are Preelaborate.
18846         (Initialize): Call Interrupt_Managemeent.Initialize and
18847         OS_Primitives.Initialize to ensure proper initialization of this unit.
18848         Remove use of System.Soft_Links
18849         Make this unit Preelaborate.
18850
18851         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18852         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18853         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18854         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18855         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18856         s-tratas.ads, s-tasinf.ads: Minor reformatting.
18857         Add pragma Preelaborate, since these packages are suitable for this
18858         categorization.
18859         Update comments.
18860
18861         * s-traent-vms.ads, s-intman-dummy.adb,
18862         s-taprop-dummy.adb: Make this unit Preelaborate.
18863
18864         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18865         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18866         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18867         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18868         s-intman-solaris.adb, s-intman-irix-athread.adb,
18869         s-intman-irix.adb: Mark this unit Preelaborate.
18870         (Initialize): New procedure.
18871         Update comments.
18872
18873         * s-taspri-linux.ads: Removed.
18874
18875         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18876         as done by other implementations (e.g. posix).
18877
18878         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18879         responsible for deferring abort.
18880         Mark this unit Preelaborate.
18881
18882         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18883         proper initialization of the tasking run-time.
18884
18885         * s-tasdeb.ads: Mark this unit Preelaborate.
18886         (Known_Tasks): Add explicit default value to avoid elaboration code.
18887
18888         * s-inmaop-vms.adb (Elaboration code): Add call to
18889         Interrupt_Management.Initialize since the elaboration code depends on
18890         proper initialization of this package.
18891
18892         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18893         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18894         s-osprim-posix.adb: Make this unit Preelaborate.
18895
18896         * a-calend.adb: Add call to OS_Primitives.Initialize
18897
18898         * a-elchha.adb: Update use of Except.Id.Full_Name.
18899         Minor reformatting.
18900         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18901
18902         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18903         Move with clauses outside Warnings Off now that dependent units are
18904         Preelaborate.
18905         Use raise xxx with "..."; Ada 2005 form.
18906
18907         * a-taside.ads, a-taside.adb:
18908         Remove some dependencies, to make it easier to make this unit truly
18909         Preelaborate.
18910         Rewrite some code to be conformant with Preelaborate rules.
18911
18912         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18913         marked Preelaborate in the future.
18914
18915         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18916         these units Preelaborate.
18917
18918         * s-exctab.adb: Update use of Except.Id.Full_Name.
18919
18920         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18921         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18922         Set_Exc_Stack_Addr): Removed, no longer used.
18923         Remove reference to *Machine_State_Addr*, no longer needed.
18924
18925         * s-stalib.ads: Mark this unit as Preelaborate[_05].
18926         (Exception_Data): Full_Name is now a System.Address so that this unit
18927         can be made Preelaborate.
18928         Clean up/simplify code thanks to Full_Name being a System.Address.
18929         Remove obsolete pragma Suppress (All_Checks), no longer needed.
18930
18931         * s-taskin.ads, s-taskin.adb:
18932         Move with clauses outside Warnings Off now that dependent units are
18933         Preelaborate.
18934         Make this unit Preelaborate.
18935         (Initialize): New proceduure, replace elaboration code and makes the
18936         set up of the tasking run-time cleaner.
18937         (Detect_Blocking): Now a function instead of a deferred boolean, to
18938         obey Preelaborate rules.
18939
18940         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18941         soft links, no longer used.
18942
18943         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18944         packages are suitable for this categorization.
18945
18946         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18947         since we compile run-time sources in Ada 2005 mode.
18948         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18949         avoid having s-taprop*.adb depend on s-soflin and to avoid code
18950         duplication.
18951         Remove reference to *Machine_State_Addr*, no longer needed.
18952
18953 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18954
18955         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18956         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18957         Remove reference to System.Exceptions.
18958
18959         * s-mastop-x86.adb: Removed, no longer used.
18960
18961         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18962
18963         * a-excach.adb: Minor reformatting.
18964
18965         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18966         instead fix new warnings that were hidden by this change.
18967         (AAA, ZZZ): Removed, replaced by...
18968         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18969         are used instead of constants, to help make Ada.Exception truly
18970         preelaborate.
18971         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18972         Raise_Storage_Error): File is now a System.Address, to simplify code.
18973         (Elab code): Removed, no longer used.
18974         (Null_Occurrence): Remove Warnings Off and make this construct
18975         preelaborate.
18976         Remove code related to front-end zero cost exception handling, since
18977         it is no longer used.
18978         Remove -gnatL/-gnatZ switches.
18979
18980         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18981         Update use of Except.Msg.
18982
18983         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18984         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18985         to front-end zero cost exception handling, since it is no longer used.
18986         Remove -gnatL/-gnatZ switches.
18987
18988         * lib-writ.ads: Minor reformatting
18989         Remove doc of UX
18990
18991         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18992
18993         * Make-lang.in: Remove references to s-except.ads
18994
18995         * s-except.ads: Removed, no longer used.
18996
18997         * s-mastop.ads, s-mastop.adb:
18998         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18999         Remove reference to System.Exceptions.
19000
19001         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
19002         switch-b.adb: Remove code related to front-end zero cost exception
19003         handling, since it is no longer used.
19004         Remove -gnatL/-gnatZ switches.
19005
19006 2005-09-01  Robert Dewar  <dewar@adacore.com>
19007             Gary Dismukes  <dismukes@adacore.com>
19008             Javier Miranda  <miranda@adacore.com>
19009
19010         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
19011         type by valid test and generate warning.
19012         (Tagged_Membership): Generate call to the run-time
19013         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
19014         Change formal name Subtype_Mark to Result_Definition in several calls to
19015         Make_Function_Specification.
19016         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
19017         check for proper accessibility of the operand of a class-wide allocator.
19018         The check can be left out if checks are suppressed or if the expression
19019         has a specific tagged type whose level is known to be safe.
19020
19021         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
19022         generates the run-time check associated with null-excluding entities.
19023         (Expand_N_Return_Statement): Add tests to determine if the accessibility
19024         check on the level of the return expression of a class-wide function
19025         can be elided. The check usually isn't needed if the expression has a
19026         specific type (unless it's a conversion or a formal parameter). Also
19027         add a test for whether accessibility checks are suppressed. Augment
19028         the comments to describe the conditions for performing the check.
19029
19030 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
19031             Javier Miranda  <miranda@adacore.com>
19032             Gary Dismukes  <dismukes@adacore.com>
19033             Ed Schonberg  <schonberg@adacore.com>
19034
19035         * a-tags.adb (IW_Membership): Give support to
19036         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
19037         subprogram has been extended to look for the tag in the ancestors tag
19038         table.
19039         Update the structure of the GNAT Dispatch Table to reflect the
19040         additional two tables used in dispatching selects.
19041         Introduce appropriate array types and record components in
19042         Type_Specific_Data to reflect the two tables.
19043         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
19044         the TSD of a tag, indexed by position.
19045         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
19046         operation kind in the TSD of a tag, indexed by position.
19047
19048         * a-tags.ads: Introduce an enumeration type to capture different
19049         primitive operation kinds. Define a constant reflecting the number of
19050         predefined primitive operations.
19051         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
19052         of an entry wrapper.
19053         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
19054         callable entity of a primitive operation.
19055
19056         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
19057         primitive operations used in dispatching selects for limited
19058         interfaces, limited tagged, task and protected types what implement a
19059         limited interface.
19060         (Freeze_Type): Generate the bodies of the primitive operations used in
19061         dispatching selects for limited tagged, task and protected types that
19062         implement a limited interface. Generate statements to populate the two
19063         auxiliary tables used for dispatching in select statements.
19064         (Freeze_Record_Type): Add call to initialize the dispatch table entries
19065         associated with predefined interface primitive operations.
19066         (Build_Dcheck_Function): Change Set_Subtype_Mark to
19067         Set_Result_Definition.
19068         (Build_Variant_Record_Equality): Change Subtype_Mark to
19069         Result_Definition.
19070         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
19071         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
19072         (Build_Assignment): Simplify the code that adds the run-time-check.
19073         (Expand_N_Object_Declaration): Code cleanup.
19074
19075         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
19076         entries when there is a protected type that implements a limited
19077         interface.
19078
19079         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
19080         common routines used in expansion of dispatching selects.
19081         (Add_Private_Declarations): Select the appropriate protection type when
19082         there is a protected type that implements a limited interface.
19083         (Build_Parameter_Block): Generate a wrapped parameter block.
19084         (Build_Protected_Subprogram_Body): Select the appropriate type for
19085         locking entries when there is a protected type that implements a
19086         limited interface.
19087         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
19088         classified as entry wrappers.
19089         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
19090         asynchronous selects.
19091         (Expand_N_Conditional_Entry_Call): Add support for expansion of
19092         dispatching conditional selects.
19093         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
19094         protection when there is a protected type that implements limited
19095         interfaces.
19096         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
19097         timed selects.
19098         (Extract_Dispatching_Call): Extract the entity of the name of a
19099         dispatching call, the object parameter, actual parameters and
19100         corresponding formals.
19101         (Make_Initialize_Protection): Correct logic of protection initialization
19102         when there is a protected type that implements a limited interface.
19103         (Parameter_Block_Pack): Populate a wrapped parameter block with the
19104         values of actual parameters.
19105         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
19106         block and assign them to the original actual parameters.
19107
19108         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
19109         (Build_Protected_Sub_Specification): Change the type and name of the
19110         last formal to account for the increased variety of protection modes.
19111
19112         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
19113         entities. Used to save the value of the Is_Hidden attribute when the
19114         limited-view is installed.
19115         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
19116         the attribute of procedures classified as entry wrappers.
19117         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
19118         entity of a primitive wrapper.
19119         (Write_Entity_Flags): Output the name and value of the
19120         Is_Primitive_Wrapper attribute.
19121         (Write_Field27_Name): Output the name and entity of the field Wrapped_
19122         Entity.
19123         (Underlying_Type): If we have an incomplete entity that comes from
19124         the limited view then we return the Underlying_Type of its non-limited
19125         view if it is already available.
19126         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
19127         including operators.
19128         (Write_Field26_Name): Add entry for Overridden_Operation
19129         (Overridden_Operation): New attribute of functions and procedures.
19130
19131         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
19132         predefined position in the dispatch table for the primitive operations
19133         used in dispatching selects.
19134         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
19135         predefined primitive operations and replace it with
19136         Default_Prim_Op_Count.
19137         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
19138         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
19139         the names of the generated primitive operations used in dispatching
19140         selects.
19141         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
19142         case of abstract interface types. They will be inherit by the objects
19143         implementing the interface.
19144         (Make_DT): There is no need to inherit the dispatch table of the
19145         ancestor interface for the elaboration of abstract interface types.
19146         The dispatch table will be inherited by the object implementing the
19147         interface.
19148         (Copy_Secondary_DTs): Add documentation.
19149         (Validate_Position): Improve this static check in case of
19150         aliased subprograms because aliased subprograms must have
19151         the same position.
19152         (Init_Predefined_Interface_Primitives): New subprogram that initializes
19153         the entries associated with predefined primitives of all the secondary
19154         dispatch tables.
19155         (Build_Anonymous_Access_Type): Removed.
19156         (Expand_Interface_Actuals): With the previous cleanup there is no need
19157         to build an anonymous access type. This allows further cleanup in the
19158         code generated by the expander.
19159         (Expand_Interface_Conversion): If the actual is an access type then
19160         build an internal function to handle the displacement. If the actual
19161         is null this function returns null because no displacement is
19162         required; otherwise performs a type conversion that will be
19163         expanded in the code that returns the value of the displaced actual.
19164         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
19165         conversions that have no effect in the generated code because no
19166         displacement is required. Code cleanup; use local variables to
19167         avoid repeated calls to the subprogram directly_designated_type().
19168
19169         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
19170         Classify the primitive operations used in dispatching selects as
19171         predefined.
19172         (Implements_Limited_Interface): Determine whether some type either
19173         directly implements a limited interface or extends a type that
19174         implements a limited interface.
19175         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
19176         (Expand_Subtype_From_Expr): Do not build actual subtype if the
19177         expression is limited.
19178         (Find_Interface_Tag): Add code to handle class-wide types and
19179         entities from the limited-view.
19180
19181         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
19182         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
19183         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
19184         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
19185         Set_Prim_Op_Kind.
19186
19187         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
19188         of procedure name or prefix that appears as a trigger in a triggering
19189         alternative.
19190
19191         * uintp.ads: Introduce constants Uint_11 and Uint_13.
19192
19193 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19194
19195         * s-tataat.adb, a-tasatt.adb:
19196         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
19197
19198         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
19199         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
19200         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
19201         longer used.
19202
19203 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19204             Jose Ruiz  <ruiz@adacore.com>
19205
19206         * s-taprop-vxworks.adb:
19207         Move with clauses outside Warnings Off now that dependent units are
19208         Preelaborate.
19209         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
19210         initialization of this unit.
19211         (Specific): Add new procedures Initialize and Delete so that this
19212         package can be used for VxWorks 5.x and 6.x
19213         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
19214         differences between VxWorks 5.x and 6.x
19215         Minor reformatting.
19216         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
19217         caller.
19218         Use only Preelaborate-compatible constructs.
19219
19220         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
19221         Primitives.Operations.
19222         (Delete, Initialize): New procedures.
19223
19224         * s-osinte-vxworks.adb: Body used to handle differences between
19225         VxWorks 5.x and 6.x
19226         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
19227
19228         * s-osinte-vxworks.ads: Minor reformatting.
19229         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
19230         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
19231         and 6.
19232         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
19233         between Vxworks 5 and 6.
19234         (taskLock, taskUnlock): Removeed, no longer used.
19235
19236         * adaint.c: The wait.h header is not located in the sys directory on
19237         VxWorks when using RTPs.
19238         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
19239         using RTPs.
19240         (__gnat_dup): dup is available on Vxworks when using RTPs.
19241         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
19242
19243         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
19244
19245         * expect.c: The wait.h header is not located in the sys directory on
19246         VxWorks when using RTPs.
19247
19248 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19249
19250         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
19251
19252         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
19253
19254         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
19255         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19256         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
19257         g-soccon-freebsd.ads: Add new constants:
19258          IP_MULTICAST_IF
19259          SO_RCVTIMEO/SO_SNDTIMEO
19260          IOV_MAX
19261
19262         * gen-soccon.c:
19263         Move all target-specific file inclusions and macro definitions to
19264         gsocket.h, in order to ensure that any C code in socket.c will see a
19265         set of constants that is consistent with the contents of g-soccon.ads.
19266
19267         * gsocket.h: Code imported from gen-soccon.c:
19268         Move all target-specific file inclusions and macro definitions to
19269         gsocket.h, in order to ensure that any C code in socket.c will see a set
19270         of constants that is consistent with the contents of g-soccon.ads.
19271         This change also makes gen-soccon self-contained (removing dependencies
19272         upon GCC internal headers).
19273
19274         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
19275         iovecs at a time.
19276         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
19277
19278         * socket.c: Minor reformatting.
19279
19280 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19281             Thomas Quinot  <quinot@adacore.com>
19282
19283         * fname-sf.adb, mlib-tgt.ads,
19284         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
19285         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
19286         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
19287         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
19288         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
19289         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
19290         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
19291         makegpr.adb: Remove redundant use_clauses.
19292
19293 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19294
19295         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
19296         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
19297         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
19298         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
19299         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
19300         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
19301         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
19302         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
19303         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19304         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
19305         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
19306         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
19307         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
19308         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
19309         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
19310         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19311         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19312         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
19313         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
19314         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
19315         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
19316         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
19317         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
19318         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
19319         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
19320         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
19321         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
19322         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
19323         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19324         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19325         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19326         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19327         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19328         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19329         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19330         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19331         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19332         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19333         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19334         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19335         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19336         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19337         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19338         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19339         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19340         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19341         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19342         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19343         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19344         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19345         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19346         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19347         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19348         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19349         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19350         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19351         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19352         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19353         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19354         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19355         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19356         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19357         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19358         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19359         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19360         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19361         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19362         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19363         and always use the no parameter form for consistency.
19364
19365         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19366
19367 2005-09-01  Robert Dewar  <dewar@adacore.com>
19368
19369         * binde.adb: Minor reformatting
19370         (Find_Elab_Order): Output warning if -p used with static elab order
19371
19372 2005-09-01  Robert Dewar  <dewar@adacore.com>
19373
19374         * checks.adb (Check_Needed): New procedure, deals with removing checks
19375         based on analysis of short-circuited forms. Also generates warnings for
19376         improper use of non-short-circuited forms.
19377         Code clean ups.
19378
19379 2005-09-01  Robert Dewar  <dewar@adacore.com>
19380
19381         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19382         with 'Valid tests.
19383
19384 2005-09-01  Robert Dewar  <dewar@adacore.com>
19385
19386         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19387         spec.
19388         Implement new insertion char < (conditional warning)
19389         * errutil.adb, erroutc.adb: Implement new insertion char <
19390         (conditional warning).
19391         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19392         (Error_Msg_Warn): New variable for < insertion char.
19393         * prj-nmsc.adb: Implement new errout insertion char < (conditional
19394         warning).
19395         (Check_For_Source): Change value of Source_Id only after the current
19396         source has been dealt with.
19397
19398 2005-09-01  Robert Dewar  <dewar@adacore.com>
19399             Doug Rupp  <rupp@adacore.com>
19400
19401         * exp_attr.adb: Handle vax fpt for 'Valid attribute
19402         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19403         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19404         (Valid_D, Valid_F, Valid_G): New functions
19405
19406 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19407             Hristian Kirtchev  <kirtchev@adacore.com>
19408             Javier Miranda  <miranda@adacore.com>
19409
19410         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19411         from object notation, the original node is unanalyzed and carries no
19412         semantic information, so that accessiblity checks must be performed on
19413         the type of the actual itself.
19414         (Expand_N_Subprogram_Declaration): Change last actual parameter for
19415         compatibility with Build_Protected_Sub_Specification.
19416         (Check_Overriding_Inherited_Interfaces): Add suport to handle
19417         overloaded primitives.
19418         (Register_Interface_DT_Entry): Use the new name of the formal
19419         the the calls to Expand_Interface_Thunk
19420
19421         * exp_dbug.ads: Augment comments on encoding of protected types to
19422         include the generation of dispatching subprograms when the type
19423         implements at least one interface.
19424
19425         * lib.ads: Extend information in Load_Stack to include whether a given
19426         load comes from a Limited_With_Clause.
19427
19428         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19429         whether a potential circularity is harmless, because it includes units
19430         loaded through a limited_with clause. Extends previous treatment which
19431         did not handle properly arbitrary combinations of limited and
19432         non-limited clauses.
19433
19434 2005-09-01  Nicolas Setton  <setton@adacore.com>
19435
19436         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19437         to be encoded as typ___XBLU_lowerbound__upperbound instead of
19438         typ___XB_lowerbound__upperbound.
19439
19440 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19441
19442         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19443         dummy access formal for RACW/RAS TypeCode TSS.
19444         (Build_TypeCode_Call): Do not generate dummy null access actual for
19445         calls to the TypeCode TSS.
19446
19447 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19448
19449         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19450         fully qualified name, to distinguish instances with the same local name.
19451
19452         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19453         fully qualified.
19454
19455 2005-09-01  Robert Dewar  <dewar@adacore.com>
19456
19457         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19458         packed arrays.
19459
19460 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
19461
19462         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19463         (Free): New deallocation procedure for filter elements
19464         (Close): Deallocate any existing filter for the concerned connection
19465
19466 2005-09-01  Laurent Pautet  <pautet@adacore.com>
19467
19468         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19469         position set is provided, we compute one in order to reduce the maximum
19470         length of the keys.  This computation first selects a character
19471         position between 1 and the minimum length of the keys in order to
19472         avoid reducing one of the keys to an empty string.
19473         (Initialize, Compute): When the ratio V to K is too low, the algorithm
19474         does not converge. The initialization procedure now comes with a
19475         maximum number of iterations such that when exceeded, an exception is
19476         raised in Compute. The user can initialize this ratio to another value
19477         and try again
19478         Reformating and updated headers.
19479
19480 2005-09-01  Javier Miranda  <miranda@adacore.com>
19481
19482         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19483         that given an entity T creates and returns an Itype that duplicates the
19484         contents of T. The returned Itype has the null-exclusion
19485         attribute set to True, and its Etype attribute references T
19486         to keep the association between the two entities.
19487         Update copyright notice
19488
19489         * sem_aggr.adb (Check_Can_Never_Be_Null,
19490         Aggregate_Constraint_Checks, Resolve_Aggregate,
19491         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19492
19493         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19494
19495 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
19496             Robert Dewar  <dewar@adacore.com>
19497             Hristian Kirtchev  <kirtchev@adacore.com>
19498
19499         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19500         Result_Definition.
19501
19502         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19503         function specs.
19504         Call Set_Result_Definition instead of Set_Subtype_Mark.
19505         (P_Subprogram_Specification): Add parsing of anonymous access result
19506         plus null exclusions. Call Set_Result_Definition instead of
19507         Set_Subtype_Mark.
19508
19509         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19510         (P_Access_Type_Definition): Add parsing for an anonymous access result
19511         subtype, plus parsing for null exclusions. Call Set_Result_Definition
19512         instead of Set_Subtype_Mark.
19513
19514         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19515         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19516         (Result_Definition): New function for N_Function_Specifications.
19517         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19518         N_Function_Specification.
19519         (Set_Null_Exclusion_Present): Allow this flag for
19520         N_Function_Specification.
19521         (Set_Result_Definition): New procedure for N_Function_Specifications.
19522         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19523         and N_Function_Specification.
19524
19525         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19526         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19527         Add support for LIMITED NEW for Ada 2005 AI-419
19528         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19529         syntax for anonymous access results.
19530         Replace Subtype_Mark field by Result_Definition in
19531         N_Function_Specification and N_Access_Definition specs.
19532         Add Null_Exclusion_Present to spec of N_Function_Specification.
19533         (Result_Definition): New function for N_Function_Specification and
19534         N_Access_Function_Definition.
19535         (Set_Result_Definition): New procedure for N_Function_Specification and
19536         N_Access_Function_Definition.
19537
19538         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19539         Result_Definition for cases of N_Access_Function_Definition and
19540         N_Function_Specification.
19541         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19542
19543 2005-09-01  Vincent Celier  <celier@adacore.com>
19544
19545         * lib-writ.adb: Update Copyright notice
19546         (Write_With_Lines): On platforms where file names are case-insensitive,
19547         record the file names in lower case.
19548         (Write_ALI): For D lines, on platforms where file names are
19549         case-insensitive, record the file names in lower case.
19550
19551 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19552             Emmanuel Briot  <briot@adacore.com>
19553
19554         * lib-xref.adb (Output_Overridden_Op): Display information on
19555         overridden operation.
19556
19557         * lib-xref.ads: Add documentation on overridden operations.
19558
19559         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19560         information.
19561
19562         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19563         overriding entity information.
19564
19565 2005-09-01  Vincent Celier  <celier@adacore.com>
19566
19567         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19568         including those that are inherited.
19569
19570 2005-09-01  Robert Dewar  <dewar@adacore.com>
19571
19572         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19573
19574         * par-prag.adb: Implement new pragma Debug_Policy
19575
19576         * sem_prag.adb Implement new pragma Debug_Policy
19577         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19578         Component_Size attribute specification. Give warning for ignored pragma
19579         Pack.
19580
19581         * snames.h, snames.ads, snames.adb: Introduce entries in
19582         Preset_Names for Name_Disp_Asynchronous_Select,
19583         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19584         Name_Disp_Timed_Select.
19585         New pragma Debug_Policy
19586
19587         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19588         explicitly.
19589         Switch -gnata also sets Debug_Pragmas_Enabled
19590
19591         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19592         handle an explicit -gnata when compiling predefined files.
19593
19594 2005-09-01  Vincent Celier  <celier@adacore.com>
19595
19596         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19597         directories of projects that have no Ada sources.
19598
19599 2005-09-01  Robert Dewar  <dewar@adacore.com>
19600
19601         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19602         (makes a difference for wide characters)
19603
19604         * widechar.adb, widechar.ads:
19605         Add Wide_Char_Byte_Count feature to count chars vs bytes
19606
19607 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19608             Ed Schonberg  <schonberg@adacore.com>
19609             Robert Dewar  <dewar@adacore.com>
19610
19611         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19612         'Address attribute reference with an overloaded prefix, use the
19613         location of the prefix (not the location of the attribute reference) as
19614         the error location.
19615         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19616         a function renaming thereof, is a valid prefix for 'Size (where it is
19617         intepreted as a function call).
19618         (Statically_Denotes_Entity): New predicate to determine whether the
19619         prefix of an array attribute can be considered static.
19620
19621         PR ada/9087
19622         (Eval_Attr): Fix failure to evaluate Component_Size for
19623         unconstrained arrays (resulted in wrong value in packed case, since
19624         back end cannot handle this case)
19625
19626 2005-09-01  Robert Dewar  <dewar@adacore.com>
19627
19628         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19629         error msgs for most common cases.
19630         Use new errout insertion char < (conditional warning)
19631
19632 2005-09-01  Javier Miranda  <miranda@adacore.com>
19633             Ed Schonberg  <schonberg@adacore.com>
19634
19635         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19636         become local to the whole package.
19637         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19638         the package was already analyzed the new algorithm "replaces" the
19639         real entities by the shadow ones. This is required to ensure that
19640         the order of these entities in the homonym chains does not change;
19641         otherwise we can have undefined references at linking time because
19642         in case of conflicts the external name of the entities will have
19643         a suffix that depends on the order of the entities in the chain.
19644         (Remove_Limited_With_Clause): Complementary code that completes the
19645         new algorithm and replaces the shadow entities by the real ones.
19646         (Install_Limited_Withed_Unit): When unchaining entities before the
19647         installation of the shadow entities, only regular entities of the
19648         public part must be taken into account. This is required to
19649         keep this routine in synch with the work done by Remove_Limited_
19650         With_Clause
19651         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19652         even if unit is analyzed, because the analysis of the unit is
19653         idempotent in any case, and the limited view of the unit may have to
19654         be installed for proper visibility.
19655         (Expand_Limited_With_Clause): Even if the unit in the implicit
19656         with_clause has been analyzed already, a limited view of the package
19657         must be built for the current context, if it does not exist yet.
19658
19659 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19660             Javier Miranda  <miranda@adacore.com>
19661             Gary Dismukes  <dismukes@adacore.com>
19662
19663         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19664         defining entity for the instance body, make a new defining identifier
19665         rather than copying the entity of the spec, to prevent accidental
19666         sharing of the entity list.
19667         (Check_Private_View): When exchanging views of private types, build the
19668         list of exchanged views as a stack, to ensure that on exit the exchanges
19669         are undone in the proper order.
19670         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19671         Restore the compilation environment in case of instantiation_error.
19672         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19673         for an anonymous access result.
19674         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19675         (Formal_Entity): Handle properly the case of a formal package that
19676         denotes a generic package renaming.
19677
19678 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19679
19680         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19681         clause if the array aggregate is surrounded by parentheses.
19682
19683 2005-09-01  Cyrille Comar  <comar@adacore.com>
19684             Gary Dismukes  <dismukes@adacore.com>
19685             Ed Schonberg  <schonberg@adacore.com>
19686             Javier Miranda  <miranda@adacore.com>
19687
19688         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19689         underlying type
19690         to check if a type is Constrained in cases related to code generation
19691         (rather than semantic checking) since otherwise we do not generate
19692         similar code for mutable private types depending if their
19693         discriminants are visible or not.
19694         (Check_Abstract_Overriding): Do not complain about failure to override
19695         the primitive operations used in dispatching selects since they will
19696         always be overriden at the freeze point of the type.
19697         (Access_Definition): Separate out handling for resetting the scope
19698         of an anonymous access function result type. Retrieve the scope
19699         of the associated function rather than using Current_Scope, which
19700         does not have a consistent value (depends on whether we're in the
19701         middle of analyzing formal parameters). Add ??? comment about
19702         finding a cleaner way to handle the special cases of scope setting.
19703         (Process_Incomplete_Dependents): A protected operation is never a
19704         dispatching operation (only its wrapper may be).
19705         (Build_Derived_Record_Type): In case of tagged private types that
19706         implement interfaces add derivation of predefined primitive
19707         operations.
19708         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19709         by two parameters that are used in case of derivation from abstract
19710         interface types: No_Predefined_Prims is used to avoid the derivation
19711         of predefined primitives from the interface, and Predefined
19712         Prims_Only is used to complete the derivation predefined primitives
19713         in case of private tagged types implementing interfaces.
19714         Fix typo in comments
19715         (Find_Interface_In_Descendant): Protect the frontend against
19716         wrong code with large circularity chains.
19717         (Is_Private_Overriding): Add support for entities overriding interface
19718         subprograms. The test failed because Entities associated with overriden
19719         interface subprograms are always marked as hidden (and used to build
19720         the secondary dispatch table); in this case the overriden entity is
19721         available through the field abstract_interface_alias (cf. override_
19722         dispatching_operation)
19723         (Access_Definition): Set the scope of the type to Current_Scope for the
19724         case of a function with an anonymous access result type.
19725         (Access_Subprogram_Declaration): Handle creation of the type entity for
19726         an access-to-function type with an anonymous access result.
19727         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19728         in handling for N_Access_Function_Definition.
19729         (Analyze_Subtype_Declaration): Modify the text of error message.
19730         (Derived_Type_Declaration): Modify the text of error message.
19731         (Process_Subtype): Modify the text of error message plus cleanup
19732         of one redundant error message.
19733         (Analyze_Component_Declaration): Code cleanup.
19734         (Analyze_Object_Declaration): Code cleanup.
19735         (Analyze_Subtype_Declaration): Propagate the null-exclusion
19736         attribute in case of access types. Code cleanup.
19737         (Array_Type_Declaration): Code cleanup.
19738         (Process_Discriminants): Create the new null-excluding itype
19739         if required. Code cleanup.
19740         (Process_Subtype): Create the new null-excluding itype if
19741         required. Code cleanup.
19742         (Build_Derived_Record_Type): Code cleanup to avoid calling
19743         twice the subprogram derive_subprograms in case of private
19744         types that implement interfaces. In this particular case the
19745         subprogram Complete_Subprograms_Derivation already does the
19746         job associated with the second call.
19747
19748         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19749         conversion to the full view when generating an operation for a
19750         discriminant whose type may currently be private.
19751
19752 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19753             Javier Miranda  <miranda@adacore.com>
19754
19755         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19756         V (Obj.F), the rewriting does not involve the indexed component, but
19757         only the selected component itself.
19758         Do not apply the transformation if the analyzed node is an actual of a
19759         call to another subprogram.
19760         (Complete_Object_Operation): Retain the entity of the
19761         dispatching operation in the selector of the rewritten node. The
19762         entity will be used in the expansion of dispatching selects.
19763         (Analyze_One_Call): Improve location of the error message associated
19764         with interface.
19765         (Analyze_Selected_Component): No need to resolve prefix when it is a
19766         function call, resolution is done when parent node is resolved, as
19767         usual.
19768         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19769         when attempting to resolve a call transformed from its object notation.
19770         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19771         of the argument list for each interpretation of the operation.
19772         (Try_Object_Operation): The designated type of an access parameter may
19773         be an incomplete type obtained through a limited_with clause, in which
19774         case the primitive operations of the type are retrieved from its full
19775         view.
19776         (Analyze_Call): If this is an indirect call, and the return type of the
19777         access_to_subprogram is incomplete, use its full view if available.
19778
19779 2005-09-01  Javier Miranda  <miranda@adacore.com>
19780             Gary Dismukes  <dismukes@adacore.com>
19781
19782         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19783         access types the null-exclusion and access-to-constant attributes must
19784         also match.
19785         (Analyze_Return_Statement): When the result type is an anonymous access
19786         type, apply a conversion of the return expression to the access type
19787         to ensure that appropriate accessibility checks are performed.
19788         (Analyze_Return_Type): For the case of an anonymous access result type,
19789         generate the Itype and set Is_Local_Anonymous_Access on the type.
19790         Add ??? placeholder for check to disallow returning a limited object
19791         in Ada 2005 unless it's an aggregate or a result of a function call.
19792         Change calls from Subtype_Mark to Result_Definition.
19793         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19794         Result_Definition in call to Make_Function_Specification.
19795         (Build_Body_To_Inline): Change Set_Subtype_Mark to
19796         Set_Result_Definition.
19797         (Make_Inequality_Operator): Change formal Subtype_Mark to
19798         Result_Definition in call to Make_Function_Specification.
19799         (Process_Formals): Create the new null-excluding itype if required.
19800         (New_Overloaded_Entity): For an entity overriding an interface primitive
19801         check if the entity also covers other abstract subprograms in the same
19802         scope. This is required to handle the general case, that is, overriding
19803         other interface primitives and overriding abstract subprograms inherited
19804         from some abstract ancestor type.
19805         (New_Overloaded_Entity): For an overriding entity that comes from
19806         source, note the operation that it overrides.
19807         (Check_Conformance, Type_Conformant): Addition of one new formal
19808         to skip controlling formals in the analysis. This is used to
19809         handle overloading of abstract interfaces.
19810         (Base_Types_Match): Add missing case for types imported from
19811         limited-with clauses
19812         (New_Overloaded_Entity): Add barrier to protect the use of
19813         the "alias" attribute.
19814
19815 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19816
19817         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19818         verify that the procedure and the entry are mode conformant.
19819         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19820         as a different operator, which is often a cut-and-paste error.
19821
19822 2005-09-01  Javier Miranda  <miranda@adacore.com>
19823             Ed Schonberg  <schonberg@adacore.com>
19824
19825         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19826         used in controlling parameters exclude null because it is necessary to
19827         read the tag to dispatch, and null has no tag.
19828         (Override_Dispatching_Operation): If the previous operation is inherited
19829         from an interface, it becomes hidden  and does not participate in later
19830         name resolution.
19831
19832 2005-09-01  Javier Miranda  <miranda@adacore.com>
19833             Ed Schonberg  <schonberg@adacore.com>
19834             Gary Dismukes  <dismukes@adacore.com>
19835
19836         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19837         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19838         the expander will generate the corresponding run-time check to evaluate
19839         the expression.
19840         (Resolve_Call): Check for legal type of procedure name or prefix that
19841         appears as a trigger in a triggering alternative.
19842         (Valid_Conversion): If expression is ambiguous and the context involves
19843         an extension of System, remove System.Address interpretations.
19844         (Resolve_Qualified_Expression): Reject the case of a specific-type
19845         qualification applied to a class-wide argument. Enhance comment
19846         to explain checking of Original_Node.
19847         (Resolve_Type_Conversion): The location of the error message was not
19848         general enough to handle the general case and hence it has been removed.
19849         In addition, this patch improves the text of the message.
19850         (Resolve_Type_Conversion): Add missing support for access to interface
19851         types.
19852         (Resolve_Type_Conversion): If the target is a class-wide interface type,
19853         do not expand if the expression is the actual in a call, because proper
19854         expansion will take place when the call itself is expanded.
19855         (Resolve_Allocator): If the context is an unchecked conversion, the
19856         allocator inherits its storage pool, if any, from the target type of
19857         the conversion.
19858
19859 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19860             Javier Miranda  <miranda@adacore.com>
19861
19862         * sem_type.adb (Add_One_Interp): If a candidate operation is an
19863         inherited interface operation that has an implementation, use the
19864         implementation to avoid spurious ambiguities.
19865         (Interface_Present_In_Ancestor): In case of concurrent types we can't
19866         use the Corresponding_Record_Typ attribute to look for the interface
19867         because it is set by the expander (and hence it is not always
19868         available). For this reason we traverse the list of interfaces
19869         (available in the parent of the concurrent type).
19870         (Interface_Present_In_Ancestor): Handle entities from the limited view
19871
19872 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19873
19874         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19875         from the list of required components.
19876         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19877         primitive procedure of a limited interface with a controlling first
19878         parameter.
19879         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19880         of an entry.
19881         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19882         capture if it is generated in the second operand of a short-circuit
19883         operation.
19884         Do not capture values for variables with address clauses.
19885         (Is_Object_Reference): Treat a function call as an object reference only
19886         if its type is not Standard_Void_Type.
19887
19888 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19889
19890         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19891         to a variable that is statically known to be constant.
19892
19893 2005-09-01  Geert Bosch  <bosch@adacore.com>
19894             Robert Dewar  <dewar@adacore.com>
19895
19896         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19897         (VAXGF_Safe_First): Idem.
19898
19899 2005-09-01  Robert Dewar  <dewar@adacore.com>
19900             Arnaud Charlet  <charlet@adacore.com>
19901
19902         * g-dirope.ads: Minor reformatting
19903         Document that bounds of result of Base_Name match the input index
19904         positions.
19905         Add documentation on environment variable syntax for Expand_Path
19906
19907         * gnat_ugn.texi: Update documentation to include mention of -m switches
19908         Document new treatment of wide characters in max line length
19909         style check.
19910         Remove -gnatL/-gnatZ switches, no longer used.
19911         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19912         of -gnata switch.
19913
19914         * gnat_rm.texi: Add doc for two argument form of pragma
19915         Float_Representation.
19916         Add documentation for pragma No_Strict_Aliasing
19917         Add note that explicit component clause overrides pragma Pack.
19918         Add documentation of pragma Debug_Policy
19919
19920 2005-09-01  Matthew Heaney  <heaney@adacore.com>
19921
19922         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19923         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19924         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19925         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19926         draft (Draft 13, August 2005) of Ada Amendment 1.
19927
19928 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19929
19930         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19931         Note that the platform-specific version of g-soccon.ads for VMS is now
19932         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19933         really is a package spec).
19934         Replace s-taspri-linux.ads by s-taspri-posix.ads
19935         Remove references to s-mastop-x86.adb
19936
19937         * system-vxworks-xscale.ads: Removed, no longer used.
19938         * s-vxwork-xscale.ads: Removed, no longer used.
19939
19940 2005-09-01  Robert Dewar  <dewar@adacore.com>
19941
19942         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19943         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19944         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19945         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19946         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19947         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19948         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19949         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19950         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19951         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19952         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19953         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19954         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19955         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19956         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19957         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19958         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19959         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19960         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19961         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19962         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19963
19964 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19965
19966         PR ada/23187
19967         * adaint.c
19968         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19969
19970 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19971             Doug Rupp  <rupp@adacore.com>
19972
19973         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19974         when needed.
19975         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19976         this code in the GNAT run-time.
19977
19978         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19979
19980         PR ada/21053
19981         * init.c (__gnat_error_handler [many]): Mark "msg" as const
19982         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19983
19984         (__gnat_inside_elab_final_code): Moved here from
19985         Standard_Library and only defined for the compiler.
19986         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19987         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19988         using RTPs because directly vectored Interrupt routines are not
19989         supported on this configuration.
19990         (getpid): Do not redefine this function on VxWorks when using RTPs
19991         because this primitive is well supported by the RTP libraries.
19992         (copy_msg): Correct the code that checks for buffer overflow.
19993         Discovered during code reading.
19994
19995 2005-08-29  Olivier Hainque  <hainque@adacore.com>
19996
19997         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19998         a library level mutable variable with an initializer, tell
19999         build_allocator to ignore the initializer's size. It may not be large
20000         enough for all the values that might be assigned to the variable later
20001         on.
20002
20003 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
20004             Eric Botcazou  <ebotcazou@adacore.com>
20005
20006         * trans.c: Protect < in error msg with quote
20007         Replace GCC_ZCX by Back_End_Exceptions.
20008         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
20009         has been sufficiently aligned in the record.
20010
20011 2005-08-15  James E. Wilson  <wilson@specifix.com>
20012
20013         * system-linux-alpha.ads: Change ia64 to alpha.
20014
20015 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
20016
20017         * decl.c, utils.c: Fix comment typos.
20018
20019 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
20020
20021         * decl.c, init.c, initialize.c: Fix comment typos.
20022
20023 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
20024
20025         Make CONSTRUCTOR use VEC to store initializers.
20026         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
20027         CONSTRUCTOR_ELTS.
20028         * trans.c (extract_values): Likewise.
20029         * utils.c (convert, remove_conversions): Likewise.
20030         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
20031         gnat_build_constructor): Likewise.
20032
20033 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
20034
20035         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
20036         DECL_SECTION_NAME.
20037         (compare_field_bitpos): Likewise.
20038
20039 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
20040
20041         * utils.c (create_var_decl): Only set DECL_COMMON on
20042         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
20043         VAR_OR_FUNCTION_DECL_P.
20044
20045 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
20046
20047         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
20048         removed.
20049
20050 2005-07-07  Pascal Obry  <obry@adacore.com>
20051
20052         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
20053         returned type on Windows.
20054
20055         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
20056         routine.
20057
20058         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
20059         exception in this case.
20060         Simplify the code as "Image (Image'Range)" = "Image".
20061
20062 2005-07-07  Vincent Celier  <celier@adacore.com>
20063
20064         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
20065         the destructor/constructor attributes for <lib>final/<lib>init.
20066
20067         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
20068
20069 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
20070
20071         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
20072         type if the parameter is not passed by copy but reference by default.
20073
20074 2005-07-07  Javier Miranda  <miranda@adacore.com>
20075
20076         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
20077         Reimplementation of the support for abstract interface types in order
20078         to leave the code more clear and easy to maintain.
20079
20080         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
20081         abstract interface types in order to leave the code clearer and easier
20082         to maintain.
20083
20084         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
20085         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
20086         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
20087         appropriate entry of the secondary dispatch table.
20088         (Make_DT): Add code to inherit the secondary dispatch tables of
20089         the ancestors.
20090
20091         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
20092         implementing both functionalities by means of a common routine, each
20093         routine has its own code.
20094
20095 2005-07-07  Javier Miranda  <miranda@adacore.com>
20096
20097         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
20098
20099         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
20100         types:
20101         --
20102           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
20103         --
20104
20105         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
20106         use of tag incomplete types.
20107
20108         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
20109         give support to tagged incomplete types.
20110
20111         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
20112         expression is a discriminant reference and its type is private, as can
20113         happen within a stream operation for a mutable record, use the full
20114         view of the type to resolve the case alternatives.
20115         (Analyze_Assignment): Check wrong dereference of incomplete types.
20116
20117         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
20118         types.
20119
20120         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
20121         incomplete types.
20122
20123         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
20124         N_Incomplete_Type_Declaration nodes.
20125
20126         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
20127         Tag_Present to give support to tagged incomplete types:
20128         --
20129           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
20130         --
20131
20132 2005-07-07  Olivier Hainque  <hainque@adacore.com>
20133
20134         PR ada/22301
20135         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
20136         definitions for the Unwind wrappers in the compiler case.
20137
20138 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
20139             Javier Miranda  <miranda@adacore.com>
20140
20141         * par-load.adb (Load): If a child unit is loaded through a limited_with
20142         clause, each parent must be loaded as a limited unit as well.
20143
20144         * sem_ch10.adb (Previous_Withed_Unit): Better name for
20145         Check_Withed_Unit. Return true if there is a previous with_clause for
20146         this unit, whether limited or not.
20147         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
20148         the current unit.
20149         (Is_Visible_Through_Renamings): New local subprogram of install_limited
20150         _withed_unit that checks if some package installed through normal with
20151         clauses has a renaming declaration of package whose limited-view is
20152         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
20153         of the current Draft document for Ada 2005.
20154         (Analyze_Context): Complete the list of compilation units that
20155         are allowed to contain limited-with clauses. It also contains
20156         checks that were previously done by Install_Limited_Context_Clauses.
20157         This makes the code more clear and easy to maintain.
20158         (Expand_Limited_With_Clause) It is now a local subprogram of
20159         Install_Limited_Context_Clauses, and contains the code that adds
20160         the implicit limited-with clauses for parents of child units.
20161         This functionality was prevously done by Analyze_Context.
20162
20163         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
20164         incomplete type.
20165
20166         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
20167         been erroneously named in a limited-with clause of its own context.
20168         In this case the error has been previously notified by Analyze_Context.
20169
20170 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
20171
20172         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
20173         generic package that contains local declarations with the same name.
20174         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
20175
20176 2005-07-07  Bernard Banner  <banner@adacore.com>
20177
20178         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
20179         ia64 platform only on platforms that you the GCC unwind library
20180         rather than the system unwind library.
20181
20182 2005-07-07  Thomas Quinot  <quinot@adacore.com>
20183
20184         * expect.c: Minor reformatting
20185
20186 2005-07-07  Sergey Rybin  <rybin@adacore.com>
20187
20188         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
20189         --no-separate-is
20190
20191         * gnat_ugn.texi: Add description for new gnatpp option
20192         (--no-separate-is)
20193
20194 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20195
20196         * g-expect-vms.adb, g-expect.ads, g-expect.adb
20197         (Get_Command_Output): New subprogram to launch a process and get its
20198         standard output as a string.
20199
20200 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20201             Olivier Hainque  <hainque@adacore.com>
20202
20203         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
20204         fetch a code-range descriptor associated with the machine state. On
20205         failure set the machine state's PC to 0; on success, pass the
20206         descriptor to exc_virtual_unwind.
20207
20208         * init.c (Tru64 section): New function __gnat_set_code_loc.
20209
20210 2005-07-04  Vincent Celier  <celier@adacore.com>
20211
20212         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20213         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20214         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
20215         Remove all auto-initialization code, as this is now done through the
20216         constructor mechanism.
20217
20218         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
20219         __gnat_sals_init_using_constructors): New functions.
20220
20221         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
20222         Linker_Constructor and Linker_Destructor when switch -a is used.
20223
20224         * bindusg.adb: Add line for new switch -a
20225
20226         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
20227         (Gnatbind): When switch -a is used, check if it is allowed
20228
20229         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
20230
20231 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
20232
20233         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
20234         This prevents us from hitting a limitation during the debug info
20235         generation when using stabs.
20236         (Prims_Ptr): Likewise.
20237
20238 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
20239             Ed Schonberg  <schonberg@adacore.com>
20240             Javier Miranda  <miranda@adacore.com>
20241
20242         * checks.adb (Null_Exclusion_Static_Checks): In the case of
20243         N_Object_Declaration, only perform the checks if the Object_Definition
20244         is not an Access_Definition.
20245
20246         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
20247         where the parent of an the access definition is an N_Object_Declaration
20248         when determining the Associated_Node_For_Itype and scope of an
20249         anonymous access-to-subprogram type.
20250
20251         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
20252         Corresponding_Spec on the body created for a null procedure. Add ???
20253         comment. Remove New_Copy_Tree call on body argument to
20254         Set_Body_To_Inline.
20255
20256         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
20257         discriminants, use the type of the actual as well, because the
20258         discriminants may be read by the called subprogram.
20259
20260         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
20261         access type we do not need to handle non-limited views.
20262         (Build_Derived_Record_Type): Additional check to check that in case of
20263         private types, interfaces are only allowed in private extensions.
20264
20265 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20266
20267         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
20268         <Pragma_Linker_Destructor>: Likewise.
20269
20270         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
20271         Pragma_Linker_Destructor.
20272
20273         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
20274         ATTR_LINK_DESTRUCTOR.
20275         (static_ctors, static_dtors): New variables.
20276
20277         * misc.c (gnat_expand_body): Output current function as constructor
20278         and destructor if requested.
20279
20280         * par-prag.adb: Add processing for pragma Linker_Constructor and
20281         Linker_Destructor.
20282
20283         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
20284         extracted from Check_Interrupt_Or_Attach_Handler.
20285         (Check_Interrupt_Or_Attach_Handler): Invoke it.
20286         Implement pragma Linker_Constructor and Linker_Destructor with the
20287         help of Find_Unique_Parameterless_Procedure.
20288         Replace Name_Alias with Name_Target for pragma Linker_Alias.
20289
20290         * snames.h, snames.ads, snames.adb:
20291         Add Name_Linker_Constructor and Name_Linker_Destructor.
20292         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
20293         * snames.adb: Remove Name_Alias.
20294
20295         * trans.c: Include cgraph.h.
20296         (build_global_cdtor): New function.
20297         (Compilation_Unit_to_gnu): Build global constructor and destructor if
20298         needed.
20299         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
20300         of objects too.
20301         (addressable_p) <COMPONENT_REF>: Unconditionally test
20302         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
20303
20304         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
20305         variable if it is external.
20306
20307         (static_ctors, static_dtors): New global variables.
20308         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
20309         <ATTR_LINK_DESTRUCTOR>: Likewise.
20310         (end_subprog_body): Chain function as constructor and destructor
20311         if requested.
20312
20313         * exp_util.adb (Force_Evaluation): Unconditionally invoke
20314         Remove_Side_Effects with Variable_Ref set to true.
20315         (Remove_Side_Effects): Handle scalar types first. Use a renaming
20316         for non-scalar types even if Variable_Ref is true and for class-wide
20317         expressions.
20318
20319 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20320
20321         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
20322         to prevent spurious warnings.
20323
20324 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20325
20326         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20327         Itypes. Itypes are really unexpected there.
20328         (Build_TypeCode_Function): Generalise special processing for Itypes to
20329         handle the case of numeric implicit base types as well as enumerated
20330         ones.
20331
20332 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20333
20334         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20335         controlled, indicate the expected type of the dereference that is
20336         created for the call to Deep_Finalize, to prevent spurious errors when
20337         the designated type is private and completed with a derivation from
20338         another private type.
20339
20340 2005-07-04  Vincent Celier  <celier@adacore.com>
20341
20342         * make.adb (Change_To_Object_Directory): When unable to change the
20343         current dir to the object directory, output the full path of the
20344         directory.
20345
20346 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20347
20348         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20349
20350         * indepsw-linux.adb: Replace by...
20351
20352         * indepsw-gnu.adb: ...this new file
20353
20354 2005-07-04  Vincent Celier  <celier@adacore.com>
20355
20356         * mlib-prj.adb (Auto_Initialize): New constant String
20357         (SALs_Use_Constructors): New Boolean function
20358         (Build_Library): Call gnatbind with Auto_Initialize switch when
20359         SALs_Use_Constructors returns True.
20360
20361         * mlib-tgt.ads: Minor reformatting
20362
20363         * mlib-utl.ads: Minor reformatting
20364
20365         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20366
20367 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20368
20369         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20370         single protected declarations can have an interface list.
20371         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20372         with seriously malformed entry declarations, and lead to compilation
20373         abandoned messages.
20374
20375 2005-07-04  Javier Miranda  <miranda@adacore.com>
20376
20377         * par-load.adb: Load the context items in two rounds.
20378
20379 2005-07-04  Robert Dewar  <dewar@adacore.com>
20380
20381         * scng.adb: Do not consider Mod used as an attribute to be a keyword
20382
20383 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20384             Javier Miranda  <miranda@adacore.com>
20385
20386         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20387         type extension needs a limited view.
20388         Remove previous restriction on private types available through the
20389         limited-view (only tagged private types were previously allowed).
20390         (Install_Withed_Unit): In the code that implements the
20391         legality rule given in AI-377, exclude a child unit with the name
20392         Standard, because it is a homonym of the Standard environment package.
20393
20394 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20395
20396         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20397         overloaded function call, carry interpretations from the original tree
20398         to the copy.
20399
20400 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20401
20402         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20403         types check whether some designated type is a limited view, and use
20404         the non-limited view if available.
20405
20406 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
20407
20408         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20409         constraint of full view of a private view T1 if present, when T2 is a
20410         discriminated full view.
20411
20412 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20413
20414         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20415         actual that is a view conversion of a bit packed array reference.
20416
20417 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20418
20419         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20420         present before checking whether an interface type covers a synchronized
20421         type.
20422
20423 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20424
20425         * sem_util.adb (Is_Object_Reference): An indexed or selected component
20426         whose prefix is an implicit dereference is an object reference. Removes
20427         spurious errors when compiling with -gnatc.
20428
20429 2005-07-04  Robert Dewar  <dewar@adacore.com>
20430
20431         PR ada/22039
20432         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20433
20434 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20435
20436         * tracebak.c: Enable tracebacks on ia64 platforms
20437
20438 2005-07-04  Vincent Celier  <celier@adacore.com>
20439
20440         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20441         the GNAT BIND command, as gnatbind accepts multiples ALI files with
20442         the -L or -n switches.
20443
20444 2005-07-04  Vincent Celier  <celier@adacore.com>
20445
20446         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20447         correctly computed and the main project data is not modified while
20448         doing so.
20449         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20450         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20451         c++linker as this does not work on some platforms.
20452
20453 2005-07-04  Matthew Heaney  <heaney@adacore.com>
20454
20455         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20456         was changed.
20457         * a-coinve.adb: Perform constraint checks explicitly.
20458
20459 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20460             Thomas Quinot  <quinot@adacore.com>
20461
20462         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20463         new target gen-soccon.
20464
20465 2005-07-04  Robert Dewar  <dewar@adacore.com>
20466
20467         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20468
20469 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20470
20471         * g-socket.ads (Check_Selector): Minor rewording of comment.
20472
20473 2005-07-04  Vincent Celier  <celier@adacore.com>
20474
20475         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20476
20477 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20478
20479         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20480
20481 2005-07-04  Sergey Rybin  <rybin@adacore.com>
20482
20483         * gnat_ugn.texi: Add description of --eol gnatpp option
20484
20485 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20486             Thomas Quinot  <quinot@adacore.com>
20487
20488         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20489         if the user wants all calls of a subprogram to be flagged,
20490         independently of whether they are made from within the same unit or
20491         another unit.
20492         Mention restriction for pragma Linker_Alias on some platforms.
20493         Document pragma Linker_Constructor and Linker_Destructor.
20494         Rewrite documentation of Weak_External, Linker_Section and
20495         Linker_Alias pragmas.
20496
20497 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
20498
20499         * s-stausa.ads, s-stausa.adb: New files.
20500
20501 2005-06-30  Kelley Cook
20502
20503         * all files:  Update FSF address in copyright headers.
20504         * gen-soccon.co (main): Output new FSF address in generated files.
20505
20506 2005-06-28  Paul Brook  <paul@codesourcery.com>
20507
20508         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20509
20510 2005-06-14  Olivier Hainque  <hainque@adacore.com>
20511             Eric Botcazou  <ebotcazou@adacore.com>
20512
20513         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20514         exc_unwind, now that we are generating proper .debug_frame output for
20515         that target.
20516
20517         * tracebak.c: Remove the mips-irix section, as we are now using the
20518         s-mastop based unwinder again.
20519         Under SPARC/Solaris, take into account the stack bias to compute the
20520         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
20521         ABI.
20522
20523 2005-06-14  Doug Rupp  <rupp@adacore.com>
20524
20525         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20526
20527         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20528
20529 2005-06-14  Pascal Obry  <obry@adacore.com>
20530
20531         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20532         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20533         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20534         package name).
20535
20536         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20537         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20538         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20539         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20540         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20541         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20542         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20543         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20544         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20545         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20546         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20547         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20548         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20549         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20550         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20551         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20552         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20553         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20554         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20555         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20556         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20557         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20558         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20559         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20560         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20561         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20562         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20563         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20564         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20565         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20566         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20567         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20568         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20569         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20570         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20571         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20572         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20573         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20574         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20575         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20576         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20577         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20578         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20579         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20580         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20581         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20582         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20583         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20584         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20585         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20586         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20587         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20588         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20589         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20590         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20591         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20592         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20593         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20594         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20595         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20596         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20597         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20598         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20599         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20600         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20601         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20602         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20603         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20604         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20605         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20606         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20607         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20608         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20609         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20610         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20611         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20612         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20613         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20614         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20615         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20616         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20617         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20618         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20619         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20620         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20621         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20622         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20623         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20624         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20625         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20626         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20627         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20628         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20629         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20630         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20631         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20632         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20633         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20634         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20635         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20636         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20637         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20638         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20639         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20640         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20641         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20642         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20643         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20644         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20645         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20646         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20647         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20648         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20649         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20650         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20651         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20652         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20653         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20654         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20655         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20656         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20657         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20658         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20659         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20660         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20661         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20662         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20663         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20664         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20665         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20666         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20667         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20668         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20669
20670 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
20671             Arnaud Charlet  <charlet@adacore.com>
20672
20673         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20674         longer protected objects. They have been replaced by lower-level
20675         suspension objects made up by a mutex and a condition variable (or
20676         their equivalent given a particular OS) plus some internal data to
20677         reflect the state of the suspension object.
20678         (Initialize, Finalize): Add this initialization procedure for
20679         Suspension_Object, which is a controlled type.
20680         (Finalize): Add the finalization procedure for Suspension_Object,
20681         which is a controlled type.
20682
20683         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20684         Ada.Synchronous_Task_Control because there is no longer a need for a
20685         VxWorks specific version of this package. Target dependencies
20686         has been moved to System.Task_Primitives.Operations.
20687
20688         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20689         longer needed.
20690         (InitializeCriticalSection, EnterCriticalSection,
20691         LeaveCriticalSection, DeleteCriticalSection): Replace the type
20692         pCriticalSection by an anonymous access type so that we avoid problems
20693         of accessibility to local objects.
20694
20695         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20696         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20697         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20698         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20699         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20700         set the environment task mask here.
20701         (Current_State): Add this function that returns the state of the
20702         suspension object.
20703         (Set_False): Add this procedure that sets the state of the suspension
20704         object to False.
20705         (Set_True): Add this procedure that sets the state of the suspension
20706         object to True, releasing the task that was suspended, if any.
20707         (Suspend_Until_True): Add this procedure that blocks the calling task
20708         until the state of the object is True. Program_Error is raised if
20709         another task is already waiting on that suspension object.
20710         (Initialize): Add this procedure for initializing the suspension
20711         object. It initializes the mutex and the condition variable which are
20712         used for synchronization and queuing, and it sets the internal state
20713         to False.
20714         (Finalize): Add this procedure for finalizing the suspension object,
20715         destroying the mutex and the condition variable.
20716
20717         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20718         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20719         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20720         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20721         which provides a low-level abstraction (using operating system
20722         primitives) for Ada.Synchronous_Task_Control.
20723         This object is made up by a mutex (for ensuring mutual exclusion), a
20724         condition variable (for queuing threads until the condition is
20725         signaled), a Boolean (State) indicating whether the object is open,
20726         and a Boolean (Waiting) reflecting whether there is a task already
20727         suspended on this object.
20728
20729         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20730         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20731         s-intman-vms.ads, s-intman-mingw.adb,
20732         (Initialize_Interrupts): Removed, no longer used.
20733
20734         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20735         (Setup_Interrupt_Mask): New procedure.
20736
20737         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
20738
20739         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20740
20741         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20742         this is no longer done in the body of s-taprop
20743         (Server_Task): Explicitely test for Pending_Action in case
20744         System.Parameters.No_Abort is True.
20745
20746         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20747         is no longer done in the body of s-taprop
20748
20749 2005-06-14  Robert Dewar  <dewar@adacore.com>
20750
20751         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20752         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20753         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20754         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20755         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20756         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20757         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20758         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20759         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20760         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20761         system-linux-hppa.ads, system-vms_64.ads,
20762         system-vxworks-alpha.ads: Minor comment update for
20763         AI-362 (unit is Pure).
20764
20765         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20766         Add pragma Pure_05 for AI-362
20767         Make remaining conversion functions obsolescent in Ada 95
20768
20769         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20770         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20771         Add entries for a-wichun and a-zchuni
20772         Add a-widcha a-zchara for AI-395
20773         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20774
20775         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20776         Add entries for a-wichun.o and a-zchuni.o
20777         Entries for a-widcha.o and a-zchara.o
20778         Add entry for a-chacon.o
20779
20780         * a-ztenau.adb: Add with of Ada.Characters.Conversions
20781
20782         * a-chacon.ads, a-chacon.adb: New files.
20783
20784         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20785         categorization violations.
20786
20787         * a-strmap.ads: Add pragma Pure_05 for AI-362
20788         * a-strmap.ads: Add note on implicit categorization for AI-362
20789
20790         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20791
20792         * par-prag.adb: Dummy entry for pragma Persistent_BSS
20793         Set Ada_Version_Explicit, for implementation of AI-362
20794         Add processing for pragma Pure_05 and Preelaborate_05
20795         Add entry for Assertion_Policy pragma
20796
20797         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20798         when needed for proper processing of categorization stuff
20799
20800         * sem_cat.adb:
20801         For several cases, make errors in preealborate units warnings,
20802         instead of errors, if GNAT_Mode is set. For AI-362.
20803
20804         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20805         preelaborate unit is now warning if in GNAT mode
20806
20807         * s-stoele.ads: Document AI-362 for pragma preelaborate
20808
20809 2005-06-14  Doug Rupp  <rupp@adacore.com>
20810
20811         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20812         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20813         Default_Exception_Msg_Max_Length: new parameter.
20814
20815         * a-except.ads: (Exception_Msg_Max_Length): Set to
20816         System.Parameters.Default_Exception_Msg_Max_Length
20817         Add pragma Preelaborate_05 for AI-362
20818         Add warnings off to allow categorization violations for AI-362
20819
20820 2005-06-14  Vincent Celier  <celier@adacore.com>
20821
20822         * gnatsym.adb: Adapt to modification of package Symbols: procedure
20823         Process is now in package Processing.
20824
20825         * symbols.ads, symbols.adb:
20826         (Processing): New package, containing procedure Process
20827
20828         * symbols-vms-alpha.adb:
20829         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20830
20831         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20832         symbols-processing-vms-ia64.adb: New files.
20833
20834 2005-06-14  Pascal Obry  <obry@adacore.com>
20835
20836         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20837         implementation. This new version generates the proper DllMain routine
20838         to initialize the SAL. The DllMain is generated in Ada and compiled
20839         before being added as option to the library build command.
20840
20841 2005-06-14  Doug Rupp  <rupp@adacore.com>
20842             Pascal Obry  <obry@adacore.com>
20843
20844         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20845         call to decc$translate_vms.
20846         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20847         need to remove those quotes before catenating the filename.
20848         (__gnat_locate_exec_on_path): improvements to the Win32 section:
20849         * avoid allocating the memory twice for better efficiency;
20850         * allocate 32K buffer for environment expansion as suggested by MSDN;
20851         * prepend ".;" to the path so that current directory is searched too.
20852
20853 2005-06-14  Robert Dewar  <dewar@adacore.com>
20854
20855         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20856         instead of raising CE (AI-241)
20857         Add warnings off to allow categorization violations for AI-362
20858
20859 2005-06-14  Robert Dewar  <dewar@adacore.com>
20860
20861         * ali-util.adb, gnatbind.adb: Remove references to
20862         Force_RM_Elaboration_Order.
20863
20864         * switch-b.adb: Remove recognition of -f switch
20865
20866 2005-06-14  Pascal Obry  <obry@adacore.com>
20867
20868         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20869         implementation which is slightly more efficient.
20870
20871 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
20872             Javier Miranda  <miranda@adacore.com>
20873             Ed Schonberg  <schonberg@adacore.com>
20874             Hristian Kirtchev  <kirtchev@adacore.com>
20875
20876         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20877         allocator's designated type is a class-wide type, and compiling for
20878         Ada 2005, emit a run-time check that the accessibility level of the
20879         type given in the allocator's expression is not deeper than the level
20880         of the allocator's access type.
20881
20882         (Tagged_Membership): Modified to gives support to abstract interface
20883         types.
20884
20885         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20886         Access_Level.
20887         (Descendant_Tag): New predefined function
20888         (Is_Descendant_At_Same_Level): New predefined function
20889         (Get_Access_Level): New private function
20890         (Set_Access_Level): New private procedure
20891         (IW_Membership): New function. Given the tag of an object and the tag
20892         associated with an interface, evaluate if the object implements the
20893         interface.
20894         (Register_Interface_Tag): New procedure used to initialize the table of
20895         interfaces used by the IW_Membership function.
20896         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20897         of the dispatch table.
20898         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20899         table of interfaces of the parent.
20900         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20901         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20902         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20903         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20904         Ada 2005 semantics for the new predefined function.
20905
20906         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20907         call to Descendant_Tag rather than Internal_Tag.
20908         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20909         the accessibility level of the attribute's Item parameter is not deeper
20910         than the level of the attribute's prefix type. Tag_Error is raised if
20911         the check fails. The check is only emitted for Ada_05.
20912         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20913         requested stream attribute, use it.
20914         (Expand_N_Attribute_Reference): If the designated type is an interface
20915         then rewrite the referenced object as a conversion to force the
20916         displacement of the pointer to the secondary dispatch table.
20917         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20918         is a dereference of an object with a constrained partial view.
20919
20920         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20921         type is a class-wide type, emit a run-time check that the accessibility
20922         level of the returned object is not deeper than the level of the
20923         function's master (only when compiling for Ada 2005).
20924
20925         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20926         Action_Nb_Arg): Add entries for new Get_Access_Level and
20927         Set_Access_Level routines in these tables.
20928         (Make_DT): Generate a call to set the accessibility level of the
20929         tagged type in its TSD.
20930         (Make_DT): Code cleanup. The functionality of generating all the
20931         secondary dispatch tables has been moved to freeze_record_type.
20932         (Make_Abstract_Interface_DT): Minor code cleanup.
20933         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20934         this subprogram implements a new algorithm that provides the
20935         same functionality and it is more clear in case of primitives
20936         associated with abstract interfaces.
20937         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20938         clean up, the functionality of this subprogram is now provided
20939         by Set_All_DT_Position.
20940         (Write_DT): New subprogram: a debugging procedure designed to be called
20941         within gdb to display the dispatch tables associated with a tagged
20942         type.
20943         (Collect_All_Interfaces): New subprogram that collects the whole list
20944         of interfaces that are directly or indirectly implemented by a tagged
20945         type.
20946         (Default_Prim_Op_Position): New subprogram that returns the fixed
20947         position in the dispatch table of the default primitive operations.
20948         (Expand_Interface_Actuals): New subprogram to generate code that
20949         displaces all the actuals corresponding to class-wide interfaces to
20950         reference the interface tag of the actual object.
20951         (Expand_Interface_Conversion): New subprogram. Reference the base of
20952         the object to give access to the interface tag associated with the
20953         secondary dispatch table.
20954         (Expand_Interface_Thunk): New subprogram that generates the code of the
20955         thunk. This is required for compatibility with the C+ ABI.
20956         (Make_Abstract_Interface_DT): New subprogram that generate the
20957         declarations for the secondary dispatch tables associated with an
20958         abstract interface.
20959         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20960         attribute for each primitive operation covering interface subprograms
20961         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20962         These subprograms were upgraded to give support to abstract interfaces
20963
20964         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20965         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20966         RE_Set_Access_Level.
20967         (RE_Unit_Table): Add entries for new Ada.Tags operations.
20968         Add support to call the followig new run-time subprograms:
20969         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20970
20971         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20972         match its full declaration when both have an access definition with
20973         statically matching designated subtypes.
20974         (Analyze_Component_Declaration): Delete commented out code that was
20975         incorrectly setting the scope of an anonymous access component's type.
20976         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20977         an access discriminant when the containing type is nonlimited.
20978         (Make_Incomplete_Type_Declaration): Create an incomplete type
20979         declaration for a record type that includes self-referential access
20980         components.
20981         (Check_Anonymous_Access_Types): Before full analysis of a record type
20982         declaration, create anonymous access types for each self-referential
20983         access component.
20984         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20985         an access component in this context is a Local_Anonymous_Access, for
20986         proper accessibility checks.
20987         (Access_Definition): Set properly the scope of the anonymous access type
20988         created for a stand-alone access object.
20989         (Find_Type_Of_Object): An object declaration may be given with an access
20990         definition.
20991         (Complete_Subprograms_Derivation): New subprogram used to complete
20992         type derivation of private tagged types implementing interfaces.
20993         In this case some interface primitives may have been overriden
20994         with the partial-view and, instead of re-calculating them, they
20995         are included in the list of primitive operations of the full-view.
20996         (Build_Derived_Record_Type): Modified to give support to private
20997         types implemening interfaces.
20998         (Access_Definition): Reject ALL on anonymous access types.
20999         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
21000         type derivation to occur at a deeper accessibility level than the
21001         parent type.
21002         For the case of derivation within a generic body however, disallow the
21003         derivation if the derived type has an ancestor that is a formal type
21004         declared in the formal part of an enclosing generic.
21005         (Analyze_Object_Declaration): For protected objects, remove the check
21006         that they cannot contain interrupt handlers if not declared at library
21007         level.
21008         (Add_Interface_Tag_Components): New subprogram to add the tag components
21009         corresponding to all the abstract interface types implemented by a
21010         record type or a derived record type.
21011         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
21012         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
21013         Process_Full_View, Record_Type_Declaration): Modified to give
21014         support to abstract interface types
21015         (Collect_Interfaces): New subprogram that collects the list of
21016         interfaces that are not already implemented by the ancestors
21017         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
21018         when partial view has no discriminants and full view has defaults.
21019         (Constrain_Access): Reject a constraint on a general access type
21020         if the discriminants of the designated type have defaults.
21021         (Access_Subprogram_Declaration): Associate the Itype node with the inner
21022         full-type declaration or subprogram spec. This is required to handle
21023         nested anonymous declarations.
21024         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
21025         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
21026         Process_Full_View, Record_Type_Declaration): Modified to give
21027         support to abstract interface types
21028         (Derive_Subprograms): Addition of a new formal to indicate if
21029         we are in the case of an abstact-interface derivation
21030         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
21031         to the specification because it is requied to analyze all the
21032         identifiers found in a list of interfaces
21033
21034         * debug.adb: Complete documentation of flag "-gnatdZ"
21035
21036         * exp_ch3.adb: Implement config version of persistent_bss pragma
21037         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
21038         testing for TSS presence to properly enforce visibility rules.
21039         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
21040         Make_Abstract_Interfaces_DT to generate the secondary tables
21041         associated with abstract interfaces.
21042         (Build_Init_Procedure): Modified to initialize all the tags
21043         corresponding.
21044         (Component_Needs_Simple_Initialization): Similar to other tags,
21045         interface tags do not need initialization.
21046         (Freeze_Record_Type): Modified to give support to abstract interface
21047         types.
21048         (Expand_N_Object_Declaration): Do not generate an initialization for
21049         a scalar temporary marked as internal.
21050
21051         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
21052         in-out parameter that is a component in an initialization procedure,
21053         whose constraint might depend on discriminants, and that may be
21054         misaligned because of packing or representation clauses.
21055         (Is_Legal_Copy): New predicate to determine whether a possibly
21056         misaligned in-out actual can actually be passed by copy/return. This
21057         is an error in case the type is by_reference, and a warning if this is
21058         the consequence of a DEC import pragma on the subprogram.
21059         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
21060         interface types
21061         (Expand_Inlined_Call): Mark temporary generated for the return value as
21062         internal, so that no useless scalar normalization is generated for it.
21063         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
21064         null procedure can always be inlined.
21065         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
21066         procedure, generate an explicit empty body for it.
21067
21068         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
21069         Given a type implementing an interface, returns the corresponding
21070         access_disp_table value.
21071         (Find_Interface_Tag): New subprogram. Given a type implementing an
21072         interface, returns the record component containing the tag of the
21073         interface.
21074         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
21075         previous ones that return the corresponding tag and access_disp_table
21076         entities.
21077         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
21078         is a predefined primitive operation.
21079         (Expand_Subtype_From_Expr): If the expression is a selected component
21080         within an initialization procedure, compute its actual subtype, because
21081         the component may depend on the discriminants of the enclosing record.
21082
21083         * i-cpp.ads, i-cpp.adb:
21084         This package has been left available for compatibility with previous
21085         versions of the frontend. As part of the new layout this is now a
21086         dummy package that uses declarations available at a-tags.ads
21087
21088         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
21089         "constant access" and "aliased [constant] access" when not compiling
21090         with -gnat05.
21091         Suppress Ada 2005 keyword warning if -gnatwY used
21092         (P_Identifier_Declarations): Add support for object declarations with
21093         access definitions.
21094         (Private_Extension_Declaration): Complete the documentation
21095         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
21096         attribute in case of private extension declaration
21097         (P_Type_Declaration): Mark as "abstract" the type declarations
21098         corresponding with protected, synchronized and task interfaces
21099         (P_Declarative_Items): "not" and "overriding" are overriding indicators
21100         for a subprogram or instance declaration.
21101
21102         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
21103         instantiation that is a dispatching operation has controlling access
21104         parameters that are null excluding.
21105         Save and restore Ada_Version_Explicit, for implementation of AI-362
21106         (Validate_Derived_Type_Instance): Add check for abstract interface
21107         types.
21108         (Analyze_Formal_Package): Establish Instantiation source for the copy of
21109         the generic that is created to represent the formal package.
21110         (Analyze_Package_Instantiation): Instantiate body immediately if the
21111         package is a predefined unit that contains inlined subprograms, and
21112         we are compiling for a Configurable_Run_Time.
21113         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
21114         If the program has a null default, generate an empty body for it.
21115
21116         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
21117         error message condition, null procedures are correctly detected now.
21118         (New_Overloaded_Entity): Bypass trivial overriding indicator check
21119         for subprograms in the context of protected types. Instead, the
21120         indicator is examined in Sem_Ch9 while analysing the subprogram
21121         declaration.
21122         (Check_Overriding_Indicator): Check consistency of overriding indicator
21123         on subprogram stubs as well.
21124         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
21125         the library level.
21126         (Analize_Subprogram_Specification): When analyzing a subprogram in which
21127         the type of the first formal is a concurrent type, replace this type
21128         by the corresponding record type.
21129         (Analyze_Subprogram_Body): Undo the previous work.
21130         (Analyze_Procedure_Call): If the call has the form Object.Op, the
21131         analysis of the prefix ends up analyzing the call itself, after which
21132         we are done.
21133         (Has_Interface_Formals): New subprogram subsidiary to analyze
21134         subprogram_specification that returns true if some non
21135         class-wide interface subprogram is found
21136         (New_Overloaded_Entity): Modified to give support to abstract
21137         interface types
21138         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
21139         access to subprograms must be recursive.
21140         (Is_Unchecked_Conversion): Improve the test that recognizes
21141         instantiations of Unchecked_Conversion, and allows them in bodies that
21142         are to be inlined by the front-end. When the body comes from an
21143         instantiation, a reference to Unchecked_Conversion will be an
21144         Expanded_Name, even though the body has not been analyzed yet.
21145         Replace Is_Overriding and Not_Overriding in subprogram_indication with
21146         Must_Override and Must_Not_Override, to better express intent of AI.
21147         (Analyze_Subprogram_Body): If an overriding indicator is given, check
21148         that it is consistent with the overrinding status of the subprogram
21149         at this point.
21150         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
21151         always inlined.
21152         If the subprogram is a null procedure, indicate that it does not need
21153         a completion.
21154
21155         * sem_disp.adb (Check_Controlling_Type): Give support to entities
21156         available through limited-with clauses.
21157         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
21158         allowed as the last primitive of a tagged type if it has no previous
21159         spec.
21160         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
21161         to give support to abstract interface types
21162
21163         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
21164         in the case where the target type is an anonymous access type of an
21165         object or component (that is, when Is_Local_Anonymous_Access is true).
21166         Prevent the special checks for conversions of access discriminants in
21167         the case where the discriminant belongs to a nonlimited type, since
21168         such discriminants have their accessibility level defined in the same
21169         way as a normal component of an anonymous access type.
21170         (Resolve_Allocator): When an allocator's designated type is a class-wide
21171         type, check that the accessibility level of type given in the
21172         allocator's expression or subtype indication is not statically deeper
21173         than the level of the allocator's access type.
21174         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
21175         name in a discriminant constraint of a record component.
21176         (Resolve_Explicit_Dereference): Do not check whether the type is
21177         incomplete when the dereference is a use of an access discriminant in
21178         an initialization procedure.
21179         (Resolve_Type_Conversion): Handle conversions to abstract interface
21180         types.
21181         (Valid_Tagged_Conversion): The conversion of a tagged type to an
21182         abstract interface type is always valid.
21183         (Valid_Conversion): Modified to give support to abstract interface types
21184         (Resolve_Actuals): Enable full error reporting on view conversions
21185         between unrelated by_reference array types.
21186         The rule for view conversions of arrays with aliased components is
21187         weakened in Ada 2005.
21188         Call to obsolescent subprogram is now considered to be a violation of
21189         pragma Restrictions (No_Obsolescent_Features).
21190         (Check_Direct_Boolean_Operator): If the boolean operation has been
21191         constant-folded, there is nothing to check.
21192         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
21193         check on possible violation of restriction No_Direct_Boolean_Operators
21194         until after expansion of operands, to prevent spurious errors when
21195         operation is constant-folded.
21196
21197         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
21198         Has_Compatible_Type): Modified to give support to abstract interface
21199         types.
21200         (Interface_Present_In_Ancestor): New function to theck if some ancestor
21201         of a given type implements a given interface
21202
21203         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
21204         prefix is a parameterless function that returns an access_to_procedure.
21205         (Transform_Object_Operation): Handle properly function calls of the
21206         form Obj.Op (X), which prior to analysis appear as indexed components.
21207         (Analyze_One_Call): Complete the error notification to help new Ada
21208         2005 users.
21209         (Analyze_Allocator): For an allocator without an initial value, where
21210         the designated type has a constrained partial view, a discriminant
21211         constraint is illegal.
21212
21213 2005-06-14  Robert Dewar  <dewar@adacore.com>
21214
21215         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
21216         do with treatment of Set_Col when positioned at end of line character.
21217
21218 2005-06-14  Robert Dewar  <dewar@adacore.com>
21219
21220         * atree.adb: (Elist*): Protect against uninitialized field
21221
21222 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21223
21224         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
21225         for an attribute reference that returns an access type.
21226         (Apply_Discriminant_Check): No need for check if (designated) type has
21227         constrained partial view.
21228
21229         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
21230         both bound checks, rather than a conjunction.
21231         (Insert_Valid_Check): If the expression is an actual that is an indexed
21232         component of a bit-packed array, force expansion of the packed element
21233         reference, because it is specifically inhibited elsewhere.
21234
21235 2005-06-14  Vincent Celier  <celier@adacore.com>
21236
21237         * clean.adb (Clean_Project): Correctly delete executable specified as
21238         absolute path names.
21239
21240         * make.adb (Gnatmake): Allow relative executable path names with
21241         directory information even when project files are used.
21242         (Change_To_Object_Directory): Fail gracefully when unable to change
21243         current working directory to object directory of a project.
21244         (Gnatmake): Remove exception handler that could no longer be exercized
21245         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
21246         may be deallocated by Normalize_Arguments.
21247         (Collect_Arguments): Eliminate empty arguments
21248
21249         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
21250         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
21251         (Check_Project): Return False when Project is No_Project. Return True
21252         when All_Projects is True.
21253         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
21254         All_Projects to True.
21255         Minor reformatting
21256
21257 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21258             Javier Miranda  <miranda@adacore.com>
21259             Thomas Quinot  <quinot@adacore.com>
21260             Robert Dewar  <dewar@adacore.com>
21261             Hristian Kirtchev  <kirtchev@adacore.com>
21262             Gary Dismukes  <dismukes@adacore.com>
21263
21264         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
21265         anonymous access types, to indicate that the accessibility level of
21266         the type is determined by that of the enclosing declaration.
21267         (Has_Persistent_BSS): New flag
21268         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
21269         of this attribute with functions.
21270         (Is_Primitive_Wrapper): Remove the barrier.
21271         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
21272         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
21273         New subprograms.
21274         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
21275         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
21276         New subprograms.
21277         (Is_Pure_Unit_Access_Type): New flag
21278         (Abstract_Interfaces): Complete the assertion to cover all usages.
21279         (Set_Is_Interface): Complete the assertion to cover all usages.
21280         (Is_Primitive_Wrapper): New attribute.
21281         (Is_Obsolescent): Now applies to all entities (though it is only set
21282         for subprograms currently)
21283         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
21284         which solves various problems concerning access subtypes.
21285         (Has_Persistent_BSS): New flag
21286         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
21287         Remove these subprograms because this attribute is currently
21288         not used.
21289         New entity flags:
21290         Has_Specified_Stream_Input (Flag190)
21291         Has_Specified_Stream_Output (Flag191)
21292         Has_Specified_Stream_Read (Flag192)
21293         Has_Specified_Stream_Write (Flag193)
21294         Present in all type and subtype entities. Set for a given view if the
21295         corresponding stream-oriented attribute has been defined by an
21296         attribute definition clause. When such a clause occurs, a TSS is set
21297         on the underlying full view; the flags are used to track visibility of
21298         the attribute definition clause for partial or incomplete views.
21299         (Is_Pure_Unit_Access_Type): New flag
21300         Clarify use of Is_Internal.
21301         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
21302         internally generated to wrap the invocation of tasks and protected
21303         types that implement interfaces.
21304         (Implementation_Base_Type): Documentation correction
21305         (Is_Obsolescent): Now applies to all entities (though it is only set
21306         for subprograms currently)
21307         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
21308         which solves various problems concerning access subtypes.
21309
21310         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
21311         for examined parameters. Identify unequal parameter list lengths as
21312         non-conformant parameters.
21313         (Overriding_Possible): Do not check for "All" qualifier in declaration
21314         of controlling access parameter, following prescription of AI-404.
21315         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
21316         that build the procedure body that wraps an entry invocation
21317         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
21318         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
21319         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
21320         give support to abstract interface types
21321
21322         * freeze.adb (Freeze_Entity): Issue error message if
21323         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21324         type has no storage pool (Ada 2005) AI-366.
21325         Also modified to give support to abstract interface types
21326         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21327         Inline_Always pragma.
21328
21329         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21330         now begin an entry declaration.
21331         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21332         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21333         a subprogram declaration preceded by an overriding indicator.
21334         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21335         declarations or subprogram declarations preceded by reserved words
21336         "not" or "overriding".
21337         (P_Entry_Declaration): Update comment. Parse and check overriding
21338         indicator, set semantic flags of entry declarations.
21339         (P_Task): New error message in case of private applied
21340         to a task type declaration.
21341         (P_Protected): New error message in case of private applied
21342         to a task type declaration.
21343
21344         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21345         in which the full view of a type implementing an interface is a
21346         concurrent type.
21347         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21348         Declare_Inherited_Private_Subprograms): If an explicit operation
21349         overrides an operation that is inherited in the private part, mark the
21350         explicit one as overriding, to enable overriding indicator checks.
21351         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21352         full view to partial view, to simplify handling in back-end.
21353
21354         * sprint.adb: Print interface lists where needed: derived types,
21355         protected types, task types.
21356         output "is null" for null procedures. Part of implementation of
21357
21358         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21359         relaxation of rules for access types in pure, shared passive partitions.
21360
21361         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21362         first read discriminants into temporary objects, performing checks on
21363         the read values, then possibly performing discriminant checks on the
21364         actual (if it is constrained), and only finally reading the components
21365         into a constrained temporary object.
21366         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21367         case of reading discriminants of a mutable record type to recognize
21368         the new form of the code generated by
21369         Build_Mutable_Record_Read_Procedure.
21370
21371         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21372         of a simple call to Make_TSS_Name.
21373         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21374         buffer, in order for Is_TSS to work correctly on local TSS names.
21375
21376         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21377         Is_Local_Anonymous_Access to check legaliy of attributes in the
21378         context of  access components and stand-alone access objects.
21379         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21380         treated as available for a limited private type if there is an
21381         attribute_definition_clause that applies to its full view, but not in
21382         other cases where the attribute is available for the full view
21383         (specifically, the sole fact that the full view is non-limited does not
21384         make the attribute available for the partial view).
21385         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21386         non-overloaded intrinsic subprogram.
21387         (Check_Stream_Attribute): Reject an attribute reference for an
21388         unavailable stream attribute even if the prefix is not a limited type
21389         (case of a 'Input attribute reference for an abstract, non-classwide
21390         type)
21391         (Stream_Attribute_Available): New function to determine whether a stream
21392         attribute is available at a place.
21393         (Check_Attribute): Use Stream_Attribute_Available instead of just
21394         testing for TSS presence on the implementation base type.
21395         (Analyze_Attribute): Modified to give support to task interfaces.
21396         (Analyze_Access_Attribute): Add error check for use of an Access (or
21397         Unrestricted_Access) attribute with a subprogram marked as
21398         Inline_Always.
21399         (Analyze_Attribute, case Attribute_Address): Add error check for use of
21400         an Address attribute with a subprogram marked as Inline_Always.
21401         Update Eval_Attribute to handle new value of Width from AI-395
21402
21403         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21404         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21405         Factor common code across the stream-oriented attribute circcuits into
21406         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21407         processing is functionally identical to the previous duplicated one,
21408         except that an expression that denotes an abstract subprogram will now
21409         be rejected, as mandated by AI-195 item 5.
21410
21411         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21412         Is_Local_Anonymous_Access to apply accessibility checks to access
21413         components and stand-alone access objects.
21414         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21415         elsewhere.
21416         (Is_Potentially_Persistent_Type): New function
21417         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21418         a heap-object whose type has a constrained partial view, the object is
21419         unconstrained and the component may depend on a discriminant, making its
21420         renaming illegal.
21421
21422         * sinfo.ads, sinfo.adb
21423         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21424         (Must_Override): Flag applicable to N_Entry_Declaration.
21425         Indicate that interface_list can appear in single task and single
21426         protected declarations.
21427         Replace Is_Overriding and Not_Overriding with Must_Override and
21428         Must_Not_Override, to better express intent of AI.
21429         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21430         of an overriding indicator in a subprogram or instance.
21431         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21432         Add the overriding indicator [[not] overriding] construct to the
21433         following grammar productions:
21434          ENTRY_DECLARATION
21435          GENERIC_INSTANTIATION
21436          SUBPROGRAM_SPECIFICATION
21437
21438         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21439         can start with an overriding indicator.
21440
21441         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21442         flags accordingly on subrogram specifications or instances.
21443
21444         * sem_ch8.adb:
21445         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21446         overriding_indicator, if present, is consistent with status of spec.
21447         Improve error message for null-excluding checks on controlling access
21448         parameters.
21449         (Check_In_Previous_With_Clause): Protect the frontend against
21450         previously reported critical errors in the context clauses.
21451         Save and restore Ada_Version_Explicit, for implementation of AI-362
21452         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21453         operation verify that controlling formals of the renamed entity that
21454         are access parameters are explicitly non-null.
21455         (Find_Expanded_Name): Improve error message when prefix is an illegal
21456         reference to a private child unit.
21457
21458         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21459         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21460         Rewrite to correspond to new wide character names in AI-395
21461
21462         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21463         default procedures.
21464
21465 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21466             Robert Dewar  <dewar@adacore.com>
21467
21468         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21469         code, not on the bodies of predefined operations, to cut down on
21470         spurious noise.
21471
21472 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21473
21474         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21475         be expanded in place. The size computation does not require a
21476         subtraction, which would raise an exception on a compiler built with
21477         assertions when the upper bound is Integer'first.
21478         (Flatten): For an array of composite components, take into account the
21479         size of the components to determine whether it is safe to expand the
21480         array into a purely positional representation.
21481
21482 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21483
21484         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21485         denoting a formal parameter into account.
21486
21487 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21488
21489         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21490         the entry_call alternative of a conditional entry call, wrap the
21491         conditional entry call itself.
21492
21493 2005-06-14  Nicolas Setton  <setton@adacore.com>
21494             Ed Schonberg  <schonberg@adacore.com>
21495
21496         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21497         the "simple_choice" member in a variant record, in accordance with the
21498         description in the package spec: the information output for a constant
21499         should be "S number", not "SS number".
21500         (Get_Encoded_Name): Return at once if not generating code. Avoids name
21501         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21502
21503 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21504
21505         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21506         RACW without any primitives, do not generate the if statement for
21507         dispatching by name in the PolyORB/DSA case, as it would be malformed
21508         (it would have an Elsif_Parts list that is not No_List, but with a
21509         length of 0).
21510
21511 2005-06-14  Robert Dewar  <dewar@adacore.com>
21512
21513         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21514
21515 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
21516
21517         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21518         can determine whether pragma Suppress_Exception_Locations is in effect.
21519
21520         * utils2.c (build_call_raise): Do not pass the file name to the
21521         exception handler if pragma Suppress_Exception_Locations is in effect.
21522         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21523
21524 2005-06-14  Emmanuel Briot  <briot@adacore.com>
21525
21526         * g-debpoo.adb (Deallocate, Dereference): Improve output.
21527
21528 2005-06-14  Nicolas Roche  <roche@adacore.com>
21529
21530         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21531         to ""
21532         (Next_Level): Fix minor bug in handling of ../dir case
21533         (Read): Add dir separator to Directory name so that "" is understood as
21534          "/"
21535
21536 2005-06-14  Pascal Obry  <obry@adacore.com>
21537
21538         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21539         releasing the items.
21540
21541 2005-06-14  Vincent Celier  <celier@adacore.com>
21542             Cyrille Comar  <comar@adacore.com>
21543
21544         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21545         with output file descriptor and with output file name.
21546         (Dup, Dup2): Now global procedures as they are used by two subprograms
21547         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21548
21549 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21550
21551         PR ada/6717
21552         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21553         broadcast address.
21554         (Create_Selector): Bind listening socket used to create the signalling
21555         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21556         Set listen backlog to 1 to ensure that we detect socket theft by a
21557         failure of our own connect(2) call.
21558         (Check_Selector): Improve documentation of the selector mechanism.
21559         (Broadcast_Inet_Addr): New constant.
21560
21561 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21562
21563         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21564         type which turns out to be an incomplete and incorrect fix.
21565         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21566         of the type is declared in a record (for determination of insertion
21567         type).
21568         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21569         a private type and ensure that the primary entity is used for the type
21570         of the newly created function's V formal by taking the Etype of the
21571         view.
21572
21573 2005-06-14  Javier Miranda  <miranda@adacore.com>
21574             Jose Ruiz  <ruiz@adacore.com>
21575             Robert Dewar  <dewar@adacore.com>
21576             Ed Schonberg  <schonberg@adacore.com>
21577
21578         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21579         that indicates if we are parsing a compilation unit found in a
21580         limited-with clause.
21581         It is use to avoid the circularity check.
21582
21583         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21584         we are parsing a compilation unit found in a limited-with clause. This
21585         is use to avoid the circularity check.
21586
21587         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21588         unit as a consequence of parsing a limited-with clause. This is used
21589         to avoid the circularity check.
21590
21591         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21592         (Analyze_Context): Limited-with clauses are now allowed
21593         in more compilation units.
21594         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21595         againts previously reported critical errors in context clauses
21596         (Install_Limited_Withed_Unit): Code cleanup plus static detection
21597         of two further errors: renamed subprograms and renamed packages
21598         are not allowed in limited with clauses.
21599         (Install_Siblings): Do not install private_with_clauses on the package
21600         declaration for a non-private child unit.
21601         (Re_Install_Parents): When a parent of the subunit is reinstalled,
21602         reset visibility of child units properly.
21603         (Install_Withed_Unit): When a child unit appears in a with_clause of its
21604         parent, it is immediately visible.
21605
21606 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21607             Emmanuel Briot  <briot@adacore.com>
21608
21609         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21610         declared within an inlined body as referenced, to prevent spurious
21611         warnings.
21612         (Output_One_Ref): If an entity renames an array component, indicate in
21613         the ALI file that this aliases (renames) the array. Capture as well
21614         function renamings that rename predefined operations.
21615         Add information about generic parent for package and subprogram
21616         instances.
21617         (Get_Type_Reference): For a subtype that is the renaming of an actual in
21618         an instantiation, use the first_subtype to ensure that we don't generate
21619         cross-reference information for internal types.
21620         For objects and parameters of a generic private type, retain the '*'
21621         indicator to distinguish such an entity from its type.
21622
21623         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21624         to store information about instantiated entities.
21625
21626         * ali.adb (Scan_ALI): Add support for parsing the reference to the
21627         generic parent
21628
21629         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21630         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21631         information.
21632
21633 2005-06-10  Doug Rupp  <rupp@adacore.com>
21634             Arnaud Charlet  <charlet@adacore.com>
21635             Olivier Hainque  <hainque@adacore.com>
21636             Jose Ruiz  <ruiz@adacore.com>
21637
21638         * Make-lang.in: Add initialize.o when needed.
21639         Remove obsolete references to RT_FLAGS.
21640         Add missing dependencies for sdefault.o
21641
21642         * initialize.c: New file.
21643
21644         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21645         [VMS] cond_signal_table: Fix problem in declaration.
21646         [VMS] __gnat_error_handler: rewrite.
21647         Move all __gnat_initialize() routines to initialize.c
21648         Specialize the former "hpux" section to "hppa hpux", as this is what the
21649         section really is here for and we now have other hpux ports that need
21650         different contents.
21651         (__gnat_adjust_context_for_raise) i386-linux: First version of this
21652         function for this target. Adjust PC by one in the machine context. This
21653         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21654         it is more reliable to do that in the signal handler itself.
21655         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21656         flags, so that the handler is passed the context structure to adjust
21657         prior to the raise.
21658         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21659         SA_SIGINFO sigaction should look like. Call
21660         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21661         Machine_State_Operations stuff.
21662         Add conditional code so that the x86_64 is also supported.
21663
21664 2005-06-14  Pascal Obry  <obry@adacore.com>
21665
21666         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21667         the library name.
21668
21669 2005-06-14  Robert Dewar  <dewar@adacore.com>
21670
21671         * opt.ads, opt.adb: New flags for persistent_bss mode
21672         Add Ada_Version_Explicit, for implementation of AI-362
21673         Add Assertions_Enabled_Config and associated handling
21674         Needed since setting can be changed with Assertion_Policy pragma
21675         Add new flag Warn_On_Ada_2005_Compatibility
21676
21677         * switch-c.adb: Recognize -gnatwy/Y
21678         Set Ada_Version_Explicit, for implementation of AI-362
21679         The -gnatg switch now includes -gnatyu
21680
21681         * usage.adb: Add -gnatwy/Y
21682         Remove wrong asterisk on -gnatwX line
21683         Add line for -gnatyu switch
21684
21685 2005-06-14  Vincent Celier  <celier@adacore.com>
21686
21687         * osint.adb (Add_Default_Search_Dirs): Put source and object
21688         directories of project files before directories coming from
21689         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21690
21691 2005-06-14  Robert Dewar  <dewar@adacore.com>
21692
21693         PR ada/15613
21694         * par-ch2.adb (Scan_Pragma_Argument): New procedure
21695         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21696
21697 2005-06-14  Vincent Celier  <celier@adacore.com>
21698
21699         * prep.adb (Preprocess): Ignore error when scanning the first token of
21700         a line.
21701
21702 2005-06-14  Vincent Celier  <celier@adacore.com>
21703
21704         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21705         (Check_Stand_Alone_Library): If the specified reference symbol file does
21706         not exist, only issue a warning when the symbol policy is not
21707         Controlled. And, when symbol policy is Compliant, set the symbol
21708         policy to Autonomous.
21709
21710 2005-06-14  Vincent Celier  <celier@adacore.com>
21711
21712         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21713         when the project file in a with clause is not the last one, that is the
21714         project file name is followed by a comma.
21715         * prj-pp.adb: (First_With_In_List): New Boolean global variable
21716         (Print): Issue list of project files separated by commas in with clauses
21717         according to the values returned by Is_Not_Last_In_List.
21718         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21719         (Set_Is_Not_Last_In_List): New procedure
21720
21721 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
21722
21723         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21724
21725 2005-06-14  Robert Dewar  <dewar@adacore.com>
21726
21727         * scng.adb: Add call to new Check_EOF routine
21728         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21729         Add some comments regarding wide character handling
21730
21731         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21732
21733         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21734
21735         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21736         characters are now considered graphic characters and hence yield false
21737         in this call.
21738
21739         * nmake.adt: Modify header so that xnmake does not generate output
21740         files with multiple blank lines.
21741
21742         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21743         not have an extra blank line
21744
21745 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21746
21747         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21748         expression when the component type is an anonymous access type to
21749         ensure that appropriate accessibility checks are done.
21750
21751         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21752         expression of an assignment when the target object is of an anonymous
21753         access type. This ensures that required accessibility checks are done.
21754         (One_Bound): Move the check for type Universal_Integer to
21755         Process_Bounds.
21756         (Process_Bounds): Check whether the type of the preanalyzed range is
21757         Universal_Integer, and in that case set Typ to Integer_Type prior
21758         to setting the type of the original range and the calls to One_Bound.
21759
21760 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21761
21762         * sem_case.adb (Expand_Others_Choice): Improve warning.
21763
21764 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21765
21766         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21767         constraint of full view if present, when other type is discriminated.
21768         (Eval_Relational_Op): Recognize tests of pointer values against Null,
21769         when the pointer is known to be non-null, and emit appropriate warning.
21770
21771 2005-06-14  Robert Dewar  <dewar@adacore.com>
21772             Ed Schonberg  <schonberg@adacore.com>
21773
21774         PR ada/10671
21775         * sem_prag.adb: Implement pragma Persistent_BSS
21776         Remove obsolete pragma Persistent_Data, Persistent_Object
21777         Set Ada_Version_Explicit, for implementation of AI-362
21778         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21779         Add processing for pragma Pure_05 and Preelaborate_05
21780         Add processing for Assertion_Policy pragma
21781         Add pragma identifiers for Assert
21782         (Analyze_Pragma, case Assert): Check number of arguments
21783         (Process_Inline): Additional guard against an illegal program, where the
21784         argument of the pragma is undefined, and warnings on redundant
21785         constructs are enabled.
21786         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21787         Ada_05 to this pragma, specifying that the pragma is only active in
21788         Ada_05 mode.
21789         (Check_Arg_Order): New procedure
21790         Add appropriate calls to this procedure throughout
21791         Also throughout, check entity name before doing any other checks
21792
21793         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21794         Remove obsolete pragma Persistent_Data, Persistent_Object
21795         Add entries for pragma Pure_05 and Preelaborate_05
21796         Add entries for Assertion_Policy pragma and associated names
21797         Add some names for pragma argument processing
21798
21799         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21800
21801 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21802
21803         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21804         appears within a negation (either from source or as a rewriting of
21805         inequality) adjust text of warning accordingly.
21806
21807 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21808
21809         * s-strxdr.adb: Follow AI95-00132
21810
21811 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21812
21813         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21814
21815 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21816             Jose Ruiz  <ruiz@adacore.com>
21817
21818         * s-tposen.adb, s-tpobop.adb
21819         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21820         the exception id.
21821         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21822         there is no violation of the Max_Entry_Queue_Length restriction (if it
21823         has been set); Program_Error is raised otherwise.
21824         (Requeue_Call): Before requeuing the task on the target entry queue we
21825         check that there is no violation of the Max_Entry_Queue_Length
21826         restriction (if it has been set); Program_Error is raised otherwise.
21827
21828 2005-06-14  Robert Dewar  <dewar@adacore.com>
21829
21830         * styleg.adb: Fix several remaining problems in -gnatyu switch
21831         Blank line count not reset at start
21832         Scanning outside source buffer in some cases
21833         Confusing message for blanks at end of file
21834         Non-empty blank lines not recognized
21835
21836         * nmake.adt: Modify header so that xnmake does not generate output
21837         files with multiple blank lines.
21838
21839         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21840         not have an extra blank line
21841
21842 2005-06-14  Sergey Rybin  <rybin@adacore.com>
21843
21844         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21845
21846 2005-06-14  Doug Rupp  <rupp@adacore.com>
21847             Vincent Celier  <celier@adacore.com>
21848
21849         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21850         Update copyright.
21851
21852         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21853         Remove "Library" command.
21854         Change keyword for style check -gnatyd from NOCRLF to
21855         DOS_LINE_ENDINGS.
21856         Remove useless second style check keyword NONE
21857         Remove help documentation for inexistent style check keyword
21858         RM_COLUMN_LAYOUT.
21859         Add help documentation for style check keywords DOS_LINE_ENDINGS,
21860         UNNECESSARY_BLANK_LINES and XTRA_PARENS
21861         Add UNNECESSARY_BLANK_LINES for -gnatyu
21862         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21863
21864         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21865
21866 2005-06-14  Vincent Celier  <celier@adacore.com>
21867
21868         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21869         gprmake was invoked with -d.
21870         (Compile_Sources): If -d was used, output the "completed ..." message
21871         for each compilation.
21872         (Scan_Arg): Recognize new switch -d
21873         When -c and at least one main is specified, set
21874         Unique_Compile to True to guarantee that no other sources will be
21875         compiled.
21876
21877 2005-06-14  Matthew Heaney  <heaney@adacore.com>
21878
21879         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21880         * a-swuwha.ads, a-swuwha.adb: New files
21881
21882         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21883         * a-szuzha.ads, a-szuzha.adb: New files.
21884
21885         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21886         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21887         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21888         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21889         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21890         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21891         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21892         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21893         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21894         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21895         Ada 2005 RM.
21896
21897 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
21898             Olivier Hainque  <hainque@adacore.com>
21899             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21900             Pascal Obry  <obry@adacore.com>
21901
21902         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21903
21904         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21905         making a temporary around a procedure call because of non-addressable
21906         actual parameter.
21907         (process_freeze_entity): If entity is a private type, capture size
21908         information that may have been computed for the full view.
21909         (tree_transform, case N_Allocator): If have initializing expression,
21910         check type for Has_Constrained_Partial_View and pass that to
21911         build_allocator.
21912         (tree_transform, case N_Return_Statement): Pass extra arg to
21913         build_allocator.
21914
21915         * decl.c (annotate_value): Remove early return if -gnatR is not
21916         specified.
21917         (gnat_to_gnu_field): Don't make a packable type for a component clause
21918         if the position is byte aligned, the field is aliased, and the clause
21919         size isn't a multiple of the packable alignment. It serves no useful
21920         purpose packing-wise and would be rejected later on.
21921         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21922
21923         PR ada/20515
21924         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21925         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21926         instead.
21927         (create_concat_name): Idem.
21928
21929 2005-06-10  Robert Dewar  <dewar@adacore.com>
21930             Eric Botcazou  <ebotcazou@adacore.com>
21931             Ben Brosgol  <brosgol@adacore.com>
21932             Cyrille Comar  <comar@adacore.com>
21933             Sergey Rybin  <rybin@adacore.com>
21934             Pascal Obry  <obry@adacore.com>
21935
21936         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21937         Document second argument (Ada_05) of pragma Obsolescent
21938         Add note that call to subprogram marked with pragma Obsolescent
21939         is now considered to be a violation of program Restrictions
21940         (No_Obsolescent_Features).
21941         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21942         that only machine-dependent attributes are supported.
21943
21944         * gnat_ugn.texi:
21945         Commented out menu lines and empty section for gnatclean examples
21946         Document -gnatwy/Y
21947         Fix some over long lines
21948         Clarify and enhance documentation of ADA_PROJECT_PATH.
21949         Rework section 2.11.2(3) about linking with a non-GNU compiler.
21950         Mention new switch -fcallgraph-info.
21951         Mention new switch -fstack-usage.
21952         For gnatpp, replace '-notab' with '-N' and add this option to Index
21953         Corrected VMS example.
21954         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21955         Minor reformatting
21956         Add documentation for -gnatyu switch (unnecessary blank lines)
21957         Document new switch -U for GNAT PRETTY and GNAT METRIC
21958         Add note about Stdcall being handled as C convention on non Windows OS.
21959         Remove some junk typo in description of gnatbind -S switch
21960         Remove reference to Extensions_Allowed pragma
21961         Document the new order of the directories to be searched (source and
21962         object directories of project files before directories in ADA_*_PATH
21963         environment variables.
21964
21965         * g-trasym.ads: Document that IRIX is supported
21966
21967 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
21968
21969         * Makefile.in: Add initialize.o when needed.
21970         Adapt to new VMS package body Symbols and subunits
21971         No specialized version of a-sytaco is needed for VxWorks.
21972
21973         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21974         * a-zchara.ads, a-widcha.ads: New files.
21975
21976         * system-hpux-ia64.ads: New file.
21977
21978         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21979         is imported from the VxWorks kernel.
21980
21981 2005-06-14  Robert Dewar  <dewar@adacore.com>
21982
21983         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21984         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21985         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21986         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21987         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21988         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21989         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21990         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21991         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21992         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21993         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21994         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21995
21996 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21997
21998         * xeinfo.adb: Fix typo in comment
21999
22000 2005-06-14  Javier Miranda  <miranda@adacore.com>
22001
22002         * repinfo.ads: Fix typo in comment
22003
22004 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
22005
22006         * s-finimp.adb (Parent_Tag): Delete this imported function (function
22007         Parent_Tag is now in the visible part of Ada.Tags).
22008         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
22009         using imported function.
22010
22011 2005-06-14  Bernard Banner  <banner@adacore.com>
22012
22013         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
22014         also apply for handling support for VxSim 653.
22015
22016 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
22017
22018         * xsnames.adb: Add automatic generation of snames.h.
22019
22020 2005-06-14  Thomas Quinot  <quinot@adacore.com>
22021
22022         * gen-soccon.c: Add IP_MULTICAST_IF constant
22023         Minor reformatting and adjustments to prevent warnings.
22024
22025 2005-06-14  Pascal Obry  <obry@adacore.com>
22026
22027         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
22028
22029 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
22030
22031         * trans.c (gnat_gimplify_expr): Call
22032         recompute_tree_invarant_for_addr_expr when we change
22033         the operand of the ADDR_EXPR.
22034
22035 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22036
22037         * misc.c: Don't include errors.h.
22038
22039 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22040
22041         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
22042
22043 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
22044
22045         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
22046         comment typos.
22047         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
22048
22049 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
22050
22051         PR ada/20270
22052         * Makefile.in: Make TGT_LIB behave correctly.
22053
22054 2005-04-23  DJ Delorie  <dj@redhat.com>
22055
22056         * misc.c: Adjust warning() callers.
22057
22058 2005-04-16  Laurent Guerby  <laurent@guerby.net>
22059
22060         PR ada/18847
22061         * a-nudira.adb (Value): Check for valid string.
22062         * a-nuflra.adb (Value): Likewise.
22063
22064 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
22065
22066         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
22067
22068 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
22069
22070         * adaint.c, init.c, tracebak.c: Fix comment typos.
22071         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
22072
22073 2005-04-07  Laurent Guerby  <laurent@guerby.net>
22074             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22075
22076         * Makefile.in: Add make ifeq define for hppa linux tasking support.
22077         * system-hpux.ads: Define Signed_Zeros to be True.
22078         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
22079
22080 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
22081
22082         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
22083         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
22084         typos.
22085
22086 2005-03-30  Tom Tromey  <tromey@redhat.com>
22087
22088         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
22089
22090 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22091
22092         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
22093
22094 2005-03-29  Robert Dewar  <dewar@adacore.com>
22095
22096         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
22097         fixed-point expression has value that is not a multiple of the Small
22098         value.
22099
22100         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
22101
22102         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
22103         nanoseconds.
22104
22105         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
22106
22107 2005-03-29  Vincent Celier  <celier@adacore.com>
22108
22109         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
22110         (Build_Dynamic_Library.Version_String): Return the empty string when
22111         Lib_Version is empty or when the symbol policy is not Autonomous.
22112
22113         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
22114         a symbol is not in the reference symbol file, increase the Major ID
22115         and set the Minor ID to 0.
22116         Use gsmatch=lequal instead of gsmatch=equal
22117
22118 2005-03-29  Doug Rupp  <rupp@adacore.com>
22119
22120         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
22121         name and translate.
22122
22123 2005-03-29  Javier Miranda  <miranda@adacore.com>
22124
22125         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
22126         (Inherit_DT): The first formal has been redefined as a Tag.
22127         This allows us the removal of the subprogram Get_TSD.
22128         (TSD): Replace the call to Get_TSD by the actual code.
22129
22130         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
22131         (Make_DT): Upgrade the call to Inherit_TSD according to the
22132         new interface: the first formal is now a Tag.
22133
22134         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
22135         redefined as a Tag.
22136         This change allows us to remove the subprogram Get_TSD.
22137         (CPP_Get_TSD): Subprogram removed.
22138         (TSD): Replace the call to CPP_Get_TSD by the actual code.
22139
22140         * rtsfind.ads: Remove support to call the run-time
22141         subprogram Get_TSD
22142
22143 2005-03-29  Robert Dewar  <dewar@adacore.com>
22144
22145         * errutil.adb, errout.adb:
22146         Minor comment updates on Line_Terminator references
22147
22148         * par-ch10.adb: Add ??? comment about line terminator
22149
22150         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
22151         (check dos line terminator).
22152         (Check_Line_Max_Length): New procedure, split off from the existing
22153         Check_Line_Terminator routine. Separating this out allows -gnatyf to
22154         be properly recognized.
22155
22156         * styleg.adb: Add ??? comment for line terminator reference
22157
22158         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
22159         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
22160
22161         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
22162         (check dos line terminator).
22163         (Check_Line_Max_Length): New procedure, split off from the existing
22164         Check_Line_Terminator routine. Separating this out allows -gnatyf to
22165         be properly recognized.
22166
22167         * stylesw.ads, stylesw.adb:
22168         Add handling for new -gnatyd switch (check dos line terminator)
22169
22170         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
22171         Recognize -gnatwb/-gnatwB switches
22172         Include Warn_On_Bad_Fixed_Value for -gnatg
22173
22174         * usage.adb:
22175         Add line for new -gnatyd switch (check dos line terminator)
22176
22177         * usage.adb: Add lines for -gnatwb/-gnatwB
22178
22179         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
22180
22181         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
22182
22183         * gnat_ugn.texi: Fix overlong lines
22184         Document new -gnatyd switch
22185         Document new -gnatwb/-gnatwB switches
22186
22187 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22188
22189         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
22190         order to retrieve the component list of the type, before examining
22191         individual components.
22192
22193         * sem_type.adb (Covers): Types are compatible if one is the base type
22194         of the other, even though their base types might differ when private
22195         views are involved.
22196
22197 2005-03-29  Thomas Quinot  <quinot@adacore.com>
22198
22199         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
22200         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
22201         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
22202         analyzed if expansion is disabled (which could otherwise cause spurious
22203         error messages if expansion has been disabled due to previous
22204         (unrelated) errors).
22205
22206         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
22207         is disabled, the entity denoted by the argument is the access type
22208         itself, not an underlying record type, so there is no need to go back
22209         to the Corresponding_Remote_Type.
22210
22211 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
22212             Robert Dewar  <dewar@adacore.com>
22213
22214         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
22215         expand a call to an instance of
22216         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
22217         Constructor actual of the instance. A class-wide membership
22218         check is also generated, to ensure that the tag passed to the instance
22219         denotes a type in the class.
22220         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
22221         of Name_Generic_Dispatching_Constructor.
22222
22223         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
22224         05 unit for AI-260-02).
22225
22226         * a-tgdico.ads: New file.
22227
22228         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
22229         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
22230
22231         * snames.ads, snames.adb (Preset_Names): Add entry for
22232         Generic_Dispatching_Constructor.
22233
22234         PR ada/20300
22235         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
22236         character type cases.
22237         (Analyze_Subprogram_Renaming): Add special handling for
22238         the case of renaming of stream attributes when the renaming denotes a
22239         generic formal subprogram association for an abstract formal subprogram.
22240         Check that the attribute is a primitive stream attribute (and not
22241         a class-wide stream attribute) and then rewrite the attribute name
22242         as the name of the appropriate compiler-generated stream primitive.
22243
22244 2005-03-29  Robert Dewar  <dewar@adacore.com>
22245
22246         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
22247         recursive calls.
22248         (Is_Possibly_Unaligned_Object): Correct typo that
22249         resulted in inaccurate result for unaligned scalars within records.
22250
22251 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22252
22253         * freeze.adb (Freeze_Record_Type): If the type of the component is an
22254         itype whose parent is controlled and not yet frozen, do not create a
22255         freeze node for the itype if expansion is disabled.
22256
22257 2005-03-29  Vincent Celier  <celier@adacore.com>
22258
22259         * make.adb (Gnatmake): Don't fail if the main project file is declared
22260         as having no Ada sources. Do not display message "no sources to
22261         compile" in quiet output.
22262
22263 2005-03-29  Doug Rupp  <rupp@adacore.com>
22264
22265         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
22266         extra tools.
22267
22268 2005-03-29  Robert Dewar  <dewar@adacore.com>
22269
22270         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
22271         child.
22272
22273 2005-03-29  Robert Dewar  <dewar@adacore.com>
22274
22275         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
22276         missing TYPE Improve the error message generated when compiling a
22277         limited interface in Ada83 or Ada95 mode.
22278
22279 2005-03-29  Robert Dewar  <dewar@adacore.com>
22280
22281         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
22282         rather than proceed ahead using a junk attribute name.
22283
22284 2005-03-29  Vincent Celier  <celier@adacore.com>
22285
22286         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
22287
22288         * prj-part.adb (Parse_Single_Project): Set the location of a project
22289         on its defining identifier, rather than on the reserved word "project".
22290
22291         * prj-proc.adb (Expression): Adapt to the fact that default of external
22292         references may be string expressions, not always literal strings.
22293         (Recursive_Process): Set Display_Name equal to Name
22294         when Location is No_Location, that is when there is no actual file.
22295         Get the Display_Name of the project from the source, when it is not a
22296         virtual project.
22297         (Process): Use the Display_Name in error messages
22298
22299         * prj-strt.adb (External_Reference): Allow default to be string
22300         expressions, not only literal strings.
22301
22302 2005-03-29  Vincent Celier  <celier@adacore.com>
22303
22304         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
22305         file and the reference symbol file to be the same file.
22306
22307 2005-03-29  Thomas Quinot  <quinot@adacore.com>
22308
22309         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
22310         forbid conversion of a local access-to-subprogram type to a remote one.
22311
22312         * sem_util.adb (Wrong_Type): For a record type that is the expanded
22313         equivalent type for a remote access-to-subprogram type, go back to the
22314         original RAS entity when displaying an error message, so the casing is
22315         the original source casing.
22316
22317 2005-03-29  Robert Dewar  <dewar@adacore.com>
22318
22319         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
22320         on param update.
22321
22322 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22323
22324         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22325         subtype if code is being pre-analyzed, to prevent un-expanded
22326         references to protected formals, among others.
22327         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22328         interpretation that can be a call, include the result of the call as a
22329         possible interpretation of the dereference.
22330
22331         * sem_ch5.adb (Process_Bounds): Determine type of range by
22332         pre-analyzing a copy of the original range, and then analyze the range
22333         with the expected type.
22334
22335         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22336         with an overloaded prefix where not all interpretations yield an
22337         access to subprogram, do not rewrite node as a call.
22338         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22339         the node as a call once the context identifies the interpretation of
22340         the prefix whose call yields the context type.
22341         (Valid_Conversion): For the case of a conversion between
22342         local access-to-subprogram types, check subtype conformance using
22343         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22344         detailed error message.
22345
22346 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22347
22348         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22349         indicator, indicate that the formal can never be null.
22350         (Process_Formals): If a formal has a non_null indicator, insert the
22351         resulting subtype immediately before the enclosing subprogram decl,
22352         and not at the beginning of the corresponding declarative part, to
22353         prevent access before elaboration (Ada2005).
22354
22355 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22356
22357         PR ada/19956
22358         * utils.c (finish_record_type): Use variable_size when setting sizes.
22359
22360 2005-03-29  Robert Dewar  <dewar@adacore.com>
22361
22362         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22363         guarantee Unix style line terminators for the output files, even when
22364         running on windows.
22365
22366 2005-03-29  Robert Dewar  <dewar@adacore.com>
22367
22368         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22369         buffer if an exception is raised.
22370
22371 2005-03-29  Ed Falis  <falis@adacore.com>
22372
22373         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22374         VxWorks 653 1.4
22375
22376 2005-03-29  Robert Dewar  <dewar@adacore.com>
22377
22378         * sem_util.ads: Minor reformatting
22379         * gnat_rm.texi: Minor editing.
22380
22381 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
22382
22383         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22384         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22385
22386 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22387
22388         * adaint.c (__gnat_portable_spawn): Adjust cast.
22389
22390 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
22391
22392         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22393
22394 2005-03-17  Pascal Obry  <obry@adacore.com>
22395
22396         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22397         used.
22398
22399         * expect.c (__gnat_waitpid): Moved here from adaint.c.
22400         Reimplement under Win32 using Win32 API.
22401
22402         (__gnat_kill) [Win32]: Properly close the process handle before leaving
22403         this routine.
22404
22405 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
22406
22407         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22408         (DECL_RENAMED_OBJECT): New accessor macro.
22409         (SET_DECL_RENAMED_OBJECT): New setter macro.
22410
22411         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22412         object in all cases.  Attach the renamed object to the VAR_DECL.
22413         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22414         field is not prescribed.
22415
22416         * misc.c (gnat_handle_option): Handle -gnatO separately.
22417         (gnat_print_decl) <VAR_DECL>: New case.
22418         Print the DECL_RENAMED_OBJECT node.
22419
22420         * lang.opt:  Declare separate -gnatO option.
22421
22422         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22423         pointer, replace it with the renamed object.
22424         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22425         pointer type if the source is not a fat pointer type whose underlying
22426         array has the same non-zero alias set as that of the destination array.
22427
22428 2005-03-17  Javier Miranda  <miranda@adacore.com>
22429
22430         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22431         (Get_Inheritance_Depth): Removed.
22432         (Set_Inheritance_Depth): Removed.
22433
22434         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22435         subprogram Get_Expanded_Name because it is not referenced by the
22436         frontend.
22437
22438         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22439         (CPP_Get_Inheritance_Depth): Removed.
22440         (CPP_Set_Inheritance_Depth): Removed.
22441
22442         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22443
22444 2005-03-17  Robert Dewar  <dewar@adacore.com>
22445
22446         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22447         3, since we now expect GCC 3 to do all the work.
22448
22449 2005-03-17  Javier Miranda  <miranda@adacore.com>
22450
22451         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22452         of one barrier to avoid wrong usage of this attribute.
22453
22454         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22455         First_Private_Entity.
22456
22457         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22458         the subprogram against wrong usage.
22459         Adapt the code to traverse the entities in the
22460         scope of a record_type because in addition to its usage regarding
22461         packages, this subprogram is also called by Expand_N_Freeze_Entity
22462         to install the visible declarations of the enclosing scope of a
22463         record_type_with_private to establish the proper visibility before
22464         freezing the entity and related subprograms.
22465
22466 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22467
22468         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22469         entry formals.
22470
22471 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22472
22473         * exp_ch3.adb (Check_Attr): New subprogram.
22474         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22475         into a new Check_Attr subprogram, in order to provide a more
22476         explanatory error message (including the name of the missing attribute).
22477         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22478         subprogram determines whether a default implementation exists for a
22479         given stream attribute.
22480         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22481         Determine whether to generate a default implementation for each stream
22482         attribute separately, as this depends on the specific attribute.
22483
22484         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22485         limited extension where a stream attribute is missing for a limited
22486         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22487         generate a bogus reference to the missing attribute to prevent
22488         cascaded errors. Instead, generate a null statement.
22489
22490         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22491         available for a limited type if it has been specified for an ancestor
22492         of the type.
22493
22494 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22495
22496         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22497         entity is an operator.
22498
22499 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22500
22501         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22502         spec, to make this predicate available to other units.
22503
22504         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22505         reimplementing it.
22506
22507         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22508         when no distribution runtime library is available.
22509
22510         * sem_res.adb, sem_dist.adb: Disable expansion of remote
22511         access-to-subprogram types when no distribution runtime library is
22512         available.
22513         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22514         predicate available to other units.
22515
22516         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22517         spec, to make this predicate available to other units.
22518
22519 2005-03-17  Vincent Celier  <celier@adacore.com>
22520
22521         * make.adb (Insert_Project_Sources): Make sure the Q is always
22522         initialized.
22523
22524         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22525         the default for the tree, not the global default naming.
22526
22527         * prj-proc.adb (Recursive_Process): No need to put the default naming
22528         in the project data, it's already there.
22529
22530 2005-03-17  Doug Rupp  <rupp@adacore.com>
22531
22532         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22533
22534         * 5xcrtl.ads: Renamed to...
22535         * s-crtl-vms64.ads: ...this new file
22536
22537 2005-03-17  Robert Dewar  <dewar@adacore.com>
22538
22539         PR ada/19519
22540         * namet.adb (Copy_One_Character): Set proper wide character encoding
22541         for upper half character if we have upper half encoding.
22542
22543 2005-03-17  Robert Dewar  <dewar@adacore.com>
22544
22545         * par.adb (Par): Improved msg for attempt to recompile predefined unit
22546
22547 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22548
22549         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22550         tagged limited type, the TSS is a newly built renaming declaration:
22551         insert it using Set_TSS, not Copy_TSS.
22552
22553 2005-03-17  Javier Miranda  <miranda@adacore.com>
22554
22555         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22556         Try_Object_Operation): Analyze the object that is accessible
22557         through the prefix of the subprogram call before we apply
22558         the transformation of the object-operation notation.
22559
22560 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
22561
22562         * s-taprob.adb (Initialize_Protection): Initialize the protected
22563         object's owner to Null_Task.
22564         (Lock): If pragma Detect_Blocking is in effect and the caller of this
22565         procedure is already the protected object's owner then Program_Error
22566         is raised. In addition the protected object's owner is updated.
22567         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22568         of this procedure is already the protected object's owner then
22569         Program_Error is raised.
22570         In addition the protected object's owner is updated.
22571         (Unlock): Remove the ownership of the protected object.
22572
22573         * s-taprob.ads (Protection): Add the field Owner, used to store the
22574         protected object's owner.
22575         This component is needed for detecting one type of potentially blocking
22576         operations (external calls on a protected subprogram with the same
22577         target object as that of the protected action). Document the rest of
22578         the components.
22579
22580         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22581         Initialize the protected object's owner to Null_Task.
22582         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22583         caller of this procedure is already the protected object's owner then
22584         Program_Error is raised.
22585         Do not raise Program_Error when this procedure is called from a
22586         protected action.
22587         (Unlock_Entries): Remove the ownership of the protected object.
22588         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22589         of this procedure is already the protected object's owner then
22590         Program_Error is raised.
22591         Do not raise Program_Error when this procedure is called from
22592         a protected action.
22593
22594         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22595         used to store the protected object's owner.
22596
22597         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22598         effect and this procedure (a potentially blocking operation) is called
22599         from whithin a protected action, Program_Error is raised.
22600         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22601         and this procedure (a potentially blocking operation) is called from
22602         whithin a protected action, Program_Error is raised.
22603
22604 2005-03-17  Vincent Celier  <celier@adacore.com>
22605             Nicolas Setton  <setton@adacore.com>
22606
22607         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22608         switch, not supported by the linker on Darwin. Add '_' before
22609         <library>init, as this character is added unconditionally by the
22610         compiler.
22611         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22612         correct one ".dylib". This fixes detection of the archive files when
22613         building library projects.
22614
22615 2005-03-17  Vincent Celier  <celier@adacore.com>
22616
22617         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22618         -gnat83, -gnat95 and -gnat05.
22619
22620 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
22621
22622         * gnat_ugn.texi: Document gnatmem restriction
22623
22624 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22625
22626         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22627         cleanup
22628
22629 2005-03-17  Robert Dewar  <dewar@adacore.com>
22630
22631         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22632         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22633         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22634
22635         * casing.adb: Comment improvements
22636
22637 2005-03-17  Pascal Obry  <obry@adacore.com>
22638
22639         * g-expect.adb: Minor reformatting.
22640
22641 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
22642
22643         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22644         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22645         to dependencies.
22646
22647 2005-03-15  Vincent Celier  <celier@adacore.com>
22648
22649         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22650         Add new parameter In_Tree to specify the project tree: needed
22651         by the project manager. Adapt to changes in project manager
22652         using new parameter In_Tree.
22653
22654 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
22655
22656         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22657         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22658         ada/bldtools to avoid make -jN failures.
22659
22660 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22661
22662         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22663         to NULL_TREE on entry.
22664
22665 2005-03-15  Robert Dewar  <dewar@adacore.com>
22666
22667         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22668         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22669         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22670         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22671         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22672         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22673         system-interix.ads, system-solaris-sparc.ads,
22674         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22675         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22676         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22677         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22678         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22679         Compiler_System_Version to be False.
22680
22681         * opt.ads: Add new flag Opt.Address_Is_Private
22682
22683         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22684         Add new parameter Compiler_System_Version to avoid checking for
22685         completeness of parameters when compiler is compiling itself.
22686         Allows old versions of GNAT to be compiled with new compiler.
22687
22688 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22689
22690         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22691         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22692         calling thread.
22693         (Stack_Base_Available): New flag.
22694         (Get_Page_Size): New overloaded functions imported from C.
22695         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22696         PROT_ON, PROT_OFF): New constants.
22697         (mprotect): New function imported from C.
22698         (pthread_teb_t): New record type.
22699
22700         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22701         (Create_Task): Account for the Yellow Zone and the guard page.
22702
22703 2005-03-15  Vincent Celier  <celier@adacore.com>
22704
22705         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22706         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22707         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22708         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22709         Library_File_Name_For): Add new parameter In_Tree
22710         to specify the project tree: needed by the project manager.
22711         Adapt to changes in project manager using new parameter In_Tree.
22712         Remove local imports, use functions in System.CRTL.
22713
22714         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22715         to use the project manager.
22716
22717         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22718         In_Tree to designate the project tree. Adapt to changes in the project
22719         manager, using In_Tree.
22720
22721         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22722         Copy_Interface_Sources): Add new parameter In_Tree to specify the
22723         project tree: needed by the project manager.
22724         (Build_Library): Check that Arg'Length >= 6 before checking if it
22725         contains "--RTS=...".
22726
22727         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22728         Library_File_Name_For): Add new parameter In_Tree to specify the
22729         project tree: needed by the project manager.
22730
22731         * prj.ads, prj.adb: Major modifications to allow several project trees
22732         in memory at the same time.
22733         Change tables to dynamic tables and hash tables to dynamic hash
22734         tables. Move tables and hash tables from Prj.Com (in the visible part)
22735         and Prj.Env (in the private part). Move some constants from the visible
22736         part to the private part. Make other constants deferred.
22737         (Project_Empty): Make it a variable, not a function
22738         (Empty_Project): Add parameter Tree. Returns the data with the default
22739         naming data of the project tree Tree.
22740         (Initialize): After updating Std_Naming_Data, copy its value to the
22741         component Naming of Project Empty.
22742         (Register_Default_Naming_Scheme): Use and update the default naming
22743         component of the project tree, instead of the global variable
22744         Std_Naming_Data.
22745         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22746         Tree is not defaulted, return the default naming data of the Tree.
22747         (Initial_Buffer_Size): Constant moved from private part
22748         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22749         variables initialized in procedure Initialize.
22750         (Add_To_Buffer): Add two in out parameters to replace global variables
22751         Buffer and Buffer_Last.
22752         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22753         functions.
22754         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22755         hash tables.
22756         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22757         for the project tree.
22758         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22759         constant at the beginning of the package spec, so that they cane be used
22760         in subprograms before their full declarations.
22761         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22762         (Empty_Project): Add parameter of type Project_Node_Ref
22763         (Private_Project_Tree_Data): Add component Default_Naming of type
22764         Naming_Data.
22765         (Buffer, Buffer_Last): remove global variables
22766         (Add_To_Buffer): Add two in out parameters to replace global variables
22767         Buffer and Buffer_Last.
22768         (Current_Packages_To_Check): Remove global variable
22769         (Empty_Name): Move to private part
22770         (No-Symbols): Make it a constant
22771         (Private_Project_Tree_Data): New type for the private part of the
22772         project tree data.
22773         (Project_Tree_Data): New type for the data of a project tree
22774         (Project_Tree_Ref): New type to designate a project tree
22775         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22776         for the project tree.
22777
22778         * prj-attr.ads: Add with Table; needed, as package Prj no longer
22779         imports package Table.
22780
22781         * prj-com.adb: Remove empty, no longer needed body
22782
22783         * prj-com.ads: Move most of the content of this package to package Prj.
22784
22785         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22786         designate the project node tree and Packages_To_Check to replace
22787         global variable Current_Packages_To_Check.
22788         Add new parameters In_Tree and Packages_To_Check to local subprograms,
22789         when needed. Adapt to changes in project manager with project node tree
22790         In_Tree.
22791
22792         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22793         project tree to most subprograms. Move tables and hash tables to
22794         private part of package Prj.
22795         Adapt to changes in project manager using project tree In_Tree.
22796
22797         * prj-makr.adb (Tree): New constant to designate the project node tree
22798         Adapt to change in project manager using project node tree Tree
22799
22800         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22801         display the Library_Src_Dir and the Library_Dir.
22802         Add new parameter In_Tree to designate the project node tree to most
22803         subprograms. Adapt to changes in the project manager, using project tree
22804         In_Tree.
22805         (Check_Naming_Scheme): Do not alter the casing on platforms where
22806         the casing of file names is not significant.
22807         (Check): Add new parameter In_Tree to designate the
22808
22809         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22810         designate the project tree.
22811         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22812
22813         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22814         to replace those that were in the private part of package Prj.
22815         Add new parameter In__Tree to designate the project node tree to most
22816         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22817         (Post_Parse_Context_Clause): When specifying the project node of a with
22818         clause, indicate that it is a limited with only if there is "limited"
22819         in the with clause, not necessarily when In_Limited is True.
22820         (Parse): Add new parameter In_Tree to designate the project node tree
22821
22822         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22823         designate the project node tree. Adapt to change in Prj.Tree with
22824         project node tree In_Tree.
22825
22826         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22827         tree In_Tree in the call to function Empty_Process to give its initial
22828         value to the project data Processed_Data.
22829         Add new parameters In_Tree to designate the project tree and
22830         From_Project_Node_Tree to designate the project node tree to several
22831         subprograms. Adapt to change in project manager with project tree
22832         In_Tree and project node tree From_Project_Node_Tree.
22833
22834         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22835         to replace those that were in the private part of package Prj.
22836         Add new parameter In_Tree to designate the project node tree to most
22837         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22838
22839         * prj-tree.ads, prj-tree.adb: Add new parameter of type
22840         Project_Node_Tree_Ref to most subprograms.
22841         Use this new parameter to store project nodes in the designated project
22842         node tree.
22843         (Project_Node_Tree_Ref): New type to designate a project node tree
22844         (Tree_Private_Part): Change table to dynamic table and hash tables to
22845         dynamic hash tables.
22846
22847         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22848         the project tree to most subprograms. Adapt to changes in project
22849         manager using project tree In_Tree.
22850
22851         * makegpr.adb (Project_Tree): New constant needed to use project
22852         manager.
22853
22854 2005-03-15  Olivier Hainque  <hainque@adacore.com>
22855
22856         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22857         for sigactions with SA_SIGINFO set. Call
22858         __gnat_adjust_context_for_raise before raising, to perform the
22859         potentially required adjustments to the machine context for the GCC
22860         unwinder.
22861
22862         * raise.h (__gnat_adjust_context_for_raise): New prototype.
22863
22864         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22865         Adjust PC by one in the provided machine context.
22866         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22867         so that the handler is passed the context structure to adjust prior to
22868         the raise.
22869         (__gnat_error_handler) HPUX: Adjust the signature to match what an
22870         SA_SIGINFO sigaction should look like. Call
22871         __gnat_adjust_context_for_raise before actually raising.
22872         (__gnat_adjust_context_for_raise): Default noop to help PC
22873         adjustments before raise from signal handlers.
22874         (__gnat_error_handler): Indirectly call a predicate function to
22875         determine if a condition should be resignaled or not.
22876         (__gnat_set_resignal_predicate): User interface to modify the predicate.
22877         (__gnat_default_resignal_p): Default GNAT predicate.
22878
22879 2005-03-15  Doug Rupp  <rupp@adacore.com>
22880
22881         * adaint.c: Prefix #include of VMS system header files with vms/
22882         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22883         Do not define a dummy function "convert_addresses" under Darwin,
22884         not needed.
22885
22886         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22887         with vms/
22888
22889 2005-03-15  Nicolas Setton  <setton@adacore.com>
22890
22891         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22892         PPC/AIX.
22893
22894 2005-03-15  Robert Dewar  <dewar@adacore.com>
22895
22896         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22897         AI-386.
22898
22899         * a-retide.ads: Minor comment changes
22900
22901 2005-03-15  Robert Dewar  <dewar@adacore.com>
22902
22903         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22904         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22905         Realloc_For_Chunk to private part of package.
22906         New subprograms for AI-301
22907
22908         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22909         Get_Line procedure.
22910         Avoid unnecessary use of Get/Set_Wide_String
22911
22912 2005-03-15  Robert Dewar  <dewar@adacore.com>
22913
22914         PR ada/13470
22915         * a-stunau.ads, a-stunau.adb:
22916         Change interface to allow efficient (and correct) implementation
22917         The previous changes to allow extra space in unbounded strings had
22918         left this interface a bit broken.
22919
22920         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22921
22922         * g-spipat.ads, g-spipat.adb: New interface for Get_String
22923         Minor reformatting (function specs)
22924
22925         * g-spitbo.adb: New interface for Get_String
22926
22927         * g-spitbo.ads: Minor reformatting
22928
22929         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22930
22931         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22932
22933 2005-03-15  Javier Miranda  <miranda@adacore.com>
22934             Robert Dewar  <dewar@adacore.com>
22935             Thomas Quinot  <quinot@adacore.com>
22936             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22937
22938         * atree.ads, atree.adb: Add support for Elist24 field
22939
22940         * atree.h: Fix wrong definition of Field27
22941         Add support for Elist16 field
22942         Add support for Elist24 field
22943
22944         * einfo.ads, einfo.adb (Abstract_Interfaces,
22945         Set_Abstract_Interfaces): New subprograms.
22946         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22947         subprograms.
22948         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22949         entities rather than a single node.
22950         (Is_Interface, Set_Is_Interface): New subprogram
22951         (First_Tag_Component): New syntesized attribute
22952         (Next_Tag_Component): New synthesized attribute
22953         (Write_Entity_Flags): Upgraded to write Is_Interface
22954         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22955         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22956         (Task_Body_Procedure): New subprogram to read this attribute.
22957         (Set_Task_Body_Procedure): New subprogram to set this attribute.
22958         (Has_Controlled_Component): Now applies to all entities.
22959         This is only a documentation change, since it always worked to apply
22960         this to other than composite types (yielding false), but now this is
22961         official.
22962         Update documentation on Must_Be_Byte_Aligned for new spec
22963
22964         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22965         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22966         uses of the Access_Disp_Table attribute to reference the first dispatch
22967         table associated with a tagged type. As
22968         part of the implementation of abstract interface types,
22969         Access_Disp_Table has been redefined to contain a list of dispatch
22970         tables (rather than a single dispatch table).
22971         Similarly, upgrade all the references to Tag_Component by the
22972         new attribute First_Tag_Component.
22973         (Find_Inherited_TSS): Moved to exp_tss.
22974         Clean up test in Expand_N_Object_Declaration for cases
22975         where we need to do a separate assignment of the initial value.
22976         (Expand_N_Object_Declaration): If the expression in the
22977         declaration of a tagged type is an aggregate, no need to generate an
22978         additional tag assignment.
22979         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22980         is to be deleted.
22981         Bit packed array ops are only called if operands are known to be
22982         aligned.
22983         (Component_Equality): When returning an N_Raise_Program_Error statement,
22984         ensure that its Etype is set to Empty to avoid confusing GIGI (which
22985         expects that only expressions have a bona fide type).
22986         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22987         determine the amount of data to be copied.
22988
22989         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22990         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22991             INTERFACE_TYPE_DEFINITION ::=
22992               [limited | task | protected | synchronized] interface
22993                 [AND interface_list]
22994
22995         * par-ch3.adb (P_Type_Declaration): Modified to give support to
22996         interfaces.
22997         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22998         interfaces.
22999         (P_Interface_Type_Definition): New subprogram that parses the new
23000         syntax rule of Ada 2005 interfaces
23001         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
23002         messages by the correct RENAMES (quotes removed).
23003
23004         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
23005         attribute First_Tag_Component.
23006
23007         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
23008         (Interface_List, Set_Interface_List): New subprograms.
23009         (Interface_Present, Set_Interface_Present): New subprograms.
23010         (Limited_Present, Set_Limited_Present): Available also in derived
23011         type definition nodes.
23012         (Protected_Present, Set_Protected_Present): Available also in
23013         record type definition and
23014         derived type definition nodes.
23015         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
23016         (Task_Present, Set_Task_Present): New subprogram.
23017         (Task_Body_Procedure): Removed.
23018         (Set_Task_Body_Procedure): Removed.
23019         These subprogram have been removed because the attribute
23020         Task_Body_Procedure has been moved to the corresponding task type
23021         or task subtype entity to leave a field free to store the list
23022         of interfaces implemented by a task (for AI-345)
23023         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
23024         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
23025         expression flag Do_Range_Check
23026         (Exception_Junk): Change to Flag7 to accomodate above change
23027         (Box_Present, Default_Name, Specification, Set_Box_Present,
23028         Set_Default_Name, Set_Specification): Expand the expression
23029         "X in N_Formal_Subprogram_Declaration" into the corresponding
23030         two comparisons. Required to use the csinfo tool.
23031
23032         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
23033         "with string" given.
23034
23035         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
23036         expression given.
23037
23038         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
23039         in 2005 mode
23040
23041         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
23042         attribute Task_Body_Procedure rather than the old semantic field that
23043         was available in the task_type_declaration node.
23044
23045         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
23046         interface type definitions.
23047         (P_Formal_Derived_Type_Definition): Modified to handle the list of
23048         interfaces.
23049
23050         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
23051         task type declaration.
23052         (P_Protected): Modified to handle the list of interfaces in a
23053         protected type declaration.
23054
23055 2005-03-15  Doug Rupp  <rupp@adacore.com>
23056             Vincent Celier  <celier@adacore.com>
23057
23058         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
23059         (Gen_Output_File_C): Likewise.
23060         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
23061
23062 2005-03-15  Thomas Quinot  <quinot@adacore.com>
23063
23064         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
23065         is an N_Raise_Constraint_Error node, create a new copy of it without
23066         going through a call to Duplicate_Subexpr.
23067
23068 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23069             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23070             Nicolas Setton  <setton@adacore.com>
23071             Ed Schonberg  <schonberg@adacore.com>
23072
23073         PR ada/19900
23074         PR ada/19408
23075         PR ada/19140
23076         PR ada/20255
23077         * decl.c (gnat_to_gnu_field): Reject aliased components with a
23078         representation clause that prescribes a size not equal to the rounded
23079         size of their types.
23080         (gnat_to_gnu_entity, case E_Component): Always look at
23081         Original_Record_Component if Present and not the entity.
23082         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
23083         of tagged extension types by not making field for components that are
23084         inside the parent.
23085         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
23086         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
23087         expression to the type of the object when the object is constant.
23088         Reverse defer_debug_incomplete_list before traversing it, so that trees
23089         are processed in the order at which they were added to the list. This
23090         order is important when using the stabs debug format.
23091         If we are deferring the output of debug information, also defer this
23092         output for a function return type.
23093         When adding fields to a record, prevent emitting debug information
23094         for incomplete records, emit the information only when the record is
23095         complete.
23096         (components_to_record): New parameter defer_debug.
23097         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
23098         (gnat_to_gnu_field_decl): New function.
23099         (substitution_list, annotate_rep): Call it.
23100         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
23101         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
23102         No longer update discriminants to not be a COMPONENT_REF.
23103         (copy_alias_set): Strip padding from input type; also handle
23104         unconstrained arrays properly.
23105
23106         * gigi.h (write_record_type_debug_info): New function.
23107         Convert to use ANSI-style prototypes. Remove unused
23108         declarations for emit_stack_check, elab_all_gnat and
23109         set_second_error_entity.
23110         (gnat_to_gnu_field_decl): New decl.
23111
23112         * utils.c (write_record_type_debug_info): New function.
23113         (finish_record_type): Delegate generation of debug information to
23114         write_record_type_debug_info.
23115         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
23116         (update_pointer_to): Fix pasto.
23117         (convert) <UNION_TYPE>: Accept slight type variations when
23118         converting to an unchecked union type.
23119
23120         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
23121         replace the N_Freeze_Entity with a null statement.
23122
23123         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
23124         within a constrained subcomponent of an enclosing record, place the
23125         freeze nodes in the scope stack entry for the enclosing record.
23126         (Undelay_Type): New Subprogram.
23127         (Set_Small_Size): Pass T, the type to modify; all callers changed.
23128         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
23129         within records; allow them to have freeze nodes if their base types
23130         aren't frozen yet.
23131
23132         * exp_util.adb (Remove_Side_Effects): Properly test for
23133         Expansion_Delayed and handle case when it's inside an
23134         N_Qualified_Expression.
23135
23136         * sem_ch3.adb (Derived_Type_Declaration): New predicate
23137         Comes_From_Generic, to recognize accurately that the parent type in a
23138         derived type declaration can be traced back to a formal type, because
23139         it is one or is derived from one, or because its completion is derived
23140         from one.
23141         (Constrain_Component_Type): If component comes from source and has no
23142         explicit constraint, no need to constrain in in a subtype of the
23143         enclosing record.
23144         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
23145         Minor change to propagate Is_Ada_2005 flag
23146
23147         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
23148         Expansion_Delayed is False.
23149         (assoc_to_constructor): Ignore fields that have a
23150         Corresponding_Discriminant.
23151         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
23152         function returns "by target", dereference the target pointer using the
23153         type of the actual return value.
23154         <all>: Be prepared for a null gnu_result.
23155         (processed_inline_subprograms): Check flag_really_no_inline
23156         instead of flag_no_inline.
23157         (set_second_error_entity): Remove unused function.
23158         (gnat_to_gnu, case N_Selected_Component): Call
23159         gnat_to_gnu_field_decl.
23160         (assoc_to_constructor): Likewise.
23161
23162 2005-03-15  Robert Dewar  <dewar@adacore.com>
23163             Ed Schonberg  <schonberg@adacore.com>
23164             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23165
23166         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
23167         Must_Be_Byte_Aligned for cases where we do not need to use a
23168         System.Pack_nn unit.
23169
23170         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
23171         as procedures.
23172         Needed now that we do some processing for IN parameters as well. This
23173         may well fix some unrelated errors.
23174         (Expand_Call): Handle case of unaligned objects (in particular those
23175         that come from packed arrays).
23176         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
23177         renamed entity is an inherited operation, re-expand the call using the
23178         original operation, which is the one to call.
23179         Detect attempt to inline parameterless recursive subprogram.
23180         (Represented_As_Scalar): Fix to work properly with private types
23181         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
23182         accurate estimate. Yields True in far fewer cases than before,
23183         improving the quality of code that depends on this test.
23184
23185         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
23186         over both visible and private declarations to remove them from tree,
23187         and mark subprograms declared in package as eliminated, to prevent
23188         spurious use in subsequent compilation of generic units in the context.
23189
23190         * exp_util.ads: Minor cleanup in variable names
23191
23192         * sem_eval.ads, sem_eval.adb: Minor reformatting
23193         (Compile_Time_Known_Bounds): New function
23194
23195 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23196
23197         * exp_ch7.adb (Convert_View): Use base types of underlying types when
23198         determining whether an unchecked conversion is needed for the argument
23199         of an initialization call.
23200
23201 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23202
23203         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
23204         that appears in the instantiation rather than the internal subtype
23205         generated in the wrapper package, to avoid anomalies in gigi when the
23206         target is derived from a private type whose full view is an access type.
23207
23208 2005-03-15  Robert Dewar  <dewar@adacore.com>
23209
23210         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
23211         not needed.
23212         Add documentation to replace the use of this flag
23213         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
23214         the x86_64.
23215
23216 2005-03-15  Thomas Quinot  <quinot@adacore.com>
23217
23218         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
23219         here from exp_attr so it can be shared between exp_attr and exp_dist.
23220         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
23221         all TSS names, not a subset thereof, and the previous name introduced
23222         an unnecessarily confusion that a distinction might exist between
23223         "OK" TSS names and some "not OK" TSS names.
23224
23225 2005-03-15  Doug Rupp  <rupp@adacore.com>
23226
23227         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
23228         Command_Name.
23229
23230 2005-03-15  Pascal Obry  <obry@adacore.com>
23231             Eric Botcazou  <ebotcazou@adacore.com>
23232
23233         PR ada/20226
23234         PR ada/20344
23235         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
23236         when IN_RTS. This is to work around a bootstrap path problem.
23237
23238         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
23239         table and pass it to __gnat_install_SEH_handler().
23240         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
23241
23242         * lang.opt: Fix specification of -fRTS=.
23243
23244 2005-03-15  Doug Rupp  <rupp@adacore.com>
23245             Bernard Banner  <banner@adacore.com>
23246             Vincent Celier  <celier@adacore.com>
23247             Arnaud Charlet  <charlet@adacore.com>
23248
23249         PR ada/6852
23250         This change works fine when gnatlib is built from the gcc directory,
23251         but does not work when using the libada Makefile, since GCC_FOR_TARGET
23252         is not passed to ada/Makefile.in, so more work is needed by a
23253         Makefile/configure expert.
23254
23255         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
23256         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
23257         Setup gnatlink switch -M for x86_64 linux, as it is already setup
23258         for Linux x86.
23259         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
23260         Run ranlib on libgccprefix.a
23261         Define PREFIX_OBJS for Darwin, to build libgccprefix.
23262         (ADA_INCLUDE_SRCS): Split Ada packages.
23263
23264 2005-03-15  Robert Dewar  <dewar@adacore.com>
23265
23266         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
23267
23268         * impunit.adb: Add GNAT.UTF_32
23269
23270         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
23271
23272         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
23273         now uses GNAT.UTF_32).
23274
23275         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
23276         capabilities for categorizing characters using Unicode categories
23277
23278 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23279
23280         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
23281         instantiation that has been rewritten as a package body, retrieve spec
23282         to generate proper name for implicit_with_clause.
23283         (Install_Parents): Recognize a parent that is an instantiation but has
23284         been rewritten as a package declaration during analysis.
23285
23286 2005-03-15  Javier Miranda  <miranda@adacore.com>
23287             Ed Schonberg  <schonberg@adacore.com>
23288
23289         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
23290         parameter reported some error we immediately return. This improves the
23291         behaviour of the frontend in case of errors.
23292         (Install_Parent, Remove_Parent): Introduce new flag
23293         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
23294         ancestor of a generic child unit, when the child is being instantiated.
23295         (Inline_Instance_Body): If we are compiling the private
23296         part or the body of a child unit, restore the proper visibility of the
23297         parents after compiling the instance body.
23298
23299 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23300             Javier Miranda  <miranda@adacore.com>
23301
23302         PR ada/15608
23303         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
23304         of a private type, in which case it is underlying_type that denotes
23305         the proper task. Also modified to use the new entity attribute
23306         that is directly available in the task type and task subtype entities
23307         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
23308         arrays when other dimensions than the first are constrained by
23309         discriminants of an enclosing record.
23310         (Insert_Explicit_Dereference): If the prefix is an indexed component or
23311         a combination of indexed and selected components, find ultimate entity
23312         and generate the appropriate reference for it, to suppress spurious
23313         warnings.
23314         (Note_Possible_Modification): If an entity name has no entity, return.
23315         (Is_Variable): A function call never denotes a variable.
23316         (Requires_Transient_Scope): For record types, recurse only on
23317         components, not on internal subtypes that may have been generated for
23318         constrained components.
23319
23320 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23321
23322         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
23323         Eliminated as candidates for resolution. Both efficient, and avoids
23324         anomalies with operators declared in deleted code.
23325         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23326         expansion is disabled (as when compiling a generic) to prevent spurious
23327         warnings on prefixes of selected components.
23328
23329 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23330
23331         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23332         attached to a list before checking whether it appears in the private
23333         declarations of the current package.
23334         (Make_Inequality_Operator): Insert declaration in proper declarative
23335         list rather than just setting the Parent field, so that
23336         Is_Private_Declaration can handle it properly.
23337
23338 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23339
23340         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23341         a renaming a body, check that the renamed subprogram in not intrinsic.
23342         (Find_Direct_Name): If several use_visible entities hide
23343         each other, and the context is a predefined file compiled through
23344         rtsfind, keep only the entity that comes from a predefined file.
23345
23346 2005-03-15  Geert Bosch  <bosch@adacore.com>
23347
23348         * s-fatgen.adb (Valid): Extend special exceptions to account for long
23349         long float padding to also cover AMD64 and IA64.
23350
23351 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
23352
23353         * s-imgwch.adb: Add with and use of Interfaces.
23354         (Img_Wide_Character): Change type of Val to Unsigned_16.
23355         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23356
23357 2005-03-15  Matthew Gingell  <gingell@adacore.com>
23358
23359         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23360
23361 2005-03-15  Robert Dewar  <dewar@adacore.com>
23362
23363         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23364
23365         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23366
23367         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23368
23369 2005-03-15  Robert Dewar  <dewar@adacore.com>
23370
23371         * s-bitops.adb, s-bitops.ads,
23372         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23373         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23374         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23375         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23376         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23377         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23378         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23379         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23380         reformatting.
23381
23382 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23383
23384         * utils2.c (build_binary_op): Fix typo.
23385
23386 2005-03-15  Doug Rupp  <rupp@adacore.com>
23387
23388         * s-crtl.ads (popen,pclose): New imports.
23389
23390 2005-03-15  Cyrille Comar  <comar@adacore.com>
23391
23392         * comperr.adb (Compiler_Abort): remove references to obsolete
23393         procedures in the bug boxes for various GNAT builds.
23394
23395 2005-03-15  Vincent Celier  <celier@adacore.com>
23396
23397         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23398
23399 2005-03-15  Geert Bosch  <bosch@adacore.com>
23400             Arnaud Charlet  <charlet@adacore.com>
23401             Robert Dewar  <dewar@adacore.com>
23402             Cyrille Comar  <comar@adacore.com>
23403             Sergey Rybin  <rybin@adacore.com>
23404
23405         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23406         too specific and long-winded to be appropriate for the GNAT User's
23407         Guide.
23408         Warn about use of GCC switches not documented in the GNAT User's Guide,
23409         as these may cause generated code to not conform to Ada semantics.
23410         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23411         Add documentation for -gnat95 and -gnat05 switches
23412         Remove paragraph documenting obsolete way to refer to third party
23413         libraries.
23414         Add a few references to Ada_05 that were missing.
23415         Update documentation on -gnatZ/-gnatL.
23416         Document limitation when using -m64 under Solaris.
23417         Change the "Name Casing" subsection of the pretty-printer section
23418         according to the changes in the dictionary processing.
23419
23420         * gnat_rm.texi: Document the Ada_05 pragma.
23421         Section on record representation clauses describes the new more
23422         relaxed rules about placement of large packed bit array components.
23423         Add documentation of GNAT.UTF_32
23424
23425 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
23426
23427         * misc.c (gnat_post_options): Turn off structural
23428         aliasing for now.
23429
23430 2005-03-08  Laurent Guerby  <laurent@guerby.net>
23431
23432         * system-linux-sparc.ads: Fix typo in previous commit.
23433
23434 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
23435             Laurent Guerby  <laurent@guerby.net>
23436
23437         PR ada/20035
23438         * system-linux-sparc.ads: New.
23439         * Makefile.in: Add sparc linux entry.
23440
23441 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
23442
23443         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23444         parameters as unused.
23445
23446 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
23447         Partial merge from libada-gnattools-branch:
23448
23449         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23450         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23451         into code in gnattools/Makefile.in.  Remove direct dependencies on
23452         stamp-tools by tools clauses.
23453         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23454         * config-lang.in: Add gnattools to $lang_dirs.
23455
23456 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
23457
23458         PR ada/19942
23459         * utils.c (gnat_type_for_mode): Return null instead of ICE because
23460         we asked for an unknown mode.
23461
23462 2005-02-12  Richard Henderson  <rth@redhat.com>
23463
23464         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23465         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23466
23467 2005-02-10  Andreas Jaeger  <aj@suse.de>
23468
23469         * init.c (__gnat_initialize): Mark parameter as unused.
23470
23471 2005-02-09  Doug Rupp  <rupp@adacore.com>
23472
23473         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23474         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23475
23476 2005-02-09  Doug Rupp  <rupp@adacore.com>
23477
23478         * gnatchop.adb (dup, dup2),
23479         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23480
23481         * gnatlbr.adb (mkdir),
23482         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
23483
23484         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23485
23486 2005-02-09  Doug Rupp  <rupp@adacore.com>
23487
23488         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23489
23490 2005-02-09  Robert Dewar  <dewar@adacore.com>
23491             Thomas Quinot  <quinot@adacore.com>
23492             Javier Miranda  <miranda@adacore.com>
23493             Pascal Obry  <obry@adacore.com>
23494             Ed Schonberg  <schonberg@adacore.com>
23495             Doug Rupp  <rupp@adacore.com>
23496             Gary Dismukes  <dismukes@adacore.com>
23497             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23498
23499         * g-zstspl.ads: New file.
23500
23501         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23502
23503         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23504         Ada 95 mode
23505         Add definition of Wide_Wide_Space for AI-285
23506
23507         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23508         interface (to support Ada 95 and Ada 2005 units).
23509         Add Unbounded_IO files
23510         Add entries for Wide_Wide packages for AI-285
23511         Add list of containers packages to Ada 2005 unit list
23512
23513         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23514         support new Unbounded_IO package cleanly.
23515
23516         * g-utf_32.ads, g-utf_32.adb: New files.
23517
23518         * Makefile.rtl: Add entry for g-utf_32
23519         Add new files for Unbounded_IO
23520         Adjust make file for new AI-285 wide wide packages
23521         Add AI-302 containers to the run time.
23522
23523         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23524         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23525         subprograms for AI-301.
23526
23527         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23528
23529         * a-stunau.ads: Minor comment correction
23530
23531         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23532         etc.
23533         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23534         (Check_RPC): Update to match changes in expanded code.
23535         Clean up unused entity.
23536
23537         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23538         was not taken into account.
23539         This includes proper initialization with Normalize_Scalars.
23540         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23541         normalize scalars cases (particularly the latter) to do a better job
23542         of finding invalid representations.
23543
23544         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23545
23546         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23547         used
23548
23549         * exp_dist.adb: Add support for wide wide character type
23550         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23551         private part, generate stub bodies at the end of the private part,
23552         not the visible part.
23553         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23554         PolyORB support.
23555         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23556         generic wrapper to execute final processing after completing the
23557         expansion of the RPC receiver for an RACW.
23558
23559         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23560         packages and attributes.
23561         (Preset_Names): Addition of the new reserved words of Ada 2005,
23562         that is interface, overriding and synchronized.
23563         (Get_Pragma_Id): Give support to the use of the new reserved word
23564         "interface" as a pragma name.
23565         (Is_Pragma_Name): Give support to the use of the new reserved word
23566         "interface" as a pragma name.
23567         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23568         attribute implementation.
23569
23570         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23571         checks to entities that are output parameters of Asm operations.
23572         Handle the Stream_Size attribute.
23573         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23574
23575         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23576
23577         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23578         for second parameter being 0.0.
23579         Add support for wide wide character type.
23580         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23581
23582         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23583         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23584         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23585         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23586         for wide wide character cases.
23587
23588         * cstand.adb: Create entities for Wide_Wide_Character and
23589         Wide_Wide_String.
23590
23591         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23592         accordance with AI-258.
23593         Add new declarations for 16/32 bit C character types (Part of AI285)
23594
23595         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23596         (Obsolescent_Warning): New field
23597         (Rep_Clause): New local subprogram used to share code. Returns the rep
23598         clause for which the name is given in parameter.
23599         (Has_Stream_Size_Clause): New routine.
23600         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23601         (Address_Clause): Implementation is now using Rep_Clause.
23602         (Alignment_Clause): Idem.
23603         (Size_Clause): Idem.
23604
23605         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23606         entity in non-Ada 2005 mode and generate warning.
23607
23608         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23609         (Prag): Code cleanup. Remove old gnat pragma "overriding"
23610
23611         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23612         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23613         on the named unit if the pragma is not in the current compilation unit,
23614         so that elaboration calls in the current unit can set up an elaboration
23615         dependency on the named unit, as needed.
23616         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23617         subprogram as well as for subprograms declared within a package.
23618         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23619         pragma overriding.
23620
23621         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23622         to z) to avoid some instances of duplication for Wide_Wide packages.
23623
23624         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23625         characters.
23626
23627         * scn.adb: Char_Literal_Value field is now a Uint
23628
23629         * scng.adb: Significant rewrite to handle new Ada 2005 features
23630         allowing wide and wide wide characters in program text, e.g. for
23631         identifiers, as described in AI-285.
23632         (Set_Reserved): New procedure, makes setting up keywords cleaner.
23633         (Initialize_Scanner): Register the new reserved words of Ada 2005.
23634         (Scan): Give support to the new reserved words.
23635
23636         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23637         warning notifying that interface, overriding, and synchronized are
23638         new reserved words.
23639         (P_Pragma): Allow the use of the new reserved word "interface" as
23640         a pragma name.
23641
23642         * gnatls.adb, gnatbind.adb,
23643         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23644         identifiers named "interface" to "SAL_Interface".
23645
23646         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23647         (Structured Exception handling).
23648         (Gen_Main_C): Idem.
23649
23650         * bindgen.adb:
23651         (Gen_Main_Ada): Set the default exit code if specified.
23652         (Gen_Main_C): Likewise.
23653         Part of *DC20-006.
23654         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23655         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23656
23657         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23658         new -Xnnn switch.
23659
23660         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23661         has a collision with the new Ada 2005 "interface" reserved word.
23662
23663         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23664         generate a warning notifying that interface, overriding, and
23665         synchronized are new reserved words.
23666
23667         * scans.ads (Token_Type): Addition of the tokens corresponding to the
23668         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23669         and Tok_Synchronized.
23670
23671         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23672         "dispatching" rather than "primitive" operations, since dispatching
23673         calls are now allowed to abstract formal subprograms (which are not
23674         primitive).
23675         Char_Literal_Value field is now a Uint
23676         (Resolve_Slice): If the prefix is an access to an unconstrained array,
23677         compute the actual subtype of the designated object to impose the proper
23678         index constraints.
23679         (Resolve_Selected_Component): Do not insert an access check if the
23680         prefix is an access type: such a node is expanded into an explicit
23681         dereference, on which the access check is performed anyway. Removes
23682         expensive duplicate checks.
23683         (Resolve_Call): Use new flag Is_Obsolescent and field
23684         Obsolescent_Warning so that pragma Obsolescent works on library
23685         subprograms.
23686         Add support for wide wide character type
23687         (Resolve_Allocator): Replace the error message on wrong null-exclusion
23688         value by a warning message.
23689         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23690         as fixed-point, and one of the operands is non-static and universal, it
23691         can only be an illegal exponentiation operation, in which case there is
23692         no real value to retrieve.
23693
23694         * exp_strm.adb: Add support for wide wide character type
23695         (Build_Elementary_Input_Call): Compute the size of the stream element by
23696         querying the rep chain to find the Stream_Attribute attribute value.
23697         (Build_Elementary_Write_Call): Ditto.
23698
23699         * sem_aggr.adb: Char_Literal_Value field is now a Uint
23700         Add support for wide wide character type
23701         Replace the error messages on wrong null-exclusion value by warnings
23702         as described in Ada 2005.
23703         (Resolve_Extension_Aggregate): Document the fact that the error
23704         message on class-wide expressions in extensions aggregates.
23705
23706         * sem_case.adb: Add support for wide wide character type
23707
23708         * sem_ch13.adb: Add support for wide wide character type
23709         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23710
23711         * sem_ch3.adb: Add support for wide wide character type
23712         (Process_Subtype): If constraint is illegal for the type, set Ekind of
23713         now-useless Itype, to prevent cascaded errors on a compiler built
23714         without -gnatp.
23715
23716         * sem_ch8.adb: Add with and use of Sem_Disp.
23717         (Analyze_Subprogram_Renaming): Replace unclean uses of
23718         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23719         of Corresponding_Spec to Empty).
23720         (Attribute_Renaming): Replace use of Corresponding_Spec with
23721         Corresponding_ Formal_Spec and simplify condition.
23722         (Use_One_Package): Check that scope of homonym of identifier is defined,
23723         before checking whether it is a wrapper package.
23724         Add support for wide wide character type
23725
23726         * sem_eval.adb: Add support for wide wide character type.
23727         (Eval_Arithmetic_Op): Check for compile time known signed integer
23728         overflow in the non-static case.
23729         (Subtypes_Statically_Match): A formal scalar type and its base type do
23730         not statically match.
23731
23732         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23733         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23734         subtype).
23735         (Unit_Declaration_Node): Ditto.
23736         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
23737         has a packed array type, the prefix has been rewritten into a type
23738         conversion. Determine variable-ness from the converted expression.
23739         Handle wide wide character cases.
23740
23741         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23742
23743         * stringt.ads, stringt.adb: Handle full UTF-32 range.
23744         Remove ["0A"] from comment, since it can look like a line terminator.
23745         Currently we don't permit this, but this is under discussion by the
23746         ARG, and it is easy enough to use a different example.
23747
23748         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23749         handling UTF-32 encoding for wide wide character.
23750         Implement new brackets coding ["hhhhhhhh"]
23751         Add UTF-8 encodings for full UTF-32 range
23752
23753         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23754
23755         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23756         bit range Add full UTF-32 support.
23757         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23758         notify that constraint error will be raised at run-time
23759         because a null value is assigned to a null-excluding object.
23760         Remove some obsolete declarations and make Char_Code
23761         unsigned.
23762
23763         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23764         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23765         Rcheck subprograms.
23766
23767         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23768         wrong null-exclusion value by a warning message.
23769         (Enable_Range_Check): Do range check if the prefix is an
23770         explicit dereference whose designated object is an unconstrained array.
23771         Current algorithm for removing duplicate checks is over-eager in this
23772         case.
23773
23774         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23775         null-exclusion value by a warning message
23776
23777         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23778         completely. Add support for Uint2 field
23779
23780         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23781         exp_prag.adb: Char_Literal_Value field is now a Uint.
23782
23783         * exp_util.adb (Insert_Actions): Replace
23784         N_Formal_Subprogram_Declaration by
23785         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23786         Char_Literal_Value field is now a Uint.
23787
23788         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23789         defined for subprogram renaming declarations. When set, the field
23790         indicates the defining entity of a corresponding formal subprogram
23791         when the renaming corresponds to a formal subprogram association in an
23792         instantiation.
23793         (Set_Corresponding_Formal_Spec): New procedure to return
23794         Corresponding_Formal_Spec field.
23795         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23796         (which is now a subtype).
23797         Char_Literal_Value field is now a Uint
23798
23799         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23800         pointer to the base of the dispatch table.
23801         Minor changes to comments.
23802         (Controlling_Type): New function for determining the tagged type
23803         associated with a tagged primitive subprogram.
23804         (Expand_Dispatching_Call): Add support for a controlling actual that is
23805         directly a value of type Ada.Tag rather than a tagged object.
23806
23807         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23808         describing the new layout.
23809         (Dispatch_Table): The expander computes the actual array size, allocates
23810         the Dispatch_Table record accordingly, and generates code that displaces
23811         the base of the record after the Typeinfo_Ptr component. The access to
23812         these components is done by means of local functions.
23813         (Offset_To_Top): New function.
23814         (Typeinfo_Ptr): New function.
23815         (Get_TSD): Modified to access the new position of the TSD.
23816         (Set_TSD): Modified to save the TSD in its new position.
23817
23818         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23819         case of formal abstract subprograms. Add check and message for -gnat05.
23820         Update comments.
23821
23822         * sem_ch12.adb: Add with and use for Sem_Disp.
23823         (Analyze_Associations): Minor change from "=" to "in" for use of
23824         N_Formal_Subtype_Declaration (which is now a subtype).
23825         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23826         N_Formal_Subtype_Declaration (which is now a subtype).
23827         (Analyze_Formal_Subprogram): Add handling for
23828         N_Formal_Abstract_Subprogram, marking the formal as abstract and
23829         dispatching, setting the controlling status of the formal parameters
23830         and result, and issuing an error if there is no controlling type for
23831         the formal subprogram.
23832         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23833         which is an unclean use of that field, we set the new field
23834         Corresponding_Formal_Spec to make the formal subprogram available to
23835         processing in Analyze_Subprogram_Declaration.
23836         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23837         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23838         Constrained, so that it is is does not statically match its anonymous
23839         base type.
23840
23841         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23842         abstract formal subprograms in error check for functions returning
23843         abstract types. Set scope of new designator for
23844         a parameterless subprogram, so that it is available when checking the
23845         body for nested subprograms, before full analysis of said body.
23846         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23847         subprogram only if inner one comes from source.
23848         (Analyze_Function_Call): If the call is given in object notation, the
23849         analysis of the name rewrites the node and analyzes it with the proper
23850         argument list. After analyzing the name, if the call has been rewritten
23851         and the result type is set, no further analysis is needed.
23852         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23853         mark in function specification, in a context where the formals are
23854         visible and hide outer homographs.
23855
23856         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23857         as the tagged type for the cases of abstract formal subprograms and
23858         renamings of those.  Clean up spec comments.
23859         (Check_Dispatching_Context): Add error message to indicate "abstract
23860         procedure", covering the case of a call to a formal abstract procedure
23861         that has statically tagged operands.
23862         (Check_Dispatching_Call): Check for the case of an actual given by
23863         a tag-indeterminate function call whose type is an ancestor of the
23864         containing call's associated tagged type. This situation can occur
23865         for inherited primitives with function defaults. In this case we
23866         use the tagged type's tag directly as the controlling argument for
23867         the calls.
23868         (Expand_Call): Name change on call to Expand_Dispatch_Call.
23869
23870         * sprint.adb (Sprint_Node_Actual): Split
23871         N_Formal_Subprogram_Declaration into two alternatives for the new
23872         cases N_Formal_Abstract_Subprogram_Declaration and
23873         N_Formal_Concrete_Subprogram_Declaration.
23874         Char_Literal_Value field is now a Uint.
23875
23876         * trans.c: Get rid of junk Uint2 reference.
23877         Char_Literal_Value field is now a Uint.
23878         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23879         (gigi): Correct third arg to gimplify_body.
23880
23881         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23882         (TYPE_LANG_FLAG_0): Check for record or union.
23883
23884         * treepr.adb: Char_Literal_Value field is now a Uint
23885
23886         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23887         UI_From_CC.
23888
23889         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23890         Add full UTF-32 support
23891         Char_Code is now 32 bits
23892
23893         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23894         wide character UTF_32 line terminators.
23895         Initialize Main_Source_File to avoid error when no main
23896         source is loaded.
23897
23898         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23899         (Main_Source_File) when no main source has been loaded, to avoid
23900         potential crash.
23901
23902 2005-02-09  Robert Dewar  <dewar@adacore.com>
23903
23904         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23905         Fix name of Set routine
23906
23907         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23908         fixed packages.
23909
23910         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23911         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23912         fixed packages
23913
23914         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23915         forms of Get_Line subprograms for AI-301.
23916
23917         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23918         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23919         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23920         a-stwima.ads: Minor reformatting.
23921
23922 2005-02-09  Doug Rupp  <rupp@adacore.com>
23923             Thomas Quinot  <quinot@adacore.com>
23924
23925         * adaint.c, adaint.h
23926         [VMS] (to_ptr32): New function.
23927         (MAYBE_TO_PTR32): New macro.
23928         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23929         for pointer size.
23930         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23931         [VMS] (#define fork()): Remove since unneccessary.
23932         (__gnat_set_close_on_exec): New routine to support
23933         GNAT.OS_Lib.Set_Close_On_Exec.
23934
23935         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23936         the parent side as close-on-exec so that they are not inherited by the
23937         child.
23938
23939         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23940         set or clear the FD_CLOEXEC flag on a file descriptor.
23941
23942 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
23943             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23944
23945         PR ada/19386
23946         * decl.c:
23947         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23948         on the field if Pragma Component_Alignment (Storage_Unit).
23949         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23950         side-effects as if it were a constant; also make SAVE_EXPR to protect
23951         side-effects.
23952         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23953         UNION_TYPE.
23954         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23955         (components_to_record): Test it.
23956         Fix improper usage of REFERENCE_CLASS_P.
23957
23958         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23959         RECORD_TYPE.
23960
23961         * utils2.c: Minor reformatting.
23962
23963         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23964         handle other cases like RECORD_TYPE.
23965
23966         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23967
23968 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23969
23970         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23971         component of an array of arrays in an assignment context, and the
23972         aggregate has component associations that require sliding on
23973         assignment, force reanalysis of the aggregate to generate a temporary
23974         before the assignment.
23975         (Must_Slide): Make global to the package, for use in Gen_Assign.
23976
23977 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23978
23979         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23980         unchecked union with no inferable discriminants, return a
23981         Raise_Program_Error node, rather than inserting it at the point the
23982         type is frozen.
23983         (Expand_Record_Equality, Component_Equality): Handle properly the case
23984         where some subcomponent is an unchecked union whose generated equality
23985         code raises program error.
23986
23987 2005-02-09  Doug Rupp  <rupp@adacore.com>
23988
23989         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23990         [VMS] (#define exit hack): Remove.
23991
23992 2005-02-09  Pascal Obry  <obry@adacore.com>
23993             Arnaud Charlet  <charlet@adacore.com>
23994
23995         * init.c (__gnat_initialize): Add a new parameter eh which contains the
23996         address of the exception registration. The Win32 version of this
23997         routine calls __gnat_install_SEH_handler() to initialize the SEH
23998         (Structured Exception Handling) handler.
23999         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
24000         SEH (Structured Exception Handling) now.
24001         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
24002         (__gnat_initialize for ppc-vxworks): Adjust comments and the
24003         preprocessor condition protecting the call to the extra eh setup
24004         subprogram, which is only available for the ppc target.
24005         (__gnat_clear_exception_count): replaced reference to
24006         variable taskIdCurrent by call to taskIdSelf(), cleaner.
24007
24008         * seh_init.c: New file.
24009
24010         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
24011         (GNATBIND_OBJS): Idem.
24012
24013         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
24014         routine takes a new parameter (a pointer to the exception registration
24015         for the SEH (Structured Exception Handling) support.
24016
24017         * raise.h: (__gnat_install_SEH_handler): New prototype.
24018         Update copyright notice.
24019
24020         * s-tassta.adb (Task_Wrapper): Declare the exception registration
24021         record and initialize it by calling __gnat_install_SEH_handler.
24022
24023 2005-02-09  Vincent Celier  <celier@adacore.com>
24024
24025         * make.adb (Gnatmake): Do not fail when the main project has no object
24026         directory.
24027
24028 2005-02-09  Doug Rupp  <rupp@adacore.com>
24029
24030         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
24031         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
24032         [VMS]: Add translations for g-enblsp.adb.
24033
24034         * s-asthan-vms.adb: Removed.
24035         * s-asthan-vms-alpha.adb: Added.
24036
24037 2005-02-09  Pascal Obry  <obry@adacore.com>
24038
24039         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
24040         (LIBGNAT_OBJS): Add seh_init.o.
24041
24042 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24043
24044         PR ada/16592
24045         * Makefile.in: Link all gnat tools with -static-libgcc, since
24046         -shared-libgcc is now used by default on some systems (e.g. linux with
24047         recent binutils).
24048         Remove references to Makefile.prolog/generic, no longer used.
24049
24050 2005-02-09  Vincent Celier  <celier@adacore.com>
24051
24052         * prj-makr.adb (Process_Directory): Put file name in canonical case
24053         before matching against the patterns.
24054         If gnatname has been invoked as <prefix>-gnatname
24055         then invoke the compiler as <prefix>-gcc, not just "gcc".
24056
24057 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
24058
24059         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
24060         with expansion disabled. The actual subtype is needed among other
24061         places when the selected component appears in the context of a loop
24062         bound, and denotes a packed array.
24063         (Operator_Check): Always use the first subtype in the
24064         error message, to avoid the appearance of internal base types.
24065         (Transform_Object_Operation): Copy each actual in full
24066         to the parameter associations of the constructed call, rather than
24067         using the shallow copy mechanism of New_Copy_List. This ensures that
24068         the chaining of named associations is done properly.
24069         (Complete_Object_Operation): Rewrite node, rather than
24070         replacing it, so that we can trace back to the original selected
24071         component.
24072
24073         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
24074         and calls that use object notation, if the called function is not
24075         declared  in a withed unit, place the elaboration constraint on the
24076         unit in the context that makes the function accessible.
24077         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
24078         imposes an elaboration constraint between two packages.
24079
24080 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
24081
24082         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
24083         views of a private type after handling its private dependents, to
24084         maintain proper stack discipline between entry and exit from the
24085         package.
24086
24087 2005-02-09  Cyrille Comar  <comar@adacore.com>
24088
24089         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
24090         Minor reformatting.
24091
24092 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24093
24094         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
24095         fields for foreign threads.
24096
24097 2005-02-09  Doug Rupp  <rupp@adacore.com>
24098
24099         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
24100         recursion warnings when compiled with -gnatdm.
24101
24102 2005-02-09  Robert Dewar  <dewar@adacore.com>
24103
24104         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
24105         Slight fix to documentation of -gnaty with no parameters
24106
24107         * xr_tabls.ads: Add ??? comment for missing overall comment
24108
24109         * xsinfo.adb: Make default file name be sinfo.h, since this is what
24110         we now use by default.
24111
24112         * xsnames.adb: Adjust end of file test to look for five space followed
24113         by '#' instead of six spaces. The format of xsnames.adb was modified
24114         in the last update.
24115
24116         * a-numeri.ads: Add reference to AI-388 for greek letter pi
24117         identifier.
24118
24119         * clean.adb: Minor reformatting.
24120
24121         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
24122         gnatname.adb: Minor reformatting
24123         Add 2005 to copyright output when utility is run
24124
24125         * csets.adb: Eliminate obsolete comment
24126
24127         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
24128         Update comments.
24129
24130         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
24131
24132 2005-02-09  Sergey Rybin  <rybin@adacore.com>
24133
24134         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
24135         the difference between compact and incompact layout and add the record
24136         representation clause to the example illustrating different layouts.
24137         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
24138         component clauses").
24139
24140 2005-02-09  Florian Villoing  <villoing@adacore.com>
24141
24142         * gnat_ugn.texi: Fix typos.
24143         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
24144         @file.
24145         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
24146         in the generated documentation.
24147
24148 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24149
24150         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
24151         longer supported.
24152         Update linker wrapper when linking with non GNU C++.
24153
24154 2005-02-09  Pascal Obry  <obry@adacore.com>
24155
24156         * gnat_ugn.texi:
24157         Document the procedure to debug the DllMain routine on Windows.
24158         Add note about -funwind-tables and mixed Ada and C/C++ programming in
24159         ZCX mode.
24160         Document new BIND qualifer /RETURN_CODES=VMS.
24161
24162 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
24163
24164         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24165         Edited gnatmetric chapter
24166
24167 2005-02-09  Robert Dewar  <dewar@adacore.com>
24168
24169         * gnat_rm.texi:
24170         Changes to document new wide wide character support
24171         For AI-285
24172         Update documentation on Normalize_Scalars and Initialize_Scalars
24173
24174 2005-02-09  Pascal Obry  <obry@adacore.com>
24175
24176         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
24177
24178 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
24179
24180         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
24181         from the VxWorks kernel) that is needed for getting the active
24182         priority of the different tasks.
24183
24184         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
24185         Use a pragma Elaborate_Body in the spec file instead.
24186         Noticed by code reading.
24187
24188 2005-02-09  Thomas Quinot  <quinot@adacore.com>
24189
24190         * exp_util.ads: Minor correction in comment.
24191
24192 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24193
24194         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
24195         since this procedure is now too complex to be worth inlining.
24196
24197 2005-02-09  Richard Henderson  <rth@redhat.com>
24198
24199         * utils.c (gnat_define_builtin): Remove.
24200         (gnat_install_builtins): Use build_common_builtin_nodes.
24201
24202 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24203
24204         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24205         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
24206         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
24207         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
24208         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
24209         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
24210         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
24211         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
24212         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
24213         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
24214         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
24215         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
24216         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
24217         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
24218         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
24219         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
24220         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
24221         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
24222         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
24223         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
24224         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
24225         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
24226         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
24227         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
24228         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
24229         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
24230         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
24231         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
24232         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
24233         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
24234         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
24235         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
24236         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
24237         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
24238         library.
24239
24240 2005-01-27  Laurent Guerby  <laurent@guerby.net>
24241
24242         * Makefile.in: Fix a-intnam.ads from previous commit,
24243         add 2005 to copyright.
24244         * a-intman-rtems.ads: Renamed to...
24245         * a-intnam-rtems.ads:
24246
24247 2005-01-27  Laurent Guerby  <laurent@guerby.net>
24248
24249         * Makefile.in: Rename GNAT RTEMS specific files.
24250         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
24251         5rosinte.ads, 5rparame.adb: Replaced by files below.
24252         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
24253         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
24254
24255 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
24256             Laurent Guerby  <laurent@guerby.net>
24257
24258         PR ada/19488
24259         * 5rosinte.ads: Add No_Key constant.
24260         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
24261         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
24262
24263 2005-01-26  Laurent Guerby  <laurent@guerby.net>
24264
24265         PR ada/19414
24266         * i-cobol.adb (Valid_Numeric): Handle zero length case.
24267
24268 2005-01-20  Richard Henderson  <rth@redhat.com>
24269
24270         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
24271         a-intnam-linux.ads and system-linux-alpha.ads.
24272         * a-intnam-linux-alpha.ads: Remove file.
24273         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
24274         * system-linux-alpha.ads: New file.
24275
24276 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
24277
24278         PR ada/13470
24279         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
24280         set to the new string.
24281
24282 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
24283
24284         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
24285         to True.
24286
24287 2005-01-18  Richard Henderson  <rth@redhat.com>
24288
24289         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
24290         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
24291         for alpha-linux.
24292         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
24293
24294 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
24295
24296         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
24297         (GCC_ZCX_Support): Likewise.
24298
24299 2005-01-11  Bastian Blank  <waldi@debian.org>
24300
24301         * system-linux-s390.ads: Define Preallocated_Stacks.
24302         * system-linux-s390x.ads: Likewise.
24303
24304 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
24305
24306         * gnat_ugn.texi: Fix texi errors with null variables.
24307
24308 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24309
24310         * gen-soccon.c: New utility program to generate g-soccon.ads
24311         automatically.
24312
24313         * socket.c, gsocket.h: Split inclusion of system header files into a
24314         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
24315
24316         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24317         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24318         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
24319         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
24320         should not be edited by hand anymore, but should be regenerated using
24321         gen-soccon.
24322
24323 2005-01-03  Robert Dewar  <dewar@adacore.com>
24324             Ed Schonberg  <schonberg@adacore.com>
24325             Vincent Celier  <celier@adacore.com>
24326
24327         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24328         on/off, since this is an obsolescent feature, for which we now generate
24329         a warning.
24330
24331         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24332         warning mode is set and obsolescent usage of this attribute occurs.
24333         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24334         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24335         predates, and partly motivates, the adoption of the AI.
24336         Implement new Ada 2005 attribute Mod
24337
24338         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24339         attribute Mod.
24340
24341         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24342
24343         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24344         pragma restrictions.
24345         New entry for Ada 2005 attribute Mod.
24346
24347         * par-prag.adb:
24348         Add recognition of new pragma Restrictions No_Dependence
24349         Recognize restriction No_Obsolescent_Features at parse time
24350
24351         * bcheck.adb: Add circuitry for checking for consistency of
24352         No_Dependence restrictions.
24353
24354         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24355         restrictions.
24356
24357         * restrict.ads, restrict.adb: Add subprograms to deal with
24358         No_Dependence restrictions.
24359
24360         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24361         restrictions.
24362
24363         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24364         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24365
24366         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24367         dummy parameter to scng instantiation.
24368         Needed for new restriction No_Obsolescent_Features
24369
24370         * scn.adb: (Obsolescent_Check): New procedure
24371         Needed for new restriction No_Obsolescent_Features
24372
24373         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24374         specified by AI-285, needed for implementation of AI-388 (adding greek
24375         pi to Ada.Numerics).
24376         Add new generic formal to scng, needed for new restriction
24377         No_Obsolescent_Features.
24378
24379         * s-rident.ads: Add new restriction No_Obsolescent_Features.
24380
24381         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24382         restrictions lines.
24383         (Scan_ALI): When finding an unexpected character on an R line, raise
24384         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24385         Ignore_Errors is True, default restrictions are set and scanning of the
24386         ALI file continues with the next line. Also, when Bad_R_Line is raised
24387         and Ignore_Errors is True, skip to the end of le line.
24388
24389         * sem_ch10.adb: Check that explicit with's do not violate
24390         No_Dependence restrictions.
24391         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24392         illegal context clauses containing child units of instance.
24393
24394         * sem_prag.adb: Processing and checking for new No_Dependence
24395         restrictions.
24396         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24397         analyze and check the External argument.
24398
24399         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24400
24401 2005-01-03  Robert Dewar  <dewar@adacore.com>
24402
24403         * atree.adb: Add a fifth component to entities
24404         This allows us to add 32 flags and four new fields
24405
24406         * atree.ads: Add a fifth component to entities
24407         This allows us to add 32 flags and four new fields
24408
24409         * einfo.ads, einfo.adb: Document new fields and new flags now available
24410         Add routines for printing new fields
24411
24412         * treepr.adb: Call routines to print out additional fields if present
24413
24414 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24415
24416         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24417         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24418
24419         * Makefile.in: Add support to build shared Ada libraries on solaris x86
24420         Remove gpr2make, replaced by gprmake.
24421         Remove references to gnatmem and libaddr2line.
24422         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24423         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24424         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24425         a-numaux-darwin.ads and a-numaux-darwin.adb
24426         Enable mlib-tgt-lynxos.adb on lynxos.
24427
24428         * Make-lang.in: Remove rules for gpr2make.
24429         When generating sdefault.adb, do not call Relocate_Path
24430         on S3 for function Target_Name, as it is not a path.
24431         Remove references to gnatmem and libaddr2line.
24432
24433         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24434         files.
24435
24436 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
24437
24438         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24439         address is incompatible with its base type alignment constraints when
24440         this can be decided statically.
24441
24442 2005-01-03  Olivier Hainque  <hainque@adacore.com>
24443
24444         * decl.c (compatible_signatures_p): New function. The intended purpose
24445         is to check if two function signatures for a call-site and a callee are
24446         compatible enough for the call to be valid. The underlying purpose is
24447         to check if a call to a mapped builtin is using the right interface.
24448         The current code actually does not check antyhing - this a placeholder
24449         for future refinements.
24450         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24451         builtin calls for convention Intrinsic.
24452
24453         * gigi.h (builtin_decl_for): Declare (new function).
24454
24455         * utils.c (gnat_install_builtins): Install the target specific builtins.
24456         (builtin_decl_for): New function, provide a dummy body for now.
24457
24458 2005-01-03  Geert Bosch  <bosch@adacore.com>
24459
24460         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24461         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24462         (Pred): Implement in terms of Succ.
24463
24464         * trans.c (convert_with_check): Reimplement conversion of float to
24465         integer.
24466
24467 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24468             Vincent Celier  <celier@adacore.com>
24469
24470         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24471         bounds can be negative, and must be declared Int, not Nat.
24472
24473         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24474         array is checked after using the index in the array.
24475
24476         * makegpr.adb (Add_Switches): Check if there is a package for the
24477         processor. If there is no package, do not look for switches.
24478
24479 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24480
24481         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24482         generation of predefined stream operations (specs and bodies) should
24483         proceed. Under various restrictions these subprograms must not be
24484         generated.
24485
24486 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24487
24488         * exp_dist.adb:
24489         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24490         amount of PCS-specific code in RACW stubs generation.
24491         (Copy_Specification): Set Etype on copied formal parameter entities, as
24492         this information is needed for PolyORB stubs generation.
24493         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24494         variable Dynamic_Async.
24495         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24496         (Build_RPC_Receiver_Specification): Make generic again, as recent
24497         changes have allowed RPC receivers to have the same profile for both
24498         variants of the PCS.
24499         Reorganise RPC receiver generation to reduce differences between the
24500         structure of GARLIC and PolyORB RPC receivers.
24501         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24502         PCS-specific.
24503         Simplify elaboration code for RCI packages.
24504
24505         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24506         generation to reduce differences between the structure of GARLIC and
24507         PolyORB RPC receivers.
24508
24509         * s-stratt.adb: Fix typo in comment.
24510
24511 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24512
24513         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24514         copied from Make_Init_Call).
24515
24516         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24517         reads and assignments on a temporary variable declared with appropriate
24518         discriminants.
24519
24520 2005-01-03  Robert Dewar  <dewar@adacore.com>
24521
24522         * i-c.adb (To_C): Raise CE if string is null and Append_Null
24523
24524 2005-01-03  Robert Dewar  <dewar@adacore.com>
24525
24526         * i-cstrin.adb (Update): Do not append a null in form called with a
24527         String. This avoids unintended behavior.
24528
24529 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24530
24531         PR ada/17527
24532         * init.c: Fix warnings on Free BSD section.
24533
24534 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24535
24536         PR ada/16949
24537         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24538         xsinfo.adb).
24539
24540 2005-01-03  Vincent Celier  <celier@adacore.com>
24541
24542         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24543         libraries when Unique_Compile is True (-u switch).
24544         (Gnatmake): ditto.
24545
24546 2005-01-03  Robert Dewar  <dewar@adacore.com>
24547
24548         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24549         upper case letter or underscore after W, as allowed by spec.
24550
24551 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24552
24553         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24554         darwin port by using proper type definitions from header files.
24555         Use SIGTERM instead of SIGABRT for SIGADAABORT.
24556
24557 2005-01-03  Robert Dewar  <dewar@adacore.com>
24558
24559         * par.adb: Enhance error message handling for configuration file
24560         pragmas.
24561
24562 2005-01-03  Robert Dewar  <dewar@adacore.com>
24563
24564         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24565         removed during the previous update (test properly for case of dividing
24566         largest negative number by -1, which generates overflow).
24567
24568 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24569             Sergey Rybin  <rybin@adacore.com>
24570
24571         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24572         to use as the defining identifier for a formal package.
24573         (Remove_Parent): If the instance takes place within (an instance of)
24574         a sibling, preserve private declarations of common parent.
24575
24576 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24577
24578         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24579         to determine whether one of the operands is a fixed-point type for
24580         which a user-defined multiplication or division operation might be
24581         defined.
24582
24583         * sem_res.adb (Valid_Conversion): The legality rules for conversions
24584         of access types are symmetric in Ada 2005: either designated type can
24585         be unconstrained.
24586
24587 2005-01-03  Vincent Celier  <celier@adacore.com>
24588
24589         * s-fileio.adb (Temp_File_Record): Change length of string component
24590         Name from L_tmpnam + 1 to max_path_len + 1.
24591
24592 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24593
24594         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24595         Self_Id.Deferral_Level = 0.
24596         (Do_Pending_Action): Move this function to the spec.
24597
24598         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24599         Do_Pending_Action explicitely when needed, in case we're using
24600         No_Abort restrictions.
24601
24602         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24603         deferral level since it will not get changed by the generated code.
24604         Keeping a default value of 1 would prevent some operations (e.g.
24605         select or delay) to proceed successfully.
24606
24607 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
24608             Robert Dewar  <dewar@adacore.com>
24609             Cyrille Comar  <comar@adacore.com>
24610
24611         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24612         porting guide chapter (vms version).
24613         Revised doc title (removed "for native platforms") and subtitle.
24614         Add discussion on warning flag for obsolescent features. First we
24615         note that it applies to obsolete GNAT features, which was previously
24616         omitted. Second we contrast the behavior with that of the new
24617         Ada 2005 AI-368 restriction No_Obsolescent_Features.
24618         Preliminary rewriting of GNAT & libraries chapter in order to take
24619         into account default project locations & new project manager
24620         capabilities.
24621
24622 2005-01-03  Robert Dewar  <dewar@adacore.com>
24623
24624         * cstand.adb (Create_Operators): Clean up format and documentation of
24625         unary and binary operator result tables. No change in code, just
24626         reformatting and addition of comments.
24627
24628         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24629         sem_ch2.adb: Minor reformatting
24630
24631         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24632         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24633         comments for Tree_Read and Tree_Write.
24634
24635 2005-01-03  Pascal Obry  <obry@adacore.com>
24636
24637         * exp_attr.ads: Minor reformatting.
24638
24639 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
24640
24641         * comperr.adb (Compiler_Abort): Add specialized message for GAP
24642         versions.
24643
24644 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24645
24646         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24647         whether the ancestor type is private, as may be the case with nested
24648         instantiations.
24649
24650 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
24651
24652         PR ada/19128
24653         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24654
24655 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
24656
24657         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24658         * utils2.c (build_unary_op): Likewise.
24659
24660 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24661
24662         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24663
24664 2004-12-19  Richard Henderson  <rth@redhat.com>
24665
24666         * trans.c (gigi): Update gimplify_body call.
24667
24668 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
24669
24670         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24671
24672 2004-12-07  Ed Falis  <falis@adacore.com>
24673
24674         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24675         current task being suspended.
24676
24677         * init.c (__gnat_clear_exception): added to reset VxWorks exception
24678         count.
24679         (__gnat_map_signal): removed test for current task being suspended.
24680
24681 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24682
24683         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24684         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24685         targets (such as AAMP).
24686
24687 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24688
24689         * atree.adb (Visit_Itype): Create a new name for the generated itype,
24690         because the back-end may otherwise treat it as a redefinition of the
24691         old symbol.
24692
24693 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
24694
24695         * back_end.adb (Scan_Back_End_Switches): Accept --param.
24696
24697         * lang-specs.h: Accept --param.
24698
24699 2004-12-07  Vincent Celier  <celier@adacore.com>
24700
24701         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24702         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24703         Current_Body_Suffix => Ada_Body_Suffix).
24704         Take into account Externally_Built attribute.
24705
24706         * clean.adb (In_Extension_Chain): Always return False when one of the
24707         parameter is No_Project.
24708         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24709         Ada_Language_Index).
24710         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24711         Process_Languages for procedure Parse).
24712
24713         * gnatcmd.adb (Carg_Switches): New table.
24714         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24715         Adapt to name changes in package Prj (Current_Spec_Suffix =>
24716         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24717
24718         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24719         Header_Num and function Hash are now declared in package Prj,
24720         not Prj.Com.
24721
24722         * prj.adb (Suffix_Of): New function.
24723         (Set (Suffix)): New procedure.
24724         (Hash): One function moved from Prj.Com
24725         (Is_Present, Language_Processing_Data_Of): New functions
24726         (Set): Two new procedures
24727         (Add_Language_Name, Display_Language_Name): New procedures
24728
24729         * prj.ads: (Suffix_Of): New function
24730         (Set (Suffix)): New procedure
24731         Add several types and tables for multi-language support.
24732         (Header_Num): Type moved from Prj.Com
24733         (Hash): Two functions moved from Prj.Com
24734         (Is_Present, Language_Processing_Data_Of): New functions
24735         (Set): Two new procedures
24736         (Add_Language_Name, Display_Language_Name): New procedures
24737         (Naming): Component name changes:
24738         Current_Spec_Suffix => Ada_Spec_Suffix,
24739         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24740         Impl_Suffixes, Supp_Suffixes.
24741         (Project_Data): New components: Externally_Built, Supp_Languages,
24742         First_Language_Processing, Supp_Language_Processing, Default_Linker,
24743         Default_Linker_Path.
24744
24745         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24746         new package Language_Processing with its attributes (Compiler_Driver,
24747         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24748         Binder_Driver, Default_Linker).
24749
24750         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24751         (Header_Num): Type moved to package Prj
24752
24753         * prj-env.adb: Adapt to name changes in package Prj
24754         (Current_Spec_Suffix => Ada_Spec_Suffix,
24755         Current_Body_Suffix => Ada_Body_Suffix).
24756
24757         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24758         default to the project path, except the "-" is one of the directories
24759         in env var ADA_PROJECT_PATH.
24760         (Current_Project_Path): Global variable, replacing Project_Path
24761         that was in the body of Prj.Part.
24762         (Project_Path): New function
24763         (Set_Project_Path): New procedure
24764         Initialize Current_Project_Path during elaboration of the package
24765         Remove dependency on Prj.Com, no longer needed
24766
24767         * prj-ext.ads (Project_Path): New function
24768         (Set_Project_Path): New procedure
24769
24770         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24771         suffix is defined for language <lang>.
24772         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24773         accessing directly the components of Naming.
24774         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24775         Reorganise of this package.
24776         Break procedure Check in several procedures.
24777
24778         * prj-nmsc.ads: Replace all procedures (Ada_Check,
24779         Other_Languages_Check and Language_Independent_Check) with a single
24780         procedure Check.
24781
24782         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24783         Process_Languages, no longer needed.
24784
24785         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24786         Current_Project_Path.
24787         Remove elaboration code, moved to the body of Prj.Ext
24788         Use new function Prj.Ext.Project_Path instead of old variable
24789         Project_Path.
24790         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24791         When comparing with project paths on the stack, first put the resolved
24792         path in canonical case.
24793         (Parse_Single_Project): Set the path name of the project file in the
24794         tree to the normalized path.
24795
24796         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24797         parameter Process_Languages, no longer needed.
24798         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24799         Other_Languages_Check.
24800
24801         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24802         to store the resolved canonical path of the project file.
24803         Remove dependency to Prj.Com, no longer needed
24804
24805         * prj-util.adb: Adapt to name changes in package Prj
24806         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24807         Ada_Body_Suffix).
24808
24809         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24810         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24811         Externally_Built, Include_Option, Language_Processing.
24812
24813         * makegpr.adb: Numerous changes due to changes in packages
24814         Prj and Prj.Nmsc.
24815
24816         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24817         default to the project path, except whe "-" is one of the directories
24818         in env var ADA_PROJECT_PATH.
24819         (Gnatls): In verbose mode, add the new section "Project Search Path:"
24820
24821 2004-12-07  Robert Dewar  <dewar@adacore.com>
24822
24823         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24824
24825         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24826         set -gnatR3m mode.
24827
24828         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24829         flag. No longer needed now that we handle this in gnat1drv.adb.
24830
24831         * repinfo.ads: Minor reformatting
24832
24833 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24834             Olivier Hainque  <hainque@adacore.com>
24835             Eric Botcazou  <ebotcazou@adacore.com>
24836
24837         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24838         TYPE_SIZE_UNIT of result type if SIZE is not specified.
24839         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24840         of a bitfield, which we know is useless and causes trouble because of
24841         alignment implications.
24842
24843         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24844         BSS sections.
24845         (process_attributes): Clear DECL_COMMON again when a section attribute
24846         is present.
24847         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24848         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24849         (create_field_decl): Special case ADDRESSABLE negative to mean
24850         "no bitfield creation", to be used by make_aligning_type. Don't
24851         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24852         fields claimed addressable still have to be bitfields. Use
24853         value_factor_p instead of a raw binop construction to check for the
24854         position's alignment.
24855
24856 2004-12-07  Geert Bosch  <bosch@adacore.com>
24857
24858         * eval_fat.adb: Revert previous change.
24859
24860 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24861             Ed Schonberg  <schonberg@adacore.com>
24862
24863         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24864         with an implicit dereference as its prefix, use
24865         Insert_Explicit_Dereference instead of merely rewriting the prefix into
24866         an explicit dereference. This ensures that a reference to the original
24867         prefix is generated, if appropriate.
24868
24869         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24870         dereference is rewritten to an explicit one, generate a reference to
24871         the entity denoted by its prefix using the original prefix node, so
24872         the dereference can be properly recorded as a read of the denoted
24873         access value, if appropriate.
24874
24875         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24876         emitting 'assigned but never read' warning on a variable on the basis
24877         that it has an access type.
24878         (Check_References): Emit unreferenced warning when the scope is a
24879         subprogram body.
24880
24881 2004-12-07  Robert Dewar  <dewar@adacore.com>
24882             Ed Schonberg  <schonberg@adacore.com>
24883
24884         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24885         intrinsic
24886
24887         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24888         leaving call unchanged.
24889         This deals with the case where the pragma Import specified
24890         an external name, to be handled by the back end.
24891
24892         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24893         subprogram which is Imported with convention Intrinsic if an
24894         External_Name argument is specified.
24895         (Process_Import_Or_Interface): Properly diagnose link name argument.
24896         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24897         with Sem_Ch6.Cannot_Inline.
24898         (Process_Inline): Provide separate warning for inapplicable inline
24899         pragma.
24900         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24901         treatment is uniform on different targets.
24902
24903 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24904
24905         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24906         construct is rewritten, preserve end label to permit source navigation.
24907
24908 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24909
24910         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24911         Specific_Build_Stub_Target): New subprograms.
24912         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24913         the PCS implementation used, using the above PCS-customized subprograms.
24914         Minor reformatting.
24915         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24916         for generation of DSA code targeted to the PolyORB PCS.
24917         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24918         implementation of the partition communication subsystem in ancillary
24919         subprograms.
24920         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24921         PolyORB_Support.Build_Stub_Type): New subrograms containing the
24922         PCS-specific part of Add_Stub_Type.
24923         (Insert_Partition_Check): Use runtime library function to perform
24924         E.4(19) check.
24925
24926         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24927         (RE_Same_Partition): New entity, from s-parint.
24928
24929         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24930
24931 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24932
24933         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24934         Output the copyright message on a separate line from the version
24935         message.
24936
24937 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
24938
24939         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24940         compile-time warning.
24941
24942 2004-12-07  Robert Dewar  <dewar@adacore.com>
24943
24944         * g-regpat.adb: (Match): Change a misuse of or to or else
24945
24946 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24947
24948         * lib-xref.adb:
24949         (Generate_Reference): Handle properly a reference to an entry formal,
24950          when an accept statement has a pragma Unreferenced for it.
24951
24952         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24953         and the Has_Pragma_Unreferenced flag for each formal before analyzing
24954         the body, to ensure that warnings are properly emitted for each accept
24955         statement of a given task entry.
24956
24957 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
24958
24959         * Makefile.in: Add support for foreign threads on VMS.
24960
24961 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24962
24963         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24964         Remove.
24965         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24966
24967         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24968
24969         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24970         exception.
24971         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24972
24973 2004-12-07  Robert Dewar  <dewar@adacore.com>
24974
24975         * nlists.adb (Prepend_Debug): Remove parameters and nest within
24976         Prepend.
24977         (Remove_Next_Debug): Same fix
24978
24979         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24980         maintain back pointers now, though we did not used to, and comments
24981         were out of date).
24982         (Prepend): Remove pragma Inline.
24983         (Remove_Next): Same cleanup
24984
24985 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24986
24987         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24988         used to record an implicit dereference as a read operation on its
24989         prefix when operating under -gnatc. Necessary to avoid spurious
24990         'variable assigned but never read' warnings in that mode.
24991         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24992         is a non-overloaded implicit dereference, call the above subprogram to
24993         ensure proper recording of references.
24994
24995 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24996
24997         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24998         to be resolved later as part of Analyze_Iteration_Scheme's call to
24999         Make_Index.
25000
25001 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
25002
25003         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
25004         prefix is not a scalar type, place error message on prefix, not on
25005         type entity.
25006
25007 2004-12-07  Bernard Banner  <banner@adacore.com>
25008
25009         * vxaddr2line.adb: Add support for x86 vxworks
25010
25011 2004-12-07  Thomas Quinot  <quinot@adacore.com>
25012
25013         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
25014         documentation of the behaviour of these functions when passed an IP
25015         address that has no record in the system hosts database and no reverse
25016         record in the DNS.
25017
25018         * cstand.adb, a-tags.ads: Fix typos in comment.
25019
25020 2004-12-07  Robert Dewar  <dewar@adacore.com>
25021
25022         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
25023         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
25024         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
25025         s-poosiz.ads: Minor reformatting
25026
25027         * make.adb: Minor reformatting
25028         Add some ??? comments asking for more comments
25029
25030         * s-poosiz.adb: Minor reformatting
25031         Add comments on alignment requirement
25032
25033         * sinfo.ads: Remove obsolete comment and fix typo.
25034
25035 2004-12-07  Vincent Celier  <celier@adacore.com>
25036             Sergey Rybin  <rybin@adacore.com>
25037
25038         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
25039         Files" with the new tool and package names.
25040         Reformatting to suppress most of the warnings for line too long
25041         Document the new section "Project Search Path:" in the output of
25042         gnatls -v.
25043         Add gnatmetric section
25044
25045 2004-12-07  Vincent Celier  <celier@adacore.com>
25046
25047         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
25048         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
25049         and -eit to -ept. Added qualifier
25050         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
25051
25052 2004-11-27  Andreas Schwab  <schwab@suse.de>
25053
25054         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
25055
25056 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
25057
25058         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
25059         internal implementation unit GNAT.Sockets.Thin,
25060         as their usage for sockets is non-portable (using the read and write
25061         functions from the system runtime library is fine on UNIX but won't
25062         work under Windows).
25063
25064         * mingw32.h: Update copyright notice.
25065
25066 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
25067
25068         * ada-tree.h: Minor reformatting of previous change to avoid lines
25069         longer than 79 characters.
25070
25071 2004-11-25  Olivier Hainque  <hainque@adacore.com>
25072
25073         * tb-gcc.c: GCC infrastructure based implementation of
25074         __gnat_backtrace.
25075
25076 2004-11-24  Steven Bosscher  <stevenb@suse.de>
25077
25078         * misc.c (gnat_post_options): Don't clear
25079         flag_inline_functions.
25080
25081 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
25082
25083         PR ada/17986
25084         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
25085         tree.
25086
25087 2004-11-21  Andreas Jaeger  <aj@suse.de>
25088
25089         * stylesw.adb: Change Style_Check_Subprogram_Order to
25090         Style_Check_Order_Subprograms.
25091
25092 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
25093
25094         * adaint.h, adaint.c
25095         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
25096         to avoid warnings.
25097         Add also a cast to kill another warning.
25098         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
25099         parameter with the priority class of the parent process instead of
25100         always using the NORMAL_PRIORITY_CLASS.
25101         (__gnat_dup): New function.
25102         (__gnat_dup2): New function.
25103         (__gnat_is_symbolic_link): Enable the effective body of this
25104         function when __APPLE__ is defined.
25105
25106         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
25107         Update comments.
25108
25109 2004-11-18  Olivier Hainque  <hainque@adacore.com>
25110
25111         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
25112         address of which may be used to represent "others" and "all others"
25113         choices in exception tables, instead of the current harcoded
25114         (void *)0 and (void *)1.
25115         (Setup_Exception): Do nothing in the GNAT SJLJ case.
25116
25117         * gigi.h (others_decl, all_others_decl): New decls representing the
25118         new Others_Value and All_Others_Value objects.
25119         (struct attrib): Rename "arg" component as "args", since GCC expects a
25120         list of arguments in there.
25121
25122         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
25123         corresponding objects exported by a-exexpr, instead of hardcoded dummy
25124         addresses.
25125
25126         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
25127         others_decl and all_others_decl instead of hardcoded dummy addresses
25128         to represent "others" and "all others" choices, which is cleaner and
25129         more flexible with respect to the possible eh pointer encoding policies.
25130
25131         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
25132         (process_attributes): Account for the naming change of the "args"
25133         attribute list entry component.
25134
25135         * decl.c (build_attr_list): Rename into prepend_attributes to allow
25136         cumulating attributes for different entities into a single list.
25137         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
25138         attributes for the current entity and propagate first subtype
25139         attributes to other subtypes.
25140         <E_Procedure>: Attribute arguments are attr->args and not
25141         attr->arg any more.
25142         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
25143         argument provided, as this is what GCC expects. Use NULL_TREE instead
25144         of 0 for trees.
25145
25146 2004-11-18  Robert Dewar  <dewar@adacore.com>
25147
25148         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
25149         Minor reformatting througout (including new function specs)
25150         Add ??? comments asking for clarification.
25151
25152 2004-11-18  Thomas Quinot  <quinot@adacore.com>
25153
25154         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
25155         incomplete duplicate implementation of this subprogram from butil.
25156
25157 2004-11-18  Thomas Quinot  <quinot@adacore.com>
25158
25159         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
25160         procedures factors the common processing for building an RPC receiver
25161         for an RCI package or an RACW type.
25162         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
25163         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
25164         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
25165         in use.
25166         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
25167         Add_RACW_Features.
25168         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
25169         Add_RAST_Features.
25170         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
25171         distribution subprogram identifiers that are either subprogram numbers
25172         or strings.
25173         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
25174         string distribution identifiers assigned to a given subprogram.
25175         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
25176         (Add_RAS_Dereference_TSS): Add comments.
25177         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
25178         is not referenced yet because it will be used by the PolyORB DSA
25179         implementation.
25180         (Insert_Partition_Check): Remove fossile code.
25181         (First_RCI_Subprogram_Id): Document this constant.
25182         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
25183         RAS_Access TSS.
25184         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
25185         replaced with calls to Get_Library_Unit_Name_String. Previously there
25186         were several instances of the same code in different locations in the
25187         compiler; this checkin completes the replacement of all of these
25188         instances with calls to a common subprogram.
25189         Minor reformatting.
25190
25191         * sem_dist.adb: Remove comment noting that RPC receiver generation
25192         should be disabled for RACWs that implement RASs.
25193         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
25194
25195         * sem_util.ads, sem_util.adb (Has_Stream): New function
25196         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
25197         qualified name of a library unit into the name buffer.
25198         (Note_Possible_Modification): Generate a reference only
25199         if the context comes from source.
25200
25201         * snames.ads (PCS_Names): New subtype corresponding to names of
25202         supported implementations of the Partition Communication Subsystem
25203         (PCS) (i.e. the runtime library support modules for the distributed
25204         systems annex).
25205
25206 2004-11-18  Robert Dewar  <dewar@adacore.com>
25207             Ed Schonberg  <schonberg@adacore.com>
25208
25209         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
25210         (Has_Rep_Pragma): New function
25211         (Has_Attribute_Definition_Clause): New function
25212         (Record_Rep_Pragma): Moved here from sem_ch13.adb
25213         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
25214
25215         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
25216
25217         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
25218         (Expand_Pragma_Psect_Object): New procedure
25219         These procedures contain the revised and cleaned up processing for
25220         these two pragmas. This processing was formerly in Sem_Prag, but
25221         is more appropriately moved here. The cleanup involves making sure
25222         that the pragmas are properly attached to the tree, and that no
25223         nodes are improperly shared.
25224
25225         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
25226         pragmas to Exp_Prag, which is more appropriate.
25227         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
25228         check for duplicates Remove use of Is_Psected flag, no longer needed.
25229         Use new Make_String_Literal function with string.
25230
25231         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
25232         that are functions return universal values, that have to be converted
25233         to the context type.
25234         Use new Make_String_Literal function with string.
25235         (Get_Stream_Convert_Pragma): New function, replaces the use of
25236         Get_Rep_Pragma, which had to be kludged to work in this case.
25237
25238         * freeze.adb: Use new Has_Rep_Pragma function
25239
25240         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
25241         function with string.
25242         Use new Has_Rep_Pragma function.
25243
25244         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
25245         string argument.
25246
25247 2004-11-18  Robert Dewar  <dewar@adacore.com>
25248
25249         * errout.ads, errout.adb: (First_Sloc): New function
25250
25251         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
25252         check (-gnatyx) instead of being included as a redundant construct
25253         warning.
25254
25255         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
25256         Style_Check_Order_Subprograms.
25257
25258         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
25259         stylesw.adb: Add Style_Check_Xtra_Parens
25260
25261         * usage.adb: Add line for -gnatyx (check extra parens)
25262
25263         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
25264
25265 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25266             Robert Dewar  <dewar@adacore.com>
25267
25268         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
25269         discriminant of a constrained subtype, analyze the copy of the
25270         corresponding constraint, because in some cases it may be only
25271         partially analyzed.
25272         Removes long-lived ??? comments.
25273
25274         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
25275         handled controlled or secondary-stack expressions within the
25276         iteration_scheme of a loop.
25277
25278         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
25279         bounds that may contain functions calls, to prevent memory leaks when
25280         the bound contains a call to a function that uses the secondary stack.
25281         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
25282         generate temporaries for loop bounds that might contain function calls
25283         that require secondary stack and/or finalization actions.
25284
25285         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
25286         selected component and the selector is overloadable (not just a
25287         function) treat as function call, Analyze_Call will disambiguate if
25288         necessary.
25289         (Analyze_Selected_Component): Do not generate an actual subtype for the
25290         selected component if expansion is disabled. The actual subtype is only
25291         needed for constraint checks.
25292         (Analyze_Allocator): If restriction No_Streams is set, then do
25293         not permit objects to be declared of a stream type, or of a
25294         composite type containing a stream.
25295
25296         * restrict.ads: Remove the a-stream entry from Unit_Array, since
25297         No_Streams no longer prohibits with'ing this package.
25298
25299         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
25300         discriminants, but the parent base has unknown discriminants, there is
25301         no discriminant constraint to inherit. Such a discrepancy can arise
25302         when the actual for a formal type with unknown discriminants is a
25303         similar private type whose full view has discriminants.
25304         (Analyze_Object_Declaration): If restriction No_Streams is set, then
25305         do not permit objects to be declared of a stream type, or of a
25306         composite type containing a stream.
25307
25308 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25309
25310         * exp_dbug.ads: Update documentation to reflect simpler encoding for
25311         protected operations.
25312
25313         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
25314         generated name, it complicates decoding in gdb and hinders debugging
25315         of protected operations.
25316         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
25317         flag for the protected entry barrier function.
25318         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
25319         flag for the protected entry function.
25320
25321 2004-11-18  Nicolas Setton  <setton@adacore.com>
25322
25323         * expect.c: Define __unix__ when __APPLE__ is defined.
25324
25325         * Makefile.in: Inform the value of the variable GMEM_LIB in the
25326         Darwin-specific section.
25327
25328         * lang-specs.h: Change the placement of the %1 marker.
25329         Works around the fact that gcc adds -fPIC by default under Darwin.
25330
25331 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25332
25333         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25334         type of the object with the packed array type, set the Analyzed flag
25335         on the object if it is an entity or simple indexed component, to avoid
25336         spurious type errors.
25337
25338 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
25339
25340         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25341         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25342         separate line from the version message.
25343
25344 2004-11-18  Ed Falis  <falis@adacore.com>
25345
25346         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25347         vthreads.
25348         (init_float): Eliminate initialization of floating point status for
25349         AE653. The instructions have no effect for vThreads.
25350
25351 2004-11-18  Vincent Celier  <celier@adacore.com>
25352
25353         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25354         gnatbind is invoked with -shared.
25355
25356 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
25357
25358         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25359         for Detect_Blocking which is redundant with the check done within the
25360         procedure Protected_Single_Entry_Call.
25361         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25362         Detect_Blocking which is redundant with the check done within the
25363         procedure Protected_Single_Entry_Call.
25364
25365 2004-11-18  Vincent Celier  <celier@adacore.com>
25366
25367         * makegpr.adb (Compile): Put the compiling switches (in package
25368         Compiler and on the command line) immediately after "-c", instead of
25369         at the end of the command line invocation of the compiler, when
25370         compiling a non-Ada file.
25371         (Build_Global_Archive): When there is no need to rebuild the archive,
25372         set Global_Archive_Exists, so that the archive is passed to the linker
25373         if one is needed.
25374
25375 2004-11-18  Robert Dewar  <dewar@adacore.com>
25376             Sergey Rybin  <rybin@adacore.com>
25377
25378         * gnat_ugn.texi:
25379         Remove extra paren check from list of checks for redundant constructs
25380         Add documentation of new -gnatyx style check (check extra parens)
25381         Remove paragraph about gnatelim debug options.
25382
25383         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25384         objects rather than forbidding dependencies on the package Ada.Streams.
25385
25386         * sinfo.ads: Add ??? note that we should document pragmas passed to
25387         back end.
25388
25389         * g-expect.ads: Fix a few typos in the comments.
25390
25391 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
25392
25393         * misc.c (gnat_handle_option): Use %< and %> for quoting in
25394         warning message.
25395
25396 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25397
25398         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25399
25400 2004-11-07  Andreas Schwab  <schwab@suse.de>
25401
25402         * Makefile.in (install-gnatlib): Remove spurious hyphen.
25403
25404 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
25405
25406         PR ada/18228
25407         * Makefile.in (darwin): Set soext to .dylib.
25408
25409 2004-10-26  Vincent Celier  <celier@gnat.com>
25410             Thomas Quinot   <quinot@act-europe.fr>
25411
25412         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25413         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25414         there is no use of GNAT.Sockets.Constants.
25415         Remove remaining pragma Import for C_Write
25416         Remove C_Read and C_Write from internal implementation unit
25417         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25418         the read and write functions from the system runtime library is fine
25419         on UNIX but won't work under Windows).
25420
25421         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25422         (Check_Selector): Use C_Recv instead of C_Read.
25423         Selectors are the GNAT.Sockets abstraction to perform a select()
25424         call on a set of descriptors. To allow abortion of an ongoing
25425         select operation, some data is written to a dedicated socket that
25426         is always monitored.
25427         Under Windows, the write and read library functions cannot operate
25428         on sockets, so we need to use send and recv instead, which is portable
25429         across all supported platforms.
25430
25431         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25432         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25433         (using the read and write functions from the system runtime library is
25434         fine on UNIX but won't work under Windows).
25435
25436 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
25437
25438         * mlib-tgt-darwin.adb: New file.
25439
25440         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25441         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25442         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25443         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25444         subprogram body.
25445
25446         * Makefile.in: Add support for building shared libraries under Darwin.
25447         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25448         the low level EH init subprogram to be called from __gnat_initialize.
25449
25450         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25451         indicates which options to pass to the archive indexer.
25452
25453         * mlib-utl.adb: Add support for calling ranlib with additional
25454         options. This is needed for instance under Mac OS X.
25455         (Ranlib_Options): New global variable, used to store the potential
25456         options to pass to ranlib.
25457         (Ar): Use Ranlib_Options when spawning ranlib.
25458         (Initialize): Set the value of ranlib option.
25459
25460 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25461
25462         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25463         instead of 8K, to reflect the real potential needs for stack-checking
25464         in the ZCX case.
25465
25466 2004-10-26  Pascal Obry  <obry@gnat.com>
25467
25468         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25469
25470         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25471         Windows only the initial thread stack size can be set so it is good to
25472         start we a low stack size.
25473         The OS will adjust the size as needed.
25474
25475 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25476             Nicolas Setton  <setton@act-europe.fr>
25477
25478         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25479         "__unix__" instead of "unix".
25480         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25481         sections were just mistakenly ignored. The former is
25482         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25483         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25484         of hpux. This prevents an unwanted definition of the symbol
25485         convert_addresses in adaint.o.
25486
25487 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25488
25489         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25490         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25491
25492 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25493
25494         * a-filico.ads, a-filico.adb: fix incorrect header.
25495
25496 2004-10-26  Javier Miranda  <miranda@gnat.com>
25497
25498         * a-ststio.ads: Fix typo in identifier
25499
25500 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25501
25502         * sem_ch4.adb: Minor reformatting.
25503
25504 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25505
25506         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25507         enabled, check the result of unary and binary operations when the
25508         expression is the right-hand side of an assignment.
25509
25510 2004-10-26  Vincent Celier  <celier@gnat.com>
25511
25512         * clean.adb (Delete): Do not output warnings when in quiet output and
25513         not in verbose mode.
25514         (Force_Deletions): New Boolean flag, defaulted to False
25515         (Delete): Only delete a file if it is writable, and when
25516         Force_Deletions is True.
25517         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25518         (Usage): Line for new switch -f
25519         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25520         own.
25521
25522 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25523
25524         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25525         JM type only if its size matches that of the wrapper.  When a size is
25526         prescribed and the field is not aliased, remove the wrapper of a JM
25527         type only if the size is not greater than that of the packed array.
25528         (gnat_to_gnu_entity): Change the extension of packed array wrappers
25529         from LJM to JM.
25530
25531 2004-10-26  Geert Bosch  <bosch@gnat.com>
25532
25533         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25534         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25535         (Pred): Implement in terms of Succ.
25536
25537 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25538
25539         * exp_aggr.adb (Safe_Component): An aggregate component that is an
25540         unchecked conversion is safe for in-place use if the expression of the
25541         conversion is safe.
25542         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25543         be expandable in place even if the aggregate does not come from source.
25544         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25545         designated object of an allocator in place, rather than building it
25546         first on the stack. The previous scheme forces a full copy of the array,
25547         and may be altogether unsusable if the size of the array is too large
25548         for stack allocation.
25549
25550 2004-10-26  Robert Dewar  <dewar@gnat.com>
25551
25552         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25553         compares if the component is atomic.
25554
25555         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25556         array assignment if the component type is atomic.
25557
25558 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25559             Eric Botcazou  <ebotcazou@act-europe.fr>
25560
25561         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25562         is aliased and is a by_reference type, do not pass by copy.
25563         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25564         detect whether the call is in the right side of an assignment or
25565         the expression of an object declaration.  Recurse on component
25566         association within aggregates.
25567         Call it in the condition that determines whether the temporary is
25568         necessary for correct stack-checking.
25569
25570 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25571
25572         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25573         RACW_Type, used in the PolyORB version.
25574         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25575         version and the GARLIC version.
25576
25577         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25578         Rename RCI_Info to RCI_Locator for better consistency between the
25579         GARLIC and PolyORB versions of the distributed systems annex.
25580         (DSA_Implementation_Name): This enumeration lists the possible
25581         implementations of the Partition Communication Subsystem for the
25582         Distributed Systems Annex (DSA). The three available implementations
25583         are the dummy stub implementation (No_DSA), and two versions based on
25584         two different distribution runtime libraries: GARLIC and PolyORB. Both
25585         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25586         technology.
25587         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25588         that organization.
25589
25590         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25591         between the GARLIC and PolyORB versions of the distributed systems
25592         annex.
25593         Remove RE_Unbounded_Reclaim_Pool since it is unused.
25594
25595 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25596
25597         * gnat1drv.adb: Suppress calling the back end when
25598         Frontend_Layout_On_Target is true.
25599
25600 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25601
25602         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25603         Set_Read_Only): New subprograms.
25604         These new routines allow the user to set or unset the Owner execute
25605         and Owner write permission flags on a file.
25606
25607         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25608         GNAT.OS_Lib.Set_Executable instead of rolling our own.
25609
25610 2004-10-26  Matthew Gingell  <gingell@gnat.com>
25611
25612         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25613
25614 2004-10-26  Pascal Obry  <obry@gnat.com>
25615
25616         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25617         memory before the faulting page we properly test the process read
25618         access for this address using appropriate Win32 routine.
25619         (HPUX sections): guard with "__hpux__" instead of "hpux".
25620
25621 2004-10-26  Robert Dewar  <dewar@gnat.com>
25622
25623         * lib-xref.adb (Generate_Reference): Don't complain about reference to
25624         entry parameter if pragma Unreferenced set, since we do not properly
25625         handle the case of multiple parameters.
25626
25627 2004-10-26  Vincent Celier  <celier@gnat.com>
25628
25629         * prj-env.adb: (Contains_ALI_Files): New Boolean function
25630         (Ada_Objects_Path.Add): For a library project, add to the object path
25631         the library directory only if there is no object directory or if the
25632         library directory contains ALI files.
25633         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25634
25635 2004-10-26  Vincent Celier  <celier@gnat.com>
25636
25637         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25638         extension of library projects.
25639
25640         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25641         path defaults to ".:<prefix>/lib/gnat".
25642         (Parse): For an extending all project, allow direct import of a project
25643         that is virtually extended.
25644
25645         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25646         the specified name is directly imported, return its ID. Otherwise, if
25647         an extension of this project is imported, return the ID of the
25648         extension.
25649
25650 2004-10-26  Robert Dewar  <dewar@gnat.com>
25651
25652         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25653         (Sub3): New procedure, used by Scaled_Divide
25654         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25655         correct more than one instance of failure to propagate carries
25656         correctly.
25657         (Double_Divide): Handle overflow case of largest negative number
25658         divided by minus one.
25659
25660         * s-arit64.ads (Double_Divide): Document that overflow can occur in
25661         the case of a quotient value out of range.
25662         Fix comments.
25663
25664 2004-10-26  Robert Dewar  <dewar@gnat.com>
25665
25666         * s-bitops.adb (Bit_Eq): Remove redundant check.
25667
25668         * s-bitops.ads: Minor comment updates
25669         Change some occurrences of Address to System.Address
25670
25671         * s-carsi8.ads: Fix minor cut-and-paste error in comments
25672
25673 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25674
25675         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25676         accessibility check to prefix that is a protected operation.
25677
25678 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25679
25680         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25681         empty, post message on stub.
25682
25683 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25684             Javier Miranda  <miranda@gnat.com>
25685
25686         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25687         current instance appears within a unit that is directly in the context
25688         of the main unit.
25689         Used to determine whether the body of the instance should be analyzed
25690         immediately after its spec, to make its subprogram bodies available
25691         for front-end inlining.
25692         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25693         constraint is not allowed on the component type (AARM 12.5.3(3))
25694
25695 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25696
25697         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25698         'Storage_Pool): enhance, document & limit detection of non-sharable
25699         internal pools.
25700
25701         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25702
25703         * s-pooglo.ads: Add more documentation now that this pool is properly
25704         documented.
25705
25706 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25707
25708         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25709         or protected type with discriminants, do not constrain the
25710         corresponding record type if the subtype declaration has no
25711         discriminant constraints. This can be the case in source code, or in
25712         the subtype declaration created to rename an actual type within an
25713         instantiation.
25714
25715 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25716
25717         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25718         different kind of stub (possibly wrong name for file), do not check
25719         for conformance.
25720         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25721         includes call to some function that returns an unconstrained type, do
25722         not inline.
25723
25724 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25725
25726         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25727         appear in the code for the main unit. Dependencies among units in the
25728         context of the main unit are established when those other units are
25729         compiled. Otherwise spurious elaboration constraints can generate
25730         incorrect elaboration circularities.
25731
25732 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25733             Ed Schonberg   <schonberg@gnat.com>
25734
25735         * sem_util.adb (Is_Aliased_View): Defend against the case where this
25736         subprogram is called with a parameter that is not an object name. This
25737         situation arises for some cases of illegal code, which is diagnosed
25738         later, and in this case it is wrong to call Is_Aliased, as that might
25739         cause a compiler crash.
25740         (Explain_Limited_Type): Refine previous fix to include
25741         inherited components of derived types, to provide complete information.
25742
25743         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25744         is the prival for a protected object.
25745         It is necessary to mark this entity as a variable, in addition to
25746         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25747         modified to avoid checking the Aliased flag on entities that are not
25748         objects. (Checking that flag for non-objects is erroneous and could
25749         lead to a compiler crash).
25750
25751 2004-10-26  Robert Dewar  <dewar@gnat.com>
25752
25753         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25754         X_Frac = 0.5, then we know that the number X must be positive.
25755         (Succ): Remove the same redundant test, and also fix the primary test
25756         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25757         Minor reformatting
25758         (Decompose): Add fuller comments to spec
25759
25760 2004-10-26  Pascal Obry  <obry@gnat.com>
25761
25762         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25763         validity (process must have read access). Set to 0 in all other cases.
25764         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25765         violation on Win32.
25766         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25767         segmentation violation.
25768
25769 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25770
25771         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25772         whose type is a constructed subtype of an aliased object with an
25773         unconstrained nominal subtype, convert the actual to the constructed
25774         subtype before taking its address.
25775
25776 2004-10-26  Vincent Celier  <celier@gnat.com>
25777
25778         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25779         (Is_Path_Name_Case_Sensitive): New function
25780
25781         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25782         (Base_Name, Simple_Name, Current_Directory, Compose,
25783         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25784         the result.
25785
25786 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
25787             Vasiliy Fofanov  <fofanov@act-europe.fr>
25788             Vincent Celier   <celier@gnat.com>
25789
25790         * gnat_ugn.texi: Generalize "finding memory problems" section into a
25791         "memory management issues" section and document some of the useful
25792         memory pools provided as part of the GNAT library.
25793         Remove "virtual" from declaration of A::method2 in
25794         the simple example of Ada/C++ mixed system.
25795         Library Projects may be virtually extended: their virtual extensions
25796         are not Library Projects.
25797         Added section on extending project hierarchies.
25798
25799 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25800
25801         * adaint.c (__gnat_get_libraries_from_registry): Cast value
25802         to LPBYTE.
25803         (__gnat_portable_spawn): Remove const.
25804
25805         * mingw32.h (MAXPATHLEN): Check for previous definition.
25806
25807 2004-10-17  Matthias Klose  <doko@debian.org>
25808
25809         * gnatvsn.ads: Set gnat library version to 4.0.
25810
25811 2004-10-05  Vincent Celier  <celier@gnat.com>
25812
25813         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25814
25815 2004-10-04  Laurent Guerby  <laurent@guerby.net>
25816
25817         PR ada/15156
25818         * Makefile.in: Define and use RANLIB_FLAGS.
25819
25820 2004-10-04  Pascal Obry  <obry@gnat.com>
25821
25822         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25823         other x86 platforms).
25824
25825 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25826
25827         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25828         in general and triggers stack alignment adjustment for thread entry
25829         points on targets where this is necessary.
25830
25831 2004-10-04  Bernard Banner  <banner@gnat.com>
25832
25833         PR ada/13897
25834         * Makefile.in: Add section for powerpc linux
25835         Add variant i-vxwork-x86.ads
25836
25837         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25838
25839 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25840
25841         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25842         table registration calls when need be. Ensures no reference to the crt
25843         ctors symbol are issued in the SJLJ case, which avoids possible
25844         undefined symbol errors in the case of modules to be statically linked
25845         with the kernel.
25846
25847 2004-10-04  Javier Miranda  <miranda@gnat.com>
25848
25849         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25850         in-line the code corresponding to subprogram Analyze_Actuals. In
25851         addition, analyze the actuals only in case of subprogram call.
25852
25853 2004-10-04  Ed Falis  <falis@gnat.com>
25854
25855         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25856
25857 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
25858
25859         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25860         in the documentation.
25861
25862 2004-10-04  Robert Dewar  <dewar@gnat.com>
25863
25864         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25865         IF and CASE.
25866         (Analyze_Block_Statement): Add circuitry to detect following dead code
25867         (Check_Unreachable_Code): Handle case of block exit
25868
25869 2004-10-04  Robert Dewar  <dewar@gnat.com>
25870
25871         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25872         (XMatchD): Avoid warning for Logic_Error call
25873
25874 2004-10-04  Robert Dewar  <dewar@gnat.com>
25875
25876         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25877         consider expressions buried within a procedure actual to be an actual.
25878         This caused some blowups with uses of packed slices within a procedure
25879         actual.
25880
25881 2004-10-04  Robert Dewar  <dewar@gnat.com>
25882
25883         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25884         longer need to be initialized to zero.
25885         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25886         initialized to zero.
25887
25888         * checks.adb (Expr_Known_Valid): Packed arrays are now always
25889         considered valid, even if the representation is modular. That's correct
25890         now that we no longer initialize packed modular arrays to zero.
25891
25892         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25893         suffixes. These are now documented as the only cases in which the
25894         debugger ignores outer records.
25895         Previously, the spec allowed arbitrary suffixes for this purpose.
25896         Change name of LJM to JM for packed array pad records
25897         Create separate section on packed array handling, and add a whole new
25898         set of comments to this section describing the situation with packed
25899         modular types and justification requirements depending on endianness.
25900
25901 2004-10-04  Robert Dewar  <dewar@gnat.com>
25902
25903         * a-except.adb: Add a comment for last change
25904
25905         * einfo.ads: Minor spelling correction in comment
25906
25907         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25908
25909         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25910         messages.
25911
25912         * sem_util.ads: Minor comment update
25913
25914 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25915
25916         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25917         Inline_Always when in Configurable_Run_Time mode.
25918
25919         * sem_prag.adb (Process_Convention): If entity is an inherited
25920         subprogram, apply convention to parent subprogram if in same scope.
25921         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25922         when in Configurable_Run_Time mode.
25923
25924 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25925
25926         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25927         class_wide type after component list has been inherited.
25928
25929 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25930
25931         * sem_ch12.adb (Check_Generic_Actuals): New predicate
25932         Denotes_Previous_Actual, to handle properly the case of a private
25933         actual that is also the component type of a subsequent array actual.
25934         The visibility status of the first actual is not affected when the
25935         second is installed.
25936         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25937         make fully recursive the treatment of formals of packages declared
25938         with a box.
25939         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25940         the above on exit from an instantiation.
25941         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25942         current instantiation which is now complete.
25943         (Analyze_Package_Instantiation): No instantiated body is needed if the
25944         main unit is generic. Efficient, and avoid anomalies when a instance
25945         appears in a package accessed through rtsfind.
25946
25947 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25948
25949         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25950         do not generate a declaration for a temporary if the call is part of a
25951         library-level instantiation.
25952
25953 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25954
25955         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25956         searching for a limited component to flag.
25957
25958         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25959         expansion of Input, to account for the fact that the implicit call
25960         generated by the attribute reference must freeze the user-defined
25961         stream subprogram. This is only relevant to 'Input, because it can
25962         appear in an object declaration, prior to the body of the subprogram.
25963
25964         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25965         expansion can proceed and further errors uncovered.
25966         (Minor clean up): Fix cases of using | instead of \ for continuation
25967         messages.
25968
25969 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25970
25971         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25972
25973         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25974         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25975         Use gcc_assert and gcc_unreachable.
25976
25977         * decl.c (gnat_to_gnu_entity, case object): Check and process a
25978         specified alignment before validating size.
25979         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25980         stripped-down declaration for the type of the inner field when making
25981         a JM type.
25982
25983         * utils.c (finish_record_type): Do not compute the size in units
25984         incrementally. Instead compute it once for the rep clause case.
25985         Use gcc_assert and gcc_unreachable.
25986
25987 2004-10-04  Vincent Celier  <celier@gnat.com>
25988
25989         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25990         in file name.
25991         (Is_Valid_Path_Name): Take '/' as a directory separator.
25992
25993 2004-10-04  Vincent Celier  <celier@gnat.com>
25994
25995         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25996         (Extended_Project) only if Extended_Project is defined, to avoid
25997         assertion error.
25998         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25999         resolved path.
26000         (Parse_Single_Project): Ditto.
26001
26002         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
26003         Add_To_Project_Path for virtual projects.
26004
26005 2004-10-04  Vincent Celier  <celier@gnat.com>
26006
26007         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26008         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26009         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26010         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
26011         parameter Options_2.
26012
26013         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
26014         Build_Dynamic_Library with an empty Options_2.
26015
26016         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
26017         default anymore.
26018
26019         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
26020         directory separator, if any.
26021         (Gprmake): Do not allow mains on the command line for library projects.
26022         Do not attempt to link when the project is a library project.
26023         (Library_Opts): New table to store Library_Options.
26024         (Build_Library): If Library_Options is specified, pass these options
26025         when building a shared library.
26026
26027 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
26028
26029         * s-tposen.adb (Service_Entry): The object must be always unlocked at
26030         the end of this procedure now that the unlock operation was inserted
26031         by the expander.
26032
26033 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
26034
26035         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
26036         corresponding to the Preallocated_Stacks flags in System.
26037         (Get_Target_Parameters): Including the processing for
26038         Preallocated_Stacks.
26039
26040         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
26041         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
26042         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
26043         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
26044         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
26045         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
26046         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
26047         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
26048         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
26049         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
26050         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
26051         used to signal whether the compiler creates the required stacks and
26052         descriptors for the different tasks (when True) or it is done by the
26053         underlying operating system at run time (when False).
26054         It is initially set to False in all targets.
26055
26056         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
26057         if it is supported by the target.
26058         (Make_Task_Create_Call): Pass the stack address if it has been
26059         previously created. Otherwise pass a Null_Address.
26060
26061         * snames.adb: Add _stack.
26062
26063         * snames.ads: Add Name_uStack. Required to allow the expander to
26064         statically allocated task stacks.
26065
26066         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
26067         Stack_Address argument.
26068         Check that its value is equal to Null_Address because this target does
26069         not support the static stack allocation.
26070
26071 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
26072
26073         * usage.adb: Change "pragma inline" to "pragma Inline" in information
26074         and error messages
26075
26076 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
26077
26078         * exp_dist.adb: Split declaration of asynchronous flag out of
26079         Add_RACW_Read_Attribute.
26080         Minor reformatting for better alignment with PolyORB version.
26081         Store the entity for the asynchronous flag of an RACW, rather than the
26082         expression, in the asynchronous flags table. This will allow this flag
26083         to be used in other subprograms beside Add_RACW_Read_Attribute.
26084
26085 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
26086
26087         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
26088         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
26089         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
26090         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
26091         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
26092         sockets constant MSG_NOSIGNAL (Linux-specific).
26093         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
26094         all Send operations.
26095         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
26096         from trigerring SIGPIPE.
26097         Rename components to avoid clash with Ada 2005 possible reserved
26098         word 'interface'.
26099         (Check_Selector): When the select system call returns with an error
26100         condition, propagate Socket_Error to the caller.
26101
26102 2004-10-01  Jan Hubicka  <jh@suse.cz>
26103
26104         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
26105
26106 2004-09-23  Robert Dewar  <dewar@gnat.com>
26107
26108         PR ada/17540
26109         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
26110         instead do this at freeze time (we won't do it if there is an address
26111         clause).
26112         Change "pragma inline" to "pragma Inline" in information and error
26113         messages.
26114         Minor reformatting.
26115
26116         * freeze.adb (Check_Address_Clause): Remove previous change, not the
26117         right way of doing things after all.
26118         (Freeze_Entity): For object, set Is_Public for imported entities
26119         unless there is an address clause present.
26120
26121 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
26122
26123         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
26124         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
26125         ensures proper handling of types with rep clauses, which might have
26126         their TYPE_SIZE set already.
26127
26128 2004-09-21  Robert Dewar  <dewar@gnat.com>
26129
26130         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
26131         packed array types in both little- and big-endian cases. This change
26132         ensures that we no longer count on the unused bits being initialized
26133         for such types (and in particular ensures that equality testing will
26134         only read the relevant bits).
26135         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26136         These changes mean that we no longer need to initialize small packed
26137         arrays.
26138         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
26139         optimization to an LJM field as to its parent field.
26140
26141         * ada-tree.h, trans.c, utils.c, utils2.c:
26142         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26143
26144 2004-09-20  Jan Hubicka  <jh@suse.cz>
26145
26146         * utils.c (gnat_finalize): Remove.
26147         (end_subprog_body): Directly call cgraph_finalize_function;
26148         do not lower the nested functions.
26149
26150 2004-09-20  Robert Dewar  <dewar@gnat.com>
26151
26152         PR ada/17540
26153         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
26154         if an address clause is present, since that means that the Import
26155         should be ignored.
26156
26157 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
26158
26159         * 5tsystem.ads: Removed, no longer used.
26160
26161 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
26162             Zack Weinberg  <zack@codesourcery.com>
26163
26164         * ada-tree.def: Use tree_code_class enumeration constants
26165         instead of code letters.
26166         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
26167         Update for new tree-class enumeration constants.
26168
26169 2004-09-17  Vincent Celier  <celier@gnat.com>
26170
26171         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
26172         capabilities of the general project manager.
26173
26174 2004-09-09  Vincent Celier  <celier@gnat.com>
26175
26176         * a-direct.ads: Add pragma Ada_05
26177         (Directory_Entry_Type): Give default value to component Kind to avoid
26178         not initialized warnings.
26179
26180         * a-direct.adb (Current_Directory): Remove directory separator at the
26181         end.
26182         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
26183         an existing directory.
26184         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
26185         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
26186         Convert the result to File_Size.
26187
26188         * prj.ads: (Project_Error): New exception
26189
26190         * prj-attr.adb: Except in procedure Initialize, Fail comes from
26191         Prj.Com, not from Osint.
26192         (Attrs, Package_Attributes): Tables moved to private part of spec
26193         (Add_Attribute, Add_Unknown_Package): Moved to new child package
26194         Prj.Attr.PM.
26195         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
26196         Prj.Project_Error after call to Fail.
26197         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
26198         Fail. Check that package name is not already in use.
26199
26200         * prj-attr.ads: Comment updates to indicate that all subprograms may be
26201         used by tools, not only by the project manager, and to indicate that
26202         exception Prj.Prj_Error may be raised in case of problem.
26203         (Add_Unknown_Package, Add_Attribute): Moved to new child package
26204         Prj.Attr.PM.
26205         (Attrs, Package_Attributes): Table instantiations moved from the body to
26206         the private part to be accessible from Prj.Attr.PM body.
26207
26208         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
26209         from new package Prj.Attr.PM.
26210         (Parse_Attribute_Declaration): Call Add_Attribute from new package
26211         Prj.Attr.PM.
26212
26213         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
26214
26215         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
26216         instead of Elaboration_Checks).
26217
26218         * a-calend.adb: Minor reformatting
26219
26220 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26221
26222         * gigi.h (maybe_pad_type): New declaration.
26223         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
26224
26225         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
26226
26227         * cuintp.c: Convert to use buildN.
26228
26229         * decl.c (maybe_pad_type): No longer static.
26230         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
26231         target pointer.
26232         Convert to use buildN.
26233
26234         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
26235         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
26236         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
26237         RHS.
26238         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
26239         (gnat_gimplify_expr, case ADDR_EXPR): New case.
26240         Convert to use buildN.
26241
26242         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
26243         TREE_READONLY for const.
26244         Convert to use buildN.
26245
26246         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
26247         (create_var_decl): Refine when TREE_STATIC is set.
26248         Convert to use buildN.
26249
26250 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
26251
26252         * gnat_ugn.texi: Delete text relating to checking of ali and object
26253         consistency.
26254
26255         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
26256         routines.
26257
26258 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
26259
26260         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
26261         pragmas recognized by GNAT.
26262
26263         * gnat_rm.texi: Document pragma Detect_Blocking.
26264
26265         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
26266         raise Program_Error if called from a protected operation.
26267
26268         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
26269         the protected action nesting level.
26270         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
26271         protected action nesting level.
26272         (Unlock): When pragma Detect_Blocking is active decrease the protected
26273         action nesting level.
26274
26275         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
26276         Protected_Action_Nesting.
26277
26278         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
26279         Common_ATCB record. It contains the dynamic level of protected action
26280         nesting for each task. It is needed for checking whether potentially
26281         blocking operations are called from protected operations.
26282         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
26283         Detect_Blocking is active or not in the partition.
26284
26285         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
26286         raise Program_Error if called from a protected operation.
26287         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
26288         Program_Error if called from a protected operation.
26289         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
26290         Program_Error if called from a protected operation.
26291
26292         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
26293         raise Program_Error if called from a protected operation.
26294
26295         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
26296         raise Program_Error if called from a protected operation, and increase
26297         the protected action nesting level.
26298         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
26299         Program_Error if called from a protected operation, and increase the
26300         protected action nesting level.
26301         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
26302         protected action nesting level.
26303
26304         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
26305         raise Program_Error if called from a protected operation, and increase
26306         the protected action nesting level.
26307         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
26308         Program_Error if called from a protected operation, and increase the
26309         protected action nesting level.
26310         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
26311         raise Program_Error if called from a protected operation.
26312         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
26313         active, raise Program_Error if called from a protected operation.
26314         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
26315         protected action nesting level.
26316
26317         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
26318         insertion of the statement raising Program_Error. The run time
26319         contains the required machinery for handling that.
26320
26321         * sem_util.ads: Change comment associated to procedure
26322         Check_Potentially_Blocking_Operation.
26323         This procedure does not insert a call for raising the exception because
26324         that is currently done by the run time.
26325
26326         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26327
26328         * init.c: Add the global variable __gl_detect_blocking that indicates
26329         whether pragma Detect_Blocking is active (1) or not (0). Needed for
26330         making the pragma available at run time.
26331         (__gnat_set_globals): Pass and update the detect_blocking parameter.
26332
26333         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26334         pragma Detect_Blocking is active.
26335
26336         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26337
26338         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26339         DB is found in the ali file. Any unit compiled with pragma
26340         Detect_Blocking active forces its effect in the whole partition.
26341
26342         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26343         Detect_Blocking is active and delay is called from a protected
26344         operation.
26345
26346         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26347         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26348         Detect_Blocking is active (0 otherwise).
26349         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26350         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26351         otherwise).
26352
26353 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
26354
26355         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26356         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26357         package.
26358
26359         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26360         (Register_Receiving_Stub): Add Subp_Info formal parameter.
26361         Update API in placeholder implemetation of s-parint to reflect changes
26362         in distribution runtime library.
26363
26364         * sem_ch3.adb (Expand_Derived_Record): Rename to
26365         Expand_Record_Extension.
26366
26367         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26368         primitive operations of potentially distributed object types that have
26369         non-controlling anonymous access formals.
26370
26371         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26372         subprogram.
26373         New implementation of expansion for remote access-to-subprogram types,
26374         based on the RACW infrastructure.
26375         This version of sem_dist is compatible with PolyORB/DSA as well as
26376         GLADE.
26377
26378         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26379         Asynchrronous that applies to a remote access-to-subprogram type, mark
26380         the underlying RACW type as asynchronous.
26381
26382         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26383          __gnat_using_gnu_linker to 1.
26384
26385         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26386         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26387         GNAT.Perfect_Hash_Generators, and remove the empty
26388         GNAT.Perfect_Hash package.
26389
26390         * atree.adb: Minor reformatting
26391
26392         * exp_ch3.adb (Expand_Derived_Record): Rename to
26393         Expand_Record_Extension.
26394         (Build_Record_Init_Proc.Build_Assignment): The default expression in
26395         a component declaration must remain attached at that point in the
26396         tree so New_Copy_Tree copies it if the enclosing record type is derived.
26397         It is therefore necessary to take a copy of the expression when building
26398         the corresponding assignment statement in the init proc.
26399         As a side effect, in the case of a derived record type, we now see the
26400         original expression, without any rewriting that could have occurred
26401         during expansion of the ancestor type's init proc, and we do not need
26402         to go back to Original_Node.
26403
26404         * exp_ch3.ads (Expand_Derived_Record): Rename to
26405         Expand_Record_Extension.
26406
26407         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26408         Returns the RACW type used to implement a remote access-to-subprogram
26409         type.
26410         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26411         New subprograms. Used to create a proxy tagged object for a remote
26412         subprogram. The proxy object is used as the designated object
26413         for RAS values on the same partition (unless All_Calls_Remote applies).
26414         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26415         System.Partition_Interface.Get_Unique_Remote_Pointer.
26416         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26417         Renamed from Add_RAS_*_Attribute.
26418         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26419         subprograms.
26420         New implementation of expansion for remote access-to-subprogram types,
26421         based on the RACW infrastructure.
26422
26423         * exp_dist.ads (Copy_Specification): Update comment to note that this
26424         function can copy the specification from either a subprogram
26425         specification or an access-to-subprogram type definition.
26426
26427 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
26428
26429         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26430         in an instance, between an explicit subprogram an one inherited from a
26431         type derived from an actual.
26432
26433         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26434         add a polling call if the subprogram is to be inlined by the back-end,
26435         to avoid repeated calls with multiple inlinings.
26436
26437         * checks.adb (Apply_Alignment_Check): If the expression in the address
26438         clause is a call whose name is not a static entity (e.g. a dispatching
26439         call), treat as dynamic.
26440
26441 2004-09-09  Robert Dewar  <dewar@gnat.com>
26442
26443         * g-trasym.ads: Minor reformatting
26444
26445         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26446         packed arrays, since unused bits are expected to be zero for a
26447         comparison.
26448
26449 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
26450
26451         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26452         comment.
26453
26454 2004-09-09  Pascal Obry  <obry@gnat.com>
26455
26456         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26457         enable map file generation. Add the right option to generate the map
26458         file if Map_File is set to True.
26459
26460         * gnatdll.adb (Gen_Map_File): New variable.
26461         (Syntax): Add info about new -m (Map_File) option.
26462         (Parse_Command_Line): Add support for -m option.
26463         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26464         Minor reformatting.
26465
26466 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
26467
26468         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26469         new gnatdist implementation.
26470         Define a subpackage isolating the output routines specific to this
26471         verbose mode.
26472
26473 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
26474
26475         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26476
26477         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26478
26479 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
26480
26481         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26482         internal unit.
26483
26484         * opt.ads: Add Ada_Version_Runtime constant used to decide which
26485         version of the language is used to compile the run time.
26486
26487 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
26488
26489         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26490         of variable length temporaries for function return now that the
26491         back-end and gigi support it.
26492
26493 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26494
26495         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26496
26497         * trans.c (struct stmt_group): Delete field GLOBAL.
26498         (gnat_init_stmt_group): Do not initialize it.
26499         (call_to_gnu): Use save_expr, not protect_multiple_eval.
26500         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26501         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26502         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26503         (start_stmt_group): Likewise.
26504         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26505
26506         * utils2.c (ggc.h): Include.
26507         (build_call_raise): Call build_int_cst, not build_int_2.
26508
26509         * utils.c (gnat_init_decl_processing): Fix arg to
26510         build_common_tree_nodes.
26511         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26512         (gnat_define_builtin): Set built_in_decls.
26513         (init_gigi_decls): Call build_int_cst, not build_int_2.
26514
26515         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26516         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26517         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26518         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26519         SET_TYPE_MODULE): Use them.
26520         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26521         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26522         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26523         SET_TYPE_ADA_SIZE): Likewise.
26524         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26525         (DECL_CONST_CORRESPONDING_VAR,
26526         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26527         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26528         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26529         (TYPE_RM_SIZE_NUM): New macro.
26530         (TYPE_RM_SIZE): Modified to use above.
26531
26532         * cuintp.c: (build_cst_from_int): New function.
26533         (UI_To_gnu): Use it.
26534
26535         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26536         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26537         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26538         MIN_EXPR for the size, copy it into new.
26539
26540 2004-09-01  Robert Dewar  <dewar@gnat.com>
26541
26542         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26543         packed indexed component where array is an IN OUT formal. This
26544         generated garbage code previously.
26545
26546         * gnat_ugn.texi: Document -fverbose-asm
26547
26548         * gnat-style.texi: Minor updates (note that boolean constants and
26549         variables are joined with AND/OR rather than short circuit forms).
26550
26551 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
26552
26553         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26554         it is an upward conversion of an untagged type with no representation
26555         change.
26556
26557 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
26558
26559         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26560         System.Partition_Interface.
26561
26562         * checks.adb (Apply_Access_Checks): Do not generate checks when
26563         expander is not active (but check for unset reference to prefix of
26564         dereference).
26565
26566         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26567         pragma Debug as an if statement with a constant condition, for
26568         consistent treatment of entity references contained within the
26569         enclosed procedure call.
26570
26571 2004-09-01  Vincent Celier  <celier@gnat.com>
26572
26573         * bindgen.adb: (Set_EA_Last): New procedure
26574         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26575         Set_EA_Last.
26576         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26577         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26578         linked without errors.
26579         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26580         ST and EA.
26581         (Gen_Exception_Table_C): Correct same bugs
26582
26583         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26584
26585         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26586         on Windows, make sure that the drive letter is in upper case.
26587
26588         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26589         Windows, when the drive letter is added and Case_Sensitive is True, the
26590         drive letter is forced to upper case.
26591
26592         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26593         to Options_2 for the call to MLib.Utl.Gcc.
26594
26595         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26596         directory separator when defining BASE_DIR.
26597
26598 2004-09-01  Pascal Obry  <obry@gnat.com>
26599
26600         * gprcmd.adb (Extend): Do not output trailing directory separator. This
26601         is not needed and it confuses Windows GNU/make which does not report
26602         directory terminated by a slash as a directory.
26603         (gprcmd): Idem for "pwd" internal command.
26604
26605         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26606         target names rewrite to fix regressions with recent version of
26607         GNU/make. Starting with GNU/make 3.80 the pipe character was not
26608         handled properly anymore.
26609
26610 2004-09-01  Andreas Schwab  <schwab@suse.de>
26611
26612         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26613         * raise.c [!IN_RTS]: Undef abort.
26614
26615 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
26616
26617         * utils2.c (build_allocator): Use ssize_int.
26618
26619         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26620
26621 2004-08-27  Andreas Schwab  <schwab@suse.de>
26622
26623         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26624
26625 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26626             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26627
26628         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26629
26630 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26631
26632         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26633         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26634         * utils.c (init_gigi_decls): Likewise.
26635         * utils2.c (build_call_raise, build_allocator): Likewise.
26636
26637 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
26638
26639         * utils.c (gnat_init_decl_processing): Adjust
26640         build_common_tree_nodes call.
26641
26642 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
26643
26644         * utils2.c (build_allocator): Use build_int_cst for negative
26645         size types.
26646
26647 2004-08-18  Richard Henderson  <rth@redhat.com>
26648
26649         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26650
26651 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
26652
26653         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26654         call.s
26655         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26656         (gnat_to_gnu): Likewise.
26657
26658 2004-08-16  Pascal Obry  <obry@gnat.com>
26659
26660         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26661         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26662         option and not mdll anymore. Update comment.
26663
26664 2004-08-16  Pascal Obry  <obry@gnat.com>
26665
26666         * bld.adb (Put_Include_Project): Properly handle directory separators
26667         on Windows.
26668
26669 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
26670
26671         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26672         decreasing the number of allocated junk nodes while searching for the
26673         appropriate subprogram.
26674
26675 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
26676
26677         * cuintp.c (UI_To_gnu): Use build_int_cst..
26678         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26679         * utils.c (init_gigi_decls): Likewise.
26680         * utils2.c (build_call_raise): Likewise.
26681
26682 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
26683
26684         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26685         for a global aliased object with a variable size and an unconstrained
26686         nominal subtype, pretend there is no initializer if the one we have is
26687         incomplete, and avoid referencing an inexistant component in there. The
26688         part we have will be rebuilt anyway and the reference may confuse
26689         further operations.
26690
26691 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
26692
26693         * einfo.ads: Minor reformatting
26694
26695         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26696         restrictions in the ALI if we only want to warn about violations.
26697
26698 2004-08-13  Vincent Celier  <celier@gnat.com>
26699
26700         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26701         when creating a new Unit_Record in table Units.
26702
26703         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26704         that are violated, if any.
26705
26706         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26707         add directory separator if path already ends with a directory separator.
26708
26709 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26710
26711         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26712         unit, this is an attempt to inline a construct that is not available in
26713         the current restricted mode, so abort rather than trying to continue.
26714
26715         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26716         discriminants that rename those of the parent, recover names of
26717         original discriminants for the constraint on the full view of the
26718         parent.
26719         (Complete_Private_Subtype): Do not create a subtype declaration if the
26720         subtype is an itype.
26721
26722         * gnat_rm.texi: Added section on implementation of discriminated
26723         records with default values for discriminants.
26724
26725 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26726
26727         PR ada/15601
26728         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26729         the second operand is overloaded.
26730
26731 2004-08-10  Richard Henderson  <rth@redhat.com>
26732
26733         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26734         add __builtin_alloca.
26735
26736 2004-08-10  Richard Henderson  <rth@redhat.com>
26737
26738         * config-lang.in (boot_language): Yes.
26739
26740 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
26741
26742         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26743         from complaining on potential uninitialized reference.
26744         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26745         new specification and test explicitly for non-zero return value.
26746
26747         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26748         returning C.int, to avoid using a derived boolean type.
26749
26750         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26751         Duplicate_Subexpr_No_Checks in preference to direct use of
26752         Remove_Side_Effects and New_Copy_Tree.
26753         Clear Comes_From_Source on prefix of 'Size attribute reference.
26754
26755         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26756         g-socthi-vxworks.adb: Change calls to
26757         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26758         and test explicitly for non-zero return value.
26759
26760         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26761         (Is_Socket_In_Set): Declare imported function as returning C.int, to
26762         avoid using a derived boolean type.
26763
26764 2004-08-09  Albert Lee  <lee@gnat.com>
26765
26766         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26767
26768 2004-08-09  Pascal Obry  <obry@gnat.com>
26769
26770         * gnat_ugn.texi: Document new way to build DLLs on Windows using
26771         GCC's -shared option.
26772
26773         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26774         Options_2 parameter (options put after object files).
26775
26776 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
26777
26778         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26779         ignore overflows on low and high bounds of an index to also account for
26780         differences in signedness between sizetype and gnu_index_subtype.
26781         These are as legitimate as the ones caused by a lower TYPE_PRECISION
26782         on sizetype.
26783
26784 2004-08-09  Robert Dewar  <dewar@gnat.com>
26785
26786         * s-solita.ads, s-solita.adb: Minor reformatting
26787
26788         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26789         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26790         obsolescent section
26791         Add note that No_Implicit_Conditionals does not suppress
26792         run time constraint checks.
26793
26794         * vms_conv.ads: Minor reformatting
26795
26796         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26797         and necessary for following change).
26798         (Mark): Return new format Mark_Id containing sec stack address
26799         (Release): Use sec stack address from Mark_Id avoiding Self call
26800
26801         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26802         pointer (cleanup and necessary for following change).
26803         Define Mark_Id as record containing address of secondary stack, that way
26804         Release does not need to find the stack again, decreasing the number of
26805         calls to Self and improving efficiency.
26806
26807         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26808
26809         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26810         case variable into the individual case branches when possible.
26811
26812         * sem_ch11.adb: Minor reformatting
26813
26814         * prj.ads: Correct spelling of suffixs
26815
26816         * prj-nmsc.adb: Minor reformatting
26817         Correct spelling suffixs throughout (also in identifiers)
26818
26819         * freeze.adb: Minor spelling correction
26820
26821         * exp_ch2.adb: Cleanups to handling of Current_Value
26822         (no functional effect).
26823
26824         * bld.adb: Correct spelling of suffixs
26825
26826         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26827
26828 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26829
26830         PR ada/15408
26831         * sem_ch7.adb (Install_Private_Declarations): In the body of the
26832         package or of a child, private entities are both immediately_visible
26833         and not hidden.
26834
26835 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26836
26837         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26838         there are no range checks on the value of the literal.
26839
26840         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26841         wrapped is the triggering alternative of an asynchronous select, action
26842         statements mustbe inserted before the select itself.
26843
26844         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26845         case where the prefix is a protected function call.
26846         (Resolve_Attribute, case 'Access): The attribute reference on a
26847         subprogram is legal in a generic body if the subprogram is declared
26848         elsewhere.
26849
26850 2004-08-09  Vincent Celier  <celier@gnat.com>
26851
26852         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26853         languages, otherwise building the library may fail with unresolved
26854         symbols.
26855         (Compile_Sources): Do not build libraries if -c switch is used
26856
26857         * gnatlink.adb (Process_Args): New switches -M and -Mmap
26858         (Write_Usage): If map file creation is supported, output new switches
26859         -M and -Mmap.
26860         (Gnatlink): When -M is specified, add the necessary switch(es) to the
26861         gcc call, when supported.
26862
26863         * Makefile.in: Added indepsw.o to the object list for gnatlink
26864         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26865
26866         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26867         indepsw.adb, indepsw.ads: New files.
26868
26869 2004-08-09  Bernard Banner  <banner@gnat.com>
26870
26871         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26872
26873         * Makefile.in: add section for vxworks x86
26874
26875 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
26876
26877         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26878         per-object constrained components where the discriminant is of an
26879         Access type.
26880         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26881         the parent initialization procedure for derived Unchecked_Unions.
26882         Instead, derived Unchecked_Unions build their own initialization
26883         procedure.
26884         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26885         Check the body of the subprogram for details.
26886         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26887         functions for derived Unchecked_Union types by introducing a condition.
26888         Allow the creation of TSS equality functions for Unchecked_Unions.
26889         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26890         Add formal parameter Discr to function signature. Discr is used to
26891         control the generated case statement for Unchecked_Union types.
26892         (Make_Eq_If): Rename formal parameter Node to E in function signature.
26893
26894         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26895         Unchecked_Unions.
26896         Check the body of the subprogram for details.
26897         (Expand_Composite_Equality): Augment composite type equality to include
26898         correct handling of Unchecked_Union components.
26899         (Expand_N_In): Add condition to detect illegal membership tests when the
26900         subtype mark is a constrained Unchecked_Union and the expression lacks
26901         inferable discriminants, and build a Raise_Program_Error node.
26902         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26903         to detect types that contain components of unconstrained Unchecked_Union
26904         subtype. Add condition to detect equality between types that have an
26905         unconstrained Unchecked_Union component, and build a Raise_Program_Error
26906         node. Add condition to detect equality between Unchecked_Union types
26907         that lack inferable discriminants, and build a Raise_Program_Error node.
26908         Otherwise build a TSS equality function call.
26909         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26910         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26911         with the operand lacking inferable discriminants, and build a Raise_
26912         Program_Error node.
26913         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26914         composite equality.
26915         (Has_Inferable_Discriminants): Implement new predicate for objects and
26916         expressions of Unchecked_Union type. Check the body of subprogram for
26917         details.
26918         (Has_Unconstrained_UU_Components): Add function
26919         Component_Is_Unconstrained_UU. It is used to detect whether a single
26920         component is of an unconstrained Unchecked_Union subtype. Add function
26921         Variant_Is_Unconstrained_UU. It is used to detect whether a single
26922         component inside a variant is of an unconstrained Unchecked_Union type.
26923
26924         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26925         inferred discriminant values. Add condition to generate a case
26926         statement with an inferred discriminant as the switch.
26927         (Make_Component_List_Assign): Introduce a Boolean flag that determines
26928         the behaviour of the subprogram in the presence of an Unchecked_Union.
26929         Add condition to trigger the usage of the inferred discriminant value
26930         as the generated case statement switch.
26931         (Make_Field_Assign): Introduce a Boolean flag that determines the
26932         behaviour of the subprogram in the presence of an Unchecked_Union. Add
26933         condition to trigger the usage of the inferred discriminant value as
26934         the right-hand side of the generated assignment.
26935
26936         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26937         parameter generation when dealing with Unchecked_Unions.
26938
26939         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26940         checks for Unchecked_Unions.
26941
26942         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26943
26944         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26945         Raise_Program_Error nodes for the execution of Read and Write
26946         attributes of Unchecked_Union types and the execution of Input and
26947         Output attributes of Unchecked_Union types that lack default
26948         discriminant values.
26949
26950         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26951         Unchecked_Union. Add procedure Check_Component. It is used to inspect
26952         per-object constrained components of Unchecked_Unions for being
26953         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26954         check individual components withing a variant.
26955
26956         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26957         comparison of Unchecked_Unions.
26958         (Resolve_Equality_OP): Remove guard that prevents equality between
26959         Unchecked_Unions.
26960
26961         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26962         of component subtypes for Unchecked_Union components.
26963         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26964         since it is the actual subtype.
26965
26966         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26967         pass of Unchecked_Union subtypes as generic actuals to formal types
26968         that lack known_discriminant_parts or that are derived Unchecked_Union
26969         types, and do nothing. In any other case, produce an error message.
26970
26971         * sem_ch3.adb (Analyze_Component_Declaration): Add function
26972         Contains_POC. It determines whether a constraint uses the discriminant
26973         of an enclosing record type.
26974         Add condition to detect per-object constrained component and set the
26975         appropriate flag.
26976         (Derived_Type_Declaration): Remove guard that prevents derivation from
26977         Unchecked_Union types.
26978         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26979         Union subtypes.
26980
26981         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26982         references to Unchecked_Union discriminants.
26983
26984         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26985         formal generation when dealing with Unchecked_Unions.
26986         (Set_Actual_Subtypes): Add condition to prevent generation of actual
26987         subtypes for Unchecked_Unions.
26988
26989         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26990         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26991         completions of discriminated partial views by Unchecked_Unions and
26992         produce an error message.
26993
26994 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26995
26996         * trans.c (struct stmt_group): New field, GLOBAL.
26997         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26998         (struct elab_info): New struct.
26999         (elab_info_list, gnu_elab_proc_stack): New variables.
27000         (Compilation_Unit_to_gnu): New procedure.
27001         (gigi): Call it and also handle elaboration procs we've saved.
27002         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
27003         global field from parent.
27004         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
27005         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
27006         (start_stmt_group): Initialize global field from parent.
27007         (add_decl_expr): Set to global for current statement group.
27008         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
27009         post.
27010
27011         * utils.c (global_bindings_p): True when no current_function_decl; no
27012         longer check current_binding_level.
27013
27014 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
27015
27016         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
27017         choice.
27018
27019         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
27020
27021 2004-08-06  Andreas Schwab  <schwab@suse.de>
27022
27023         * utils.c (gnat_define_builtin): Remove second parameter of
27024         make_decl_rtl.
27025         (begin_subprog_body): Likewise.
27026
27027 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
27028
27029         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
27030         optimization, not supported by the tree-ssa back-end.
27031
27032 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
27033
27034         * s-mastop-irix.adb: Update comments.
27035
27036         * a-except.adb (Exception_Information): Raise Constraint_Error if
27037         exception Id is Null_Id.
27038         This is required behavior, which is more reliably and clearly checked
27039         at the top level interface level.
27040
27041 2004-07-26  Javier Miranda  <miranda@gnat.com>
27042
27043         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
27044         call if a component has no default_expression and the box is used.
27045
27046         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
27047         default_expression and you use box, it behaves as if you had declared a
27048         stand-alone object.
27049         (Resolve_Record_Aggregate): If a component has no default_expression and
27050         you use box, it behaves as if you had declared a stand-alone object.
27051
27052         * sem_ch10.adb (Install_Siblings): Do not make visible the private
27053         entities of private-with siblings.
27054
27055 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
27056
27057         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
27058         for a component of an itype, set the parent pointer for analysis,
27059         there is no list in which to insert it.
27060
27061         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
27062         bona-fide renamings, not for inherited operations.
27063
27064         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
27065         actual for a formal that is an access parameter, create local
27066         finalization list even if the expression is not an aggregate.
27067
27068 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
27069
27070         PR ada/16213
27071         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
27072         Diagnose properly illegal subprogram renamings that are library units.
27073
27074 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
27075
27076         PR ada/15588
27077         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
27078         conversion rewritten as an unchecked conversion, check that original
27079         expression is a variable.
27080
27081         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
27082         unchecked_conversion, create new node rather than rewriting in place,
27083         to preserve original construct.
27084
27085 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27086
27087         * gigi.h (gnat_expand_body): Deleted.
27088
27089         * Make-lang.in: (trans.o): Depends on function.h.
27090
27091         * misc.c: (gnat_expand_body): Moved to here.
27092
27093         * trans.c (gnat_expand_body_1): Deleted.
27094         (gnat_expand_body): Moved from here.
27095         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
27096         (add_stmt): Check for marked visited with global_bindings_p.
27097         (gnat_gimplify_expr, case COMPONENT_REF): New case.
27098         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
27099
27100         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
27101         VIEW_CONVERT_EXPR if not operation type.
27102
27103         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
27104         fat pointer.
27105
27106         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
27107         changes: reformatting of negation operators, removing unneeded
27108         inequality comparison with zero, converting equality comparisons with
27109         zero to negations, changing int/0/1 to bool/false/true, replace calls
27110         to gigi_abort with abort, and various other similar changes.
27111
27112 2004-07-26  Vincent Celier  <celier@gnat.com>
27113
27114         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
27115         "setup".
27116
27117         * make.adb (Gnatmake): Fail when a library is not present and there is
27118         no object directory.
27119
27120         * mlib-prj.adb (Check_Library): No need to check if the library needs
27121         to be rebuilt if there is no object directory, hence no object files
27122         to build the library.
27123
27124         * opt.ads (Setup_Projects): New Boolean flag.
27125
27126         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
27127         Location.
27128         Create directory when Kind /= "" and in "gnat setup". Report error if
27129         directory cannot be created.
27130         (Ada_Check): Create library interface copy dir if it does not exist
27131         and we are in "gnat setup".
27132         (Find_Sources): No error if in "gnat setup" and no Ada sources were
27133         found.
27134         (Language_Independent_Check): Create object directory, exec directory
27135         and/or library directory if they do not exist and we are in
27136         "gnat setup".
27137
27138         * vms_conv.ads: (Command_Type): New command Setup.
27139
27140         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
27141
27142         * vms_data.ads: Add qualifiers/switches for new built-in command
27143         "setup".
27144
27145 2004-07-25  Richard Henderson  <rth@redhat.com>
27146
27147         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
27148         DECL_IGNORED_P on RESULT_DECL.
27149
27150 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
27151
27152         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
27153         allocation and potentially overflowing update with
27154         Tailored_Exception_Information. Use the sec-stack free procedural
27155         interface to output Exception_Information instead.
27156
27157         * a-except.adb (To_Stderr): New subprogram for character, and string
27158         version moved from a-exextr to be visible from other separate units.
27159         (Tailored_Exception_Information): Remove the procedural version,
27160         previously used by the default Last_Chance_Handler and not any more.
27161         Adjust various comments.
27162
27163         * a-exexda.adb: Generalize the exception information procedural
27164         interface, to minimize the use of secondary stack and the need for
27165         local buffers when the info is to be output to stderr:
27166         (Address_Image): Removed.
27167         (Append_Info_Character): New subprogram, checking for overflows and
27168         outputing to stderr if buffer to fill is of length 0.
27169         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
27170         (Append_Info_Address, Append_Info_Exception_Name,
27171         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
27172         Append_Info_Basic_Exception_Traceback,
27173         Append_Info_Exception_Information): New subprograms.
27174         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
27175         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
27176         Exception_Info_Maxlength, Exception_Name_Length,
27177         Exception_Message_Length): New subprograms.
27178         (Exception_Information): Use Append_Info_Exception_Information.
27179         (Tailored_Exception_Information): Use
27180         Append_Info_Basic_Exception_Information.
27181         Export services for the default Last_Chance_Handler.
27182
27183         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
27184         other separate units.
27185
27186 2004-07-20  Vincent Celier  <celier@gnat.com>
27187
27188         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
27189
27190 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27191
27192         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
27193         emit itype references for the designated types of component types that
27194         are declared outside of the full record declaration, and that may
27195         denote a partial view of that record type.
27196
27197 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27198
27199         PR ada/15607
27200         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
27201         which is the designated type in an access component declaration, to the
27202         list of incomplete dependents of the parent type, to avoid elaboration
27203         issues with out-of-scope subtypes.
27204         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
27205         full view of the parent.
27206
27207 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27208
27209         PR ada/15610
27210         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
27211         entities that are hidden, such as references to generic actuals
27212         outside an instance.
27213
27214 2004-07-20  Javier Miranda  <miranda@gnat.com>
27215
27216         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
27217         support to the new notation.
27218         (Analyze_Selected_Component): Add call to Try_Object_Operation.
27219
27220 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
27221
27222         * s-taprob.adb: Adding the elaboration code required for initializing
27223         the tasking soft links that are common to the full and the restricted
27224         run times.
27225
27226         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
27227         restricted run time has been moved to the package
27228         System.Soft_Links.Tasking.
27229
27230         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
27231         restricted run time has been moved to the package
27232         System.Soft_Links.Tasking.
27233
27234         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
27235
27236         * s-solita.ads, s-solita.adb: New files.
27237
27238 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27239
27240         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
27241         Case_Statement_to_gnu): Split off from gnat_to_gnu.
27242         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
27243         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
27244         Exception_Handler_to_gnu_zcx): Likewise.
27245
27246 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
27247
27248         * gigi.h (builtin_function): Declare.
27249
27250 2004-07-15  Robert Dewar  <dewar@gnat.com>
27251
27252         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
27253         reformatting
27254
27255         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
27256         access values as an example of a warning.
27257
27258         * gnat_rm.texi: Document new attribute Has_Access_Values
27259
27260         * gnat-style.texi: Document that box comments belong on nested
27261         subprograms
27262
27263         * sem_util.ads (Has_Access_Values): Improved documentation
27264
27265         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
27266
27267         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
27268         (Process_Interface_Name): Call to this new procedure
27269         (Set_Extended_Import_Export_External_Name): Call to this new procedure
27270
27271         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
27272
27273         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
27274
27275         * einfo.ads: Minor comment typo fixed
27276
27277 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
27278
27279         * snames.adb: Add _atcb.
27280
27281         * snames.ads: Add Name_uATCB.
27282
27283         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
27284         (in the expanded code) when using the restricted run time.
27285
27286         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
27287         a in parameter in order to allow ATCBs to be preallocated (in the
27288         expanded code).
27289
27290         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
27291         order to allow ATCBs to be preallocated. In case of error, the ATCB is
27292         deallocated in System.Tasking.Stages.
27293
27294         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
27295         order to allow ATCBs to be preallocated.
27296
27297         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
27298         here. It was previously done in Initialize_ATCB.
27299
27300         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
27301
27302         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
27303         Restricted run time.
27304
27305         * exp_ch3.adb: When using the Restricted run time, pass the
27306         preallocated Ada_Task_Control_Block when creating a task.
27307
27308 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
27309
27310         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
27311         function call that is itself an actual in an enclosing call, diagnose
27312         problem here rather than assuming that resolution will catch it.
27313
27314         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
27315         the local copy of a generic unit for a formal package, and the generic
27316         is a child unit, install private part of ancestors before compiling
27317         private part of spec.
27318
27319         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
27320         use scope entities rather than tree structures, to handle properly
27321         parent units that are instances rewritten as bodies for inlining
27322         purposes.
27323
27324         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27325         Remove_Parents): Handle properly a parent unit that is an
27326         instantiation, when the unit has been rewritten as a body for inlining
27327         purposes.
27328
27329         * par.adb (Goto_List): Global variable to collect goto statements in a
27330         given unit, for use in detecting natural loops.
27331
27332         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27333         use in detecting natural loops.
27334
27335         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27336         backwards goto's, and rewrite as a infinite loop, to improve locality
27337         of temporaries.
27338
27339         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27340         subcomponent that includes an indexed reference, to prevent the
27341         generation of copies that would miscompile the desired assignment
27342         statement.
27343         (Build_Task_Image_Decls): Add a numeric suffix to
27344         generated name for string variable, to avoid spurious conflicts with
27345         the name of the type of a single protected object.
27346
27347         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27348         loop with an explicit exit statement, to avoid generating an
27349         out-of-range value with 'Succ leading to spurious constraint_errors
27350         when compiling with -gnatVo.
27351
27352 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
27353
27354         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27355         might not be analyzed yet, even if its Etype is already set (case of an
27356         unchecked conversion built using Unchecked_Convert_To, for example).
27357         If the prefix has already been analyzed, this will be a nop anyway.
27358
27359         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27360         controller type, or an assignment of a record type with controlled
27361         components, copy only user data, and leave the finalization chain
27362         pointers untouched.
27363
27364 2004-07-15  Vincent Celier  <celier@gnat.com>
27365
27366         * make.adb (Collect_Arguments): Improve error message when attempting
27367         to compile a source not part of any project, when -x is not used.
27368
27369         * prj.ads: (Defined_Variable_Kind): New subtype
27370
27371         * prj-attr.adb (Register_New_Package): Two new procedures to register
27372         a package with or without its attributes.
27373         (Register_New_Attribute): Mew procedure to register a new attribute in a
27374         package.
27375         New attribute oriented subprograms: Attribute_Node_Id_Of,
27376         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27377         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27378         Next_Attribute.
27379         New package oriented subprograms: Package_Node_Id_Of,
27380         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27381
27382         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27383         type.
27384         (Package_Node_Id): Now a private, self initialized type
27385         (Register_New_Package): New procedure to register a package with its
27386         attributes.
27387         New attribute oriented subprograms: Attribute_Node_Id_Of,
27388         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27389         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27390         Next_Attribute.
27391         New package oriented subprograms: Package_Node_Id_Of,
27392         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27393
27394         * prj-dect.adb (Parse_Attribute_Declaration,
27395         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27396
27397         * prj-makr.adb (Make): Parse existing project file before creating
27398         other files. Fail if there was an error during parsing.
27399
27400         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27401         new spec of Prj.Attr.
27402
27403         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27404         to new spec of Prj.Attr.
27405
27406 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27407
27408         * utils2.c: Fix typo in comment.
27409
27410 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27411
27412         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27413         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27414
27415 2004-07-14  Andreas Schwab  <schwab@suse.de>
27416
27417         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27418
27419 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27420
27421         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27422         object type.
27423         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27424         TYPE_STUB_DECL.
27425
27426         * misc.c (gnat_types_compatible_p): New function.
27427         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27428         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27429
27430         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27431         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27432         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27433         (mark_visited): Don't mark dummy type.
27434         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27435         parameter, we must remove any LJM building from GNU_NAME.
27436         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27437         (pos_to_constructor): Use int_const_binop.
27438         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27439         PARM_DECL.
27440
27441         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27442         (gnat_pushlevel): Set TREE_USE on BLOCK node.
27443         (gnat_install_builtins): Add __builtin_memset.
27444
27445 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
27446
27447         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27448         for a renaming, stabilize the initialization expression if we are at a
27449         local level.  At the local level, uses of the renaming may be performed
27450         by a direct dereference of the initializing expression, and we don't
27451         want possible variables there to be evaluated for every use.
27452
27453         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27454         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27455         them on the way.  Account for the fact that we may introduce side
27456         effects in the process.
27457
27458 2004-07-13  Richard Henderson  <rth@redhat.com>
27459
27460         * misc.c (default_pass_by_ref): Use pass_by_reference.
27461
27462 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
27463
27464         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27465         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27466
27467 2004-07-08  Richard Henderson  <rth@redhat.com>
27468
27469         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27470         commentary.
27471
27472 2004-07-06  Vincent Celier  <celier@gnat.com>
27473
27474         * vms_conv.ads: Minor reformatting.
27475         Alphabetical order for enumerated values of type Command_Type, to have
27476         the command in alphabetical order for the usage.
27477
27478         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27479         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27480
27481         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27482
27483         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27484         (Add_Archive_Path): Only add the global archive if there is one.
27485         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27486         or not any object file to put in the global archive, and don't build
27487         a global archive if there is none.
27488         (X_Switches): New table
27489         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27490         in the X_Switches table, if any.
27491         (Initialize): Make sure the X_Switches table is empty
27492         (Scan_Arg): Record -X switches in table X_Switches
27493
27494         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27495
27496         * make.adb: Minor comment fix
27497
27498         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27499         invoked with directory information, add the directory in front of the
27500         path.
27501
27502         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27503         invoked with directory information, add the directory in front of the
27504         path.
27505
27506         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27507         when Keep_Temporary_Files is False.
27508         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27509         directory information, add the directory in front of the path.
27510         When not on VMS, handle new switch -dn before the command to set
27511         Keep_Temporary_Files to True.
27512         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27513         everywhere.
27514
27515         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27516         invoked with directory information, add the directory in front of the
27517         path.
27518
27519 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
27520
27521         * snames.ads, snames.adb (Name_Stub): New name for the distributed
27522         systems annex.
27523
27524         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27525         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27526
27527         * g-socket.adb (To_Timeval): Fix incorrect conversion of
27528         Selector_Duration to Timeval for the case of 0.0.
27529
27530         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27531         documentation from Evolve_And_Then.
27532
27533 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
27534
27535         * s-taprop-tru64.adb, s-taprop-os2.adb,
27536         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27537
27538 2004-07-06  Robert Dewar  <dewar@gnat.com>
27539
27540         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27541         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27542         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27543         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27544         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27545         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27546         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27547         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27548         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27549         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27550         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27551         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27552         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27553         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27554         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27555         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27556         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27557         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27558         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27559         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27560         vms_data.ads: Minor reformatting,
27561         Fix bad box comment format.
27562
27563         * gnat_rm.texi: Fix minor grammatical error
27564
27565         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27566
27567         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27568         more cases of discriminated records to be recognized as not needing a
27569         secondary stack.
27570         (Has_Access_Values): New function.
27571
27572         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27573
27574         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27575         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27576         with LRM terminology).
27577         Change terminology in comments primitive type => elementary type.
27578
27579 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27580
27581         PR ada/15602
27582         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27583         parameters do not impose any requirements on the presence of a body.
27584
27585 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27586
27587         PR ada/15593
27588         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27589         compilation unit and is in an open scope at the point of instantiation,
27590         assume that a body may be present later.
27591
27592 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27593
27594         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27595         Improve error message when specified size is not supported.
27596
27597         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27598         is never a primitive operation.
27599
27600 2004-07-05  Andreas Schwab  <schwab@suse.de>
27601
27602         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27603         RECORD_OR_UNION_CHECK.
27604         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27605
27606 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
27607
27608         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27609         dependency on xgnatugn, instead build it via a submake.
27610         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27611
27612 2004-07-04  Richard Henderson  <rth@redhat.com>
27613
27614         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27615
27616 2004-07-01  Richard Henderson  <rth@redhat.com>
27617
27618         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27619         * utils.c (max_size): Likewise.
27620
27621 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27622
27623         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27624         and rest_of_type_compilation; add arg to create_*_decl.
27625         (annotate_decl_with_node): Deleted.
27626         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27627         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27628         (get_current_block_context, gnat_pushdecl): New declarations.
27629         (gnat_init_stmt_group): Likewise.
27630         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27631         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27632         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27633         (gnat_init): Call gnat_init_stmt_group.
27634         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27635         (gnu_pending_elaboration_list): Deleted.
27636         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27637         (gigi): Rearrange initialization calls and move some to last above.
27638         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27639         Delete calls to add_decl_expr; add arg to create_*_decl.
27640         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27641         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27642         begin_subprog_body and call it.
27643         Don't push and pop ggc context.
27644         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27645         (add_stmt): Remove handling of DECL_EXPR from here.
27646         If not in function, mark visited.
27647         (add_decl_expr): Put global at top level.
27648         Check for cases of DECL_INITIAL we have to handle here.
27649         (process_type): Add extra arg to create_type_decl.
27650         (build_unit_elab): Rework to just gimplify.
27651         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27652         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27653         (get_pending_elaborations, pending_elaborations_p): Likewise.
27654         (push_pending_elaborations, pop_pending_elaborations): Likewise.
27655         (get_elaboration_location, insert_elaboration_list): Likewise.
27656         (gnat_binding_level): Renamed from ada_binding_level.
27657         (init_gnat_to_gnu): Don't clear pending_elaborations.
27658         (global_bindings_p): Treat as global if no current_binding_level.
27659         (set_current_block_context): New function.
27660         (gnat_pushdecl): Renamed from pushdecl; major rework.
27661         All callers changed.
27662         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27663         (finish_record_type): Call call pushdecl for stub decl.
27664         (function_nesting_depth): Deleted.
27665         (begin_subprog_body): Delete obsolete code.
27666         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27667
27668 2004-06-28  Robert Dewar  <dewar@gnat.com>
27669
27670         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27671         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27672         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27673         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27674         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27675
27676         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27677         deal with problem of inefficient slices on machines with strict
27678         alignment, when the slice is a component of a composite.
27679
27680         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27681         machines, we need the check there as well.
27682
27683 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27684
27685         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27686         determine safe copying direction for overlapping slice assignments
27687         when component is controlled.
27688
27689         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27690         formal derived type in the actual for a formal package are visible in
27691         the enclosing instance.
27692
27693 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27694
27695         PR ada/15600
27696         * sem_util.adb (Trace_Components): Diagnose properly an illegal
27697         circularity involving a private type whose completion includes a
27698         self-referential component.
27699         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27700         renaming or an instantiation from an implicit derived operation.
27701
27702 2004-06-28  Pascal Obry  <obry@gnat.com>
27703
27704         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27705         DLL.
27706         (Library_File_Name_For): Idem.
27707
27708 2004-06-28  Matthew Gingell  <gingell@gnat.com>
27709
27710         * g-traceb.ads: Add explanatory note on the format of addresses
27711         expected by addr2line.
27712
27713 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
27714
27715         * Makefile.in: Force debugging information on s-tasdeb.adb,
27716         a-except.adb and s-assert.adb needed by the debugger.
27717
27718 2004-06-28  Vincent Celier  <celier@gnat.com>
27719
27720         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27721         Need_To_Build_Lib.
27722         (Gnatmake): Ditto.
27723
27724         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27725
27726         * prj.adb: Minor reformatting
27727         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27728
27729         * prj.ads: Comment updates
27730         Minor reformatting
27731         (Project_Data): Change Flag1 to Need_To_Build_Lib.
27732         Remove Flag2: not used.
27733
27734         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27735         declaration.
27736
27737         * gnat_ugn.texi: Put a "null;" declaration in one project file example
27738
27739         * gnat_rm.texi: Document Empty declarations "null;".
27740
27741         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27742         front of the linker options.
27743         (Link_Foreign): Put the global archives and the libraries in front of
27744         the linker options.
27745
27746 2004-06-28  Javier Miranda  <miranda@gnat.com>
27747
27748         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27749         (RTU_Loaded): Code cleanup
27750         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27751         withed predefined units.
27752
27753         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27754         explicitly withed predefined units.
27755         Fix typo in comment
27756
27757         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27758         explicitly withed predefined units.
27759
27760 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27761
27762         * ada-tree.def (DECL_STMT): Deleted.
27763         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27764         (DECL_STMT_VAR): Deleted.
27765         * decl.c: add_decl_stmt now add_decl_expr.
27766         * gigi.h: Likewise.
27767         * trans.c: Likewise.
27768         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27769         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27770         (add_stmt): Only handle padded type here.
27771         (add_stmt_with_node): Allow gnat_node to not be present.
27772         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27773         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27774         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27775         make a SAVE_EXPR for the entire fat pointer.
27776         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27777         (create_index_type): Make a DECL_EXPR.
27778         (end_subprog_body): Don't call allocate_struct_function here but
27779         do clear cfun.
27780
27781 2004-06-25  Pascal Obry  <obry@gnat.com>
27782
27783         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27784         Relocatable from Build_Dynamic_Library call.
27785
27786         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27787         Relocatable are now synonym.
27788
27789         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27790
27791         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27792         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27793         call.
27794
27795         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27796         Lib_Address and Relocatable.
27797         (Default_DLL_Address): Removed.
27798
27799         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27800         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27801         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27802         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27803         (Default_DLL_Address): Removed.
27804
27805         * mlib-tgt-mingw.adb: Ditto.
27806         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27807
27808         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27809         the initial thread stack size.
27810
27811         * a-strmap.ads: Move package L to private part as it is not used in
27812         the spec. Found while reading code.
27813
27814 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
27815
27816         * tracebak.c: Introduce support for a GCC infrastructure based
27817         implementation of __gnat_backtrace.
27818
27819         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27820         any more. Use accessors instead. This eases maintenance and relaxes
27821         some alignment constraints.
27822         (_GNAT_Exception structure): Remove the Ada specific fields
27823         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27824         a-exexpr.adb.
27825         (is_handled_by, __gnat_eh_personality): Replace component references to
27826         exception structure by use of the new accessors.
27827
27828         * init.c (__gnat_initialize): Adjust comments to match the just
27829         reverted meaning of the -static link-time option.
27830
27831         * adaint.c (convert_addresses): Arrange not to define a stub for
27832         mips-irix any more, as we now want to rely on a real version from a
27833         recent libaddr2line.
27834
27835         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27836         the personality routine can use them and not have to rely on a C
27837         counterpart of the record anymore. This simplifies maintenance and
27838         relaxes the constraint of having Standard'Maximum_Alignment match
27839         BIGGEST_ALIGNMENT.
27840         Update comments, and add a section on the common header alignment issue.
27841
27842 2004-06-25  Geert Bosch  <bosch@gnat.com>
27843
27844         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27845         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27846
27847 2004-06-25  Robert Dewar  <dewar@gnat.com>
27848
27849         * gnat_rm.texi: Fix section on component clauses to indicate that the
27850         restriction on byte boundary placement still applies for bit packed
27851         arrays.
27852         Add comment on stack usage from Initialize_Scalars
27853
27854         * gnat_ugn.texi: Add documentation for -gnatyLnnn
27855
27856         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27857         limiting nesting level.
27858
27859         * usage.adb: Add line for -gnatyLnnn switch
27860
27861         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27862         sem_ch13.adb, exp_aggr.adb: Minor reformatting
27863
27864         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27865         type as well as on the subtype. This corrects a problem in freeze in
27866         setting alignments of atomic types.
27867
27868         * sem_eval.ads: Minor comment typo fixed
27869
27870         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27871         level.  Minor reformatting.
27872
27873         * fname.adb (Is_Predefined_File_Name): Require a letter after the
27874         minus sign. This means that file names like a--b.adb will not be
27875         considered predefined.
27876
27877         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27878         record Test new flag and give diagnostic for bad component clause.
27879         (Freeze_Entity): Set alignment of array from component alignment in
27880         cases where this is safe to do.
27881
27882         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27883         arrays.
27884
27885         * cstand.adb: (Create_Standard): Set alignment of String to 1
27886
27887         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27888
27889         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27890         code in the common constrained array cases.
27891
27892         * a-storio.adb: Change implementation to avoid possible alignment
27893         problems on machines requiring strict alignment (data should be moved
27894         as type Buffer, not type Elmt).
27895
27896         * checks.adb (Apply_Array_Size_Check): Improve these checks by
27897         killing the overflow checks which we really do not need (64-bits is
27898         enough).
27899
27900 2004-06-25  Vincent Celier  <celier@gnat.com>
27901
27902         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27903         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27904         inconditionally for the main project.
27905         (Recursive_Add_Archives.Add_Archive_Path): New procedure
27906         (Link_Executables.Check_Time_Stamps): New procedure
27907         (Link_Executables.Link_Foreign): New procedure
27908         Changes made to reduce nesting level of this package
27909         (Check): New procedure
27910         (Add_Switches): When not in quiet output, check that a switch is not
27911         the concatenation of several valid switches. If it is, issue a warning.
27912         (Build_Global_Archive): If the global archive is rebuilt, linking need
27913         to be done.
27914         (Compile_Sources): Rebuilding a library archive does not imply
27915         rebuilding the global archive.
27916         (Build_Global_Archive): New procedure
27917         (Build_Library): New name for Build_Archive, now only for library
27918         project
27919         (Check_Archive_Builder): New procedure
27920         (Create_Global_Archive_Dependency_File): New procedure
27921         (Gprmake): Call Build_Global_Archive before linking
27922         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27923         throughout.
27924         (Scan_Arg): Display the Copyright notice when -v is used
27925
27926         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27927         for gnatls.
27928
27929         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27930         COMPILE.
27931         Add new GNAT LIST qualifier /FILES=
27932         Added qualifier /DIRECTORY= to GNAT METRIC
27933         Added qualifier /FILES= to GNAT METRIC
27934         Added qualifier /FILES to GNAT PRETTY
27935
27936         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27937         to take into account both versions of the switch.
27938
27939         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27940         always be the last switch to the gcc driver. Disable switch storing so
27941         that switches automatically added by the gcc driver are not put in the
27942         ALI file.
27943
27944         * prj.adb (Project_Empty): Take into account changes in components of
27945         Project_Data.
27946
27947         * prj.ads (Languages_Processed): New enumaration value All_Languages.
27948
27949         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27950         used. Split Boolean component Ada_Sources_Present in two Boolean
27951         components Ada_Sources_Present and Other_Sources_Present.
27952         Minor reformatting
27953
27954         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27955         instead of Sources_Present.
27956         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27957
27958         * prj-nmsc.adb: Minor reformatting
27959         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27960         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27961         Check_Ada_Naming_Scheme.
27962         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27963         throughout.
27964
27965         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27966         In_Limited.
27967         Make sure that all cycles where there is at least one "limited with"
27968         are detected.
27969         (Parse_Single_Project): New Boolean parameter In_Limited
27970
27971         * prj-proc.adb (Recursive_Check): When Process_Languages is
27972         All_Languages, call first Prj.Nmsc.Ada_Check, then
27973         Prj.Nmsc.Other_Languages_Check.
27974
27975         * prj-proc.adb (Process): Use Ada_Sources_Present or
27976         Other_Sources_Present (instead of Sources_Present) depending on
27977         Process_Languages.
27978
27979         * lang-specs.h: Keep -g and -m switches in the same order, and as the
27980         last switches.
27981
27982         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27983         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27984         False.
27985         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27986         False.
27987
27988         * lib.ads (Disable_Switch_Storing): New procedure.
27989
27990         * make.adb: Modifications to reduce nesting level of this package.
27991         (Check_Standard_Library): New procedure
27992         (Gnatmake.Check_Mains): New procedure
27993         (Gnatmake.Create_Binder_Mapping_File): New procedure
27994         (Compile_Sources.Compile): Add switch -gnatez as the last option
27995         (Display): Never display -gnatez
27996
27997         * Makefile.generic:
27998         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27999
28000         * gnatcmd.adb (Check_Project): New function
28001         (Process_Link): New procedure to reduce nesting depth
28002         (Check_Files): New procedure to reduce the nesting depth.
28003         For GNAT METRIC, include the inherited sources in extending projects.
28004         (GNATCmd): When GNAT LS is invoked with a project file and no files,
28005         add the list of files from the sources of the project file. If this list
28006         is too long, put it in a temp text files and use switch -files=
28007         (Delete_Temp_Config_Files): Delete the temp text file that contains
28008         a list of source for gnatpp or gnatmetric, if one has been created.
28009         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
28010         in the project file is too large, create a temporary text file that
28011         list them and pass it to the tool with "-files=<temp text file>".
28012         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
28013
28014         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
28015         generated file is in not in Ada.
28016
28017         * gnatls.adb: Remove all parameters And_Save that are no longer used.
28018         (Scan_Ls_Arg): Add processing for -files=
28019         (Usage): Add line for -files=
28020
28021         * g-os_lib.adb (On_Windows): New global constant Boolean flag
28022         (Normalize_Pathname): When on Windows and the path starts with a
28023         directory separator, make sure that the resulting path will start with
28024         a drive letter.
28025
28026         * clean.adb (Clean_Archive): New procedure
28027         (Clean_Project): When there is non-Ada code, delete the global archive,
28028         the archive dependency files, the object files and their dependency
28029         files, if they exist.
28030         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
28031
28032 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
28033
28034         * sinfo.ads: Fix typo in comment.
28035
28036         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
28037         the TSS for remote access-to-subprogram types, since these TSS are
28038         always present once the type has been analyzed.
28039         (RAS_E_Dereference): Same.
28040
28041         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
28042         reference raises Bad_Attribute, mark the reference as analyzed so the
28043         node (and any children resulting from rewrites that could have occurred
28044         during the analysis that ultimately failed) is not analyzed again.
28045
28046         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
28047
28048         * exp_dist.adb: Minor comment fix.
28049
28050         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
28051         type is an anonymous access type, no unchecked deallocation of the
28052         allocated object can occur. If the object is controlled, attach it with
28053         a count of 1. This allows attachment to the Global_Final_List, if
28054         no other relevant list is available.
28055         (Get_Allocator_Final_List): For an anonymous access type that is
28056         the type of a discriminant or record component, the corresponding
28057         finalisation list is the one of the scope of the type.
28058
28059 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
28060
28061         * sem_ch3.adb (Replace_Type): When computing the signature of an
28062         inherited subprogram, use the first subtype if the derived type
28063         declaration has no constraint.
28064
28065         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
28066         before applying previous optimization. Minor code cleanup.
28067
28068         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
28069         placed at the beginning of an unpacked record without explicit
28070         alignment, a slice of it will be aligned and does not need a copy when
28071         used as an actual.
28072
28073 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
28074
28075         PR ada/15591
28076         PR ada/15592
28077         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
28078         reference is written with expressions mimicking parameters.
28079
28080 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
28081
28082         PR ada/15589
28083         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
28084         STEP 2a. The constraints of a full type declaration of a derived record
28085         type are checked for conformance with those declared in the
28086         corresponding private extension declaration. The message
28087         "not conformant with previous declaration" is emitted if an error is
28088         detected.
28089
28090 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
28091
28092         * g-traceb.ads: Document the need for -E binder switch in the spec.
28093
28094         * g-trasym.ads: Document the need for -E binder switch in the spec.
28095
28096 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
28097
28098         * sem_prag.adb: Add handling of pragma Detect_Blocking.
28099
28100         * snames.h, snames.ads, snames.adb: Add entry for pragma
28101         Detect_Blocking.
28102
28103         * s-rident.ads: Change reference to pragma Detect_Blocking.
28104
28105         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
28106         system.ads.
28107
28108         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
28109         to indicate whether pragma Detect_Blocking is active.
28110
28111         * par-prag.adb: Add entry for pragma Detect_Blocking.
28112
28113         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
28114         of not handling WITH.
28115         Note that this replaces the previous update which was incorrect.
28116
28117 2004-06-25  Javier Miranda  <miranda@gnat.com>
28118
28119         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
28120         use-clauses to have a clean environment.
28121
28122         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
28123         the installation of the use-clauses to stablish a clean environment in
28124         case of compilation of a separate unit; otherwise the call to
28125         use_one_package is protected by the barrier Applicable_Use.
28126
28127         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
28128         the installation of the use-clauses to stablish a clean environment in
28129         case of compilation of a separate unit.
28130         (End_Use_Clauses): Minor comment cleanup.
28131
28132 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
28133
28134         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
28135
28136 2004-06-23  Richard Henderson  <rth@redhat.com>
28137
28138         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
28139
28140 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28141
28142         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
28143         now bool instead of int.
28144         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
28145         * trans.c (gnu_switch_label_stack): New function.
28146         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
28147         elaboration of renamed entity returns.
28148         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
28149         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
28150         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
28151         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
28152         DECL_SIZE_UNIT and simplify variable-sized case.
28153         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
28154         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
28155         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
28156         (build_unit_elab): Disable for now.
28157         * utils.c (mark_visited): New function.
28158         (pushdecl): Walk tree to call it for global decl.
28159         (update_pointer_to): Update all variants of pointer and ref types.
28160         Add arg to COMPONENT_REF.
28161         (convert): Likewise.
28162         Move check for converting between variants lower down.
28163         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
28164         (build_allocator): Don't force type of MODIFY_EXPR.
28165         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
28166         put_var_into_stack.
28167
28168 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28169
28170         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
28171         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
28172         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
28173         subprograms.
28174         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
28175         all callers changed.
28176         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
28177         the way that EXIT_STMT finds the loop label.
28178         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
28179         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
28180         (add_stmt): Use annotate_with_locus insted of setting directly.
28181         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
28182         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
28183         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
28184         (build_vms_descriptor): Add extra args to ARRAY_REF.
28185         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
28186         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
28187         New cases.
28188         (build_binary_op): Don't make explicit CONVERT_EXPR.
28189         Add extra rgs to ARRAY_REF.
28190
28191 2004-06-14  Pascal Obry  <obry@gnat.com>
28192
28193         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
28194         Windows.  Fix minor typo.
28195
28196         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
28197         which is now supported on Windows. With this implementation using the
28198         Library Project feature is no different on Windows than on UNIX.
28199
28200 2004-06-14  Vincent Celier  <celier@gnat.com>
28201
28202         * makegpr.adb (Compile_Sources): Nothing to do when there are no
28203         non-Ada sources.
28204
28205         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
28206
28207         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
28208         found, show the project name and the path of the previously parsed
28209         project file.
28210
28211 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
28212
28213         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
28214         array, avoid copying the actual before the call.
28215
28216 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
28217
28218         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
28219         Instead, allocate memory on worst-case alignment assumptions, and then
28220         return an aligned address within the allocated zone.
28221
28222 2004-06-14  Robert Dewar  <dewar@gnat.com>
28223
28224         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
28225         elab entities in predefined units in No_Run_Time_Mode.
28226         (Gen_Adainit_C): Same fix
28227         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
28228         units in No_Run_Time_Mode
28229         (Gen_Elab_Calls_C): Same fix
28230
28231         * symbols-vms-alpha.adb: Minor reformatting
28232
28233         * g-debpoo.ads: Minor reformatting
28234
28235         * lib.adb (In_Same_Extended_Unit): Version working on node id's
28236
28237         * lib.ads (In_Same_Extended_Unit): Version working on node id's
28238
28239         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
28240         working on nodes.
28241
28242         * make.adb: Minor reformatting
28243
28244         * par-ch12.adb: Minor reformatting
28245
28246         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
28247
28248         * prj-strt.adb: Minor reformatting
28249
28250         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
28251         be more general.
28252
28253         * sem_attr.adb: Minor reformatting
28254
28255         * sem_ch7.adb: Minor reformatting
28256
28257         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
28258         for type in the same unit as the object declaration.
28259
28260         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
28261         static string expressions and not just string literals.
28262         Minor reformatting
28263         (Set_Warning): Reset restriction warning flag for restriction pragma
28264         Implement pragma Profile_Warnings
28265         Implement pragma Profile (Restricted)
28266         Give obolescent messages for old restrictions and pragmas
28267
28268         * snames.h, snames.ads, snames.adb: Add new entry for pragma
28269         Profile_Warnings.
28270
28271         * s-rident.ads: Add declarations for restrictions required by profile
28272         Restricted and profile Ravenscar.
28273
28274         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
28275
28276         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
28277         configuration pragmas.
28278
28279 2004-06-11  Vincent Celier  <celier@gnat.com>
28280
28281         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
28282         gnatsym, when symbol policy is Restricted.
28283
28284         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
28285         gnatsym, when symbol policy is Restricted.
28286
28287         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
28288         read the symbol file.
28289         (Finalize): Fail in symbol policy Restricted if a symbol in the original
28290         symbol file is not in the object files. Do not create a new symbol file
28291         when symbol policy is Restricted.
28292
28293         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
28294         in Scng.
28295
28296         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
28297         Restricted.
28298         (Usage): Line for new switch -R
28299
28300         * make.adb (Initialize): When the platform is not VMS, add the
28301         directory where gnatmake is invoked in the front of the path, if
28302         gnatmake is invoked with directory information.  Change the Scan_Args
28303         while loop to a for loop.
28304         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
28305         if Depth is equal or greater than the proposed depth, there is nothing
28306         to do.
28307         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
28308         instead of 0.
28309
28310         * prj.ads: Add new symbol policy Restricted.
28311
28312         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
28313         with the new parameters Check_All_Labels and Case_Location.
28314
28315         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
28316         (Library_Symbol_File needs to be defined).
28317
28318         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
28319         and Case_Location If Check_All_Labels is True, check that all values of
28320         the string type are used, and output warning(s) if they are not.
28321
28322         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
28323         and Case_Location.
28324
28325         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28326
28327         * gnat_ugn.texi: Update documentation about the library directory in
28328         Library Projects.
28329
28330         * makegpr.adb (Display_Command): In verbose mode, also display the
28331         value of the CPATH env var, when the compiler is gcc.
28332         (Initialize): Change the Scan_Args while loop to a for loop
28333         (Compile_Individual_Sources): Change directory to object directory
28334         before compilations.
28335
28336         * symbols.ads: New symbol policy Restricted.
28337
28338 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
28339
28340         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28341         is now taken care of internally in the Exception_Propagation package
28342         and does not require clients assistance any more.
28343
28344         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28345         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28346         functions. Helpers to maintain a predicate required in the handling of
28347         occurrence transfer between tasks.
28348         This is now handled internally and does not require clients assistance
28349         for the setup/propagate separation anymore.
28350         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28351         allocation strategy, handle the Setup_And_Not_Propagated predicate and
28352         document.
28353
28354         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28355         raise_after_setup, now that everything is handled internally within the
28356         setup/propagation engine.
28357
28358 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28359
28360         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28361         Add additional conditions for the case of an actual being a simple
28362         name or literal. Improve inlining by preventing the generation
28363         of temporaries with a short lifetime (one use).
28364
28365 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28366
28367         PR ada/15587
28368         * einfo.ads: Minor comment updates for Has_Completion and
28369         E_Constant list of flags.
28370
28371         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28372         and constant redeclarations now set the Has_Completion flag of their
28373         defining identifiers.
28374
28375         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28376         Inspect_Deferred_Constant_Completion.
28377         Used to detect private deferred constants that have not been completed
28378         either by a constant redeclaration or pragma Import. Emits error message
28379         "constant declaration requires initialization expression".
28380
28381         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28382         completes a deferred constant.
28383
28384 2004-06-11  Geert Bosch  <bosch@gnat.com>
28385
28386         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28387
28388         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28389         calculating exponent for scaling denormal numbers.
28390         (Leading_Part): Properly raise Constraint_Error for zero or negative
28391         Adjustment.
28392         (Remainder): Properly raise Constraint_Error for zero divisor.
28393
28394 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
28395
28396         * sem_util.adb: Minor reformatting.
28397
28398         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28399         dereference when accessing the entry parameter record.
28400         (Check_Array_Type): Always check for possible implicit dereference.
28401         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28402         Abort if a pointer is still present (denoting that an implicit
28403         dereference was left in the tree by the front-end).
28404
28405         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28406         dereference when accessing the entry parameter record.
28407         (Check_Array_Type): Always check for possible implicit dereference.
28408         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28409         Abort if a pointer is still present (denoting that an implicit
28410         dereference was left in the tree by the front-end).
28411
28412 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
28413
28414         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28415         message, like the compiler itself does. Easier to parse the output.
28416
28417         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28418
28419         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28420         be base names, and not includes directories.
28421
28422 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28423
28424         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28425         so that dependencies are properly taken into account by make.
28426
28427 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28428
28429         PR ada/15622
28430         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28431         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28432
28433 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
28434
28435         * Makefile.in (install-gnatlib): install target-specific run-time files.
28436
28437         * Make-lang.in: Remove obsolete targets.
28438
28439 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28440
28441         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28442         specification, to catch misuses of program unit names.
28443
28444         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28445         superfluous conversions in an instance.
28446
28447 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28448
28449         PR ada/15403
28450         * sem_ch12.adb (Save_References): If operator node has been folded to
28451         enumeration literal, associated_node must be discarded.
28452
28453 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
28454
28455         * s-stchop-vxworks.adb: Add required pragma Convention to
28456         Task_Descriptor because it is updated by a C function.
28457
28458 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
28459
28460         PR ada/15568
28461         * Makefile.in: Remove target specific SO_OPT on IRIX
28462
28463 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28464
28465         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28466         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28467         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28468         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28469         (STMT_STMT, USE_STMT): New statement codes.
28470         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28471         * ada-tree.h: Reflect above changes.
28472         (struct tree_loop_id): Deleted.
28473         (union lang_tree_node, struct lang_decl, struct lang_type):
28474         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28475         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28476         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28477         (IS_ADA_STMT): New macro.
28478         * decl.c (annotate_decl_with_node): New function.
28479         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28480         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28481         Call add_stmt_with_node to do needed assignments.
28482         Add call to update setjmp buffer directly, not via EXPR_STMT.
28483         (maybe_variable): Argment GNAT_NODE deleted.
28484         * gigi.h (maybe_variable): Likewise.
28485         (make_transform, add_stmt_with_node, set_block_for_group): New.
28486         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28487         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28488         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28489         (set_lineno, set_lineno_from_sloc): Likewise.
28490         (record_code_position, insert_code_for): Likewise.
28491         (gnat_poplevel): Now returns void.
28492         (end_subprog_body): Now takes argument.
28493         * misc.c (cgraph.h, tree-inline.h): New includes.
28494         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28495         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28496         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28497         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28498         (gnat_parse_file): Don't set immediate_size_expand.
28499         Call cgraph functions.
28500         (gnat_expand_expr): Remove most cases.
28501         (record_code_position, insert_code_for): Remove from here.
28502         * trans.c (toplev.h, tree-gimple.h): Now included.
28503         (discard_file_names): Deleted.
28504         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28505         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28506         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28507         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28508         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28509         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28510         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28511         (set_block_for_group, add_stmt_list): Likewise.
28512         (start_stmt_group): Renamed from start_block_stmt.
28513         (end_stmt_group): Likewise, from end_block_stmt.
28514         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28515         (gigi): Don't set discard_file_names or call set_lineno.
28516         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28517         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28518         Numerous changes throughout to reflect new names and complete
28519         function-at-a-time implementation.
28520         (gnat_expand_stmt): Delete or comment out all cases.
28521         (process_inlined_subprograms): Use add_stmt.
28522         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28523         call set_lineno; also remove unneeded block handling.
28524         (process_type): Remove unneeded block handling.
28525         (build_unit_elab): Remove calls to deleted functions.
28526         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28527         (tree-dump.h): Likewise.
28528         (struct ada_binding_level): Add field jmpbuf_decl.
28529         (gnat_define_builtin, gnat_install_builtins): New.
28530         (gnat_gimplify_function, gnat_finalize): Likewise.
28531         (gnat_poplevel): No longer return BLOCK, set it instead.
28532         Remove code dealing with nested functions.
28533         (gnat_init_decl_processing): Also set size_type_node.
28534         Call gnat_install_builtins.
28535         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28536         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28537         Remove special-case for "main".
28538         (end_subprog_body): Add arg and rework for tree-ssa.
28539         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28540         Add case for BOOLEAN_TYPE.
28541         * utils2.c (rtl.h): Now include.
28542         (build_call_raise): Test Debug_Flag_NN directly.
28543         (build_call_alloc_dealloc): Don't use local stack allocation for now.
28544         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28545         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28546
28547 2004-06-07  Robert Dewar  <dewar@gnat.com>
28548
28549         * a-direct.ads, einfo.ads: Minor comment updates
28550
28551         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28552         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28553         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28554         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28555         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28556
28557         * s-interr-sigaction.adb: Remove unreferenced variable
28558         (Attached_Interrupts).  Minor reformatting.
28559         Avoid use of variable I (replace by J).
28560
28561         * par-ch10.adb: Fix text of one error message
28562
28563         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28564         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28565         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28566         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28567         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28568         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28569         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28570         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28571         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28572         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28573         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28574         2005 support.
28575
28576 2004-06-07  Doug Rupp  <rupp@gnat.com>
28577
28578         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28579
28580         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28581
28582         * mlib-tgt-vms-ia64.adb: New file.
28583
28584         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28585         Add mlib-tgt-vms-ia64.adb
28586         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28587         Move to alpha specific ifeq section.
28588         Add VMS specific versions of symbols.adb
28589         Renaming of 5q vms files.
28590
28591         * 5qsystem.ads renamed to system-vms_64.ads.
28592
28593 2004-06-07  Vincent Celier  <celier@gnat.com>
28594
28595         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28596         explain that when a time of day corresponding to the non existing hour
28597         on the day switching to DST is specified, Split may return a different
28598         value for Seconds.
28599
28600         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28601         to GNAT PRETTY.
28602
28603         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28604         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28605
28606         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28607         to False.
28608         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28609         the linking options.
28610         (Build_Library.Check_Libs): On VMS, if there is a dependency on
28611         g-trasym.ads, set Gtrasymobj_Needed to True.
28612
28613         * prj-attr.adb: Add new package Metrics for gnatmetric
28614
28615         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28616         canonical case to take into account files with upper case characters on
28617         Windows.
28618         (Ada_Check): Load the reference symbol file name in the name buffer to
28619         check it, not the symbol file name.
28620
28621         * snames.ads, snames.adb: Add standard name Metrics (name of project
28622         file package for gnatmetric).
28623
28624         * vms_conv.ads: Add Metric to Comment_Type
28625
28626         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28627
28628         * vms_data.ads: Add qualifiers for GNAT METRIC
28629
28630         * makegpr.adb (Link_Executables): Take into account the switches
28631         specified in package Linker of the main project.
28632
28633 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
28634
28635         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28636         the index of the last element is Units.Last, not Units.Table'Last
28637         (which is usually not a valid index within the actually allocated
28638         storage for the table).
28639
28640         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28641         determines whether to generate a call to a checked storage pool
28642         Dereference action.
28643         Generate such a call only for a dereference that either comes from
28644         source, or is the result of rewriting a dereference that comes from
28645         source.
28646
28647 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
28648
28649         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28650
28651 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
28652
28653         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28654         file level, elaborate the stride for inner dimensions in alignment
28655         units, not bytes.
28656
28657         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28658         in a comment.
28659
28660 2004-06-07  Javier Miranda  <miranda@gnat.com>
28661
28662         * exp_ch6.adb: Correct wrong modification in previous patch
28663
28664 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
28665
28666         * g-trasym.ads: Corrected comment to properly reflect level of support
28667         on VMS.
28668
28669 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
28670
28671         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28672         includes case of a variable referenced on the left hand side of an
28673         assignment, therefore remove redundant code. Variables and prefixes of
28674         indexed or selected components are now marked as referenced on left
28675         hand side. Warnings are now properly emitted when variables or prefixes
28676         are assigned but not read.
28677
28678         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28679         left hand side referenced variables. Private access types do not
28680         produce the warning "variable ... is assigned but never read".
28681         Add also additional checks to left hand side referenced variables.
28682         Aliased, renamed objects and access types do not produce the warning
28683         "variable ... is assigned but never read" since other entities may read
28684         the memory location.
28685
28686 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
28687
28688         * Makefile.in: In the powerpc/vxworks-specific section, restore
28689         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28690         by mistake).
28691
28692 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
28693
28694         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28695         predefined operators.
28696         Removes spurious type errors from g-trasym-vms.adb.
28697
28698         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28699         distinct from the operator appearing in the source, call appropriate
28700         routine to insert conversions when needed, and complete resolution of
28701         node.
28702         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28703         interpretations for rewritten right operand.
28704         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28705         the other operand is overloaded and the context is a type conversion.
28706
28707 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28708
28709         * ada-tree.def (BLOCK_STMT): Now has two operands.
28710         (BREAK_STMT): New.
28711
28712         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28713
28714         * gigi.h: (gnat_poplevel): Now returns a tree.
28715
28716         * trans.c (end_block_stmt): Add arg; all callers changed.
28717         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28718         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28719         (add_stmt): Set TREE_TYPE.
28720         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28721         (gnat_expand_stmt, case BREAK_STMT): New case.
28722
28723         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28724
28725 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
28726
28727         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28728         procedure Set_Stack_Size that is not needed.
28729
28730 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
28731
28732         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28733         used for gnatpp input file and for the files upon which it depends
28734
28735 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
28736
28737         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28738
28739 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
28740
28741         * gnatvsn.ads: Bump version numbers appropriately.
28742         Add new build type.
28743
28744 2004-06-07  Pascal Obry  <obry@gnat.com>
28745
28746         * gnat_ugn.texi: Improve comments about imported names and link names
28747         on Windows. Add a note about the requirement to use -k gnatdll's option
28748         when working with a DLL which has stripped stdcall symbols (no @nn
28749         suffix).
28750
28751 2004-05-27  Vincent Celier  <celier@gnat.com>
28752
28753         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28754         COMMENTS_LAYOUT=UNTOUCHED
28755
28756         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28757         symbols-vms-alpha.adb
28758
28759 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
28760
28761         * sem.ads: Clarify documentation on checks suppression.
28762
28763         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28764
28765 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
28766
28767         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28768         the case of multiple derivations.
28769         (Is_Object_Reference): For a selected component, verify that the prefix
28770         is itself an object and not a value.
28771
28772         * sem_ch12.adb (Same_Instantiated_Constant): New name for
28773         Same_Instantiated_Entity.
28774         (Same_Instantiated_Variable): Subsidiary to
28775         Check_Formal_Package_Instance, to recognize actuals for in-out generic
28776         formals that are obtained from a previous formal package.
28777         (Instantiate_Subprogram_Body): Emit proper error when
28778         generating code and the proper body of a stub is missing.
28779
28780         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28781         has a universal interpretation, do the disambiguation here.
28782
28783         * exp_ch4.adb (Expand_N_Type_Conversion,
28784         Expand_N_Unchecked_Type_Conversion): Special handling when target type
28785         is Address, to avoid typing anomalies when Address is a visible integer
28786         type.
28787
28788         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28789         to determine whether a subprogram should not be marked Pure, even when
28790         declared in a pure package.
28791
28792 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
28793
28794         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28795
28796         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28797         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28798         Update the documentation about the Ravenscar profile, following the
28799         definition found in AI-249.
28800
28801         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28802         setting the Profile (Ravenscar). This must be done in addition to
28803         setting the required restrictions.
28804
28805         * rtsfind.ads: Add the set of operations defined in package
28806         Ada.Interrupts.
28807
28808         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28809         restriction.
28810
28811 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
28812
28813         lang-specs.h: Always require -c or -S and always redirect to /dev/null
28814         if -gnatc or -gnats is passed.
28815
28816 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
28817
28818         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28819         a significant reference. Warnings are now properly emitted when a
28820         discriminated type is not referenced.
28821
28822         * lib-xref.adb (Generate_Reference): A deferred constant completion,
28823         record representation clause or record type discriminant does not
28824         produce a reference to its corresponding entity. Warnings are now
28825         properly emitted when deferred constants and record types are not
28826         referenced.
28827
28828 2004-05-27  Geert Bosch  <bosch@gnat.com>
28829
28830         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28831         Fixes ACATS Annex G tests.
28832
28833 2004-05-27  Robert Dewar  <dewar@gnat.com>
28834
28835         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28836         handling WITH
28837
28838 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
28839
28840         * s-interr.adb (Server_Task): Take into account case of early return
28841         from sigwait under e.g. linux.
28842
28843 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
28844
28845         * gnat_ugn.texi: Add description for the new gnatpp options:
28846          -rnb - replace the original source without creating its backup copy
28847          -c0 - do not format comments
28848
28849 2004-05-24  Geert Bosch  <bosch@gnat.com>
28850
28851         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28852         with 192 bits of precision, sufficient to reduce a double-extended
28853         arguments X with a maximum relative error of T'Machine_Epsilon, for X
28854         in -2.0**32 .. 2.0**32.
28855         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
28856         reduction by the processor, which only uses a 68-bit approximation of
28857         Pi.
28858         (Tan): Always reduce arguments and compute function either using
28859         the processor's fptan instruction, or by dividing sin and cos as needed.
28860
28861 2004-05-24  Doug Rupp  <rupp@gnat.com>
28862
28863         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28864         gcc error on 32/64 bit VMS.
28865
28866 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
28867
28868         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28869         since this is what we get for stack overflows although not documented
28870         as such.
28871         Document the issues which may require adjustments to our signal
28872         handlers.
28873
28874 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
28875
28876         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28877         enclosing dynamic scope if the instantiation is within a generic unit.
28878
28879 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28880
28881         * exp_dbug.ads: Fix typo.
28882
28883         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28884         Rename it to its proper name: system-linux-ia64.ads
28885         (stamp-gnatlib1): Remove extra target specific run time files when
28886         setting up the rts directory.
28887
28888 2004-05-24  Javier Miranda  <miranda@gnat.com>
28889
28890         * einfo.ads, einfo.adb (Limited_Views): Removed.
28891         (Limited_View): New attribute that replaces the previous one. It is
28892         now a bona fide package with the limited-view list through the
28893         first_entity and first_private attributes.
28894
28895         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28896         limited-private-with clause.
28897         (Install_Limited_Withed_Unit): Install the private declarations of a
28898         limited-private-withed package. Update the installation of the shadow
28899         entities according to the new structure (see Build_Limited_Views)
28900         (Build_Limited_Views): Replace the previous implementation of the
28901         limited view by a package entity that references the first shadow
28902         entity plus the first shadow private entity (required for limited-
28903         private-with clause)
28904         (New_Internal_Shadow_Entity): Code cleanup.
28905         (Remove_Limited_With_Clause): Update the implementation to undo the
28906         new work carried out by Build_Limited_Views.
28907         (Build_Chain): Complete documentation.
28908         Replace Ada0Y by Ada 0Y in comments
28909         Minor reformating
28910
28911         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28912         types the level of accessibility depends on the enclosing type
28913         declaration.
28914
28915         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28916         entities. Complete documentation of previous change.
28917
28918 2004-05-24  Robert Dewar  <dewar@gnat.com>
28919
28920         * namet.adb: Minor reformatting
28921         Avoid use of name I (replace by J)
28922         Minor code restructuring
28923
28924         * sem_ch6.adb: Minor reformatting
28925
28926         * lib-writ.adb: Do not set restriction as active if this is a
28927         Restriction_Warning case.
28928
28929         * sem_prag.adb: Reset restriction warning flag if real pragma
28930         restriction encountered.
28931
28932         * s-htable.adb: Minor reformatting
28933         Change rotate count to 3 in Hash (improves hash for small strings)
28934
28935         * 5qsystem.ads: Add comments for type Address (no literals allowed).
28936
28937         * gnat_ugn.texi: Add new section of documentation "Code Generation
28938         Control", which describes the use of -m switches.
28939
28940 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
28941
28942         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28943         through the DECL_INITIAL for renamed variables.
28944
28945 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28946
28947         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28948
28949 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
28950
28951         * exp_dbug.ads: Correct comments concerning handling of overloading,
28952         since we no longer use $ anymore.
28953
28954 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
28955
28956         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28957         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28958         with illegal subunits.
28959
28960 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
28961
28962         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28963         body with front-end inlining enabled, check whether an inline pragma
28964         appears immediately after the body and applies to it.
28965
28966         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28967         enabled and the pragma appears after the body of the subprogram.
28968
28969 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28970
28971         Part of function-at-a-time conversion
28972
28973         * misc.c (adjust_decl_rtl): Deleted.
28974         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28975         Define.
28976
28977         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28978         (add_decl_stmt, add_stmt, block_has_vars): New functions.
28979         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28980
28981         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28982         when making a decl.
28983         (gnat_to_gnu_entity): Likewise.
28984         Use add_stmt to update setjmp buffer.
28985         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28986         flush_addressof.
28987         No longer call adjust_decl_rtl.
28988         (DECL_INIT_BY_ASSIGN_P): New macro.
28989         (DECL_STMT_VAR): Likewise.
28990
28991         * trans.c (gigi): Call start_block_stmt to make the outermost
28992         BLOCK_STMT.
28993         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28994         Call start_block_stmt and end_block_stmt temporarily.
28995         Use gnat_expand_stmt instead of expand_expr_stmt.
28996         (add_decl_stmt): New function.
28997         (tree_transform): Call it.
28998         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28999         (end_block_stmt): Set type and NULL_STMT.
29000         (gnat_expand_stmt): Make recursize call instead of calling
29001         expand_expr_stmt.
29002         (gnat_expand_stmt, case DECL_STMT): New case.
29003         (set_lineno_from_sloc): Do nothing if global.
29004         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
29005         (start_block_stmt, add_stmt, end_block_stmt): New functions.
29006         (build_block_stmt): Call them.
29007         (gnat_to_code): Don't expand NULL_STMT.
29008         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
29009         args.
29010         (tree_transform): Likewise.
29011         (tree_transform, case N_Null_Statement): Return NULL_STMT.
29012         (gnat_expand_stmt, case NULL_STMT): New case.
29013         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
29014         IF_STMT_TRUE.
29015
29016         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
29017         TREE_ADDRESSABLE.
29018
29019         * utils.c (create_var_decl): Do not call expand_decl or
29020         expand_decl_init.
29021         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
29022         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
29023         here.
29024         (struct e_stack): Add chain_next to GTY.
29025         (struct binding_level): Deleted.
29026         (struct ada_binding_level): New struct.
29027         (free_block_chain): New.
29028         (global_binding_level, clear_binding_level): Deleted.
29029         (global_bindings_p): Rework to see if no chain.
29030         (kept_level_p, set_block): Deleted.
29031         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
29032         new data structure and work directly on BLOCK node.
29033         (gnat_poplevel): Similarly.
29034         (get_decls): Look at BLOCK_VARS.
29035         (insert_block): Work directly on BLOCK node.
29036         (block_has_var): New function.
29037         (pushdecl): Rework for new binding structures.
29038         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
29039         poplevel.
29040         (build_subprog_body): Likewise.
29041         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
29042
29043         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
29044
29045         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
29046         (DECL_STMT_VAR): Likewise.
29047
29048 2004-05-17  Robert Dewar  <dewar@gnat.com>
29049
29050         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
29051         procedure
29052
29053         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
29054         of restriction synonyums by using
29055         Restrict.Process_Restriction_Synonyms.
29056
29057         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
29058
29059         * s-restri.ads (Tasking_Allowed): Correct missing comment
29060
29061         * s-rident.ads: Add entries for restriction synonyms
29062
29063         * ali.adb: Fix some problems with badly formatted ALI files that can
29064         result in infinite loops.
29065
29066         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
29067         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
29068         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
29069         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
29070         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
29071         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
29072         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
29073         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
29074         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
29075         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
29076         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
29077         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
29078         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
29079         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
29080         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
29081         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
29082         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29083         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29084         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
29085         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
29086         to Task_Id (minor cleanup).
29087
29088 2004-05-17  Vincent Celier  <celier@gnat.com>
29089
29090         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
29091         directory separator.
29092
29093         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
29094         project being extended, if Languages is not declared in extending
29095         project.
29096
29097 2004-05-17  Javier Miranda  <miranda@gnat.com>
29098
29099         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
29100         limited view of a visible sibling.
29101
29102 2004-05-14  Robert Dewar  <dewar@gnat.com>
29103
29104         * gnat_ugn.texi: Minor change to -gnatS documentation
29105
29106         * sprint.adb: Remove some instances of Assert (False) and for this
29107         purpose replace them by output of a ??? string.
29108
29109         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
29110         Assert (False).
29111
29112         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
29113         flag processing. This was suppressing required dependencies in
29114         No_Run_Time mode and is not needed since the binder does not generate
29115         references for things in libgnat anyway.
29116
29117         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
29118         warning.
29119
29120 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
29121
29122         * gnat_ugn.texi: Document AIX-specific issue with initialization of
29123         resolver library.
29124
29125         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
29126         action for the case of an actual parameter in an init proc call.
29127
29128 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
29129
29130         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
29131         subtype, check visible entities in base type.
29132
29133         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
29134         actions if the object is a renaming.
29135
29136         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
29137         Check_Formal_Package_Instance, to determine more precisely when the
29138         formal and the actual denote the same entity.
29139
29140 2004-05-14  Javier Miranda  <miranda@gnat.com>
29141
29142         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
29143
29144         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
29145         corresponding to a private_with must be removed from visibility; it
29146         will be made visible later, just before we analyze the private part of
29147         the package.
29148         (Check_Private_Child_Unit): Allow private_with clauses in public
29149         siblings.
29150         (Install_Siblings): Make visible the private entities of private-withed
29151         siblings.
29152         (Install_Withed_Unit): Do not install the private withed unit if we
29153         are compiling a package declaration and the Private_With_OK flag was
29154         not set by the caller. These declarations will be installed later,
29155         just before we analyze the private part of the package.
29156
29157         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
29158         during the evaluation of the expression that initializes the object,
29159         decorate it with the expected type to avoid cascade errors.
29160         Code cleanup.
29161
29162         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
29163         subprogram we have to install the private_with clauses after its
29164         specification has been analyzed (as documented in AI-262.TXT).
29165
29166         * sem_ch8.adb (Has_Private_With): New function. Determines if the
29167         current compilation unit has a private with on a given entity.
29168         (Find_Direct_Name): Detect the Beaujolais problem described in
29169         AI-262.TXT
29170
29171         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
29172         provides the functionality of the function Is_Ancestor that was
29173         previously available in sem_ch10. It has been renamed to avoid
29174         overloading.
29175
29176         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
29177
29178 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29179
29180         * utils.c (build_vms_descriptor): Use SImode pointers.
29181
29182 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
29183
29184         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
29185
29186 2004-05-14  GNAT Script  <nobody@gnat.com>
29187
29188         * Make-lang.in: Makefile automatically updated
29189
29190 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
29191
29192         Renaming of target specific files for clarity
29193
29194         * Makefile.in: Rename GNAT target specific files.
29195
29196         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
29197         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
29198         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
29199         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
29200         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
29201         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
29202         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
29203         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
29204         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
29205         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
29206         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
29207         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
29208         51osinte.adb, 51osinte.ads, 51system.ads,
29209         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
29210         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
29211         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
29212         56tpopsp.adb, 57system.ads, 58system.ads,
29213         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
29214         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29215         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
29216         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
29217         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
29218         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29219         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
29220         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29221         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29222         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
29223         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
29224         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
29225         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
29226         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
29227         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
29228         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29229         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29230         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29231         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
29232         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
29233         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
29234         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
29235         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
29236         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29237         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
29238         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
29239         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29240         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
29241         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29242         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
29243         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
29244         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
29245         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
29246         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
29247         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
29248         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
29249         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
29250         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
29251         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
29252         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
29253
29254         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
29255         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
29256         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
29257         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
29258         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
29259         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
29260         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
29261         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
29262         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
29263         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
29264         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
29265         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
29266         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
29267         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
29268         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
29269         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
29270         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
29271         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
29272         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
29273         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
29274         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
29275         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
29276         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
29277         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
29278         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
29279         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
29280         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
29281         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
29282         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
29283         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
29284         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
29285         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
29286         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
29287         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
29288         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
29289         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
29290         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
29291         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
29292         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
29293         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
29294         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
29295         s-osinte-vms.ads, s-osinte-vxworks.adb,
29296         s-osinte-vxworks.ads, s-osprim-mingw.adb,
29297         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
29298         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
29299         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
29300         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
29301         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
29302         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
29303         s-stchop-vxworks.adb, s-taprop-dummy.adb,
29304         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
29305         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
29306         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
29307         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
29308         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
29309         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
29310         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
29311         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
29312         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
29313         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
29314         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
29315         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
29316         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
29317         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
29318         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
29319         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
29320         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
29321         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
29322         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
29323         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29324         system-irix-o32.ads, system-linux-x86_64.ads,
29325         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29326         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29327         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29328         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29329         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29330         system-vxworks-mips.ads, system-vxworks-ppc.ads,
29331         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29332         above.
29333
29334 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
29335
29336         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29337
29338 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
29339
29340         Merge from tree-ssa-20020619-branch.
29341
29342         * config-lang.in (boot_language, build_by_default): Set
29343         to no.
29344         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29345         (max_size): Add static chain op for call_expr.
29346
29347 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
29348
29349         PR target/15331
29350         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29351
29352 2004-05-11  Roger Sayle  <roger@eyesopen.com>
29353
29354         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29355         COND_EXPR.
29356
29357 2004-05-10  Doug Rupp  <rupp@gnat.com>
29358
29359         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29360         system.aux_dec.
29361
29362         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29363
29364         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29365
29366         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29367         Fixes undefined symbols in IA64 gnatlib.
29368
29369         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29370
29371         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29372         Short_Address). This will be moved to system.auxdec.
29373
29374 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
29375
29376         * sem_util.adb: Replace test for presence of a node that is always
29377         present with a call to Discard_Node.
29378
29379         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29380         Analyze on the library unit node after generation of distribution stub
29381         constructs.  The call was a no-op because Unit_Node has already been
29382         Analyzed, and the tree fragments for the distribution stubs are
29383         analyzed as they are inserted in Exp_Dist.
29384         Update comment regarding to distribution stubs to reflect that we
29385         do not generate stub in separate files anymore.
29386
29387         * einfo.ads: Clarify the fact that a tagged private type has the
29388         E_Record_Type_With_Private Ekind.
29389
29390         * erroutc.adb: Minor reformatting
29391
29392         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29393         values if line length is increased using -gnatyM (noticed during code
29394         reading).
29395
29396         * eval_fat.adb: Minor reformatting
29397         Put spaces around exponentiation operator
29398
29399 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29400
29401         PR ada/15005
29402         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29403         has been rewritten as an explicit dereference, retrieve type of
29404         original node to check for possibly unconstrained record type.
29405
29406 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29407
29408         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29409         overriding, use the operation of the parent unconditionally.
29410
29411         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29412         operation when either operand is a literal, to avoid further
29413         ambiguities.
29414
29415         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29416         overridden by a previous explicit declaration, mark the previous entity
29417         as overriding.
29418
29419         * sem_disp.adb (Check_Dispatching_Operation): New predicate
29420         Is_Visibly_Controlled, to determine whether a declaration of a
29421         primitive control operation for a derived type overrides an inherited
29422         one. Add warning if the explicit declaration does not override.
29423
29424 2004-05-10  Vincent Celier  <celier@gnat.com>
29425
29426         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29427         some cases when the sources are no longer present.
29428
29429         * make.adb (Collect_Arguments): Fail if an external source, not part
29430         of any project need to be compiled, when switch -x has not been
29431         specified.
29432
29433         * makeusg.adb: Document new switch -x
29434
29435         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29436         defaulted to False.
29437
29438         * switch-m.adb (Scan_Make_Switches): New switch -x
29439
29440         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29441         gnatmake switch -x.
29442
29443         * gnat_ugn.texi: Document new gnatmake switch -x
29444
29445 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
29446
29447         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29448
29449         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29450         (process_attributes): Likewise.
29451
29452 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
29453
29454         * s-inmaop.ads: Fix spelling mistake in one of the comments.
29455
29456 2004-05-10  Robert Dewar  <dewar@gnat.com>
29457
29458         * gnat_ugn.texi: Document that for config pragma files, the maximum
29459         line length is always 32767.
29460
29461         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29462         literals is now allowed.
29463
29464         * gnat-style.texi: Remove statement about splitting long lines before
29465         an operator rather than after, since we do not follow this rule at all.
29466         Clarify rule (really lack of rule) for spaces around exponentiation
29467
29468         * sem_elim.adb: Allow concatenation of string literals as well as a
29469         single string literal for pragma arguments.
29470
29471         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29472
29473         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29474         written for append case.
29475
29476         * frontend.adb: Changes to avoid checking max line length in config
29477         pragma files.
29478
29479         * g-os_lib.ads: Minor reformatting
29480
29481         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29482         wrong in any case. Instead use standard value. Noticed during code
29483         reading.
29484
29485         * opt.ads (Max_Line_Length): New field, used to implement removal of
29486         limitation on length of lines when scanning config pragma files.
29487
29488         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29489         makeutl.ads, makeutl.adb: Minor reformatting
29490
29491         * scn.adb: Do not check line length while scanning config pragma files
29492         Do not check line length while scanning out license information
29493
29494         * scng.adb: Changes to avoid line length checks while parsing config
29495         pragma files.
29496
29497 2004-05-10  GNAT Script  <nobody@gnat.com>
29498
29499         * Make-lang.in: Makefile automatically updated
29500
29501 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
29502
29503         * osint.adb (Find_Program_Name): Fix handling of VMS version
29504         number.
29505
29506 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
29507
29508         * g-os_lib.ads (Invalid_Time): New constant
29509
29510         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29511         return OS_Time instead of time_t to match what is imported by Ada.
29512         Now return -1 if the file doesn't exist, instead of a random value
29513
29514 2004-05-05  Robert Dewar  <dewar@gnat.com>
29515
29516         * usage.adb: Add line for -gnatR?s switch
29517
29518         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29519
29520         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29521         and for Match (Data_First, Data_last)
29522
29523         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29524         written when we are dealing with multi-unit files.
29525
29526 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
29527
29528         * Makefile.in: Remove unused targets and variables.
29529
29530 2004-05-05  Vincent Celier  <celier@gnat.com>
29531
29532         * switch-m.adb: New gnatmake switch -eI
29533
29534         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29535         of new gnatmake switch -eInnn.
29536
29537         * makegpr.adb: Take into account new parameters Index and Src_Index in
29538         Prj.Util.
29539
29540         * clean.adb: Implement support for multi-unit sources, including new
29541         switch -i.
29542
29543         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29544         Src_Index.
29545
29546         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29547         (Extract_From_Q): New out parameter Index
29548         (Mark, Is_Marked): Subprograms moved to Makeutl
29549         (Switches_Of): New parameter Source_Index
29550         (Add_Switch): New parameter Index
29551         (Check): New parameter Source_Index
29552         (Collect_Arguments): New parameter Source_Index
29553         (Collect_Arguments_And_Compile): New parameter Source_Index
29554         (Compile): New parameter Source_Index
29555         Put subprograms in alphabetical order
29556         Add support for multi-source sources, including in project files.
29557
29558         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29559         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29560         Make.
29561
29562         * makeusg.adb: New gnatmake switch -eInnn
29563
29564         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29565         Prj.Util.Value_Of.
29566
29567         * opt.ads (Main_Index): New variable, defaulted to 0.
29568
29569         * osint.ads, osinte.adb (Add_File): New parameter Index
29570         (Current_Source_Index): New function
29571
29572         * prj.adb: Take into account new components Index and Src_Index
29573
29574         * prj.ads (String_Element): New component Index
29575         (Variable_Value): New component Index
29576         (Array_Element): New component Src_Index
29577
29578         * prj-attr.adb: Indicate that optional index may be specified for
29579         attributes Main, Executable, Spec, Body and some of Switches.
29580
29581         * prj-attr.ads (Attribute_Kind): New values for optional indexes
29582         (Attribute_Record): New component Optional_Index
29583
29584         * prj-com.ads (File_Name_Data): New component Index
29585
29586         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29587
29588         * prj-env.adb (Put): Output optional index
29589
29590         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29591         attributes Spec and Body.
29592
29593         * prj-nmsc.adb: Process optional indexes
29594
29595         * prj-pp.adb: Ouput "at" for optional indexes
29596
29597         * prj-proc.adb: Take into account optional indexes
29598
29599         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29600         Optional_Index. For string literal,
29601         process optional index when Optional_Index is True.
29602         (Parse_Expresion): New Boolean parameter Optional_Index
29603
29604         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29605         (Set_Source_Index_Of): New procedure
29606
29607         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29608         index.
29609
29610         * prj-util.ads (Executable_Of): New parameter Index
29611         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29612         New parameter Src_Index, defaulted to 0.
29613
29614 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29615
29616         PR ada/15257
29617         * sem_ch3.adb (Access_Definition): If this is an access parameter
29618         whose designated type is imported through a limited_with clause, do
29619         not add the enclosing subprogram to the list of private dependents of
29620         the type.
29621
29622 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29623
29624         PR ada/15258
29625         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29626         a limited_with clause, and the other is its non-limited view.
29627
29628 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
29629
29630         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29631
29632         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29633         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29634         Stand.Boolean_Literals to produce references to entities
29635         Standard_False and Standard_True from compile-time computed boolean
29636         values.
29637
29638         * stand.ads (Boolean_Literals): New variable, provides the entity
29639         values for False and True, for use by the expander.
29640
29641 2004-05-05  Doug Rupp  <rupp@gnat.com>
29642
29643         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29644         5vinmaop.adb: Unchecked convert Short_Address vice Address
29645
29646         * adaint.c, raise.c: Caste CRTL function return value
29647         to avoid gcc error on 32/64 bit IVMS.
29648
29649         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29650         target = IA64/VMS.
29651
29652         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29653
29654         * 5qsystem.ads (Address): Declare as Long_Integer
29655         (Short_Address): Declare as 32 bit subtype of Address
29656         Declare  abstract address operations to avoid gratuitous ambiguities.
29657
29658 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
29659
29660         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29661         instead of the old Boolean_Entry_Barriers.
29662         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29663
29664 2004-05-05  GNAT Script  <nobody@gnat.com>
29665
29666         * Make-lang.in: Makefile automatically updated
29667
29668 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29669
29670         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29671
29672 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
29673
29674         PR ada/15152
29675         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29676         alone. Replacing object references by literals is inappropriate in a
29677         so low level context.
29678
29679 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29680
29681         * a-exexpr.adb: Add comments
29682
29683 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
29684
29685         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29686         declare the Ancestor_Tags array in Type_Specific_Data with a small size
29687         without risking a bounds check error when accessing one of its
29688         components.
29689         (Type_Specific_Data): Define Ancestor_Tags as a small array.
29690         This prevents us from hitting a limitation during the debug info
29691         generation when using stabs.
29692
29693         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29694         small array.
29695         This prevents us from hitting a limitation during the debug info
29696         generation when using stabs.
29697
29698 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
29699
29700         lang-specs.h: Remove -gnatz* from specs.
29701
29702 2004-05-03  Vincent Celier  <celier@gnat.com>
29703
29704         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29705
29706         * Make-lang.in, Makefile.in: Add gprmake
29707
29708 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
29709
29710         * sem_aggr.adb: Fix typo in comment.
29711
29712 2004-05-03  Robert Dewar  <dewar@gnat.com>
29713
29714         * make.adb: Minor reformatting
29715
29716         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29717
29718         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29719         so that it works when address is not a private type.
29720
29721         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29722         properly with rewritten unchecked conversions. This prevents
29723         order-of-elaboration issues that can otherwise arise.
29724         (Minimum_Size): Don't check size of access types under VMS
29725
29726         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29727         interpretations of integer literals as type System.Address.
29728
29729         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29730         (Is_Descendent_Of): New function
29731
29732 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
29733
29734         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29735         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29736         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29737
29738         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29739         of the old Max_Entry_Queue_Depth.
29740
29741         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29742         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29743         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29744
29745         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29746         New entry for proper handling of Max_Entry_Queue_Depth.
29747         New entry for proper handling of No_Dynamic_Interrupts.
29748
29749         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29750         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29751         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29752         the GNAT specific restriction Max_Entry_Queue_Depth.
29753         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29754         the GNAT specific restriction No_Dynamic_Interrupts.
29755
29756         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29757         instead of the old Boolean_Entry_Barriers.
29758         Use the new restriction No_Dynamic_Attachment instead of the old
29759         No_Dynamic_Interrupts.
29760
29761         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29762         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29763
29764         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29765         of the old Max_Entry_Queue_Depth.
29766
29767 2004-05-03  GNAT Script  <nobody@gnat.com>
29768
29769         * Make-lang.in: Makefile automatically updated
29770
29771 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
29772
29773         * checks.adb (Enable_Range_Check): If the prefix of an index component
29774         is an access to an unconstrained array, perform check unconditionally.
29775
29776 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29777
29778         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29779         Component_Clause.
29780
29781 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
29782
29783         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29784         alternate stack setting. There was no support for the tasking cases
29785         and the changes eventually caused a number of side-effect failures in
29786         the non-tasking case too.
29787
29788 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
29789
29790         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29791         -gnats is passed.
29792
29793 2004-04-29  Vincent Celier  <celier@gnat.com>
29794
29795         * make.adb (Gnatmake): Increase max size of argument array for
29796         gnatbind for the potential addition of -F.
29797         If there are Stand-Alone Library projects, invoke gnatbind with -F to
29798         be sure that elaboration flags will be checked.
29799
29800         * switch-c.adb: Correct call to Scan_Pos for -gnateI
29801
29802 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
29803
29804         * sem_warn.adb (Check_References): Move '<access-variable> may be
29805         null' warning out of under Warn_On_No_Value_Assigned.
29806
29807 2004-04-29  Ed Falis  <falis@gnat.com>
29808
29809         * gnat_ugn.texi: Fixed texi error
29810
29811 2004-04-29  Robert Dewar  <dewar@gnat.com>
29812
29813         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29814         abstract operations if they come from predefined files.
29815
29816         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29817         Dynamic, not RM).
29818
29819         * s-addope.adb: Correct obvious error in mod function
29820
29821 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
29822
29823         * Makefile.in: Add target pairs for powerpc darwin*
29824         tasking support.
29825
29826         * a-intnam-darwin.ads, s-osinte-darwin.adb,
29827         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29828
29829 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29830
29831         * Makefile.in: Add target macro definitions for s390*-linux*.
29832         * system-linux-s390.ads: New file.
29833         * system-linux-s390x.ads: New file.
29834
29835 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
29836
29837         * gnat_ugn.texi: Correct argument to @setfilename.
29838
29839 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29840
29841         * a-exexpr.adb (Unwind_Word): New data type.
29842         (Unwind_Exception): Use it as type of Private1 and Private2.
29843
29844         * raise.c (db_action_for): Fix debug printf.
29845
29846 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
29847
29848         * a-wtmoio.ads: Formal type must be a modular type, not a signed
29849         integer type.
29850
29851 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29852
29853         * decl.c (gnat_to_gnu_entity, case object): Call
29854         __builtin_update_setjmp_buf.
29855
29856         * gigi.h (update_setjmp_buf): Deleted.
29857         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29858
29859         * misc.c: (update_setjmp_buf): Deleted.
29860
29861         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29862         around block of RTL.
29863
29864         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29865
29866 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
29867
29868         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29869         subprogram for which no pragma All_Calls_Remote applies, store the
29870         address of the real subprogram in the underlying record type, so local
29871         dereferences do not go through the PCS.
29872
29873 2004-04-26  Robert Dewar  <dewar@gnat.com>
29874
29875         * i-c.ads: Add some type qualifications to avoid ambiguities when
29876         compiling with s-auxdec.ads and a non-private address type.
29877
29878 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
29879
29880         * Makefile.rtl: Fix error in previous check-in:
29881         Add s-addope.o to non tasking object list (rather than tasking object
29882         list).
29883
29884 2004-04-26  Javier Miranda  <miranda@gnat.com>
29885
29886         * sem_aggr.adb: Fix typo in comments
29887         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29888         Required to check the null-exclusion attribute.
29889
29890         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29891         case of anonymous access types in record and array components. For a
29892         component definition the level is the same of the enclosing composite
29893         type.
29894
29895         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29896         that are anonymous access types the level of accessibility depends on
29897         the enclosing type declaration. In order to have this information, set
29898         the scope of the anonymous access type to the enclosing record type
29899         declaration.
29900         (Array_Type_Declaration): In case of components that are anonymous
29901         access types the level of accessibility depends on the enclosing type
29902         declaration. In order to have this information, set the scope of the
29903         anonymous access type to the enclosing array type declaration.
29904
29905         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29906         access type.
29907
29908         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29909         renaming of anonymous access-to-constant types allowed if and only if
29910         the renamed object is access-to-constant.
29911
29912         * sem_util.adb (Type_Access_Level): In case of anonymous access types
29913         that are component_definition or discriminants of a nonlimited type,
29914         the level is the same as that of the enclosing component type.
29915
29916 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
29917
29918         * sem_elim.adb: Some minor code reorganization from code reading. Fix
29919         misprint in the function name (File_Name_Match).
29920
29921 2004-04-23  Laurent Guerby  <laurent@guerby.net>
29922
29923         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29924         install.
29925
29926 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29927
29928         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29929
29930 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
29931
29932         * adaint.c (__gnat_try_lock): No longer requires that the parent
29933         directory be writable, the directory itself is enough.
29934         (gnat_is_absolute_path): Change profile, so that the call from
29935         GNAT.OS_Lib can be made more efficient.
29936
29937         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29938         from GNAT.OS_Lib can be made more efficient.
29939
29940         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29941         one copy of the file name. Found by code reading.
29942
29943 2004-04-23  Vincent Celier  <celier@gnat.com>
29944
29945         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29946         Correct documentation on gnatmake switches transmitted to the compiler
29947
29948         * ali.ads: Minor comment fix
29949
29950 2004-04-23  Javier Miranda  <miranda@gnat.com>
29951
29952         * sem_ch6.adb: (Confirming Types): Code cleanup
29953
29954         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29955         subprogram types: E_Anonymous_Access_Subprogram_Type and
29956         E_Anonymous_Access_Protected_Subprogram_Type.
29957
29958 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
29959
29960         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29961         whether a pragma All_Calls_Remote applies to the subprogram on which
29962         'Access is taken.
29963         No functional change is introduced by this revision; the new parameter
29964         will be used to allow calls to local RCI subprograms to be optimized
29965         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29966         as is already done in the PolyORB implementation of the DSA.
29967
29968         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29969         whether a pragma All_Calls_Remote applies to the subprogram on which
29970         'Access is taken.
29971         No functional change is introduced by this revision; the new parameter
29972         will be used to allow calls to local RCI subprograms to be optimized
29973         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29974         as is already done in the PolyORB implementation of the DSA.
29975
29976 2004-04-23  Robert Dewar  <dewar@gnat.com>
29977
29978         * Makefile.rtl: Add entry for s-addope.o in run time library list
29979         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29980         * s-addope.ads, s-addope.adb: New files.
29981
29982         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29983         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29984         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29985         System.Address to be non-private and signed.
29986
29987         * sem_elim.adb: Minor reformatting (fairly extensive)
29988         Some minor code reorganization from code reading
29989         Add a couple of ??? comments
29990
29991 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29992
29993         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29994         (tree_transform, case N_If_Statement): Remove non-determinism.
29995
29996         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29997
29998 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
29999
30000         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
30001         Eliminate' section.
30002
30003         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
30004         no longer used as a parameter name for Eliminate pragma).
30005
30006 2004-04-22  Laurent Guerby  <laurent@guerby.net>
30007
30008         PR optimization/14984
30009         PR optimization/14985
30010         * trans.c (gigi): Fix non determinism leading to bootstrap
30011         comparison failures.
30012
30013 2004-04-21  Pascal Obry  <obry@gnat.com>
30014
30015         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
30016         passed to spawnvp() to properly handle program pathname with spaces on
30017         Win32.
30018
30019 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
30020
30021         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
30022         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
30023         unlocked in case of exceptions.
30024
30025 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
30026
30027         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
30028         This function does not exist anymore.
30029
30030 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
30031
30032         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
30033
30034         * link.c: Move variables to the __gnat name space.
30035
30036         * Makefile.in: list link.o explicitly when needed.
30037
30038         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
30039
30040 2004-04-21  Javier Miranda  <miranda@gnat.com>
30041
30042         * einfo.adb (Original_Access_Type): New subprogram
30043         (Set_Original_Access_Type): New subprogram
30044         (Write_Field21_Name): Write the name of the new field
30045
30046         * einfo.ads (Original_Access_Type): New field present in access to
30047         subprogram types.
30048         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
30049         E_Anonymous_Access_Protected_Subprogram_Type.
30050
30051         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
30052         subprogram types.
30053
30054         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
30055         to anonymous access to subprogram types.
30056
30057         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
30058         to subprogram types.
30059
30060         * sem_ch3.adb (Access_Definition): Complete decoration of entities
30061         corresponding to anonymous access to subprogram types.
30062         (Analyze_Component_Declaration): Add new actual to the call to
30063         subprogram replace_anonymous_access_to_protected_subprogram.
30064         (Array_Type_Declaration): Add new actual to the call to subprogram
30065         replace_anonymous_access_to_protected_subprogram.
30066         (Process_Discriminants): Add new actual to the call to subprogram
30067         replace_anonymous_access_to_protected_subprogram.
30068         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
30069
30070         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30071         formal.
30072
30073         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
30074         access to subprogram types.
30075
30076         * sem_util.adb (Has_Declarations): Addition of package_specification
30077         nodes.
30078
30079 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
30080
30081         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
30082         inlined flags to renamed entity only if in current unit.
30083
30084 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
30085
30086         * s-parint.ads: Add DSA implementation marker.
30087
30088         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
30089         value of System.Partition_Interface.DSA_Implementation to determine
30090         what version of the distributed systems annex is available (no
30091         implementation, GLADE, or PolyORB).
30092
30093 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
30094
30095         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
30096
30097 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30098
30099         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
30100         with new type if alias sets differ.
30101         Fixes ACATS c41103b.
30102
30103 2004-04-21  Vincent Celier  <celier@gnat.com>
30104
30105         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
30106         Add array Lang_Args for the language specific compiling argument
30107         switches.
30108
30109         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
30110
30111 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
30112
30113         * gnat_rm.texi: Update the descripton of the Eliminate pragma
30114         according to the recent changes in the format of the parameters of the
30115         pragma (replacing Homonym_Number with Source_Location).
30116
30117 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
30118
30119         * 5isystem.ads: Removed, unused.
30120
30121         * gnat_rm.texi: Redo 1.13 change.
30122
30123 2004-04-19  Robert Dewar  <dewar@gnat.com>
30124
30125         * s-stoele.ads: Clean up definition of Storage_Offset (the new
30126         definition is cleaner, avoids the kludge of explicit Standard operator
30127         references, and also is consistent with a visible System.Address with
30128         no visible operations.
30129
30130         * s-geveop.adb: Add declarations to avoid assumption of visible
30131         operations on type System.Address (since these might not be available
30132         if Address is a non-private type for which the operations
30133         are made abstract).
30134
30135         * sem_eval.adb: Minor reformatting
30136
30137         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
30138         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
30139         reformatting (new function spec format).
30140
30141         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
30142         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
30143         s-caun64.adb: Add declarations to avoid assumption of visible
30144         operations on type System.Address (since these might not be available
30145         if Address is a non-private type for which the operations are made
30146         abstract).
30147
30148         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
30149
30150         * exp_intr.adb: Minor comment update
30151
30152         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
30153
30154         * 5omastop.adb: Add declarations to avoid assumption of visible
30155         operations on type System.Address (since these might not be available
30156         if Address is a non-private type for which the operations
30157         are made abstract).
30158
30159 2004-04-19  Vincent Celier  <celier@gnat.com>
30160
30161         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
30162
30163         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
30164         defaulted to Ada.
30165
30166         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
30167         defaulted to Ada.
30168         Call Check with Process_Languages.
30169         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
30170         with Process_Languages.
30171         (Recursive_Check): New Boolean parameter Process_Languages. Call
30172         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
30173         Process_Languages.
30174
30175         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
30176
30177         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
30178         parameter Ada_Main, defaulted to True.
30179         Check for Ada specific characteristics only when Ada_Main is True.
30180
30181         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
30182
30183         * prj.adb: (Project_Empty): Add new Project_Data components.
30184
30185         * prj.ads: New types and tables for non Ada languages.
30186         (Project_Data): New components Languages, Impl_Suffixes,
30187         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
30188         Include_Path, Include_Data_Set.
30189
30190         * prj-env.ads, prj-env.adb: Minor reformatting
30191
30192         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
30193         Put subprograms in alphabetical order
30194
30195         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
30196         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
30197         Opt.Follow_Links.
30198
30199         * mlib-prj.adb: Back out modification in last version, as they are
30200         incorrect.
30201         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
30202
30203         * make.adb: (Mains): Moved to package Makeutl
30204         (Linker_Opts): Moved to package Makeutl
30205         (Is_External_Assignment): Moved to package Makeutl
30206         (Test_If_Relative_Path): Moved to package Makeutl
30207         (Gnatmake): Move sorting of linker options to function
30208         Makeutl.Linker_Options_Switches.
30209
30210         * makeutl.ads, makeutl.adb: New files.
30211
30212         * Makefile.in: Add makeutl.o to the object files for gnatmake
30213
30214         * makeusg.adb: Add line for new switch -eL.
30215
30216         * gnatls.adb (Image): New function.
30217         (Output_Unit): If in verbose mode, output the list of restrictions
30218         specified by pragmas Restrictions.
30219
30220         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
30221         Text_IO.
30222
30223         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
30224         needed, to put it in the range 1970 (included) - 2026 (excluded).
30225         (Time_Of): Do not shift Unix_Min_Year (1970).
30226         Shift the date by multiple of 56 years, if needed, to put it in the
30227         range 1970 (included) - 2026 (excluded).
30228
30229         * adaint.h, adaint.c (__gnat_set_executable): New function.
30230
30231 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30232
30233         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
30234         and pop GC context.
30235         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
30236         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
30237         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
30238         (tree_transform, case N_Code_Statement): Likewise.
30239         (gnat_expand_stmt, case LABEL_STMT): Don't look at
30240         LABEL_STMT_FIRST_IN_EH.
30241         (gnat_expand_stmt, case ASM_STMT): New case.
30242
30243         * utils2.c (build_unary_op): Properly set TREE_READONLY of
30244         UNCONSTRAINED_ARRAY_REF.
30245
30246         * utils.c (poplevel): Temporarily push/pop GC context around inline
30247         function expansion.
30248
30249         * decl.c (maybe_variable): Properly set TREE_READONLY of
30250         UNCONSTRAINED_ARRAY_REF.
30251         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
30252
30253         * ada-tree.def: (ASM_STMT): New.
30254
30255         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
30256         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
30257         ASM_STMT_INPUT): New.
30258         (ASM_STMT_CLOBBER): Likewise.
30259
30260 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
30261
30262         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
30263         general rcheck mechanism to raise Program_Error for E.4(18), instead
30264         of a custom raiser in System.Partition_Interface.
30265         Part of general cleanup work before PolyORB integration.
30266
30267         * snames.ads, snames.adb: Add new runtime library entities and names
30268         for PolyORB DSA.
30269
30270         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30271         exp_dist.
30272         (Build_Subprogram_Id): New subprogram provided by exp_dist
30273         Code reorganisation in preparation for PolyORB integration.
30274
30275         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30276         exp_dist.
30277         (Build_Subprogram_Id): New subprogram provided by exp_dist
30278
30279         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
30280         actual parameter types for call to dereference of an
30281         access-to-subprogram type.
30282
30283         * rtsfind.ads: Add new runtime library entities and names for PolyORB
30284         DSA.
30285
30286         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
30287         instead, which has the same behaviour here since we never pass it a
30288         NULL pointer.
30289
30290         * link.c (run_path_option, Solaris case): Use -Wl, as for other
30291         platforms.
30292
30293         * Makefile.in: adjust object file lists for gnatlink and gnatmake
30294         to account for new dependency upon Interfaces.C.Strings + link.o
30295         For x86 FreeBSD, use 86numaux.
30296
30297         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
30298         from Mlib.Tgt to Mlib.
30299
30300         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
30301         target-independent.
30302
30303         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
30304         target-specific versions of this subprogram, now implemented as a
30305         target-independent function in Mlib.
30306
30307         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
30308         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
30309         (Linker_Library_Path_Option): Remove target-specific versions of this
30310         subprogram, now implemented as a target-independent function in Mlib.
30311
30312         * atree.adb: (Allocate_Initialize_Node): New subprogram.
30313         Factors out node table slots allocation.
30314         (Fix_Parents): New subprogram.
30315         Encapsulate the pattern of fixing up parent pointers for syntactic
30316         children of a rewritten node.
30317         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
30318         (Rewrite): Use New_Copy when creating saved copy of original node.
30319         (Replace): Use Copy_Node to copy nodes.
30320
30321 2004-04-19  Javier Miranda  <miranda@gnat.com>
30322
30323         * sprint.adb (Sprint_Node_Actual): Give support to the new
30324         Access_To_Subprogram node available in Access_Definition nodes. In
30325         addition, give support to the AI-231 node fields: null-exclusion,
30326         all-present, constant-present.
30327
30328         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30329
30330         * sinfo.ads, sinfo.adb:
30331         New field Access_To_Subprogram_Definition in Access_Definition nodes
30332
30333         * sem_ch6.adb (Process_Formals): Move here the code that creates and
30334         decorates internal subtype declaration corresponding to the
30335         null-excluding formal. This code was previously in Set_Actual_Subtypes.
30336         In addition, carry out some code cleanup on this code. In case of
30337         access to protected subprogram call
30338         Replace_Anonymous_Access_To_Protected_Subprogram.
30339         (Set_Actual_Subtypes): Code cleanup.
30340
30341         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30342         Find_Type in case of anonymous access renamings. Add warning in case of
30343         null-excluding attribute used in anonymous access renaming.
30344
30345         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30346         subprogram
30347
30348         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30349         subprogram.
30350         (Access_Definition): In case of anonymous access to subprograms call
30351         the corresponding semantic routine to decorate the node.
30352         (Access_Subprogram_Declaration): Addition of some comments indicating
30353         some code that probably should be added here. Detected by comparison
30354         with the access_definition subprogram.
30355         (Analyze_Component_Declaration): In case of access to protected
30356         subprogram call Replace_Anonymous_Access_To_Protected.
30357         (Array_Type_Declaration): In case of access to protected subprogram call
30358         Replace_Anonymous_Access_To_Protected_Subprogram.
30359         (Process_Discriminants): In case of access to protected subprogram call
30360         Replace_Anonymous_Access_To_Protected_Subprogram.
30361
30362         * par.adb (P_Access_Definition): New formal that indicates if the
30363         null-exclusion part was present.
30364         (P_Access_Type_Definition): New formal that indicates if the caller has
30365         already parsed the null-excluding part.
30366
30367         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30368         (P_Identifier_Declarations): Code cleanup and give support to renamings
30369         of anonymous access to subprogram types.
30370         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30371         (P_Array_Type_Definition): Give support to AI-254.
30372         (P_Component_Items): Give support to AI-254.
30373         (P_Access_Definition): New formal that indicates if the header was
30374         already parsed by the caller.
30375         (P_Access_Type_Definition): New formal that indicates if the caller has
30376         already parsed the null-excluding part.
30377
30378         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30379         call to P_Access_Definition.
30380
30381 2004-04-19  Geert Bosch  <bosch@gnat.com>
30382
30383         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30384         the delicate semantics of floating-point to integer conversion.
30385         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30386
30387         * eval_fat.adb (Machine_Mantissa): Moved to spec.
30388         (Machine_Radix): New function.
30389
30390         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30391         conversion checks.
30392         (Machine_Radix): New function also for use in conversion checks.
30393
30394 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
30395
30396         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30397
30398         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30399         to decorate the access-to-protected subprogram and the equivalent type.
30400
30401         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30402         to anonymous access to subprogram types.
30403
30404         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30405         constant-folding, for legality checks in contexts that require an RM
30406         static expression.
30407
30408         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30409         temporary but stack checking is not enabled, increment serial number
30410         to so that symbol generation is consistent with and without stack
30411         checking.
30412
30413         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30414         independent on whether stack checking is enabled, caller must check
30415         the corresponding flag.
30416
30417         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30418         range checks.
30419         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30420         parent if it has discriminants.
30421         (Build_Derived_Private_Type): Constructed full view does
30422         not come from source.
30423         (Process_Discriminants): Default discriminants on a tagged type are
30424         legal if this is the internal completion of a private untagged
30425         derivation.
30426
30427         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30428         no constraint checks, because it corresponds to an existing object.
30429
30430         * sem_prag.adb (Process_Convention): Pragma applies
30431         only to subprograms in the same declarative part, i.e. the same unit,
30432         not the same scope.
30433
30434         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30435         ignore type mismatch on a numeric conversion if expression comes from
30436         expansion.
30437
30438 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
30439
30440         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30441         Homonym_Number parameter, add processing for Source_Location parameter
30442         corresponding.
30443         (Check_Eliminated): Remove the check for homonym numbers, add the check
30444         for source location traces.
30445
30446         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30447         with Arg_Source_Location corresponding to the changes in the format of
30448         the pragma.
30449
30450         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30451         Eliminate pragma corresponding to the changes in the format of the
30452         pragma: Homonym_Number is replaced with Source_Location, two ways of
30453         distinguishing homonyms are mutially-exclusive.
30454
30455 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
30456
30457         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30458
30459         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30460         No_Dollar_In_Label, no longer necessary, as it is always True.
30461         (Strip_Suffixes): Likewise.
30462
30463 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
30464
30465         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30466         modulus for compatibility with size clause on targets with 16-bit
30467         Integer.
30468
30469         * layout.adb (Discrimify): In the case of private types, set Vtyp to
30470         full type to fix type mismatches on calls to size functions for
30471         discriminant-dependent array components.
30472
30473 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
30474
30475         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30476         lib.
30477
30478 2004-04-19  Pascal Obry  <obry@gnat.com>
30479
30480         * mdll-utl.adb (Locate): New version is idempotent.
30481
30482 2004-04-17  Laurent Guerby  <laurent@guerby.net>
30483
30484         PR ada/14988 (partial)
30485         * impunit.adb: Fix typo.
30486
30487 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
30488
30489         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30490         and install-rts-cert targets.  Remove all gnatlib and gnattools
30491         targets and all other rts-* targets (moved to libada).  Remove (now)
30492         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30493         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30494
30495 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30496
30497         * trans.c (tree_transform): Shortcut returning error_mark_node for
30498         statements in annotate_only_mode.
30499         (tree_transform, case N_Label, case N_Return_Statement,
30500         N_Goto_Statement): Make statement tree instead of generating code.
30501         (tree_transform, case N_Assignment_Statement): No longer check
30502         type_annotate_only.
30503         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30504         RETURN_STMT): New.
30505         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30506         New fcns.
30507         (gnat_to_gnu): Collect any RTL generated and deal with it.
30508         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30509         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30510         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30511
30512         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30513
30514         * ada-tree.def (EXPR_STMT): Fix typo in name.
30515         (BLOCK_STMT, IF_STMT): New nodes.
30516
30517         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30518         LABEL_STMT_FIRST_IN_EH): New macros.
30519         (RETURN_STMT_EXPR): Likewise.
30520
30521         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30522         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30523
30524 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30525
30526         * atree.ads: Correct documentation on extended nodes.
30527
30528         * link.c: Set run_path_option for FreeBSD.
30529
30530 2004-04-08  Vincent Celier  <celier@gnat.com>
30531
30532         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30533         one of the ALI file, do not link with DEC lib.
30534
30535         * par.adb Remove the last two characters ("%s" or "%b") when checking
30536         if a language defined unit may be recompiled.
30537
30538 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
30539
30540         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30541         removal of abstract operation leaves no possible interpretation for
30542         expression.
30543
30544         * sem_eval.adb (Eval_Qualified_Expression): Use
30545         Set_Raises_Constraint_Error on node when needed, so that it does not
30546         get optimized away by subsequent optimizations.
30547
30548         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30549         operands even when they are not wrapped in a type conversion.
30550
30551 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
30552
30553         * sem_prag.adb (Set_Exported): Warn about making static as result of
30554         export only when the export is coming from source. This may be not
30555         be true e.g. on VMS where we expand export pragmas for exception codes
30556         together with imported or exported exceptions, and we don't want the
30557         user to be warned about something he didn't write.
30558
30559 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30560
30561         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30562         duplication between normal entities and those declared as renamings.
30563         No functional change.
30564
30565         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30566         inline functions returning an unconstrained result.
30567
30568 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
30569
30570         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30571         conform to what other front-ends do.
30572
30573 2004-04-08  Doug Rupp  <rupp@gnat.com>
30574
30575         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30576         libraries.
30577
30578 2004-04-06  Pascal Obry  <obry@gnat.com>
30579
30580         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30581
30582         * osint.adb (Program_Name): Do not look past a directory separator.
30583
30584 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
30585
30586         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30587
30588         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30589         requirement for preserving a copy of the original assignment node.
30590
30591         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30592
30593 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
30594
30595         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30596         when supported.
30597
30598 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
30599
30600         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30601         operator calls in functional notation, and apply
30602         Universal_Interpretation to operands, not to their type.
30603
30604 2004-04-06  Robert Dewar  <dewar@gnat.com>
30605
30606         * 5wdirval.adb: Minor reformatting
30607
30608 2004-04-06  Ed Falis  <falis@gnat.com>
30609
30610         * gnat_rm.texi: Improve a reference to the GCC manual
30611
30612 2004-04-05  Vincent Celier  <celier@gnat.com>
30613
30614         * adaint.h, adaint.c: Add function __gnat_named_file_length
30615
30616         * impunit.adb: Add Ada.Directories to the list
30617
30618         * Makefile.in: Add VMS and Windows versions of
30619         Ada.Directories.Validity package body.
30620
30621         * Makefile.rtl: Add a-direct and a-dirval
30622
30623         * mlib-tgt.ads: Minor comment update.
30624
30625         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30626         a-direct.ads, a-direct.adb: New files.
30627
30628 2004-04-05  Vincent Celier  <celier@gnat.com>
30629
30630         PR ada/13620
30631         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30632         just to the compiler.
30633
30634 2004-04-05  Robert Dewar  <dewar@gnat.com>
30635
30636         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30637         returned string is 1.
30638
30639         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30640
30641         * eval_fat.ads: Minor reformatting
30642
30643         * g-curexc.ads: Document that lower bound of returned string values
30644         is always one.
30645
30646         * gnatlink.adb: Add ??? comment for previous change
30647         (need to document why this is VMS specific)
30648
30649         * s-stoele.ads: Minor reformatting
30650
30651         * tbuild.ads: Minor reformatting throughout (new function specs)
30652
30653         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30654         after WITH.
30655
30656         * scng.adb: Minor reformatting
30657
30658 2004-04-05  Geert Bosch  <bosch@gnat.com>
30659
30660         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30661         (Leading_Part): Still perform truncation to machine number if the
30662         specified radix_digits is greater or equal to machine_mantissa.
30663
30664 2004-04-05  Javier Miranda  <miranda@gnat.com>
30665
30666         * par-ch3.adb: Complete documentation of previous change
30667         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30668         (aliased must appear before constant).
30669
30670         * par-ch4.adb: Complete documentation of previous change.
30671
30672         * par-ch6.adb: Complete documentation of previous change.
30673
30674         * sinfo.ads: Fix typo in commment.
30675
30676 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
30677
30678         * sem_ch3.adb (Inherit_Components): If derived type is private and has
30679         stored discriminants, use its discriminants to constrain parent type,
30680         as is done for non-private derived record types.
30681
30682         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30683         Ada 2005 AI-310: an abstract non-dispatching operation is not a
30684         candidate interpretation in an overloaded call.
30685
30686         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30687         expression is Null and target type is not an access type (e.g. a
30688         non-private address type).
30689
30690 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
30691
30692         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30693         statement whose right-hand side is an inlined call, save a copy of the
30694         original assignment subtree to preserve enough consistency for
30695         Analyze_Assignment to proceed.
30696
30697         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30698         complete assignment subtree which is now unnecessary, as the expansion
30699         of inlined call has been improved to preserve a consistent assignment
30700         tree.  Note_Possible_Modification must be called only
30701         after checks have been applied, or else unnecessary checks will
30702         be generated.
30703
30704         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30705         of explicit dereferences that do not Come_From_Source:
30706          - be selective on cases where we must go back to the dereferenced
30707            pointer (an assignment to an implicit dereference must not be
30708            recorded as modifying the pointer);
30709          - do not rely on Original_Node being present (Analyze_Assignment
30710            calls Note_Possible_Modification on a copied tree).
30711
30712         * sem_warn.adb (Check_References): When an unset reference to a pointer
30713         that is never assigned is encountered, prefer '<pointer> may be null'
30714         warning over '<pointer> is never assigned a value'.
30715
30716 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
30717
30718         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30719         the ABI.
30720
30721 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
30722
30723         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30724         libexc. We currently don't reference anything in this library and
30725         linking it in triggers linker warnings we don't want to see.
30726
30727         * init.c: Update comments.
30728
30729 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30730
30731         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30732         * utils.c (create_field_decl): Likewise.
30733         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30734
30735 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
30736
30737         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30738         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30739         Add info directory entry and category.
30740
30741 2004-04-02  Jan Hubicka  <jh@suse.cz>
30742
30743         * utils.c: Include function.h
30744         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30745
30746 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30747
30748         PR ada/14150
30749         * Make-lang.in: Clean up generation of documentation
30750
30751         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30752
30753         * xgnatug.adb: Removed, replaced by xgnatugn.adb
30754
30755         * xgnatugn.adb: Replaces xgnatug.adb
30756
30757         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30758
30759         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30760
30761         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30762         gnat_ug_wnt.texi: Removed.
30763
30764 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30765
30766         * utils2.c: Update copyright notice.
30767
30768 2004-04-01  Robert Dewar  <dewar@gnat.com>
30769
30770         * checks.adb: Minor reformatting throughout
30771         Note that prev checkin added RM reference to alignment warning
30772
30773 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
30774
30775         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30776         non-static when building aggregate for bit-packed array.
30777
30778         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30779         function call that is itself the actual in a procedure call, build
30780         temporary for it.
30781
30782         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30783         a string literal, create a temporary for it, constant folding only
30784         handles scalars here.
30785
30786 2004-04-01  Vincent Celier  <celier@gnat.com>
30787
30788         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30789         Error_Msg_SP): New empty procedures to instantiate the Scanner.
30790         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30791         tokens.
30792         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30793         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30794         and get the checksum.
30795
30796         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30797         already in the Q.
30798         Increase the Marking_Label at the end of the Multiple_Main_Loop,
30799         instead of at the beginning.
30800
30801         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30802         directly.
30803         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30804         on VMS.
30805
30806         * osint.ads (Multi_Unit_Index_Character): New Character global variable
30807
30808         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30809         not '~' directly.
30810
30811         * par.adb: Remove test on file name to detect language defined units.
30812         Add test on unit name, after parsing, to detect language defined units
30813         that are not compiled with -gnatg (except System.RPC and its children)
30814
30815         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30816         following units without style checking.
30817
30818         * switch-c.adb: Change -gnatC to -gnateI
30819
30820         * usage.adb: Document new switch -gnateInnn
30821
30822         * scng.adb (Accumulate_Token_Checksum): New procedure
30823         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30824         word or literal number.
30825         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30826         numbers.
30827
30828 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
30829
30830         * a-tasatt.adb,
30831         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30832         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30833         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30834         5vtpopde.adb: Add missing 'constant' keywords.
30835
30836 2004-04-01  Javier Miranda  <miranda@gnat.com>
30837
30838         * par-ch4.adb: (P_Allocator): Code cleanup
30839
30840         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30841         attribute.
30842
30843         * sinfo.ads: Complete documentation of previous change
30844
30845 2004-04-01  Pascal Obry  <obry@gnat.com>
30846
30847         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30848         only on VMS.  This special handling was done because an old GNU/ld bug
30849         on Windows which has been fixed.
30850
30851 2004-04-01  GNAT Script  <nobody@gnat.com>
30852
30853         * Make-lang.in: Makefile automatically updated
30854
30855 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30856
30857         * decl.c (gnat_to_gnu_entity, make_type_from_size):
30858         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30859         * trans.c (tree_transform, convert_with_check): Likewise.
30860         * utils.c (gnat_signed_or_unsigned_type): Likewise.
30861         (build_vms_descriptor, unchecked_convert): Likewise.
30862         * utils2.c (nonbinary_modular_operation): Likewise.
30863
30864 2004-03-29  Javier Miranda  <miranda@gnat.com>
30865
30866         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30867         (Install_Null_Excluding_Check): Local subprogram that determines whether
30868         an access node requires a runtime access check and if so inserts the
30869         appropriate run-time check.
30870         (Apply_Access_Check): Call Install_Null_Excluding check if required
30871         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30872
30873         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30874
30875         * einfo.ads: Fix typo in comment
30876
30877         * exp_ch3.adb (Build_Assignment): Generate conversion to the
30878         null-excluding type to force the corresponding run-time check.
30879         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30880         type to force the corresponding run-time check.
30881
30882         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30883         the null-excluding type to force the corresponding run-time check.
30884
30885         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30886         case of access types unless they have the null-excluding attribute.
30887
30888         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30889         part.
30890
30891         * exp_util.ads: Fix typo in comment
30892
30893         * par.adb (P_Null_Exclusion): New subprogram
30894         (P_Subtype_Indication): New formal that indicates if the null-excluding
30895         part has been scanned-out and it was present
30896
30897         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30898
30899         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30900         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30901         type to force the corresponding run-time check
30902         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30903         components
30904         (Resolve_Array_Aggregate): Carry out some static checks
30905         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30906
30907         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30908         attribute must be set only if specified by means of the null-excluding
30909         part. In addition, we must also propagate the access-constant attribute
30910         if present.
30911         (Access_Subprogram_Declaration, Access_Type_Declaration,
30912         Analyze_Component_Declaration, Analyze_Object_Declaration,
30913         Array_Type_Declaration, Process_Discriminants,
30914         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30915         and carry out some static checks.
30916         (Build_Derived_Access_Type): Set the null-excluding attribute
30917         (Derived_Type_Declaration, Process_Subtype): Carry out some static
30918         checks.
30919
30920         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30921
30922         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30923
30924         * sem_ch6.adb (Process_Formals): Carry out some static checks.
30925         (Set_Actual_Subtypes): Generate null-excluding subtype if the
30926         null-excluding part was present; it is not required to be done here in
30927         case of anonymous access types.
30928         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30929         value.
30930
30931         * sem_res.adb (Resolve_Actuals): Carry out some static check
30932         (Resolve_Null): Allow null in anonymous access
30933
30934         * sinfo.adb: New subprogram Null_Exclusion_Present
30935         All_Present and Constant_Present available on access_definition nodes
30936
30937         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30938         object_declaration, derived_type_definition, component_definition,
30939         discriminant_specification, access_to_object_definition,
30940         access_function_definition, allocator, access_procedure_definition,
30941         access_definition, parameter_specification, All_Present and
30942         Constant_Present flags available on access_definition nodes.
30943
30944 2004-03-29  Robert Dewar  <dewar@gnat.com>
30945
30946         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30947         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30948         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30949         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30950         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30951         sem_prag.adb: Updates to handle multiple units/file
30952
30953         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30954
30955         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30956         sem_util.adb: Minor reformatting
30957
30958         * sem_ch12.adb: Add comment for previous change
30959
30960 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
30961
30962         * osint.adb (Executable_Prefix): Set Exec_Name to the current
30963         executable name when not initialized. Otherwise, use its current value.
30964
30965         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30966         initialize it to another executable name than the current one. This
30967         allows to configure paths for an executable name (gnatmake) different
30968         from the current one (gnatdist).
30969
30970 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
30971
30972         * exp_ch6.adb (Expand_Call): A call to a function declared in the
30973         current unit cannot be inlined if it appears in the body of a withed
30974         unit, to avoid order of elaboration problems in gigi.
30975
30976         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30977         information for protected (wrapper) operation as well, to simplify gdb
30978         use.
30979
30980         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30981         protected body, indicate that the entity for the generated spec comes
30982         from source, to ensure that references are properly generated for it.
30983         (Build_Body_To_Inline): Do not inline a function that returns a
30984         controlled type.
30985
30986         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30987         apply convention to homonyms that are declared explicitly.
30988
30989         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30990         that renames an equality operator and the operands are overloaded,
30991         resolve them with the declared formal types, before rewriting as an
30992         operator.
30993
30994 2004-03-29  GNAT Script  <nobody@gnat.com>
30995
30996         * Make-lang.in: Makefile automatically updated
30997
30998 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
30999
31000         * memtrack.adb: Log realloc calls, which are treated as free followed
31001         by alloc.
31002
31003 2004-03-25  Vincent Celier  <celier@gnat.com>
31004
31005         * prj-makr.adb (Process_Directories): Detect when a file contains
31006         several units. Do not include such files in the config pragmas or
31007         in the naming scheme.
31008
31009         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
31010         Resolve links only when not in Trusted_Mode.
31011         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
31012         Do not resolve links for the display names.
31013
31014         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
31015         resolve links when computing the display names.
31016
31017 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
31018
31019         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
31020         attribute reference does not denote a subtype, it can be any
31021         expression that has a classwide type, potentially after an implicit
31022         dereference.  In particular, the prefix can be a view conversion for
31023         a classwide type (for which Is_Object_Reference holds), but it can
31024         also be a value conversion for an access-to-classwide type. In the
31025         latter case, there is an implicit dereference, and the original node
31026         for the prefix does not verify Is_Object_Reference.
31027
31028         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
31029         conversion of a discriminant-dependent component of a mutable object
31030         is one itself.
31031
31032 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
31033
31034         * freeze.adb (Freeze_Entity): When an inherited subprogram is
31035         inherited, has convention C, and has unconstrained array parameters,
31036         place the corresponding warning on the derived type declaration rather
31037         than the original subprogram.
31038
31039         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
31040         indication on renaming declaration, if formal has a box and actual
31041         is absent.
31042
31043         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
31044         determine whether to generate an implicit or explicit reference to
31045         the renamed entity.
31046
31047         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
31048         subprogram renaming comes from a defaulted formal subprogram in an
31049         instance.
31050
31051 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
31052
31053         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
31054         value expressions to ensure that calls within a component definition
31055         will be checked (since those are evaluated during the record type's
31056         elaboration).
31057
31058 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
31059
31060         * s-tpobop.adb: Code clean up:
31061         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
31062         code.
31063         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
31064
31065 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
31066
31067         * Makefile.in: Clean up in the ravenscar run time.
31068
31069 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31070
31071         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
31072         of No_Strict_Aliasing to build_pointer_type_for_mode.
31073         * utils.c (update_pointer_to): Walk pointer and ref chains.
31074
31075 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
31076
31077         * ali.ads: Fix Comment about Dynamic_Elab.
31078
31079         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
31080         Has_RACW, Is_Generic, etc.)
31081         (Output_Object, Gnatls): Take into account ALI files not attached to
31082         an object.
31083
31084 2004-03-22  Vincent Celier  <celier@gnat.com>
31085
31086         * gprep.adb: Change all String_Access to Name_Id
31087         (Is_ASCII_Letter): new function
31088         (Double_File_Name_Buffer): New procedure
31089         (Preprocess_Infile_Name): New procedure
31090         (Process_Files): New procedure
31091         (Gnatprep): Check if output and input are existing directories.
31092         Call Process_Files to do the real job.
31093
31094 2004-03-22  Robert Dewar  <dewar@gnat.com>
31095
31096         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
31097         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
31098
31099 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
31100
31101         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
31102         case when the source contains only comments.
31103
31104 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
31105
31106         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
31107         declaration for a child subprogram body that acts as a spec, indicate
31108         that the entity in the declaration needs debugging information.
31109
31110         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
31111         full view if the subtype is created for a constrained record component;
31112         gigi has enough information to construct the record, and there is no
31113         place in the tree for the declaration.
31114
31115         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
31116         serial number for the dummy body that is built for analysis, to avoid
31117         inconsistencies in the generation of internal names when compiling
31118         with -gnatN.
31119
31120 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
31121
31122         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
31123         object.
31124
31125 2004-03-22  GNAT Script  <nobody@gnat.com>
31126
31127         * Make-lang.in: Makefile automatically updated
31128
31129 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31130
31131         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
31132         * trans.c (tree_transform, emit_index_check): Likewise.
31133         * utils.c (build_template): Likewise.
31134         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
31135         (maybe_unconstrained_array, unchecked_convert): Likewise.
31136         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
31137         (build_unary_op): Likewise.
31138         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
31139         (fill_vms_descriptor): Likewise.
31140         (build_call_alloc_dealloc): Likewise.
31141         ALIGN is unsigned.
31142         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
31143
31144 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
31145
31146         PR other/14630
31147         * gnat_ug.texi: Add info directory category and entry.
31148         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31149         gnat_ug_wnt.texi: Regenerate.
31150
31151 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
31152
31153         * ada-tree.h: Update copyright notice.
31154         Minor reformatting.
31155
31156 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
31157
31158         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
31159         as regular exception objects and not as mere integers representing the
31160         condition code.  The latter approach required some dynamics to mask off
31161         severity bits, which did not fit well into the GCC table based model.
31162         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
31163         exception data objects. We don't it and it would conflict with the other
31164         external symbol we have to generate for such exceptions.
31165
31166         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
31167         the special code for VMS exceptions, since these are now represented
31168         as regular exceptions objects.
31169
31170 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31171
31172         * decl.c (debug_no_type_hash): Remove.
31173         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
31174         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
31175
31176 2004-03-19  Laurent Guerby  <laurent@guerby.net>
31177
31178         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
31179         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
31180
31181 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31182
31183         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
31184         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
31185         (TYPE_RM_SIZE_INT): Directly use type.values.
31186         (TREE_LOOP_ID): Clean up check.
31187         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
31188         TYPE_VALUES, not TYPE_FIELDS.
31189         * trans.c (convert_with_check): Delay access of bounds of basetype
31190         until sure is numeric.
31191
31192 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
31193
31194         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
31195
31196         Code clean up:
31197         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
31198         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
31199         Specific.Set instead of direct call to e.g pthread_setspecific.
31200
31201 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
31202
31203         * adaint.c: Update comments.
31204
31205         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
31206         GNATLIB_SHARED for FreeBSD.
31207
31208 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
31209
31210         * init.c [VxWorks]: Do not fix the stack size for the environment task.
31211         When needed (stack checking) the stack size is retrieved
31212         from the VxWorks kernel.
31213
31214         * Makefile.in: Flag -nostdinc is required when building the run time
31215         for avoiding looking for files in the base compiler.
31216         Add the VxWorks specific version of the package body for
31217         System.Stack_checking.Operations (5zstchop.adb).
31218
31219         * Make-lang.in: Add the object file for
31220         System.Stack_Checking.Operations.
31221
31222         * Makefile.rtl: Add object file for the package
31223         System.Stack_Checking.Operations.
31224
31225         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
31226
31227         * s-stache.ads, s-stache.adb: Move the operations related to stack
31228         checking from this package to package System.Stack_Checking.Operations.
31229         This way, stack checking operations are only linked in the final
31230         executable when using the -fstack-check flag.
31231
31232 2004-03-18  Doug Rupp  <rupp@gnat.com>
31233
31234         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
31235         Reorganize ifeq's.
31236
31237         * 5qsystem.ads, 5xcrtl.ads: New files.
31238
31239 2004-03-18  Vincent Celier  <celier@gnat.com>
31240
31241         * prj.adb (Reset): Reset hash table Files_Htable
31242
31243         * prj-env.adb (Source_Paths, Object_Paths): New tables.
31244         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
31245         the procedures Add_To_Path_File.
31246         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
31247         making sure that each directory is present only once and, for object
31248         dirs, when a directory already present is added, the duplicate is
31249         removed and the directory is always put as the last in the table.
31250         Write the path files at the end of these accumulations.
31251
31252         * prj-nmsc.adb (Record_Source): Add source file name in hash table
31253         Files_Htable for all sources.
31254
31255         * prj-proc.adb (Process): Remove restrictions between not directly
31256         related extending projects.
31257
31258 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
31259
31260         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
31261         (Find_Sources): Minor speed optimization.
31262
31263         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
31264         parameter Trusted_Mode.
31265
31266 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
31267
31268         * scn.adb (Determine_License): Take into account a degenerated case
31269         when the source contains only comments.
31270
31271 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
31272
31273         * sem_warn.adb (Check_References): For a warning on a selected
31274         component that does not come from source, locate an uninitialized
31275         component of the record type to produce a more precise error message.
31276
31277 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
31278
31279         * 3zsoccon.ads: Fix multicast options.
31280
31281         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
31282         in the spec.
31283
31284 2004-03-15  Robert Dewar  <dewar@gnat.com>
31285
31286         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
31287         pragma used for a private type.
31288
31289         * lib-xref.adb (Generate_Reference): Do not generate warning if
31290         reference is in a different unit from the pragma Unreferenced.
31291
31292         * 5vtpopde.adb: Minor reformatting
31293         Fix casing of To_Task_ID
31294
31295         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
31296         flag if we have an unchecked conversion to an access type in the same
31297         unit.
31298
31299 2004-03-15  Geert Bosch  <bosch@gnat.com>
31300
31301         * a-ngcoty.adb (Modulus): In alternate formula for large real or
31302         imaginary parts, use Double precision throughout.
31303
31304         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
31305         we want to be able to compile run-time with -gnata for testing, but
31306         this may also be instantiated in user code that is compiled with -gnata.
31307
31308 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
31309
31310         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
31311         codes. Having a separate type for this is useful to enforce consistency
31312         throughout the various run-time units.
31313         (Exception_Data): Use Exception_Code for Import_Code.
31314
31315         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
31316         Natural and Integer in various places.
31317         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
31318         with the severity bits masked off.
31319         (Register_VMS_Exception): Handle the additional exception data pointer
31320         argument.
31321
31322         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
31323         component, now reflected by an exported accessor.
31324         (is_handled_by): New routine to compute whether the propagated
31325         occurrence matches some handler choice specification. Extracted out of
31326         get_action_description_for, and expanded to take care of the VMS
31327         specifities.
31328         (get_action_description_for): Use is_handled_by instead of an explicit
31329         complex condition to decide if the current choice at hand catches the
31330         propagated occurrence.
31331
31332         * raise.h (Exception_Code): New type for C.
31333
31334         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31335         System.Standard_Library.Exception_Code, to allow references from the
31336         pragma import/export expander.
31337
31338         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31339         New accessors to allow easy access to GNAT exception data
31340         characteristics.
31341         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31342         redundant Handled_By_Others component, helper for the personality
31343         routine which will now be able to call the appropriate exception data
31344         accessor instead.
31345
31346         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31347         component of Standard_Exception_Type to be the closest possible to
31348         Exception_Code in System.Standard_Library, that we cannot get at this
31349         point. Expand a ??? comment to notify that this type node should
31350         probably be rewritten later on.
31351
31352         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31353         registration call to include a pointer to the exception object in the
31354         arguments.
31355
31356         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31357         instead of int and explicit bitmasks.
31358
31359 2004-03-15  Vincent Celier  <celier@gnat.com>
31360
31361         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31362         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31363
31364         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31365         longer needed now that it is in the spec of
31366         System.Tasking.Task_Attributes.
31367
31368         * adaint.h, adaint.c: (__gnat_create_output_file): New function
31369
31370         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31371
31372         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31373
31374         * make.adb (Gnatmake): Do not check the executable suffix; it is being
31375         taken care of in Scan_Make_Arg.
31376         (Scan_Make_Arg): Add the executable suffix only if the argument
31377         following -o, in canonical case, does not end with the executable
31378         suffix.  When in verbose mode and executable file name does not end
31379         with executable suffix, output the executable name, in canonical case.
31380
31381         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31382         to avoid warnings when instantiating Ada.Task_Attributes.
31383         Minor reformating.
31384
31385         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31386         in the correct order.
31387
31388         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31389         redirect standard output and error to a file for the invocation of the
31390         compiler, then read the file.
31391
31392         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31393         directory, instead of the Value.
31394         (Find_Source_Dirs): Remove useless code & comments.
31395
31396 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
31397
31398         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31399         tagged type is inherited, and the parent operation is not frozen yet,
31400         force generation of a freeze node for the inherited operation, so the
31401         corresponding dispatch entry is properly initialized.
31402         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31403         when looking for user-defined equality operation.
31404
31405         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31406         boolean when locating primitive equality of tagged component.
31407
31408         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31409         bit-aligned field and the right-hand side a string literal, introduce
31410         a temporary before expanding assignment into a loop.
31411
31412         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31413         priority in full, to ensure that any expanded subepxressions of it are
31414         elaborated in the scope of the init_proc.
31415
31416         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31417         after object declaration, skipping over code that may have been
31418         generated for validity checks.
31419
31420         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31421         discriminants, ignore the known discriminants of its full view, if
31422         any, to check legality.
31423
31424         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31425         component if type has unknown discriminants.
31426         (Analyze_Private_Extension_Declaration): Discriminant constraint is
31427         null if type has unknown discriminants.
31428
31429         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31430         for end label when present.
31431
31432         * s-fileio.adb (Open): When called with a C_Stream, use given name for
31433         temporary file, rather than an empty string.
31434
31435 2004-03-15  Ed Falis  <falis@gnat.com>
31436
31437         * s-thread.adb: Removed, no longer used.
31438
31439 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31440
31441         * decl.c (target.h): Now include.
31442         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31443         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31444         (validate_size): For POINTER_TYPE, get smallest size permitted on
31445         machine.
31446
31447         * fe.h: Sort Einfo decls and add Set_Mechanism.
31448
31449         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31450         (ada/decl.o): Depends on target.h.
31451
31452         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31453         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31454
31455 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
31456
31457         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31458
31459         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31460         Insert_Dereference_Action when rewriting an implicit dereference into
31461         an explicit one, this will be taken care of during expansion of the
31462         explicit dereference.
31463         (Expand_N_Slice): Same. Always do the rewriting, even for the case
31464         of non-packed slices, since the dereference action generated by
31465         expansion of the explicit dereference is needed in any case.
31466         (Expand_N_Selected_Component): When rewriting an implicit dereference,
31467         analyze and resolve the rewritten explicit dereference so it is seen
31468         by the expander.
31469         (Insert_Dereference_Action): This procedure is now called only for the
31470         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31471         dereferences that do not come from source (including explicit
31472         dereferences resulting from rewriting implicit ones), but do not
31473         recursively insert a check for the dereference nodes contained within
31474         the check.
31475         (Insert_Dereference_Action): Clarify and correct comment.
31476
31477 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
31478
31479         PR ada/14131
31480         Move language detection to the top level.
31481         * config-lang.in: Build by default.
31482
31483 2004-03-05  Robert Dewar  <dewar@gnat.com>
31484
31485         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31486
31487         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31488         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31489         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31490         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31491         unchecked conversion to spec to avoid warnings.
31492
31493         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31494         to Task_ID
31495
31496         * 7stpopsp.adb: Correct casing in To_Task_ID call
31497
31498         * a-strsea.ads, a-strsea.adb: Minor reformatting
31499
31500         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31501
31502         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31503         Adjust Max_Msg_Length to be clearly large enough.
31504
31505         * fe.h: Define In_Same_Source_Unit
31506
31507         * osint.adb: Add pragma Warnings Off to suppress warnings
31508         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31509         aliasing warnings.
31510
31511         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31512
31513         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31514
31515         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31516
31517         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31518
31519         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31520
31521         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31522         node. We now do generate them for gcc back end.
31523
31524         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31525         warning.
31526
31527         * sinput-c.adb: Fix bad name in header.
31528         Add pragma Warnings Off to suppress aliasing warning.
31529
31530         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31531
31532         * snames.h, snames.ads, snames.adb: Add entry for pragma
31533         No_Strict_Aliasing.
31534
31535 2004-03-05  Vincent Celier  <celier@gnat.com>
31536
31537         * prj-com.ads: Add hash table Files_Htable to check when a file name
31538         is already a source of another project.
31539
31540         * prj-nmsc.adb (Record_Source): Before recording a new source, check
31541         if its file name is not already a source of another project. Report an
31542         error if it is.
31543
31544         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31545         source file name, call gnatpp with all the sources of the main project.
31546
31547         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31548         of file names.
31549
31550         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31551         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31552         /RUNTIME_SYSTEM=, converted to --RTS=
31553         /NOTABS, converted to -notabs
31554
31555 2004-03-05  Pascal Obry  <obry@gnat.com>
31556
31557         * make.adb: Minor reformatting.
31558
31559 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
31560
31561         Part of implemention of AI-262.
31562         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31563
31564         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31565         procedure.
31566
31567         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31568         when component type is a partially constrained class-wide subtype.
31569         (Constrain_Discriminated_Type): If parent type has unknown
31570         discriminants, a constraint is illegal, even if full view has
31571         discriminants.
31572         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31573         with unknown discriminants whose full view is a discriminated record.
31574
31575         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31576         flag, to handle properly derivations of tagged types with unknown
31577         discriminants.
31578         (Analyze_Package_Spec, Analyze_Package_Body): Install
31579         Private_With_Clauses before analyzing private part or body.
31580
31581         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31582         Has_Discriminants can be true for a given type (documentation).
31583
31584 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
31585
31586         * s-restri.ads: Fix license (GPL->GMGPL).
31587
31588         * s-tassta.adb: Minor reformatting.
31589
31590         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31591         by calls to Exit_One_ATC_Level, since additional clean up is performed
31592         by this function.
31593
31594         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31595         by calls to Exit_One_ATC_Level, since additional clean up is performed
31596         by this function.
31597
31598 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31599
31600         * trans.c: Reflect GCC changes to fix bootstrap problem.
31601         Add warning for suspicious aliasing unchecked conversion.
31602
31603 2004-03-05  GNAT Script  <nobody@gnat.com>
31604
31605         * Make-lang.in: Makefile automatically updated
31606
31607 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
31608
31609         * ali.adb (Read_Instantiation_Instance): Do not modify the
31610         current_file_num when reading information about instantiations, since
31611         this corrupts files in later references.
31612
31613 2004-03-02  Vincent Celier  <celier@gnat.com>
31614
31615         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31616         before checking if it is read-only.
31617
31618         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31619         of SRC_DIRS and eliminate duplicates.
31620
31621         * gprcmd.adb: Replace command "path" with command "path_sep" to return
31622         the path separator.
31623         (Usage): Document path_sep
31624
31625         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31626         C++ compiler. No need for a script.
31627         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31628         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31629         subst.
31630
31631         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31632         where there are Ada sources.
31633         (Set_Ada_Paths): Only add to the include path the source dirs of project
31634         with Ada sources.
31635         (Add_To_Path): Add the Display_Values of the directories, not their
31636         Values.
31637
31638         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31639         data.
31640
31641         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31642         is not No_Name.
31643         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31644         Value is canonicalized.
31645         (Language_Independent_Check): Do not copy Value to Display_Value when
31646         canonicalizing Value.
31647
31648         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31649         path to find limited with cycles.
31650         (Parse_Single_Project): Use canonical cased path to find the end of a
31651         with cycle.
31652
31653 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
31654
31655         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31656         and not a child unit.
31657
31658         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31659         appear in a with_clause.
31660
31661         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31662         only happen in type_annotate mode, do not try to elaborate it.
31663
31664         * exp_util.adb (Force_Evaluation): If expression is a selected
31665         component on the left of an assignment, use a renaming rather than a
31666         temporary to remove side effects.
31667
31668         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31669         inlined instance body, which is analyzed before the end of the
31670         enclosing scope.
31671
31672 2004-03-02  Robert Dewar  <dewar@gnat.com>
31673
31674         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31675         sem_ch4.adb: Use new feature for substitution of keywords in VMS
31676
31677         * errout.ads, errout.adb: Implement new circuit for substitution of
31678         keywords in VMS.
31679
31680         * sem_case.adb (Analyze_Choices): Place message properly when case is
31681         a subtype reference rather than an explicit range.
31682
31683         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31684
31685 2004-03-02  Doug Rupp  <rupp@gnat.com>
31686
31687         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31688
31689 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
31690
31691         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31692
31693 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31694
31695         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31696         BLKmode bitfield.
31697
31698 2004-02-25  Robert Dewar  <dewar@gnat.com>
31699
31700         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31701         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31702         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31703         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31704         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31705         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31706         the defining instance of the type to avoid aliasing problems.
31707         Fix copyright header.  Fix bad comments in package header.
31708
31709         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31710
31711 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
31712
31713         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31714         rewritten as references when aliased through an address clause.
31715
31716         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31717         whether call can be interpreted as an indirect call to the result of a
31718         parameterless function call returning an access subprogram.
31719
31720 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
31721
31722         Code clean up:
31723         * exp_ch7.adb (Make_Clean): Remove generation of calls to
31724         Unlock[_Entries], since this is now done by Service_Entries directly.
31725
31726         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31727
31728         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31729         Requeue_Call for better code readability. Change spec and update calls:
31730         PO_Service_Entries now unlock the PO on exit.
31731         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31732         PO_Service_Entries.
31733
31734         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31735
31736         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31737
31738 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
31739
31740         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31741         protected subprogram call and analyzing the result of such expanding
31742         in case when the called protected subprogram is eliminated.
31743
31744         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31745         names.
31746
31747 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
31748
31749         * Makefile.in: Clean ups.
31750
31751 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
31752
31753         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31754         protected operations if original subprogram is flagged as eliminated.
31755         (Expand_N_Subprogram_Body): For a protected operation, create
31756         discriminals for next operation before checking whether the operation
31757         is eliminated.
31758
31759         * exp_ch9.adb (Expand_N_Protected_Body,
31760         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31761         for internal protected operations if the original subprogram is
31762         eliminated.
31763
31764         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31765         declared in a single protected object.
31766
31767 2004-02-23  Vincent Celier  <celier@gnat.com>
31768
31769         * prj-attr.adb: Make attribute Builder'Executable an associative array,
31770         case insensitive if file names are case insensitive, instead of a
31771         standard associative array.
31772
31773         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31774         them as case insensitive on platforms where the file names are case
31775         sensitive.
31776
31777         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31778         project file has already been parsed that canonical path are compared.
31779
31780 2004-02-23  Robert Dewar  <dewar@gnat.com>
31781
31782         * sinput-c.ads: Correct bad unit title in header
31783
31784         * freeze.adb: Minor reformatting
31785
31786 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31787
31788         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31789         nonaddressable COMPONENT_REF that is removing padding that we are
31790         taking the address of, take the address of the padded record instead
31791         if item is variable size.
31792
31793 2004-02-20  Robert Dewar  <dewar@gnat.com>
31794
31795         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31796
31797 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
31798
31799         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31800         itype references for the constrained designated type of a component
31801         whose base type is already frozen.
31802
31803 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
31804
31805         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31806         avoid GCC warnings.
31807
31808 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
31809
31810         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31811         identifier for a phantom package that rewrites the formal package
31812         declaration with a box. The Add semantic decorations for the defining
31813         identifier from the original node (that represents the formal package).
31814
31815 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
31816
31817         * Make-lang.in (ada/stamp-sdefault): Use the top level
31818         move-if-change.
31819
31820 2004-02-19  Richard Henderson  <rth@redhat.com>
31821
31822         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31823
31824 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
31825
31826         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31827         Scan_ALI can be used for multiple ALI files without reinitializing
31828         between calls.
31829
31830 2004-02-18  Robert Dewar  <dewar@gnat.com>
31831
31832         * debug.adb: Minor reformatting.
31833
31834 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31835
31836         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31837         to zero if there is an address clause.
31838
31839 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
31840
31841         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31842
31843 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
31844
31845         * layout.adb (Layout_Component_List): Revise generation of call to
31846         discriminant-checking function to pass selections of all of the type's
31847         discriminants rather than just the variant-controlling discriminant.
31848
31849 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
31850
31851         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31852         fail in the current setup and triggers spurious system error messages.
31853         Pretend it occurred and failed instead.
31854
31855 2004-02-18  Vincent Celier  <celier@gnat.com>
31856
31857         * bld.adb: Mark FLDFLAGS as saved
31858         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31859         it is not the root project.  Put each directory to be
31860         extended between double quotes to prevent it to be expanded on Windows.
31861         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31862         the project file. Set them back to their initial values if they have not
31863         been set in the project file.
31864
31865         * gprcmd.adb: (Gprdebug, Debug): New global variables
31866         (Display_Command): New procedure
31867         (Usage): Document new command "linkopts"
31868         Call Display_Command when env var GPRDEBUG has the value "TRUE"
31869         Implement new command "linkopts"
31870         Remove quotes that may be around arguments for "extend"
31871         Always call Normalize_Pathname with arguments formatted for the platform
31872
31873         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31874         Change @echo to @$(display) in target clean to be able to clean silently
31875
31876         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31877
31878         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31879         canonical case.
31880
31881         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31882         = Extending_All when current project is an extending all project.
31883
31884         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31885         set to True only for LINK command, after Unix switch -o.
31886         (Process_Arguments): Set Output_File_Expected to True for LINK command
31887         after Unix switch -o. When Output_File_Expected is True, never add an
31888         extension to a file name.
31889
31890         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31891         option file name, only to the --for-linker= switch.
31892         (Option_File_Name): If option file name do not end with ".opt", append
31893         "/OPTIONS".
31894
31895 2004-02-18  GNAT Script  <nobody@gnat.com>
31896
31897         * Make-lang.in: Makefile automatically updated
31898
31899 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
31900
31901         * Make-lang.in (stamp-sdefault): Do not depend on
31902         move-if-change.
31903
31904 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
31905
31906         * config-lang.in: Disable Ada by default until probe logic for
31907         a bootstrap Ada compiler can be moved to the top level configure
31908         script.
31909
31910 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
31911
31912         * decl.c (components_to_record): Don't claim that the internal fields
31913         we make to hold the variant parts are semantically addressable, because
31914         they are not.
31915
31916         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31917         adjust the comment describing the modular type form when we can use it.
31918         (Install_PAT): Account for the Esiz renaming.
31919
31920         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31921         sc_onstack context indication before raising the exception to which
31922         the signal is mapped. Allows better handling of later signals possibly
31923         triggered by the resumed user code if the exception is handled.
31924
31925 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
31926
31927         * 5zinit.adb: Removed, no longer used.
31928
31929 2004-02-12  Robert Dewar  <dewar@gnat.com>
31930
31931         * ali.adb: Remove separating space between parameters on R line. Makes
31932         format consistent with format used by the binder for Set_Globals call.
31933
31934         * atree.ads, atree.adb: Minor reformatting (new function header format)
31935
31936         * bindgen.adb: Add Run-Time Globals documentation section containing
31937         detailed documentation of the globals passed from the binder file to
31938         the run time.
31939
31940         * gnatls.adb: Minor reformatting
31941
31942         * init.c (__gnat_set_globals): Add note pointing to documentation in
31943         bindgen.
31944
31945         * lib-writ.ads, lib-writ.adb: Remove separating space between
31946         parameters on R line.
31947         Makes format consistent with format used by the binder for Set_Globals
31948         call.
31949
31950         * osint.ads: Add 2004 to copyright notice
31951         Minor reformatting
31952
31953         * snames.ads: Correct capitalization of FIFO_Within_Priorities
31954         Noticed during code reading, documentation issue only
31955
31956         * usage.adb: Remove junk line for obsolete C switch
31957         Noticed during code reading
31958
31959 2004-02-12  Vincent Celier  <celier@gnat.com>
31960
31961         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31962         extend for each directory, so that multiple /** directories are
31963         extended individually.
31964         (Recursive_Process): Set the default for LANGUAGES to ada
31965
31966         * gprcmd.adb: Define new command "ignore", to do nothing.
31967         Implement new comment "path".
31968
31969         * Makefile.generic: Suppress output when SILENT is set
31970         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31971         used, so that the correct compiler is invoked.
31972         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31973         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31974
31975 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
31976
31977         * Makefile.in: Clean ups and remove obsolete targets.
31978
31979 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
31980
31981         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31982         predicate declared in exp_util.
31983
31984         * exp_util.adb: Add comments.
31985
31986         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31987         visibility before compiling context of the subunit.
31988
31989         * sem_res.adb (Check_Parameterless_Call): If the context expects a
31990         value but the name is a procedure, do not attempt to analyze as a call,
31991         in order to obtain more telling diagnostics.
31992
31993         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31994         'Access on parameterless function calls.
31995         (Normalize_Actuals): For a parameterless function call with missing
31996         actuals, defer diagnostic until resolution of enclosing call.
31997
31998         * sem_util.adb (Wrong_Type): If the context type is an access to
31999         subprogram and the expression is a procedure name, suggest a missing
32000         'attribute.
32001
32002 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
32003             Nathanael Nerode  <neroden@gcc.gnu.org>
32004
32005         PR ada/6637
32006         PR ada/5911
32007         Merge with libada-branch:
32008         * config-lang.in: Build libada only when ada is built.
32009
32010 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
32011
32012         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
32013         for a tagged type, verify that both formals have the same type.
32014
32015         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
32016         temporary when the formal is an in-parameter and the actual a possibly
32017         unaligned slice.
32018
32019         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
32020         when expansion is disabled, to ensure proper name capture with
32021         overloaded literals.  Condition can be of any boolean type, resolve
32022         accordingly.
32023
32024         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
32025         renaming is for a formal subprogram with a default operator name, and
32026         there is a usable operator that is visible at the point of
32027         instantiation.
32028
32029 2004-02-09  Robert Dewar  <dewar@gnat.com>
32030
32031         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
32032         rewrite to ignore errors in ali files, intended to allow tools downward
32033         compatibility with new versions of ali files.
32034
32035         * ali.ads: Add new parameter Ignore_Errors
32036
32037         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
32038         duplicating the error message giving the file with restrictions.
32039
32040         * debug.adb: Add debug flag I for gnatbind
32041
32042         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
32043         operators for the case where the operator is a defining operator.
32044
32045         * exp_ch3.adb: Minor reformatting (new function spec format).
32046
32047         * exp_ch4.adb: Add comment for previous change, and make minor
32048         adjustment to loop to always check for improper loop termination.
32049         Minor reformatting throughout (new function spec format).
32050
32051         * gnatbind.adb: Implement -di debug flag for gnatbind
32052
32053         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
32054
32055         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
32056
32057         * lib-load.adb: Fix bad assertion.
32058         Found by testing and code reading.
32059         Minor reformatting.
32060
32061         * lib-load.ads: Minor reformatting.
32062
32063         * lib-writ.adb: There is only one R line now.
32064
32065         * lib-writ.ads: Add documentation on making downward compatible changes
32066         to ali files so old tools work with new ali files.
32067         There is only one R line now.
32068         Add documentation on format incompatibilities (with special GPS note)
32069
32070         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
32071
32072         * par-load.adb: Minor reformatting
32073
32074         * sem_ch8.adb: Fix to error message from last update
32075         Minor reformatting and restructuring of code from last update
32076
32077         * par-prag.adb, snames.adb, snames.ads, snames.h,
32078         sem_prag.adb: Implement pragma Profile.
32079
32080         * stylesw.adb: Implement -gnatyN switch to turn off all style check
32081         options.
32082
32083         * usage.adb: Add line for -gnatyN switch
32084
32085         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
32086
32087 2004-02-09  Albert Lee  <lee@gnat.com>
32088
32089         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
32090
32091 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
32092
32093         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
32094         slices.
32095
32096         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
32097         is nested in an instance that is not frozen yet, to avoid
32098         order-of-elaboration problems in gigi.
32099
32100         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
32101         body the attribute is legal.
32102
32103 2004-02-09  Robert Dewar  <dewar@gnat.com>
32104
32105         * s-rident.ads: Minor comment correction
32106
32107         * targparm.adb: Remove dependence on uintp completely. There was
32108         always a bug in Make in that it called Targparm before initializing
32109         the Uint package. The old code appeared to get away with this, but
32110         the new code did not! This caused an assertion error in gnatmake.
32111
32112         * targparm.ads: Fix bad comment, restriction pragmas with parameters
32113         are indeed fully supported.
32114
32115 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
32116
32117         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
32118
32119 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
32120
32121         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
32122         with targetm.calls.promote_prototypes.
32123
32124 2004-02-04  Robert Dewar  <dewar@gnat.com>
32125
32126         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
32127         ali.ads, gprcmd.adb: Minor reformatting
32128
32129         * bindgen.adb: Output restrictions string for new style restrictions
32130         handling
32131
32132         * impunit.adb: Add s-rident.ads (System.Rident) and
32133         s-restri (System.Restrictions)
32134
32135         * lib-writ.adb: Fix bug in writing restrictions string (last few
32136         entries wrong)
32137
32138         * s-restri.ads, s-restri.adb: Change name Restrictions to
32139         Run_Time_Restrictions to avoid conflict with package name.
32140         Add circuit to read and acquire run time restrictions.
32141
32142 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
32143
32144         * restrict.ads, restrict.adb: Use the new restriction
32145         No_Task_Attributes_Package instead of the old No_Task_Attributes.
32146
32147         * sem_prag.adb: No_Task_Attributes is a synonym of
32148         No_Task_Attributes_Package.
32149
32150         * snames.ads, snames.adb: New entry for proper handling of
32151         No_Task_Attributes.
32152
32153         * s-rident.ads: Adding restriction No_Task_Attributes_Package
32154         (AI-00249) that supersedes the GNAT specific restriction
32155         No_Task_Attributes.
32156
32157 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
32158
32159         * sem_prag.adb:
32160         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
32161          body, an identifier may be wrapped in an unchecked conversion.
32162
32163 2004-02-04  Vincent Celier  <celier@gnat.com>
32164
32165         * lib-writ.ads: Comment update for the W lines
32166
32167         * bld.adb: (Expression): An empty string list is static
32168
32169         * fname-uf.adb: Minor comment update
32170
32171         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
32172
32173         * gnatbind.adb: Initialize Cumulative_Restrictions with the
32174         restrictions on the target.
32175
32176 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
32177
32178         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
32179         gen_rtx.
32180
32181 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
32182
32183         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
32184
32185 2004-02-02  Vincent Celier  <celier@gnat.com>
32186
32187         * gprcmd.adb (Check_Args): If condition is false, print the invoked
32188         comment before the usage.
32189         Gprcmd: Fail when command is not recognized.
32190         (Usage): Document command "prefix"
32191
32192         * g-md5.adb (Digest): Process last block.
32193         (Update): Do not process last block. Store remaining characters and
32194         length in Context.
32195
32196         * g-md5.ads (Update): Document that several call to update are
32197         equivalent to one call with the concatenated string.
32198         (Context): Add fields to allow new Update behaviour.
32199
32200         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
32201         defaulted to False.
32202         When May_Fail is True and no existing file can be found, return No_File.
32203
32204         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
32205         functions.
32206
32207         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
32208         spec file name instead on the W line.
32209
32210 2004-02-02  Robert Dewar  <dewar@gnat.com>
32211
32212         * ali.adb: Read and acquire info from new format restrictions lines
32213
32214         * bcheck.adb: Add circuits for checking restrictions with parameters
32215
32216         * bindgen.adb: Output dummy restrictions data
32217         To be changed later
32218
32219         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32220         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
32221         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
32222         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
32223         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
32224
32225         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
32226         the warning message on access to possibly uninitialized variable S)
32227         Minor changes for new restrictions handling.
32228
32229         * gnatbind.adb: Minor reformatting
32230         Minor changes for new restrictions handling
32231         Move circuit for -r processing here from bcheck (cleaner)
32232
32233         * gnatcmd.adb, gnatlink.adb: Minor reformatting
32234
32235         * lib-writ.adb: Output new format restrictions lines
32236
32237         * lib-writ.ads: Document new R format lines for new restrictions
32238         handling.
32239
32240         * s-restri.ads/adb: New files
32241
32242         * Makefile.rtl: Add entry for s-restri.ads/adb
32243
32244         * par-ch3.adb: Fix bad error messages starting with upper case letter
32245         Minor reformatting
32246
32247         * restrict.adb: Major rewrite throughout for new restrictions handling
32248         Major point is to handle restrictions with parameters
32249
32250         * restrict.ads: Major changes in interface to handle restrictions with
32251         parameters. Also generally simplifies setting of restrictions.
32252
32253         * snames.ads/adb: New entry for proper handling of No_Requeue
32254
32255         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
32256         restriction counting.
32257         Other minor changes for new restrictions handling
32258
32259         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
32260         Restriction_Warnings now allows full parameter notation
32261         Major rewrite of Restrictions for new restrictions handling
32262
32263 2004-02-02  Javier Miranda  <miranda@gnat.com>
32264
32265         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
32266         syntax rule for object renaming declarations.
32267         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
32268         component definitions.
32269
32270         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
32271         components.
32272         (Array_Type_Declaration): Give support to access components. In addition
32273         it was also modified to reflect the name of the object in anonymous
32274         array types. The old code did not take into account that it is possible
32275         to have an unconstrained anonymous array with an initial value.
32276         (Check_Or_Process_Discriminants): Allow access discriminant in
32277         non-limited types.
32278         (Process_Discriminants): Allow access discriminant in non-limited types
32279         Initialize the new Access_Definition field in N_Object_Renaming_Decl
32280         node.  Change Ada0Y to Ada 0Y in comments
32281
32282         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
32283         equality operators.
32284         Change Ada0Y to Ada 0Y in comments
32285
32286         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
32287         renamings Change Ada0Y to Ada 0Y in comments
32288
32289         * sem_type.adb (Find_Unique_Type): Give support to the equality
32290         operators for universal access types
32291         Change Ada0Y to Ada 0Y in comments
32292
32293         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
32294
32295         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
32296         field.
32297         (N_Object_Renaming_Declaration): Addition of Access_Definition field
32298         Change Ada0Y to Ada 0Y in comments
32299
32300         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
32301         component definition and object renaming nodes
32302         Change Ada0Y to Ada 0Y in comments
32303
32304 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
32305
32306         * restrict.adb: Use the new restriction identifier
32307         No_Requeue_Statements instead of the old No_Requeue for defining the
32308         restricted profile.
32309
32310         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
32311         No_Requeue_Statements.
32312
32313         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
32314         that supersedes the GNAT specific restriction No_Requeue. The later is
32315         kept for backward compatibility.
32316
32317 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
32318
32319         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
32320         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
32321         pragma and fix incorrect ones.
32322
32323         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32324         warning if the pragma is redundant.
32325
32326 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
32327
32328         * 5staprop.adb: Add missing 'constant' keywords.
32329
32330         * Makefile.in: use consistent value for SYMLIB on
32331         platforms where libaddr2line is supported.
32332
32333 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32334
32335         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32336         annotating types.
32337
32338 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
32339
32340         * init.c (__gnat_install_handler): Setup an alternate stack for signal
32341         handlers in the environment thread. This allows proper propagation of
32342         an exception on stack overflows in this thread even when the builtin
32343         ABI stack-checking scheme is used without support for a stack reserve
32344         region.
32345
32346         * utils.c (create_field_decl): Augment the head comment about bitfield
32347         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32348         here, because the former is not accurate enough at this point.
32349         Let finish_record_type decide instead.
32350         Don't make a bitfield if the field is to be addressable.
32351         Always set a size for the field if the record is packed, to ensure the
32352         checks for bitfield creation are triggered.
32353         (finish_record_type): During last pass over the fields, clear
32354         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32355         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
32356         from DECL_BIT_FIELD.
32357
32358 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
32359
32360         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32361         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32362         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32363
32364 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32365
32366         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32367
32368         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32369         (ZCX_By_Default): Likewise.
32370         (Front_End_ZCX_Support): Likewise.
32371
32372         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32373         (Initialize_Lock): Mark Level unreferenced.
32374         (Sleep): Mark Reason unreferenced.
32375         (Timed_Sleep): Likewise.
32376         (Wakeup): Likewise.
32377         (Exit_Task): Use Result.
32378         (Check_No_Locks): Mark Self_ID unreferenced.
32379
32380         * 5gtasinf.adb (New_Sproc): Make Attr constant.
32381         (Bound_Thread_Attributes): Make Sproc constant.
32382         (New_Bound_Thread_Attributes): Likewise.
32383
32384 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32385
32386         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32387         one-dimensional array an slice assignments, when component type is
32388         controlled.
32389
32390         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32391         component type is controlled, and control_actions are in effect, use
32392         TSS procedure rather than generating inline code.
32393
32394         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32395         arrays with controlled components.
32396
32397 2004-01-26  Vincent Celier  <celier@gnat.com>
32398
32399         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32400         command line for the non VMS case.
32401
32402         * gnatlink.adb (Process_Binder_File): When building object file, if
32403         GNU linker is used, put all object paths between quotes, to prevent ld
32404         error when there are unusual characters (such as '!') in the paths.
32405
32406         * Makefile.generic: When there are sources in Ada and the main is in
32407         C/C++, invoke gnatmake with -B, instead of -z.
32408
32409         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32410         from VMS_Conversion.
32411         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32412         specification of argument file on the command line.
32413
32414 2004-01-26  Bernard Banner  <banner@gnat.com>
32415
32416         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32417
32418 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32419
32420         * snames.adb: Update copyright notice.
32421         Add info on slice assignment for controlled arrays.
32422
32423 2004-01-23  Robert Dewar  <dewar@gnat.com>
32424
32425         * exp_aggr.adb: Minor reformatting
32426
32427         * exp_ch9.adb: Minor code clean up
32428         Minor reformatting
32429         Fix bad character in comment
32430
32431         PR ada/13471
32432         * targparm.adb (Get_Target_Parameters): Give clean abort error on
32433         unexpected end of file, along with more detailed message.
32434
32435 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32436
32437         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32438         PAT.
32439
32440         * decl.c (copy_alias_set): New function.
32441         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32442
32443 2004-01-23  Doug Rupp  <rupp@gnat.com>
32444
32445         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32446         lib$${file} in case subsequent character is not a separator.
32447
32448 2004-01-23  Vincent Celier  <celier@gnat.com>
32449
32450         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32451         when the GCC version is at least 3.
32452
32453         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32454         Remove all "Opt.", to prepare for opt split
32455
32456         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32457         Extends_All. Set to True when the project parsed is an extending all
32458         project. Fails for importing an extending all project only when the
32459         imported project is an extending all project.
32460         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32461         depending on the value of Extends_All returned.
32462
32463         * prj-proc.adb (Process): Check that no project shares its object
32464         directory with a project that extends it, directly or indirectly,
32465         including a virtual project.
32466         Check that no project extended by another project shares its object
32467         directory with another also extended project.
32468
32469         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32470         Kind = N_With_Clause
32471
32472         * prj-tree.ads: Minor reformatting
32473         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32474
32475 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
32476
32477         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32478         applies to a type with an incomplete view, use full view in Name of
32479         clause, for consistency with uses of Get_Attribute_Definition_Clause.
32480
32481 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
32482
32483         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32484         SCHED_RR, since other values are not supported by this policy.
32485         (Initialize): Move initialization of mutex attribute to package
32486         elaboration, to prevent early access to this variable.
32487
32488         * Makefile.in: Remove mention of Makefile.adalib, unused.
32489
32490         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32491         1ssecsta.ads: Removed, unused.
32492
32493 2004-01-21  Javier Miranda  <miranda@gnat.com>
32494
32495         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32496         entity if already built in the current scope.
32497
32498         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32499         reminder in internal scopes. Required for nested limited aggregates.
32500
32501 2004-01-21  Doug Rupp  <rupp@gnat.com>
32502
32503         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32504         VMS. Replace all occurences of libgnat- and libgnarl- with
32505         libgnat$(hyphen) and libgnarl$(hyphen).
32506         Fixed shared library build problem on VMS.
32507
32508 2004-01-21  Robert Dewar  <dewar@gnat.com>
32509
32510         * mlib-prj.adb: Minor reformatting
32511
32512 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
32513
32514         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32515         'constant' keywords for declaration of pointers that are not modified.
32516
32517         * exp_pakd.adb: Fix English in comment.
32518
32519 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
32520
32521         PR ada/10889
32522         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32523         copy all attributes of the parent, including the foreign language
32524         convention.
32525
32526 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
32527
32528         PR ada/10565
32529         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32530         for 'delay until' statement.
32531
32532 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
32533
32534         * Make-lang.in: Replace $(docdir) with doc.
32535         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32536         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32537         to use consistent MAKEINFO rule.
32538         (ada.man, ada.srcman): Dummy entry.
32539         (ADA_INFOFILES): Define.
32540         (ada.info, ada.srcinfo): New rules.
32541
32542 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
32543
32544         * utils.c: Update copyright notice, missed in previous change.
32545
32546 2004-01-19  Vincent Celier  <celier@gnat.com>
32547
32548         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32549         args if Bind is True. Set First_ALI, if not already done.
32550         (Build_Library): For Stand Alone Libraries, extract from one ALI file
32551         an eventual --RTS switch, for gnatbind, and all backend switches +
32552         --RTS, for linking.
32553
32554 2004-01-19  Robert Dewar  <dewar@gnat.com>
32555
32556         * sem_attr.adb, memtrack.adb: Minor reformatting
32557
32558 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
32559
32560         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32561         that rename enumeration literals. This is properly done in sem_eval.
32562
32563         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32564         to functions that rename enumeration literals.
32565
32566         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32567         functions that rename enumeration literals.
32568
32569 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
32570
32571         * Make-lang.in (utils.o): Depend on target.h.
32572         * utils.c: Include target.h.
32573         (process_attributes): Use targetm.have_named_sections instead
32574         of ASM_OUTPUT_SECTION_NAME.
32575
32576 2004-01-16  Andreas Jaeger  <aj@suse.de>
32577
32578         * Makefile.in: Add $(DESTDIR).
32579
32580 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
32581
32582         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32583         also when not defining if a Size clause applies. That information is
32584         not to be ignored.
32585
32586 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
32587
32588         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32589         symbolic links for the shared gnat run time when needed.
32590
32591 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
32592
32593         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32594         for writing, and terminate with an error message if not.
32595
32596 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
32597
32598         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32599         warning on an access to subprogram in an instance, when the target
32600         type is declared in the same generic unit.
32601         (Eval_Attribute): If 'access is known to fail accessibility check,
32602         rewrite as a raise statement.
32603
32604 2004-01-15  GNAT Script  <nobody@gnat.com>
32605
32606         * Make-lang.in: Makefile automatically updated
32607
32608 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
32609
32610         * Make-lang.in (ada.srcextra): Dummy entry.
32611
32612 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
32613
32614         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32615
32616 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
32617
32618         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32619         components that are initialized with aggregates.
32620
32621 2004-01-13  Vincent Celier  <celier@gnat.com>
32622
32623         * gnatlink.adb (Process_Binder_File): To find directory of shared
32624         libgcc, if "gcc-lib" is not a subdirectory, look for the last
32625         subdirectory "lib" in the path of the shared libgnat or libgnarl.
32626
32627         * make.adb (Gnatmake): If GCC version is at least 3, link with
32628         -shared-libgcc, when there is at least one shared library project.
32629
32630         * opt.ads (GCC_Version): New integer constant.
32631
32632         * adaint.c (get_gcc_version): New function.
32633
32634 2004-01-13  Robert Dewar  <dewar@gnat.com>
32635
32636         * sem_dist.adb, sem_res.adb, sem_util.adb,
32637         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32638         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32639
32640 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
32641
32642         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32643         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32644         declarations.
32645
32646 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
32647
32648         * misc.c: Remove trailing spaces.
32649         Update copyright notice missed in previous change.
32650
32651         PR ada/13572
32652         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32653         prefix/share/make
32654
32655         * Makefile.generic: Update copyright.
32656         Add license notice.
32657
32658         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32659         of prefix/share/make.
32660
32661         * Makefile.prolog: Update copyright.
32662         Add license notice.
32663
32664 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
32665
32666         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32667         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32668         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32669         instead of String.
32670
32671         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32672         signature.
32673
32674 2004-01-12  Javier Miranda  <miranda@gnat.com>
32675
32676         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32677         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32678         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32679         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32680         Component_Definition node.
32681
32682 2004-01-12  Ed Falis  <falis@gnat.com>
32683
32684         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32685
32686 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
32687
32688         * link.c: Change default libgnat kind to STATIC for FreeBSD.
32689
32690 2004-01-12  Bernard Banner  <banner@gnat.com>
32691
32692         * Makefile.in: map 86numaux to a-numaux for x86_64
32693
32694 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
32695
32696         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32697         generated to rename a generic actual, go to the actual itself, the
32698         subtype is not a user-visible entity.
32699
32700         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32701         part is a private subtype, reset the visibility of its full view, if
32702         any, to be consistent.
32703
32704         PR ada/13417
32705         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32706         to use a generic package G as a formal package for another generic
32707         declared within G.
32708
32709 2004-01-12  Robert Dewar  <dewar@gnat.com>
32710
32711         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32712
32713         * usage.adb: Remove mention of obsolete -gnatwb switch
32714         Noticed during code reading
32715
32716 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
32717
32718         * 1ssecsta.adb: Minor changes for -gnatwa warnings
32719
32720 2004-01-12  GNAT Script  <nobody@gnat.com>
32721
32722         * Make-lang.in: Makefile automatically updated
32723
32724 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
32725
32726         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32727
32728 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32729
32730         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32731
32732 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
32733
32734         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32735         Update comment and copyright date.
32736         * stamp-xgnatug: Delete.
32737
32738 2004-01-05  Robert Dewar  <dewar@gnat.com>
32739
32740         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32741         be modified by the binder generated main program if the -D switch is
32742         used.
32743
32744         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32745         imported functions (since now we expect this to be done for imported
32746         functions)
32747
32748         * 5vtaprop.adb: Add several ??? for sections requiring more comments
32749         Minor reformatting throughout
32750
32751         * 5zinit.adb: Minor reformatting
32752         Add 2004 to copyright date
32753         Minor changes to avoid -gnatwa warnings
32754         Correct some instances of using OR instead of OR ELSE (noted while
32755         doing reformatting)
32756
32757         * sprint.adb: Minor updates to avoid -gnatwa warnings
32758
32759         * s-secsta.ads, s-secsta.adb:
32760         (SS_Get_Max): New function to obtain high water mark for ss stack
32761         Default_Secondary_Stack is not a constant since it may be modified by
32762         the binder generated main program if the -D switch is used.
32763
32764         * switch-b.adb: New -Dnnn switch for binder
32765
32766         * switch-c.adb:
32767         Make -gnatg imply all warnings currently in -gnatwa
32768
32769         * vms_conv.adb: Minor reformatting
32770         Add 2004 to copyright notice
32771         Add 2004 to printed copyright notice
32772
32773         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32774         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32775         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32776         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32777         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32778         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32779         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32780         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32781         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32782         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32783         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32784         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32785         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32786         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32787         checks.adb, clean.adb, cstand.adb, einfo.ads,
32788         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32789         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32790         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32791         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32792         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32793         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32794         Minor reformatting and code clean ups.
32795         Minor changes to prevent -gnatwa warnings
32796
32797         * ali.adb: Minor reformatting and cleanup of code
32798         Acquire new SS indication of secondary stack use from ali files
32799
32800         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32801         (since now we expect this to be done for imported functions)
32802
32803         * bindgen.adb: Generate call to modify default secondary stack size if
32804         -Dnnn switch given
32805
32806         * bindusg.adb: Add line for new -D switch
32807
32808         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32809         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32810         Add circuitry for both records and arrays to avoid gigi
32811         processing if the type involved has non-bit-aligned components
32812
32813         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32814         N_String_Literal node always references an E_String_Literal_Subtype
32815         entity. This may not be true in the future.
32816         (Possible_Bit_Aligned_Component): Move processing of
32817         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32818
32819         * exp_ch6.adb (Expand_Thread_Body): Pick up
32820         Default_Secondary_Stack_Size as variable so that we get value modified
32821         by possible -Dnnn binder parameter.
32822
32823         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32824         (Type_May_Have_Bit_Aligned_Components): New function.
32825
32826         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32827         (Type_May_Have_Bit_Aligned_Components): New function.
32828
32829         * fe.h: (Set_Identifier_Casing): Fix prototype.
32830         Add declaration for Sem_Elim.Eliminate_Error_Msg.
32831         Minor reformatting.
32832
32833         * freeze.adb (Freeze_Entity): Add RM reference to error message about
32834         importing constant atomic/volatile objects.
32835         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32836         unless explicit Pure_Function pragma given, to avoid insidious bug of
32837         call to non-pure imported function getting eliminated.
32838
32839         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32840         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32841         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32842         Add 2004 to printed copyright notice
32843
32844         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32845         stack used.
32846
32847         * Makefile.rtl: Add entry for g-sestin.o
32848         g-sestin.ads: New file.
32849
32850         * mdll.adb: Minor changes to avoid -gnatwa warnings
32851
32852         * mlib-tgt.adb: Minor reformatting
32853
32854         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32855         New switch Sec_Stack_Used (GNAT, GNATBIND)
32856         Make Default_Secondary_Stack_Size a variable instead of a constant,
32857         so that it can be modified by the new -Dnnn bind switch.
32858
32859         * rtsfind.adb (Load_Fail): Give full error message in configurable
32860         run-time mode if all_errors mode is set. This was not done in the case
32861         of a file not found, which was an oversight.
32862         Note if secondary stack unit is used by compiler.
32863
32864         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32865         ineffective elaborate all pragmas on non-visible packages (this
32866         happened when a renamed subprogram was called). Now the elaborate all
32867         always goes on the package containing the renaming rather than the one
32868         containing the renamed subprogram.
32869
32870         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32871         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32872
32873         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32874         has an Etype that references an E_String_Literal.
32875         (Eval_String_Literal): Avoid assumption that N_String_Literal node
32876         always references an E_String_Literal_Subtype entity. This may not
32877         be true in the future.
32878
32879         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32880         pragma location.
32881
32882         * sem_res.adb (Resolve): Specialize msg for function name used in proc
32883         call.
32884
32885 2004-01-05  Ed Falis  <falis@gnat.com>
32886
32887         * g-debuti.adb: Replaced direct boolean operator with short-circuit
32888         form.
32889
32890 2004-01-05  Vincent Celier  <celier@gnat.com>
32891
32892         * bld.adb: Minor comment updates
32893         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32894         of Item_Name).
32895
32896         * make.adb (Gnatmake): Special process for files to compile/check when
32897         -B is specified. Fail when there are only foreign mains in attribute
32898         Main of the project file and -B is not specified. Do not skip bind/link
32899         steps when -B is specified.
32900
32901         * makeusg.adb: Document new switch -B
32902
32903         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32904
32905         * switch-m.adb: (Scan_Make_Switches): Process -B switch
32906
32907         * vms_data.ads: Add new GNAT PRETTY qualifier
32908         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32909
32910 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32911
32912         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32913         case.
32914
32915         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32916         Set_Identifier_Casing.
32917
32918         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32919         has size that overflows.
32920
32921 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
32922
32923         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32924         -gnatwa warning on static condition.
32925
32926 2004-01-05  Doug Rupp  <rupp@gnat.com>
32927
32928         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32929
32930 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
32931
32932         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32933         all attributes, including read-only attribute.
32934
32935 2004-01-05  Pascal Obry  <obry@gnat.com>
32936
32937         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32938         library naming scheme.
32939
32940         * mlib-prj.adb (Build_Library): Generate different names for the static
32941         or dynamic version of the GNAT runtime. This is needed to support the
32942         new shared library naming scheme.
32943         (Process_Binder_File): Add detection of shared library in binder file
32944         based on the new naming scheme.
32945
32946         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32947         scheme for the shared runtime libraries.
32948
32949         * Makefile.in:
32950         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32951         scheme.
32952         (install-gnatlib): Do not create symlinks for shared libraries.
32953         (gnatlib-shared-default): Idem.
32954         (gnatlib-shared-dual-win32): New target. Not used for now as the
32955         auto-import feature does not support arrays/records.
32956         (gnatlib-shared-win32): Do not create copy for the shared libraries.
32957         (gnatlib-shared-vms): Fix shared runtime libraries names.
32958
32959         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32960         dependent runtime shared library name.
32961
32962 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
32963
32964         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32965         than the object.
32966
32967 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
32968
32969         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32970         protected objects when allocator has a subtype indication, not a
32971         qualified expression. Note that qualified expressions may have to be
32972         checked when limited aggregates are implemented.
32973
32974         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32975         pure, emit warning.
32976         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32977         subprogram is imported, remove warning.
32978
32979 2004-01-05  Geert Bosch  <bosch@gnat.com>
32980
32981         * s-poosiz.adb: Update copyright notice.
32982         (Allocate): Use Task_Lock to protect against concurrent access.
32983         (Deallocate): Likewise.
32984
32985 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
32986
32987         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32988         comment.
32989
32990 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
32991
32992         * gnat_ug.texi: Force a CVS commit by updating copyright.
32993         * gnat_ug_vxw.texi: Regenerate.
32994         * gnat_ug_wnt.texi: Regenerate.
32995         * gnat_ug_vms.texi: Regenerate.
32996         * gnat_ug_unx.texi: Regenerate.
32997
32998 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
32999
33000         * trans.c: Remove uses of "register" specifier in
33001         declarations of local variables.
33002
33003 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
33004
33005         * stamp-xgnatug: New stamp file.
33006         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
33007         (ada/doctools/xgnatug): Add $(build_exeext).
33008         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
33009         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
33010
33011 2003-12-17  Ed Falis  <falis@gnat.com>
33012
33013         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
33014         eliminate warning.
33015
33016         * a-exextr.adb: Add context clause for
33017         Ada.Exceptions.Last_Chance_Handler.
33018
33019 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
33020
33021         * cstand.adb (Create_Standard): Change the way how the declaration of
33022         the Duration type is created (making it the same way as it is for all
33023         the other standard types).
33024
33025 2003-12-17  Robert Dewar  <dewar@gnat.com>
33026
33027         * s-crtl.ads: Fix header format
33028         Change Pure to Preelaborate
33029
33030 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
33031
33032         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
33033         the expression type only if it is declared in the current unit.
33034
33035         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
33036         are universal and already analyzed, as can occur in constrained
33037         subcomponents that depend on discriminants, when one constraint is a
33038         subtype mark.
33039
33040         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
33041         type Any_Fixed is legal as the argument of a conversion, if only one
33042         fixed-point type is in context.
33043
33044 2003-12-17  GNAT Script  <nobody@gnat.com>
33045
33046         * Make-lang.in: Makefile automatically updated
33047
33048 2003-12-15  Robert Dewar  <dewar@gnat.com>
33049
33050         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
33051         sec stack size.
33052
33053 2003-12-15  Vincent Celier  <celier@gnat.com>
33054
33055         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
33056         (Gnatchop): Do not set failure status when reporting the number of
33057         warnings.
33058
33059 2003-12-15  Doug Rupp  <rupp@gnat.com>
33060
33061         * s-ctrl.ads: New file.
33062
33063         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
33064
33065         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
33066         (GNATBIND_OBJS): Add ada/s-crtl.o.
33067
33068         * Makefile.in [VMS]: Clean up ifeq rules.
33069
33070         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
33071         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
33072         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
33073         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
33074         s-tasdeb.adb: Update copyright.
33075         Import System.CRTL.
33076         Make minor modifications to use System.CRTL declared functions instead
33077         of importing locally.
33078
33079 2003-12-15  GNAT Script  <nobody@gnat.com>
33080
33081         * Make-lang.in: Makefile automatically updated
33082
33083 2003-12-11  Ed Falis  <falis@gnat.com>
33084
33085         * 5zinit.adb: Clean up.
33086
33087         * 5zintman.adb (Notify_Exception): replaced case statement with a call
33088         to __gnat_map_signal, imported from init.c to support
33089         signal -> exception mappings that depend on the vxWorks version.
33090
33091         * init.c:
33092         Created and exported __gnat_map_signal to support signal -> exception
33093         mapping that is dependent on the VxWorks version.
33094         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
33095
33096 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
33097
33098         * 5wosinte.ads: Link with -mthreads switch.
33099
33100 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
33101
33102         * init.c (__gnat_install_handler [NetBSD]): Set
33103         __gnat_handler_installed, as done on all other platforms.
33104         Remove duplicated code.
33105
33106 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
33107
33108         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
33109
33110 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
33111
33112         * sinfo.ads: Fix inconsistent example code in comment.
33113
33114 2003-12-11  Robert Dewar  <dewar@gnat.com>
33115
33116         * a-tiinau.adb: Add a couple of comments
33117
33118         * sem_ch3.adb: Minor reformatting
33119
33120         * sem_prag.adb:
33121         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
33122         Minor reformatting throughout
33123
33124 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
33125
33126         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
33127         bounds of a loop, create a separate block in order to generate proper
33128         cleanup actions to prevent memory leaks.
33129
33130         * sem_res.adb (Resolve_Call): After a call to
33131         Establish_Transient_Scope, the call may be rewritten and relocated, in
33132         which case no further processing is needed.
33133
33134         * sem_util.adb: (Wrong_Type): Refine previous fix.
33135          Fixes ACATS regressions.
33136
33137         PR ada/13353
33138         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
33139         be inlined.
33140
33141 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
33142
33143         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
33144         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
33145         obsolete files.
33146
33147         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
33148         (rts-zfp): Ditto.
33149
33150 2003-12-08  Robert Dewar  <dewar@gnat.com>
33151
33152         * 7sintman.adb: Minor reformatting
33153
33154         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
33155         standard linker options to get standard libraries linked. We now plan
33156         to provide dummy versions of these libraries to match the appropriate
33157         configurable run-time (e.g. if a library is not needed at all, provide
33158         a dummy empty library).
33159
33160         * targparm.ads: Configurable_Run_Time mode no longer affects linker
33161         options (-L parameters and standard libraries). What we plan to do is
33162         to provide dummy libraries where the libraries are not required.
33163
33164         * gnatbind.adb: Minor comment improvement
33165
33166 2003-12-08  Javier Miranda  <miranda@gnat.com>
33167
33168         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
33169         aggregate in the parent. Otherwise constants with limited aggregates
33170         are not supported. Add new formal to pass the component type (Ctype).
33171         It is required to call the corresponding IP subprogram in case of
33172         default initialized components.
33173         (Gen_Assign): In case of default-initialized component, generate a
33174         call to the IP subprogram associated with the component.
33175         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
33176         of aggregate with default initialized components.
33177         (Has_Default_Init_Comps): Improve implementation to recursively check
33178         all the present expressions.
33179
33180         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
33181         to indicate that the initialization call corresponds to a
33182         default-initialized component of an aggregate.
33183         In case of default initialized aggregate with tasks this parameter is
33184         used to generate a null string (this is just a workaround that must be
33185         improved later). In case of discriminants, this parameter is used to
33186         generate a selected component node that gives access to the discriminant
33187         value.
33188
33189         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
33190         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
33191         allocated aggregates with default-initialized components.
33192
33193         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
33194         the box notation is used in positional aggregates.
33195
33196 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
33197
33198         * lib.ads: Fix typo in comment
33199
33200 2003-12-08  Vincent Celier  <celier@gnat.com>
33201
33202         * prj.adb (Project_Empty): New component Unkept_Comments
33203         (Scan): Remove procedure; moved to Prj.Err.
33204
33205         * prj.ads (Project_Data): New Boolean component Unkept_Comments
33206         (Scan): Remove procedure; moved to Prj.Err.
33207
33208         * prj-dect.adb: Manage comments for the different declarations.
33209
33210         * prj-part.adb (With_Record): New component Node
33211         (Parse): New Boolean parameter Store_Comments, defaulted to False.
33212         Set the scanner to return ends of line and comments as tokens, if
33213         Store_Comments is True.
33214         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
33215         comments are associated with these nodes. Store the node IDs in the
33216         With_Records.
33217         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
33218         With_Records.
33219         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
33220         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
33221         current project. Call Tree.Restore afterwards. Set the various nodes
33222         for comment storage (Next_End, End_Of_Line, Previous_Line,
33223         Previous_End).
33224
33225         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
33226         defaulted to False.
33227
33228         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
33229         to False. When Truncated is True, truncate the string, never go to the
33230         next line.
33231         (Write_End_Of_Line_Comment): New procedure
33232         (Print): Process comments for nodes N_With_Clause,
33233         N_Package_Declaration, N_String_Type_Declaration,
33234         N_Attribute_Declaration, N_Typed_Variable_Declaration,
33235         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
33236         Process nodes N_Comment.
33237
33238         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
33239         without comments and there are some comments, set the flag
33240         Unkept_Comments to True.
33241         (Scan): If there are comments, set the flag Unkept_Comments to True and
33242         clear the comments.
33243         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
33244         (Next_End_Nodes: New table
33245         (Comment_Zones_Of): New function
33246         (Scan): New procedure; moved from Prj. Accumulate comments in the
33247         Comments table and set end of line comments, comments after, after end
33248         and before end.
33249         (Add_Comments): New procedure
33250         (Save, Restore, Seset_State): New procedures
33251         (There_Are_Unkept_Comments): New function
33252         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
33253         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
33254         procedures.
33255         (First_Comment_After, First_Comment_After_End): New functions
33256         (First_Comment_Before, First_Comment_Before_End): New functions
33257         (Next_Comment): New function
33258         (End_Of_Line_Comment, Follows_Empty_Line,
33259         Is_Followed_By_Empty_Line): New functions
33260         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
33261         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
33262         (Set_Next_Comment): New procedure
33263         (Default_Project_Node): Associate comment before if the node can store
33264         comments.
33265
33266         * scans.ads (Token_Type): New enumeration value Tok_Comment
33267         (Comment_Id): New global variable
33268
33269         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
33270         defaulted to False.
33271         (Scan): Store position of start of comment. If comments are tokens, set
33272         Comment_Id and set Token to Tok_Comment when scanning a comment.
33273         (Set_Comment_As_Token): New procedure
33274
33275         * sinput-p.adb: Update Copyright notice
33276         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
33277         that no longer exists.
33278
33279 2003-12-08  Javier Miranda  <miranda@gnat.com>
33280
33281         * sem_aggr.adb: Add dependence on Exp_Tss package
33282         Correct typo in comment
33283         (Resolve_Aggregate): In case of array aggregates set the estimated
33284         type of the aggregate before calling resolve. This is needed to know
33285         the name of the corresponding IP in case of limited array aggregates.
33286         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
33287         in case of default initialized array components.
33288
33289         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
33290         types. Required to give support to limited aggregates in generic
33291         formals.
33292
33293 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
33294
33295         * sem_ch3.adb (Check_Initialization): For legality purposes, an
33296         inlined body functions like an instantiation.
33297         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
33298         until bounds are analyzed, to diagnose premature use of type.
33299
33300         * sem_util.adb (Wrong_Type): Improve error message when the type of
33301         the expression is used prematurely.
33302
33303 2003-12-08  GNAT Script  <nobody@gnat.com>
33304
33305         * Make-lang.in: Makefile automatically updated
33306
33307 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
33308
33309         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
33310         they are automatically generated by Make-lang.in and cause nothing but
33311         maintenance troubles.
33312
33313 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
33314
33315         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
33316         version of this unit).
33317
33318 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
33319
33320         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
33321         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
33322         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
33323         the body of System.Interrupt_Management common to several targets.
33324         Update copyright notice when appropriate.
33325
33326         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33327         constant.
33328
33329         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33330         to ensure that the kernel fills in the interrupted context structure
33331         before calling a signal handler, which is necessary to be able to
33332         unwind past it. Update the copyright notice.
33333
33334 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
33335
33336         * a-elchha.ads: New file.
33337
33338         * a-elchha.adb: New default last chance handler. Contents taken from
33339         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33340
33341         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33342         is moved to a-elchha.adb to provide a target-independent default last
33343         chance handler.
33344
33345         * Makefile.rtl: Add a-elchha.o
33346
33347         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33348
33349 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
33350
33351         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33352         declared in an instance, do not inline the call if the instance is not
33353         frozen yet, to prevent order of elaboration problems.
33354
33355         * sem_prag.adb: Add comments for previous fix.
33356
33357 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
33358
33359         * g-table.adb: Use the right variable in Set_Item.
33360         Update copyright notice.
33361
33362 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
33363
33364         * Makefile.in: Remove unused rules.
33365
33366 2003-12-05  Vincent Celier  <celier@gnat.com>
33367
33368         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33369         -nostdlib. Not needed here after all.
33370
33371 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
33372
33373         PR ada/11724
33374         * adaint.h, adaint.c, g-os_lib.ads:
33375         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33376         on some platforms (including FreeBSD), it is a 64 bit value.
33377         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33378
33379 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
33380
33381         * gnatvsn.ads (Library_Version): Now contain only the relevant
33382         version info.
33383         (Verbose_Library_Version): New constant.
33384
33385         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33386         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33387         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33388
33389         * gnatlbr.adb: Clean up: replace Library_Version by
33390         Verbose_Library_Version.
33391
33392         * make.adb, lib-writ.adb, exp_attr.adb:
33393         Clean up: replace Library_Version by Verbose_Library_Version.
33394
33395         * 5lintman.adb: Removed.
33396
33397         * Makefile.in:
33398         Update and simplify computation of LIBRARY_VERSION.
33399         Fix computation of GSMATCH_VERSION.
33400         5lintman.adb is no longer used: replaced by 7sintman.adb.
33401
33402 2003-12-03  Robert Dewar  <dewar@gnat.com>
33403
33404         * exp_ch5.adb:
33405         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33406         name. Modified to consider small non-bit-packed arrays as troublesome
33407         and in need of component-by-component assigment expansion.
33408
33409 2003-12-03  Vincent Celier  <celier@gnat.com>
33410
33411         * lang-specs.h: Process nostdlib as nostdinc
33412
33413         * back_end.adb: Update Copyright notice
33414         (Scan_Compiler_Arguments): Process -nostdlib directly.
33415
33416 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
33417
33418         * Makefile.in:
33419         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33420         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33421         included in HIE_NONE_TARGET_PAIRS.
33422
33423 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
33424
33425         * sem_attr.adb:
33426         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33427         is legal in an instance, because legality is cheched in the template.
33428
33429         * sem_prag.adb:
33430         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33431         appplied to an unchecked conversion of a formal parameter.
33432
33433         * sem_warn.adb:
33434         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33435         variables.
33436
33437 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
33438
33439         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33440         routines. The second one is new functionality to deal with backtracing
33441         through signal handlers.
33442         (unwind): Split into the two separate subroutines above.
33443         Update the documentation, and deal properly with sizeof (REG) different
33444         from sizeof (void*).
33445
33446 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
33447
33448         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33449         so that the debugger can reliably access the value of the parameter,
33450         and therefore is able to display the exception name when an exception
33451         breakpoint is reached.
33452
33453 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
33454
33455         * fmap.adb: Fix typo in warning message.
33456
33457         * g-socket.ads, g-socket.adb: Make Free a visible instance of
33458         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33459
33460 2003-12-01  Vincent Celier  <celier@gnat.com>
33461
33462         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33463         ther is no Afile.
33464         (Build_Library): Get the switches only if Default_Switches is declared
33465         in package Binder.
33466
33467 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
33468
33469         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33470         actuals that are indexed components, reanalyze actual to ensure that
33471         packed array references are properly expanded.
33472
33473         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33474         attempted assignment to a discriminant.
33475
33476 2003-12-01  Robert Dewar  <dewar@gnat.com>
33477
33478         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33479         reformatting.
33480
33481         * switch-c.adb: Minor reformatting of comments
33482
33483 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33484
33485         * Makefile.in: Clean ups.
33486
33487 2003-12-01  GNAT Script  <nobody@gnat.com>
33488
33489         * Make-lang.in: Makefile automatically updated
33490
33491 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33492
33493         * 5wsystem.ads: Disable zero cost exception, not ready yet.
33494
33495 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
33496
33497         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33498         to force serialization.
33499
33500 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
33501
33502         * g-socket.ads, g-socket.adb:
33503         Clarify documentation of function Stream. Introduce a Free procedure
33504         to release the returned Stream once it becomes unused.
33505
33506         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33507
33508 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
33509
33510         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33511         since NT 4 cannot handle timeout values that are too large,
33512         e.g. DWORD'Last - 1.
33513
33514 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
33515
33516         * exp_ch4.adb:
33517         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33518         in procedure calls and whose expansion must be deferred.
33519
33520         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33521         is in exp_ch4.
33522
33523         * sem_ch3.adb:
33524         (Build_Derived_Array_Type): Create operator for unconstrained type
33525         if ancestor is unconstrained.
33526
33527 2003-11-26  Vincent Celier  <celier@gnat.com>
33528
33529         * make.adb (Project_Object_Directory): New global variable
33530         (Change_To_Object_Directory): New procedure
33531         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33532         of Change_Dir directly. Do not change working directory to object
33533         directory of main project after each compilation.
33534         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33535         directly.
33536         Change to object directory of main project before binding step.
33537         (Initialize): Initialize Project_Object_Directory to No_Project
33538
33539         * mlib-prj.adb:
33540         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33541         binding a Stand-Alone Library.
33542
33543         * output.adb: Update Copyright notice
33544         (Write_Char): Output buffer when full
33545
33546 2003-11-26  Robert Dewar  <dewar@gnat.com>
33547
33548         * sem_ch13.adb: (Check_Size): Reset size if size is too small
33549
33550         * sem_ch13.ads:
33551         (Check_Size): Fix documentation to include bit-packed array case
33552
33553         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33554
33555         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33556
33557         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33558
33559 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
33560
33561         PR ada/13142
33562         * utils.c (init_gigi_decls): Change name of built-in setjmp to
33563         __builtin_setjmp, since this is apparently needed by recent
33564         non Ada changes.
33565
33566 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33567
33568         * adadecode.c: Only include ctype.h if not IN_GCC.
33569         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33570
33571 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
33572
33573         * Makefile.in:
33574         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33575         signals and interrupts.
33576
33577         * 5zintman.ads: New File.
33578
33579         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33580         add exception signals to the set of unmasked signals.
33581
33582         * 5ztaprop.adb:
33583         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33584         between signals and interrupts.
33585         Add to Unblocked_Signal_Mask the set of signals that are in
33586         Keep_Unmasked.
33587
33588         * 7sinmaop.adb:
33589         Adding a check to see whether the Interrupt_ID we want to unmask is in
33590         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33591         reason is that the index type of the Keep_Unmasked array is not always
33592         Interrupt_ID; it may be a subtype of Interrupt_ID.
33593
33594 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
33595
33596         * exp_util.adb:
33597         (Remove_Side_Effects): Condition constantness of object created for a
33598          an unchecked type conversion on the constantness of the expression
33599          to ensure the correct value for 'Constrained when passing components
33600          of view-converted class-wide objects.
33601
33602 2003-11-24  Robert Dewar  <dewar@gnat.com>
33603
33604         * par-load.adb (Load): Improve handling of misspelled and missing units
33605         Removes several cases of compilation abandoned messages
33606
33607         * lib.adb: (Remove_Unit): New procedure
33608
33609         * lib.ads: (Remove_Unit): New procedure
33610
33611         * lib-load.adb: Minor reformatting
33612
33613 2003-11-24  Vincent Celier  <celier@gnat.com>
33614
33615         * make.adb:
33616         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33617         (Marking_Label): Label to mark processed source files. Incremented for
33618         each executable.
33619         (Gnatmake): Increase Marking_Labet for each executable
33620         (Is_Marked): Compare against marking label
33621         (Mark): Mark with marking label
33622
33623 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
33624
33625         * s-thread.ads:
33626         Move the declaration of the TSD for System.Threads to System.Soft_Links.
33627         Add some comments.
33628
33629         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33630         (rts-cert): build a single relocatable object for the run-time lib.
33631         Fix perms.
33632
33633 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
33634
33635         * Make-lang.in:
33636         Use gnatls rather than gcc to obtain the location of GNAT RTL for
33637         crosstools build.
33638
33639 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
33640
33641         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33642         can not use it as before (that is, as a variable) when dumping it into
33643         the tree file. Add a local variable to store the result of this
33644         function and to be used as the string to be written into the tree.
33645
33646         * scn.adb (Initialize_Scanner): Add comments explaining the recent
33647         changes.
33648
33649         * sinput.adb (Source_First, Source_Last): In case of
33650         Internal_Source_File, replace returning attributes of
33651         Internal_Source_Ptr (which is wrong) with returning attributes of
33652         Internal_Source.
33653
33654 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
33655
33656         * sem_ch3.adb:
33657         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33658         used for implicit concatenation operators.
33659         Code cleanup.
33660
33661         * sem_elab.adb:
33662         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33663         task bodies that are in the scope of a Suppress pragma.
33664         (Check_A Call): Use the flag to prevent spurious elaboration checks.
33665
33666         * sinfo.ads, sinfo.adb:
33667         New flag No_Elaboration_Check on function/procedure calls, to properly
33668         suppress checks on calls in task bodies that are within a local suppress
33669         pragma.
33670
33671         * exp_ch4.adb:
33672         (Expand_Concatenate_Other): Use the proper integer type for the
33673         expression for the upper bound, to avoid universal_integer computations
33674         when possible.
33675
33676 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
33677
33678         * .cvsignore: Delete.
33679
33680 2003-11-21  Andreas Schwab  <schwab@suse.de>
33681
33682         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33683
33684 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
33685
33686         * 5wsystem.ads: Enable zero cost exception.
33687
33688 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
33689
33690         * 5ztiitho.adb: Remove an unreferenced variable.
33691
33692 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
33693
33694         * adaint.c: For FreeBSD, use mkstemp.
33695
33696 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
33697
33698         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33699
33700 2003-11-21  Robert Dewar  <dewar@gnat.com>
33701
33702         * bld.adb: Remove useless USE of gnatvsn
33703
33704         * gnatchop.adb: Minor reformatting
33705         Clean up version handling to be more consistent
33706
33707         * gnatxref.adb: Minor reformatting
33708
33709         * gprcmd.adb: Minor reformatting
33710         Fix output of copyright to be more consistent with other tools
33711
33712 2003-11-21  Vincent Celier  <celier@gnat.com>
33713
33714         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33715
33716 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
33717
33718         * atree.adb (Initialize): Add initializations for global variables
33719         used in New_Copy_Tree.
33720
33721         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33722         Internal_Source_File as the actual).
33723         Put the set of statements creating Any_Character before the set of
33724         statements creating Any_Array to have Any_Character fully initialized
33725         when it is used in creating Any_Array.
33726
33727         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33728         not call Scan in case if the actual is Internal_Source_File
33729         Add 2003 to copyright note.
33730
33731         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33732         processing Internal_Source_File.
33733
33734         * types.ads: Add the constant Internal_Source_File representing the
33735         source buffer for artificial source-code-like strings created within
33736         the compiler (the definition of Source_File_Index is changed).
33737
33738 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
33739
33740         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33741         56system.ads: New file, FreeBSD version.
33742
33743 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
33744
33745         * Make-lang.in (ada.extraclean): Delete.
33746
33747 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
33748
33749         * gnatmem.adb: Clean up verbose output.
33750
33751         * gprcmd.adb: Change copyright to FSF.
33752
33753 2003-11-19  Vincent Celier  <celier@gnat.com>
33754
33755         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33756         and Version (ignored).
33757
33758         * symbols.ads: (Policy): New type
33759         (Initialize): New parameter Reference, Symbol_Policy and
33760         Library_Version.
33761         Remove parameter Force.
33762         Minor reformatting.
33763
33764         * snames.ads, snames.adbadb: New standard names
33765         Library_Reference_Symbol_File and Library_Symbol_Policy
33766
33767         * mlib-prj.adb:
33768         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33769         project.
33770
33771         * mlib-tgt.adb:
33772         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33773
33774         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33775
33776         * prj.adb: (Project_Empty): New component Symbol_Data
33777
33778         * prj.ads: (Policy, Symbol_Record): New types
33779         (Project_Data): New component Symbol_Data
33780
33781         * prj-attr.adb:
33782         New attributes Library_Symbol_File, Library_Symbol_Policy and
33783         Library_Reference_Symbol_File.
33784
33785         * prj-nmsc.adb:
33786         (Ada_Check): When project is a Stand-Alone library project, process
33787         attribute Library_Symbol_File, Library_Symbol_Policy and
33788         Library_Reference_Symbol_File.
33789
33790         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33791         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33792         5sml-tgt.adb (Build_Dynamic_Library): New parameter
33793         Symbol_Data (ignored).
33794
33795         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33796         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33797         functions Option_File_Name and Version_String. Set new options of
33798         gnatsym related to symbol file, symbol policy and reference symbol
33799         file.
33800
33801         * 5vsymbol.adb:
33802         Extensive modifications to take into account the reference symbol file,
33803         the symbol policy, the library version and to put in the symbol file the
33804         minor and major IDs.
33805
33806         * bld.adb (Process_Declarative_Items): Put second argument of
33807         gprcmd to_absolute between single quotes, to avoid problems with
33808         Windows.
33809
33810         * bld-io.adb: Update Copyright notice.
33811         (Flush): Remove last character of a line, if it is a back slash, to
33812         avoid make problems.
33813
33814         * gnatsym.adb:
33815         Implement new scheme with reference symbol file and symbol policy.
33816
33817         * g-os_lib.ads: (Is_Directory): Clarify comment
33818
33819 2003-11-19  Robert Dewar  <dewar@gnat.com>
33820
33821         * atree.adb: Move New_Copy_Tree global variables to head of package
33822
33823         * errout.adb: Minor reformatting
33824
33825 2003-11-19  Javier Miranda  <miranda@gnat.com>
33826
33827         * sem_ch4.adb: (Diagnose_Call): Improve error message.
33828         Add reference to Ada0Y (AI-50217)
33829
33830         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33831         sem_util.adb: Add reference to AI-50217
33832
33833         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33834
33835         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33836
33837         * sem_aggr.adb: Complete documentation of AI-287 changes
33838
33839         * par-ch4.adb: Document previous changes.
33840
33841         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33842         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33843         Ada0Y (AI-50217)
33844
33845         * exp_aggr.adb: Add references to AI-287 in previous changes
33846
33847 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
33848
33849         * exp_ch6.adb:
33850         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33851         in the rewriting is the result of an inlined call.
33852
33853         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33854         parameter is a type conversion, use original node to construct the
33855         post-call assignment, because expression may have been rewritten, e.g.
33856         if it is a packed array.
33857
33858         * sem_attr.adb:
33859         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33860         body, just as it is in an instance.
33861         Categorization routines
33862
33863         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33864         Instantiate_Object): Set proper sloc reference for message on missing
33865         actual.
33866
33867 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
33868
33869         * Makefile.in: Add FreeBSD libgnat pairs.
33870
33871         * usage.adb: Fix typo in usage message.
33872
33873 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
33874
33875         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33876         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33877         pragma Thread_Body.
33878         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33879
33880         * s-thread.adb: This file is now a dummy implementation of
33881         System.Thread.
33882
33883 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
33884
33885         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33886
33887 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
33888
33889         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33890         instanciation references in the parent type description.
33891
33892 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33893
33894         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33895
33896         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33897         TYPE_PRECISION directly from esize.
33898
33899 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
33900
33901         * cstreams.c:
33902         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33903
33904         * init.c: Initialization routines for FreeBSD
33905
33906         * link.c: Link info for FreeBSD
33907
33908         * sysdep.c: Add the case of FreeBSD
33909
33910 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
33911
33912         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33913         already called in System.Threads.
33914
33915         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33916         environment task, as it has been moved to System.Threads.Initialization.
33917
33918 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
33919
33920         * adaint.c (__gnatlib_install_locks): Only reference
33921         __gnat_install_locks on VMS, since other platforms can avoid using
33922         --enable-threads=gnat
33923
33924 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33925
33926         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33927
33928         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33929         TYPE_PACKED_ARRAY_TYPE_P.
33930         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33931
33932         Part of PR ada/12806
33933         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33934         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33935
33936 2003-11-17  Vincent Celier  <celier@gnat.com>
33937
33938         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33939         to False.
33940         Do not set exit status to Failure when Warning is True.
33941         (Gnatchop): Make errors "no compilation units found" and
33942         "no source files written" warnings only.
33943
33944         * make.adb (Gnatmake): When using a project file, set
33945         Look_In_Primary_Dir to False.
33946         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33947         and Local_Configuration_Pragmas in the project where they are declared
33948         not an extending project which might have inherited them.
33949
33950         * osint.adb (Locate_File): If Name is already an absolute path, do not
33951         look for a directory.
33952
33953         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33954         -gnats (Check_Syntax) is used, issue only a warning, not an error.
33955
33956         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33957         in objects of type Variable_Value.
33958
33959         * prj.ads: (Variable_Value): New component Project
33960
33961         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33962         is in a project extended by Project.
33963
33964         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33965         Project of Variable_Values to this new parameter value.
33966         (Expression): Set component Project of Variable_Values.
33967         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33968         Set the component Project in array elements.
33969
33970 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
33971
33972         * errout.adb: (Initialize): Add initialization for error nodes.
33973
33974         * sem_ch12.adb (Initialize): Add missing initializations for
33975         Exchanged_Views and Hidden_Entities.
33976
33977 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
33978
33979         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33980         already instantiated tree for use in subsequent inlining.
33981         (Analyze_Associations, Instantiate_Formal_Subprogram,
33982         Instantiate_Object): improve error message for mismatch in
33983         instantiations.
33984
33985         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33986         instantiations of subprograms declared in instances.
33987
33988 2003-11-17  Javier Miranda  <miranda@gnat.com>
33989
33990         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33991         executed only under the Extensions_Allowed flag.
33992
33993 2003-11-17  Robert Dewar  <dewar@gnat.com>
33994
33995         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33996         zeroes suppressed.
33997         (Address_Image): Fix bug of returning 0x instead of 0x0
33998         Minor reformatting (function specs).
33999
34000         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
34001         (missed case of 33-63)
34002
34003         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
34004
34005         * s-thread.adb: Add comments for pragma Restriction
34006
34007         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
34008         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
34009
34010 2003-11-17  Ed Falis  <falis@gnat.com>
34011
34012         * s-thread.adb: Added No_Tasking restriction for this implementation.
34013
34014 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
34015
34016         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
34017         instanciation references in the parent type description.
34018
34019 2003-11-17  GNAT Script  <nobody@gnat.com>
34020
34021         * Make-lang.in: Makefile automatically updated
34022
34023 2003-11-16  Jason Merrill  <jason@redhat.com>
34024
34025         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
34026         and TAGS files that include them for each front end.
34027
34028 2003-11-14  Andreas Jaeger  <aj@suse.de>
34029
34030         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
34031         is the canonical version.
34032         * misc.c (gnat_handle_option): Likewise.
34033
34034         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
34035
34036         * 5nsystem.ads: New file for x86_64-linux-gnu.
34037
34038 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
34039
34040         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
34041
34042         * comperr.adb: Fix logic in previous change.
34043
34044 2003-11-13  Vincent Celier  <celier@gnat.com>
34045
34046         * 5bml-tgt.adb (Build_Dynamic_Library): Use
34047         Osint.Include_Dir_Default_Prefix instead of
34048         Sdefault.Include_Dir_Default_Name.
34049
34050         * gnatlbr.adb: Update Copyright notice
34051         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
34052         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
34053         instead of Sdefault.Object_Dir_Default_Name
34054
34055         * gnatlink.adb:
34056         (Process_Binder_File): Never suppress the option following -Xlinker
34057
34058         * mdll-utl.adb:
34059         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
34060         Sdefault.Object_Dir_Default_Name.
34061
34062         * osint.ads, osint.adb:
34063         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
34064         Minor reformatting.
34065
34066         * vms_conv.ads: Minor reformating
34067         Remove GNAT STANDARD and GNAT PSTA
34068
34069         * vms_conv.adb:
34070         Allow GNAT MAKE to have several files on the command line.
34071         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
34072         Sdefault.Object_Dir_Default_Name.
34073         Minor Reformating
34074         Remove data for GNAT STANDARD
34075
34076         * vms_data.ads:
34077         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
34078         Remove data for GNAT STANDARD
34079         Remove options and documentation for -gnatwb/-gnatwB: these warning
34080         options no longer exist.
34081
34082 2003-11-13  Ed Falis  <falis@gnat.com>
34083
34084         * 5zthrini.adb: (Init_RTS): Made visible
34085
34086         * 5zthrini.adb:
34087         (Register): Removed unnecessary call to taskVarGet that checked whether
34088          an ATSD was already set as a task var for the argument thread.
34089
34090         * s-thread.adb:
34091         Updated comment to reflect that this is a VxWorks version
34092         Added context clause for System.Threads.Initialization
34093         Added call to System.Threads.Initialization.Init_RTS
34094
34095 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
34096
34097         * 5zthrini.adb:
34098         (Init_RTS): New procedure, for the initialization of the run-time lib.
34099
34100         * s-thread.adb:
34101         Remove dependancy on System.Init, so that this file can be used in the
34102         AE653 sequential run-time lib.
34103
34104 2003-11-13  Robert Dewar  <dewar@gnat.com>
34105
34106         * bindgen.adb: Minor reformatting
34107
34108 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
34109
34110         * checks.adb:
34111         (Apply_Discriminant_Check): Do no apply check if target type is derived
34112         from source type with no applicable constraint.
34113
34114         * lib-writ.adb:
34115         (Ensure_System_Dependency): Do not apply the style checks that may have
34116         been specified for the main unit.
34117
34118         * sem_ch8.adb:
34119         (Find_Selected_Component): Further improvement in error message, with
34120         RM reference.
34121
34122         * sem_res.adb:
34123         (Resolve): Handle properly the case of an illegal overloaded protected
34124         procedure.
34125
34126 2003-11-13  Javier Miranda  <miranda@gnat.com>
34127
34128         * exp_aggr.adb:
34129         (Has_Default_Init_Comps): New function to check the presence of
34130         default initialization in an aggregate.
34131         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
34132         extension aggregate of a limited record. In addition, a new formal
34133         was added to do not initialize the record controller (if any) during
34134         this recursive expansion of ancestors.
34135         (Init_Controller): Add support for limited record components.
34136         (Expand_Record_Aggregate): In case of default initialized components
34137         convert the aggregate into a set of assignments.
34138
34139         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
34140         describing the new syntax.
34141         Nothing else needed to be done because this subprogram delegates part of
34142         its work to P_Precord_Or_Array_Component_Association.
34143         (P_Record_Or_Array_Component_Association): Give support to the new
34144         syntax for default initialization of components.
34145
34146         * sem_aggr.adb:
34147         (Resolve_Aggregate): Relax the strictness of the frontend in case of
34148         limited aggregates.
34149         (Resolve_Record_Aggregate): Give support to default initialized
34150         components.
34151         (Get_Value): In case of default initialized components, duplicate
34152         the corresponding default expression (from the record type
34153         declaration). In case of default initialization in the *others*
34154         choice, do not check that all components have the same type.
34155         (Resolve_Extension_Aggregate): Give support to limited extension
34156         aggregates.
34157
34158         * sem_ch3.adb:
34159         (Check_Initialization): Relax the strictness of the front-end in case
34160         of aggregate and extension aggregates. This test is now done in
34161         Get_Value in a per-component manner.
34162
34163         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
34164         expression corresponds to a limited aggregate. This test is now done
34165         in Get_Value.
34166
34167         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
34168         Box_Present flag.
34169
34170         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
34171         present in an N_Component_Association node
34172
34173 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
34174
34175         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
34176         type-conformant entry only if they are homographs.
34177
34178 2003-11-13  GNAT Script  <nobody@gnat.com>
34179
34180         * Make-lang.in: Makefile automatically updated
34181
34182 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34183
34184         * adadecode.c: Use <> form of include for ctype.h.
34185         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
34186
34187 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34188
34189         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
34190         Works around PR middle-end/6552.
34191
34192 2003-11-10  Ed Falis  <falis@gnat.com>
34193
34194         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
34195
34196         * 5zinit.adb: (Install_Handler): Moved back to spec
34197         (Install_Signal_Handlers): Deleted
34198
34199         * 5zthrini.adb: Added context clause for System.Storage_Elements
34200         (Register): Only handles creation of taskVar; initialization moved to
34201         Thread_Body_Enter.
34202         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
34203         Added declaration of environment task secondary stack and
34204         initialization.
34205
34206         * s-thread.adb: Implement bodies for thread body processing
34207
34208         * s-thread.ads:
34209         Added comment identifying supported targets for pragma Thread_Body.
34210
34211 2003-11-10  Pascal Obry  <obry@gnat.com>
34212
34213         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
34214         GNAT_MAX_PATH_LEN.
34215
34216         * s-fileio.adb:
34217         (Open): Properly check for string length before copying into the buffer.
34218         Raises Name_Error if buffer is too small. Note that this was a potential
34219         buffer overflow.
34220
34221 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
34222
34223         * bindgen.adb, comperr.adb: Code clean ups.
34224         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
34225
34226 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
34227
34228         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
34229
34230 2003-11-10  Vincent Celier  <celier@gnat.com>
34231
34232         * gprcmd.adb:
34233         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
34234         installation.
34235
34236         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
34237
34238         * prj.adb: (Project_Empty): Add new boolean component Virtual
34239
34240         * prj.ads: (Virtual_Prefix): New constant string
34241         (Project_Data): New boolean component Virtual
34242
34243         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
34244         a library project is extended by a virtual extending project.
34245
34246         * prj-part.adb:
34247         Modifications throughout to implement extending-all project, including:
34248         (Virtual_Hash, Processed_Hash): New hash tables
34249         (Create_Virtual_Extending_Project): New procedure
34250         (Look_For_Virtual_Projects_For): New procedure
34251
34252         * prj-proc.adb:
34253         (Process): After checking the projects, if main project is an
34254         extending-all project, set the object directory of all virtual extending
34255         project to the object directory of the main project.
34256         Adjust error message when a virtual extending project has the same
34257         object directory as an project being extended.
34258         (Recursive_Process): If name starts with the virtual prefix, set Virtual
34259         to True in the project data.
34260
34261         * prj-tree.adb:
34262         (Default_Project_Node): Add new boolean component Extending_All
34263         (Is_Extending_All): New function
34264         (Set_Is_Extending_All): New procedure
34265
34266         * prj-tree.ads: (Is_Extending_All): New function
34267         (Set_Is_Extending_All): New procedure
34268         (Project_Node_Record): New boolean component Extending_All
34269
34270         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
34271
34272         * vms_data.ads:
34273         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
34274
34275         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
34276         "gprcmd prefix" to define it.
34277
34278 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
34279
34280         * einfo.ads: Fix a typo and remove an extraneous word in comments.
34281
34282         * lib-load.adb:
34283         (Create_Dummy_Package_Unit): Set the scope of the entity for the
34284         created dummy package to Standard_Standard, not to itself, to
34285         defend other parts of the front-end against encoutering a cycle in
34286         the scope chain.
34287
34288         * sem_ch10.adb:
34289         (Analyze_With_Clause): When setting the entities for the successive
34290         N_Expanded_Names that constitute the name of a child unit, do not
34291         attempt to go further than Standard_Standard in the chain of scopes.
34292         This case arises from the placeholder units created by
34293         Create_Dummy_Package_Unit in the case of a with_clause for a
34294         nonexistent child unit.
34295
34296 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
34297
34298         * exp_ch6.adb:
34299         (Expand_Thread_Body): Place subprogram on scope stack, so that new
34300         declarations are given the proper scope.
34301
34302         * sem_ch13.adb:
34303         (Check_Expr_Constants): Reject an expression that contains a constant
34304         created during expansion, and that appears after the object to which
34305         the address clause applies.
34306
34307         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
34308         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
34309         that uses 'Range of a function call with controlled components, so
34310         that the function result can be finalized before starting the loop.
34311
34312         * sem_ch8.adb:
34313         (Find_Selected_Component): Improve error message when prefix is
34314         an implicit dereference of an incomplete type.
34315
34316 2003-11-10  Robert Dewar  <dewar@gnat.com>
34317
34318         * opt.ads: New Print_Standard flag for -gnatS switch
34319
34320         * sem_ch13.adb: Remove some additional checks for unaligned arrays
34321
34322         * cstand.adb (Create_Standard): Print out package standard if -gnatS
34323         switch set
34324
34325         * debug.adb: Update doc for -gnatds to discuss relationship with new
34326         -gnatS flag
34327
34328         * sinfo.adb: Add new field Entity_Or_Associated_Node
34329
34330         * sinfo.ads: Add new field Entity_Or_Associated_Node
34331         Update documentation for Associated_Node and Entity fields to clarify
34332         relationship and usage.
34333
34334         * sprint.adb:
34335         (Write_Id): Properly process Associated_Node field in generic template
34336
34337         * switch-c.adb:
34338         Recognize new -gnatS switch for printing package Standard
34339         This replaces gnatpsta
34340
34341         * usage.adb:
34342         Add line for  new -gnatS switch for printing package Standard
34343         This replaces gnatpsta
34344
34345 2003-11-10  Andreas Jaeger  <aj@suse.de>
34346
34347         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34348         integer.
34349
34350 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34351
34352         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34353         by gnat1.
34354
34355 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34356
34357         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34358         no longer needed.
34359
34360         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34361
34362         * sysdep.c: Add handling of cygwin.
34363
34364 2003-11-10  GNAT Script  <nobody@gnat.com>
34365
34366         * Make-lang.in: Makefile automatically updated
34367
34368 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34369
34370         PR 12950
34371         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34372         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34373         Replace GNAT_ROOT by GCC_ROOT.
34374
34375         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34376
34377 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
34378
34379         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34380         and update for changed meaning of GET_MODE_BITSIZE.
34381
34382 2003-11-04  Doug Rupp  <rupp@gnat.com>
34383
34384         * sysdep.c: Problem discovered during IA64 VMS port.
34385         [VMS] #include <unixio.h> to get proper prototypes.
34386
34387         * adaint.c:
34388         Issues discovered/problems fixed during IA64 VMS port.
34389         [VMS] #define _POSIX_EXIT for proper semantics.
34390         [VMS] #include <unixio.h> for proper prototypes.
34391         [VMS] (fork): #define IA64 version.
34392         (__gnat_os_exit): Remove unnecessary VMS specific code.
34393
34394 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34395
34396         Part of PR ada/12806
34397         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34398         tree, not integer.
34399
34400         * decl.c:
34401         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34402         not integer.
34403
34404         * targtyps.c, decl.c, misc.c,
34405         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34406         routines to work around change in FP sizing semantics in GCC.
34407
34408         * utils.c:
34409         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34410
34411         * gigi.h: (enumerate_modes): New function.
34412
34413         * Make-lang.in: (ada/misc.o): Add real.h.
34414
34415         * misc.c: (enumerate_modes): New function.
34416
34417 2003-11-04  Robert Dewar  <dewar@gnat.com>
34418
34419         * 3vtrasym.adb: Minor reformatting
34420         Use terminology encoded/decoded name, rather than C++ specific notion
34421         of mangling (this is the terminology used throughout GNAT).
34422
34423         * einfo.h: Regenerated
34424
34425         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34426
34427         * exp_ch6.adb:
34428         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34429
34430         * par-prag.adb: Add dummy entry for Thread_Body pragma
34431
34432         * rtsfind.ads:
34433         Add entries for System.Threads entities for thread body processing
34434
34435         * sem_attr.adb:
34436         (Analyze_Pragma, Access attributes): Check these are not applied to a
34437         thread body, since this is not permitted
34438
34439         * sem_prag.adb: Add processing for Thread_Body pragma.
34440         Minor comment fix.
34441
34442         * sem_res.adb:
34443         (Resolve_Call): Check for incorrect attempt to call a thread body
34444          procedure with a direct call.
34445
34446         * snames.ads, snames.adb: Add entry for Thread_Body pragma
34447         Add names associated with thread body expansion
34448
34449         * snames.h: Add entry for Thread_Body pragma
34450
34451         * s-thread.adb: Add entries for thread body processing
34452         These are dummy bodies so far
34453
34454         * s-thread.ads: Add documentation on thread body handling.
34455         Add entries for thread body processing.
34456
34457 2003-11-04  Javier Miranda  <miranda@gnat.com>
34458
34459         * sem_ch10.adb:
34460         (Build_Limited_Views): Return after posting an error in case of limited
34461         with_clause on subprograms, generics, instances or generic renamings
34462         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34463         on subprograms, generics, instances or generic renamings
34464
34465 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
34466
34467         * raise.c (setup_to_install): Correct mistake in last revision; two
34468         arguments out of order.
34469
34470         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34471         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34472         notice, missed in previous change.
34473         Remove trailing blanks and other style errors introduced in previous
34474         change.
34475
34476 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
34477
34478         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34479         rid of the wrapper for a LJM type, ensuring we don't do that if the
34480         field is addressable.  This avoids potential low level type view
34481         mismatches later on, for instance in a by-reference argument passing
34482         process.
34483
34484 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34485
34486         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34487         aligned at byte boundary.
34488
34489 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
34490
34491         * decl.c (components_to_record): Do not delete the empty variants from
34492         the end of the union type.
34493
34494 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
34495
34496         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34497         operation for a derived type, an explicit declaration may use a local
34498         subtype of Boolean.
34499
34500 2003-11-04  Vincent Celier  <celier@gnat.com>
34501
34502         * make.adb (Gnatmake): Allow main sources on the command line with a
34503         library project when it is only for compilation (no binding or
34504         linking).
34505
34506 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34507
34508         * Makefile.in: Remove many duplicate variables.
34509
34510 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
34511
34512         * Make-lang.in (dvi): Move targets to $(docobjdir).
34513         (gnat_ug_vms.dvi): Simplify rule and adjust target.
34514         (gnat_ug_wnt.dvi): Likewise.
34515         (gnat_ug_unx.dvi): Likewise.
34516         (gnat_ug_vxw.dvi): Likewise.
34517         (gnat_rm.dvi): Likewise.
34518         (gnat-style.dvi): Likewise.
34519
34520 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34521
34522         * gigi.h: Missed commit from update for C90.
34523
34524 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34525
34526         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34527
34528 2003-10-31  Andreas Schwab  <schwab@suse.de>
34529
34530         * raise.c (get_action_description_for): Fix typo in last change.
34531
34532 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
34533
34534         PR ada/12761
34535         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34536         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34537
34538 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
34539
34540         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34541         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34542         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34543         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34544         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34545
34546 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
34547
34548         * 3vtrasym.adb:
34549         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34550         numbers when symbol name is too long.
34551
34552 2003-10-30  Ed Falis  <falis@gnat.com>
34553
34554         * g-signal.ads, g-signal.adb: New files
34555
34556         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34557
34558         * Makefile.rtl: Introduce GNAT.Signals
34559
34560 2003-10-30  Robert Dewar  <dewar@gnat.com>
34561
34562         * freeze.adb: Minor reformatting
34563
34564         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34565
34566         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34567         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34568         New handling of Id_Check parameter to improve recognition of keywords
34569         used as identifiers.
34570         Update copyright notice to include 2003
34571
34572 2003-10-29  Robert Dewar  <dewar@gnat.com>
34573
34574         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34575         sem_ch10.adb: Minor reformatting
34576
34577         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34578         (Expand_Assign_Record): Test right hand side for bit unaligned as well
34579
34580 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
34581
34582         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34583         Support for TBK$SYMBOLIZE-based symbolic traceback.
34584
34585 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
34586
34587         * exp_disp.adb:
34588         Revert previous change, that did not work well when pragma No_Run_Time
34589         was used in conjunction with a run-time other than ZFP.
34590
34591 2003-10-29  Vincent Celier  <celier@gnat.com>
34592
34593         * make.adb:
34594         (Gnatmake): When there are no Ada mains in attribute Main, disable the
34595          bind and link steps only is switch -z is not used.
34596
34597 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
34598
34599         * Makefile.generic: Remove duplicated setting of CC.
34600
34601         * Makefile.prolog: Set CC to gcc by default, to override make's
34602         default (cc).
34603
34604         * einfo.h: Regenerated.
34605
34606 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
34607
34608         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34609         current body, after compiling subunit.
34610
34611         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34612         when in deleted code, because gigi needs properly ordered freeze
34613         actions to annotate types.
34614
34615         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34616         prevent the premature freezing of record type that contains
34617         subcomponents with a private type that does not yet have a completion.
34618
34619 2003-10-29  Javier Miranda  <miranda@gnat.com>
34620
34621         * sem_ch12.adb:
34622         (Analyze_Package_Instantiation): Check that instances can not be used in
34623         limited with_clauses.
34624
34625         * sem_ch8.adb:
34626         (Analyze_Package_Renaming): Check that limited withed packages cannot
34627         be renamed. Improve text on error messages related to limited
34628         with_clauses.
34629
34630         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34631
34632         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34633         Update copyright notice.
34634
34635         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34636         (Install_Limited_Context_Clauses): New subprogram that isolates all the
34637         checks required for limited context_clauses and installs the limited
34638         view.
34639         (Install_Limited_Withed_Unit): Complete its documentation.
34640         (Analyze_Context): Check that limited with_clauses are only allowed in
34641         package specs.
34642         (Install_Context): Call Install_Limited_Context_Clauses after the
34643         parents have been installed.
34644         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34645         package as 'From_With_Type'; this mark indicates that the limited view
34646         is installed. Used to check bad usages of limited with_clauses.
34647         (Build_Limited_Views): Do not add shadow entities to the scope's list
34648         of entities. Do not add real entities to the Non_Limited_Views chain.
34649         Improve error notification.
34650         (Remove_Context_Clauses): Remove context clauses in two phases:
34651         limited views first and regular views later (to maintain the
34652         stack model).
34653         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34654         its visible entities.
34655
34656 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
34657
34658         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34659         with any type that Is_Fixed_Point_Type.
34660
34661         * sinfo.ads: Fix documentation for Associated_Node attribute.
34662
34663 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
34664
34665         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34666         both '-gnatc' and '-gnatt' are specified.
34667
34668         * atree.adb (Initialize): Add initialization for Node_Count (set to
34669         zero).
34670
34671 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34672
34673         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34674         do not consider as Pure.
34675
34676         Part of implementation of function-at-a-time:
34677
34678         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34679         (tree_transform): Add new argument to build_component_ref.
34680         (tree_transform, case N_Assignment_Statement): Make and return an
34681         EXPR_STMT.
34682         (tree_transform): If result IS_STMT, set flags and return it.
34683         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34684
34685         * utils2.c (build_simple_component_ref, build_component_ref): Add new
34686         arg, NO_FOLD_P.
34687         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34688         (build_allocator): Likewise.
34689
34690         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34691         Add new arg to build_component_ref.
34692         (maybe_unconstrained_array, unchecked_convert): Likewise.
34693
34694         * ada-tree.def (EXPR_STMT): New code.
34695
34696         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34697
34698         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34699         build_component_ref calls.
34700
34701         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34702
34703         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34704         (build_component_ref): Add new argument, NO_FOLD_P.
34705
34706 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
34707
34708         * Makefile.generic: Add missing substitution on object_deps handling.
34709
34710         PR ada/5909
34711         * Make-lang.in (check-ada): Enable ACATS test suite.
34712
34713 2003-10-27  Robert Dewar  <dewar@gnat.com>
34714
34715         * exp_ch3.adb:
34716         (Freeze_Array_Type): We do not need an initialization routine for types
34717         derived from String or Wide_String. They should be treated the same
34718         as String and Wide_String themselves. This caused problems with the
34719         use of Initialize_Scalars.
34720
34721         * exp_ch5.adb:
34722         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34723         composites. This allows use of component clauses that are not byte
34724         aligned.
34725
34726         * sem_prag.adb:
34727         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34728         is an attempt to pack an array of atomic objects.
34729
34730         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34731
34732 2003-10-27  Pascal Obry  <obry@gnat.com>
34733
34734         * g-dirope.adb:
34735         (Basename): Check for drive letters in a pathname only on DOS based OS.
34736
34737 2003-10-27  Vincent Celier  <celier@gnat.com>
34738
34739         * make.adb:
34740         (Gnatmake): When unable to change dir to the object dir, display the
34741         content of the parent dir of the obj dir, to try to understand why this
34742         happens.
34743
34744 2003-10-27  GNAT Script  <nobody@gnat.com>
34745
34746         * Make-lang.in: Makefile automatically updated
34747
34748 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
34749
34750         * sem_ch12.adb:
34751         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34752         should not be done in Save/Restore_Scope_Stack, because it is performed
34753         locally.
34754
34755         * sem_ch8.adb:
34756         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34757         whether use clauses should be removed/restored.
34758
34759         * sem_ch8.ads:
34760         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34761         whether use clauses should be removed/restored.
34762
34763 2003-10-26  Andreas Jaeger  <aj@suse.de>
34764
34765         * Makefile.in: Remove duplicated lines.
34766
34767 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34768
34769         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34770         minimize the differences with ACT tree.
34771
34772         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34773         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34774         Gnatvsn.Gnat_Static_Version_String to reduce differences between
34775         ACT and FSF trees.
34776
34777 2003-10-24  Pascal Obry  <obry@gnat.com>
34778
34779         PR ada/12014
34780         * adadecode.c (ostrcpy): New function.
34781         (__gnat_decode): Use ostrcpy of strcpy.
34782         (has_prefix): Set first parameter a const.
34783         (has_suffix): Set first parameter a const.
34784         Update copyright notice. Fix source name in header.
34785         Removes a trailing space.
34786
34787 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
34788
34789         * exp_disp.adb:
34790         Remove the test against being in No_Run_Time_Mode before generating a
34791         call to Register_Tag. It is redundant with the test against the
34792         availability of the function Register_Tag.
34793
34794 2003-10-24  Vincent Celier  <celier@gnat.com>
34795
34796         * g-catiio.adb: (Month_Name): Correct spelling of February
34797
34798         * make.adb: (Mains): New package
34799         (Initialize): Call Mains.Delete
34800         (Gnatmake): Check that each main on the command line is a source of a
34801         project file and, if there are several mains, each of them is a source
34802         of the same project file.
34803         (Gnatmake): When a foreign language is specified in attribute Languages,
34804         no main is specified on the command line and attribute Mains is not
34805         empty, only build the Ada main. If there is no Ada main, just compile
34806         the Ada sources and their closure.
34807         (Gnatmake): If a main is specified on the command line with directory
34808         information, check that the source exists and, if it does, that the path
34809         is the actual path of a source of a project.
34810
34811         * prj-env.adb:
34812         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34813         Full_Path is True, return the full path instead of the simple file name.
34814         (Project_Of): New function
34815
34816         * prj-env.ads:
34817         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34818         defaulted to False.
34819         (Project_Of): New function
34820
34821 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34822
34823         * Makefile.generic:
34824         Ensure objects of main project are always checked and rebuilt if needed.
34825         Set CC to gcc by default.
34826         Prepare new handling of link by creating a global archive (not activated
34827         yet).
34828
34829         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34830         stringt.h: Update copyright notice. Remove trailing blanks.
34831         Fix source name in header.
34832
34833 2003-10-24  Robert Dewar  <dewar@gnat.com>
34834
34835         * sem_ch12.adb: Minor reformatting
34836
34837         * sem_ch3.adb:
34838         Minor reformatting (including new function return style throughout)
34839
34840         * sem_ch3.ads:
34841         Minor reformatting (including new function return style throughout)
34842
34843 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34844
34845         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34846         stringt.h: Update copyright notice. Remove trailing blanks.
34847         Fix source name in header.
34848
34849 2003-10-24  GNAT Script  <nobody@gnat.com>
34850
34851         * Make-lang.in: Makefile automatically updated
34852
34853 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
34854
34855         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34856         stringt.h: Convert to ISO C90 declarations and definitions.
34857
34858 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
34859
34860         PR ada/11978
34861         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34862         External_Tag attribute definition clauses.
34863
34864 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
34865
34866         PR ada/7613
34867         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34868         child unit, generate a fully qualified name to avoid spurious errors
34869         when the context contains renamings of different child units with
34870         the same simple name.
34871
34872         * exp_dbug.ads: Add documentation on name qualification for renamings
34873         of child units.
34874
34875 2003-10-23  Robert Dewar  <dewar@gnat.com>
34876
34877         * g-regpat.ads, g-regpat.adb: Minor reformatting
34878
34879 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
34880
34881         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34882
34883 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34884
34885         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34886         Machine call.
34887
34888         * urealp.h: (Machine): Update to proper definition.
34889
34890 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
34891
34892         * init.c, adaint.c: Minor reformatting.
34893
34894 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
34895
34896         * adaint.c (w32_epoch_offset): Define static const at file level.
34897         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34898         rather than t_create, t_access in call to GetFileTime. Use union
34899         to convert between FILETIME and  unsigned long long.
34900         (__gnat_file_time_name): Test for invalid file handle.
34901         (__gnat_set_filetime_name): Support win32 targets using
34902         w32api SetFileTime.
34903
34904 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
34905
34906         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34907
34908         * ctrl_c.c (__gnat_int_handler): Remove declaration.
34909
34910         * decl.c (creat_concat_name):  Const-ify prefix.
34911
34912         * adaint.c: Include ctype.h if __MINGW32__.
34913         (__gnat_readlink): Mark arguments as possibly unused.
34914         (__gnat_symlink): Likewise.
34915         (__gnat_is_symbolic_link): Likewise.
34916         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
34917         declaration
34918         (__gnat_file_time_name): Don't declare struct stat statbuf when
34919         not needed.
34920         (__gnat_is_absolute_path): Add parenthesis around condition of
34921         'if' statement to avoid warning.
34922         (__gnat_plist_init): Specify void as parameter.
34923         (plist_enter): Likewise.
34924         (plist_leave): Likewise.
34925         (remove_handle): Make static. Initialize prev.
34926
34927 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34928
34929         PR ada/10110
34930         * Makefile.in: Disable build of gnatpsta.
34931         * cstreams.c (__gnat_full_name): Minor improvements and clean up
34932         of previous change.
34933
34934 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34935
34936         * tracebak.c (MAX): Avoid redefinition warning.
34937
34938         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34939         Change msg to const char *.
34940         (__gnat_install_handler): Remove ss, unused.
34941         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34942         to const char *.
34943         * cstreams.c (__gnat_full_name): Declare p only when used.
34944         (__gnat_full_name) [sgi] Return buffer.
34945
34946 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34947
34948         * mingw32.h: New file.
34949         * gnat_wrapper.adb: New file.
34950
34951 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
34952
34953         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34954         string match a pre compiled regular expression (the corresponding
34955         version of the function working on a raw regular expression)
34956         Fix typos in various comments
34957         Update copyright notice in spec
34958
34959 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
34960
34961         * exp_ch3.adb:
34962         (Component_Needs_Simple_Initialization): Return False when the type is a
34963         packed bit array. Revise spec comments to document this case.
34964
34965         * exp_prag.adb:
34966         (Expand_Pragma_Import): Set any expression on the imported object to
34967         empty to avoid initializing imported objects (in particular this
34968         covers the case of zero-initialization of bit arrays).
34969         Update copyright notice.
34970
34971 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
34972
34973         * sem_ch12.adb:
34974         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34975         a subunit is missing.
34976         (Instantiate_Subprogram_Body): If body of function is missing, set type
34977         of return expression explicitly in dummy body, to prevent cascaded
34978         errors when a subunit is missing.
34979         Fixes PR 5677.
34980
34981         * sem_ch3.adb:
34982         (Access_Subprogram_Declaration): Verify that return type is valid.
34983         Fixes PR 8693.
34984
34985         * sem_elab.adb:
34986         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34987         generic.
34988         Fixes PR 12318.
34989
34990         * sem_util.adb:
34991         (Corresponding_Discriminant): If the scope of the discriminant is a
34992         private type without discriminant, use its full view.
34993         Fixes PR 8247.
34994
34995 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
34996
34997         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34998         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34999         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
35000         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
35001         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
35002         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
35003         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
35004         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
35005         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
35006         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
35007         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
35008         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
35009         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
35010         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
35011         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
35012         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
35013         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
35014         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
35015         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
35016         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
35017         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
35018         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
35019         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
35020         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
35021         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
35022         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
35023         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
35024         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
35025         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
35026         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
35027         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
35028         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
35029         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
35030         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
35031         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
35032         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
35033         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
35034         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
35035         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
35036         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
35037         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
35038         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
35039         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
35040         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
35041         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
35042         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
35043         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
35044         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
35045         vms_conv.ads, vms_conv.adb, vms_data.ads,
35046         vxaddr2line.adb: Files added. Merge with ACT tree.
35047
35048         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
35049         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
35050         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
35051         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
35052         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
35053         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
35054         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35055         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
35056         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
35057         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
35058
35059         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35060         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35061         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35062         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35063         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
35064         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
35065         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35066         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
35067         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
35068         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
35069         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
35070         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
35071         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
35072         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
35073         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
35074         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
35075         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
35076         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35077         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
35078         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
35079         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
35080         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
35081         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
35082         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
35083         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
35084         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
35085         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
35086         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
35087         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
35088         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
35089         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
35090         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
35091         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
35092         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
35093         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
35094         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
35095         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
35096         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
35097         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
35098         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
35099         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
35100         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
35101         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
35102         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
35103         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
35104         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
35105         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
35106         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
35107         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
35108         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
35109         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
35110         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
35111         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
35112         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
35113         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
35114         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
35115         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
35116         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
35117         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
35118         checks.adb, checks.ads, cio.c, comperr.adb,
35119         comperr.ads, csets.adb, cstand.adb, cstreams.c,
35120         debug_a.adb, debug_a.ads, debug.adb, decl.c,
35121         einfo.adb, einfo.ads, errout.adb, errout.ads,
35122         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
35123         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
35124         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
35125         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
35126         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
35127         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
35128         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
35129         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
35130         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
35131         fe.h, fmap.adb, fmap.ads, fname.adb,
35132         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
35133         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
35134         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
35135         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35136         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35137         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35138         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
35139         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
35140         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
35141         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
35142         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
35143         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
35144         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
35145         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
35146         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
35147         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
35148         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
35149         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
35150         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
35151         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
35152         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
35153         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
35154         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
35155         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
35156         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
35157         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
35158         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
35159         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
35160         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
35161         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
35162         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
35163         layout.adb, lib.adb, lib.ads, lib-list.adb,
35164         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
35165         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35166         link.c, live.adb, make.adb, make.ads,
35167         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
35168         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
35169         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
35170         misc.c, mkdir.c, mlib.adb, mlib.ads,
35171         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
35172         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
35173         namet.adb, namet.ads, namet.h, nlists.ads,
35174         nlists.h, nmake.adt, opt.adb, opt.ads,
35175         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
35176         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
35177         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35178         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
35179         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
35180         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
35181         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
35182         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
35183         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
35184         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
35185         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
35186         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
35187         prj-util.adb, prj-util.ads, raise.c, raise.h,
35188         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
35189         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
35190         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
35191         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
35192         scans.ads, scn.adb, scn.ads, s-crc32.adb,
35193         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
35194         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
35195         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
35196         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
35197         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
35198         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35199         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35200         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
35201         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
35202         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
35203         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
35204         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
35205         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
35206         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
35207         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35208         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
35209         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
35210         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
35211         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
35212         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
35213         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
35214         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
35215         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
35216         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
35217         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
35218         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
35219         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
35220         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
35221         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
35222         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
35223         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
35224         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
35225         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
35226         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
35227         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
35228         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
35229         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
35230         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
35231         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
35232         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
35233         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
35234         stringt.adb, stringt.ads, stringt.h, style.ads,
35235         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
35236         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
35237         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
35238         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
35239         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
35240         table.adb, table.ads, targparm.adb, targparm.ads,
35241         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
35242         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
35243         ttypes.ads, types.ads, types.h, uintp.adb,
35244         uintp.ads, uintp.h, uname.adb, urealp.adb,
35245         urealp.ads, urealp.h, usage.adb, utils2.c,
35246         utils.c, validsw.adb, validsw.ads, widechar.adb,
35247         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
35248         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
35249         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
35250         gnatvsn.ads: Merge with ACT tree.
35251
35252         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
35253
35254 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
35255
35256         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
35257         (gnat_ug_vmx.info): Likewise.
35258         (gnat_ug_vxw.info): Likewise.
35259         (gnat_ug_wnt.info): Likewise.
35260         (gnat_rm.info): Likewise.
35261         (gnat-style.info): Likewise.
35262
35263         * Make-lang.in (ada.install-info): Remove target.
35264         (info): New target.
35265         (install-info): Likewise.
35266         (gnat_ug_unx.info): Simplify rule.
35267         (gnat_ug_vmx.info): Likewise.
35268         (gnat_ug_vxw.info): Likewise.
35269         (gnat_ug_wnt.info): Likewise.
35270         (gnat_rm.info): Likewise.
35271         (gnat-style.info): Likewise.
35272
35273 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35274
35275         * Make-lang.in: Replace uses of $(target_alias) with
35276         $(target_noncanonical).
35277         * ada/Makefile.in: Remove unused mention of $(target_alias).
35278
35279 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
35280
35281         * Make-lang.in (ada.info): Replace with ...
35282         (info): ... this.
35283         (ada.dvi): Replace with ...
35284         (dvi): ... this.
35285
35286 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
35287
35288         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
35289         initialize dconstp5 and dconstmp5.
35290
35291 2003-09-28  Richard Henderson  <rth@redhat.com>
35292
35293         * trans.c (tree_transform): Update call to expand_asm_operands.
35294
35295 2003-09-21  Richard Henderson  <rth@redhat.com>
35296
35297         * trans.c, utils.c: Revert.
35298
35299 2003-09-21  Richard Henderson  <rth@redhat.com>
35300
35301         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
35302         change to const.
35303
35304 2003-09-04  Michael Matz  <matz@suse.de>
35305
35306         * misc.c: Include "target.h".
35307         * Make-lang.in (misc.o): Add dependency on target.h.
35308
35309 2003-09-03  DJ Delorie  <dj@redhat.com>
35310
35311         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
35312         hook.
35313
35314 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
35315
35316         * Makefile.in: Update substitutions to match changes to
35317         configure.  Use include directives instead of @-insertions
35318         to read in host and target fragments.  Add a rule to
35319         regenerate ada/Makefile.
35320
35321 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
35322
35323         * lang-options.h: Remove.
35324         * lang.opt: Add help text.
35325
35326 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
35327
35328         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35329         calls.
35330
35331 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
35332
35333         * misc.c (gnat_handle_option): Don't handle filenames.
35334
35335 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35336
35337         * Make-lang.in: Replace PWD with PWD_COMMAND.
35338         * Makefile.adalib: Likewise.
35339         * Makefile.in: Likewise.
35340
35341 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
35342
35343         * misc.c (gnat_argv): Revert last change.
35344         (gnat_handle_option, gnat_init_options): Copy arguments.
35345
35346 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
35347
35348         * misc.c (gnat_argv): Make const.
35349
35350 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35351
35352         * misc.c (save_argc, save_argv): Keep non-static!
35353
35354 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35355
35356         * misc.c (save_argc, save_argv): Make static.
35357         (gnat_init_options): New prototype.
35358         (gnat_init_options): Update.
35359
35360 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
35361
35362         * gnat_ug.texi: Remove unlikely characters from @vars.
35363         * gnat_ug_vms.texi: Regenerate.
35364
35365 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
35366
35367         * misc.c (record_code_position): Adjust emit_note call.
35368
35369 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
35370
35371         * misc.c (gnat_handle_option): Don't check for missing arguments.
35372
35373 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
35374
35375         * utils.c (end_subprog_body): Adjust expand_function_end call.
35376
35377 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
35378
35379         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35380         Bind_Main_Program.
35381
35382 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
35383
35384         * lang.opt: Declare Ada.
35385         * misc.c (gnat_init_options): Update.
35386
35387 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
35388
35389         * utils.c (begin_subprog_body): Adjust init_function_start call.
35390
35391 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35392
35393         * Make-lang.in: Update to use options.c and options.h.
35394         * misc.c: Include options.h not aoptions.h.
35395         (gnat_handle_option): Abort on unrecognized switch.
35396         (gnat_init_options): Request Ada switches.
35397
35398 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35399
35400         * lang.opt: Add -Wall.
35401         * misc.c (gnat_handle_option): Handle it.
35402
35403 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
35404
35405         * misc.c (gnat_handle_option): Fix warnings.
35406
35407 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
35408
35409         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35410
35411 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
35412
35413         * Make-lang.in: Update to handle command-line options.
35414         * lang.opt: New file.
35415         * misc.c: Include aoptions.h.
35416         (cl_options_count, cl_options): Remove.
35417         (gnat_handle_option): New.
35418         (gnat_decode_option): Remove.
35419         (LANG_HOOKS_DECODE_OPTION): Remove.
35420         (LANG_HOOKS_HANDLE_OPTION): Override.
35421
35422 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
35423
35424         * init.c, misc.c, trans.c, utils.c: Remove dead code.
35425
35426 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
35427
35428         * Makefile.in: Replace "host_canonical" with "host" for autoconf
35429         substitution.
35430
35431 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
35432
35433         * Make-lang.in: Update.
35434         * misc.c: Include opts.h. Define cl_options_count and cl_options.
35435
35436 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
35437
35438         * misc.c (gnat_init_options): Update.
35439
35440 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35441
35442         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35443         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35444         __attribute__ ((__unused__)).
35445
35446 2003-06-05  Jan Hubicka  <jh@suse.cz>
35447
35448         * Make-lang.in:  Add support for stageprofile and stagefeedback
35449
35450 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35451
35452         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35453         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35454
35455 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
35456
35457         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35458         Remove non-VMS directive.
35459         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35460         alternatives.
35461         (Examples of gnatls Usage): Remove VMS alternative.
35462
35463 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
35464
35465         PR ada/9953
35466         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35467         and turn ZCX_By_Default back to False since the underlying support
35468         is not quite there yet.
35469
35470 2003-06-01  Andreas Jaeger  <aj@suse.de>
35471
35472         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35473         and ROUND_TYPE_SIZE_UNIT.
35474
35475 2003-05-22   Geert Bosch  <bosch@gnat.com>
35476
35477         * gnat_rm.texi : Remove reference to Ada Core Technologies.
35478
35479 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
35480
35481         * trans.c (tree_transform): Use location_t and input_location
35482         directly.
35483         (build_unit_elab): Likewise.
35484         * utils.c (create_label_decl): Likewise.
35485
35486 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
35487
35488         * trans.c (tree_transform, build_unit_elab,
35489         set_lineno): Rename lineno to input_line.
35490         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35491         end_subprog_body): Likewise.
35492         * utils2.c (build_call_raise): Likewise.
35493
35494 2003-05-01  Laurent Guerby  <guerby@acm.org>
35495
35496         PR ada/10546
35497         * 5iosinte.ads: Increase pthread_cond_t size to match recent
35498         LinuxThread and NPTL version, merge from ACT.
35499
35500 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
35501
35502         * utils.c (convert): No need to clear TREE_CST_RTL.
35503
35504 2003-04-23   Geert Bosch  <bosch@gnat.com>
35505
35506         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35507         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35508         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35509         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35510         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35511         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35512         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35513         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35514         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35515         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35516         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35517         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35518         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35519         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35520         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35521         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35522         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35523         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35524         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35525         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35526         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35527         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35528         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35529         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35530         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35531         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35532         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35533         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35534         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35535         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35536         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35537         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35538         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35539         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35540         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35541         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35542         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35543         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35544         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35545         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35546         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35547         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35548         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35549         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35550         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35551         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35552         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35553         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35554         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35555         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35556         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35557         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35558         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35559         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35560         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35561         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35562         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35563         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35564         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35565         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35566         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35567         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35568         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35569         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35570         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35571         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35572         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35573         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35574         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35575         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35576         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35577         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35578         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35579         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35580         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35581         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35582         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35583         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35584         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35585         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35586         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35587         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35588         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35589         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35590         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35591         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35592         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35593         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35594         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35595         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35596         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35597         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35598         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35599         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35600         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35601         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35602         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35603         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35604         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35605         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35606         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35607         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35608         ali.adb, ali.ads, alloc.ads, argv.c,
35609         atree.adb, atree.ads, atree.h, aux-io.c,
35610         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35611         binde.adb, binde.ads, binderr.adb, binderr.ads,
35612         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35613         butil.adb, butil.ads, cal.c, calendar.ads,
35614         casing.adb, casing.ads, ceinfo.adb, checks.adb,
35615         checks.ads, cio.c, comperr.adb, comperr.ads,
35616         config-lang.in, csets.adb, csets.ads, csinfo.adb,
35617         cstand.adb, cstand.ads, cuintp.c, debug.adb,
35618         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35619         dec-io.ads, dec.ads, deftarg.c, directio.ads,
35620         einfo.adb, einfo.ads, elists.adb, elists.ads,
35621         elists.h, errno.c, errout.adb, errout.ads,
35622         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35623         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35624         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35625         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35626         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35627         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35628         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35629         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35630         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35631         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35632         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35633         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35634         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35635         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35636         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35637         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35638         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35639         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35640         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35641         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35642         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35643         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35644         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35645         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35646         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35647         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35648         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35649         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35650         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35651         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35652         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35653         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35654         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35655         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35656         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35657         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35658         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35659         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35660         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35661         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35662         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35663         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35664         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35665         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35666         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35667         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35668         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35669         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35670         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35671         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35672         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35673         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35674         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35675         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35676         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35677         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35678         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35679         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35680         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35681         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35682         lib.adb, lib.ads, live.adb, live.ads,
35683         machcode.ads, make.adb, make.ads, makeusg.adb,
35684         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35685         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35686         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35687         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35688         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35689         mlib.ads, namet.adb, namet.ads, nlists.adb,
35690         nlists.ads, opt.adb, opt.ads, osint-b.adb,
35691         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35692         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35693         osint.ads, output.adb, output.ads, par-ch10.adb,
35694         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35695         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35696         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35697         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35698         par-tchk.adb, par-util.adb, par.adb, par.ads,
35699         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35700         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35701         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35702         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35703         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35704         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35705         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35706         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35707         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35708         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35709         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35710         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35711         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35712         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35713         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35714         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35715         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35716         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35717         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35718         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35719         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35720         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35721         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35722         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35723         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35724         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35725         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35726         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35727         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35728         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35729         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35730         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35731         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35732         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35733         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35734         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35735         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35736         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35737         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35738         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35739         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35740         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35741         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35742         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35743         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35744         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35745         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35746         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35747         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35748         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35749         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35750         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35751         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35752         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35753         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35754         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35755         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35756         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35757         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35758         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35759         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35760         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35761         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35762         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35763         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35764         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35765         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35766         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35767         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35768         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35769         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35770         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35771         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35772         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35773         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35774         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35775         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35776         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35777         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35778         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35779         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35780         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35781         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35782         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35783         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35784         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35785         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35786         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35787         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35788         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35789         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35790         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35791         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35792         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35793         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35794         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35795         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35796         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35797         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35798         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35799         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35800         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35801         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35802         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35803         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35804         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35805         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35806         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35807         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35808         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35809         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35810         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35811         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35812         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35813         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35814         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35815         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35816         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35817         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35818         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35819         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35820         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35821         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35822         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35823         snames.ads, sprint.adb, sprint.ads, stand.adb,
35824         stand.ads, stringt.adb, stringt.ads, style.adb,
35825         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35826         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35827         switch-m.ads, switch.adb, switch.ads, system.ads,
35828         table.adb, table.ads, targparm.adb, targparm.ads,
35829         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35830         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35831         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35832         ttypef.ads, ttypes.ads, types.adb, types.ads,
35833         uintp.adb, uintp.ads, uname.adb, uname.ads,
35834         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35835         usage.adb, usage.ads, validsw.adb, validsw.ads,
35836         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35837         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35838         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35839         formatting and other trivial changes from ACT.
35840
35841 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
35842
35843         * gigi.h, utils2.c (build_constructor):
35844         Rename gnat_build_constructor. Use build_constructor.
35845         * decl.c (gnat_to_gnu_entity)
35846         * trans.c (tree_transform, pos_to_constructor, extract_values)
35847         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35848         (unchecked_convert)
35849         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35850         (fill_vms_descriptor):
35851         Update to match.
35852
35853 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
35854
35855         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35856         * misc.c (gnat_tree_size): New function.
35857         (LANG_HOOKS_TREE_SIZE): Override.
35858
35859 2003-04-03  Jason Merrill  <jason@redhat.com>
35860
35861         * misc.c (gnat_adjust_rli): #if 0.
35862
35863 2003-03-31   Geert Bosch  <bosch@gnat.com>
35864
35865         PR ada/10020
35866         * link.c : Fix misspelled "const" keyword
35867
35868 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
35869
35870         PR c++/7086
35871         * utils2.c: Adjust calls to put_var_into_stack.
35872
35873 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
35874
35875         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35876
35877 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
35878
35879         * misc.c (gnat_init): Update for new prototype.
35880
35881 2003-03-05  Olivier Hainque  <hainque@gnat.com>
35882
35883         ada/9961
35884         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35885         warning, and fix return type for the IN_RTS && !SJLJ case.
35886
35887 2003-03-04  Tom Tromey  <tromey@redhat.com>
35888
35889         * Make-lang.in (ada.tags): New target.
35890
35891 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
35892
35893         ada/9911
35894         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35895         wrapper, which name remains constant whatever underlying GCC
35896         scheme.
35897
35898         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35899         the stable interface needed for a-except.
35900
35901 2003-03-02  Andreas Jaeger  <aj@suse.de>
35902
35903         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35904         gnat_ug_wnt.texi: Regenerate.
35905
35906 2003-03-02  Laurent Guerby  <guerby@acm.org>
35907
35908         * Makefile.in (install-gnatlib): Match previous change there
35909         so it works.
35910
35911 2003-02-28  Andreas Schwab  <schwab@suse.de>
35912
35913         * Make-lang.in (install-gnatlib): Change to ada directory before
35914         running make instead of using ada/Makefile directly.
35915
35916 2003-02-18  Ben Elliston  <bje@redhat.com>
35917
35918         Part of PR ada/9406
35919         * gnat_ug.texi (Binder output file): Grammar fix.
35920
35921 2003-02-18  Ben Elliston  <bje@redhat.com>
35922
35923         PR other/7350
35924         * 5qtaprop.adb (Sleep): Fix typo in comment.
35925
35926 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
35927
35928         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35929         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35930         gnat_ug_wnt.texi: Regenerate.
35931
35932 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35933
35934         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35935         be created if necessary.
35936         (ada.install-common): Let $(DESTDIR)$(bindir) be created
35937         if necessary.  Remove erroneous and redundant gnatchop
35938         installation commands.  Test for gnatdll before attempting
35939         to install it.
35940         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35941         and gnatdll from all plausible locations.
35942
35943 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
35944
35945         * utils2.c (build_unary_op): Don't check flag_volatile.
35946         * gnat_ug.texi: Remove -fvolatile from example.
35947         * gnat_ug_vxw.texi: Likewise.
35948
35949 2003-01-29  Laurent Guerby  <guerby@acm.org>
35950
35951         PR ada/8344
35952         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35953         * Makefile.in: match previous change.
35954         * Make-lang.in: match previous change.
35955
35956 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
35957
35958         * 5rosinte.ads: Add SIGXCPU.
35959         * 5rtpopsp.adb: New file.
35960         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35961         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35962         specific file 5rtpopsp.adb.
35963         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
35964         is likely needed for all newlib targets.
35965         * init.c: Add RTEMS specific version of __gnat_initialize().
35966
35967 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35968
35969         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35970
35971 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35972
35973         * init.c (__gnat_error_handler): Make msg const.
35974
35975         * gmem.c (convert_addresses): Move declaration ...
35976         * adaint.h: ... here.
35977         * adaint.c (convert_addresses): Adapt addrs type to match
35978         prototype.
35979
35980         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35981
35982 2003-01-24  Andreas Schwab  <schwab@suse.de>
35983
35984         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35985         size_t to avoid warning.
35986
35987 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
35988
35989         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35990
35991 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
35992
35993         * gnat_rm.texi: Remove RCS version number.
35994
35995         * ada-tree.h (union lang_tree_node): Add chain_next option.
35996
35997 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35998
35999         * Make-lang.in (ada.install-info, ada.install-common,
36000         ada.uninstall): Prepend $(DESTDIR) to the destination
36001         directory in all (un)installation commands.
36002         * Makefile.in (install-gnatlib, install-rts): Ditto.
36003
36004 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
36005
36006         * gnat_rm.texi, gnat_ug.texi: Use @copying.
36007         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36008         gnat_ug_wnt.texi: Regenerate.
36009
36010 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
36011
36012         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
36013         only.
36014         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
36015         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
36016         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
36017         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
36018         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
36019         $(srcdir)/doc/include/gcc-common.texi.
36020
36021 2002-12-15   Geert Bosch  <bosch@gnat.com>
36022
36023         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
36024
36025 2002-12-14   Geert Bosch  <bosch@gnat.com>
36026
36027         PR ada/5690
36028         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
36029         case of a body created for a Renaming_As_Body, on which
36030         conformance checks are not performed.
36031
36032 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
36033
36034         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
36035         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
36036         not already included.
36037         * Make-lang.in: Update dependencies.
36038
36039 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
36040         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
36041         solution to buffer overflow bug on GNU/Linux.
36042
36043 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
36044
36045         PR ada/5856
36046         PR ada/6919
36047         * bindgen.adb: Remove all references to Public_Version.
36048         * comperr.adb: Remove all references to Public_Version and
36049         GNATPRO_Version; correct bug reporting instructions.
36050         * comperr.ads: Change to match bug box.
36051         * gnatvsn.ads: Remove all references to Public version and
36052         GNATPRO version.
36053
36054 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
36055
36056         PR ada/6919
36057         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
36058         GNU/Linux.
36059
36060         PR ada/6558
36061         * config-lang.in: Remove diff_excludes.
36062
36063 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
36064
36065         PR ada/8358
36066         * trans.c (gnu_pending_elaboration_lists): New GC root.
36067         (build_unit_elab): Use..
36068
36069 2002-10-30   Geert Bosch  <bosch@gnat.com>
36070
36071         PR ada/6558
36072         * misc.c : Include optabs.h
36073
36074         * Make-lang.in (misc.o): Add dependency on optabs.h
36075
36076 2002-10-29   Geert Bosch  <bosch@gnat.com>
36077
36078         PR ada/6558
36079         * Make-lang.in (gnatbind): Depend on CONFIG_H
36080
36081 2002-10-29  Geert bosch  <bosch@gnat.com>
36082
36083         PR ada/6558
36084         * misc.c: Unrevert misc.c (1.13)
36085
36086 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
36087
36088         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
36089         maintainership comments.
36090
36091 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
36092
36093         PR ada/5904
36094         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
36095         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
36096         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
36097         7staprop.adb: Correct statements in comments about
36098         maintainership of GNAT.
36099
36100         PR ada/5904
36101         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
36102         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
36103         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
36104         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
36105         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
36106         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
36107         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
36108         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
36109         comments about maintainership of GNAT.
36110
36111         PR ada/6919 (forward port of patch for PR ada/5904)
36112         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
36113         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
36114         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
36115         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
36116         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
36117         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
36118         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
36119         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
36120         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
36121         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
36122         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
36123         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
36124         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
36125         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
36126         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
36127         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
36128         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
36129         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
36130         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
36131         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
36132         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
36133         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
36134         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
36135         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
36136         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
36137         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
36138         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
36139         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
36140         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
36141         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
36142         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
36143         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
36144         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
36145         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
36146         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
36147         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
36148         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
36149         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
36150         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
36151         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
36152         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
36153         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
36154         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
36155         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
36156         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
36157         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
36158         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
36159         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
36160         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
36161         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
36162         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
36163         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
36164         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
36165         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
36166         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
36167         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
36168         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
36169         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
36170         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
36171         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
36172         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
36173         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
36174         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
36175         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
36176         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
36177         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
36178         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
36179         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
36180         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
36181         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
36182         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
36183         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
36184         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
36185         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
36186         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
36187         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
36188         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
36189         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
36190         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
36191         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
36192         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
36193         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
36194         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
36195         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
36196         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
36197         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
36198         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
36199         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
36200         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
36201         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
36202         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
36203         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
36204         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
36205         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
36206         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
36207         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
36208         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
36209         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
36210         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
36211         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
36212         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
36213         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
36214         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
36215         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
36216         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
36217         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
36218         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
36219         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
36220         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
36221         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
36222         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
36223         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
36224         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
36225         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
36226         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
36227         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
36228         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
36229         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
36230         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
36231         par-endh.adb par-labl.adb par-load.adb par-prag.adb
36232         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
36233         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
36234         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
36235         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
36236         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
36237         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
36238         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
36239         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
36240         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
36241         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
36242         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
36243         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
36244         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
36245         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
36246         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
36247         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
36248         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
36249         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
36250         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
36251         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
36252         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
36253         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
36254         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
36255         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
36256         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
36257         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
36258         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
36259         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
36260         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
36261         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
36262         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
36263         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
36264         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
36265         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
36266         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
36267         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
36268         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
36269         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
36270         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
36271         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
36272         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
36273         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
36274         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
36275         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
36276         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
36277         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
36278         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
36279         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
36280         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
36281         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
36282         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
36283         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
36284         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
36285         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
36286         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
36287         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
36288         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
36289         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
36290         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
36291         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
36292         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
36293         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
36294         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
36295         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
36296         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
36297         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
36298         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
36299         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
36300         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
36301         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
36302         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
36303         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
36304         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
36305         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
36306         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
36307         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
36308         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
36309         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
36310         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
36311         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
36312         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
36313         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
36314         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
36315         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
36316         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
36317         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
36318         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
36319         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
36320         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
36321         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
36322         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
36323         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36324         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36325         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36326         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36327         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36328         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36329         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36330         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36331         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36332         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36333         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36334         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36335         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36336         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36337         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36338         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36339         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36340         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36341         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36342         stringt.ads stringt.h style.adb style.ads stylesw.adb
36343         stylesw.ads switch.adb switch.ads sysdep.c system.ads
36344         table.adb table.ads targparm.adb targparm.ads targtyps.c
36345         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36346         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36347         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36348         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36349         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36350         usage.ads utils.c utils2.c validsw.adb validsw.ads
36351         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36352         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36353         xtreeprs.adb: Correct statements in comments about maintainership
36354         of GNAT.
36355
36356 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
36357
36358         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36359         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36360         * gnatvsn.ads: Gnat_Version_String is now a function.
36361         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
36362         copy the C version_string into a String and return it.
36363         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36364         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36365         Remove pragma Ident (Gnat_Version_String).  If this was the
36366         sole use of package Gnatvsn, remove the with statement too.
36367         * gnat1drv.adb: Tweak -gnatv output.
36368
36369 2002-09-17  Richard Henderson  <rth@redhat.com>
36370
36371         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36372         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36373         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36374         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36375         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36376         and real_2expN instead of a loop.
36377         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36378         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36379
36380 2002-08-25  Andre Leis  <a.leis@gmx.net>
36381             David Billinghurst  <David.Billinghurst@riotinto.com>
36382
36383         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36384
36385 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36386
36387         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36388         Remove $(CONFIG_H) dependency.
36389
36390 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
36391
36392         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36393
36394 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36395
36396         * adadecode.c (ada_demangle): Use xstrdup in lieu of
36397         xmalloc/strcpy.
36398         * misc.c (gnat_decode_option): Likewise.
36399
36400 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
36401
36402         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
36403         function approach did not work well because of a side effect (the
36404         function call could reallocate the table which was being indexed
36405         using its result). Fixes ada/4851. [RESURRECTED]
36406
36407 2002-07-01  Roger Sayle  <roger@eyesopen.com>
36408
36409         * ada/utils.c (builtin_function): Accept an additional parameter.
36410
36411 2002-06-28  Andreas Jaeger  <aj@suse.de>
36412
36413         PR ada/7144
36414         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36415         <adi@thur.de>.
36416
36417 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36418
36419         * Makefile.in (SHELL): Set to @SHELL@.
36420
36421 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36422
36423         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36424         array size calculation.
36425
36426 2002-06-04  Andreas Jaeger  <aj@suse.de>
36427
36428         * Make-lang.in (gnatbind): Readd rule that has been lost in last
36429         patch.
36430
36431 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
36432
36433         Merge from pch-branch:
36434
36435         * config-lang.in (gtfiles): Add ada-tree.h.
36436         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36437         (SET_TYPE_MODULUS): New.
36438         (SET_TYPE_INDEX): New.
36439         (SET_TYPE_DIGITS_VALUE): New.
36440         (SET_TYPE_RM_SIZE): New.
36441         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36442         (SET_TYPE_ADA_SIZE): New.
36443         (SET_TYPE_ACTUAL_BOUNDS): New.
36444         (SET_DECL_CONST_CORRESPONDING_VAR): New.
36445         (SET_DECL_ORIGINAL_FIELD): New.
36446         (TREE_LOOP_ID): Correct typo.
36447         * decl.c: Use new macros.
36448         * utils.c: Include debug.h, use new macros.
36449         * utils2.c: Use new macros.
36450
36451         * ada-tree.h: Update all macros for new tree description.
36452         (struct tree_loop_id): New.
36453         (union lang_tree_node): New.
36454         (struct lang_decl): New.
36455         (struct lang_type): New.
36456         * misc.c (gnat_mark_tree): Delete.
36457         (LANG_HOOKS_MARK_TREE): Delete.
36458         * trans.c (tree_transform): No longer any need to cast
36459         for TREE_LOOP_ID.
36460
36461         * utils.c (struct language_function): New dummy structure.
36462
36463         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36464         (misc.o): Likewise.
36465         (utils.o): Likewise; also gtype-ada.h.
36466         * Make-lang.in (gnat1): Add dependency on s-gtype.
36467         (gnatbind): Add dependency on $(CONFIG_H).
36468         * utils.c: Correct last #include.
36469         (stuct e_stack): Remove unnecessary 'static'.
36470         (mark_e_stack): Remove unused prototype.
36471
36472         * scn-nlit.adb: Remove whitespace after version number to
36473         keep lines under 80 chars.
36474         * snames.adb: Likewise.
36475         * treepr.ads: Likewise.
36476
36477         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36478         (misc.o): Likewise.
36479         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36480         * config-lang.in (gtfiles): New.
36481         * decl.c: Use gengtype for roots.
36482         * gigi.h: Use gengtype for roots.
36483         * trans.c: Use gengtype for roots.
36484         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
36485
36486 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
36487
36488         * misc.c (gnat_init): Adjust setting of internal_error_function.
36489
36490 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
36491
36492         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36493         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36494         gnat_ug_wnt.texi: Regenerate.
36495
36496 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
36497
36498         * 5ntaprop.adb (with System.OS_Primitives): Remove.
36499
36500         * cstreams.c (max_path_len): Move from here ...
36501         * adaint.c (__gnat_max_path_len): ... to here.
36502         * adaint.c (__gnat_max_path_len): Declare.
36503         * g-dirope.adb (Max_Path): Adjust.
36504         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36505         * i-cstrea.ads (max_path_len): Adjust.
36506         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36507         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36508
36509         * Makefile.in, Make-lang.in: Documentation is now built in
36510         Make-lang.in.  Store Info and generated Texinfo files in the
36511         source directory.
36512         * gnat_ug.texi: Remove CVS keywords, correct version number.
36513         Set file name correctly.
36514
36515         * gnat_ug_*.texi: Add.
36516         * .cvsignore: Ignore generated Texinfo files.
36517
36518 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
36519
36520         * ada.h: Add MI guard macro.
36521         (SUBTYPE): Define constants with an anonymous enum, not static
36522         const variables.
36523         (IN): Cast constants to appropriate type before use.
36524
36525 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
36526
36527         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36528         (experimental)".
36529
36530 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36531
36532         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36533         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36534         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36535         (ALL_ADA_CFLAGS): Likewise.
36536         (ADA_INCLUDES): Likewise.
36537         Adapt for new working dir.
36538         (GNATBIND): Use Makefile.in version.
36539         (.SUFFIXES): Copy from Makefile.in.
36540         (ada-warn): Define.
36541         (.adb.o, .ads.o): Copy from Makefile.in.
36542         Added $(OUTPUT_OPTION).
36543         (GNAT1_C_OBJS): Moved from Makefile.in.
36544         Prefix with ada subdir.
36545         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36546         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36547         Adapt for new working dir.
36548         (EXTRA_GNATBIND_OBJS): Likewise.
36549         (ADA_BACKEND): Moved from Makefile.in.
36550         Renamed to avoid conflict with global BACKEND.
36551         Use that one.
36552         (TARGET_ADA_SRCS): Moved from Makefile.in.
36553         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36554         Use ADA_BACKEND.
36555         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36556         (ada_extra_files): Moved from Makefile.in.
36557         Prefix with ada subdir.
36558         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36559         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36560         (ada/nmake.ads): Likewise.
36561         (update-sources): Moved from Makefile.in.
36562         Prefix with ada subdir.
36563         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36564         (ADA_TREE_H): Likewise.
36565         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36566         (ada/memtrack.o): Likewise.
36567         (ada/adadecode.o): Likewise.
36568         Update dependencies.
36569         (ada/adaint.o): New.
36570         (ada/argv.o): Moved from Makefile.in.
36571         Prefix with ada subdir.
36572         Update dependencies.
36573         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36574         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36575         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36576         Prefix with ada subdir.
36577         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36578         (GNAT DEPENDENCIES): Regenerate.
36579         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36580         toplevel Makefile.in.
36581         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36582         (TARGET_ADA_SRCS): Removed.
36583         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36584         (GNATBIND_OBJS): Likewise.
36585         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36586         (BACKEND): Removed.
36587         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36588         (TREE_H): Likewise.
36589         (ada_extra_files): Likewise.
36590         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36591         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36592         (update-sources): Likewise.
36593         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36594         (ADA_TREE_H): Likewise.
36595         (adadecoce.o): Likewise.
36596         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36597         (GNAT DEPENDENCIES): Likewise.
36598
36599 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36600
36601         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36602         * Makefile.in: Likewise.
36603
36604 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36605
36606         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36607         Restore $(CONFIG_H) and prefix.o dependencies.
36608         (ada.stage[1-4]): Depend on stage?-start.
36609
36610         * Makefile.in (b_gnatb.c): Depend on interfac.o.
36611
36612 2002-05-02  Jim Wilson  <wilson@redhat.com>
36613
36614         * utils.c (finish_record_type): Change record_size to record_type.
36615
36616 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
36617
36618         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36619         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36620         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36621
36622 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36623
36624         * misc.c (gnat_parse_file): Update.
36625
36626 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36627
36628         * misc.c (gnat_init): Don't set lang_attribute_common.
36629
36630 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
36631
36632         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36633
36634 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
36635
36636         * gnat_ug.texi: New file.
36637
36638         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
36639         instead of gfdl.texi
36640
36641         * xgnatug.adb, ug_words: New files.
36642
36643         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
36644         gnat_rm and gnat-style manuals.
36645
36646 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
36647
36648         * gigi.h (incomplete_type_error): Remove.
36649         * utils.c (incomplete_type_error): Remove.
36650
36651 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
36652
36653         * trans.c (tree_transform): Add has_scope argument to
36654         expand_start_stmt_expr.
36655
36656 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36657
36658         * gigi.h (truthvalue_conversion): Rename.
36659         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36660         * trans.c (tree_transform): Update.
36661         * utils2.c (truthvalue_conversion): Rename, update.
36662         (build_binary_op, build_unary_op): Update.
36663
36664 2002-04-04  Laurent Guerby  <guerby@acm.org>
36665
36666         * make.adb: Implement -margs, remove restriction about file name placement.
36667         * makeusg.adb: Documentation update.
36668         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36669         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36670
36671 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36672
36673         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36674         (builtin_function): Similarly.
36675
36676 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36677
36678         * decl.c (gnat_to_gnu_entity): Update.
36679         * gigi.h (mark_addressable): Rename.
36680         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36681         * trans.c (tree_transform): Update.
36682         * utils.c (create_var_decl): Update.
36683         * util2.c (build_binary_op, build_unary_op,
36684         fill_vms_descriptor): Update.
36685         (mark_addressable): Rename, update.
36686
36687 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36688
36689         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36690         Rename.
36691         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36692         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36693         * trans.c (tree_transform, convert_with_check): Update.
36694         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36695         Rename.
36696
36697 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
36698
36699         * gigi.h (finish_incomplete_decl): Rename.
36700         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36701         * utils.c (gnat_init_decl_processing): Don't set hook.
36702         (finish_incomplete_decl): Rename.
36703
36704 2002-03-29  Andreas Schwab  <schwab@suse.de>
36705
36706         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36707         directory.
36708
36709 2001-03-28  Robert Dewar  <dewar@gnat.com>
36710
36711         * checks.ads:
36712         (Remove_Checks): New procedure
36713
36714         * checks.adb:
36715         (Remove_Checks): New procedure
36716
36717         * exp_util.adb:
36718         Use new Duplicate_Subexpr functions
36719         (Duplicate_Subexpr_No_Checks): New procedure
36720         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36721         (Duplicate_Subexpr): Restore original form (checks duplicated)
36722         (Duplicate_Subexpr): Call Remove_Checks
36723
36724         * exp_util.ads:
36725         (Duplicate_Subexpr_No_Checks): New procedure
36726         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36727         Add 2002 to copyright notice
36728
36729         * sem_util.adb: Use new Duplicate_Subexpr functions
36730
36731         * sem_eval.adb:
36732         (Eval_Indexed_Component): This is the place to call
36733         Constant_Array_Ref and to replace the value. We simply merge
36734         the code of this function in here, since it is now no longer
36735         used elsewhere. This fixes the problem of the back end not
36736         realizing we were clever enough to see that this was
36737         constant.
36738         (Expr_Val): Remove call to Constant_Array_Ref
36739         (Expr_Rep_Val): Remove call to Constant_Array_Ref
36740         Minor reformatting
36741         (Constant_Array_Ref): Deal with string literals (patch
36742         suggested by Zack Weinberg on the gcc list)
36743
36744 2001-03-28  Ed Schonberg  <schonber@gnat.com>
36745
36746         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36747         Duplicate_Subexpr_Move_Checks.
36748
36749         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36750         Duplicate_Subexpr_Move_Checks.
36751
36752         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36753         value of array exists before retrieving it (it may a private
36754         protected component in a function).
36755
36756 2002-03-28   Geert Bosch  <bosch@gnat.com>
36757
36758         * prj-pp.adb : New file.
36759
36760         * prj-pp.ads : New file.
36761
36762 2002-03-28  Andreas Jaeger  <aj@suse.de>
36763
36764         * Makefile.in (stamp-sdefault): Fix path for Makefile.
36765
36766 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36767
36768         * misc.c (gnat_expand_expr): Move prototype.
36769
36770 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36771
36772         * misc.c (insert_default_attributes): Remove.
36773
36774 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36775
36776         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36777         (gnat_init): Don't set hook.
36778         (gnat_expand_expr): Fix prototype.
36779
36780 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36781
36782         * misc.c (ggc_p): Remove.
36783
36784 2002-03-27  Geert Bosch  <bosch@gnat.com>
36785
36786         * prj-makr.ads, prj-makr.adb : New files.
36787
36788 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
36789
36790         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36791         (lang_mark_tree): Make static, rename.
36792
36793 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36794
36795         * misc.c (maybe_build_cleanup): Remove.
36796
36797 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36798
36799         * gigi.h (yyparse): Remove.
36800
36801 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
36802
36803         From Ben Brosgol  <brosgol@gnat.com>
36804         * gnat_rm.texi: Sync with ACT version.
36805
36806 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
36807
36808         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36809         (gnat_init): Remove old hook.
36810
36811 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
36812
36813         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36814         (yyparse): Rename gnat_parse_file.
36815
36816 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
36817
36818         Delete all lines containing "$Revision:".
36819         * xeinfo.adb: Don't look for revision numbers.
36820         * xnmake.adb: Likewise.
36821         * xsinfo.adb: Likewise.
36822         * xsnames.adb: Likewise.
36823         * xtreeprs.adb: Likewise.
36824
36825 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36826
36827         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36828         gnat_tree_code_name): Delete.
36829         (tree_code_type, tree_code_length, tree_code_name): Define.
36830         (gnat_init): Don't try to copy into the various tree_code
36831         arrays.
36832
36833 2002-03-11  Richard Henderson  <rth@redhat.com>
36834
36835         * Makefile.in (.NOTPARALLEL): Add fake tag.
36836
36837 2002-03-07  Geert Bosch  <bosch@gnat.com>
36838
36839         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36840         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36841         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36842         switch-m.adb, switch-m.ads : New files.
36843
36844 2002-03-07  Geert Bosch  <bosch@gnat.com>
36845
36846         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36847         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36848         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36849         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36850         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36851         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36852         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36853         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36854         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36855         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36856         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36857         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36858         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36859         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36860         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36861         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36862         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36863         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36864         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36865         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36866         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36867         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36868         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36869         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36870         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36871         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36872         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36873         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36874         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36875         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36876         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36877         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36878         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36879         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36880         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36881         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36882         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36883         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36884         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36885         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36886         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36887         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36888         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36889         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36890         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36891         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36892         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36893         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36894         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36895         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36896         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36897         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36898         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36899         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36900         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36901         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36902         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36903         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36904         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36905         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36906         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36907         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36908         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36909         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36910         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36911         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36912         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36913         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36914         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36915         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36916         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36917         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36918         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36919         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36920         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36921         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36922         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36923         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36924         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36925         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36926         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36927         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36928         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36929         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36930         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36931         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36932         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36933         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36934         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36935         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36936         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36937         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36938         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36939         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36940         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36941         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36942         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36943
36944         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36945         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36946         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36947         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36948
36949         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36950         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36951
36952         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36953         to mdll-fil.ad[bs] and mdll-util.ad[bs]
36954
36955         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36956         from mdllfile.ad[bs] and mdlltool.ad[bs]
36957
36958 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36959
36960         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36961         lieu of explicit sizeof/sizeof.
36962
36963 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36964
36965         * misc.c (copy_lang_decl): Remove.
36966
36967 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
36968
36969         * misc.c: Delete traditional-mode-related code copied from the
36970         C front end but not used, or used only to permit the compiler
36971         to link.
36972
36973 2002-02-07  Richard Henderson  <rth@redhat.com>
36974
36975         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36976         * adaint.h (__gnat_to_gm_time): Update prototype.
36977
36978 2002-01-30  Richard Henderson  <rth@redhat.com>
36979
36980         * trans.c (tree_transform) [N_Loop_Statement]: Use
36981         expand_exit_loop_top_cond.
36982
36983 2001-12-23  Richard Henderson  <rth@redhat.com>
36984
36985         * utils.c (end_subprog_body): Push GC context around
36986         rest_of_compilation for nested functions.
36987
36988 2001-12-23  Richard Henderson  <rth@redhat.com>
36989
36990         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36991
36992 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
36993
36994         * gnat-style.texi (Declarations and Types): Remove ancient style
36995         rule which was mandated by code generation issues.
36996
36997         * gnat-style.texi (header): Add @dircategory, @direntry.
36998         (title page): Remove date.
36999         (general) Add @./@: where approriate, and two spaces after the
37000         full stop at the end of a sentence.  Use @samp markup when
37001         referring concrete lexical entities (keywords, attribute names
37002         etc.), and @syntax for ARM grammar elements. Use @r for English
37003         text in comments.  Use @emph for emphasis.  Change "if-statements"
37004         etc. to "if statements" (without @samp). Break long lines.  Make
37005         casing of section names consistent.
37006         (Identifiers): Use @samp markup for variable names.
37007         (Comments): Use @samp markup for comment characters. Line-end
37008         comments may follow any Ada code, not just statements.  Fix
37009         misspelling of "Integer" as "integer".
37010         (Loop statements): Do not use variable name "I", use "J".
37011         (Subprogram Declarations): Document alignment.
37012         (Subprogram Bodies, Block statements): Document empty line before
37013         "begin".
37014
37015 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
37016
37017         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
37018         function approach did not work well because of a side effect (the
37019         function call could reallocate the table which was being indexed
37020         using its result). Fixes ada/4851.
37021
37022 2001-12-19  Robert Dewar  <dewar@gnat.com>
37023
37024         * bindgen.adb: Minor reformatting
37025
37026         * cstand.adb: Minor reformatting
37027
37028         * fmap.adb: Minor reformatting
37029         Change name from Add for Add_To_File_Map (Add is much too generic)
37030         Change Path_Name_Of to Mapped_Path_Name
37031         Change File_Name_Of to Mapped_File_Name
37032         Fix copyright dates in header
37033
37034         * fmap.ads:
37035         Change name from Add for Add_To_File_Map (Add is much too generic)
37036         Change Path_Name_Of to Mapped_Path_Name
37037         Change File_Name_Of to Mapped_File_Name
37038         Fix copyright dates in header
37039
37040         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
37041         Add use clause for Fmap.
37042
37043         * make.adb: Minor reformatting
37044
37045         * osint.adb: Minor reformatting.  Change of names in Fmap.
37046         Add use clause for Fmap.
37047
37048         * prj-env.adb: Minor reformatting
37049
37050         * prj-env.ads: Minor reformatting
37051
37052         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
37053         error found (there were odd exceptions to this general rule in
37054         -gnatec/-gnatem processing)
37055
37056 2001-12-19  Olivier Hainque  <hainque@gnat.com>
37057
37058         * raise.c (__gnat_eh_personality): Exception handling personality
37059         routine for Ada.  Still in rough state, inspired from the C++ version
37060         and still containing a bunch of debugging artifacts.
37061         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
37062         inspired from the C++ library.
37063
37064         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
37065         exception handling integration.
37066
37067 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
37068
37069         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
37070         (HIE_SOURCES): Add s-secsta.ad{s,b}.
37071         (HIE_OBJS): Add s-fat*.o
37072         (RAVEN_SOURCES): Remove files that are no longer required. Add
37073         interrupt handling files.
37074         (RAVEN_MOD): Removed, no longer needed.
37075
37076 2001-12-19  Robert Dewar  <dewar@gnat.com>
37077
37078         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
37079         Add 2001 to copyright date
37080
37081         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
37082         need to force universal inlining for these cases.
37083
37084 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
37085
37086         * s-taprob.adb: Minor clean ups so that this unit can be used in
37087         Ravenscar HI.
37088
37089         * exp_ch7.adb: Allow use of secondary stack in HI mode.
37090         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
37091
37092 2001-12-19  Vincent Celier  <celier@gnat.com>
37093
37094         * prj-tree.ads (Project_Node_Record): Add comments for components
37095         Pkg_Id and Case_Insensitive.
37096
37097 2001-12-19  Pascal Obry  <obry@gnat.com>
37098
37099         * g-socket.adb: Minor reformatting. Found while reading code.
37100
37101 2001-12-19  Robert Dewar  <dewar@gnat.com>
37102
37103         * prj-tree.ads: Minor reformatting
37104
37105 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
37106
37107         * config-lang.in (diff_excludes): Remove.
37108
37109 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37110
37111         * sem_res.adb (Resolve_Selected_Component): do not generate a
37112         discriminant check if the selected component is a component of
37113         the argument of an initialization procedure.
37114
37115         * trans.c (tree_transform, case of arithmetic operators): If result
37116         type is private, the gnu_type is the base type of the full view,
37117         given that the full view itself may be a subtype.
37118
37119 2001-12-17  Robert Dewar  <dewar@gnat.com>
37120
37121         * sem_res.adb: Minor reformatting
37122
37123         * trans.c (tree_transform, case N_Real_Literal): Add missing third
37124         parameter in call to Machine (unknown horrible effects from this
37125         omission).
37126
37127         * urealp.h: Add definition of Round_Even for call to Machine
37128         Add third parameter for Machine
37129
37130 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37131
37132         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
37133         predefined units in No_Run_Time mode.
37134
37135 2001-12-17  Richard Kenner  <kenner@gnat.com>
37136
37137         * misc.c (insn-codes.h): Now include.
37138
37139 2001-12-17  Olivier Hainque  <hainque@gnat.com>
37140
37141         * a-except.adb: Preparation work for future integration of the GCC 3
37142         exception handling mechanism
37143         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
37144         to factorize previous code sequences and make them externally callable,
37145         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
37146         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
37147         Use the new notification routines.
37148
37149 2001-12-17  Emmanuel Briot  <briot@gnat.com>
37150
37151         * prj-tree.ads (First_Choice_Of): Document the when others case
37152
37153 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37154
37155         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
37156         HI-E mode, in order to support Ravenscar profile properly.
37157
37158         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
37159         mode on 32 bits targets.
37160
37161 2001-12-17  Vincent Celier  <celier@gnat.com>
37162
37163         * fmap.adb: Initial version.
37164
37165         * fmap.ads: Initial version.
37166
37167         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
37168         If search is successfully done, add to mapping.
37169
37170         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
37171
37172         * make.adb:
37173         (Gnatmake): Add new local variable Mapping_File_Name.
37174          Create mapping file when using project file(s).
37175          Delete mapping file before exiting.
37176
37177         * opt.ads (Mapping_File_Name): New variable
37178
37179         * osint.adb (Find_File): Use path name found in mapping, if any.
37180
37181         * prj-env.adb (Create_Mapping_File): New procedure
37182
37183         * prj-env.ads (Create_Mapping_File): New procedure.
37184
37185         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
37186         (Mapping_File)
37187
37188         * usage.adb: Add entry for new switch -gnatem.
37189
37190         * Makefile.in: Add dependencies for fmap.o.
37191
37192 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37193
37194         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
37195         is a package instantiation rewritten as a package body.
37196         (Install_Withed_Unit): Undo previous change, now redundant.
37197
37198 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
37199
37200         * layout.adb:
37201         (Compute_Length): Move conversion to Unsigned to callers.
37202         (Get_Max_Size): Convert Len expression to Unsigned after calls to
37203         Compute_Length and Determine_Range.
37204         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
37205         Compute_Length and Determine_Range.
37206         Above changes fix problem with length computation for supernull arrays
37207         where Max (Len, 0) wasn't getting applied due to the Unsigned
37208         conversion used by Compute_Length.
37209
37210 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37211
37212         * rtsfind.ads:
37213         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
37214          System.Secondary_Stack.
37215         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
37216          in HI-E mode.
37217         Remove unused entity RE_Exception_Data.
37218
37219         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
37220
37221         * rident.ads (No_Secondary_Stack): New restriction.
37222
37223 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
37224
37225         * gnat_rm.texi: Fix minor typos. Found while reading the section
37226         regarding "Bit_Order Clauses" that was sent to a customer.
37227         Very interesting documentation!
37228
37229 2001-12-17  Robert Dewar  <dewar@gnat.com>
37230
37231         * sem_case.adb (Choice_Image): Avoid creating improper character
37232         literal names by using the routine Set_Character_Literal_Name. This
37233         fixes bombs in certain error message cases.
37234
37235 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37236
37237         * a-reatim.adb: Minor reformatting.
37238
37239 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37240
37241         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
37242         case where the formal is an extension of another formal in the current
37243         unit or in a parent generic unit.
37244
37245 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37246
37247         * s-tposen.adb: Update comments.  Minor reformatting.
37248         Minor code clean up.
37249
37250         * s-tarest.adb: Update comments.  Minor code reorganization.
37251
37252 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
37253
37254         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
37255         when Java_VM.
37256
37257 2001-12-17  Robert Dewa  <dewar@gnat.com>
37258
37259         * exp_attr.adb: Minor reformatting
37260
37261 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37262
37263         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
37264         derivations nested within a child unit: verify that the parent
37265         type is declared in an outer scope.
37266
37267 2001-12-17  Robert Dewar  <dewar@gnat.com>
37268
37269         * sem_ch12.adb: Minor reformatting
37270
37271 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37272
37273         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
37274         warning if current unit is a predefined one, from which bodies may
37275         have been deleted.
37276
37277 2001-12-17  Robert Dewar  <dewar@gnat.com>
37278
37279         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
37280         Fix header format. Add 2001 to copyright date.
37281
37282         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
37283         which caused CE during compilation if checks were enabled.
37284
37285 2001-12-17  Vincent Celier  <celier@gnat.com>
37286
37287         * make.adb:
37288         (Switches_Of): New function
37289         (Test_If_Relative_Path): New procedure
37290         (Add_Switches): Use new function Switches_Of
37291         (Collect_Arguments_And_Compile): Use new function Switches_Of.
37292         When using a project file, test if there are any relative
37293         search path. Fail if there are any.
37294         (Gnatmake): Only add switches for the primary directory when not using
37295         a project file. When using a project file, change directory to the
37296         object directory of the main project file. When using a project file,
37297         test if there are any relative search path. Fail if there are any.
37298         When using a project file, fail if specified executable is relative
37299         path with directory information, and prepend executable, if not
37300         specified as an absolute path, with the exec directory.  Make sure
37301         that only one -o switch is transmitted to the linker.
37302
37303         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
37304
37305         * prj-nmsc.adb:
37306         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
37307         when using a non standard naming scheme.
37308         (Check_Ada_Naming_Scheme): Make sure that error messages
37309         do not raise exceptions.
37310         (Is_Illegal_Append): Return True if there is no dot in the suffix.
37311         (Language_Independent_Check): Check the exec directory.
37312
37313         * prj.adb (Project_Empty): Add new component Exec_Directory
37314
37315         * prj.ads:
37316         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
37317         (Project_Data): Add component Exec_Directory
37318
37319         * snames.adb: Updated to match snames.ads revision 1.215
37320
37321         * snames.ads: Added Exec_Dir
37322
37323 2001-12-17  Robert Dewar  <dewar@gnat.com>
37324
37325         * make.adb: Minor reformatting
37326
37327         * prj-nmsc.adb: Minor reformatting
37328
37329         * snames.adb: Updated to match snames.ads
37330
37331         * snames.ads: Alphebetize entries for project file
37332
37333 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37334
37335         * trans.c (process_freeze_entity): Do nothing if the entity is a
37336         subprogram that was already elaborated.
37337
37338 2001-12-17  Richard Kenner  <kenner@gnat.com>
37339
37340         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37341         and Esize if object is referenced via pointer.
37342
37343 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37344
37345         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37346         is discrete before analyzing choices.
37347
37348 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
37349
37350         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37351         containing the name of the Ada Main Program. This string is mainly
37352         intended for the debugger.
37353         (Gen_Output_File_C): Do the equivalent change when generating a C file.
37354
37355 2001-12-17  Robert Dewar  <dewar@gnat.com>
37356
37357         * ali.adb: Set new Dummy_Entry field in dependency entry
37358
37359         * ali.ads: Add Dummy_Entry field to source dependency table
37360
37361         * bcheck.adb (Check_Consistency): Ignore dummy D lines
37362
37363         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37364
37365         * lib-writ.ads: Document dummy D lines for missing files.
37366
37367         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37368
37369 2001-12-17  Robert Dewar  <dewar@gnat.com>
37370
37371         * ali.adb: Type reference does not reset current file.
37372
37373         * ali.adb: Recognize and scan renaming reference
37374
37375         * ali.ads: Add spec for storing renaming references.
37376
37377         * lib-xref.ads: Add documentation for handling of renaming references
37378
37379         * lib-xref.adb: Implement output of renaming reference.
37380
37381         * checks.adb:
37382         (Determine_Range): Document local variables
37383         (Determine_Range): Make sure Hbound is initialized. It looks as though
37384          there could be a real problem here with an uninitialized reference
37385          to Hbound, but no actual example of failure has been found.
37386
37387 2001-12-17  Laurent Pautet  <pautet@gnat.com>
37388
37389         * g-socket.ads:
37390         Fix comment of Shutdown_Socket and Close_Socket. These functions
37391         should not fail silently because if they are called twice, this
37392         probably means that there is a race condition in the user program.
37393         Anyway, this behaviour is consistent with the rest of this unit.
37394         When an error occurs, an exception is raised with the error message
37395         as exception message.
37396
37397 2001-12-17  Robert Dewar  <dewar@gnat.com>
37398
37399         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37400         that it happens before modification of Sloc values for -gnatD.
37401
37402         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37403         so that it happens before modification of Sloc values for -gnatD.
37404
37405         * switch.adb: Minor reformatting
37406
37407 2001-12-15  Richard Henderson  <rth@redhat.com>
37408
37409         * sem_ch7.adb: Wrap comment.
37410
37411 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37412
37413         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37414         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37415         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37416         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37417         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37418         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37419         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37420         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37421         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37422         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37423         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37424         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37425         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37426         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37427         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37428         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37429         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37430         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37431         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37432         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37433         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37434         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37435         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37436         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37437         spelling errors.
37438
37439 2001-12-14  Vincent Celier  <celier@gnat.com>
37440
37441         * osint.adb(Create_Debug_File): When an object file is specified,
37442         put the .dg file in the same directory as the object file.
37443
37444 2001-12-14  Robert Dewar  <dewar@gnat.com>
37445
37446         * osint.adb: Minor reformatting
37447
37448         * lib-xref.adb (Output_Instantiation): New procedure to generate
37449         instantiation references.
37450
37451         * lib-xref.ads: Add documentation of handling of generic references.
37452
37453         * ali.adb (Read_Instantiation_Ref): New procedure to read
37454         instantiation references
37455
37456         * ali.ads: Add spec for storing instantiation references
37457
37458         * bindusg.adb: Minor reformatting
37459
37460         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37461
37462         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37463
37464         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37465
37466         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37467
37468         * csets.ads:
37469         Fix header format
37470         Add 2001 to copyright date
37471         Add entry for Latin-5 (Cyrillic ISO-8859-5)
37472
37473 2001-12-14  Matt Gingell  <gingell@gnat.com>
37474
37475         * adaint.c: mktemp is a macro on Lynx and can not be used as an
37476         expression.
37477
37478 2001-12-14  Richard Kenner  <kenner@gnat.com>
37479
37480         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37481         if operand is CONSTRUCTOR.
37482
37483 2001-12-14  Ed Schonberg  <schonber@gnat.com>
37484
37485         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37486         before emiting check on right-hand side, so that exception information
37487         is correct.
37488
37489 2001-12-14  Richard Kenner  <kenner@gnat.com>
37490
37491         * utils.c (create_var_decl): Throw away initializing expression
37492         if just annotating types and non-constant.
37493
37494 2001-12-14  Vincent Celier  <celier@gnat.com>
37495
37496         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37497         Default_Ada_...
37498
37499         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37500         Remove functions.
37501         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37502
37503         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37504         Remove functions.
37505         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37506
37507 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37508
37509         * ChangeLog: Remove piece of diff output.
37510
37511 2001-12-14  Geert Bosch  <bosch@gnat.com>
37512
37513         * config-lang.in: Update copyright notice
37514
37515         * layout.adb: Remove commented out code.
37516
37517         * mdllfile.ads: Update copyright notice. Fix header format.
37518
37519         * sem_case.ads: Likewise.
37520
37521         * sem_ch3.adb: Minor reformatting.
37522
37523 2001-12-12  Geert Bosch  <bosch@gnat.com>
37524
37525         * freeze.ads: Update copyright date.
37526
37527         * g-comlin.ads: Minor reformatting.
37528
37529         * gnat-style.texi: Fix typo.
37530
37531 2001-12-12  Geert Bosch  <bosch@gnat.com>
37532
37533         *  einfo.h: Regenerate.
37534
37535 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37536
37537         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37538         on known node types, rather than untyped fields. Further cleanups.
37539
37540 2001-12-12  Robert Dewar  <dewar@gnat.com>
37541
37542         * sem_ch12.adb:
37543         (Save_Entity_Descendant): Minor comment update.
37544         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37545          of an N_Attribute_Reference node. As per note below, this does not
37546         eliminate need for Associated_Node in attribute ref nodes.
37547         (Associated_Node): Documentation explicitly mentions attribute
37548         reference nodes, since this field is used in such nodes.
37549
37550         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37551
37552 2001-12-12  Robert Dewar  <dewar@gnat.com>
37553
37554         * s-stalib.adb: Add more comments on with statements being needed
37555
37556         * par-ch12.adb: Minor reformatting
37557
37558         * prj-dect.ads: Fix copyright header
37559
37560         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37561         inputs fit in 32 bits, but the result still overflows.
37562
37563         * s-fatgen.ads: Minor comment improvement
37564
37565 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37566
37567         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37568         formal derived type, look for an inherited component from the full
37569         view of the parent, if any.
37570
37571 2001-12-12  Robert Dewar  <dewar@gnat.com>
37572
37573         * checks.ads (Apply_Alignment_Check): New procedure.
37574
37575         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37576         ensure that the alignment of objects with address clauses is
37577         appropriate, and raise PE if not.
37578
37579         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37580         Exp_Pakd.Known_Aligned_Enough
37581
37582         * mdllfile.ads: Minor reformatting
37583
37584         * mlib-fil.ads: Minor reformatting
37585
37586 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37587
37588         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37589         fix to any component reference if enclosing record has non-standard
37590         representation.
37591
37592 2001-12-12  Vincent Celier  <celier@gnat.com>
37593
37594         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37595         Iteration
37596
37597 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37598
37599         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37600         sem_attr.
37601
37602 2001-12-12  Robert Dewar  <dewar@gnat.com>
37603
37604         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37605
37606 2001-12-12  Emmanuel Briot  <briot@gnat.com>
37607
37608         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37609         and it adds dependencies to system.io.
37610
37611 2001-12-12  Pascal Obry  <obry@gnat.com>
37612
37613         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37614         variable name.
37615
37616 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37617
37618         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37619         that is the parent of other generics, the instance body replaces the
37620         instance node.  Retrieve the instance of the spec, which is the one
37621         that is visible in clients and within the body.
37622
37623 2001-12-11  Vincent Celier  <celier@gnat.com>
37624
37625         * gnatmain.adb: Initial version.
37626
37627         * gnatmain.ads: Initial version.
37628
37629         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37630
37631         * snames.adb: Updated to match snames.ads.
37632
37633         * snames.ads: Added Gnatstub.
37634
37635 2001-12-11  Vincent Celier  <celier@gnat.com>
37636
37637         * prj-attr.adb (Initialization_Data): Change name from
37638         Initialisation_Data.
37639
37640 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37641
37642         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37643         + and * applied to backslashed expressions like \r.
37644
37645 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
37646
37647         * g-os_lib.ads: String_List type added, Argument_List type is now
37648         subtype of String_List.
37649
37650 2001-12-11  Robert Dewar  <dewar@gnat.com>
37651
37652         * g-os_lib.ads: Change copyright to FSF
37653         Add comments for String_List type
37654
37655 2001-12-11  Vincent Celier  <celier@gnat.com>
37656
37657         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37658         string to the buffer).
37659
37660 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37661
37662         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37663         sem_attr.
37664
37665         * sem_attr.adb: Simplify previous fix for Address.
37666         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37667         to avoid anomalies where the bound of the type appears to raise
37668         constraint error.
37669
37670 2001-12-11  Robert Dewar  <dewar@gnat.com>
37671
37672         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37673         handled.
37674
37675 2001-12-11  Ed Schonber   <schonber@gnat.com>
37676
37677         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37678         renamed unit before checking for recursive instantiations.
37679
37680 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37681
37682         * prj.ads: Add comments for some of the fields.
37683
37684 2001-12-11  Robert Dewar  <dewar@gnat.com>
37685
37686         * lib-xref.adb (Output_Refs): Don't output type references outside
37687         the main unit if they are not otherwise referenced.
37688
37689 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37690
37691         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37692         code and diagnose additional illegal uses
37693
37694         * sem_util.adb (Is_Object_Reference): An indexed component is an
37695         object only if the prefix is.
37696
37697 2001-12-11  Vincent Celier  <celier@gnat.com>
37698
37699         * g-diopit.adb: Initial version.
37700
37701         * g-diopit.ads: Initial version.
37702
37703         * g-dirope.adb:
37704         (Expand_Path): Avoid use of Unbounded_String
37705         (Find, Wildcard_Iterator): Moved to child package Iteration
37706
37707         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37708
37709 2001-12-11  Robert Dewar  <dewar@gnat.com>
37710
37711         * sem_attr.adb: Minor reformatting
37712
37713 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37714
37715         * sem_ch3.adb: Clarify some ???.
37716
37717 2001-12-11  Robert Dewar  <dewar@gnat.com>
37718
37719         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37720         Exp_Pakd.Known_Aligned_Enough
37721
37722         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37723         version is moved to Exp_Ch13.
37724
37725 2001-12-11  Robert Dewar  <dewar@gnat.com>
37726
37727         * einfo.ads: Minor reformatting
37728
37729         * exp_ch5.adb: Add comment for previous.change
37730
37731         * ali.adb: New interface for extended typeref stuff.
37732
37733         * ali.ads: New interface for typeref stuff.
37734
37735         * checks.adb (Apply_Alignment_Check): New procedure.
37736
37737         * debug.adb: Add -gnatdM for modified ALI output
37738
37739         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37740
37741         * lib-xref.adb: Extend generation of <..> notation to cover
37742         subtype/object types. Note that this is a complete rewrite,
37743         getting rid of the very nasty quadratic algorithm previously
37744         used for derived type output.
37745
37746         * lib-xref.ads: Extend description of <..> notation to cover
37747         subtype/object types. Uses {..} for these other cases.
37748         Also use (..) for pointer types.
37749
37750         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37751
37752         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
37753         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37754
37755 2001-12-11  Vincent Celier  <celier@gnat.com>
37756
37757         * gnatcmd.adb:
37758         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37759         Changed /BIND_ONLY to /ACTIONS=BIND
37760         Changed /LINK_ONLY to /ACTIONS=LINK
37761
37762 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37763
37764         * sem_ch8.adb (Find_Selected_Component): improved search for a
37765         candidate package in case of error.
37766
37767         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37768         chain back on scope stack before reinstalling use clauses.
37769
37770         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37771         is enabled, do not kill the code for the condition, to preserve
37772         warning.
37773
37774 2001-12-11  Robert Dewar  <dewar@gnat.com>
37775
37776         * checks.adb (Insert_Valid_Check): Apply validity check to expression
37777         of conversion, not to result of conversion.
37778
37779 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37780
37781         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37782         before freezing parent. If the declarations are mutually recursive,
37783         an access to the current record type may be frozen before the
37784         derivation is complete.
37785
37786 2001-12-05  Vincent Celier  <celier@gnat.com>
37787
37788         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37789         -c /COMPILE_ONLY, -l /LINK_ONLY
37790
37791         * opt.ads:
37792         (Bind_Only): New Flag
37793         (Link_Only): New flag
37794
37795         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37796         and -l (Link_Only)
37797
37798         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37799
37800         * make.adb:
37801         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37802         (Gnatmake): Set the step flags. Only perform a step if the
37803         corresponding step flag is True.
37804         (Scan_Make_Arg): Reset the bind and link step flags when -u
37805         or -gnatc has been specified.
37806
37807 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37808
37809         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37810         get bounds from right operand.
37811
37812         * sem_eval.adb: Minor reformatting
37813
37814         * exp_util.adb (Make_Literal_Range): use bound of literal rather
37815         than Index'First, its lower bound may be different from 1.
37816
37817         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37818         and C48009J
37819
37820 2001-12-05  Vincent Celier  <celier@gnat.com>
37821
37822         * prj-nmsc.adb Minor reformatting
37823
37824         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37825         set and libraries are not supported.
37826
37827 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37828
37829         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37830         private view explicitly, so the back-end can treat as a global
37831         when appropriate.
37832
37833 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37834
37835         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37836          unit, always replace instance node with new body, for ASIS use.
37837
37838 2001-12-05  Vincent Celier  <celier@gnat.com>
37839
37840         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37841         libraries are not supported and both attributes Library_Name and
37842         Library_Dir are specified.
37843
37844         * prj-proc.adb (Expression): Set location of Result to location of
37845         first term.
37846
37847         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37848         (prj-nmsc is now importing MLib.Tgt)
37849
37850         * prj-proc.adb: Put the change indicated above that was forgotten.
37851
37852 2001-12-05  Robert Dewar  <dewar@gnat.com>
37853
37854         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37855
37856 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37857
37858         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37859         constraint, introduce explicit subtype declaration and derive from it.
37860
37861         * sem_ch3.adb: Minor reformatting
37862
37863 2001-12-05  Robert Dewar  <dewar@gnat.com>
37864
37865         * checks.adb (Determine_Range): Increase cache size for checks.
37866         Minor reformatting
37867
37868         * exp_ch6.adb: Minor reformatting
37869         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37870         a parameter whose root type is System.Address, since treating such
37871         subprograms as pure in the code generator is almost surely a mistake
37872         that will lead to unexpected results.
37873
37874         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37875         change handling of conversions.
37876
37877         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37878
37879 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37880
37881         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37882         aggregate with static wrong size, attach generated Raise node to
37883         declaration.
37884
37885 2001-12-05  Robert Dewar  <dewar@gnat.com>
37886
37887         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37888         Fixes compilation abandoned bomb in B24009B.
37889
37890 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37891
37892         * sem_ch12.adb:
37893         Document use of Associated_Node on Selected_Components.
37894         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37895         to clarify use of untyped descendant fields.
37896
37897 2001-12-05  Robert Dewar  <dewar@gnat.com>
37898
37899         * prj-dect.ads: Add ??? comment
37900         Add 2001 to copyright notice (was not done in after all)
37901
37902         * prj-part.adb: Minor reformatting. Reword one awkward error message.
37903
37904         * prj.ads: Minor reformatting throughout, and add some ??? comments
37905
37906         * snames.ads: Minor reformatting
37907
37908 2001-12-05  Geert Bosch  <bosch@gnat.com>
37909
37910         * snames.adb: Autoupdate
37911
37912 2001-12-05  Vincent Celier  <celier@gnat.com>
37913
37914         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37915
37916         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37917
37918         * prj-env.adb: Minor comment changes (modifying -> extends).
37919
37920         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37921
37922         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37923         Tok_Extends.
37924
37925         * prj.adb (Initialize): Change Modifying to Extends.
37926
37927         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37928
37929         * prj.ads: Minor comment change (Modifying -> extending).
37930
37931         * snames.ads: Change modifying to extends.
37932
37933 2001-12-05  Robert Dewar  <dewar@gnat.com>
37934
37935         * sem_warn.adb: Remove stuff for conditionals, we are not going to
37936         do this after all.
37937
37938         * sem_warn.ads: Remove stuff for conditionals, we are not going to
37939         do this after all.  Add 2001 to copyright notice
37940
37941 2001-12-04  Geert Bosch  <bosch@gnat.com>
37942
37943         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
37944
37945 2001-12-04  Robert Dewar  <dewar@gnat.com>
37946
37947         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37948         location if we already have errors. Stops some cases of cascaded
37949         errors.
37950
37951         * errout.adb: Improve comment.
37952
37953 2001-12-04  Robert Dewar  <dewar@gnat.com>
37954
37955         * sem_ch12.adb:
37956         (Analyze_Formal_Type_Definition): Defend against Error.
37957         (Analyze_Formal_Subprogram): Defend against Error.
37958
37959         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37960         remove following semicolon if present. Removes cascaded error.
37961
37962 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
37963
37964         * bindgen.adb:
37965         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37966          exceptions equals 0.
37967         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37968         Fixes PIWG E tests (which have to be run with -gnatL).
37969
37970 2001-12-04  Robert Dewar  <dewar@gnat.com>
37971
37972         * einfo.ads: Minor reformatting
37973
37974 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37975
37976         * einfo.ads: Block_Node points to the identifier of the block, not to
37977         the block node itself, to preserve the link when the block is
37978         rewritten, e.g. within an if-statement with a static condition.
37979
37980         * inline.adb (Cleanup_Scopes): recover block statement from block
37981         entity using new meaning of Block_Node.
37982
37983         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37984         identifier of block node, rather than to node itself.
37985
37986 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
37987
37988         * layout.adb:
37989         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37990         (Discrimify): Go back to setting the Etypes of the selected component
37991         because the Vname component does not exist at this point and will
37992         fail name resolution. Also set Analyzed.
37993         Remove with and use of Sem_Res.
37994
37995 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
37996
37997         * Makefile.in: (HIE_SOURCES): add s-fat*.
37998
37999 2001-12-04  Robert Dewar  <dewar@gnat.com>
38000
38001         * sem_attr.adb:
38002         (Compile_Time_Known_Attribute): New procedure.
38003         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
38004          proper range check.
38005
38006 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38007
38008         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
38009         processing discriminants to diagnose illegal default values.
38010
38011 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38012
38013         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
38014         access discriminant within a type extension that constrains its
38015         parent discriminants.
38016
38017 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38018
38019         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
38020         is malformed, use instance of Any_Id to allow analysis to proceed.
38021
38022         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
38023         type definition is illegal.
38024         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
38025         misplaced.
38026
38027 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38028
38029         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
38030         constants.
38031
38032 2001-12-04  Robert Dewar  <dewar@gnat.com>
38033
38034         * errout.adb: Minor reformatting
38035
38036 2001-12-04  Robert Dewar  <dewar@gnat.com>
38037
38038         * exp_util.adb: Minor reformatting from last change
38039
38040         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
38041         which is a rewriting of an expression, traverse the original
38042         expression to remove warnings that may have been posted on it.
38043
38044 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38045
38046         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
38047         record that has other packed components.
38048
38049 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
38050
38051         * adaint.c: Minor cleanups.
38052
38053 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
38054
38055         * adaint.c: Do not use utime.h on vxworks.
38056
38057 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
38058
38059         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
38060         more confusion than it solves.
38061
38062 2001-12-04  Geert bosch  <bosch@gnat.com>
38063
38064         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
38065
38066 2001-12-04  Geert Bosch  <bosch@gnat.com>
38067
38068         * Makefile.in (update-sources): New target.
38069         For use by gcc_release script.
38070
38071 2001-12-04  Ed Schonberg  <schonber@gnat.com>
38072
38073         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
38074         a configuration pragma, it is now legal wherever a pragma can appear.
38075
38076 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
38077
38078         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
38079         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
38080         is now @CROSS@ -DIN_GCC; update comment.
38081
38082 2001-12-04  Robert Dewar  <dewar@gnat.com>
38083
38084         * einfo.adb (Has_Pragma_Pure_Function): New flag.
38085         Fix problem that stopped ceinfo from working
38086
38087         * einfo.ads (Has_Pragma_Pure_Function): New flag.
38088
38089         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
38090
38091 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
38092
38093         * gnatchop.adb:
38094         (File_Time_Stamp): New procedure.
38095         (Preserve_Mode): New boolean.
38096         (Write_Unit): Pass time stamp.
38097         Implement -p switch (preserve time stamps).
38098
38099         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
38100
38101         * gnatchop.adb: Do usage info for -p switch
38102
38103         * adaint.h (__gnat_set_file_time_name): New function
38104
38105         * adaint.c (__gnat_set_file_time_name): Implement
38106
38107         * adaint.h: Fix typo
38108
38109 2001-12-03  Robert Dewar  <dewar@gnat.com>
38110
38111         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
38112         have Associated_Node.
38113
38114 2001-12-03  Robert Dewar  <dewar@gnat.com>
38115
38116         * prj-proc.adb: Minor reformatting
38117
38118         * make.adb: Minor reformatting
38119
38120 2001-12-03  Geert Bosch  <bosch@gnat.com>
38121
38122         * make.adb: Minor reformatting.
38123
38124 2001-12-03 Robert Dewar  <dewar@gnat.com>
38125
38126         * sem_ch12.adb: Minor reformatting
38127
38128 2001-12-03  Ed Schonberg  <schonber@gnat.com>
38129
38130         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
38131         push Standard on the stack before analyzing the instance body,
38132         in order to have a clean visibility environment.
38133
38134         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
38135
38136 2001-12-03  Ed Schonberg  <schonber@gnat.com>
38137
38138         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
38139         instantiation of a body that contains an inlined body.
38140
38141 2001-12-03  Ed Schonberg  <schonber@gnat.com>
38142
38143         * sem_ch12.adb:
38144         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
38145         to prevent freezing within formal packages.
38146         (Freeze_Subprogram_Body): If body comes from another instance that
38147         appeared before its own body, place freeze node at end of current
38148         declarative part, to prevent a back-end crash.
38149         (Inline_Instance_Body): Handle properly a package instance within
38150         a subprogram instance that is a child unit.
38151
38152 2001-12-01  Graham Stott  <grahams@redhat.com>
38153
38154         * Makefile.in (misc.o): Add missing $(srcdir) prefix
38155         and add optabs.h dependency.
38156
38157         * misc.c: Include optabs.h
38158         (gnat_tree_code_type): Make static and const.
38159         (gnat_tree_code_length): Likewise.
38160         (gnat_tree_code_name): Likewise.
38161         (update_setjmp_buf): Obtain operands mode from insn_data.
38162
38163 2001-11-29  Richard Henderson  <rth@redhat.com>
38164
38165         * init.c: Remove obsolete dwarf2 frame.h section.
38166
38167 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
38168
38169         * Make-lang.in (ada.generated-manpages): New dummy target.
38170
38171 2001-11-29  Ed Schonberg  <schonber@gnat.com>
38172
38173         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
38174         into Command, an array conversion is illegal here. Uncovered by
38175         ACATS B460005.
38176
38177 2001-11-28  Geert Bosch  <bosch@gnat.com>
38178
38179         * init.c: Minor whitespace changes.
38180
38181 2001-11-28  Doug Rupp  <rupp@gnat.com>
38182
38183         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
38184         signal stack.
38185
38186 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
38187
38188         * misc.c (gnat_expand_constant): Move declaration above
38189         definition of lang_hooks.
38190         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
38191         (gnat_init): lang_expand_constant no longer exists.
38192
38193         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
38194         always have vprintf.
38195         (gnat_init): Always call set_internal_error_function.
38196
38197 2001-11-27  Andreas Jaeger  <aj@suse.de>
38198
38199         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
38200
38201 2001-11-27  Laurent Guerby  <guerby@acm.org>
38202
38203         * Makefile.in: Regenerate Ada dependencies.
38204
38205 2001-11-26  Richard Henderson  <rth@redhat.com>
38206
38207         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
38208         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
38209         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
38210
38211 2001-11-25  Laurent Guerby  <guerby@acm.org>
38212
38213         * sysdep.c (rts_get_*): Fix style.
38214
38215 2001-11-19  Laurent Guerby  <guerby@acm.org>
38216
38217         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
38218         since it is of no apparent use and cause warnings.
38219
38220 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
38221
38222         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
38223         static too.
38224         (gnat_init): Don't return NULL.
38225         (finish_parse): Remove.
38226
38227 2001-11-17  Laurent Guerby  <guerby@acm.org>
38228
38229         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
38230         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
38231         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
38232         * lang-spec.h: Add missing struct field to silence warnings.
38233         * sysdep.c (rts_get_*): Provide K&R prototype.
38234         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
38235         * traceback.c (Unlock_Task, Lock_Task): Likewise.
38236         * tracebak.c (__gnat_backtrace): Remove unused variable.
38237         * utils.c (end_subprog_body): Move to K&R style.
38238
38239 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38240
38241         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
38242
38243 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
38244
38245         * misc.c (gnat_init): Change prototype.  Include the
38246         functionality of the old init_parse and init_decl_processing.
38247         (gnat_init_decl_processing): New prototype.
38248         (init_parse): Remove.
38249         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
38250
38251 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
38252
38253         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
38254         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
38255         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
38256         set_yydebug): Remove.
38257
38258 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
38259
38260         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
38261         (struct lang_hooks): Constify.
38262         (language_string, lang_identify): Remove.
38263         * utils.c (init_decl_processing): Update.
38264
38265 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
38266
38267         * misc.c: Include langhooks-def.h.
38268         * Makefile.in: Update.
38269
38270 2001-10-30  Robert Dewar  <dewar@gnat.com>
38271
38272         * style.adb:
38273         (Check_Identifier): Rewrite circuit to be compatible with use of letters
38274         in the upper half of ASCII.
38275         (Check_Identifier): Minor reformatting
38276
38277 2001-10-30  Geert Bosch  <bosch@gnat.com>
38278
38279         * (Associated_Node, Set_Associated_Node): Do not check for
38280         Freeze_Entity.
38281
38282 2001-10-30  Robert Dewar  <dewar@gnat.com>
38283
38284         * a-reatim.ads: Minor reformatting
38285
38286 2001-10-30  Robert Dewar  <dewar@gnat.com>
38287
38288         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
38289         undocumented declarations.
38290
38291 2001-10-30  Pascal Obry  <obry@gnat.com>
38292
38293         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
38294         to the binder and linker.
38295         Minor style fix.
38296
38297         * mdll.ads: Fix layout.  Update copyright notice.
38298
38299         * mdll.adb: Fix layout.  Update copyright notice.
38300
38301 2001-10-30  Robert Dewar  <dewar@gnat.com>
38302
38303         * usage.adb: Minor fix to output for -gnaty.
38304
38305 2001-10-30  Ed Schonberg  <schonber@gnat.com>
38306
38307         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
38308         to accommodate all its possible values.
38309
38310         * a-reatim.adb (Split): Special-case handling of Time_Span_First
38311         and of small absolute values of T.
38312
38313 2001-10-30  Richard Kenner  <kenner@gnat.com>
38314
38315         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
38316         set_mem_attributes since not needed and wrong if RESULT if a REG;
38317         fixes ACATS failures.
38318
38319 2001-10-30  Geert Bosch  <bosch@gnat.com>
38320
38321         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
38322         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
38323
38324 2001-10-30  Robert Dewar  <dewar@gnat.com>
38325
38326         * bindusg.adb: Undocument -f switch.
38327
38328         * gnatcmd.adb: Remove /FULL_ELABORATION.
38329
38330         * opt.ads (Force_RM_Elaboration_Order): Document that this is
38331         obsolescent.
38332
38333         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38334
38335         * gnatbind.adb: Minor update of warning msg.
38336
38337 2001-10-30  Vincent Celier  <celier@gnat.com>
38338
38339         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38340         for project file switches (-P (/PROJECT_FILE=),
38341          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38342         or MEDIUM or HIGH)
38343
38344 2001-10-30  Geert Bosch  <bosch@gnat.com>
38345
38346         * decl.c: Minor whitespace fixes.
38347
38348 2001-10-30  Richard Kenner  <kenner@gnat.com>
38349
38350         * utils2.c (build_allocator): Test for SIZE overflow in array case too
38351
38352 2001-10-30  Geert Bosch  <bosch@gnat.com>
38353
38354         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38355         Found due to GCC 3.0 warning of using uninitialized value.
38356
38357         * layout.adb:
38358         (Get_Max_Size): Use variant record for tracking value/expression.
38359          Makes logic clearer and prevents warnings for uninitialized variables.
38360         (Layout_Array_Type): Use variant record for tracking value/expression.
38361          Makes logic clearer and prevents warnings for uninitialized variables.
38362
38363 2001-10-30  Robert Dewar  <dewar@gnat.com>
38364
38365         * lib.adb: Minor reformatting
38366
38367         * s-taprop.ads: Minor reformatting
38368
38369 2001-10-29  Laurent Guerby  <guerby@acm.org>
38370
38371         * init.c:
38372         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38373         const.
38374         (_gnat_error_handler): Make MSG const.
38375
38376 2001-10-29  Richard Kenner  <kenner@gnat.com>
38377
38378         * sysdep.c: Fix localtime_r problem on LynxOS.
38379         Also remove #elif to avoid warnings.
38380
38381         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38382         used by this.
38383
38384         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38385
38386 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
38387
38388         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38389         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38390         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38391         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38392         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38393         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38394         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38395         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38396         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38397         types.ads, urealp.adb: Fix spelling errors.
38398
38399 2001-10-27  Laurent Guerby  <guerby@acm.org>
38400
38401         * trans.c (gigi): Fix non determinism leading to bootstrap
38402         comparison failures for debugging information.
38403
38404 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
38405
38406         * gnat_rm.texi: Use @./@: where appropriate.
38407
38408 2001-10-26  Robert Dewar  <dewar@gnat.com>
38409
38410         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38411
38412 2001-10-26  Richard Kenner  <kenner@gnat.com>
38413
38414         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38415
38416 2001-10-26  Richard Kenner  <kenner@gnat.com>
38417
38418         * decl.c (validate_size): Modify message for bad size to avoid
38419         implication that compiler is modifying the size.
38420
38421 2001-10-26  Robert Dewar  <dewar@gnat.com>
38422
38423         * prj-util.adb: Minor reformatting. Fix bad header format.
38424
38425 2001-10-26  Robert Dewar  <dewar@gnat.com>
38426
38427         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38428
38429         * sinfo.ads: Clarify use of Associated_Node (documentation only).
38430
38431         * sem_ch12.adb: Change Node4 to Associated_Node. Change
38432         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38433         much more narrowly in places where needed. These are cleanups.
38434
38435 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
38436
38437         * 5zosinte.ads (null_pthread): new constant.
38438
38439         * 5ztaprop.adb:
38440         (Initialize_TCB): Initialize thread ID to null, to be able to verify
38441          later that this field has been set.
38442         (Finalize_TCB): ditto.
38443         (Suspend_Task): Verify that the thread ID is not null before using it.
38444         (Resume_Task): ditto.
38445
38446         * s-tasdeb.adb:
38447         (Resume_All_Tasks): Lock the tasks list before using it.
38448         (Suspend_All_Tasks): ditto.
38449
38450 2001-10-26  Richard Kenner  <kenner@gnat.com>
38451
38452         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38453         Make constant variant of designated type for Is_Access_Constant.
38454         Call update_pointer_to with main variant.
38455
38456         * trans.c (process_freeze_entity, process_type):
38457         Call update_pointer_to on main variant.
38458
38459         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38460         If main variant, update all other variants.
38461
38462         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38463         TREE_STATIC.
38464
38465 2001-10-26  Robert Dewar  <dewar@gnat.com>
38466
38467         * prj-util.adb: Minor reformatting
38468
38469 2001-10-26  Robert Dewar  <dewar@gnat.com>
38470
38471         * prj-util.adb: Minor reformatting
38472
38473 2001-10-26  Robert Dewar  <dewar@gnat.com>
38474
38475         * prj-attr.adb: Minor reformatting throughout
38476
38477 2001-10-26  Robert Dewar  <dewar@gnat.com>
38478
38479         * prj-attr.ads: Minor reformatting
38480         Add ??? comment (this whole spec has almost no comments)
38481
38482 2001-10-26  Vincent Celier  <celier@gnat.com>
38483
38484         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38485         ("//") that precede the drive letter on Interix.
38486
38487 2001-10-26  Geert Bosch  <bosch@gnat.com>
38488
38489         * gnat_rm.texi: Add GNAT Reference Manual.
38490
38491 2001-10-25  Robert Dewar  <dewar@gnat.com>
38492
38493         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38494         is Error. Similar change for other renaming cases.
38495
38496 2001-10-25  Robert Dewar  <dewar@gnat.com>
38497
38498         * s-atacco.ads: Add pragma Inline_Always for functions.
38499         Fix header format. Add copyright 2001
38500
38501 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38502
38503         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38504         return Error rather than Empty so that analysis can proceed.
38505
38506 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38507
38508         * sem_util.adb (Enter_Name): better handling of cascaded error
38509         messages when a unit appears in its own context.
38510
38511 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38512
38513         * sem_util.adb (Defining_Entity): in case of error, attach created
38514         entity to specification, so that semantic analysis can proceed.
38515
38516 2001-10-25  Robert Dewar  <dewar@gnat.com>
38517
38518         * sem_util.adb
38519         (Defining_Entity): Deal with Error.
38520         (Process_End_Label): Deal with bad end label for.
38521
38522 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38523
38524         * sem_elab.adb (Check_A_Call): refine message when call is in an
38525         instance but callee is not declared in the generic unit.
38526
38527 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38528
38529         * sem_elab.adb (Check_A_Call): check for renaming before finding the
38530         enclosing unit, which may already be different from the calling unit.
38531
38532 2001-10-25  Geert Bosch  <bosch@gnat.com>
38533
38534         * 4gintnam.ads: fix header format.
38535
38536 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38537
38538         * sem_res.adb (Resolve_Call): if the call is actually an indexing
38539         operation on the result of a parameterless call, perform elaboration
38540         check after the node has been properly rewritten.
38541
38542         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38543         inlined within the generic tree, the defining identifier is not a
38544         compilation_unit.
38545
38546 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38547
38548         * sem_res.adb (Resolve): special-case resolution of Null in an
38549          instance or an inlined body to avoid view conflicts.
38550
38551         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38552          compatibility by retrieving the access type of the generic copy.
38553
38554 2001-10-25  Robert Dewar  <dewar@gnat.com>
38555
38556         * sem_ch3.adb:
38557         (Analyze_Number_Declaration): Handle error expression.
38558         (Signed_Integer_Type_Declaration): Handle error bound.
38559         (Analyze_Subtype_Indication): Handle error range.
38560
38561         * sem_util.adb (Get_Index_Bounds): Check for Error.
38562
38563 2001-10-25  Robert Dewar  <dewar@gnat.com>
38564
38565         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38566         in no run time mode.
38567
38568 2001-10-25  Pascal Obry  <obry@gnat.com>
38569
38570         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38571         mode case for ALLOC case.
38572
38573         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38574         all platforms. Improvement of last change.
38575
38576 2001-10-25  Robert Dewar  <dewar@gnat.com>
38577
38578         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38579
38580 2001-10-25  Geert Bosch  <bosch@gnat.com>
38581
38582         * osint.adb (Is_Relative): Remove duplicate.
38583
38584 2001-10-25  Pascal Obry  <obry@gnat.com>
38585
38586         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38587         pathnames in UNIX and DOS style with drive letter.
38588         (Is_Relative): new routine.
38589
38590         * osint.adb: Minor reformatting
38591
38592         * osint.adb (Is_Relative): implementation using
38593         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38594
38595 2001-10-25  Pascal Obry  <obry@gnat.com>
38596
38597         * g-dirope.adb (Basename): correctly compute offset between the
38598         original Path and the translated one.
38599
38600         * g-dirope.adb: (Base_Name): add some comments.
38601
38602 2001-10-25  Robert Dewar  <dewar@gnat.com>
38603
38604         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38605         in HIE mode, avoids compilation abandoned message
38606
38607         * exp_imgv.adb: Correct typo in previous change
38608
38609         * exp_imgv.adb: Correct typo in previous change (not my day!)
38610
38611 2001-10-25  Robert Dewar  <dewar@gnat.com>
38612
38613         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38614
38615 2001-10-25  Pascal Obry  <obry@gnat.com>
38616
38617         * g-awk.ads: Move all pragma inlines next to the routine
38618          declarations. This is more uniform with other GNAT spec.
38619
38620 2001-10-22  Geert Bosch  <bosch@gnat.com>
38621
38622         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38623
38624 2001-10-19  Geert Bosch  <bosch@gnat.com>
38625
38626         * Makefile.in (tools, gnattools): Remove gnatmem.
38627
38628 2001-10-17  Richard Henderson  <rth@redhat.com>
38629
38630         * Makefile.in (misc.o): Depend on langhooks.h.
38631         * misc.c: Include it.
38632         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38633         (LANG_HOOKS_DECODE_OPTION): New.
38634         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38635
38636 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
38637
38638         * trans.c (tree_transform): Adjust to recent change in
38639         expand_asm_operands to implement named asm operands.
38640
38641 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38642
38643         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38644         renaming of discriminant for mutable record type.
38645
38646 2001-10-11  Robert Dewar  <dewar@gnat.com>
38647
38648         * validsw.adb: Properly save -gnatVn status.
38649
38650 2001-10-11  Robert Dewar  <dewar@gnat.com>
38651
38652         * usage.adb: Add lines for V switch.
38653
38654         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38655         (/VALIDITY_CHECKING).
38656
38657 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38658
38659         * sem_type.adb (Add_One_Interp): an operator for a type declared in
38660         an extension of System is known to be visible.
38661
38662 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38663
38664         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38665         properly. Fixes regression on ACATS C34005G.
38666
38667 2001-10-11  Robert Dewar  <dewar@gnat.com>
38668
38669         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38670         loop in generic instance, since this is likely not very useful.
38671
38672 2001-10-11  Robert Dewar  <dewar@gnat.com>
38673
38674         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38675         the error message for high integrity mode.
38676
38677         * rtsfind.adb (RTE): Give message if we try to find an entity that
38678         is not available in high integrity mode.
38679
38680         * rtsfind.ads:
38681         (OK_To_Use_In_HIE_Mode): New array.
38682         (RTE): May return Empty in high integrity mode.
38683
38684         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38685         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38686
38687         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38688         unit if not inlined always and in no runtime mode. Fixes problem
38689         caused by new Rtsfind changes.
38690
38691         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38692         body is deleted.
38693
38694         * rtsfind.adb (RTE): Make sure we do not try to load unit after
38695         giving message for entity not available in high integrity mode.
38696
38697 2001-10-11  Pascal Obry  <obry@gnat.com>
38698
38699         * impunit.adb: Add GNAT.CRC32.
38700
38701 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38702
38703         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38704         properly the case where one universal operand in a non-static
38705         exponentiation of a real literal.
38706
38707 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38708
38709         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38710         clause, return the gobal finalization list, for lack of anthing else.
38711
38712 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38713
38714         * exp_ch7.adb (Make_Transient_Block): if statement is within
38715         exception handler, always use new transient scope to place Clean
38716         procedure.
38717
38718 2001-10-11  Pascal Obry  <obry@gnat.com>
38719
38720         * Makefile.in:
38721         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38722         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38723         (GNATLS_RTL_OBJS): add g-crc32.o
38724         (GNATMAKE_RTL_OBJS): add g-crc32.o
38725
38726         * ali-util.adb:
38727         (CRC_Match): new function.
38728         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38729         instead of the previous simple checksum algorithm.
38730         (Time_Stamp_Mismatch): use CRC_Match for comparison.
38731         (Set_Source_Table): idem.
38732
38733         * ali-util.ads:
38734         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38735         instead of simple checksum.
38736         (CRC_Match): new function.
38737         (CRC_Error): new constant.
38738
38739         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38740         a CRC now and not a simple checksum. A CRC uses lower-case hex
38741         letters, fixes ambiguity in parsing.
38742
38743         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38744         is what this variable will store.
38745
38746         * bcheck.adb: Change reference to chechsum in comments by CRC.
38747         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38748         rename All_Checksum_Match to All_CRC_Match. Change due to API
38749         renaming since now GNAT does not use a simple checksum but a
38750         CRC using GNAT.CRC32.
38751
38752         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38753         now and not anymore a simple checksum.
38754
38755         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38756         places.
38757
38758         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38759
38760         * scans.adb:
38761         (Restore_Scan_State): rename Checksum to CRC.
38762         (Save_Scan_State): idem.
38763
38764         * scans.ads:
38765         With GNAT.CRC32.
38766         (Checksum): rename to CRC.
38767         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38768
38769         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38770         GNAT.CRC32).  Update copyright notice.
38771
38772         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38773         GNAT.CRC32).  Update copyright notice.
38774
38775         * scn.adb:
38776         (Accumulate_Checksum): removed.
38777         (Update): new procedure. Add a wide-character into the CRC.
38778
38779         * sinput-l.adb:
38780         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38781         (Load_File): fix initialization of S (change Source_Checksum to
38782         Source_CRC)
38783
38784         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38785         Source_CRC in S initialization.
38786
38787         * sinput.adb (Source_Checksum): renamed to Source_CRC.
38788
38789         * sinput.ads (Source_Checksum): renamed to Source_CRC.
38790         Update comments for the CRC.
38791
38792         * types.adb (Hex): Use lowercase for the letter part.
38793
38794         * types.ads (Get_Hex_String): Returns the hexadecimal representation
38795         for a word. This is currently used only for CRC. In previous version,
38796         the checksum was using a representation with all letter being
38797         upper-case. With the new implementation (using CRC) we do not remove
38798         the 32th bit of the CRC, so we can have an upper-case starting letter
38799         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38800         It is ambigous since the CRC was optional and could be followed by
38801         options like EB, EE. So now this routines uses lower-case letter for
38802         the hexadecimal representation. Strange enough only lower case letters
38803         where checked in Scan_ALI (even if this was not a possible case).
38804
38805         * gnatvsn.ads (Library_Version): changed to 3.15a.
38806
38807         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38808         for the compiler.
38809
38810         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38811         for the compiler.
38812
38813         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38814         Add 2001 to copyright notice
38815         (Accumulate_Checksum): Modify to use System.CRC32.
38816
38817         * ali-util.ads: Redo changes of previous revision to continue to use
38818         the word Checksum. Add 2001 to copyright notice.
38819
38820         * ali.adb: Undo some of previous changes, not needed.
38821         Keep the change for lower case letters in the checksum.
38822
38823         * ali.ads: Undo previous change not needed.
38824
38825         * bcheck.adb: Undo most of previous change, not needed.
38826         But do use Checksums_Match for checksum comparison.
38827
38828         * gnatls.adb: Undo most of previous change, not needed.
38829         But do use Checksums_Match for comparing checksums.
38830
38831         * lib-load.adb: Undo previous change, not needed.
38832
38833         * lib-writ.adb: Undo previous change, not needed.
38834
38835         * lib-writ.ads: Document that checksums use lower case,
38836         not upper case letters.
38837
38838         * scans.adb: Undo previous change, not needed
38839
38840         * scans.ads: Undo previous change, not needed.
38841
38842         * scn-nlit.adb: Undo previous changes, not needed.
38843
38844         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
38845
38846         * scn.adb:
38847         (Accumulate_Checksum): Use System.CRC32.
38848         (Initialize_Checksum): New procedure.
38849         Remove other changes of previous revision.
38850
38851         * sinput-p.adb: Undo previous change, not needed.
38852
38853         * sinput.adb: Undo previous change, not needed.
38854
38855         * sinput-l.adb: Undo previous change, not needed.
38856
38857         * sinput.ads: Undo previous change, not needed.  Keep only comment
38858         on new checksum algorithm
38859
38860         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38861         Also remove a-tags and a-stream from GNAT sources.
38862
38863         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38864
38865         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38866
38867 2001-10-11  Geert Bosch  <bosch@gnat.com>
38868
38869         * einfo.h: Regenerate.
38870
38871         * nmake.ads: Regenerate.
38872
38873         * nmake.adb: Regenerate.
38874
38875         * sinfo.h: Regenerate.
38876
38877         * treeprs.adb: Regenerate.
38878
38879 2001-10-10  Geert Bosch  <bosch@gnat.com>
38880
38881         * gnat-style.texi: New file describing coding guidelines for Ada.
38882
38883 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38884
38885         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38886         is Flag174.
38887
38888 2001-10-10  Geert Bosch  <bosch@gnat.com>
38889
38890         * snames.ads: Add new names for project facility.
38891
38892         * snames.adb: Update to reflect snames.ads changes.
38893
38894         * snames.h: Update to reflect snames.ads changes.
38895
38896 2001-10-10  Vincent Celier  <celier@gnat.com>
38897
38898         * make.adb:
38899         (Add_Switches): reflect the changes for the switches attributes
38900         Default_Switches indexed by the programming language,
38901         Switches indexed by the file name.
38902         (Collect_Arguments_And_Compile): Idem.
38903         Reflect the attribute name changes.
38904
38905         * prj-attr.adb:
38906         (Initialisation_Data): Change the names of some packages and
38907         attributes.
38908         (Initialize): process case insensitive associative arrays.
38909
38910         * prj-attr.ads:
38911         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38912
38913         * prj-dect.adb:
38914         (Parse_Attribute_Declaration): For case insensitive associative
38915          arrays, set the index string to lower case.
38916
38917         * prj-env.adb:
38918         Reflect the changes of the project attributes.
38919
38920         * prj-nmsc.adb:
38921         Replace Check_Naming_Scheme by Ada_Check and
38922         Language_Independent_Check.
38923
38924         * prj-nmsc.ads:
38925         Replaced Check_Naming_Scheme by 2 procedures:
38926         Ada_Check and Language_Independent_Check.
38927
38928         * prj-proc.adb:
38929         (Process_Declarative_Items): For case-insensitive associative
38930         arrays, set the index string to lower case.
38931         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38932         Prj.Nmsc.Check_Naming_Scheme.
38933
38934         * prj-tree.adb:
38935         (Case_Insensitive): New function
38936         (Set_Case_Insensitive): New procedure
38937
38938         * prj-tree.ads:
38939         (Case_Insensitive): New function
38940         (Set_Case_Insensitive): New procedure
38941         (Project_Node_Record): New flag Case_Insensitive.
38942
38943         * prj-util.adb:
38944         (Value_Of): new function to get the string value of a single
38945         string variable or attribute.
38946
38947         * prj-util.ads:
38948         (Value_Of): new function to get the string value of a single
38949         string variable or attribute.
38950
38951         * prj.adb:
38952         (Ada_Default_Spec_Suffix): New function
38953         (Ada_Default_Impl_Suffix): New function
38954         Change definitions of several constants to reflect
38955         new components of record types.
38956
38957         * prj.ads:
38958         (Naming_Data): Change several components to reflect new
38959         elements of naming schemes.
38960         (Project_Data): New flags Sources_Present and
38961         Language_Independent_Checked.
38962         (Ada_Default_Spec_Suffix): New function.
38963         (Ada_Default_Impl_Suffix): New function.
38964
38965         * snames.ads:
38966         Modification of predefined names for project manager: added
38967         Implementation, Specification_Exceptions, Implementation_Exceptions,
38968         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38969         Default_Switches, _Languages, Builder, Cross_Reference,
38970         Finder. Removed Body_Part, Specification_Append, Body_Append,
38971         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38972         Gnatlink.
38973
38974         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38975         Add comments.
38976
38977         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38978         not that it is Nil_Variable_Value.
38979
38980         * prj.ads: Add ??? for uncommented declarations
38981
38982 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38983
38984         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38985         constant, do not indicate possible modification, so that gigi can
38986         treat it as a bona fide constant.
38987
38988 2001-10-10  Robert Dewar  <dewar@gnat.com>
38989
38990         * sem_prag.adb: Add processing for pragma External.
38991
38992         * snames.ads: Add entry for pragma External.
38993
38994         * par-prag.adb: Add pragma External.
38995
38996         * snames.adb: Updated to match snames.ads.
38997
38998 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38999
39000         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
39001         a dynamic task if the allocator appears in an indexed assignment
39002         or selected component assignment.
39003
39004         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
39005         For a dynamic task in an assignment statement, use target of
39006         assignment to generate meaningful name.
39007
39008 2001-10-10  Ed Schonberg  <schonber@gnat.com>
39009
39010         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
39011         a generic package.
39012
39013         * einfo.ads: Body_Entity is also defined for generic package.
39014         Documentation change only
39015
39016         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
39017         others_choice for a discriminated component initialization,
39018         convert discriminant references into the corresponding discriminals.
39019
39020         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
39021         only if original type is private and expression has to be wrapped
39022         in a conversion.
39023
39024         * checks.adb:
39025         (Apply_Constraint_Check): Do not perform length check
39026         if expression is an aggregate with only an others_choice.
39027         (Length_N_Cond): two references to the same in_parameter
39028         (typically the discriminal in an init_proc) denote the same value.
39029         Two useful optimization uncovered by bugfixes above.
39030
39031 2001-10-10  Robert Dewar  <dewar@gnat.com>
39032
39033         * xeinfo.adb: Change int to char in translation of enumeration types.
39034         This fixes a problem in the C representation of component alignment.
39035         Add 2001 to copyright notice
39036
39037 2001-10-10  Richard Kenner  <kenner@gnat.com>
39038
39039         * decl.c: (validate_size): Do check size of object of integral type
39040         if it is a packed array type.
39041
39042 2001-10-10  Richard Kenner  <kenner@gnat.com>
39043
39044         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
39045         VAR_DECL for constant if not Is_Public but -O0.
39046
39047 2001-10-10  Richard Kenner  <kenner@gnat.com>
39048
39049         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
39050
39051 2001-10-10  Geert Bosch  <bosch@gnat.com>
39052
39053         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
39054         use '/' as switch character, allowing for absolute file names.
39055
39056 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
39057
39058         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
39059         FSF address.
39060
39061 2001-10-08  Geert Bosch  <bosch@gnat.com>
39062
39063         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
39064         Automatically build utilities when files need to be regenerated.
39065
39066 2001-10-08  Geert Bosch  <bosch@gnat.com>
39067
39068         * xsnames.adb: New utility for updating snames.ads and snames.adb
39069
39070 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
39071
39072         * Make-lang.in (ADAFLAGS): Add -W -Wall.
39073         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
39074         (gnat1): Also depend on attribs.o.
39075         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
39076         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
39077         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
39078         (ADAFLAGS): Add -W -Wall.
39079         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
39080         take out CFLAGS.
39081
39082         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
39083         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
39084         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
39085         Use $(ADAC), not $(CC), as compilation command.
39086
39087         (gnattools): Depend directly on tools to build, don't use
39088         recursive make.
39089         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
39090
39091         * einfo.h, sinfo.h: New files (autogenerated).
39092
39093 2001-10-08  Richard Henderson  <rth@redhat.com>
39094
39095         * comperr.adb (Abort_In_Progress): New.
39096         (Compiler_Abort): Use it to prevent recursion.
39097
39098 2001-10-08  Robert Dewar  <dewar@gnat.com>
39099
39100         * atree.adb: Set Error_Posted in Error node, helps error recovery.
39101
39102         * par-endh.adb (Output_End_Expected): We should also not test
39103         Error_Posted on the Error node, since now it is always set.
39104
39105         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
39106         to help error recovery. Part of general work on 9407-004.
39107
39108         * par.adb: Add ??? for misuse of error
39109
39110         * sem_res.adb:
39111         (Resolve): Defend against Error, fixes 9407-003.
39112         (Resolve_Discrete_Subtype_Indication): Defend against Error.
39113
39114         * sinfo.ads (N_Error): Now has Etype field (which will be set
39115         to Any_Type to help error recovery).
39116
39117 2001-10-08  Richard Kenner  <kenner@gnat.com>
39118
39119         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
39120         Consistently set MEM attributes from expression; fixes
39121         bootstrap failure on x86.
39122
39123 2001-10-08  Geert Bosch  <bosch@gnat.com>
39124
39125         * 5oosinte.adb: Add 2001 to copyright notice.
39126
39127 2001-10-08  Geert Bosch  <bosch@gnat.com>
39128
39129         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
39130
39131         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
39132
39133 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
39134
39135         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
39136
39137 2001-10-05  Geert Bosch  <bosch@gnat.com>
39138
39139         * adaint.h: Small formatting fix.
39140
39141 2001-10-04  Geert Bosch  <bosch@gnat.com>
39142
39143         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
39144         Arg is int, not FILE *, in dummy version of functions.
39145
39146         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
39147         Arg is int, not FILE *.
39148
39149 2001-10-04  Geert Bosch  <bosch@gnat.com>
39150
39151         * 3lsoccon.ads: Added file, missed with initial check ins.
39152
39153         * 4lintnam.ads: Fix header format.
39154         Change Linux to GNU/Linux.
39155
39156         * 5iosinte.adb: Change Linux to GNU/Linux.
39157
39158         * 5iosinte.ads: Change Linux to GNU/Linux.
39159
39160         * 5itaprop.adb: Change Linux to GNU/Linux.
39161
39162         * 5itaspri.ads: Change Linux to GNU/Linux.
39163         Update copyright notice.
39164
39165         * 5lintman.adb: Change Linux to GNU/Linux.
39166
39167         * 5lml-tgt.adb: Change Linux to GNU/Linux.
39168
39169         * 5losinte.ads: Change Linux to GNU/Linux.
39170
39171         * 5lsystem.ads: Change Linux to GNU/Linux.
39172
39173         * 5qosinte.adb: Change Linux to GNU/Linux.
39174
39175         * 5qosinte.ads: Change Linux to GNU/Linux.
39176
39177         * 5qparame.ads: Change Linux to GNU/Linux.
39178
39179         * 5qtaprop.adb: Change Linux to GNU/Linux.
39180
39181         * 5qtaspri.ads: Change Linux to GNU/Linux.
39182         Add 2001 to copyright notice.
39183
39184         * 5vintman.ads: Change Linux to GNU/Linux.
39185         Fix header format.  Add 2001 to copyright notice.
39186
39187         * g-soccon.ads: Change Linux to GNU/Linux.
39188
39189         * g-trasym.ads: Change Linux to GNU/Linux.
39190         Add 2001 to copyright notice.
39191
39192         * memtrack.adb: Change Linux to GNU/Linux.
39193
39194         * s-intman.ads: Change Linux to GNU/Linux.
39195         Add 2001 to copyright notice.  Fix header format.
39196
39197         * s-stache.adb: Change Linux to GNU/Linux.
39198
39199         * adaint.c: Change Linux to GNU/Linux.
39200
39201         * cio.c: Change Linux to GNU/Linux.
39202
39203         * cstreams.c: Change Linux to GNU/Linux.
39204
39205         * init.c: Change Linux to GNU/Linux.
39206
39207         * gmem.c: Change Linux to GNU/Linux.
39208
39209         * tracebak.c: Change Linux to GNU/Linux.
39210
39211
39212 2001-10-02  Geert Bosch  <bosch@gnat.com>
39213
39214         * misc.c (insert_default_attributes): Add dummy version.