OSDN Git Service

gcc/ada/
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2008-04-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
5         snames.ads, sprint.adb, stand.ads, stringt.ads,
6         styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
7         switch.ads, sysdep.c, table.adb, table.ads,
8         targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
9         trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
10         uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
11         vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
12         widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
13         xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
14         Fix comment typos.
15
16         * sem_ch10.adb, sem_ch10.ads,
17         sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
18         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
19         sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
20         sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
21         sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
22         sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
23         sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
24         sem_warn.ads: Fix comment typos.
25
26         * s-secsta.adb, s-sequio.ads, s-shasto.ads,
27         s-soflin.ads, s-stalib.ads, s-stausa.adb,
28         s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
29         s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
30         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
31         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
32         s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
33         s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
34         s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
35         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36         s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
37         s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
38         s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
39         s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
40         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
41         scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
42         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43         sem_cat.adb, sem_cat.ads: Fix comment typos.
44
45 2008-04-12  Joel Sherrill  <joel@oarcorp.com>
46
47         PR ada/35825
48         * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
49
50 2008-04-12  Arnaud Charlet  <charlet@adacore.com>
51
52         * s-linux-hppa.ads: Fix syntax errors.
53
54 2008-04-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55
56         * gnat_ugn.texi: Fix typos.
57         * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
58         restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
59         s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
60         s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
61         s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
62         s-finimp.adb, s-finroo.ads, s-fishfl.ads,
63         s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
64         s-hibaen.ads, s-htable.ads, s-imgcha.adb,
65         s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
66         s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
67         s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
68         s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
69         s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
70         s-osinte-darwin.ads, s-osinte-freebsd.ads,
71         s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
72         s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
73         s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
74         s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
75         s-parame-hpux.ads, s-parame-vms-alpha.ads,
76         s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
77         s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
78         s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
79         s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
80         s-rident.ads: Fix comment typos.
81
82 2008-04-09  Samuel Tardieu  <sam@rfc1149.net>
83
84         PR ada/28305
85         * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
86         environment if generic instance is a top-level one.
87
88 2008-04-09  Doug Rupp  <rupp@adacore.com>
89
90         * decl.c (validate_size): Set minimum size for fat pointers same as
91         access types. Code clean ups.
92
93         * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
94         (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
95
96         * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
97
98         * s-crtl.ads (malloc32) New function, alias for malloc
99         (realloc32) New function, alias for realloc
100
101         * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
102
103         * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
104         allocator size is 32 and default pointer size is 64.
105         (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
106         lhs type if smaller, whatever the modes.
107
108         * gigi.h (malloc32_decl): New macro definition
109
110         * utils.c (init_gigi_decls): New malloc32_decl
111         Various code clean ups.
112
113         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
114         Task_Address vice System.Address.
115
116         * s-taspri-vms.ads: Import System.Aux_DEC
117         (Task_Address): New subtype of System.Aux_DEC.Short_Address
118         (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
119
120         * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
121         Task_Address vice System.Address.
122
123         * s-inmaop-vms.adb: Import System.Task_Primitives
124         (To_Address): Unchecked convert to Task_Address vice System.Address
125
126         * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
127         expires now.
128         (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
129         (To_Address) Unchecked convert to Task_Address vice System.Address
130
131         * s-tpopde-vms.adb: Remove unnecessary warning pragmas
132
133         * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
134
135 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
136
137         * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
138         (fdesc_type_node): Define.
139         (null_fdesc_node): Likewise.
140         * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
141         uses descriptors for vtables and the type comes from a dispatch table,
142         return the descriptor type.
143         * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
144         uses descriptors for vtables and the type comes from a dispatch table,
145         build a descriptor in the static case and copy the existing one in the
146         non-static case.
147         (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
148         the type is a pointer-to-subprogram coming from a dispatch table,
149         return the null descriptor.
150         <N_Unchecked_Type_Conversion>: If the target uses descriptors for
151         vtables, the source type is the descriptor type and the target type
152         is a pointer type, first build the pointer.
153         * utils.c (init_gigi_decls): If the target uses descriptors for vtables
154         build the descriptor type and the null descriptor.
155
156 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
157
158         * decl.c (prepend_attributes): Fix typo.
159         * trans.c (Pragma_to_gnu): Likewise.
160         * utils.c (gnat_genericize): Likewise.
161
162 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
163             Richard Kenner  <kenner@adacore.com>
164
165         * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
166         * decl.c (gnat_to_gnu_entity): Adjust for above change.
167         <E_Record_Type>: Try to get a better form of the component for
168         packing, even if it has an integral mode.
169         <E_Record_Subtype>: Likewise.
170         * trans.c (gnat_to_gnu): Do not require BLKmode for the special
171         exception suppressing the final conversion between record types.
172
173 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
174
175         * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
176         alignment for space, promote the alignment of non-scalar variables with
177         no size and alignment.
178         * gigi.h (gnat_types_compatible_p): Declare.
179         * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
180         * trans.c (gnat_to_gnu): Revert revision 129339 change.  Minor cleanup.
181         * utils.c (gnat_types_compatible_p) : New predicate.
182         (convert): Use it throughout to test for cases where a mere view
183         conversion is sufficient.
184         * utils2.c (build_binary_op): Minor tweaks.
185         (build_unary_op): Likewise.
186
187 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
188
189         * decl.c (adjust_packed): Expand comment.
190
191 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
192
193         * s-tasuti.ads: Use Task_Address instead of System.Address.
194
195         * makeutl.adb (Path_Or_File_Name): New function
196
197         * nlists.ads, itypes.ads: Update comments.
198
199         * s-crtl.ads (malloc32, realloc32): New functions.
200
201         * s-auxdec.ads (Short_Address_Size): New constant.
202
203         * a-taside.adb, s-tasdeb.adb: Use Task_Address.
204
205         * s-ststop.ads, s-ststop.adb: New file.
206
207         * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
208         Minor reformatting.
209
210 2008-04-08  Pascal Obry  <obry@adacore.com>
211
212         * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
213         (Stop_Bits_Number): New type.
214         (Parity_Check): Likewise.
215         (Set): Add parameter to set the number of stop bits and
216         the parity. Parameter timeout is now a duration instead
217         of a plain integer.
218
219         * g-sercom-linux.adb:
220         Implement the stop bits and parity support for GNU/Linux.
221         Fix handling of timeout, it must be given in tenth of seconds.
222         
223         * g-sercom-mingw.adb:
224         Implement the stop bits and parity support for Windows.
225         Use new s-win32.ads unit instead of declaring Win32 services
226         directly into this body.
227         Update handling of timeout as now a duration.
228
229         * s-win32.ads, s-winext.ads: New files.
230
231 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
232             Arnaud Charlet  <charlet@adacore.com>
233
234         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
235
236         s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
237         s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
238
239         * s-osinte-lynxos-3.ads,
240         (Alternate_Stack): Remove when not needed. Simplify declaration
241         otherwise.
242         (Alternate_Stack_Size): New constant.
243
244         s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
245         'Unrestricted_Access.
246
247         * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
248         s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
249         s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
250         s-osinte-solaris.ads, s-osinte-vms.ads
251         (SA_ONSTACK): New constant.
252         (stack_t): New record type.
253         (sigaltstack): New imported function.
254         (Alternate_Stack): New imported variable.
255         (Alternate_Stack_Size): New constant.
256
257         * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
258
259         * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
260         s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
261         s-taspri-vms.ads (Task_Address): New subtype of System.Address
262         (Task_Address_Size): New constant size of System.Address
263         (Alternate_Stack_Size): New constant.
264
265         * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
266         (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
267         Establish the alternate stack if the platform makes use of n alternate
268         signal stack for stack overflows.
269         (Create_Task): Take into account the alternate stack in the stack size.
270         (Initialize): Save the address of the alternate stack into the ATCB for
271         the environment task.
272         (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
273
274         * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
275
276         * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
277
278         * s-intman-posix.adb: 
279         (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
280         alternate signal stack for stack overflows.
281
282         * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
283         x86-64, adjust the saved value of the stack pointer if the signal was
284         raised by a stack checking probe.
285         (HP-UX section): Use global __gnat_alternate_stack as signal handler
286         stack and only for SIGSEGV.
287         (Linux section): Likewise on x86 and x86-64.
288         [VxWorks section]
289         (__gnat_map_signal): Now static.
290         (__gnat_error_handler): Not static any more.
291         (__gnat_adjust_context_for_raise): New function. Signal context
292         adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
293         propagation circuitry.
294         (__gnat_error_handler): Second argument of a sigaction handler is a
295         pointer, not an int, and is unused.
296         Adjust signal context before mapping to exception.
297         Install signal handlers for LynxOS case.
298
299         * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
300         (Task_Id): Set size to Task_Address_Size
301         (To_Task_id): Unchecked convert from Task_Address vice System.Address
302         (To_Address): Unchecked convert to Task_Address vice System.Address
303
304         * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
305         address into the ATCB if the platform makes use of an alternate signal
306         stack for stack overflows.
307         (Free_Task): Add call to Finalize_Attributes_Link.
308         Add argument Relative_Deadline to pass the value specified for
309         the task. This is not yet used for any target.
310
311         * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
312         the value specified for the task.
313
314 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
315
316         (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
317         (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
318         s-vxwext-rtp.adb): New files.
319
320         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
321         Minor updates to accomodate changes above.
322
323 2008-04-08  Pascal Obry  <obry@adacore.com>
324
325         * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
326         s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
327         Use new s-win32.ads unit instead of declaration
328         from s-osinte-mingw.ads.
329         
330         * s-osinte-mingw.ads:
331         Move all non tasking based interface to s-win32.ads.
332         
333         * s-osprim-mingw.adb:
334         Remove duplicated declarations and use s-win32.ads
335         unit instead.
336
337 2008-04-08  Vincent Celier  <celier@adacore.com>
338             Arnaud Charlet  <charlet@adacore.com>
339
340         * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
341         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
342         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
343         mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
344         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
345
346         * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
347         mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
348         mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
349         mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
350         mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
351         mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
352         mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
353         mlib-tgt-specific-mingw.adb: New names.
354
355         * Makefile.in: 
356         On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
357         Get rid of gnatbl.
358         (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
359         Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
360         Minor updates for VMS
361
362         * gnatbl.c: Removed.
363
364 2008-04-08  Thomas Quinot  <quinot@adacore.com>
365
366         * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
367         g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
368         gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
369         a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
370         s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
371         ASCII.NUL throughout.
372
373 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
374             Matthew Heaney  <heaney@adacore.com>
375
376         * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
377         renaming.
378
379         * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,  
380         a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
381         to convention for non-RM specs.
382         Add descriptive header, and documented each operation
383         document each operation
384
385 2008-04-08  Robert Dewar  <dewar@adacore.com>
386             Bob Duff  <duff@adacore.com>
387             Gary Dismukes  <dismukes@adacore.com>
388             Ed Schonberg  <schonberg@adacore.com>
389
390         * alloc.ads: Add entries for Obsolescent_Warnings table
391
392         * einfo.ads, einfo.adb: Minor reformatting.
393         (Is_Discriminal): New subprogram.
394         (Is_Prival): New subprogram.
395         (Is_Protected_Component): New subprogram.
396         (Is_Protected_Private): Removed.
397         (Object_Ref, Set_Object_Ref): Removed.
398         (Prival, Set_Prival): Change assertion.
399         (Privals_Chain, Set_Privals_Chain): Removed.
400         (Prival_Link, Set_Prival_Link): New subprogram.
401         (Protected_Operation, Set_Protected_Operation): Removed.
402         (Protection_Object, Set_Protection_Object): New subprogram.
403         (Write_Field17_Name): Remove case for Object_Ref.
404         (Write_Field20_Name): Add case for Prival_Link.
405         (Write_Field22_Name): Remove case for Protected_Operation,
406         Privals_Chain.
407         Add case for Protection_Object.
408         (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
409         so clients
410         (Overlays_Constant): New flag
411         (Is_Constant_Object): New predicate
412         (Is_Standard_Character_Type): New predicate
413         (Optimize_Alignment_Space): New flag
414         (Optimize_Alignment_Time): New flag
415         (Has_Postconditions): New flag
416         (Obsolescent_Warrning): Field removed
417         (Spec_PPC_List): New field
418         (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
419         subprograms to get and set the relative deadline associated to a task.
420
421         * exp_attr.adb (May_Be_External_Call): Account for the case where the
422         Access attribute is part of a named parameter association.
423         (Expand_Access_To_Protected_Op): Test for the attribute occurring
424         within an init proc and use that directly as the scope rather than
425         traversing up to the protected operation's enclosing scope. Only apply
426         assertion on Is_Open_Scopes in the case the scope traversal is done.
427         For the init proc case use the address of the first formal (_init) as
428         the protected object reference.
429         Implement Invalid_Value attribute
430         (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
431         contents of the dispatch table there is no need to duplicate the
432         itypes associated with record types (i.e. the implicit full view
433         of private types).
434         Implement Enum_Val attribute
435         (Expand_N_Attribute_Reference, case Old): Properly handle appearence
436         within _Postconditions procedure
437         (Expand_N_Attribute_Reference, case Result): Implement new attribute
438
439         * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
440         a return statement calls a function that is not available in
441         configurable runtime.
442         (Analyze_If_Statement): don't optimize simple True/False cases in -O0
443         (Expand_Non_Function_Return): Generate call to _Postconditions proc
444         (Expand_Simple_Function_Return): Ditto
445
446         * frontend.adb: Add call to Sem_Aux.Initialize
447
448         * sem_aux.ads, sem_aux.adb: New file.
449
450         * par-prag.adb: Add entries for pragmas Precondition/Postcondition
451         Add new Pragma_Relative_Deadline.
452         Add support for pragmas Check and Check_Policy
453
454         * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
455         (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
456         (Analyze_Attribute): In case of attributes 'Alignment and 'size add
457         missing check because they are not allowed in CPP tagged types.
458         Add Sure parameter to Note_Possible_Modification calls
459         Add implementation of Invalid_Value attribute
460         Implement new attribute Has_Tagged_Values
461         Implement Enum_Val attribute
462         (Analyze_Attribute, case Range): Set Name_Req True for prefix of
463         generated attributes.
464         (Analyze_Attribute, case Result): If prefix of the attribute is
465         overloaded, it always resolves to the enclosing function.
466         (Analyze_Attribute, case Result): Properly deal with analysis when
467         Postconditions are not active.
468         (Resolve_Attribute, case Result): Properly deal with appearence during
469         preanalysis in spec.
470         Add processing for attribute Result
471
472         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
473         for operators.
474         (Analyze_Subprogram_Body): Install private_with_clauses when the body
475         acts as a spec.
476         (Check_Inline_Pragma): recognize an inline pragma that appears within
477         the subprogram body to which it applies.
478         (Analyze_Function_Return): Check that type of the expression of a return
479         statement in a function with a class-wide result is not declared at a
480         deeper level than the function.
481         (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
482         (Verify_Overriding_Indicator): Handle properly subprogram bodies for
483         user- defined operators.
484         (Install_Formals): Moved to spec to allow use from Sem_Prag for
485         analysis of precondition/postcondition pragmas.
486         (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
487         Last_Formal, along with lots of comments on what this is about
488         (Analyze_Subprogram_Body): Fix case where we move entities from the
489         spec to the body when there are no body entities (now possible with
490         precondition and postcondition pragmas).
491         (Process_PPCs): New procedure
492         (Analyze_Subprogram_Body): Add call to Process_PPCs
493
494         * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
495         clause.
496         (Pop_Scope): Restore Check_Policy_List on scope exit
497         (Push_Scope): Save Check_Policy_List on scope entry
498         Change name In_Default_Expression      => In_Spec_Expression
499         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
500         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
501         (Analyze_Object_Renaming): Allow 'Reference as object
502         (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
503         (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
504         of restriction identifier.
505         Add Sure parameter to Note_Possible_Modication calls
506
507         * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
508         Don't check for primitive operations when calling Rep_Item_Too_Late.
509         (Process_Import_Or_Interface): Do not place flag on formal
510         subprograms.
511         (Analyze_Pragma, case Export): If the entity is a deferred constant,
512         propagate information to full view, which is the one elaborated by the
513         back-end.
514         (Make_Inline): the pragma is effective if it applies to an internally
515         generated subprogram declaration for a body that carries the pragma.
516         (Analyze_Pragma, case Optimize_Alignment): Set new flag
517         Optimize_Alignment_Local.
518         (Analyze_PPC_In_Decl_Part): New procedure
519         (Get_Pragma_Arg): Moved to outer level
520         (Check_Precondition_Postcondition): Change to allow new visibility
521         rules for package spec
522         (Analyze_Pragma, case Check_Policy): Change placement rules to be
523         same as pragma Suppress/Unsuppress.
524         Change name In_Default_Expression      => In_Spec_Expression
525         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
526         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
527         (Check_Precondition_Postcondition): Do proper visibility preanalysis
528         for the case of these pragmas appearing in the spec.
529         (Check_Enabled): New function
530         (Initialize): New procedure
531         (Tree_Read): New procedure
532         (Tree_Write): New procedure
533         (Check_Precondition_Postcondition): New procedure
534         Implement pragmas Check and Check_Policy
535         Merge Assert processing with Check
536
537         * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
538         New warning flag -gnatw.e
539
540         * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
541         returning whether a task (or main procedure) has a pragma
542         Relative_Deadline.
543         (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
544         (or main procedure) has a pragma Relative_Deadline.
545         Add Next_Pragma field to N_Pragma node
546         (PPC_Enabled): New flag
547         (Next_Pragma): Now used for Pre/Postcondition processing
548
549         * snames.h, snames.ads, snames.adb: New standard name
550         Inherit_Source_Path
551         Add entry for 'Invalid_Value attribute
552         Add entry for new attribute Has_Tagged_Values
553         Add entry for Enum_Val attribute
554         Add new standard names Aggregate, Configuration and Library.
555         Add _Postconditions
556         Add _Result
557         Add Pragma_Precondition
558         Add Pragma_Postcondition
559         Add Attribute_Result
560         New standard name Archive_Builder_Append_Option
561         (Preset_Names): Add _relative_deadline and relative_deadline definitions
562         There was also a missing non_preemptive_within_priorities.
563         (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
564         Relative_Deadline.
565         Add support for pragmas Check and Check_Policy
566
567         * tree_gen.adb: Call Sem_Aux.Tree_Write
568
569         * tree_in.adb: Call Sem_Aux.Tree_Read
570
571         * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
572         sequence
573
574         * exp_intr.adb (Expand_Source_Info): New Build_Location calling
575         sequence
576
577         * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
578         (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
579         Relative_Deadline.
580         (Expand_Pragma_Check): New procedure
581
582         * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
583         buffer.
584
585         * sinfo.adb (PPC_Enabled): New flag
586
587 2008-04-08  Robert Dewar  <dewar@adacore.com>
588             Gary Dismukes  <dismukes@adacore.com>
589             Javier Miranda  <miranda@adacore.com>
590             Ed Schonberg  <schonberg@adacore.com>
591
592         * fe.h: Remove global Optimize_Alignment flag, no longer used
593
594         * layout.adb: Test Optimize_Alignment flags rather than global switch
595
596         * lib.ads, lib.adb: New OA_Setting field in library record
597
598         * lib-load.adb: New OA_Setting field in library record
599
600         * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
601         units mentioned in limited_with_ clauses in the ali file, with an
602         'Y' marker.
603         New Ox fields in U line
604
605         * opt.adb: New flag Optimize_Alignment_Local
606         (Check_Policy_List[_Config]): New flags
607
608         * opt.ads (Invalid_Value_Used): New flag
609         New switch Optimize_Alignment_Local
610         (Warn_On_Parameter_Order): New flag
611         (Check_Policy_List[_Config]): New flags
612
613         * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
614         limited_with clauses.
615         New data structures for Optimize_Alignment
616
617         * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
618         New procedure
619         (Check_Consistent_Optimize_Alignment): Rework for new structure
620         (Check_Consistent_Restrictions): Fix incorrect error message
621
622         sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
623         created class-wide type (to the Parent field of the specific type).
624         (Install_Siblings): Handle properly private_with_clauses on subprogram
625         bodies and on generic units.
626         (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
627         illegal limited_with_clause that names a non-existent package.
628         (Check_Body_Required): Determine whether a unit named a limited_with
629         clause needs a body.
630         (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
631         Capture Optimize_Alignment settings to set new OA_Setting field in
632         library record.
633         (Build_Limited_Views): Include task and protected type declarations.
634
635         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
636         case of a possible constant redeclaration where the current object is
637         an entry index constant.
638         (Analyze_Object_Declaration): Generate an error in case of CPP
639         class-wide object initialization.
640         (Analyze_Object_Declaration): Add extra information on warnings for
641         declaration of unconstrained objects.
642         (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
643         conflicts with the setting of Stored_Constraint in the case where the
644         access type entity has already been created as an E_Incomplete_Type due
645         to a limited with clause.
646         Use new Is_Standard_Character_Type predicate
647         (Analyze_Object_Declaration): Apply access_constant check only after
648         expression has been resolved, given that it may be overloaded with
649         several access types.
650         (Constant_Redeclaration): Additional legality checks for deferred
651         constant declarations tha involve anonymous access types and/or null
652         exclusion indicators.
653         (Analyze_Type_Declaration): Set Optimize_Alignment flags
654         (Analyze_Subtype_Declaration): Ditto
655         (Analyze_Object_Declaration): Ditto
656         (Analyze_Object_Declaration): Don't count tasks in generics
657         Change name In_Default_Expression      => In_Spec_Expression
658         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
659         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
660         (Process_Discriminants): Additional check for illegal use of default
661         expressions in access discriminant specifications in a type that is not
662         explicitly limited.
663         (Check_Abstract_Overriding): If an inherited function dispaches on an
664         access result, it must be overridden, even if the type is a null
665         extension.
666         (Derive_Subprogram): The formals of the derived subprogram have the
667         names and defaults of the parent subprogram, even if the type is
668         obtained from the actual subprogram.
669         (Derive_Subprogram): In the presence of interfaces, a formal of an
670         inherited operation has the derived type not only if it descends from
671         the type of the formal of the parent operation, but also if it
672         implements it. This is relevant for the renamings created for the
673         primitive operations of the actual for a formal derived type.
674         (Is_Progenitor): New predicate, to determine whether the type of a
675         formal in the parent operation must be replaced by the derived type.
676
677         * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
678         predicate recursive to handle components that have a user-defined
679         Initialize procedure. Handle controlled derived types whose ancestor
680         has a user-defined Initialize procedured.
681         (Note_Possible_Modification): Add Sure parameter, generate warning if
682         sure modification of constant
683         Use new Is_Standard_Character_Type predicate
684         (Find_Parameter_Type): when determining whether a protected operation
685         implements an interface operation, retrieve the type of the formal from
686         the entity when the formal is an access parameter or an
687         anonymous-access-to-subprogram.
688         Move Copy_Parameter_List to sem_util, for use when building stubbed
689         subprogram bodies.
690         (Has_Access_Values): Tagged types now return False
691         (Within_HSS_Or_If): New procedure
692         (Set_Optimize_Alignment_Flags): New procedure
693         Change name In_Default_Expression      => In_Spec_Expression
694         Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
695         Change name Pre_Analyze_And_Resolve    => Preanalyze_And_Resolve
696
697 2008-04-08  Tristan Gingold  <gingold@adacore.com>
698
699         * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
700
701 2008-04-08  Tristan Gingold  <gingold@adacore.com>
702
703 PR ada/10768
704
705         * cuintp.c: Fix 16 bits issue for AVR.
706         On AVR, integer is 16 bits, so it can't be used to do math with
707         Base (=32768).
708         So use long_integer instead.
709
710 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
711
712         * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
713         System.OS_Primitives.
714         Change type of various constants, parameters and local variables from
715         Time to representation type OS_Time.
716         (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
717         Remove the declaration of constant Mili_F from several routines. New
718         body for internal package Conversions_Operations.
719         (Time_Of): Add default parameters for several formals.
720
721         * a-caldel.adb: Minor reformatting
722
723         * a-calend.ads, a-calend.adb: New body for internal package
724         Conversions_Operations.
725         (Time_Of): Add default parameters for several formals.
726
727         * Makefile.rtl: Add a-ststop
728         Add Ada.Calendar.Conversions to the list of runtime files.
729         Add g-timsta
730
731         * a-calcon.adb, a-calcon.ads: New files.
732
733 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
734             Tristan Gingold  <gingold@adacore.com>
735
736         * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
737         (Install_Restricted_Handlers): New procedure
738         which is a simplified version of Install_Handlers that does not store
739         previously installed.
740
741         * s-interr-vxworks.adb: Fix ACATS cxc3001
742         On VxWorks interrupts can't be detached.
743         (Install_Restricted_Handlers): New procedure.
744
745         * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
746         procedure.
747
748 2008-04-08  Olivier Hainque  <hainque@adacore.com>
749
750         * s-intman-vxworks.ads, s-intman-vxworks.adb
751         (Map_And_Raise_Exception): Remove. Was an import of only part of the
752         required services already implemented elsewhere.
753         (Notify_Exception): Delete body, import __gnat_error_handler instead.
754         (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
755         argument passed to the handler, which we need for ZCX propagation
756         purposes.
757
758 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
759
760         * adaint.h, adaint.c (__gnat_current_time_string): New routine.
761
762         * g-timsta.adb, g-timsta.ads: New files.
763
764 2008-04-08  Robert Dewar  <dewar@adacore.com>
765
766         * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
767         (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
768         (Raise_Exception_Always): Fix documentation accordingly
769
770 2008-04-08  Robert Dewar  <dewar@adacore.com>
771
772         * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
773         Stream_Convert)
774
775         * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
776         FOnly
777
778 2008-04-08  Javier Miranda  <miranda@adacore.com>
779             Robert Dewar  <dewar@adacore.com>
780             Ed Schonberg  <schonberg@adacore.com>
781
782         * a-tags.adb (Register_Interface_Offset): New subprogram.
783         (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
784         (To_Predef_Prims_Table_Ptr): Removed.
785         (Acc_Size): Removed.
786         (To_Acc_Size): Removed.
787         (Parent_Size): Modified to the call the subprogram returning the size of
788         the parent by means of the new TSD component Size_Func.
789
790         * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
791         (DT_Offset_To_Top_Offset): New constant value that is used to generate
792         code referencing the Offset_To_Top component of the dispatch table's
793         prologue.
794         (Prim_Ptr): New declaration of access to procedure. Used to avoid the
795         use of 'address to initialize dispatch table slots.
796         (Size_Func): New component of the TSD. Used by the run-time to call the
797         size primitive of the tagged type.
798
799         * checks.adb (Apply_Access_Check): Avoid check when accessing the
800         Offset_To_Top component of a dispatch table.
801         (Null_Exclusion_Static_Checks): If the non-null access type appears in a
802         deferred constant declaration. do not add a null expression, to prevent
803         spurious errors when full declaration is analyzed.
804         (Apply_Discriminant_Check): If both discriminant constraints share a
805         node which is not static but has no side effects, do not generate a
806         check for that discriminant.
807         (Generate_Index_Checks): Set Name_Req to true in call to duplicate
808         subexpr, since the prefix of an attribute is a name.
809
810         * checks.ads: Fix nit in comment.
811
812         * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
813         and body of predefined primitives in case of CPP tagged type
814         derivations.
815         (Freeze_Type): Deal properly with no storage pool case
816         (Make_Predefined_Primitive_Specs): Generate specification of abstract
817         primitive Deep_Adjust if a nonlimited interface is derived from a
818         limited interface.
819         (Build_Dcheck_Functions): Create discriminant-checking functions only
820         for variants that have some component(s).
821         (Build_Slice_Assignment): In expanded code for slice assignment, handle
822         properly the case where the slice bounds extend to the last value of the
823         underlying representation.
824         (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
825         (Is_Variable_Size_Record): An array component has a static size if
826         index bounds are enumeration literals.
827
828         * exp_disp.adb (Make_DT): Use the first subtype to determine whether
829         an external tag has been specified for the type.
830         (Building_Static_DT): Add missing support for private types.
831         (Make_DT): Add declaration of Parent_Typ to ensure consistent access
832         to the entity associated with the parent of Typ. This is done to
833         avoid wrong access when the parent is a private type.
834         (Expand_Interface_Conversion): Improve error message when the
835         configurable runtime has no support for dynamic interface conversion.
836         (Expand_Interface_Thunk): Add missing support to interface types in
837         configurable runtime.
838         (Expand_Dispatching_Call): remove obsolete code.
839         (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
840         ensure that all subtypes and aggregates associated with dispatch
841         tables have the attribute Is_Dispatch_Table_Entity set to true.
842         (Register_Primitive): Rename one variable to improve code reading.
843         Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
844         of the pointer to the 'size primitive in the TSD.
845
846         * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
847         (RE_Offset_To_Top_Ptr): New entity.
848         (RE_Register_Interface_Offset): New entity.
849         (RE_Set_Dynamic_Offset_To_Top): New entity.
850         (RE_Set_Offset_To_Top): Removed entity.
851         (RE_Prim_Ptr): New entity
852         (RE_Size_Func): New entity
853         (RE_Size_Ptr): New entity
854         (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
855         (Ada_Dispatching_Child): Define this new subrange.
856         (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
857          RE_Time_Span, and RE_Time_Span_Zero).
858         (RE_Unit_Table): Add new required run-time calls
859
860         * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
861         children.
862
863         * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
864         (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
865          initializes the Offset_To_Top component of a dispatch table.
866         (Build_Predef_Prims): Removed.
867         (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
868          its actual code.
869         (Build_Set_Size_Function): New subprogram.
870
871         * exp_ch13.adb: Do not generate storage variable for storage_size zero
872         (Expand): Handle setting/restoring flag Inside_Freezing_Actions
873
874 2008-04-08  Robert Dewar  <dewar@adacore.com>
875
876         * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
877         computing Fore when Exp > 0
878
879 2008-04-08  Robert Dewar  <dewar@adacore.com>
880
881         * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
882
883         * errout.adb: Remove Big_String_Ptr declarations (now in Types)
884         Change name Is_Style_Msg to Is_Style_Or_Info_Msg
885
886         * fmap.adb: Remove Big_String declarations (now in Types)
887         (No_Mapping_File): New Boolean global variable
888         (Initialize): When mapping file cannot be read, set No_Mapping_File to
889         False.
890         (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
891         tables were empty before adding entries, open the mapping file
892         with Truncate = True, instead of delete/re-create.
893
894         * fname-sf.adb: Remove Big_String declarations (now in Types)
895
896         * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
897         s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
898         big pointer types
899
900         * table.ads: Add for Table_Ptr'Storage_Size use 0
901
902         * types.ads: Add Big_String declarations
903         Add Size_Clause of zero for big pointer types
904
905 2008-04-08  Vincent Celier  <celier@adacore.com>
906
907         * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
908         (Usage): Add line for switch --subdirs=
909         Add new switch -eL, to follow symbolic links when processing project
910         files.
911
912         * gnatcmd.adb: Process switches -eL and --subdirs=
913         (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
914         Program_Name to get proper tool names when AAMP_On_Target is set.
915         (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
916         AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
917         Osint.Program_Name).
918
919         * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
920         (Usage): Add lines for switches -eL and --subdirs=
921
922         * makeusg.adb: Add line for switch --subdirs=
923
924         * prj.ads: 
925         (Source_Data): New Boolean component Compiled, defaulted to True
926         (Empty_File_Name: New global variable in private part, initialized in
927         procedure Initialize.
928         (Subdirs_Option): New constant string
929         (Subdirs): New String_Ptr global variable
930         (Language_Config): New component Include_Compatible_Languages
931         (Project_Qualifier): New type for project qualifiers
932         (Project_Data): New component Qualifier
933         (Project_Configuration): New component Archive_Builder_Append_Option
934
935         * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
936         another imported project indicate the name of this imported project.
937         (Check_File): When a unit is in two project files, indicate the project
938         names and the paths of the source files for each project.
939         (Add_Source): Set Compiled to False if compiler driver is empty. Only
940         set object, dependency and switches file names if Compiled is True.
941         (Process_Compiler): Allow the empty string for value of attribute Driver
942         (Get_Directories): When Subdirs is not null and Object_Dir is not
943          specified, locate and create if necessary the actual object dir.
944         (Locate_Directory): When Subdirs is not empty and Create is not the
945         empty string, locate and create if necessary the actual directory
946         as a subdirectory of directory Name.
947         (Check_Library_Attributes.Check_Library): Allow a project where the only
948         "sources" are header files of file based languages to be imported by
949         library projects, in multi-language mode (gprbuild).
950         (Check_Library_Attributes.Check_Library): In multi-language mode
951         (gprbuild), allow a library project to import a project with no
952         sources, even when this is not declared explicitly.
953         (Check_If_Externally_Built): A virtual project extending an externally
954         built project is also externally built.
955         (Check_Library_Attributes): For a virtual project extending a library
956         project, inherit the library directory.
957         (Process_Project_Level_Array_Attributes): Process new attribute
958         Inherit_Source_Path.
959         For projects with specified qualifiers "standard", "library" or
960         "abstract", check that the project conforms to the qualifier.
961         (Process_Project_Level_Simple_Attributes): Process new attribute
962          Archive_Builder_Append_Option.
963
964         * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
965         (Normalize_Compiler_Switches): Only keep compiler switches that are
966         passed to gnat1 by the gcc driver and that are stored in the ALI file
967         by gnat1.
968         Do not take into account switc -save-temps
969
970         * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
971         gprmake is called with -eL.
972         (Scan_Arg): Recognize switch -eL
973         (Usage): Add line for switch -eL
974
975         * prj.adb (Initialize): Initialize Empty_File_Name
976         (Project_Empty): New component Qualifier
977
978         * prj-attr.ads, prj-attr.adb: New project level attribute
979         Inherit_Source_Path.
980         New project level attribute Archive_Builder_Append_Option
981
982         * prj-dect.adb: Replace System.Strings by GNAT.Strings.
983
984         * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
985         <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
986         upward compatibility.
987
988         * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
989         each Trying ..." on different lines.
990         (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
991         is "configuration" when not in configuration. Fail when in configuration
992         when a specified qualifier is other than "configuration".
993
994         * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
995         full associative array together.
996         (Recursive_Process): Put the project qualifier in the project data
997         
998         * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
999         (Set_Project_Qualifier_Of): New procedure
1000
1001 2008-04-08  Robert Dewar  <dewar@adacore.com>
1002
1003         * errout.ads: Update comments for new handling of info: messages
1004
1005         * erroutc.adb (Matches): New procedure
1006         (Warning_Specifically_Suppressed): Modified to handle multiple * chars
1007         (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
1008          info messages as well as style messages.
1009
1010         * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
1011
1012         * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
1013         subprograms.
1014         (Check_A_Call): Special "info: " warnings now have ? in the text
1015         (Elab_Warning): Use info message in static case
1016
1017 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1018
1019         * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
1020         whether an array aggregate with static bounds and scalar components
1021         should be expanded into a static constant.
1022
1023 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
1024             Ed Schonberg  <schonberg@adacore.com>
1025             Robert Dewar  <dewar@adacore.com>
1026
1027         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
1028         Has_Stream_Attribute_ Definition when checking for available stream
1029         attributes on parameters of a limited type in Ada 2005. Necessary for
1030         proper recognition of visible stream attribute clauses.
1031         (Has_Stream_Attribute_Definition): If the type is derived from a
1032         private type, then use the derived type's underlying type for checking
1033         whether it has stream attributes.
1034         (Validate_Object_Declaration): The check for a user-defined Initialize
1035         procedure applies also to types with controlled components or a
1036         controlled ancestor.
1037         Reject an object declaration in a preelaborated unit if the type is a
1038         controlled type with an overriding Initialize procedure.
1039         (Validate_Remote_Access_To_Class_Wide_Type): Return without further
1040         checking when the parent of a dereference is a selected component and
1041         the name has not been analyzed.
1042
1043         * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
1044         prefixes that are invalid explicit dereferences of remote
1045         access-to-class-wide values, first checking whether the selected
1046         component is a prefixed form of call to a tagged operation.
1047         (Analyze_Call): Remove code that issues an error for limited function
1048         calls in illegal contexts, as we now support all of the contexts that
1049         were forbidden here.
1050         Allow a function call that returns a task.and appears as the
1051         prefix of a selected component.
1052         (Analyze_Reference): Give error message if we try to make a 'Reference
1053         for an object that is atomic/aliased without its type having the
1054         corresponding attribute.
1055         (Analyze_Call): Remove condition checking for attributes to allow
1056         calls to functions with inherently limited results as prefixes of
1057         attributes. Remove related comment about Class attributes.
1058         (Analyze_Selected_Component): If the prefix is a remote type, check
1059         whether this is a prefixed call before reporting an error.
1060         (Complete_Object_Operation): If the controlling formal is an access to
1061         variable reject an actual that is a constant or an access to one.
1062         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1063         primitive operations from base type.
1064
1065         * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
1066         build-in-place
1067         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1068         (Expand_N_Selected_Component): Test for prefix that is a build-in-place
1069         function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
1070         (Expand_N_Slice): Test for prefix that is a build-in-place function call
1071         and call Make_Build_In_Place_Call_In_Anonymous_Context.
1072         (Analyze_Call): Remove code that issues an error for limited function
1073         calls in illegal contexts, as we now support all of the contexts that
1074         were forbidden here.
1075         New calling sequence for Get_Simple_Init_Val
1076         (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
1077         (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
1078
1079 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1080             Ed Schonberg  <schonberg@adacore.com>
1081             Robert Dewar  <dewar@adacore.com>
1082
1083         * exp_ch2.adb: Minor reformatting.
1084         (Expand_Entry_Index_Parameter): Set the type of the identifier.
1085         (Expand_Entry_Reference): Add call to Expand_Protected_Component.
1086         (Expand_Protected_Component): New routine.
1087         (Expand_Protected_Private): Removed.
1088         Add Sure parameter to Note_Possible_Modification calls
1089
1090         * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
1091         generated subprogram declaration must inherit the overriding indicator
1092         from the instantiation node.
1093         (Validate_Access_Type_Instance): If the designated type of the actual is
1094         a limited view, use the available view in all cases, not only if the
1095         type is an incomplete type.
1096         (Instantiate_Object):  Actual is illegal if the formal is null-excluding
1097         and the actual subtype does not exclude null.
1098         (Process_Default): Handle properly abstract formal subprograms.
1099         (Check_Formal_Package_Instance): Handle properly defaulted formal
1100         subprograms in a partially parameterized formal package.
1101         Add Sure parameter to Note_Possible_Modification calls
1102         (Validate_Derived_Type_Instance): if the formal is non-limited, the
1103         actual cannot be limited.
1104         (Collect_Previous_Instances): Generate instance bodies for subprograms
1105         as well.
1106
1107         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
1108         try to set RM_Size.
1109         Add Sure parameter to Note_Possible_Modification calls
1110         (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
1111         (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
1112         constant overlaid by variable and issue warning.
1113         Use new Is_Standard_Character_Type predicate
1114         (Analyze_Record_Representation_Clause): Check that the specified
1115         Last_Bit is not less than First_Bit - 1.
1116         (Analyze_Attribute_Definition_Clause, case Address): Check for
1117         self-referential address clause
1118
1119         * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
1120         detection mechanism when the lhs is a prival.
1121         (Analyze_Assignment): Call Check_Unprotected_Access to detect
1122         assignment of a pointer to protected data, to an object declared
1123         outside of the protected object.
1124         (Analyze_Loop_Statement): Check for unreachable code after loop
1125         Add Sure parameter to Note_Possible_Modication calls
1126         Protect analysis from previous syntax error such as a scope mismatch
1127         or a missing begin.
1128         (Analyze_Assignment_Statement): The assignment is illegal if the
1129         left-hand is an interface.
1130
1131         * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
1132         violation of restriction No_Implicit_Conditionals
1133         Add Sure parameter to Note_Possible_Modication calls
1134         Use new Is_Standard_Character_Type predicate
1135         (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
1136         call as operator. Fixes problems (e.g. validity checking) which
1137         come from the result looking as though it does not come from source).
1138         (Resolve_Call): Check case of name in named parameter if style checks
1139         are enabled.
1140         (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
1141         from the checking that such calls should not occur from an entry body.
1142         (Resolve_Call): If the return type of an Inline_Always function
1143         requires the secondary stack, create a transient scope for the call
1144         if the body of the function is not available for inlining.
1145         (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
1146         that are actuals for in-out formals.
1147         (Try_Object_Operation): If prefix is a tagged protected object,retrieve
1148         primitive operations from base type.
1149         (Analyze_Selected_Component): If the context is a call to a protected
1150         operation the parent may be an indexed component prior to expansion.
1151         (Resolve_Actuals): If an actual is of a protected subtype, use its
1152         base type to determine whether a conversion to the corresponding record
1153         is needed.
1154         (Resolve_Short_Circuit): Handle pragma Check
1155
1156         * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
1157         Use new Is_Standard_Character_Type predicate
1158         (Eval_Relational_Op): Catch more cases of string comparison
1159
1160 2008-04-08  Robert Dewar  <dewar@adacore.com>
1161             Gary Dismukes  <dismukes@adacore.com>
1162
1163         * s-rident.ads: Add No_Default_Initialization restriction
1164
1165         * exp_tss.adb: 
1166         (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
1167         (Set_TSS): Handle No_Default_Initialization case
1168
1169         * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
1170         No_Default_Initialization
1171         (Expand_N_Subprogram_Body): Remove redundant initialization of out
1172         parameters when Normalize_Scalars is active.
1173         (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
1174         Fix casing error in formal parameter name in call
1175         (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
1176         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1177         dispatching call on VM targets.
1178
1179 2008-04-08  Gary Dismukes  <dismukes@adacore.com>
1180             Thomas Quinot  <quinot@adacore.com>
1181
1182         * exp_ch7.adb (Find_Final_List): Change the test for generating a
1183         selected component from an access type's Associated_Final_Chain to
1184         check for the presence of that field, rather than assuming it exists
1185         for all named access types.
1186         (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
1187         procedure to call at the end of the generated cleanup procedure.
1188         (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
1189         and an At_End_Proc already exists in the handled sequence of statements
1190         for which cleanup actions are being expanded, the original cleanup
1191         action must be preserved.
1192
1193 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1194             Ed Schonberg  <schonberg@adacore.com>
1195             Robert Dewar  <dewar@adacore.com>
1196             Gary Dismukes  <dismukes@adacore.com>
1197
1198         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
1199         Build_Unprotected_Subprogram_Body): Generate debug info for
1200         declarations related to the handling of private data in task and
1201         protected types.
1202         (Debug_Private_Data_Declarations): New subprogram.
1203         (Install_Private_Data_Declarations): Remove all debug info flagging.
1204         This is now done by Debug_Private_Data_Declarations at the correct
1205         stage of expansion.
1206         (Build_Simple_Entry_Call): If the task name is a function call, expand
1207         the prefix into an object declaration, and make the surrounding block a
1208         task master.
1209         (Build_Master_Entity): An internal block is a master if it wraps a call.
1210         Code reformatting, update comments. Code clean up.
1211         (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
1212         (Replicate_Entry_Formals): If the formal is an access parameter or
1213         anonymous access to subprogram, copy the original tree to create new
1214         entities for the formals of the subprogram.
1215         (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
1216         for tasks to store the value passed using pragma Relative_Deadline.
1217         (Make_Task_Create_Call): Add the Relative_Deadline argument to the
1218         run-time call to create a task.
1219         (Build_Wrapper_Spec): If the controlling argument of the interface
1220         operation is an access parameter with a non-null indicator, use the
1221         non-null indicator on the wrapper.
1222
1223         * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
1224         present, which it may not be in the case where the type entity is an
1225         incomplete view brought in by a limited with.
1226         (Analyze_Task_Type): Only retrieve the full view when present, which it
1227         may not be in the case where the type entity is an incomplete view brought
1228         in by a limited with.
1229         (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
1230         private components of a protected type, to prevent the generation of freeze
1231         nodes for which there is no proper scope of elaboration.
1232
1233         * exp_util.ads, exp_util.adb
1234         (Remove_Side_Effects): If the expression is a function call that returns a
1235         task, expand into a declaration to invoke the build_in_place machinery.
1236         (Find_Protection_Object): New routine.
1237         (Remove_Side_Effects): Also make a copy of the value
1238         for attributes whose result is of an elementary type.
1239         (Silly_Boolean_Array_Not_Test): New procedure
1240         (Silly_Boolean_Array_Xor_Test): New procedure
1241         (Is_Volatile_Reference): New function
1242         (Remove_Side_Effects): Use Is_Volatile_Reference
1243         (Possible_Bit_Aligned_Component): Handle slice case properly
1244
1245         * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
1246         case test to Exp_Util
1247         (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
1248
1249 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1250
1251         * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
1252         in call
1253         (Add_RACW_Features): When processing an RACW in another unit than the
1254         main unit, set Body_Decls to No_List to indicate that the bodies of
1255         the type's TSS must not be generated.
1256         (GARLIC_Support.Add_RACW_Read_Attribute,
1257         GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
1258         Body_Decls is No_List.
1259         (PolyORB_Support.Add_RACW_Read_Attribute,
1260         PolyORB_Support.Add_RACW_Write_Attribute,
1261         PolyORB_Support.Add_RACW_From_Any,
1262         PolyORB_Support.Add_RACW_To_Any,
1263         PolyORB_Support.Add_RACW_TypeCode): Same.
1264         (Transmit_As_Unconstrained): New function.
1265         (Build_Ordered_Parameters_List): Use the above to order parameters.
1266         (GARLIC_Support.Build_General_Calling_Stubs):
1267         Use the above to determine which parameters to unmarshall using 'Input
1268         at the point where their temporary is declared (as opposed to later on
1269         with a 'Read call).
1270         (PolyORB_Support.Build_General_Calling_Stubs):
1271         Use the above to determine which parameters to unmarshall using From_Any
1272         at the point where their temporary is declared (as opposed to later on
1273         with an assignment).
1274
1275 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1276
1277         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
1278         an Input function for an access type, do not perform default
1279         initialization on the local variable that receives the value, to
1280         prevent spurious warnings when the type is null-excluding.
1281
1282 2008-04-08  Robert Dewar  <dewar@adacore.com>
1283             Ed Schonberg  <schonberg@adacore.com>
1284
1285         * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
1286         units.
1287         (Size_Known): Generic formal scalar types have known at compile
1288         time size, so remove check.
1289         Fix casing error in formal parameter name in call
1290         (Freeze_Subprogram): If the subprogram is a user-defined operator,
1291         recheck its overriding indication.
1292
1293 2008-04-08  Vincent Celier  <celier@adacore.com>
1294
1295         * gnat1drv.adb: Send all messages indicating an error to standard error
1296
1297 2008-04-08  Robert Dewar  <dewar@adacore.com>
1298
1299         * gnatbind.adb (Restriction_Could_Be_Set): New procedure
1300         (List_Applicable_Restrictions): Do not list existing restrictions
1301
1302 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1303
1304         * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
1305         add a pointer to generic sockets literature
1306         do not mention that the given example is "typical" usage.
1307         Remove obsolete comment about multicast not being supported on Windows.
1308         (Connect_Socket): Make Server mode IN rather than IN OUT
1309         since this formal is never modified.
1310
1311 2008-04-08  Robert Dewar  <dewar@adacore.com>
1312
1313         * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
1314         the declaration for some different entity.
1315         (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
1316         list is precent (following the parent subtype indication), display
1317         appropriate "and" keyword.
1318
1319         * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
1320         Remove unnecessary calls to Init_Size_Align and Init_Esize.
1321         Add notes on use of Parent field of an Itype
1322
1323 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1324             Robert Dewar  <dewar@adacore.com>
1325             Gary Dismukes  <dismukes@adacore.com>
1326
1327         * lib-xref.adb (Is_On_LHS): Remove dead code
1328         (Output_Overriden_Op): If the overridden operation is itself inherited,
1329         list the ancestor operation, which is the one whose body or absstract
1330         specification is actually being overridden. For source navigation
1331         purposes.
1332
1333         * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
1334         operation is primitive for the type.
1335         (Declare_Inherited_Private_Subprograms): If the new operation overrides
1336         an inherited private subprogram, set properly the Overridden_Operation
1337         attribute, for better cross-reference information.
1338         (Analyze_Package_Specification): Do late analysis of spec PPCs
1339         (Install_Private_Declaration, Uninstall_Declarations): Save/restore
1340         properly the full view and underlying full views of a private type in a
1341         child unit, whose full view is derived from a private type in a parent
1342         unit, and whose own full view becomes visible in the child body.
1343
1344         * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
1345         primitive operation after the type has been frozen, add an explicit
1346         reference to the type and the operation, because other primitive
1347         references have been emitted already.
1348         (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
1349         dispatching call on VM targets.
1350
1351 2008-04-08  Vincent Celier  <celier@adacore.com>
1352             Thomas Quinot  <quinot@adacore.com>
1353
1354         * make.adb: (Gnatmake_Called): Remove, no longer necessary
1355         (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
1356         is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
1357         (Insert_Project_Sources): Take into account index in multi-unit source
1358         files.
1359         After building a library project, delete all temporary files.
1360         (Initialize): Reset current output after parsing project file.
1361         (Collect_Arguments_And_Compile): Never insert in the queue the sources
1362         of library projects that are externally built.
1363         Put file name in error and inform messages if -df is used
1364         (Display): If invoked with -d7, do not display path names, but only
1365         file names.
1366
1367         * makeutl.ads (Path_Or_File_Name): New function
1368         (Path_Or_File_Name): New function
1369
1370 2008-04-08  Arnaud Charlet  <charlet@adacore.com>
1371
1372         * Make-lang.in: Disable warnings during first stage of bootstrap
1373         Get rid of gnatbl.
1374         Update dependencies.
1375
1376 2008-04-08  Vincent Celier  <celier@adacore.com>
1377
1378         * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
1379         case to decide if ALI object file is included in library.
1380         (Build_Library): Never attempt to build a library if the project is
1381         externally built.
1382
1383 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1384
1385         * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
1386         (No_List) is defined to return Empty.
1387
1388 2008-04-08  Jose Ruiz  <ruiz@adacore.com>
1389
1390         * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
1391         documentation.
1392         Update comments.
1393         (Read_Default_Search_Dirs): Do not consider spaces as path separators
1394         because spaces may be part of legal paths.
1395
1396 2008-04-08  Robert Dewar  <dewar@adacore.com>
1397
1398         * par-ch11.adb (P_Exception_Handler): Check indentation level for
1399         handler
1400
1401 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1402
1403         * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
1404         in a type declaration, if this is not an interface declaration or
1405         private type extension.
1406
1407 2008-04-08  Vincent Celier  <celier@adacore.com>
1408
1409         * prj-util.adb (Executable_Of): New String parameter Language. When
1410         Ada_Main is False and Language is not empty, attempt to remove the body
1411         suffix or the spec suffix of the language to get the base of the
1412         executable file name.
1413         (Put): New Boolean parameter Lower_Case, defauilted to False. When
1414         Lower_Case is True, put the value in lower case in the name list.
1415         (Executable_Of): If there is no executable suffix in the configuration,
1416         then do not modify Executable_Extension_On_Target.
1417
1418         * prj-util.ads (Executable_Of): New String parameter Language,
1419         defaulted to the empty string.
1420         (Put): New Boolean parameter Lower_Case, defauilted to False
1421
1422 2008-04-08  Robert Dewar  <dewar@adacore.com>
1423
1424         * scng.adb (Scan_Identifier): Handle case of identifier starting with
1425         wide character using UTF-8 encoding.
1426
1427 2008-04-08  Javier Miranda  <miranda@adacore.com>
1428
1429         * sem.adb (Analyze): Consider case in which we analyze an empty node
1430         that was generated by a call to a runtime function that is not
1431         available under the configurable runtime.
1432
1433         * sem.ads (Inside_Freezing_Actions): New flag.
1434         (Save_Check_Policy_List): New field in scope stack entry
1435
1436 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1437             Robert Dewar  <dewar@adacore.com>
1438
1439         * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
1440         the ancestor part of an extension aggregate for a limited type.
1441         (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
1442         enumeration index bounds.
1443         (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
1444         when array is too short.
1445         (Check_Expr_OK_In_Limited_Aggregate): Move function
1446         Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
1447         change name).
1448         (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
1449         Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
1450         component associations.
1451         (Check_Non_Limited_Type): Moved to outer level and renamed.
1452         (Resolve_Record_Aggregate): In an extension aggregate, an association
1453         with a box initialization can only designate a component of the
1454         extension, not a component inherited from the given ancestor
1455
1456         * sem_case.adb: Use new Is_Standard_Character_Type predicate
1457
1458 2008-04-08  Robert Dewar  <dewar@adacore.com>
1459
1460         * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
1461         negative scale
1462         (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
1463         Properly handle case where Aft > Scale and input number is less than
1464         one.
1465
1466 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1467
1468         * s-stoele.ads, s-soflin.ads: Move the location of
1469         Dummy_Communication_Block from System.Storage_Elements to
1470         System.Soft_Links.
1471
1472         * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
1473         emulate Communication_Block in certain scenarios.
1474
1475 2008-04-08  Hristian Kirtchev  <kirtchev@adacore.com>
1476
1477         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
1478         subprogram.
1479         Add new subtype S_WWC, unchecked conversion routines From_WWC and
1480         To_WWC.
1481         (I_WWC, O_WWC): New routines for input and output of
1482         Wide_Wide_Character.
1483
1484 2008-04-08  Robert Dewar  <dewar@adacore.com>
1485
1486         * stringt.adb (Write_String_Table_Entry): Handle wide characters
1487         properly
1488
1489 2008-04-08  Robert Dewar  <dewar@adacore.com>
1490
1491         * styleg.adb (Check_Comment): Allow special char after -- in
1492         non-end-of-line case
1493
1494 2008-04-08  Robert Dewar  <dewar@adacore.com>
1495
1496         * stylesw.adb: Implement -gnaty + - y options
1497         (Set_GNAT_Style_Check_Options): Includ I in style check string
1498
1499         * stylesw.ads: Add comments for new style switch options
1500
1501 2008-04-08  Sergey Rybin  <rybin@adacore.com>
1502
1503         * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
1504         to the set of the GNAT components needed by ASIS.
1505
1506 2008-04-08  Bob Duff  <duff@adacore.com>
1507
1508         * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
1509
1510 2008-04-08  Tristan Gingold  <gingold@adacore.com>
1511
1512         * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
1513         Improve error message generation.
1514
1515 2008-04-08  Vincent Celier  <celier@adacore.com>
1516
1517         * a-direct.adb (Start_Search): Check for Name_Error before checking for
1518         Use_Error, as specified in the RM. Check if directory is open and raise
1519         Use_Error if it is not.
1520
1521 2008-04-08  Vincent Celier  <celier@adacore.com>
1522             Robert Dewar  <dewar@adacore.com>
1523
1524         * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
1525         AAMP_On_Target is set.
1526
1527         * vms_data.ads: Add NOxxx to style check switch list
1528         Add entry COMPONENTS for -gnatVe
1529         Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
1530         (/SUBDIRS=).
1531         (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
1532         Add qualifiers for gnatmetric coupling options
1533         Add note that -gnata enables all checks
1534         Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
1535         Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
1536         New warning flag -gnatw.e
1537
1538         * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
1539         Add entry for -gnatyN (forgotten before)
1540         Line for new warning switch -gnatw.p
1541         New warning flag -gnatw.e
1542
1543         * gnat_ugn.texi: Add documentation fpr project file switch -aP
1544         Document -gnaty - + y
1545         Replace occurences of "package specification" with "package spec"
1546         Define preprocessing symbols in documentation of gnatprep
1547         Clarify reason for distinguishing overflow checking
1548         Add documentation for project-aware tool switches -eL and --subdirs=
1549         Complete list of configuration pragmas
1550         Specify that, even when gnatmake switch -x is used, mains on the command
1551         line need to be sources of project files.
1552         Editing of gnatcheck/gnatmetric doc.
1553         Add documentation for -gnatw.p/-gnatw.P
1554         Add missing documentation for -fno-inline-functions.
1555         Add documentation for -gnatw.e
1556
1557         * gnat_rm.texi: Add documentation for No_Default_Initialization
1558         Replace occurences of "package specification" with "package spec"
1559         Document use of * in Warnings Off string
1560         Update documentation of alignment/component clauses.
1561         Add documentation for Invalid_Value
1562         Document new consistency rule for Optimize_Alignment
1563         Add documentation for Precondition and Postcondition pragmas
1564         Add documentation for Check and Check_Policy pragmas
1565         Document new Enum_Val attribute
1566         Remove requirement for static string in pragma Assert
1567         Add documentation on GNAT.Time_Stamp
1568
1569         * ug_words: add entry for -gnatVe
1570         Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
1571         Add entry for -gnatw.e
1572
1573         * debug.adb: Add missing documentation for d.a flag
1574         Document new -gnatd.a switch.
1575         Add documentation for new gnatmake debug switch -df
1576
1577 2008-04-08  Thomas Quinot  <quinot@adacore.com>
1578
1579         * gen-soccon.c: Bump year in copyright notices.
1580
1581         * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
1582
1583 2008-04-08  Eric Botcazou  <ebotcazou@adacore.com>
1584
1585         * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
1586         Minor reformatting.
1587
1588 2008-04-08  Robert Dewar  <dewar@adacore.com>
1589             Bob Duff  <duff@adacore.com>
1590
1591         * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
1592         Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
1593
1594         * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
1595
1596         * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
1597
1598         * g-trasym.ads: Minor comment improvements
1599
1600         * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
1601
1602         * a-sequio.ads, a-direio.ads: improve message for tagged type
1603
1604         * a-strunb.ads: Minor reformatting
1605
1606         * a-tifiio.adb: Minor reformatting
1607
1608         * atree.adb (Fix_Parents): Use clearer names for formals
1609         Cleanup and simplify code
1610         Use named notation in calls
1611
1612         * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
1613         confusing calls
1614
1615         * uintp.adb: Used named notation for some confusing calls
1616
1617         * bindusg.adb: Minor change in one line of output
1618
1619         * cstand.adb: Minor reformatting of src representation of Standard
1620
1621         * a-assert.ads: Add comment.
1622
1623         * g-decstr.adb: Fix bad indentation
1624
1625         * expander.ads, expander.adb: Code clean up.
1626
1627         * sem_dist.ads: Minor comment improvement
1628
1629         * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
1630         s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
1631
1632         * i-cstrin.adb: Fix casing error in formal parameter name in call
1633
1634 2008-04-08  Ed Schonberg  <schonberg@adacore.com>
1635
1636         * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
1637         mentioned in limited_with_clauses to do create semantic dependencies
1638         even though they appear in the ali file.
1639
1640 2008-04-08  Emmanuel Briot  <briot@adacore.com>
1641
1642         * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
1643         statement.
1644         (Get_Configuration): New subprogram.
1645
1646         * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
1647         These optional parameters help preserve the casing of the project's name
1648         when pretty-printing.
1649
1650 2008-04-08  Jerome Lambourg  <lambourg@adacore.com>
1651             Arnaud Charlet  <charlet@adacore.com>
1652
1653         * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
1654         then use __gnat_set_exit_status to report the returned status code.
1655
1656         * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
1657         messages on .NET, since some constructs of the language are not
1658         properly supported.
1659
1660         * gnatlink.adb (Gnatlink): In case the command line is too long for the
1661         .NET linker, gnatlink now concatenate all .il files and pass this to
1662         ilasm.
1663
1664 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1665             Xavier Grave  <grave@ipno.in2p3.fr>
1666
1667         * Makefile.in: Add make ifeq define for mips/mipsel support.
1668         * g-soccon-linux-mips.ads, system-linux-mipsel.ads, 
1669         system-linux-mips.ads: New files.
1670
1671 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1672
1673         * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
1674         detect systems using GNU libc.
1675         * gsocket.h: ditto.
1676         * socket.c: ditto.
1677         * adaint.c: ditto.
1678         * link.c: ditto.
1679
1680 2008-04-07  Aurelien Jarno  <aurelien@aurel32.net>
1681
1682         * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New 
1683         constant constant for sysconf call.
1684         (bit_field): New packed boolean type used by cpu_set_t.
1685         (cpu_set_t): New type corresponding to the C type with
1686         the same name. Note that on the Ada side we use a bit
1687         field array for the affinity mask. There is not need
1688         for the C macro for setting individual bit.
1689         (pthread_setaffinity_np): New imported routine.
1690         * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
1691         on GNU/kFreeBSD.
1692
1693 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1694
1695         * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
1696
1697 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
1698
1699         * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
1700         * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
1701         * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
1702         * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
1703         Return by Depressed Stack Pointer.
1704
1705 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1706
1707         * decl.c (is_variable_size): Do not unconditionally return false
1708         on non-strict alignment platforms.
1709
1710 2008-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1711
1712         * decl.c (rest_of_type_decl_compilation_no_defer): New local function
1713         used to process all the variants of the specified type.
1714         (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
1715         types too.  Call rest_of_type_decl_compilation_no_defer if undeferring.
1716         (rest_of_type_decl_compilation): Likewise.
1717         * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
1718
1719 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
1720
1721         * gigi.h (insert_block): Kill.
1722         * utils.c (insert_block): Kill.
1723
1724 2008-04-02  Eric Botcazou  <ebotcazou@adacore.com>
1725
1726         * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
1727         type has self-referential size, get the size from the initializing
1728         expression directly if it is also a constant whose nominal type
1729         has self-referential size.
1730
1731 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1732
1733         PR ada/33688
1734         * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
1735
1736         PR ada/33857
1737         * env.c: Always include crt_externs.h if __APPLE__ is defined.
1738         (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
1739
1740 2008-04-01  Andreas Jaeger  <aj@suse.de>
1741
1742         * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
1743         IP_PKTINFO.
1744
1745 2008-03-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1746
1747         * g-table.adb, g-tasloc.adb, g-traceb.ads,
1748         g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
1749         gnatbind.adb, gnatchop.adb, gnatcmd.adb,
1750         gnatcmd.ads, gnatdll.adb, gnatfind.adb,
1751         gnatlink.adb, gnatmem.adb, gprep.adb,
1752         i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
1753         i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
1754         layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
1755         lib-xref.ads, lib.adb, link.c, live.ads,
1756         make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
1757         mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
1758         misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
1759         mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
1760         namet.adb, namet.h, nlists.adb, nlists.ads,
1761         nlists.h, opt.ads, osint-b.ads, osint-c.adb,
1762         osint-c.ads, osint.adb, osint.ads, output.ads,
1763         par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
1764         par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
1765         par-endh.adb, par-labl.adb, par-prag.adb,
1766         par-sync.adb, par-tchk.adb, par-util.adb,
1767         par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
1768         prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1769         prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
1770         prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
1771
1772 2008-03-31  Eric Botcazou  <ebotcazou@adacore.com>
1773
1774         * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
1775         size if it has overflowed.
1776
1777 2008-03-31  Olivier Hainque  <hainque@adacore.com>
1778             Eric Botcazou  <ebotcazou@adacore.com>
1779
1780         * utils2.c (find_common_type): Document assumption on t1/t2 vs
1781         lhs/rhs. Force use of lhs type if smaller, whatever the modes.
1782
1783 2008-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1784
1785         * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
1786         einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
1787         exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
1788         exp_pakd.ads, exp_prag.adb, exp_smem.adb,
1789         exp_tss.ads, exp_util.adb, exp_util.ads,
1790         exp_vfpt.adb, freeze.adb, freeze.ads,
1791         frontend.adb, g-alleve.adb, g-altcon.adb,
1792         g-altive.ads, g-alveop.ads, g-alvevi.ads,
1793         g-arrspl.adb, g-busorg.ads, g-calend.adb,
1794         g-calend.ads, g-casuti.ads, g-cgideb.adb,
1795         g-comlin.adb, g-comlin.ads, g-curexc.ads,
1796         g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
1797         g-dirope.adb, g-dirope.ads, g-dynhta.ads,
1798         g-dyntab.adb, g-encstr.ads, g-excact.ads,
1799         g-except.ads, g-expect.ads, g-heasor.adb,
1800         g-hesora.adb, g-hesorg.adb, g-htable.ads,
1801         g-locfil.ads, g-md5.adb, g-md5.ads,
1802         g-memdum.ads, g-moreex.ads, g-os_lib.adb,
1803         g-pehage.adb, g-pehage.ads, g-regexp.adb,
1804         g-regexp.ads, g-regpat.adb, g-regpat.ads,
1805         g-soccon-aix.ads, g-soccon-darwin.ads,
1806         g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
1807         g-soccon-hpux.ads, g-soccon-irix.ads,
1808         g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
1809         g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
1810         g-soccon-mingw.ads, g-soccon-solaris-64.ads,
1811         g-soccon-solaris.ads, g-soccon-tru64.ads,
1812         g-soccon-vms.ads, g-soccon-vxworks.ads,
1813         g-soccon.ads, g-socket.adb, g-socket.ads,
1814         g-socthi-mingw.adb, g-socthi-vms.adb,
1815         g-socthi-vxworks.adb, g-soliop-mingw.ads,
1816         g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
1817         g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
1818         typos.
1819
1820 2008-03-27  Eric Botcazou  <ebotcazou@adacore.com>
1821
1822         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
1823         if the procedure is imported.
1824
1825 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1826
1827         * adaint.c: Fix warnings.
1828
1829 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1830
1831         * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
1832
1833 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1834
1835         * a-witeio.adb: Fix problem with Current_Output (introduce Self).
1836         Fix problem of status check for null file
1837
1838 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1839
1840         * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
1841         s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
1842         s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
1843         i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
1844         s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
1845         comments.
1846
1847 2008-03-26  Thomas Quinot  <quinot@adacore.com>
1848
1849         PR ada/33688
1850         * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
1851         Get_Socket_Option): Add support for Receive_Packet_Info.
1852
1853         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1854         g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
1855         g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
1856         g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
1857         g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
1858         new constants SO_REUSEPORT and IP_PKTINFO
1859
1860 2008-03-26  Robert Dewar  <dewar@adacore.com>
1861
1862         * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
1863         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1864         a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
1865         a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
1866         a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
1867         a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
1868         s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
1869         s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1870         a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
1871         s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
1872         s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
1873         s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
1874         s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
1875         s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
1876         s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
1877         s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
1878         s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
1879         s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
1880         s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1881         s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
1882         a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
1883         a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
1884         s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
1885         s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
1886         s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
1887         s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
1888         s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
1889         a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
1890         a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
1891         s-tasloc.adb: Minor reformatting.
1892         Update comments.
1893         Remove "used for" sections from comments.
1894
1895 2008-03-26  Robert Dewar  <dewar@adacore.com>
1896
1897         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
1898         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
1899         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
1900         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
1901         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
1902         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
1903         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
1904         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
1905         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
1906         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
1907         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
1908         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
1909         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
1910         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
1911         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
1912         double spaced if it fits on one line and otherwise single spaced.
1913
1914 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1915
1916         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb, 
1917         s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb, 
1918         s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
1919         or task info if the thread could not be created.
1920
1921 2008-03-26  Arnaud Charlet  <charlet@adacore.com>
1922
1923         * gnatvsn.ads (Library_Version): Bump to 4.4.
1924         (Current_Year): Bump to 2008.
1925
1926 2008-03-26  Robert Dewar  <dewar@adacore.com>
1927
1928         * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
1929
1930         * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
1931
1932         * debug.adb: Add debug flags d.r and d.v
1933         Add debug flag .T (Optimize_Alignment (Time))
1934         Add debug flag .S (Optimize_Alignment (Space))
1935
1936         * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
1937         depending on setting of relevant debug flags.
1938         Replace use of Warnings_Off by Has_Warnings_Off
1939         (Freeze_Entity): In circuit for warning on suspicious convention
1940         actuals, do not give warning if subprogram has same entity as formal
1941         type, or if subprogram does not come from source.
1942         (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
1943         if Optimize_Alignment set to Space.
1944
1945         * frontend.adb: Add call to Sem_Warn.Initialize
1946         Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
1947         Reset Optimize_Alignment mode from debug switches .S and .T
1948
1949         * layout.adb (Layout_Composite_Object): Rewritten for
1950         Optimize_Aligment pragma.
1951
1952         * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
1953         mode.
1954
1955         * opt.ads, opt.adb: (Optimize_Alignment): New global switch
1956
1957         * par-prag.adb (N_Pragma): Chars field removed, use Chars
1958         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
1959         this change. Add entry for pragma Optimize_Alignment
1960
1961         * sem_prag.adb (N_Pragma): Chars field removed, use Chars
1962         (Pragma_Identifier (..
1963         instead, adjustments throughout to accomodate this change.
1964         (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
1965         (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
1966         Add implementation of pragma Optimize_Alignment
1967
1968 2008-03-26  Vincent Celier  <celier@adacore.com>
1969
1970         * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
1971         Improve memory usage to avoid use of stack.
1972
1973 2008-03-26  Robert Dewar  <dewar@adacore.com>
1974
1975         * a-teioed.ads: Correct value of Default_Fill
1976
1977         * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
1978
1979 2008-03-26  Robert Dewar  <dewar@adacore.com>
1980
1981         * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
1982         with Current_Output (introduce Self).
1983
1984 2008-03-26  Robert Dewar  <dewar@adacore.com>
1985
1986         * checks.adb (Ensure_Valid): Capture valid status if possible
1987         (eliminate checks)
1988
1989 2008-03-26  Robert Dewar  <dewar@adacore.com>
1990
1991         * stand.ads: Deal with reordering of package standard declarations
1992
1993         * cstand.adb: Put package Standard declarations in proper order
1994
1995 2008-03-26  Robert Dewar  <dewar@adacore.com>
1996
1997         * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
1998         (Pragma_Identifier (.. instead.
1999         (OK_To_Reorder_Components): New flag
2000         (Has_Entries): Code cleanup.
2001         (Warnings_Off_Used): New flag
2002         (Warnings_Off_Used_Unmodified): New flag
2003         (Warnings_Off_Used_Unreferenced): New flag
2004         (Has_Warnings_Off): New function
2005         (Has_Unmodified): New function
2006         (Has_Unreferenced): New function
2007         (Is_Trivial_Subprogram): New flag
2008         (Is_Static_Dispatch_Table_Entity): New attribute.
2009         Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
2010         (more consistent with other similar names)
2011         (Access_Subprogram_Type): New classification function
2012
2013 2008-03-26  Robert Dewar  <dewar@adacore.com>
2014
2015         * errout.ads: Document new !! insertion sequence
2016
2017         * errout.adb (N_Pragma): Chars field removed, use Chars
2018         (Pragma_Identifier (..  instead.
2019         Replace use of Warnings_Off by Has_Warnings_Off
2020         (Error_Msg_Internal): Don't delete warning ending in !!
2021
2022 2008-03-26  Robert Dewar  <dewar@adacore.com>
2023
2024         * par.adb (Check_No_Right_Paren): Removed no longer used
2025
2026         * par-ch10.adb (N_Pragma): Chars field removed, use Chars
2027         (Pragma_Identifier (..  instead.
2028
2029         * par-ch10.adb (P_Subunit): Improvement in error recovery and message
2030
2031         * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
2032         par-ch4.adb: Minor improvements in error recovery and messages.
2033
2034         * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
2035         non-serious
2036
2037         * par-ch9.adb: Minor improvements in error recovery and messages
2038         (P_Protected): Better error recovery for "protected type x;"
2039
2040         * par-util.adb: Minor improvements in error recovery and messages
2041         (Check_No_Right_Paren): Removed no longer used
2042
2043 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2044
2045         * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
2046         that the prefix of an attribute is the type of the aggregate being
2047         expanded.
2048
2049 2008-03-26  Javier Miranda  <miranda@adacore.com>
2050             Robert Dewar  <dewar@adacore.com>
2051
2052         * exp_attr.adb (N_Pragma): Chars field removed.
2053         (Expand_N_Attribute_Reference): If the designated type associated with
2054         attribute 'Unrestricted_Access is a subprogram entity then replace it
2055         by an E_Subprogram_Type itype.
2056         Implement attribute Old
2057
2058         * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
2059
2060         * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
2061         Replace call to
2062         New_Internal_Entity by call to Create_Itype to centralize calls
2063         building itypes, ad propagate the convention of the designated
2064         subprogram. In addition, disable the machinery cleaning constant
2065         indications from all entities in current scope when 'Unrestricted_Access
2066         corresponds with a node initializing a dispatch table slot.
2067         (Analyze_Attribute): Parameterless attributes returning a string or a
2068         type will not be called with improper arguments, so we can remove junk
2069         code that was dealing with this case.
2070         Implement attribute Old
2071
2072         * snames.ads, snames.h, snames.adb: Add entries for attribute Old
2073         Add entry for pragma Optimize_Alignment
2074         New standard names Sync and Synchronize
2075
2076 2008-03-26  Robert Dewar  <dewar@adacore.com>
2077             Arnaud Charlet  <charlet@adacore.com>
2078
2079         * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
2080         stmt.
2081         (No_Exception_Propagation_Active): New function.
2082         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2083         Update comments, and review all uses of No_Exception_Propagation, which
2084         are now correct and in sync with what gigi expects.
2085
2086         * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
2087         function.
2088         (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
2089         Update comments, and review all uses of No_Exception_Propagation, which
2090         are now correct and in sync with what gigi expects.
2091
2092 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2093
2094         * sem_ch3.adb (Access_Definition): If the access type is the return
2095         result of a protected function, create an itype reference for it
2096         because usage will be in an inner scope from the point of declaration.
2097         (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
2098         OK_To_Reorder_Components.
2099         (Make_Index): If an overloaded range includes a universal integer
2100         interpretation, resolve to Standard.Integer.
2101         (Analyze_Subtype_Indication): Copy Convention to subtype
2102         (Check_Abstract_Interfaces): Complete semantic checks on the legality of
2103         limited an synchronized progenitors in type declaration and private
2104         extension declarations.
2105
2106         * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
2107         protected subprogram body, determine proper scope from subprogram
2108         declaration.
2109
2110 2008-03-26  Robert Dewar  <dewar@adacore.com>
2111
2112         * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
2113         No_Run_Time_Mode
2114
2115 2008-03-26  Gary Dismukes  <dismukes@adacore.com>
2116
2117         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
2118         of a heap allocator for a limited unconstrained function return when
2119         resstriction No_Allocators is active.
2120         (Analyze_Allocator): The restriction No_Allocators is now only checked
2121         on allocators that have Comes_From_Source set, as per RM-H.4(7).
2122
2123         * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
2124         of a heap allocator for a limited unconstrained function return when
2125         resstriction No_Allocators is active.
2126         (Analyze_Allocator): The restriction No_Allocators is now only checked
2127         on allocators that have Comes_From_Source set, as per RM-H.4(7).
2128         (Has_Fixed_Op):  If the name in a function call is Standard."*" and the
2129         operands are fixed-point types, the universal_fixed predefined operation
2130         is used, regardless of whether the operand type (s) have a primitive
2131         operation of the same name.
2132
2133 2008-03-26  Javier Miranda  <miranda@adacore.com>
2134
2135         * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
2136         Is_Static_Dispatch_Table
2137         (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
2138         to Exchange_Declarations to exchange the private and full-view. Bug
2139         found working in this issue.
2140         (Expand_Dispatching_Call): Propagate the convention of the subprogram
2141         to the subprogram pointer type.
2142         (Make_Secondary_DT): Replace generation of Prim'Address by
2143         Address (Prim'Unrestricted_Access)
2144         (Make_DT): Replace generation of Prim'Address by
2145         Address (Prim'Unrestricted_Access)
2146         (Make_Disp_*_Bodies): When compiling for a restricted profile, use
2147         simple call form for single entry.
2148         (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
2149         tables of predefined primitives).
2150         (Make_Secondary_DT): Add support to handle access to dispatch tables of
2151         predefined primitives.
2152         (Make_Tags): Add entities to Access_Dispatch_Table associated with
2153         access to dispatch tables containing predefined primitives.
2154
2155         * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
2156         (Pragma_Identifier (..  instead, adjustments throughout to accomodate
2157         this change.
2158         (Register_Predefined_DT_Entry): Updated to handle the new contents
2159         of attribute Access_Disp_Table (pointers to dispatch tables containing
2160         predefined primitives).
2161
2162         * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
2163         subprogram.
2164         (Find_Interface_ADT): Updated to skip the new contents of attribute
2165         Access_Dispatch_Table (pointers to dispatch tables containing predefined
2166         primitives).
2167
2168         * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
2169         concurrent types.
2170         (Set_Convention): Use new function Is_Access_Subprogram_Type
2171         (Collect_Interfaces_Info): Updated to skip the new contents of attribute
2172         Access_Dispatch_Table (pointers to dispatch tables containing predefined
2173         primitives).
2174
2175         * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
2176         expanded code avoiding calls to Build_Predef_Prims.
2177         (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
2178         call to Build_Get_Predefined_Prim_Op_Address.
2179
2180 2008-03-26  Javier Miranda  <miranda@adacore.com>
2181
2182         * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
2183         subprogram Corresponding_Runtime_Package to know the runtime package
2184         that will provide support to a given protected type.
2185
2186         * exp_ch9.adb (Add_Private_Declarations,
2187         Build_Protected_Subprogram_Call,
2188         Build_Protected_Entry, Build_Simple_Entry_Call,
2189         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2190         Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
2191         cleanup using the new centralized subprogram Corresponding_Runtime
2192         Package to know the runtime package that provides support to
2193         a given protected type.
2194
2195 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2196
2197         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
2198         assignment is within the initialization procedure for a packed array,
2199         and Initialize_Scalars is enabled, compile right-hand side with checks
2200         off, because the value is purposely out of range.
2201
2202 2008-03-26  Vincent Celier  <celier@adacore.com>
2203
2204         * gnatcmd.adb: Add processing for GNAT SYNC
2205
2206         * vms_conv.ads: (Command_Type): Add command Sync
2207
2208         * vms_conv.adb (Initialize): Add Command_List data for new command Sync
2209
2210         * vms_data.ads: Add entries for -gnatw.w
2211         Add qualifier for gnatstub --header-file option
2212         Add switches for GNAT SYNC
2213
2214         * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
2215         (Add_Package_Name): New procedure
2216         (Package_Name_List): New function
2217         (Initialize): Add known package names to the list
2218         (Register_New_Package): Add the new package name to the list
2219
2220 2008-03-26  Robert Dewar  <dewar@adacore.com>
2221
2222         * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
2223         s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
2224         Raise_Exception by "raise with" construct.
2225
2226 2008-03-26  Pascal Obry  <obry@adacore.com>
2227
2228         * Makefile.in: Add proper GNAT.Serial_Communications implementation on
2229         supported platforms.
2230         
2231         * Makefile.rtl: Add g-sercom.o.
2232         
2233         * impunit.adb: Add g-sercom.adb.
2234         
2235         * s-crtl.ads (open): New routine.
2236         (close): Likewise.
2237         (write): Likewise.
2238         
2239         * s-osinte-mingw.ads (BYTE): New type.
2240         (CHAR): Likewise.
2241         (OVERLAPPED): Likewise.
2242         (GENERIC_READ): New constant.
2243         (GENERIC_WRITE): Likewise.
2244         (OPEN_EXISTING): Likewise.
2245         (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
2246         type instead.
2247         (CreateFile): New routine.
2248         (WriteFile): Likewise.
2249         (ReadFile): Likewise.
2250         (CloseHandle): Move next to the other file oriented routines.
2251
2252         * g-sercom.ads: New unit.
2253
2254         * g-sercom.adb: Default implementation, calls to this unit will raise
2255         a program error exception.
2256         
2257         * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
2258         GNU/Linux implementations.
2259
2260 2008-03-26  Robert Dewar  <dewar@adacore.com>
2261
2262         * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
2263
2264         * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
2265         unchecked conversion for different conventions only for subprogram
2266         pointers or on VMS.
2267
2268 2008-03-26  Vincent Celier  <celier@adacore.com>
2269
2270         * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
2271         to check if the specified object file is correct.
2272
2273 2008-03-26  Thomas Quinot  <quinot@adacore.com>
2274
2275         * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
2276         Comes_From_Source to exclude primitives from being checked. We want to
2277         exclude predefined primitives only, so use the appropriate specific
2278         predicate. Also, flag a formal parameter of an anonymous
2279         access-to-subprogram type as illegal for a primitive operation of a
2280         remote access to class-wide type.
2281
2282 2008-03-26  Vincent Celier  <celier@adacore.com>
2283
2284         * prj-dect.adb (Parse_Package_Declaration): When a package name is not
2285         known, check if it may be a missspelling of a known package name. In
2286         not verbose, not mode, issue warnings only if the package name is a
2287         possible misspelling.
2288         In verbose mode, always issue a warning for a not known package name,
2289         plus a warning if the name is a misspelling of a known package name.
2290
2291         * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
2292         limited withs or limited withs are parse during one call.
2293         (Parse_Single_Project): Post parse context clause in two passes: non
2294         limited withs before current project and limited withs after current
2295         project.
2296
2297         * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
2298         project with the name With_Name, even if it is only extended indirectly.
2299         (Recursive_Process): Process projects in order: first single withs, then
2300         current project, then limited withs.
2301
2302         * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
2303         project with the name With_Name, even if it is only extended indirectly.
2304
2305 2008-03-26  Robert Dewar  <dewar@adacore.com>
2306
2307         * scn.adb (Initialize_Scanner): Format messages belong on standard error
2308
2309 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2310
2311         * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
2312         a generic subprogram that is imported, do not attempt to compile
2313         non-existent body.
2314
2315         * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
2316         imported, do not generate a raise_program_error for the non-existent
2317         body.
2318         (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
2319         perform minimal name resolution on the generic to avoid spurious
2320         warnings.
2321         (Find_Actual_Type): the designated type of the actual in a child unit
2322         may be declared in a parent unit without being an actual.
2323
2324 2008-03-26  Robert Dewar  <dewar@adacore.com>
2325
2326         * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
2327         * sinfo.ads, sinfo.adb (From_At_End): New flag
2328
2329 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2330
2331         * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
2332         operations that have an interface parameter.
2333         (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
2334         Don't treat No_Return call as raise.
2335
2336         * sem_disp.adb (Check_Dispatching_Operations): apply check for
2337         non-primitive interface primitives to access parameters, not to all
2338         parameters of an access type.
2339
2340 2008-03-26  Ed Schonberg  <schonberg@adacore.com>
2341
2342         * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
2343         declarations of a parent unit are made visible when compiling a child
2344         instance, the parent is not a hidden open scope, even though it may
2345         contain other pending instance.
2346         
2347         * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
2348         hidden open scope for some child instance, it does affect the
2349         visibility status of other stach entries.
2350         (Analyze_Object_Renaming): Check that a class-wide object cannot be
2351         renamed as an object of a specific type.
2352
2353 2008-03-26  Robert Dewar  <dewar@adacore.com>
2354
2355         * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
2356         recursion and raise SE directly.
2357         (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
2358         set for formal type for IN mode parameter.
2359
2360 2008-03-26  Robert Dewar  <dewar@adacore.com>
2361
2362         * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
2363         (Initialize): New procedure
2364         (Output_Warnings_Off_Warnings): New procedure
2365         (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
2366         (Output_Non_Modifed_In_Out_Warnings): Ditto
2367         (Warn_On_Unreferenced_Entity): Ditto
2368
2369 2008-03-26  Vincent Celier  <celier@adacore.com>
2370
2371         * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
2372         readable.
2373
2374 2008-03-26  Matthew Heaney  <heaney@adacore.com>
2375
2376         * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads, 
2377         a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
2378         Marked with clauses as private, and controlled operations as overriding
2379
2380 2008-03-26  Robert Dewar  <dewar@adacore.com>
2381
2382         * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
2383
2384 2008-03-26  Robert Dewar  <dewar@adacore.com>
2385
2386         * back_end.adb, back_end.ads: Minor reformatting
2387
2388         * bindgen.adb: Minor clarification of comments
2389
2390         * fname.ads: Minor comment fixes
2391
2392         * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
2393         prj-nmsc.adb, sem_aggr.adb: Minor reformatting
2394
2395         * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
2396         xsnames.adb: Remove warnings off pragma no longer needed
2397
2398         * a-catizo.ads, a-calari.ads, a-calfor.adb,
2399         a-calfor.ads: Fix header.
2400
2401 2008-03-26  Tristan Gingold  <gingold@adacore.com>
2402
2403         * init.c: Do not adjust pc for HPARITH on alpha/vms.
2404
2405 2008-03-26  Robert Dewar  <dewar@adacore.com>
2406
2407         * lib-xref.adb: (OK_To_Set_Reference): New function
2408         (Generate_Reference): Don't set referenced from occurrence in Warnings,
2409         Unmodified, or Unreferenced pragma
2410
2411 2008-03-26  Robert Dewar  <dewar@adacore.com>
2412
2413         * alloc.ads: Add entries for Warnings_Off_Pragmas table
2414
2415 2008-03-26  GNAT Script  <nobody@adacore.com>
2416
2417         * Make-lang.in: Makefile automatically updated
2418
2419 2008-03-26  Robert Dewar  <dewar@adacore.com>
2420
2421         * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
2422         par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
2423         removed, use Chars (Pragma_Identifier (..  instead, adjustments
2424         throughout to accomodate this change.
2425
2426         * s-pooglo.ads, s-pooloc.ads: Minor comment updates
2427
2428         * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
2429         Einfo.Set_Needs_Debug_Info)
2430
2431 2008-03-26  Robert Dewar  <dewar@adacore.com>
2432
2433         * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
2434         Add description for the new gnatstub option '--header-file'
2435         clarification of -gnatwz/-gnatwZ
2436         Add a "Irix-Specific Considerations" section to document the need to
2437         set LD_LIBRARY_PATH when using the default shared runtime library.
2438         Added documentation for both gcov and gprof.
2439
2440         * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
2441         messages that are not suppressed when clients are compiled.
2442         Add documentation of s-pooglo s-pooloc
2443         Document the new GNAT.Serial_Communications API.
2444         Add documentation for 'Old attribute
2445         Add description of pragma Optimize_Alignment
2446
2447         * ug_words: Add entries for -gnatw.w -gnatw.W
2448
2449         * usage.adb: Add line for -gnatw.w (warn on warnings off)
2450
2451 2008-03-25  Eric Botcazou  <ebotcazou@adacore.com>
2452
2453         Revert
2454         2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2455         PR ada/35186
2456         * decl.c (maybe_pad_type): Avoid padding an integral type when
2457         bumping its alignment is sufficient.
2458
2459 2008-03-25  Arnaud Charlet  <charlet@adacore.com>
2460
2461         * exp_ch6.adb, exp_disp.adb: Update copyright notice.
2462         Fix wrong formatting (lines too long)
2463
2464 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2465
2466         * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
2467         a-calend-vms.adb, a-calend.adb, a-calend.ads,
2468         a-calfor.adb, a-chahan.ads, a-chtgke.adb,
2469         a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
2470         a-cohama.ads, a-comlin.ads, a-coorse.adb,
2471         a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
2472         a-except-2005.ads, a-except.adb, a-except.ads,
2473         a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
2474         a-exextr.adb, a-filico.ads, a-finali.ads,
2475         a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
2476         a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
2477         a-sequio.ads, a-strbou.ads, a-strfix.adb,
2478         checks.adb, exp_ch3.adb, exp_ch4.adb,
2479         exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
2480         exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
2481         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
2482         exp_dbug.ads, exp_disp.adb, exp_dist.adb,
2483         exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
2484
2485 2008-03-24  Robert Dewar  <dewar@adacore.com>
2486
2487         * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
2488         s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
2489         s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
2490         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
2491         s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
2492         a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
2493         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
2494         a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
2495         a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
2496         a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
2497         a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
2498         i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
2499         a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
2500         s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
2501         s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
2502         double spaced if it fits on one line and otherwise single spaced.
2503
2504 2008-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2505
2506         PR documentation/15479
2507         * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
2508         (doc/gnat_ugn_unw.texi): ... this, and adjusted.
2509         (doc/gnat_ugn.info): Renamed from ...
2510         (doc/gnat_ugn_unw.info): ... this.
2511         (doc/gnat_ugn.dvi): Renamed from ...
2512         (doc/gnat_ugn_unw.dvi): ... this.
2513         (doc/gnat_ugn.pdf): Renamed from ...
2514         (doc/gnat_ugn_unw.pdf): ... this.
2515         (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
2516         Adjusted.
2517         * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
2518         unconditionally to gnat_ugn.info.  Fix cross references to the
2519         GNAT Reference Manual.  Convert links to the GCC, GDB, Emacs,
2520         and GNU make manuals to be proper texinfo links.
2521         * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
2522
2523 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2524
2525         * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
2526         ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
2527
2528 2008-03-21  Eric Botcazou  <ebotcazou@adacore.com>
2529
2530         * trans.c (addressable_p): Add notes on addressability issues.
2531
2532 2008-03-21  Olivier Hainque  <hainque@adacore.com>
2533             Ed Schonberg  <schonberg@adacore.com>
2534
2535         * trans.c (addressable_p): Accept COND_EXPR when both arms
2536         are addressable.
2537         (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
2538         (call_to_gnu): Do not use name reference in the error message
2539         for a misaligned by_reference_parameter. The actual may be a
2540         general expression.
2541
2542 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
2543
2544         * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
2545
2546 2008-03-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2547
2548         * gnat_rm.texi (Implementation Defined Characteristics)
2549         (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
2550         appropriate.
2551         * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
2552         (Switches for gnatchop, Installing a library): Likewise.
2553
2554 2008-03-10  Eric Botcazou  <ebotcazou@adacore.com>
2555
2556         * trans.c (emit_range_check): Do not emit the check if the base type
2557         of the expression is the type against which its range must be checked.
2558
2559 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2560
2561         * decl.c (maybe_pad_type): Use value_factor_p.
2562
2563 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2564
2565         * lang.opt (nostdlib): Move around.
2566         * misc.c (gnat_handle_option): Fix formatting.
2567         (gnat_dwarf_name): Move around.
2568         * trans.c (Case_Statement_to_gnu): Fix formatting.
2569         (gnat_to_gnu): Likewise.
2570         * utils.c (aggregate_type_contains_array_p): Likewise.
2571         (create_subprog_decl): Likewise.
2572
2573 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2574
2575         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
2576         bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
2577
2578 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2579
2580         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
2581         BIGGEST_ALIGNMENT when capping the alignment of records with
2582         strict alignment and size clause.
2583
2584 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2585
2586         * lang-specs.h: Pass -gnatwa if -Wall is passed.
2587         * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
2588         and -Wuninitialized.
2589         (gnat_post_options): Clear warn_unused_parameter.
2590
2591 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2592
2593         * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
2594         aligned bit-fields, bumping the alignment of the record type if deemed
2595         profitable.
2596         (value_factor_p): Return false instead of 0.
2597
2598 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2599
2600         * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
2601         for scalar types with small alignment.
2602
2603 2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>
2604
2605         * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
2606         from that of the front-end's end label.
2607         (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
2608         from that of the loop label.
2609
2610 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2611
2612         * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
2613         comment for the packed array type case.
2614         * utils.c (build_template): Use a loop to strip padding or
2615         containing records for justified modular types.
2616
2617 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2618
2619         * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
2620         large alignments specified for types.
2621         (validate_alignment): Minor cleanup.
2622
2623 2008-03-07  Eric Botcazou  <ebotcazou@adacore.com>
2624
2625         * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
2626         (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
2627         the component for packing, if possible, as well as if a component
2628         size clause is specified.
2629         <E_Record_Subtype>: For an array type used to implement a packed
2630         array, get the component type from the original array type.
2631         Try to get a smaller form of the component for packing, if possible,
2632         as well as if a component size clause is specified.
2633         (round_up_to_align): New function.
2634         (make_packable_type): Add in_record parameter.
2635         For a padding record, preserve the size.  If not in_record and the
2636         size is too large for an integral mode, attempt to shrink the size
2637         by lowering the alignment.
2638         Ditch the padding bits of the last component.
2639         Compute sizes and mode manually, and propagate the RM size.
2640         Return a BLKmode record type if its size has shrunk.
2641         (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
2642         Use Original_Array_Type to retrieve the type in case of an error.
2643         Adjust call to make_packable_type.
2644         (gnat_to_gnu_field): Likewise.
2645         (concat_id_with_name): Minor tweak.
2646         * trans.c (larger_record_type_p): New predicate.
2647         (call_to_gnu): Compute the nominal type of the object only if the
2648         parameter is by-reference.  Do the conversion actual type -> nominal
2649         type if the nominal type is a larger record.
2650         (gnat_to_gnu): Do not require integral modes on the source type to
2651         avoid the conversion for types with identical names.
2652         (addressable_p): Add gnu_type parameter.  If it is specified, do not
2653         return true if the expression is not addressable in gnu_type.
2654         Adjust recursive calls.
2655         * utils.c (finish_record_type): Remove dead code.
2656
2657 2008-03-05  Eric Botcazou  <ebotcazou@adacore.com>
2658
2659         PR ada/35186
2660         * decl.c (maybe_pad_type): Avoid padding an integral type when
2661         bumping its alignment is sufficient.
2662
2663 2008-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2664
2665         * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
2666         * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
2667         statement.
2668         * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
2669         gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
2670         sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
2671         code output strings.
2672         * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
2673         system-vms_64.ads: Fix typos in ada source code comments.
2674         * sinfo-cn.adb: Remove incomplete sentence.
2675
2676         PR documentation/15479
2677         * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
2678
2679 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2680
2681         PR ada/22255
2682         * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
2683
2684 2008-02-27  Samuel Tardieu  <sam@rfc1149.net>
2685
2686         PR ada/34799
2687         * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
2688         that underlying type is present.
2689
2690 2008-02-26  Tom Tromey  <tromey@redhat.com>
2691
2692         * misc.c (internal_error_function): Remove test of
2693         USE_MAPPED_LOCATION.
2694         * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
2695         (Sloc_to_locus): Remove old location code.
2696
2697 2008-02-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2698
2699         * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
2700         `i.e.' by adding comma or `@:' as appropriate.
2701         * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
2702         plain characters `C', use `@samp{C}'.
2703         * gnat_ugn.texi (File Naming Rules, About gnatkr)
2704         (Krunching Method): Likewise.
2705
2706         * gnat_ugn.texi (Conventions): List environment variables and
2707         metasyntactic variables.
2708         (Compiling Programs): Fix notation of metasyntactic variables.
2709         Add @file where appropriate.  Use @file for file extensions,
2710         @samp for strings.
2711         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
2712         instead of @file, @env instead of @code.
2713
2714 2008-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2715
2716         PR documentation/15479
2717         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
2718         and `...' with `@dots{}' or `@enddots{}'.
2719
2720         PR documentation/15479
2721         * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
2722         use @command instead of @code, @option instead of @samp or @code,
2723         @code instead of @var, @samp instead of @file.
2724
2725         PR documentation/15479
2726         * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
2727         in Makefile rules, by using `&&' rather than `;'.
2728
2729 2008-02-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2730
2731         PR documentation/15479
2732         * gnat_ugn.texi: In non-code, avoid space before colon.
2733         (Regular Expressions in gnatfind and gnatxref): Fix indentation.
2734         (Examples of gnatxref Usage): Use @command{vi} instead of
2735         @file{vi}.
2736         (Character Set Control): Do not use @code for UTF-8.
2737         (Validity Checking): Fix typo "NaNs" instead of "NaN's".  Do not
2738         use @code for IEEE.
2739         * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
2740         sample.
2741         * gnat_rm.texi, gnat_ugn.texi: Fix typos.  Bump copyright years.
2742
2743 2008-02-11  Joel Sherrill  <joel.sherrill@oarcorp.com>
2744
2745         PR ada/35143
2746         * env.c: Add __rtems__ to if defined.
2747         * s-osinte-rtems.adb: Add To_Target_Priority.  Fix formatting.
2748         * s-osinte-rtems.ads: Add To_Target_Priority prototype and
2749         PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants.  Add
2750         pragma Convention as required.
2751         * gsocket.h: Make compile in and out of RTS.
2752         * Makefile.in: Add system-rtems.ads.  Build DEC extensions.
2753         Use g-soccon-rtems.ads.
2754         * g-soccon-rtems.ads, system-rtems.ads: New files.
2755
2756 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2757
2758         PR other/35107
2759         * Make-lang.in (gnat1): Add $(GMPLIBS).
2760
2761 2008-01-26  Eric Botcazou  <ebotcazou@adacore.com>
2762
2763         * decl.c (components_to_record): Improve comment.
2764
2765 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
2766
2767         * decl.c (components_to_record): Do not reuse the empty union type
2768         if there is a representation clause on the record.
2769         * trans.c (addressable_p): Return true for INTEGER_CST.
2770
2771 2008-01-21  Eric Botcazou  <ebotcazou@adacore.com>
2772
2773         * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
2774         in pointer arithmetics.
2775         * utils2.c (build_allocator): Likewise.
2776
2777 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
2778
2779         * utils.c (build_function_stub): Properly build the call expression.
2780
2781 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
2782
2783         * decl.c (gnat_to_gnu_entity) <object>: Process renamings
2784         before converting the expression to the type of the object.
2785         * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
2786         Stabilize constructors for special wrapping types.
2787
2788 2008-01-13  Eric Botcazou  <ebotcazou@adacore.com>
2789
2790         * trans.c (call_to_gnu): Invoke the addressable_p predicate only
2791         when necessary.  Merge some conditional statements.  Update comments.
2792         Rename unchecked_convert_p local variable to suppress_type_conversion.
2793         Do not suppress conversions in the In case.
2794         (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
2795         into account on non strict-alignment platforms.
2796
2797 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2798
2799         * utils.c (aggregate_type_contains_array_p): New predicate.
2800         (create_field_decl): In a packed record, force byte alignment
2801         for fields without specified position that contain an array.
2802
2803 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
2804
2805         * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
2806
2807 2008-01-10  John David Anglin  <dave.anglin.@nrc-cnrc.gc.ca>
2808
2809         PR ada/34466
2810         * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
2811         sysconf call.
2812         (bit_field): New packed boolean type used by cpu_set_t.
2813         (cpu_set_t): New type corresponding to the C type with
2814         the same name. Note that on the Ada side we use a bit
2815         field array for the affinity mask. There is not need
2816         for the C macro for setting individual bit.
2817         (pthread_setaffinity_np): New imported routine.
2818
2819 2008-01-03  Tero Koskinen  <tero.koskinen@iki.fi>
2820
2821         PR ada/34647
2822         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2823         on OpenBSD as is done on other BSD systems.
2824
2825         PR ada/34645
2826         * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
2827         getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
2828         I/O.
2829
2830         PR ada/34644
2831         * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
2832         clearenv().
2833
2834         PR ada/34646
2835         * init.c (__gnat_error_handler, __gnat_install_handler,
2836         __gnat_init_float): Define for OpenBSD.
2837
2838         * initialize.c (__gnat_initialize): Define for OpenBSD.
2839
2840 2007-12-27  Samuel Tardieu  <sam@rfc1149.net>
2841
2842         PR ada/34553
2843         * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
2844         instead of mktemp() or tmpnam() on NetBSD.
2845
2846 2007-12-23  Eric Botcazou  <ebotcazou@adacore.com>
2847
2848         * trans.c (call_to_gnu): Make the temporary for non-addressable
2849         In parameters passed by reference.
2850         (addressable_p): Return true for STRING_CST and CALL_EXPR.
2851
2852 2007-12-19  Robert Dewar  <dewar@adacore.com>
2853
2854         * g-expect-vms.adb, g-expect.adb, s-poosiz.adb: 
2855         Add pragma Warnings (Off) for unassigned IN OUT arguments
2856
2857         * sem_warn.adb (Output_Reference): Suppress messages for internal names
2858         (Check_References): Extensive changes to tune up warnings
2859         (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
2860         (Has_Pragma_Unmodifed_Check_Spec): New function
2861         (Check_References): Implement pragma Unmodified
2862         (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
2863
2864         * par-prag.adb: Dummy entry for pragma Unmodified
2865
2866         * sem_prag.adb: Implement pragma Unmodified
2867
2868         * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
2869         (Proc_Next_Component_Or_Discriminant): Fix typo.
2870         Update comments.
2871
2872         * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
2873         Unmodified.
2874         (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
2875         because the former already takes care of discarding the result.
2876         (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
2877         Add comment.
2878
2879         * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
2880
2881 2007-12-19  Eric Botcazou  <ebotcazou@adacore.com>
2882
2883         * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
2884         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
2885         system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
2886         system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
2887         system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
2888         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2889         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
2890         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
2891         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
2892         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
2893         (Dynamic_Trampolines_Used): Delete.
2894
2895         * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
2896         Turn on stack probing mechanism on LynxOS.
2897
2898 2007-12-19  Bob Duff  <duff@adacore.com>
2899
2900         * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
2901         the resulting tail recursion by hand. This prevents running out of
2902         memory on deeply nested concatenations, since Field2 is where the left
2903         operand of concatenations is stored.
2904         Fix bug (was returning OK_Orig in some cases). Fix return subtype to
2905         clarify that it can only return OK or Abandon.
2906
2907         * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
2908         operand by iteration, in order to avoid running out of memory on
2909         deeply-nested concatenations. Use the Parent pointer to get back up the
2910         tree.
2911         (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
2912          Resolve_Op_Concat_Rest): New procedures split out of
2913         Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
2914         clearer.
2915
2916         * checks.adb (Remove_Checks): Use Traverse_Proc instead of
2917         Traverse_Func, because the former already takes care of discarding the
2918         result.
2919
2920         * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
2921         because the former already takes care of discarding the result.
2922         (Remove_Warning_Messages): Use appropriate subtype for Status and
2923         Discard 
2924
2925 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2926
2927         * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
2928         discriminants forces expansion of the aggregate into assignments.
2929         (Init_Record_Controller):  If the type of the aggregate is untagged and
2930         is not inherently limited, the record controller is not limited either.
2931
2932 2007-12-19  Robert Dewar  <dewar@adacore.com>
2933
2934         * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
2935         handling compile time known size of record or array (case of front end
2936         layout active, e.g. in GNAAMP).
2937
2938 2007-12-19  Javier Miranda  <miranda@adacore.com>
2939
2940         * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
2941         that forces the construction of static dispatch tables in case of
2942         record subtypes.
2943
2944 2007-12-19  Robert Dewar  <dewar@adacore.com>
2945
2946         * exp_ch9.adb (Null_Statements): Moved to library level
2947         (Trivial_Accept_OK): New function
2948         (Expand_Accept_Declaration): Use Trivial_Accept_OK
2949         (Expand_N_Accept_Statement): Use Trivial_Accept_OK
2950
2951 2007-12-19  Robert Dewar  <dewar@adacore.com>
2952
2953         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
2954         in complex case where array is Volatile.
2955
2956 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2957
2958         * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
2959         properly the Ada2005 rules concerning when the current instance of a
2960         record type is aliased.
2961
2962 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2963
2964         * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
2965         mangled declaration
2966         (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
2967         declarations.
2968         (P_Variant_Part): Cleaner patch for parenthesized discriminant
2969
2970 2007-12-19  Vincent Celier  <celier@adacore.com>
2971
2972         * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
2973         package is not known
2974
2975         * prj-attr.ads (Unknown_Package): New constant
2976         Do not crash when an unknown package is in several projects
2977
2978         * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
2979         ignored
2980
2981         * prj-nmsc.adb (Check): Remove obsolete code related to no longer
2982         existing package Language_Processing.
2983
2984 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
2985             Gary Dismukes  <dismukes@adacore.com>
2986             Samuel Tardieu  <sam@rfc1149.net>
2987
2988         PR ada/15803, ada/15805
2989         * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
2990         illegal access subtypes when there is a constrained partial view.
2991         (Check_For_Premature_Usage): New procedure inside
2992         Access_Subprogram_Declaration for checking that an access-to-subprogram
2993         type doesn't reference its own name within any formal parameters or
2994         result type (including within nested anonymous access types).
2995         (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
2996         (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
2997         context is an access_to_variable, the expression cannot be an
2998         access_to_constant.
2999
3000 2007-12-19  Bob Duff  <duff@adacore.com>
3001
3002         * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
3003         (Analyze_Concatenation): Use iteration instead of recursion in order
3004         to avoid running out of stack space for deeply nested concatenations.
3005
3006 2007-12-19  Ed Schonberg  <schonberg@adacore.com>
3007             Gary Dismukes  <dismukes@adacore.com>
3008
3009         * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
3010         whose renamed entity is a subprogram that requires overriding.
3011         (Premature_Usage): Test for the case of N_Full_Type_Declaration when
3012         issuing an error for premature usage and issue a message that says
3013         'type' rather than 'object'.
3014
3015 2007-12-19  Gary Dismukes  <dismukes@adacore.com>
3016
3017         PR ada/34149
3018         * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
3019         presence of a statically tagged operand (Present (Static_Tag)) with
3020         test for Indeterm_Ancestor_Call when determining whether to propagate
3021         the static tag to tag-indeterminate operands (which forces dispatching
3022         on such calls).
3023         (Check_Controlling_Formals): Ada2005, access parameters can have
3024         defaults.
3025         (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
3026         not insert subprogram in list of primitive operations if already there.
3027
3028 2007-12-19  Tristan Gingold  <gingold@adacore.com>
3029
3030         * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
3031         global variable.
3032
3033 2007-12-19  Thomas Quinot  <quinot@adacore.com>
3034
3035         Part of PR ada/33688
3036         * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
3037         datagram info on Linux.
3038
3039 2007-12-19  Vincent Celier  <celier@adacore.com>
3040
3041         * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
3042         that the source path name is always found in the dependencies.
3043
3044 2007-12-19  Robert Dewar  <dewar@adacore.com>
3045
3046         * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
3047         Fix name of Wide_Wide_Latin_1/9 file names
3048         Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
3049         Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
3050         Add missing documentation for Ada.Command_Line.Response_File
3051         Update list of warning letters for Warnings pragma
3052         Add documentation for pragma Unmodified
3053
3054 2007-12-19  Samuel Tardieu  <sam@rfc1149.net>
3055
3056         * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
3057
3058 2007-12-17  Arnaud Charlet  <charlet@adacore.com>
3059
3060         * s-vxwork-alpha.ads: Removed, no longer used.
3061
3062 2007-12-15  Jakub Jelinek  <jakub@redhat.com>
3063
3064         * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
3065
3066 2007-12-13  Samuel Tardieu  <sam@rfc1149.net>
3067
3068         PR ada/34360
3069         * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
3070         mlib-tgt-specific.adb.
3071
3072 2007-12-13  Bob Duff  <duff@adacore.com>
3073
3074         * trans.c (Attribute_to_gnu): Check for violations of the
3075         No_Implicit_Dynamic_Code restriction. This checking used to be done in
3076         the front end, but is moved here so we can make it more accurate.
3077
3078 2007-12-13  Pascal Obry  <obry@adacore.com>
3079
3080         * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
3081          version is provided for older GNU/Linux distribution not
3082          supporting thread affinity sets.
3083         
3084         * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
3085         call.
3086         (bit_field): New packed boolean type used by cpu_set_t.
3087         (cpu_set_t): New type corresponding to the C type with
3088         the same name. Note that on the Ada side we use a bit
3089         field array for the affinity mask. There is not need
3090         for the C macro for setting individual bit.
3091         (pthread_setaffinity_np): New imported routine.
3092         
3093         * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
3094         no null.
3095         (Create_Task): Set the processor affinity mask if information
3096         is present.
3097         
3098         * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
3099         
3100 2007-12-13  Robert Dewar  <dewar@adacore.com>
3101
3102         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads, 
3103         s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads, 
3104         s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads, 
3105         s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
3106         s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
3107         s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads, 
3108         s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads, 
3109         i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
3110         for subprogram pointers.
3111
3112         * g-ctrl_c.adb: New file.
3113
3114         * g-ctrl_c.ads (Install_Handler): New body.
3115
3116         * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
3117         instead of obsolete function Is_Always_Inlined.
3118         (Freeze_Entity): check for tagged type in imported C subprogram
3119         (Freeze_Entity): check for 8-bit boolean in imported C subprogram
3120         (Freeze_Entity): check for convention Ada subprogram pointer in
3121         imported C subprogram.
3122         (Freeze_Fixed_Point_Type): In the case of a base type where the low
3123         bound would be chopped off and go from negative to zero, force
3124         Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
3125         bound) so that the size computation for the base type will take
3126         negative values into account.
3127
3128 2007-12-13  Eric Botcazou  <ebotcazou@adacore.com>
3129             Bob Duff  <duff@adacore.com>
3130             Tristan Gingold  <gingold@adacore.com>
3131
3132         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
3133         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads, 
3134         system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
3135         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
3136         system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads, 
3137         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
3138         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
3139         system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
3140         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
3141         system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
3142         system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
3143         (Always_Compatible_Rep): New flag to control trampolines globally.
3144         (Dynamic_Trampolines_Used): New flag for implementing the
3145         No_Implicit_Dynamic_Code restriction more correctly (not yet used,
3146         and not yet set correctly for some targets).
3147
3148         * s-taprop-vxworks.adb: Use stack limit method of stack checking.
3149         Simply indirectly call s-stchop when a task is created.
3150
3151         * ali.ads: 
3152         New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
3153         appears as an argument (entries A) in an ALI file.
3154
3155         * fe.h (Stack_Check_Limits): Declare new target parameter.
3156         (Check_Implicit_Dynamic_Code_Allowed): New procedure.
3157
3158         * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
3159         This variable is declared in C to be sure not subject to elaboration
3160         code.
3161         (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
3162         Storage_Error.
3163
3164         * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
3165         (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
3166
3167         * s-stchop.ads: Add comments.
3168
3169         * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
3170         limit method of stack checking.
3171
3172         * s-stchop-limit.ads: New file.
3173
3174 2007-12-13  Robert Dewar  <dewar@adacore.com>
3175
3176         * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb, 
3177         a-cihama.adb, g-awk.adb, 
3178         s-inmaop-posix.adb: Update handling of assigned value/unreferenced
3179         warnings
3180
3181         * exp_smem.adb: Update handling of assigned value/unreferenced warnings
3182
3183         * sem.adb: Update handling of assigned value/unreferenced warnings
3184
3185         * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
3186
3187         * lib-xref.ads: Improve documentation for k xref type
3188
3189         * lib-xref.adb: 
3190         Update handling of assigned value/unreferenced warnings
3191         (Generate_Reference): Warning for reference to entity for which a
3192         pragma Unreferenced has been given should be unconditional.
3193         If the entity is a discriminal, mark the original
3194         discriminant as referenced.
3195
3196         * sem_warn.ads, sem_warn.adb
3197         (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
3198         no entities referenced in package
3199         (Check_One_Unit): Don't give message about no entities referenced in
3200         a package if a pragma Unreferenced has appeared.
3201         Handle new warning flag -gnatw.a/-gnatw.A
3202         Update handling of assigned value/unreferenced warnings
3203
3204         * atree.h: Add flags up to Flag247
3205         (Flag231): New macro.
3206
3207 2007-12-13  Jose Ruiz  <ruiz@adacore.com>
3208
3209         * adaint.h: (__gnat_plist_init): Not defined for RTX.
3210
3211         * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
3212         RTX systems.
3213
3214         * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
3215         (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
3216         EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
3217         GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
3218
3219         * mingw32.h: 
3220         Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
3221
3222         * sysdep.c (winflush_function for RTX): Procedure that does nothing
3223         since we only have problems with Windows 95/98, which are not
3224         supported by RTX.
3225         (__gnat_ttyname): Return the empty string on Nucleus, just as
3226         done on vxworks.
3227
3228 2007-12-13  Robert Dewar  <dewar@adacore.com>
3229
3230         * a-textio.adb, a-textio.ads: 
3231         Extensive changes to private part for wide character encoding
3232
3233         * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
3234         (Look_Ahead): Fix mishandling of encoded sequences
3235         Move declaration of Wch_Con to private part (should not be visible)
3236
3237         * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
3238         UTF-8. Probably this is never used, but if it is, brackets is
3239         clearly correct.
3240
3241         * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
3242         setting wide character encoding for no main program case and when
3243         encoding is specified using -W?
3244         Initialize stack limit of environment task if stack limit method of
3245         stack checking is enabled.
3246         (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
3247         (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
3248         (Get_Main_Unit_Name): New function.
3249         (Gen_Adainit_Ada): Add call to main program for .NET when needed.
3250         (Gen_Output_File): Set Bind_Main_Program to True for .NET
3251
3252         * bindusg.adb: Add line for -Wx switch
3253
3254         * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
3255         Add comments
3256         Add new useful constant WC_Longest_Sequences
3257
3258         * switch-b.adb: Clean up handling of -Wx switch
3259         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3260
3261         * switch-c.adb: -gnatg activates warning on assertion errors
3262         For -gnatWx, set Wide_Character_Encoding_Method_Specified
3263
3264         * s-wchcon.adb: (Is_Start_Of_Encoding): New function
3265
3266 2007-12-13  Robert Dewar  <dewar@adacore.com>
3267             Ed Schonberg  <schonberg@adacore.com>
3268
3269         * a-ngcoty.adb: New pragma Fast_Math
3270
3271         * opt.adb: New pragma Fast_Math
3272
3273         * par-prag.adb: 
3274         Add Implemented_By_Entry to the list of pragmas which do not require any
3275         special processing.
3276         (Favor_Top_Level): New pragma.
3277         New pragma Fast_Math
3278
3279         * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
3280         (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3281         Expand_Allocator_Expression): Take into account VM_Target
3282         (Expand_Attribute, case 'Identity):  Handle properly the case where
3283         the prefix is a task interface.
3284         New pragma Fast_Math
3285
3286         * par.adb (Next_Token_Is): New function
3287         (P_Pragma): Add Skipping parameter
3288         (U_Left_Paren): New procedure
3289         (U_Right_Paren): New procedure
3290         New pragma Fast_Math
3291
3292         * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
3293         subunit
3294         New pragma Fast_Math
3295
3296         * sem_prag.adb: Add significance value to table Sig_Flag for pragma
3297         Implemented_By_Entry.
3298         (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
3299         (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
3300         items, since it can apply to more than one overloadable entity. Set
3301         new flag Has_Pragma_Inline_Always for Inline_Always case.
3302         (Analyze_Pragma, case Complex_Representation): Improve error message.
3303         (Analyze_Pragma, case Assert): When assertions are disabled build the
3304         rewritten code with Sloc of expression rather than pragma, so new
3305         warning about failing is not deleted.
3306         (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
3307         protected types and update error message to reflect that. Test whether
3308         the protected type is allowed for the pragma (an error is issued if the
3309         type has any entries, or components that do not have preelaborable
3310         initialization).
3311         New pragma Fast_Math
3312         (Analyze_Pragma, case No_Return): Handle generic instance
3313
3314         * snames.h, snames.ads, snames.adb: 
3315         Add new predefined name for interface primitive _Disp_Requeue.
3316         New pragma Fast_Math
3317
3318         * a-tags.ads, a-tags.adb: New calling sequence for
3319         String_To_Wide_[Wide_]String
3320         (Secondary_Tag): New subprogram.
3321
3322         * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
3323         from Exp_Attr
3324         New calling sequence for String_To_Wide_[Wide_]String
3325         (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
3326         the use of the secondary stack for image routines.
3327
3328         * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
3329         calling sequence for String_To_Wide_[Wide_]String
3330
3331         * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
3332         Ada 95 mode
3333         (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
3334         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3335
3336         * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
3337         (P_Formal_Part): Use Skipping parameter in P_Pragma call
3338         to improve error recovery
3339
3340         * par-util.adb (Next_Token_Is): New function
3341         (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
3342
3343         * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
3344         semicolon if missing
3345         (P_Pragma): Implement new Skipping parameter
3346         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3347         Fix location of flag for unrecognized pragma message
3348
3349         * par-tchk.adb (U_Left_Paren): New procedure
3350         (U_Right_Paren): New procedure
3351
3352 2007-12-13  Geert Bosch  <bosch@adacore.com>
3353
3354         * a-tifiio.adb: 
3355         (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
3356         the second or later Scaled_Divide would omit leading zeroes,
3357         resulting in too few digits produced and a Layout_Error as result.
3358         (Put): Initialize Pos.
3359
3360 2007-12-13  Robert Dewar  <dewar@adacore.com>
3361
3362         atree.ads, atree.adb (Flag231..Flag247): New functions
3363         (Set_Flag231..Set_Flag247): New procedures
3364         (Basic_Set_Convention): Rename Set_Convention to be
3365         Basic_Set_Convention
3366         (Nkind_In): New functions
3367         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3368
3369         * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
3370         instead
3371          of obsolete function Is_Always_Inlined
3372         (Register_Predefined_DT_Entry): Initialize slots of the second
3373         secondary dispatch table.
3374         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3375         (Expand_N_Function_Call): Remove special provision for stack checking.
3376
3377         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
3378         Include _Disp_Requeue in the list of predefined operations.
3379         (Find_Interface_ADT): Modified to fulfill the new specification.
3380         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3381
3382         * par-ch4.adb, nlists.ads, nlists.adb: 
3383         Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
3384
3385         * sinfo.ads, sinfo.adb: (Nkind_In): New functions
3386         Fix location of flag for unrecognized pragma message
3387
3388         * sem_ch7.adb: Use Nkind_In
3389
3390 2007-12-13  Vincent Celier  <celier@adacore.com>
3391
3392         * opt.ads: 
3393         Indicate what flags are used by the Project Manager, gprbuild and
3394         gprclean.
3395         (Opt.Follow_Links_For_Dirs): New flag
3396         (Warn_On_Assertion_Failure): New flag
3397         (Wide_Character_Encoding_Method_Specified): New flag
3398         (Suppress_All_Inlining): New switch set by -fno-inline
3399         (Real_VMS_Target): New flag
3400         New pragma Fast_Math
3401
3402 2007-12-13  Robert Dewar  <dewar@adacore.com>
3403
3404         * back_end.adb: Recognize -fno-inline
3405
3406 2007-12-13  Robert Dewar  <dewar@adacore.com>
3407
3408         * checks.adb: Fix optimization problem with short-circuited form
3409
3410 2007-12-13  Bob Duff  <duff@adacore.com>
3411
3412         * clean.adb (Usage): Add line for -aP
3413         (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
3414         with a parameter "procedure Usage", instead of passing a pointer to a
3415         procedure. This is to eliminate trampolines (since the Usage procedure
3416         is often nested in a main procedure, and it would be inconvenient to
3417         unnest it).
3418
3419         * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
3420         to be generic, with a parameter "procedure Callback (...)", instead of
3421         passing a pointer to a procedure. This is to eliminate trampolines
3422         (since the Callback procedure is usually nested).
3423
3424         * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb, 
3425         gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
3426         (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
3427
3428         * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
3429         Use the generic Heap_Sort_G instead of Heap_Sort_A.
3430
3431 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3432
3433         * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
3434         (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
3435         (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
3436         (Renamed_In_Spec): New flag
3437         (Has_Pragma_Inline_Always): New flag
3438         Add missing doc for pragma Obsolescent_Warning
3439         Add missing doc for 17 additional unused flags (230-247)
3440         (Is_Derived_Type): Remove condition "not Is_Generic_Type".
3441         Alphabetize with clauses.
3442         Separate Is_Thunk and Has_Thunks flags
3443         (Write_Entity_Flags): Add forgotten entry for Has_Thunks
3444         (Related_Interface): Renamed to Related_Type.
3445         (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
3446         (Set_Is_Flag): Restrict the assertion.
3447
3448 2007-12-13  Vincent Celier  <celier@adacore.com>
3449
3450         * errout.adb (Output_Source_Line): Do not keep a trailing space after
3451         the source line number if the source line is empty.
3452
3453 2007-12-13  Geert Bosch  <bosch@adacore.com>
3454
3455         * eval_fat.adb (Decompose_Int): Handle argument of zero.
3456         (Compose): Remove special casing of zero.
3457         (Exponent): Likewise.
3458         (Fraction): Likewise.
3459         (Machine): Likewise.
3460         (Decompose): Update comment.
3461
3462 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3463
3464         * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
3465         limited ancestor part, initialize controllers of enclosing record
3466         before expanding ancestor aggregate.
3467         (Gen_Assign): If a component of the aggregate is box-initialized, add
3468         code to call Initialize if the component is controlled, and explicit
3469         assignment of null if the component is an access type.
3470
3471         Handle properly aggregates for limited types that appear in object
3472         declarations when the aggregate contains controlled values such as
3473         protected types.
3474         When expanding limited aggregates into individual components, do not
3475         call Adjust on controlled components that are limited.
3476
3477 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3478
3479         * expander.adb: Take into account N_Subprogram_Renaming_Declaration
3480
3481 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3482
3483         * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
3484         predefined primitive _Disp_Requeue.
3485         (Make_Predefined_Primitive_Specs): Create the spec for predefined
3486         primitive _Disp_Requeue.
3487         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
3488         type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
3489         (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
3490         an interface type. In case of limited interfaces we now declare all the
3491         predefined primitives associated with synchronized interfaces as
3492         abstract.
3493         (Predef_Spec_Or_Body): For interface types generate abstract subprogram
3494         declarations.
3495         (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
3496         tagged type is an interface type and there is no user-defined equality
3497         function.
3498         Add also bodies of predefined primitives associated with synchronized
3499         interfaces.
3500         (Freeze_Record_Type): Do not build bodies of predefined primitives of
3501         interface types because they are now defined abstract.
3502         Add missing documentation.
3503         (Expand_Record_Controller): Update occurrence of Related_Interface
3504         to Related_Type.
3505         (Build_Offset_To_Top_Functions): Do nothing in case of VM.
3506         (Expand_N_Object_Declaration): Take into account VM_Target when handling
3507         class wide interface object declaration.
3508         (Expand_Previous_Access_Type): Do not create a duplicate master entity
3509         if the access type already has one.
3510         (Expand_N_Object_Declaration): Defend against attempt to validity check
3511         generic types. Noticed for -gnatVcf specified with previous errors.
3512
3513 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3514
3515         * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
3516         Expand_Allocator_Expression): Take into account VM_Target
3517
3518         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
3519         secondary stack when VM_Target /= No_VM
3520
3521 2007-12-13  Javier Miranda  <miranda@adacore.com>
3522             Ed Schonberg  <schonberg@adacore.com>
3523
3524         * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
3525         Is_Complation_Unit by Is_Library_Level_Entity in the code
3526         that decides if the static dispatch tables need to be built.
3527         (Wrap_Transient_Declaration): Do not generate a finalization call if
3528         this is a renaming declaration and the renamed object is a component
3529         of a controlled type.
3530
3531 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
3532
3533         * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
3534         In the case where the renamed subprogram is a dereference, call
3535         Force_Evaluation on the prefix.
3536
3537 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3538             Ed Schonberg  <schonberg@adacore.com>
3539
3540         * exp_ch9.adb (Expand_N_Asynchronous_Select,
3541         Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
3542         comment reformatting.
3543         (Set_Privals): Inherit aliased flag from formal. From code reading.
3544         (Build_Simple_Entry_Call): Out parameters of an access type are passed
3545         by copy and initialized from the actual. This includes entry parameters.
3546         (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
3547         and Ada 2005 models of requeue.
3548         (Null_Statements): Still connsider do-end block null if it contains
3549         Unreferenced and Warnings pragmas.
3550         (Expand_N_Accept_Statement): Do not optimize away null do end if
3551         dispatching policy is other than defaulted.
3552         (Expand_N_Timed_Entry_Call): When the triggering statement is a
3553         dispatching call, manually analyze the delay statement.
3554         (Find_Parameter_Type): Move subprogram to Sem_Util.
3555
3556 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3557             Javier Miranda  <miranda@adacore.com>
3558
3559         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
3560         _Disp_Requeue occupies dispatch table slot number 15. Move
3561         _Disp_Timed_Select to slot 16.
3562         (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
3563         generate the spec and body of _Disp_Reqeueue.
3564         (Make_DT): Build and initialize the second dispatch table.
3565         Handle initialization of RC_Offset when the parent
3566         is a private type with variable size components.
3567         (Make_Secondary_DT): Complete documentation. Add support to
3568         initialize the second dispatch table.
3569         (Make_Tags): Generate the tag of the second dispatch table.
3570         (Register_Primitive): Add support to register primitives in the
3571         second dispatch table.
3572
3573 2007-12-13  Pascal Obry  <obry@adacore.com>
3574
3575         * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
3576         Windows. This signal is used by gnatmake to kill child processes for
3577         example.
3578
3579 2007-12-13  Javier Miranda  <miranda@adacore.com>
3580
3581         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
3582         support for generic dispatching constructor calls in which we need to
3583         locate the tag of a secondary dispatch table associated with an
3584         interface type to properly dispatch the call.
3585         (Expand_N_Attribute_Reference [case Address],
3586         Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
3587         handling of VM targets.
3588
3589 2007-12-13  Robert Dewar  <dewar@adacore.com>
3590             Ed Schonberg  <schonberg@adacore.com>
3591
3592         * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
3593         assert fail
3594
3595         * ug_words: Add entries for -gnatw.a -gnatw.A
3596
3597         * sem_res.adb (Set_String_Literal_Subtype): If the context of the
3598         literal is a subtype with non-static constraints, use the base type of
3599         the context as the base of the string subtype, to prevent type
3600         mismatches in gigi.
3601         (Resolve_Actuals): If the actual is an entity name, generate a
3602         reference before the actual is resolved and expanded, to prevent
3603         spurious warnings on formals of enclosing protected operations.
3604         (Analyze_Overloaded_Selected_Component): If type of prefix if
3605         class-wide, use visible components of base type.
3606         (Resolve_Selected_Component): Ditto.
3607         (Resolve_Short_Circuit): Detect case of pragma Assert argument
3608         evaluating to False, and issue warning message.
3609
3610         * usage.adb: Add lines for -gnatw.a and -gnatw.A
3611
3612 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3613
3614         * g-calend.ads (No_Time): New constant, to represent an uninitialized
3615         time value
3616
3617         * g-catiio.ads, g-catiio.adb (Value): Added support for more date
3618         formats.
3619         (Month_Name_To_Number): New subprogram
3620
3621         * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
3622         letter to upper-case.
3623
3624 2007-12-13  Robert Dewar  <dewar@adacore.com>
3625             Ed Schonberg  <schonberg@adacore.com>
3626
3627         * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
3628
3629         * layout.adb (Resolve_Attribute, case 'Access): If designated type of
3630         context is a limited view, use non-limited view when available. If the
3631         non-limited view is an unconstrained array, this enforces consistency
3632         requirements in 3.10.2 (27).
3633         (Layout_Type): For an access type whose designated type is a limited
3634         view, examine its declaration to determine if it is an unconstrained
3635         array, and size the access type accordingly.
3636         (Layout_Type): Do not force 32-bits for convention c subprogram
3637         pointers in -gnatdm mode, only if real vms target.
3638
3639         * sem_attr.adb (Analyze_Access_Attribute): Use new flag
3640         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3641         (Analyze_Access_Attribute,Attribute_Address): Remove checks for
3642         violations of the No_Implicit_Dynamic_Code restriction.
3643         (Resolve_Attribute, case 'Access): If designated type of context is a
3644         limited view, use non-limited view when available. If the non-limited
3645         view is an unconstrained array, this enforces consistency requirements
3646         in 3.10.2 (27).
3647         (Layout_Type): For an access type whose designated type is a limited
3648         view, examine its declaration to determine if it is an unconstrained
3649         array, and size the access type accordingly.
3650
3651 2007-12-13  Vincent Celier  <celier@adacore.com>
3652
3653         * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
3654         object directory of main project does not exist.
3655         On VMS, correctly set then environment variable for the source
3656         directories.
3657
3658 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
3659
3660         * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
3661         set to True this procedure will create the value of type REG_EXPAND_SZ.
3662         It was only possible to create REG_SZ values before.
3663
3664 2007-12-13  Robert Dewar  <dewar@adacore.com>
3665
3666         * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
3667         g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
3668         namet-sp.adb, namet-sp.ads: New files.
3669
3670         * g-speche.adb: Use generic routine in g-spchge
3671
3672         * s-wchcnv.ads, s-wchcnv.adb: 
3673         Minor code cleanup (make formal type consistent with spec)
3674
3675         * namet.adb: Update comments.
3676
3677         * par-endh.adb (Evaluate_End_Entry): Use new
3678         Namet.Sp.Is_Bad_Spelling_Of function
3679
3680         * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
3681
3682         * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
3683         ancestor is an access type initialized with a box, set its type
3684         explicitly, for use in subsequent expansion.
3685         (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
3686         function
3687
3688 2007-12-13  Robert Dewar  <dewar@adacore.com>
3689
3690         * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
3691         access Vstring)
3692
3693 2007-12-13  Robert Dewar  <dewar@adacore.com>
3694
3695         * inline.adb (Back_End_Cannot_Inline): Use new flag
3696         Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
3697
3698         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
3699         Has_Pragma_Inline_Always instead.
3700         of obsolete function Is_Always_Inlined
3701         (Build_Body_To_Inline): Same change
3702         (Cannot_Inline): Same change
3703         Do not give warning on exception raise in No_Return function
3704
3705         * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
3706         component has two inconsistent component clauses in the same record
3707         representation clause, favor the message that complains about
3708         duplication rather than inconsistency.
3709         Update comments.
3710         (Record_Representation_Clause): Do not warn on missing component
3711         clauses for inherited components of a type extension.
3712         (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
3713         an overloadable item if it is a pragma that can apply to multiple
3714         overloadable entities (e.g. Inline) because a pragma cannot be on
3715         more than one chain at a time.
3716         (Validate_Unchecked_Conversion): Add code to warn on unchecked
3717         conversion where one of the operands is Ada.Calendar.Time.
3718         (Analyze_Attribute_Definition_Clause): Fix typo in error message.
3719         For now, ignore Component_Size clause on VM targets, as done for
3720         pragma Pack.
3721
3722 2007-12-13  Emmanuel Briot  <briot@adacore.com>
3723             Vincent Celier  <celier@adacore.com>
3724
3725         * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
3726         string
3727         (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
3728         prj.ads
3729         (Hash): Move instantiation of System.HTable.Hash from spec to body
3730         (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
3731         systems, since we do not need to recompute the Name_Id for the canonical
3732         file name.
3733         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3734         as a parameter. This parameter is in fact always "ada" in all calls, and
3735         we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
3736         while loading a project with 40000 files
3737
3738         * prj-attr.adb: Fix name of attribute Dependency_Driver
3739         Change the kind of indexing for attribute Root
3740
3741         * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
3742         variables already declared, in case constructions.
3743
3744         * prj-env.adb (Initialize): Reset Current_Source_Path_File and
3745         Current_Object_Path_File to No_Path.
3746
3747         * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
3748         ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
3749
3750         * prj-makr.adb: new parameter Current_Dir
3751
3752         * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
3753         Ada sources when language is not Ada.
3754         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3755         (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
3756         (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
3757         (Locate_Directory): Always resolve links when computing Canonical_Path
3758         (Look_For_Sources): Make sure that Name_Buffer contains the file name
3759         in Source_Files before checking for the presence of a directory
3760         separator.
3761         Optimize calls to Name_Find when on case sensitive systems.
3762         (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
3763         as a parameter.
3764         (Prj.Nmsc.Check): new parameter Current_Dir
3765         (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
3766         cannot be empty and the spec suffix cannot be the same as the body or
3767         separate suffix.
3768         (Get_Unit): When a file name can be of several unit kinds (spec, body or
3769         subunit), always consider the longest suffix.
3770         (Check_Configuration): Do not issue an error if there is no compiler
3771         for a language. Just issue a warning and ignore the sources for the
3772         language.
3773         (Check_Library_Attributes): Only check Library_Dir if Library_Name is
3774         not empty.
3775         (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
3776         (Unit_Exceptions): New hash table
3777         (Check_Naming_Schemes): Check if a file that could be a unit because of
3778         the naming scheme is not in fact a source because there is an exception
3779         for the unit.
3780         (Look_For_Sources): Put the unit exceptions in hash table
3781         Unit_Exceptions
3782         (Get_Unit_Exceptions): Give initial value No_Source to local variable
3783         Other_Part to avoid exception when code is compiled with validity
3784         checking.
3785         (Get_Sources_From_File): Check that there is no directory information
3786         in the file names.
3787         (Look_For_Sources): Check that there is no directory information in the
3788         list of file names in Source_Files.
3789         (Look_For_Sources): In multi-language mode, do not allow exception file
3790         names that are excluded.
3791         (Excluded_Sources_Htable): New hash table
3792         (Search_Directories.Check_File): New procedure to simplify
3793         Search_Directories.
3794         (Search_Directories): Do not consider excluded sources
3795         (Look_For_Sources): Populate Excluded_Sources_Htable before calling
3796         Search_Directories.
3797         (Get_Exceptions): Set component Lang_Kind of Source_Data
3798         (Get_Unit_Exceptions): Ditto
3799         (Search_Directories): Ditto
3800
3801         * prj-pars.adb: new parameter Current_Dir
3802
3803         * prj-part.ads, prj-part.adb: 
3804         Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
3805         (Opt.Follow_Links_For_Dirs): New flag
3806         (Project_Path_Name_Of): Cache information returned by this routine as
3807         Locate_Regular_File is a costly routine. The code to output a log
3808         information and the effective call to Locate_Regular_File is now
3809         factorized into a routine (code clean-up).
3810         (Parse, Parse_Single_Project): new parameter Current_Dir
3811         When main project file cannot be found, indicate in the error
3812         message the project path that was used to do the search.
3813
3814         * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
3815         (Prj.Proc.Process*): new parameter Current_Dir
3816
3817         * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
3818
3819 2007-12-13  Bob Duff  <duff@adacore.com>
3820
3821         * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
3822         procedure to be called from the back end to check the
3823         No_Implicit_Dynamic_Code restriction.
3824
3825 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
3826
3827         * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
3828         Fixes another case where RTE_Available_Call was ignored instead of being
3829         taken into account.
3830         (Load_Fail): Ditto.
3831
3832         * rtsfind.ads: Add new entries.
3833
3834 2007-12-13  Robert Dewar  <dewar@adacore.com>
3835
3836         * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
3837         g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
3838
3839         * scn.adb: Implement BOM recognition
3840
3841 2007-12-13  Thomas Quinot  <quinot@adacore.com>
3842             Ed Schonberg  <schonberg@adacore.com>
3843
3844         * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
3845         subprogram body that acts as its own spec may not have a non-private
3846         WITH clause on a private sibling.
3847         (Build_Unit_Name): If the parent unit in the name in a with_clause on a
3848         child unit is a renaming, create an implicit with_clause on that
3849         parent, and not on the unit it renames, to prevent visibility errors
3850         in the current unit.
3851
3852 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3853
3854         * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
3855         renaming declaration, use the Slocs of the formal parameters from the
3856         declaration of the formal subprogram when creating the formal parameter
3857         entities in the renaming declaration.
3858         (Analyze_Formal_Type_Declaration): Change the placement of the error
3859         message concerning illegal known discriminants. It is now posted on the
3860         type rather than on the first discriminant. This change ensures early
3861         error report.
3862         (Freeze_Subprogram_Body): If the generic subprogram is nested within
3863         the package body that contains the instance, do not generate an
3864         out-of-place freeze node for the enclosing package.
3865         (Collect_Previous_Instantiations): Ignore internal instantiations
3866         generated for formal packages.
3867         (Validate_Derived_Type_Instance): Add a check that when a formal
3868         derived type is Known_To_Have_Preelab_Init then the actual type must
3869         have preelaborable initialization, and issue an error when this
3870         condition is violated.
3871
3872 2007-12-13  Robert Dewar  <dewar@adacore.com>
3873
3874         * s-imenne.adb, s-imenne.ads: New files.
3875
3876         * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb, 
3877         s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb, 
3878         s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads, 
3879         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb, 
3880         s-imgwch.ads: New calling sequence for Image routines to avoid sec
3881         stack usage.
3882
3883 2007-12-13  Javier Miranda  <miranda@adacore.com>
3884             Ed Schonberg  <schonberg@adacore.com>
3885
3886         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
3887         generation of spurious error if parent is an interface type; caused
3888         because predefined primitive bodies will be generated later by
3889         Freeze_Record_Type.
3890         (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
3891         flag.
3892         (Derive_Subprograms): Handle derivations of predefined primitives
3893         after all the user-defined primitives to ensure that they are
3894         found in proper order in instantiations.
3895         (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
3896         of Related_Interface to Related_Type.
3897         (Record_Type_Declaration): Minor reordering of calls to decorate the
3898         Tag component because the entity must have set its Ekind attribute
3899         before setting its Is_Tag attribute.
3900         (Analyze_Subtype_Declaration): In the case of subtypes with
3901         Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
3902
3903 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3904             Ed Schonberg  <schonberg@adacore.com>
3905
3906         * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
3907         statement to the list of contexts where a selected component with a
3908         concurrent tagged type prefix should yield a primitive operation.
3909         (Find_Primitive_Operation): Handle case of class-wide types.
3910         (Analyze_Overloaded_Selected_Component): If type of prefix is
3911         class-wide, use visible components of base type.
3912         (Resolve_Selected_Component): Ditto.
3913         (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
3914         formal of a generic subprogram. find candidate interpretations by
3915         scanning the list of generic formal declarations.:
3916         (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
3917         type from a limited_with_clause, and the full view is available, use it
3918         for subsequent semantic checks.
3919         (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
3920         (Find_Primitive_Operation): New function.
3921         (Analyze_Overloaded_Selected_Component): insert explicit dereference
3922         only once if several interpretations of the prefix yield an access type.
3923         (Try_Object_Operation): Code and comment cleanup.
3924         (Analyze_Selected_Component): Reorder local variables. Minot comment and
3925         code reformatting. When the type of the prefix is tagged concurrent, a
3926         correct interpretation might be available in the primitive and
3927         class-wide operations of the type.
3928
3929 2007-12-13  Robert Dewar  <dewar@adacore.com>
3930             Ed Schonberg  <schonberg@adacore.com>
3931
3932         * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
3933         renaming entry as subprogram using rename-as-body if subprogram spec
3934         frozen.
3935         (Use_One_Type): The clause is legal on an access type whose designated
3936         type has a limited view.
3937         (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3938         (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
3939         (Analyze_Renamed_Primitive_Operation): new procedure to determine the
3940         operation denoted by a selected component.
3941         (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
3942         it can be an expression, possibly overloaded, that returns a task or
3943         an access to one.
3944
3945 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3946             Gary Dismukes  <dismukes@adacore.com>
3947
3948         * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
3949         requeue statement is dispatching. Do not emit an error when the name is
3950         not an entry and the context is a dispatching select. Add code to
3951         perform subtype conformance between the formals of the current entry
3952         and those of the target interface primitive.
3953         (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
3954         Timed_Entry_Call): Analyze the triggering statement as the first step of
3955         the processing. If this is a dispatching select, postpone the analysis
3956         of all select statements until the Expander transforms the select. This
3957         approach avoids generating duplicate identifiers after the Expander has
3958         replicated some of the select statements. In case the Expander is
3959         disabled, perform regular analysis.
3960         (Check_Triggering_Statement): New routine.
3961         (Analyze_Requeue): Exclude any interpretations that are not entries when
3962         checking overloaded names in a requeue. Also test type conformance for
3963         matching interpretations rather than requiring subtype conformance at
3964         that point to conform with the RM's resolution rule for requeues.
3965
3966 2007-12-13  Ed Schonberg  <schonberg@adacore.com>
3967
3968         * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
3969         inherited operation is a defaulted tag-indeterminate call, and there is
3970         a statically tagged actual, use the static tag as a controlling actual
3971         for the defaulted actual.
3972
3973 2007-12-13  Geert Bosch  <bosch@adacore.com>
3974
3975         * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
3976         context, so do not call Check_Non_Static_Context.
3977
3978 2007-12-13  Hristian Kirtchev  <kirtchev@adacore.com>
3979
3980         * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
3981         whether formal E is an entity which may have parameters.
3982
3983 2007-12-13  Bob Duff  <duff@adacore.com>
3984             Javier Miranda  <miranda@adacore.com>
3985             Robert Dewar  <dewar@adacore.com>
3986
3987         * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
3988         (Set_Convention): New procedure to set the Convention flag, and in
3989         addition make sure the Favor_Top_Level flag is kept in sync (all
3990         foreign-language conventions require Favor_Top_Level = True).
3991         (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
3992         to Related_Type.
3993         (Collect_Interfaces_Info): Minor update to handle the two secondary
3994         dispatch tables. Update occurrence of Related_Interface to Related_Type.
3995         (Generate_Parent_Ref): Add parameter to specify entity to check
3996         (Is_Preelaborable_Expression): Allow the name of a discriminant to
3997         initialize a component of a type with preelaborable initialization.
3998         This includes the case of a discriminal used in such a context.
3999         (Is_Dependent_Component_Of_Mutable_Object): Take into account the
4000         latest Ada 2005 rules about renaming and 'Access of
4001         discriminant-dependent components.
4002         (Check_Nested_Access): Add handling when there are no enclosing
4003         subprograms (e.g. case of a package body).
4004         (Find_Parameter_Type): Factor routine from several other compiler files.
4005         Remove routine from Find_Overridden_Synchronized_Primitive.
4006
4007 2007-12-13  Thomas Quinot  <quinot@adacore.com>
4008
4009         * sinput.adb (Get_Source_File_Index): Add assertion to guard against
4010         an invalid access to an uninitialized slot in the
4011         Source_File_Index_Table.
4012
4013 2007-12-13  Thomas Quinot  <quinot@adacore.com>
4014
4015         * sinput-l.adb (Load_File): Disable style checks when preprocessing.
4016
4017 2007-12-13  Bob Duff  <duff@adacore.com>
4018
4019         * s-soflin.ads: Apply new pragma Favor_Top_Level to all
4020         access-to-subprogram types in this package.
4021
4022 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4023
4024         * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
4025         with Stack_Grows_Down in System.Parameters. Rename Array_Address into
4026         Stack_Overlay_Address and document that we are using an internal
4027         abstraction.
4028         (Byte_Size, Unsigned_32_Size): Remove, now useless.
4029         (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
4030         consistently throughout the various implementation pieces.
4031
4032         * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
4033         overlay we are using to fill the stack area with patterns.
4034         (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
4035         (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
4036         (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
4037
4038 2007-12-13  Robert Dewar  <dewar@adacore.com>
4039
4040         * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
4041
4042 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
4043
4044         * s-tassta.adb: 
4045         (Create_Task): Take into account tasks created by foreign threads.
4046         Code clean up: use constants instead of hard coded values.
4047
4048 2007-12-13  Robert Dewar  <dewar@adacore.com>
4049
4050         * styleg.adb (Check_Comment): More liberal rules for comment placement
4051
4052 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4053
4054         * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
4055         of Procedure Value instead of Frame Pointer as the invocation
4056         identifier associated with the instruction pointer in each traceback
4057         entry.
4058
4059         * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
4060         TB_Entry_For): Revert back to use of Procedure Value instead of Frame
4061         Pointer as the invocation identifier passed to tbk$symbolize.
4062
4063         * s-traent-vms.ads, s-traent-vms.adb
4064         (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
4065         Procedure Value instead of Frame Pointer as the invocation identifier
4066         passed to tbk$symbolize.
4067
4068 2007-12-13  Robert Dewar  <dewar@adacore.com>
4069
4070         * tbuild.ads, tbuild.adb: 
4071         Fix location of flag for unrecognized pragma message
4072
4073 2007-12-13  Robert Dewar  <dewar@adacore.com>
4074
4075         * treepr.ads, treepr.adb: (pl): implement use of positive value
4076         shorthands
4077
4078 2007-12-13  Robert Dewar  <dewar@adacore.com>
4079
4080         * xeinfo.adb: Remove warnings
4081         * xnmake.adb: Remove warnings
4082         * xsinfo.adb: Remove warnings
4083         * xtreeprs.adb: Remove warnings
4084         * xsnames.adb: Remove warnings
4085
4086         * a-ngcoar.adb: Fix typo.
4087         * s-interr.adb: Minor reformatting
4088         * env.c: Minor reformatting.
4089         * g-bytswa.adb: Minor reformatting.
4090         * g-rannum.ads: Minor documentation improvements
4091         * s-tasinf-mingw.adb: Minor header fix
4092         * a-clrefi.adb: Minor reformatting
4093         * g-sttsne.ads: Minor documentation improvement
4094         * g-sttsne-locking.ads: Minor documentation improvement
4095         * g-soliop-solaris.ads: Minor documentation improvement
4096         * g-soliop-mingw.ads: Minor documentation improvement
4097         * g-soliop.ads: Minor documentation improvement
4098         * exp_aggr.ads: Minor reformatting
4099         * debug.adb: Add documentation for the gprbuild debug flags
4100         * exp_ch2.adb: Use Nkind_In to simplify code throughout
4101         * exp_pakd.adb: Minor reformatting
4102
4103         * g-altive.ads, g-alleve.adb: Remove assertions.
4104         Add comment about minor differences between targets regarding
4105         floating-point operations.
4106
4107         * g-thread.adb: Remove pragma unreferenced.
4108         * lib.ads: Minor reformatting
4109         * par-ch9.adb: Minor reformatting of error messages
4110         * sem_case.adb: Minor reformatting
4111         * s-fileio.adb: Minor reformattinng
4112         * s-vmexta.ads: Minor typo
4113         * vxaddr2line.adb: 
4114         Take into account 'Success' value as per new GNAT warning.
4115
4116 2007-12-13  Vincent Celier  <celier@adacore.com>
4117
4118         * a-direct.adb (Create_Path): Always take '/' as a directory separator,
4119         even on Windows
4120
4121 2007-12-13  Robert Dewar  <dewar@adacore.com>
4122             Bob Duff  <duff@adacore.com>
4123
4124         * gnat_ugn.texi: Dcoument new rules for style check comment alignment
4125         Document that suffixes may be terminations of each others
4126         Add doc for -gnatw.a and -gnatw.A
4127         Document gnatbind -Wx switch
4128         Document BOM recognition
4129         Document pragma Implemented_By_Entry.
4130         Document new units.
4131
4132         * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
4133         Add doc for pragma Unreferenced suppressing no entities referenced msg
4134         Add documentation of GNAT.Directory_Operations.Iteration
4135         Add documentation of GNAT.Random_Numbers
4136         Add documentation for pragma Shared.
4137         Correct documentation for Bit_Order
4138         Add documentation for the Pool_Address attribute.
4139         Fix and improve documentation of pragma machine_attribute.
4140         New pragma Fast_Math
4141         Document BOM recognition
4142
4143         * vms_data.ads: Add entries for -gnatw.a -gnatw.A
4144         Add /Wide_Character_Encoding for binder
4145         Add qualifier for the new gnatpp option --no-separate-loop-then
4146
4147 2007-12-13  Matthew Heaney  <heaney@adacore.com>
4148
4149         * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
4150         which generic formal operations are called for each operation.
4151
4152 2007-12-13  Olivier Hainque  <hainque@adacore.com>
4153
4154         * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
4155         (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
4156
4157 2007-12-13  Emmanuel Briot  <briot@adacore.com>
4158
4159         * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
4160         Reference_Dir unless we actually need it.
4161
4162 2007-12-13  Vasiliy Fofanov  <fofanov@adacore.com>
4163             Tristan Gingold  <gingold@adacore.com>
4164
4165         * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
4166
4167         * s-osprim-vms.adb,
4168         a-calend-vms.adb: Remove pragma warning off and add pragma
4169         unreferenced.
4170
4171 2007-12-13  Robert Dewar  <dewar@adacore.com>
4172
4173         * impunit.adb: Add entries for missing units
4174
4175         * Makefile.rtl: Add new run-time units.
4176
4177         * Make-lang.in:  Update dependencies.
4178
4179 2007-12-13  Bob Duff  <duff@adacore.com>
4180
4181         * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
4182         types, set Can_Use_Internal_Rep appropriately, based on
4183         Always_Compatible_Rep_On_Target.
4184
4185 2007-12-13  Gary Dismukes  <dismukes@adacore.com>
4186             Arnaud Charlet  <charlet@adacore.com>
4187
4188         * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
4189         it to the front end and setting the aamp_target environment variable
4190         to the switch's argument to ensure that gnaampbind and gnaamplink will
4191         take the specified library into account.
4192         (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
4193         target, since the CIL compiler supports an "object" file (.il files).
4194
4195 2007-12-13  Vincent Celier  <celier@adacore.com>
4196
4197         * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
4198         (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
4199
4200 2007-12-13  Geert Bosch  <bosch@adacore.com>
4201
4202         * s-parame-vxworks.adb: 
4203         Update comments to reflect usage of this package by Nucleus.
4204
4205 2007-12-13  Arnaud Charlet  <charlet@adacore.com>
4206
4207         * i-vxwork.ads: Kill new warning on Convention C, since changing the
4208         spec would break code.
4209
4210         * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
4211
4212         * system-vxworks-alpha.ads: Removed.
4213
4214 2007-12-10  Eric Botcazou  <ebotcazou@adacore.com>
4215
4216         * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
4217
4218 2007-12-09  Samuel Tardieu  <sam@rfc1149.net>
4219
4220         PR ada/34366
4221         * sem_ch3.adb (Designates_T): New function.
4222         (Mentions_T): Factor reusable part of the logic into Designates_T.
4223         Consider non-access parameters and access and non-access result.
4224         (Check_Anonymous_Access_Components): Set ekind of anonymous access to
4225         E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
4226
4227         * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
4228
4229 2007-12-07  Ludovic Brenta  <ludovic@ludovic-brenta.org>
4230
4231         PR ada/34361
4232         * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
4233         the new implementation of target-specific calls.
4234
4235 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4236
4237         * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
4238         the designated full view, only follow a second level Full_View link
4239         for Non_Limited_Views of from_limited_with references.
4240         
4241 2007-12-07  Samuel Tardieu  <sam@rfc1149.net>
4242
4243         PR ada/15805
4244         * sem_ch6.adb (Process_Formals): Prevent an access type formal
4245         to be initialized with an access to constant object.
4246
4247         * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
4248         when an access to constant is used to initialize an access
4249         value.
4250
4251         PR ada/21346
4252         * a-direct.adb (Compose): Containing_Directory can be an empty string.
4253
4254 2007-12-07  Olivier Hainque  <hainque@adacore.com>
4255
4256         PR ada/34173
4257         * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
4258         the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
4259         this is from an alignment clause on the GNAT entity.
4260         * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
4261         to distinguish the case where we set it from the type's alignment.
4262         When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
4263         whether this alignment was set from an explicit alignment clause.
4264
4265 2007-12-06  Eric Botcazou  <ebotcazou@adacore.com>
4266
4267         * decl.c (make_packable_type): Revert last change.
4268         (gnat_to_gnu_field): Avoid setting size and position multiple times.
4269         * utils.c (finish_record_type): Retrieve the real name of the type.
4270
4271 2007-12-05  Eric Botcazou  <ebotcazou@adacore.com>
4272
4273         * trans.c (lvalue_required_p): Take base node directly instead
4274         of its parent.  Rename second parameter to 'gnu_type'.
4275         <N_Indexed_Component>: Return 0 if the node isn't the prefix.
4276         <N_Slice>: Likewise.
4277         (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
4278         Adjust calls to lvalue_required_p.
4279
4280 2007-12-05  Samuel Tardieu  <sam@rfc1149.net>
4281
4282         PR ada/21489
4283         * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
4284         parameters of an entry call.
4285
4286 2007-12-03  Robert Dewar  <dewar@adacore.com>
4287             Samuel Tardieu  <sam@rfc1149.net>
4288
4289         PR ada/34287
4290         * sem_util.adb (Safe_To_Capture_Value): Do not capture values
4291         of variables declared in a library-level package.
4292     
4293 2007-12-02  Samuel Tardieu  <sam@rfc1149.net>
4294
4295         * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
4296         of Empty_String'Unchecked_Access.
4297
4298         * Makefile.in: Add support for sh4-linux.
4299
4300         * system-linux-sh4.ads: New file.
4301
4302 2007-12-01  Kostik Belousov  <kostikbel@ukr.net>
4303
4304         PR ada/33722
4305         * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
4306         and its argument must not be free()ed.
4307
4308 2007-11-29  Eric Botcazou  <ebotcazou@adacore.com>
4309
4310         * decl.c (make_packable_type): Retrieve the real name of the type.
4311         (maybe_pad_type): Simplify similar code.
4312
4313 2007-11-28  Samuel Tardieu  <sam@rfc1149.net>
4314
4315         PR ada/15804
4316         * par-ch3.adb (P_Variant_Part): Signal an error when anything other
4317         than an identifier is used after "case" in a variant_part.
4318
4319         PR ada/17318
4320         * par-ch4.adb (Is_Parameterless_Attribute): New map.
4321         (P_Name, Scan_Apostrophe block): Parse left parenthesis following
4322         attribute name or not depending on the new map.
4323
4324         * sem-attr.adb (Analyze_Attribute): Parameterless attributes
4325         returning a string or a type will not be called with improper
4326         arguments.
4327
4328         * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
4329
4330         * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
4331
4332         PR ada/32792
4333         * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
4334         Signal an error when attribute argument is a fixed-point value of
4335         an unknown type.
4336
4337         PR ada/22559
4338         * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
4339         a derived ordinary fixed point type.
4340
4341         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
4342         RM_Size when a Small clause is found.
4343
4344 2007-11-26  Andreas Krebbel  <krebbel1@de.ibm.com>
4345
4346         PR 34081/C++
4347         * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
4348         Pass 'false' for the new allocate_struct_function parameter.
4349         * utils.c (build_function_stub): Likewise.
4350
4351 2007-11-25  Richard Guenther  <rguenther@suse.de>
4352
4353         * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
4354         (gnat_poplevel): Likewise.
4355
4356 2007-11-25  Eric Botcazou  <ebotcazou@adacore.com>
4357
4358         * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
4359         strict alignment, no alignment clause and a known static size, cap
4360         the type alignment to the greatest power of 2 factor of the size.
4361         (gnat_to_gnu_field): If the field has a component clause, is aliased
4362         or of a type with strict alignment, require that its size be equal to
4363         that of the type.
4364         (validate_size): Use the type size as the minimum size for a type with
4365         strict alignment.
4366
4367 2007-11-23  Samuel Tardieu  <sam@rfc1149.net>
4368
4369         * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
4370         s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4371         s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
4372         Use 'Access instead of 'Unchecked_Access in second and third
4373         arguments of pthread_sigmask.
4374
4375 2007-11-23  Eric Botcazou  <ebotcazou@adacore.com>
4376
4377         * decl.c (ceil_alignment): New function.
4378         (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
4379         (make_packable_type): Likewise.
4380
4381 2007-11-22  Olivier Hainque  <hainque@adacore.com>
4382
4383         * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
4384         to fit in 80 columns.
4385
4386 2007-11-21  Aurelien Jarno  <aurelien@aurel32.net>
4387
4388         * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
4389         * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
4390
4391 2007-11-19  Eric Botcazou  <ebotcazou@adacore.com>
4392
4393         PR ada/34098
4394         * misc.c (gnat_adjust_rli): Delete.
4395         (gnat_init): Do not initialize the translation code here.
4396         Do not call set_lang_adjust_rli.
4397         * trans.c (init_code_table): Make static.
4398         (gnat_init_stmt_group): Delete.
4399         (gigi): Initialize the translation code entirely here.
4400         Emit debug info for the common types here instead of...
4401         * utils.c (gnat_init_decl_processing): ...here.
4402         * gigi.h (init_code_table): Delete.
4403         (gnat_init_stmt_group): Likewise.
4404
4405 2007-11-16  Olivier Hainque  <hainque@adacore.com>
4406
4407         * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
4408         retrieving an allocator return value from a super-aligned address from
4409         here to ...
4410         * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
4411         expect a super-aligned address for a fat or thin pointer.
4412         
4413 2007-11-14  Eric Botcazou  <ebotcazou@adacore.com>
4414
4415         * trans.c (call_to_gnu): Always set the source location on the call
4416         expression.  If the function returns-by-target, also set it on the
4417         address expression.
4418
4419 2007-11-14  Samuel Tardieu  <sam@rfc1149.net>
4420
4421         * adaint.c, init.c, initialize.c, link.c: Remove system-specific
4422         sections of non-supported Interix target.
4423
4424         * s-osinte-interix.ads: Removed.
4425
4426         * i-cstrin.ads (chars_ptr): Make it a C convention type.
4427
4428 2007-11-13  Samuel Tardieu  <sam@rfc1149.net>
4429
4430         * a-tasatt.adb: Add a comment at the beginning of the package
4431         explaining why in general 'Unchecked_Access must be used instead
4432         of 'Access.
4433
4434         * sem_prag.adb (Process_Convention): Move the test for the
4435         entity on which the Convention pragma applies down to also
4436         forbid pragma Convention on enumeration literals reached
4437         through renamings.
4438
4439 2007-11-10  Samuel Tardieu  <sam@rfc1149.net>
4440
4441         * a-tasatt.adb: Revert previous change for this file as it will
4442         generate an error when this package is instantiated from a
4443         local context.
4444
4445 2007-11-07  Samuel Tardieu  <sam@rfc1149.net>
4446
4447         * a-tasatt.adb: Type Wrapper should be declared in comment instead
4448         of already declared type Node_Access.
4449         Use 'Access instead of 'Unchecked_Access when applicable. Local
4450         lifetime is the one of the package.
4451         (Set_Value): W is allocated on the heap.
4452
4453         * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
4454         applicable.
4455         (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
4456         access type.
4457         (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
4458         access type.
4459
4460         * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
4461         applicable.
4462         (elaboration code): Timer_Queue lifetime is the one of the
4463         package.
4464
4465         * tracebak.c (i386 alternative): Remove useless comparaison
4466         which is always false; LOWEST_ADDRESS is 0 and is never greater
4467         than an unsigned integer.
4468
4469         * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
4470         embedded check for "Ada_Version >= Ada_05".
4471
4472 2007-11-07  Olivier Hainque  <hainque@adacore.com>
4473
4474         * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
4475         craft and expand comment.
4476
4477 2007-11-01  Eric Botcazou  <ebotcazou@adacore.com>
4478
4479         * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
4480
4481 2007-10-23  Eric Botcazou  <ebotcazou@adacore.com>
4482
4483         * misc.c (gnat_handle_option): Replace call to abort with
4484         call to gcc_unreachable.
4485         (gnat_init): Likewise.
4486         (gnat_expand_expr): Likewise.
4487         (fp_prec_to_size): Likewise.
4488         (fp_size_to_prec): Likewise.
4489
4490 2007-10-23  Richard Guenther  <rguenther@suse.de>
4491
4492         PR bootstrap/33608
4493         * tracebak.c: #undef abort after including system.h.
4494
4495 2007-10-20  Danny Smith  <dannysmith@users.sourceforge.net>
4496
4497         * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
4498         s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
4499         for win32 targets.
4500         (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
4501
4502 2007-10-15  Eric Botcazou  <ebotcazou@adacore.com>
4503
4504         * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
4505         Set the protection status of the guard page based on the value of On.
4506
4507         * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
4508
4509         * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
4510         (Exit_Task): Pass False to Hide_Yellow_Zone.
4511
4512 2007-10-15  Robert Dewar  <dewar@adacore.com>
4513
4514         * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
4515         s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
4516         a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb, 
4517         checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb, 
4518         freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb, 
4519         gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb, 
4520         mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb, 
4521         prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb, 
4522         sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb, 
4523         s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
4524         uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb, 
4525         a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb, 
4526         a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb, 
4527         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb, 
4528         a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb, 
4529         a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
4530         Minor reformatting.
4531         Add Unreferenced and Warnings (Off) pragmas for cases of
4532         variables modified calls where they are IN OUT or OUT parameters and
4533         the resulting values are not subsequently referenced. In a few cases,
4534         we also remove redundant code found by the new warnings.
4535
4536         * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads, 
4537         sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
4538         sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
4539         sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
4540         warning controlled by -gnatw.o that warns on cases of out parameter
4541         values being ignored.
4542
4543 2007-10-15  Geert Bosch  <bosch@adacore.com>
4544
4545         * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
4546
4547         * expect.c: Initial port to arm-mentor-nucleus.
4548         Use kill for __gnat_kill() on VMS.
4549
4550 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4551
4552         * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
4553         value.
4554         (Xref_Record): Change type for Line, since in the case of a reference to
4555         a predefined entity (as happens for array index types), the line is set
4556         to 0.
4557         Add support for parsing multiple array index types info, or
4558         multiple inherited interfaces info. This information cannot be stored
4559         in Xref_Entity_Record, which only supports a single instance of Tref_*,
4560         and is therefore stored in the list of references instead. It has a
4561         special treatement later on in tools that use this information.
4562
4563 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4564
4565         * debug.adb: Document use of -gnatd.a and -gnatd.I
4566
4567         * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
4568
4569 2007-10-15  Javier Miranda  <miranda@adacore.com>
4570
4571         * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
4572         Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
4573         care of access to class-wide interface types plus removal of bizarre
4574         conversion of tagged object to access type (reported by Gary
4575         Dismukes). After this patch there is no need to perform any
4576         additional management on these nodes in Expand_Interface_Actuals.
4577
4578         * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
4579         that handles use of 'Access and 'Unchecked_Access applied to
4580         actuals covering interface types. Such code is now
4581         centralized in Expand_N_Attribute_Reference.
4582
4583 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4584
4585         * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
4586         of tagged types whose ultimate ancestor is a CPP type.
4587         (Freeze_Array_Type): For a packed array type, generate an initialization
4588         procedure if the type is public, to handle properly a client that
4589         specifies Normalize_Scalars.
4590
4591 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4592
4593         * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
4594         inside a generic body, retrieve the full view of the entry family
4595         discrete subtype if available.
4596
4597 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4598
4599         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
4600         attempt to generate stubs for hidden primitive operations.
4601
4602 2007-10-15  Vincent Celier  <celier@adacore.com>
4603
4604         * mlib-tgt-specific.adb (Support_For_Libraries): New function,
4605         returning None, used when there is no platform specific body for
4606         MLib.Tgt.Specific.
4607
4608 2007-10-15  Bob Duff  <duff@adacore.com>
4609
4610         * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
4611         (passing'Unrestricted_Access of nested subprograms to Sort) with use of
4612         the generic Heap_Sort_G, in order to avoid trampolines.
4613
4614 2007-10-15  Vasiliy Fofanov  <fofanov@adacore.com>
4615             Jose Ruiz  <ruiz@adacore.com>
4616
4617         * vx_stack_info.c: New file.
4618
4619         * i-forbla-unimplemented.ads: New file.
4620
4621         * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
4622         for unsupported configurations; use it on VMS targets instead of the
4623         real one.
4624         (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
4625         vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
4626         used by VxWorks targets to have access to task-specific data and be
4627         able to extract the stack boundaries for stack checking.
4628         Use system-vms-ia64.ads on ivms.
4629
4630         * Make-lang.in: Update dependencies.
4631
4632         * sysdep.c (__gnat_get_stack_info): Move to a standalone file
4633         (vx_stack_info.c).
4634
4635 2007-10-15  Vincent Celier  <celier@adacore.com>
4636
4637         * snames.adb, snames.ads: Add new standard name runtime_library_dir
4638
4639         * prj.ads (Language_Config): Add new component Runtime_Library_Dir
4640
4641         * prj-attr.adb: Add project level attribute Runtime_Library_Dir
4642
4643         * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
4644         the source is unknown.
4645
4646         * prj-ext.adb: Spelling error fix
4647
4648         * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
4649         95 reserved word in its name.
4650         (Process_Project_Level_Array_Attributes): Process new attribute
4651         Runtime_Library_Dir.
4652
4653         * prj-part.adb (Parse_Single_Project): Do not check the name of the
4654         config project against the user project names.
4655
4656         * prj-proc.adb (Expression): In multi-language mode, indexes that do
4657         not include a dot are always case insensitive.
4658         (Process_Declarative_Items): Ditto
4659         (Process_Project_Tree_Phase_1): Set Success to False in case an error is
4660         detected.
4661
4662         * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
4663         True, compare both indexes in lower case.
4664
4665 2007-10-15  Robert Dewar  <dewar@adacore.com>
4666
4667         * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
4668
4669 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4670
4671         * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
4672         association for an access component, add an association with null as
4673         the expression. Remove testing for array subtypes and the setting in
4674         that case of Ctyp to the array component type, which prevented proper
4675         inclusion of an association for null-initialized arrays. Collapse
4676         condition that tests for array subtypes into just a test of
4677         Is_Partially_Initialized_Type (which already covers arrays anyway).
4678
4679 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4680
4681         * sem_ch12.adb: Minor code reformatting.
4682         (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
4683         find the parent package which may have been hidden by local
4684         declarations.
4685
4686 2007-10-15  Gary Dismukes  <dismukes@adacore.com>
4687
4688         * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
4689         flag of derived concurrent types, taking into account the flag setting
4690         on the parent subtype and any new set of discriminants.
4691
4692 2007-10-15  Hristian Kirtchev  <kirtchev@adacore.com>
4693
4694         * sem_ch4.adb: Minor code and comment reformatting.
4695         (Analyze_Allocator): When the designated type of an unconstrained
4696         allocator is a record with unknown discriminants or an array with
4697         unknown range bounds, emit a detailed error message depending on the
4698         compilation mode and whether the designated type is limited.
4699
4700 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4701
4702         * system-vms-ia64.ads: New file.
4703
4704         * system-vms_64.ads: Minor comment fix.
4705
4706 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4707
4708         * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
4709         body generated for a function with a controlling result that is a null
4710         extension, discard the generated body in favor of the current explicit
4711         one.
4712
4713 2007-10-15  Ed Schonberg  <schonberg@adacore.com>
4714
4715         * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
4716         examining its original form, to handle properly operator calls that
4717         have been rewritten.
4718
4719 2007-10-15  Olivier Hainque  <hainque@adacore.com>
4720
4721         * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
4722         instead of a procedure value in each traceback entry.
4723
4724         * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
4725         instead of procedure value to TBK$SYMBOLIZE.
4726
4727         * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
4728         field.
4729         (TB_Entry_For): Account for the PV/FP renaming.
4730
4731         * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
4732         add comment.
4733         (Null_TB_Entry): Account for change of component name.
4734         (PV_For): Rename as FP_For.
4735
4736 2007-10-15  Tristan Gingold  <gingold@adacore.com>
4737
4738         * trans.c (gnat_to_gnu): Remove the padding structure more often.
4739         This optimize assignment to over-aligned record.
4740
4741 2007-10-15  Emmanuel Briot  <briot@adacore.com>
4742
4743         * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
4744         interfaces.
4745
4746         * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
4747         type, for dispatching calls.
4748
4749 2007-10-15  Vincent Celier  <celier@adacore.com>
4750             Robert Dewar  <dewar@adacore.com>
4751
4752         * gnat_ugn.texi: Add documentation for switches --version and --help
4753         for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
4754         gnatxref, gnatfind, gnatls, and gnatclean.
4755         Document -gnatw.o.
4756         Mention attribute Excluded_Source_Dirs
4757         Replace obsolescent attribute Locally_Removed_Files with attribute
4758         Excluded_Source_Files.
4759         Improve documentation of -u (gnatbind)
4760         Document how to do reliable stack checking for the environmental task
4761         on iVMS.
4762
4763         * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
4764         Document attribute Excluded_Source_Files and indicate that attribute
4765         Locally_Removed_Files is obsolescent.
4766
4767 2007-10-15  Thomas Quinot  <quinot@adacore.com>
4768
4769         * g-soccon-vms.ads: Fix value of MSG_WAITALL.
4770
4771         * gen-soccon.c: 
4772         Update documentation to note that OpenVMS 8.3 or later must be used
4773         to generate g-soccon-vms.ads.
4774
4775         * atree.adb: Add ??? comment
4776
4777         * exp_util.adb: Minor reformatting.
4778         Add ??? comment in Kill_Dead_Code.
4779
4780 2007-10-15  Robert Dewar  <dewar@adacore.com>
4781
4782         * errout.ads: Comment clarification
4783
4784         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
4785         (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
4786
4787         * lib.ads: Comment update
4788
4789         * init.c: Minor reformatting.
4790
4791         * sem_attr.adb: Minor formatting
4792
4793         * osint-b.ads: Minor reformatting
4794
4795         * sem_ch9.adb: Implement -gnatd.I switch
4796
4797         * g-comlin.adb: (Start): Fix handling of empty command line.
4798
4799         * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
4800         even when -rules follows the -cargs section.
4801
4802 2007-10-08  Ollie Wild  <aaw@google.com>
4803
4804         * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
4805         gnat_return_tree.
4806         (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
4807         gnat_return_tree.
4808         (gnat_eh_runtime_type): Removed.
4809         (gnat_return_tree): New function.
4810
4811 2007-10-08  Ben Elliston  <bje@au.ibm.com>
4812
4813         PR ada/33454
4814         Revert:
4815         2007-08-31  Ben Elliston  <bje@au.ibm.com>
4816
4817         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
4818         when compiling for powerpc64-*-linux.
4819         * system-linux-ppc64.ads: New file.
4820
4821 2007-09-27  Eric Botcazou  <ebotcazou@adacore.com>
4822
4823         Mapped location support
4824         * back_end.adb (Call_Back_End): Pass information about source
4825         files instead of units to gigi.
4826         * gigi.h (struct File_Info_Type): New.
4827         (gigi): Rename and change type of number_units parameter, change
4828         type of file_info_ptr parameter.
4829         * trans.c (number_files): New global variable.
4830         (gigi): Rename and change type of number_units parameter, change
4831         type of file_info_ptr parameter.
4832         If mapped location support is enabled, create the isomorphic mapping
4833         between source files and line maps.
4834         (Sloc_to_locus): If mapped location support is enabled, translate
4835         source location into mapped location.
4836         (annotate_with_node): Rename into set_expr_location_from_node.
4837         Call set_expr_location instead of annotate_with_locus.
4838         (Pragma_to_gnu): Adjust for above change.
4839         (Loop_Statement_to_gnu): Likewise.
4840         (call_to_gnu): Likewise.
4841         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4842         (gnat_to_gnu): Likewise.
4843         (add_stmt_with_node): Likewise.
4844         (add_cleanup): Likewise.
4845         * utils.c (gnat_init_decl_processing): Do not set input_line.
4846
4847 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4848
4849         * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
4850         (Applicable_Use): Emit a warning when a package tries to use itself.
4851         (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
4852         is already in use or the package where it is declared is in use or is
4853         declared in the current package.
4854         (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
4855
4856         * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
4857         s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
4858         s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
4859
4860 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
4861
4862         * a-calend-vms.adb, a-calend.adb: 
4863         Add a section on leap seconds control along with two entities used to
4864         enable and disable leap seconds support. The array Leap_Second_Times is
4865         now constant and contains hard time values pre-generated. Remove
4866         all elaboration code used to populate the table of leap seconds.
4867
4868         * bindgen.adb: 
4869         Add entity Leap_Seconds_Support to the list of global run-time variables
4870         along with a comment on its usage and values.
4871         (Gen_Adainit_Ada): Add code to generate the declaration and import of
4872         Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
4873         or one (enabled) depending on the presence of binder switch "-y".
4874         (Gen_Adainit_C): Add code to generate the declaration of external int
4875         __gl_leap_seconds_support. Set is value to zero (disabled) or one
4876         (enabled) depending on the presence of binder switch "-y".
4877
4878         * init.c: Add __gl_leap_seconds_support to the list of global values
4879         computed by the binder.
4880
4881 2007-09-26  Jerome Guitton  <guitton@adacore.com>
4882
4883         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4884         s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
4885          s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
4886         s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
4887
4888         * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
4889
4890         * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
4891         function which can be called by the debugger to interrupt the tasks of
4892         an Ada application asynchronously, as needed on VxWorks.
4893         (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
4894
4895         * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
4896         renamed from Stop_All_Tasks. Update comments.
4897         (Stop_All_tasks): New function declaration.
4898
4899 2007-09-26  Olivier Hainque  <hainque@adacore.com>
4900
4901         * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
4902         #include <utime.h> and #define GCC_RESOURCE_H before
4903         #include <sys/wait.h>.
4904         Add more protections in __gnat_translate_vms.
4905
4906         * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
4907         #include <sys/wait.h>.
4908
4909 2007-09-26  Thomas Quinot  <quinot@adacore.com>
4910             Sergey Rybin  <rybin@adacore.com>
4911
4912         * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
4913
4914         * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4915         where it belongs.
4916
4917         * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4918
4919         * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
4920         where it belongs.
4921
4922         * sem_dist.ads: Minor comment fix
4923
4924         * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
4925
4926 2007-09-26  Javier Miranda  <miranda@adacore.com>
4927             Eric Botcazou  <ebotcazou@adacore.com>
4928
4929         * a-tags.adb: 
4930         (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
4931          indirection added to the HT_Link component of the TSD. This is required
4932          to statically allocate the TSD.
4933
4934         * a-tags.ads: 
4935         Minor reordering of the declarations in the private part. Required to
4936         add a level of indirection to the contents of the TSD component HT_Link.
4937         This is required to statically allocate the TSD.
4938
4939         * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
4940         Is_Statically_Allocated set from constant objects.
4941         Do not make exported constants created by the compiler volatile.
4942         (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
4943         as read-only.
4944
4945         * trans.c (Identifier_to_gnu): For constants, unshare initializers
4946         before returning them.
4947
4948         * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
4949         public part of the package.
4950         (Make_DT): Move HT_Link component out of the TSD record. For this
4951         purpose Make_DT now declares a separate object that stores the
4952         HT_Link value, and initializes the TSD component with the address
4953         of this new object. The addition of this level of indirection is
4954         required to statically allocate the TSD because the TSD cannot
4955         have variable components.
4956         (Expand_Interface_Conversion): Improve the expanded code.
4957         (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
4958
4959         * sem_disp.adb (Check_Dispatching_Operation): In case of a body
4960         declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
4961         if we are building static dispatch tables then we must not generate
4962         extra code to register the primitive because the dispatch table will
4963         be built at the end of the library package; otherwise we notify that
4964         we cannot build the static dispatch table.
4965
4966 2007-09-26  Robert Dewar  <dewar@adacore.com>
4967
4968         * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
4969         overlays.
4970
4971         * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
4972         (Analyze_Record_Representation_Clause): Suppress junk warning for
4973         missing component clause.
4974         (Analyze_Attribute_Definition_Clause, case Address): Apply the special
4975         tests for controlled type overlay to composites with controlled
4976         components.
4977         (Analyze_Record_Representation_Clause): Add reference for component name
4978
4979 2007-09-26  Javier Miranda  <miranda@adacore.com>
4980             Gary Dismukes  <dismukes@adacore.com>
4981
4982         * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
4983         for thunks associated with interface types.
4984
4985         * einfo.ads: Improve documentatation of Is_Internal
4986         (Is_Thunk): New attribute applicable to subprograms. True for thunks
4987         associated with interface types.
4988         Extensive comment fixes regarding flags that appear in all entities. The
4989         documentation is now consistent for all such flags (there were a number
4990         of errors in the documentation in this regard).
4991
4992         * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
4993
4994         * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
4995         of these procedures are passed a function call that already has
4996         build-in-place actuals (testing new flag
4997         Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
4998         the case where processing continues.
4999         (Expand_Call): If the call is generated from a thunk body then we
5000         propagate the extra actuals associated with the accessibility
5001         level of the access type actuals.
5002
5003         * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
5004         of each extra formal of a protected operation to reference the
5005         corresponding extra formal of the subprogram denoted by the
5006         operation's Protected_Body_Subprogram.
5007         
5008         * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
5009         N_Function_Call nodes.
5010
5011 2007-09-26  Robert Dewar  <dewar@adacore.com>
5012
5013         * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
5014
5015         * debug.adb: Add d.s flag.
5016
5017 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5018
5019         * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
5020         debug variable so that it won't be initialized when pragma
5021         Initialize_Scalars is in effect.
5022
5023 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5024
5025         * freeze.adb (Freeze_Entity): Remove check for preelaborable
5026         initialization of a full view. This is moved to
5027         Analyze_Package_Specification.
5028
5029         * sem_ch7.adb (Analyze_Package_Specification): Add check for
5030         preelaborable initialization of a full view in entity loop.
5031         (Uninstall_Declarations): If entity is a use-visible compilation unit,
5032         its child units are use-visible only if they are visible child units.
5033
5034         * sem_util.adb (Is_Preelaborable_Expression): New function to determine
5035         whether an expression can be used within a type declaration that
5036         requires preelaborable init.
5037         (Check_Components): Replace inline code that does partial checking for
5038         preelaborable default expressions with call to
5039         Is_Preelaborable_Expression.
5040         (Has_Preelaborable_Initialization): In the case of a generic actual
5041         subtype, (that is, Is_Generic_Actual is True), return the result of
5042         applying Has_Preelaborable_Initialization to the generic actual's base
5043         type.
5044
5045 2007-09-26  Hristian Kirtchev  <kirtchev@adacore.com>
5046
5047         * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
5048         call to Jan_1_Day _Of_Week to optimize its performance.
5049         (Is_Leap): Move the routine to the scope of Week_In_Year.
5050         (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
5051         weekday on which January 1 falls of Year - 1 and Year + 1. This function
5052         avoids calling Time_Of and Split, thus making it more efficent.
5053         (Week_In_Year): Reimplemented in oder to follow ISO 8601.
5054
5055         * g-calend.ads (Week_In_Year): Change comment to reflect new
5056         implementation.
5057
5058 2007-09-26  Emmanuel Briot  <briot@adacore.com>
5059
5060         * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
5061         Command_Line): New types
5062         (Define_Alias, Define_Prefix, Free): New subprograms. These provide
5063         support for defining how switches can be grouped on a command line (as
5064         is the case for -gnatw... for GNAT), and how simple switches can be
5065         used as aliases for more complex switches (-gnatwa is same as
5066         -gnatwbcef...)
5067         (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
5068         (Start, Current_*): New subprograms
5069         Added support for parsing an array of strings in addition to the real
5070         command line.
5071         (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
5072          be moved from the body to the private part of the spec.
5073         (*): All subprograms now have an extra parameter with default value to
5074         specify which parser should be used. For backward compatibility, it
5075         defaults to parsing the command line of the application. They were also
5076         modified to properly handle cases where each of the argument does not
5077         start at index 1 (which is always true for Ada.Command_Line, but not
5078         when processing any Argument_List).
5079         (Free): New subprogram
5080         (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
5081         Argument): New subprograms
5082         (Switch_Parameter_Type): New enum, which clarifies the code. The extra
5083         special characters like ':', '=',... are now handled in a single place,
5084         which makes the code more extensible eventually.
5085         (Getopt, Full_Switch): When the switch was returned as part of the
5086         special character '*', make sure it is prepended by the switch character
5087         ('-' in general), so that the application knows whether "foo" or "-foo"
5088         was specified on the command line.
5089
5090 2007-09-26  Florian Villoing  <villoing@adacore.com>
5091
5092         * g-dirope.adb (Remove_Dir): In case we are removing directories
5093         recursively, make sure that if an exception is raised during the
5094         processing, the current working directory is reset to its initial
5095         value before propagating the exception.
5096
5097 2007-09-26  Vincent Celier  <celier@adacore.com>
5098
5099         * gnatbind.adb: If there are several ALI files specified and there is
5100         a main program to bind, the first ALI is expected to contain the main
5101         subprogram and the names of the binder generated files will be derived
5102         from the first ALI file name.
5103         (Gnatbind): Fix insertion character in invocation of Error_Msg
5104
5105 2007-09-26  Vincent Celier  <celier@adacore.com>
5106
5107         * gnatcmd.adb (Check_Files): Do not include sources that have been
5108         removed by attributes Exclude_Source_Files or Locally_Removed_Files.
5109
5110 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5111
5112         * lib-xref.ads, lib-xref.adb: The entry for array types now carries
5113         information about each of its index types, following the type
5114         reference for its component type.
5115
5116 2007-09-26  Vincent Celier  <celier@adacore.com>
5117
5118         * make.adb: (Kill): New procedure (__gnat_kill imported)
5119         (Running_Compile, Outstanding_Compiles): Global variables that
5120         were previously local to procedure Compile_Sources.
5121         (Sigint_Intercepted): Send signal SIGINT to all outstanding
5122         compilation processes.
5123
5124         (Gnatmake): If project files are used, create the mapping of all the
5125         sources, so that the correct paths will be found.
5126
5127         * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
5128
5129 2007-09-26  Vincent Celier  <celier@adacore.com>
5130
5131         * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
5132
5133         * prj.ads, prj.adb (Default_Language): Remove function, no longer used
5134         Replace components Compiler_Min_Options and Binder_Min_Options with
5135         Compiler_Required_Switches and Binder_Required_Switches in record
5136         Language_Config.
5137         Remove components Default_Language and Config in Project_Tree_Data,
5138         no longer used.
5139
5140         * prj-attr.adb: New attributes Required_Switches (<language>) in
5141         packages Compiler and Binder.
5142
5143         * prj-nmsc.adb: Major rewrite of the processing of configuration
5144         attributes for gprbuild. No impact on GNAT tools.
5145
5146         * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
5147         process configuration attributes: this is done in Prj.Nmsc.Check.
5148         (Recursive_Process): Make a full copy of packages inherited from project
5149         being extended, instead of a shallow copy.
5150         (Process_Project_Tree_Phase_1): New procedure
5151         (Process_Project_Tree_Phase_1): New procedure
5152         (Process): Implementation now uses the two new procedures
5153
5154         * prj-util.adb (Executable_Of): Get the suffix and the default suffix
5155         from the project config, not the tree config that no longer exists.
5156
5157 2007-09-26  Vincent Celier  <celier@adacore.com>
5158
5159         * Make-lang.in: Update dependencies..
5160
5161 2007-09-26  Vincent Celier  <celier@adacore.com>
5162
5163         * osint.adb, osint.ads: Minor reformatting
5164
5165         * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
5166
5167 2007-09-26  Gary Dismukes  <dismukes@adacore.com>
5168
5169         * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
5170         message to cite use of <> in aggregate component associations rather
5171         than wrongly indicating use of limited aggregates.
5172
5173 2007-09-26  Robert Dewar  <dewar@adacore.com>
5174
5175         * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
5176         Address_Taken.
5177
5178 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5179
5180         * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
5181         ancestor of the derived type, the operations are inherited from the
5182         primary dispatch table of the parent.
5183         (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
5184         when the context is an explicit type conversion.
5185
5186 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5187
5188         * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
5189         rule for qualified expressions properly, to detect improper conversions
5190         and resolve some cases of overloading.
5191
5192 2007-09-26  Ed Schonberg  <schonberg@adacore.com>
5193
5194         * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
5195         proper kind of reference to the primitive operation, for better source
5196         navigation.
5197         (Valid_Conversion): A tagged conversion is legal if both operands are
5198         tagged.
5199
5200 2007-09-26  Robert Dewar  <dewar@adacore.com>
5201
5202         * sem_warn.adb (Check_References): Catch more cases of unreferenced
5203         packages.
5204
5205 2007-09-26  Vincent Celier  <celier@adacore.com>
5206
5207         * snames.adb, snames.ads: Change Include_Option to Include_Switches
5208
5209 2007-09-26  Robert Dewar  <dewar@adacore.com>
5210
5211         * s-wchstw.adb: provide messages for run time unit exceptions
5212
5213         * a-witeio.adb: Minor reformatting
5214
5215         * exp_ch13.adb: Minor reformatting
5216
5217 2007-09-26  Sergey Rybin  <rybin@adacore.com>
5218
5219         * vms_data.ads: Revise gnatmetric qualifiers.
5220         Add qualified for the new gnatbind option '-y'
5221
5222         * gnat_ugn.texi: Revise the gnatmetric section.
5223         Add entry for new gnatbind option '-y'.
5224
5225         * gnat_rm.texi: Minor spelling correction.
5226         Document restriction on overlaying controlled types
5227
5228 2007-09-26  Vincent Celier  <celier@adacore.com>
5229
5230         * makegpr.adb (Link_Executables): Do not fail when the root project has
5231         no sources, but is an extending project.
5232
5233 2007-09-25  Eric Botcazou  <ebotcazou@adacore.com>
5234
5235         * trans.c: Fix misplaced #define.
5236
5237 2007-09-22  Eric Botcazou  <ebotcazou@adacore.com>
5238
5239         * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
5240         the TYPE_REF_CAN_ALIAS_ALL flag to the result.
5241
5242 2007-09-21  Olivier Hainque  <hainque@adacore.com>
5243
5244         * utils.c (type_for_nonaliased_component_p): Return false for
5245         all AGGREGATE_TYPEs.
5246
5247 2007-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5248
5249         * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
5250         object covered by 13.3(19) volatile.
5251
5252 2007-09-12  Eric Botcazou  <ebotcazou@adacore.com>
5253
5254         PR ada/26797
5255         PR ada/32407
5256         * utils.c (unchecked_convert): Use a subtype as the intermediate type
5257         in the special VIEW_CONVERT_EXPR case.
5258
5259 2007-09-12  Robert Dewar  <dewar@adacore.com>
5260
5261         * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
5262
5263         * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
5264         lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
5265         s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
5266         s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
5267         s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
5268         s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
5269         s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
5270         s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
5271         a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads, 
5272         g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads, 
5273         s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb, 
5274         s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb, 
5275         snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads, 
5276         s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads, 
5277         s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads, 
5278         s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads, 
5279         s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
5280         pragma Compiler_Unit and adds it to relevant library units.
5281
5282 2007-09-12  Ed Schonberg  <schonberg@adacore.com>
5283
5284         * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
5285         a box need not correspond to any component.
5286
5287 2007-09-12  Robert Dewar  <dewar@adacore.com>
5288
5289         * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
5290         the tasking version of the Ada run time when foreign threads are
5291         present and there are no explicit Ada tasks or tasking constructs.
5292
5293         * gnat_rm.texi: Clarify documentation of GNAT.Threads.
5294
5295 2007-09-12  Hristian Kirtchev  <kirtchev@adacore.com>
5296
5297         * bindusg.adb (Display): Correct comment for switch -X. Add a line for
5298         the usage of switch -y.
5299
5300         * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
5301         when switch -y is present.
5302
5303         * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
5304         leap seconds in Ada.Calendar and its children.
5305
5306 2007-09-12  Jose Ruiz  <ruiz@adacore.com>
5307
5308         * a-extiti.ads (Timer): The discriminant is a "not null access
5309         constant" in the Reference Manual.
5310         (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
5311
5312 2007-09-12  Robert Dewar  <dewar@adacore.com>
5313
5314         * a-swuwha.adb: Remove junk RM header
5315
5316 2007-09-12  Vincent Celier  <celier@adacore.com>
5317
5318         * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
5319         indicator
5320
5321         * g-bytswa.ads: Minor reformatting
5322
5323 2007-09-12  Thomas Quinot  <quinot@adacore.com>
5324
5325         * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads: 
5326         Add new constant Thread_Blocking_IO, always True by default, set False
5327         on a per-runtime basis.
5328         (Need_Netdb_Buffer): New constant.
5329
5330 2007-09-12  Arnaud Charlet  <charlet@adacore.com>
5331
5332         * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
5333         Added renames for corresponding functions in System.Partition_Interface.
5334
5335 2007-09-12  Doug Rupp  <rupp@adacore.com>
5336
5337         * Makefile.in: Remove VMS specific System.CRTL packages which are no
5338         longer needed.
5339
5340         * s-crtl-vms64.ads: Removed.
5341
5342 2007-09-12  Olivier Hainque  <hainque@adacore.com>
5343
5344         * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
5345         with discriminant constraints, generalize the code for BIT_FIELDs
5346         to PACKED fields of constant size and propagate DECL_PACKED.
5347
5348 2007-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5349
5350         * decl.c (array_type_has_nonaliased_component): New predicate.
5351         (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
5352         set the TYPE_NONALIASED_COMPONENT flag on the type.
5353         <E_Array_Subtype>: Likewise.
5354         * gigi.h (type_for_nonaliased_component_p): Declare.
5355         * utils.c (type_for_nonaliased_component_p): New predicate.
5356         (create_field_decl): Invoke the above predicate to set the
5357         DECL_NONADDRESSABLE_P flag on the field.
5358
5359 2007-09-11  Javier Miranda  <miranda@adacore.com>
5360
5361         * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
5362         in library level record type entities if we are generating statically
5363         allocated dispatch tables.
5364
5365         * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
5366         importing/exporting the _tag declaration by new code
5367         importing/exporting the dispatch table wrapper. This change allows us
5368         to statically allocate of the TSD.
5369         (Make_DT.Export_DT): New procedure.
5370         (Build_Static_DT): New function.
5371         (Has_DT): New function.
5372
5373         * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
5374         True_Constant and Current_Value. Required to statically
5375         allocate the dispatch tables.
5376         (Check_Allocator): Make function iterative instead of recursive.
5377         Also return inner allocator node, when present, so that we do not have
5378         to look for that node again in the caller.
5379
5380 2007-09-11  Jan Hubicka  <jh@suse.cz>
5381
5382         * misc.c (gnat_expand_body): Kill.
5383         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
5384
5385 2007-09-10  Robert Dewar  <dewar@adacore.com>
5386
5387         * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
5388         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5389         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
5390         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
5391         ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
5392         bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
5393         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
5394         butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
5395         comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
5396         elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
5397         err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
5398         exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
5399         exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
5400         exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
5401         exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
5402         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
5403         exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
5404         exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
5405         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
5406         exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
5407         exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
5408         exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
5409         fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
5410         get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
5411         gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
5412         gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
5413         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
5414         gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
5415         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
5416         gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
5417         inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
5418         lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
5419         lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
5420         make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
5421         mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
5422         mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
5423         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
5424         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
5425         osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
5426         osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
5427         par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
5428         par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
5429         par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
5430         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
5431         par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
5432         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
5433         prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
5434         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
5435         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
5436         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
5437         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
5438         prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
5439         rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
5440         scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
5441         sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
5442         sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
5443         sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
5444         sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
5445         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
5446         sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
5447         sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
5448         sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
5449         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
5450         sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
5451         sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
5452         sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
5453         sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
5454         sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
5455         stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
5456         styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
5457         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
5458         switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
5459         tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
5460         treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
5461         types.h, uintp.h, urealp.h, usage.adb, usage.ads,
5462         validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
5463         xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
5464         xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
5465         gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
5466         mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
5467         symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
5468         mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
5469         mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
5470
5471 2007-09-10  Emmanuel Briot  <briot@adacore.com>
5472
5473         * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
5474         classes ("[]").
5475
5476 2007-09-10  Vasiliy Fofanov  <fofanov@adacore.com>
5477
5478         * adaint.c (__gnat_translate_vms): new function.
5479
5480 2007-09-10  Gary Dismukes  <dismukes@adacore.com>
5481             Thomas Quinot  <quinot@adacore.com>
5482
5483         * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
5484         create an abstract subprogram in the case of 'Input. For 'Output we now
5485         create a real spec/body when the type is abstract, since it can
5486         potentially be called.
5487         (Predefined_Primitive_Bodies): Now allow the creation of a predefined
5488         body for 'Output when the type is abstract (only the creation of the
5489         body for 'Input is excluded when the type is abstract).
5490         (Stream_Operation_OK): Add an additional condition in the return
5491         statement, so that False will be returned for TTS_Stream_Input if the
5492         associated tagged type is an abstract extension. Add comments for
5493         return statement.
5494         (Expand_N_Object_Declaration): For the case of a shared passive
5495         variable, insert init proc call only after the shared variable
5496         procedures have been processed, because the IP call needs to undergo
5497         shared passive variable reference expansion, which requires these
5498         procedures to be available (and elaborated).
5499
5500 2007-09-10  Vincent Celier  <celier@adacore.com>
5501
5502         * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
5503         parameter Runtime_Project.
5504
5505 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5506
5507         * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
5508         given a box association, the type of the component is discriminated,
5509         and the value of the discriminant is the discriminant of the enclosing
5510         type, retrieve its value from the aggregate itself, where it must have
5511         been supplied.
5512
5513         * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
5514         to remove other spurious ambiguities on arithmetic operations involving
5515         literals and addresses, on systems where Address is a visible integer
5516         type, when the operator is called in functional notation.
5517         (Try_Primitive_Operation): Within an instance, a call in prefixed form
5518         is legal when the types match, even if the operation is currently
5519         hidden.
5520
5521 2007-09-10  Ed Schonberg  <schonberg@adacore.com>
5522
5523         * sem_ch12.adb (Build_Local_Package): A formal package with no
5524         associations is legal if all formals have defaults. It is not
5525         equivalent to a formal declared with a box.
5526
5527 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5528
5529         * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
5530
5531 2007-09-10  Sergey Rybin  <rybin@adacore.com>
5532
5533         * gnat_ugn.texi: Add description of the new '-lratio' option
5534         Update 7.3.1 section about availability of the feature.
5535
5536 2007-09-10  Thomas Quinot  <quinot@adacore.com>
5537
5538         * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
5539         inserted node.
5540
5541 2007-09-10  Olivier Hainque  <hainque@adacore.com>
5542
5543         * Makefile.in: (mips-irix section): Activate build of libgmem.
5544
5545 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5546
5547         * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
5548         x87 registers.
5549
5550 2007-09-10  Eric Botcazou  <ebotcazou@adacore.com>
5551
5552         * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
5553         a debug renaming declaration specially.
5554
5555 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5556
5557         * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
5558         which a constant renaming is treated as a normal object declaration.
5559         * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
5560         the N_Indexed_Component case.
5561         <N_Indexed_Component>: Fall through to above case.
5562         <N_Object_Renaming_Declaration>: Return true for all composite types.
5563
5564 2007-09-08  Eric Botcazou  <ebotcazou@adacore.com>
5565
5566         * decl.c (make_packable_type): If the new type has been given BLKmode,
5567         try again to get an integral mode for it.
5568
5569 2007-09-07  Eric Botcazou  <ebotcazou@adacore.com>
5570
5571         Re-apply accidentally reverted change:
5572
5573         2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5574
5575         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
5576         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
5577         and _Unwind_SWord with _sleb128_t.
5578
5579 2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
5580
5581         * trans.c (convert_with_check): Update call to real_2expN.
5582
5583 2007-09-05  Sandra Loosemore  <sandra@codesourcery.com>
5584
5585         * trans.c (Compilation_unit_to_gnu): Use set_cfun.
5586         * utils.c (end_subprog_body): Likewise.
5587
5588 2007-09-03  Nick Clifton  <nickc@redhat.com>
5589
5590         * Make-lang.in: Change copyright header to refer to version 3 of
5591         the GNU General Public License and to point readers at the
5592         COPYING3 file and the FSF's license web page.
5593         * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
5594         Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
5595         namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
5596         treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
5597         Likewise.
5598
5599 2007-08-31  Vincent Celier  <celier@adacore.com>
5600
5601         PR ada/4720
5602
5603         * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb, 
5604         gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
5605         (Check_Version_And_Help): New procedure in package Switch to process
5606         switches --version and --help.
5607         Use Check_Version_And_Help in GNAT tools
5608
5609         * make.adb:  Ditto.
5610         (Compile_Sources): Make sure that sources that are "excluded" are not
5611         compiled.
5612         (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
5613         project file is used.
5614         (Version_Switch): Remove, moved to Switch
5615         (Help_Switch): Remove, moved to Switch
5616         (Display_Version): Remove, moved to Switch
5617
5618         * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
5619         package Switch to process switches --version and --help.
5620         (Display_Version): New procedure
5621
5622         * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
5623
5624 2007-08-31  Javier Miranda  <miranda@adacore.com>
5625
5626         * a-tags.adb (Internal_Tag): Protect the run-time against wrong
5627         internal tags.
5628
5629 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5630
5631         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
5632         (Mark_Non_Null): If the node for which we just generated an access check
5633         is a reference to an *in* parameter and the reference appears in the
5634         declarative part of a subprogram body, mark the node as known non null.
5635
5636 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5637
5638         * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
5639         structure of E_Exception to reflect the new flag.
5640         (Is_Raised, Set_Is_Raised): New inlined routines.
5641         Update the usage of available flag to reflect the addition of Is_Raised.
5642         (Is_Raised, Set_Is_Raised): Bodies of new routines.
5643         (Write_Entity_Flags): Write the status of flag Is_Raised.
5644         (Is_Descendent_Of_Address): New entity flag, to simplify handling of
5645         spurious ambiguities when integer literals appear in the context of an
5646         address type that is a visible integer type.
5647
5648         * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
5649         exceptions never being raised.
5650         (Analyze_Raise_Statement): When analyzing an exception, mark it as being
5651         explicitly raised.
5652
5653 2007-08-31  Javier Miranda  <miranda@adacore.com>
5654
5655         * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
5656         statement when compiling under restriction No_Exceptions_Proparation.
5657
5658 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5659
5660         * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
5661         initialization aggregate for the type, generate itype references for
5662         thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
5663
5664 2007-08-31  Gary Dismukes  <dismukes@adacore.com>
5665
5666         * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
5667         library-level package renaming, pass the declaration associated with
5668         the renaming's special debug variable to Qualify_Entity_Names to ensure
5669         that its encoded name is properly qualified.
5670
5671         * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
5672         occurring in the list of entities to qualify, and do not attempt to
5673         traverse an entity list in that case. Variables associated with
5674 `       library-level package renamings can now occur in the table.
5675
5676         * exp_dbug.ads: Revise documentation of the encoding for renaming
5677         declarations.
5678
5679 2007-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5680
5681         * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
5682         access type points to an unconstrained array.
5683
5684 2007-08-31  Hristian Kirtchev  <kirtchev@adacore.com>
5685
5686         * restrict.adb, namet.adb, par-util.adb: Remove redundant type
5687         conversion.
5688
5689         * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
5690         simple redundant qualifications. The check is performed whenever the
5691         expression is a non-overloaded identifier.
5692         (Resolve_Type_Conversion): Enchance the redundant type conversion check
5693         to include loop parameters.
5694         (Valid_Conversion): Avoid generation of spurious error message.
5695
5696 2007-08-31  Bob Duff  <duff@adacore.com>
5697
5698         * par-ch4.adb (P_Simple_Expression): Fold long sequences of
5699         concatenations of string literals into a single literal, in order to
5700         avoid very deep recursion in the front end, which was causing stack
5701         overflow.
5702
5703         * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
5704         string, and the right operand is a string literal (the case of "" &
5705         "..."), optimize by avoiding copying the right operand -- just use the
5706         value of the right operand directly.
5707
5708         * stringt.adb (Store_String_Chars): Optimize by growing the
5709         String_Chars table all at once, rather than appending characters one by
5710         one.
5711         (Write_String_Table_Entry): If the string to be printed is very long,
5712         just print the first few characters, followed by the length. Otherwise,
5713         doing "pn(n)" in the debugger can take an extremely long time.
5714
5715         * sem_prag.adb (Process_Interface_Name): Replace loop doing
5716         Store_String_Char with Store_String_Chars.
5717
5718 2007-08-31  Vincent Celier  <celier@adacore.com>
5719
5720         * prj-attr.adb: Add new attribute Excluded_Source_Files
5721
5722         * prj-nmsc.adb: Use attribute Excluded_Source_Files before
5723         Locally_Removed_Files.
5724
5725         * snames.ads, snames.adb: New standard name Excluded_Source_Files
5726
5727 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5728
5729         * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
5730         clauses of subunits, ignore limited_with_clauses that are illegal and
5731         have not been fully analyzed.
5732
5733 2007-08-31  Ed Schonberg  <schonberg@adacore.com>
5734
5735         * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
5736         flag, for effiency. It is called when analyzing arithmetic operators
5737         and also for actuals in calls that are universal_integers. The flag is
5738         set for the predefined type address, and for any type or subtype
5739         derived from it.
5740
5741         * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
5742         Universal_Integer, when the formal is a descendent of address and the
5743         call appears in user code.
5744         (Analyze_Selected_Component): if the prefix is a private extension, the
5745         tag component is visible.
5746
5747         * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
5748         entity flag.
5749
5750 2007-08-31  Robert Dewar  <dewar@adacore.com>
5751
5752         * s-fileio.adb (Open): Normalize file name to lower case in non-case
5753         sensitive file name systems to avoid unexpected mismatch in Vista.
5754
5755 2007-08-31  Vincent Celier  <celier@adacore.com>
5756
5757         * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
5758
5759 2007-08-31  Vincent Celier  <celier@adacore.com>
5760
5761         * symbols-vms.adb (Initialize): Read symbol files with continuation
5762         lines
5763         (Finalize): If symbol is long, split the line
5764
5765 2007-08-31  Vincent Celier  <celier@adacore.com>
5766
5767         * fmap.ads: Minor comment updates
5768
5769 2007-08-31  GNAT Script  <nobody@adacore.com>
5770
5771         * Make-lang.in: Makefile automatically updated
5772
5773 2007-08-31  Bob Duff  <duff@adacore.com>
5774
5775         * sinfo.ads: Minor comment fix.
5776
5777 2007-08-31  Thomas Quinot  <quinot@adacore.com>
5778
5779         * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
5780         with implementation.
5781         Documentation cleanup only.
5782
5783 2007-08-31  Sergey Rybin  <rybin@adacore.com>
5784
5785         * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
5786         gnatpp '--separate-stmt-name' option.
5787         Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
5788         option.
5789
5790         * gnat_ugn.texi: Add description for the new gnatpp
5791         '--separate-stmt-name' and '--use-on-new-line' options.
5792
5793 2007-08-31  Ben Elliston  <bje@au.ibm.com>
5794
5795         * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
5796         when compiling for powerpc64-*-linux.
5797         * system-linux-ppc64.ads: New file.
5798
5799 2007-08-22  Krister Walfridsson  <cato@df.lth.se>
5800
5801         * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
5802         NetBSD.
5803
5804 2007-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5805
5806         * misc.c (gnat_type_max_size): Constify.
5807
5808 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5809
5810         * cstand.adb (Create_Standard): Create an entity for a zero-sized type
5811         associated with Standard_Debug_Renaming_Type, to be used as the type of
5812         the special variables whose names provide debugger encodings for
5813         renaming declarations.
5814
5815         * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
5816         (Set_Debug_Renaming_Link): Change to set Node25.
5817         (Write_Field13_Name): Remove case for E_Enumeration_Literal.
5818         (Write_Field25_Name): Add case for E_Variable to output
5819         "Debug_Renaming_Link".
5820         (Write_Field23_Name): Correct the output string for "Limited_View".
5821
5822         * exp_dbug.adb: Add with and use of Tbuild.
5823         (Debug_Renaming_Declaration): Replace creation of an enumeration type
5824         and literal with creation of a variable of type
5825         Standard_Debug_Renaming_Type whose name encodes both the renamed object
5826         and the entity of the renaming declaration.
5827         (Qualify_Entity_Name): Add the delayed qualification of the entity name
5828         part of the name of a variable that has a Debug_Renaming_Link.
5829
5830         * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
5831         special type to be associated with variables that provide debugger
5832         encodings for renaming declarations.
5833
5834 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5835             Ed Schonberg  <schonberg@adacore.com>
5836             Javier Miranda  <miranda@adacore.com>
5837
5838         * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
5839         ancestor part given by an aggregate to test for an unchecked conversion,
5840         since this can occur in some cases when the ancestor part is a function
5841         call, and we don't want to fall into the recursive call to this
5842         procedure in that case.
5843
5844         * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
5845         stream attributes on limited types to account for user-specified
5846         attributes as well as whether Input (resp. Output) becomes available
5847         due to Read (resp. Write) being available for the type. Change Boolean
5848         variable to the more accurate name
5849         Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
5850         double-"not" predicate at beginning of return statement to more
5851         understandable form.
5852
5853         * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
5854         return has an associated N_Handled_Sequence_Of_Statements, then wrap it
5855         in a block statement and use that as the first statement of the
5856         expanded return rather than incorrectly using the handled sequence as
5857         the first statement.
5858
5859         * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
5860         operation, generate an explicit freeze node for it rather than
5861         generating extra formals, to ensure that gigi has the proper order of
5862         elaboration for anonymous subtypes in the signature of the subprograms.
5863         (Build_In_Place_Formal): Move assertion to beginning of loop.
5864         (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
5865         applied to a function call (occurs for some cases of 'Input).
5866         (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
5867         applied to a function call (occurs for some cases of 'Input).
5868
5869         * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
5870         2005, generate an extended return statement enclosing the result object
5871         and 'Read call.
5872
5873         * freeze.adb (Freeze_Record_Type): Extend the current management of
5874         components that are access type with an allocator as default value: add
5875         missing support to the use of qualified expressions of the
5876         allocator (which also cause freezing of the designated type!)
5877         (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
5878         dispatching operation, since extra formals may be needed by calls to
5879         build-in-place functions (such as stream 'Input).
5880
5881         * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
5882         formals for 'Constrained and accessibility level in the case of a
5883         predefined dispatching operation.
5884
5885         * exp_util.adb (Insert_Actions): A protected body is a valid insertion
5886         point, no need to find the parent node.
5887
5888 2007-08-16  Javier Miranda  <miranda@adacore.com>
5889
5890         * exp_attr.adb (Attribute_Priority): Add missing support for entries
5891         and entry barriers.
5892
5893 2007-08-16  Javier Miranda  <miranda@adacore.com>
5894
5895         * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
5896         is not really required and can introduce regression with the debugger.
5897         The original problem is fixed with the patch written for checks.adb.
5898
5899 2007-08-16  Thomas Quinot  <quinot@adacore.com>
5900
5901         * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
5902         Range_Check on Allocated_Table.
5903
5904 2007-08-16  Vincent Celier  <celier@adacore.com>
5905
5906         * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
5907         Including_Non_Switch set to False.
5908         (Gnatmake): For the compiler, call Test_If_Relative_Path with
5909         Including_Non_Switch set to False.
5910
5911         * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
5912         parameter Including_Non_Switch, defaulted to True. When
5913         Including_Non_Switch is False, options that are not switches and
5914         appear as relative path are not converted to absolute paths.
5915
5916 2007-08-16  Nicolas Roche  <roche@adacore.com>
5917
5918         * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
5919         makefiles
5920
5921         * Make-lang.in: Update dependencies
5922
5923 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
5924
5925         * sem_ch10.adb (Has_With_Clause): If the name of the with clause
5926         currently inspected is a selected component, retrieve the entity of
5927         its selector.
5928         (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
5929         from the immediate ancestor of Main_Unit_Entity.
5930         (Install_Limited_Withed_Unit): Do not install the limited view of
5931         package P if P is reachable through an ancestor chain from package C
5932         and C also has a with clause for P in its body.
5933         (Has_Limited_With_Clause): New routine.
5934         (Has_With_Clause): New routine.
5935
5936 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
5937
5938         * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
5939         generic for an enclosing instance is a global reference, even though
5940         its scope is the enclosing instance.
5941
5942 2007-08-16  Gary Dismukes  <dismukes@adacore.com>
5943             Javier Miranda  <miranda@adacore.com>
5944
5945         * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
5946         initialize a limited object.
5947         (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
5948         13/2 and 14/2.
5949         Make sure Has_Complex_Representation is inherited by derived type.
5950
5951 2007-08-16  Robert Dewar  <dewar@adacore.com>
5952
5953         * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
5954         exception case
5955
5956 2007-08-16  Ed Schonberg  <schonberg@adacore.com>
5957
5958         * sem_disp.adb (Check_Dispatching_Operation): If the operation
5959         implements an operation inherited from a progenitor interface, verify
5960         that they are subtype-conformant.
5961
5962 2007-08-16  Hristian Kirtchev  <kirtchev@adacore.com>
5963             Bob Duff  <duff@adacore.com>
5964             Nicolas Setton  <setton@adacore.com>
5965
5966         * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
5967         (Resolve): Alphabetize local variables. Add new variable From_Lib. When
5968         the statement which is being resolved comes from a predefined library
5969         unit, all non-predefined library interpretations are skipped.
5970         (Resolve_Op_Concat): If string concatenation was folded in the parser,
5971         but the "&" is user defined, give an error, because the folding would
5972         be wrong.
5973
5974         * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
5975         the parser has folded a long sequence of concatenations of string
5976         literals.
5977
5978         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
5979         and "JMP_BUF" variables as artificial.
5980         (N_String_Literal): Do not use alloca for very long string literals. Use
5981         xmalloc/free instead. Otherwise the stack might overflow.
5982
5983         * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
5984         compiler.
5985
5986 2007-08-16  Vincent Celier  <celier@adacore.com>
5987
5988         * vms_conv.adb (Process_Argument): Ensure that project related options
5989         are not put in the -cargs section when using GNAT COMPILE.
5990
5991 2007-08-16  Robert Dewar  <dewar@adacore.com>
5992
5993         * gnat_ugn.texi: Add note on preprocessing (output file not written)
5994
5995 2007-08-16  Thomas Quinot  <quinot@adacore.com>
5996
5997         * a-tags.adb: Minor reformatting.
5998
5999 2007-08-16  Bob Duff  <duff@adacore.com>
6000
6001         * sem_type.ads, sem_ch4.adb: Minor reformatting.
6002
6003 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6004
6005         * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads, 
6006         s-osinte-interix.ads, system-interix.ads: Removed.
6007
6008 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
6009
6010         * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
6011         calls to Check_Within_Time_Bounds.
6012         ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
6013         (Difference): Account for possible rounding of the resulting difference
6014
6015 2007-08-14  Robert Dewar  <dewar@adacore.com>
6016
6017         * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
6018         par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
6019         s-osinte-solaris.adb, s-osinte-solaris.ads,
6020         s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
6021
6022         * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
6023         switch -gnatyS. Enable -gnatyS in GNAT style check mode
6024
6025 2007-08-14  Robert Dewar  <dewar@adacore.com>
6026             Ed Schonberg  <schonberg@adacore.com>
6027
6028         * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads: 
6029         Suppress unmodified in-out parameter warning in some cases
6030         This patch is a also fairly significant change to the way suppressible
6031         checks are handled.
6032
6033         * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
6034         needed for access to concurrent record types generated by the expander.
6035         (Generate_Range_Check): When generating a temporary to capture the
6036         value of a conversion that requires a range check, set the type of the
6037         temporary before rewriting the node, so that the type is always
6038         properly placed for back-end use.
6039         (Apply_Float_Conversion_Check): Handle case where the conversion is
6040         truncating.
6041         (Get_Discriminal): Code reformatting. Climb the scope stack looking
6042         for a protected type in order to examine its discriminants.
6043
6044 2007-08-14  Robert Dewar  <dewar@adacore.com>
6045             Gary Dismukes  <dismukes@adacore.com>
6046             Ed Schonberg  <schonberg@adacore.com>
6047             Thomas Quinot  <quinot@adacore.com>
6048
6049         * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb, 
6050         a-stwisu.adb, a-strsup.adb: Fix warnings for range
6051         tests optimized out.
6052
6053         * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
6054         (Get_Allocator_Final_List): For the case of an anonymous access type
6055         that has a specified Associated_Final_Chain, do not go up to the
6056         enclosing scope.
6057         (Expand_N_Type_Conversion): Test for the case of renamings of access
6058         parameters when deciding whether to apply a run-time accessibility
6059         check.
6060         (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
6061         aggregate code before allocator, and ahead of declaration for
6062         temporary, to prevent access before elaboration when the allocator is
6063         an actual for an access parameter.
6064         (Expand_N_Type_Conversion): On an access type conversion involving an
6065         access parameter, do not apply an accessibility check when the
6066         operand's original node was an attribute other than 'Access. We now
6067         create access conversions for the expansion of 'Unchecked_Access and
6068         'Unrestricted_Access in certain cases and clearly accessibility should
6069         not be checked for those.
6070
6071         * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
6072         includes a type conversion of a packed component that has been expanded,
6073         recover the original expression for the object, and use this expression
6074         in the post-call assignment statement, so that the assignment is made
6075         to the object and not to a back-end temporary.
6076         (Freeze_Subprogram): In case of primitives of tagged types not defined
6077         at the library level force generation of code to register the primitive
6078         in the dispatch table. In addition some code reorganization has been
6079         done to leave the implementation clear.
6080         (Expand_Call): When expanding an inherited implicit conversion,
6081         preserve the type of the inherited function after the intrinsic
6082         operation has been expanded.
6083
6084         * exp_ch2.ads, exp_ch2.adb
6085         (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
6086         of an entry formal appearing in an assignment statement does not assign
6087         to the formal.
6088         (Expand_Current_Value): Instead of calling a routine to determine
6089         whether the prefix of an attribute reference should be optimized or
6090         not, prevent the optimization of such prefixes all together.
6091
6092         * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
6093         component whose prefix is known to be of an access type is an implicit
6094         dereference and does not assign to the prefix.
6095
6096 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6097             Robert Dewar  <dewar@adacore.com>
6098
6099         * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
6100         itype is visited, make an entry into table to link associated node and
6101         new itype.
6102         Add comments and correct harmless error in Build_NCT_Hash_Tables
6103         (Array_Aggr_Subtype): Associate each itype created for an index type to
6104         the corresponding range construct, and not to the aggregate itself. to
6105         maintain a one-to-one correspondence between itype and its associated
6106         node, to prevent errors when complex expression is copied.
6107         Fix mishandling of multiple levels of parens
6108
6109         * sem_aggr.adb: Create a limited view of an incomplete type, to make
6110         treatment of limited views uniform for all visible declarations in a
6111         limited_withed package.
6112         (New_Copy_Tree): If hash table is being used and itype is visited,
6113         make an entry into table to link associated node and new itype.
6114         (Resolve_Record_Aggregate): Do not add an others box association for a
6115         discriminated record component that has only discriminants, when there
6116         is a box association for the component itself.
6117
6118         * par-ch4.adb: Fix mishandling of multiple levels of parens
6119
6120 2007-08-14  Robert Dewar  <dewar@adacore.com>
6121
6122         * comperr.adb: Fix problem with suppressing warning messages from gigi
6123
6124         * erroutc.ads, erroutc.adb, errout.ads, 
6125         errout.adb (Write_Eol): Remove trailing spaces before writing the line
6126         (Write_Eol_Keep_Blanks): New procedure to write a line, including
6127         possible trailing spaces.
6128         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
6129         Fix problem with suppressing warning messages from back end
6130         Improve handling of deleted warnings
6131
6132         * gnat1drv.adb: 
6133         Fix problem with suppressing warning messages from back end
6134         Handle setting of Static_Dispatch_Tables flag.
6135
6136         * prepcomp.adb: 
6137         Fix problem with suppressing warning messages from back end
6138
6139         * exp_intr.adb: Improve handling of deleted warnings
6140
6141 2007-08-14  Robert Dewar  <dewar@adacore.com>
6142
6143         * debug.adb: Improve -gnatdI to cover all cases of serialization
6144         Add documentation of dZ, d.t
6145
6146         * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
6147         serialization.
6148         (Sprint_Node_Actual): Generate new output associated with implicit
6149         importation and implicit exportation of object declarations.
6150
6151 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6152             Robert Dewar  <dewar@adacore.com>
6153             Javier Miranda  <miranda@adacore.com>
6154             Gary Dismukes  <dismukes@adacore.com>
6155
6156         * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
6157         to make treatment of limited views uniform for all visible declarations
6158         in a limited_withed package.
6159         Improve warnings for in out parameters
6160         (Set_Related_Interaface/Related_Interface): Allow the use of this
6161         attribute with constants.
6162         (Write_Field26_Name): Handle attribute Related_Interface in constants.
6163         Warn on duplicate pragma Preelaborable_Initialialization
6164
6165         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
6166         generation of a freezing node to ensure proper management of null
6167         excluding access types in the backend.
6168         (Create_Extra_Formals): Test base type of the formal when checking for
6169         the need to add an extra accessibility-level formal. Pass the entity E
6170         on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
6171         originally being done in a couple of cases), to ensure that the
6172         Extra_Formals list gets set on the entity E when the first entity is
6173         added.
6174         (Conforming_Types): Add missing calls to Base_Type to the code that
6175         handles anonymous access types. This is required to handle the
6176         general case because Process_Formals builds internal subtype entities
6177         to handle null-excluding access types.
6178         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6179         functions that need it, even when not marked Requires_Overriding.
6180         Improve warnings for in out parameters
6181         (Analyze_Function_Return): Warn for disallowed null return
6182         Warn on return from procedure with unset out parameter
6183         Ensure consistent use of # in error messages
6184         (Check_Overriding_Indicator): Add in parameter Is_Primitive.
6185         (Analyze_Function_Return): Move call to Apply_Constraint_Check before
6186         the implicit conversion of the expression done for anonymous access
6187         types. This is required to generate the code of the null excluding
6188         check (if required).
6189
6190         * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
6191         A formal parameter is never publicly referenceable outside of its body.
6192         (Check_References): For an unreferenced formal parameter in an accept
6193         statement, use the same warning circuitry as for subprogram formal
6194         parameters.
6195         (Warn_On_Unreferenced_Entity): New subprogram, taken from
6196         Output_Unreferenced_Messages, containing the part of that routine that
6197         is now reused for entry formals as described above.
6198         (Goto_Spec_Entity): New function
6199         (Check_References): Do not give IN OUT warning for dispatching operation
6200         Improve warnings for in out parameters
6201         (Test_Ref): Check that the entity is not undefinite before calling
6202         Scope_Within, in order to avoid infinite loops.
6203         Warn on return from procedure with unset out parameter
6204         Improved warnings for unused variables
6205
6206 2007-08-14  Robert Dewar  <dewar@adacore.com>
6207             Javier Miranda  <miranda@adacore.com>
6208             Gary Dismukes  <dismukes@adacore.com>
6209
6210         * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
6211         (Expand_N_Attribute_Reference): Further unify the handling of the
6212         three forms of access attributes, using common code now for all three
6213         cases. Add a test for the case of applying an access attribute to
6214         an explicit dereference when the context is an access-to-interface
6215         type. In that case we need to apply the conversion to the prefix
6216         of the explicit dereference rather than the prefix of the attribute.
6217         (Attribute_Version, UET_Address): Set entity as internal to ensure
6218         proper dg output of implicit importation.
6219         (Expand_Access_To_Type): Removed.
6220         (Expand_N_Attribute_Reference): Merge the code from the three cases
6221         of access attributes, since the processing is largely identical for
6222         these cases. The substantive fix here is to process the case of a
6223         type name prefix (current instance case) before handling the case
6224         of interface prefixes.
6225
6226 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6227             Ed Schonberg  <schonberg@adacore.com>
6228             Javier Miranda  <miranda@adacore.com>
6229             Robert Dewar  <dewar@adacore.com>
6230
6231         * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
6232         (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
6233         type that is an anonymous access to controlled object, establish
6234         an associated finalization chain to avoid corrupting the global
6235         finalization list when a dynamically allocated object designated
6236         by such a component is deallocated.
6237         (Make_Controlling_Function_Wrappers): Create wrappers for constructor
6238         functions that need it, even when not marked Requires_Overriding.
6239         (Initialize_Tag): Replace call to has_discriminants by call to
6240         Is_Variable_Size_Record in the circuitry that handles the
6241         initialization of secondary tags.
6242         (Is_Variable_Size_Record): New implementation.
6243         (Expand_N_Object_Declaration): Suppress call to init proc if there is a
6244         Suppress_Initialization pragma for a derived type.
6245         (Is_Variable_Size_Record): New subprogram.
6246         (Build_Offset_To_Top_Functions): New implementation that simplifies the
6247         initial version of this routine and also fixes problems causing
6248         incomplete initialization of the table of interfaces.
6249         (Build_Init_Procedure): Improve the generation of code to initialize the
6250         the tag components of secondary dispatch tables.
6251         (Init_Secondary_Tags): New implementation that simplifies the previous
6252         version of this routine.
6253         (Make_DT): Add parameter to indicate when type has been frozen by an
6254         object declaration, for diagnostic purposes.
6255         (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
6256         diagnose attemps to freeze a subprogram when some untagged type of its
6257         profile is a private type whose full view has not been analyzed yet.
6258         (Freeze_Array_Type): Generate init proc for packed array if either
6259         Initialize or Normalize_Scalars is set.
6260         (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
6261         constructing the new profile, copy the null_exclusion indicator for each
6262         parameter, to ensure full conformance of the new body with the spec.
6263
6264         * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
6265         Create wrappers for constructor functions that need it, even when not
6266         marked Requires_Overriding.
6267         (Covers): Handle properly designated types of anonymous access types,
6268         whose non-limited views are themselves incomplete types.
6269         (Add_Entry): Use an entity to store the abstract operation which hides
6270         an interpretation.
6271         (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
6272         (Collect_Interps): Use Empty as an actual for Abstract_Op in the
6273         initialization aggregate.
6274         (Function_Interp_May_Be_Hidden): Rename to
6275         Function_Interp_Has_Abstract_Op.
6276         (Has_Compatible_Type): Remove machinery that skips interpretations if
6277         they are labeled as potentially hidden by an abstract operator.
6278         (Has_Hidden_Interp): Rename to Has_Abstract_Op.
6279         (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
6280         (Write_Overloads): Output the abstract operator if present.
6281         (Add_Entry): Before inserting a new entry into the interpretation table
6282         for a node, determine whether the entry will be disabled by an abstract
6283         operator.
6284         (Binary_Op_Interp_May_Be_Hidden): New routine.
6285         (Collect_Interps): Add value for flag May_Be_Hidden in initialization
6286         aggregate.
6287         (Function_Interp_May_Be_Hidden): New routine.
6288         (Has_Compatible_Type): Do not consider interpretations hidden by
6289         abstract operators when trying to determine whether two types are
6290         compatible.
6291         (Has_Hidden_Interp): New routine.
6292         (Set_May_Be_Hidden_Interp): New routine.
6293         (Write_Overloads): Write the status of flag May_Be_Hidden.
6294
6295 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6296             Javier Miranda  <miranda@adacore.com>
6297
6298         * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
6299         types declared in the declarative part of a nested package body or in
6300         the proper body of a stub.
6301         (Set_All_DT_Position): Add missing check to avoid wrong assignation
6302         of the same dispatch table slot to renamed primitives.
6303         (Make_Select_Specific_Data_Table): Handle private types.
6304         (Tagged_Kind): Handle private types.
6305         (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
6306         output of implicit importation and exportation.
6307         (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
6308         first formal of the thunk is always associated with the controlling
6309         type. In addition perform the following code cleanup: remove formal
6310         Thunk_Alias which is no longer required, cleanup evaluation of the
6311         the controlling type, and update the documentation.
6312         Replace occurrence of Default_Prim_Op_Count by
6313         Max_Predef_Prims. Addition of compile-time check to verify
6314         that the value of Max_Predef_Prims is correct.
6315         (Check_Premature_Freezing): Apply check in Ada95 mode as well.
6316         (Make_DT): Add parameter to indicate when type has been frozen by an
6317         object declaration, for diagnostic purposes.
6318         (Build_Static_Dispatch_Tables): New subprogram that takes care of the
6319         construction of statically allocated dispatch tables.
6320         (Make_DT): In case of library-level tagged types export the declaration
6321         of the primary tag. Remove generation of tags (now done by Make_Tags).
6322         Additional modifications to handle non-static generation of dispatch
6323         tables. Take care of building tables for asynchronous interface types
6324         (Make_Tags): New subprogram that generates the entities associated with
6325         the primary and secondary tags of Typ and fills the contents of Access_
6326         Disp_Table. In case of library-level tagged types imports the forward
6327         declaration of the primary tag that will be declared later by Make_DT.
6328         (Expand_Interface_Conversion): In case of access types to interfaces
6329         replace an itype declaration by an explicit type declaration to avoid
6330         problems associated with the scope of such itype in transient blocks.
6331
6332 2007-08-14  Robert Dewar  <dewar@adacore.com>
6333             Ed Schonberg  <schonberg@adacore.com>
6334             Javier Miranda  <miranda@adacore.com>
6335
6336         * exp_util.ads, exp_util.adb: 
6337         This patch replaces a number of occurrences of explicit tests for N_Null
6338         with calls to Known_Null. This improves tracking of null values, since
6339         Known_Null also catches null constants, and variables currently known to
6340         be null, so we get better tracking.
6341         (Ensure_Defined): create an itype reference only in the scope of the
6342         itype.
6343         (Side_Effect_Free): A selected component of an access type that
6344         denotes a component with a rep clause must be treated as not
6345         side-effect free, because if it is part of a linked structure its
6346         value may be affected by a renaming.
6347         (Expand_Subtype_From_Expr): For limited objects initialized with build
6348         in place function calls, do nothing; otherwise we prematurely introduce
6349         an N_Reference node in the expression initializing the object, which
6350         breaks the circuitry that detects and adds the additional arguments to
6351         the called function. Bug found working in the new patch for statically
6352         allocated dispatch tables.
6353         (Is_Library_Level_Tagged_Type): New subprogram.
6354         (Remove_Side_Effects): If the expression of an elementary type is an
6355         operator treat as a function call.
6356         (Make_Literal_Range): If the index type of the array is not integer, use
6357         attributes properly to compute the constraint on the resulting aggregate
6358         which is a string.
6359
6360         * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
6361         class-wide type whose base type is an incomplete private type, leave
6362         class-wide type unfrozen so that freeze nodes can be generated
6363         properly at a later point.
6364         (Freeze_Entity, array case): Handle case of pragma Pack and component
6365         size attributre clause for same array.
6366
6367 2007-08-14  Vincent Celier  <celier@adacore.com>
6368
6369         * prj.ads, prj.adb: Update Project Manager to new attribute names for
6370         gprbuild.
6371         Allow all valid declarations in configuration project files
6372         (Reset): Initialize all tables and hash tables in the project tree data
6373         Major update of the Project Manager and of the project aware tools,
6374         including gprmake, so that the same sources in the GNAT repository
6375         can be used by gprbuild.
6376         (Slash_Id): Change type to be Path_Name_Type
6377         (Slash): Return a Path_Name_Type instead of a File_Name_Type
6378
6379         * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
6380         gprbuild.
6381         Update Project Manager to new attribute names for ghprbuild
6382         Allow all valid declarations in configuration project files
6383         Major update of the Project Manager and of the project aware tools,
6384         including gprmake, so that the same sources in the GNAT repository
6385         can be used by gprbuild.
6386
6387         * prj-com.ads: 
6388         Major update of the Project Manager and of the project aware tools,
6389         including gprmake, so that the same sources in the GNAT repository
6390         can be used by gprbuild.
6391
6392         * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6393         insensitive flag for attributes with optional index.
6394         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6395         array attribute, put the index in lower case.
6396         Update Project Manager to new attribute names for ghprbuild
6397         Allow all valid declarations in configuration project files
6398         Major update of the Project Manager and of the project aware tools,
6399         including gprmake, so that the same sources in the GNAT repository
6400         can be used by gprbuild.
6401
6402         * prj-env.ads, prj-env.adb: 
6403         Major update of the Project Manager and of the project aware tools,
6404         including gprmake, so that the same sources in the GNAT repository
6405         can be used by gprbuild.
6406         (Get_Reference): Change type of parameter Path to Path_Name_Type
6407
6408         * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
6409         removing '-' from the path to start with the first character of the
6410         next directory.
6411         Major update of the Project Manager and of the project aware tools,
6412         including gprmake, so that the same sources in the GNAT repository
6413         can be used by gprbuild.
6414         Major update of the Project Manager and of the project aware tools,
6415         including gprmake, so that the same sources in the GNAT repository
6416         can be used by gprbuild.
6417
6418         * prj-nmsc.ads, prj-nmsc.adb: 
6419         Update Project Manager to new attribute names for ghprbuild
6420         Allow all valid declarations in configuration project files
6421         (Search_Directories): Detect subunits that are specified with an
6422         attribute Body in package Naming. Do not replace a source/unit in the
6423         same project when the order of the source dirs are known. Detect
6424         duplicate sources/units in the same project when the order of the
6425         source dirs are not known.
6426         (Check_Ada_Name): Allow all identifiers that are not reserved words
6427         in Ada 95.
6428         Major update of the Project Manager and of the project aware tools,
6429         including gprmake, so that the same sources in the GNAT repository
6430         can be used by gprbuild.
6431         (Look_For_Sources): If the list of sources is empty, set the object
6432         directory of non extending project to nil.
6433         Change type of path name variables to be Path_Name_Type
6434         (Locate_Directory): Make sure that on Windows '/' is converted to '\',
6435         otherwise creating missing directories will fail.
6436
6437         * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb, 
6438         prj-part.ads, prj-part.adb:
6439         Major update of the Project Manager and of the project aware tools,
6440         including gprmake, so that the same sources in the GNAT repository
6441         can be used by gprbuild.
6442
6443         * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
6444         insensitive flag for attributes with optional index.
6445         (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
6446         array attribute, put the index in lower case.
6447         (Parse_Variable_Reference): Allow the current project name to be used in
6448         the prefix of an attribute reference.
6449
6450         * prj-util.ads, prj-util.adb
6451         (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
6452         defaulted to False. When True, always check against indexes in lower
6453         case.
6454
6455         * snames.ads, snames.h, snames.adb: 
6456         Update Project Manager to new attribute names for gprbuild
6457         Allow all valid declarations in configuration project files
6458
6459 2007-08-14  Robert Dewar  <dewar@adacore.com>
6460             Ed Schonberg  <schonberg@adacore.com>
6461
6462         * opt.ads: Warning for non-local exception propagation now off by
6463         default
6464         New switch -gnatI to disable representation clauses
6465         Implement new pragma Implicit_Packing
6466
6467         * usage.adb: 
6468         Warning for non-local exception propagation now off by default
6469         Add warning for unchecked conversion of pointers wi different
6470         conventions.
6471         New switch -gnatI to disable representation clauses
6472
6473         * usage.adb: new switch -gnatyS
6474
6475         * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
6476         note that aggregates of anonymous array types are not flagged.
6477         -gnatwc now includes membership tests optimized away
6478         -gnatw.x warnings are now off by default
6479         Added conditional compilation Appendix
6480         Add documentation of -gnatI
6481         Add documentation for new -gnatyS style check
6482         Update documentation about SAL and auto-init on Windows.
6483
6484         * gnat_rm.texi: 
6485         Add documentation for pragma Check_Name and 'Enabled attribute
6486         Document that Eliminate on dispatching operation is ignored
6487         Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
6488         Document pragma Main
6489         Document pragma Implicit_Packing
6490
6491         * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
6492         different conventions
6493         New switch -gnatI to disable representation clauses
6494
6495         * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
6496         recognized, report the invalid characters including "-gnat" instead of
6497         just the first character in the switch.
6498         New switch -gnatI to disable representation clauses
6499         Set Warn_On_Object_Renames_Function true for -gnatg
6500
6501         * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
6502         Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
6503         Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
6504         to switch -aP (add directory to project search dir).
6505
6506         * par-prag.adb: Implement new pragma Implicit_Packing
6507
6508         * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
6509         type as having a non-standard representation, to force expansion on
6510         conversion to related types.
6511         (Analyze_Pragma): Warn on misspelled pragma
6512         (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
6513         Ensure consistent use of # in error messages
6514         Implement pragma Implicit_Packing
6515
6516 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6517             Eric Botcazou  <ebotcazou@adacore.com>
6518
6519         * targtyps.c (get_target_maximum_default_alignment): New function.
6520         Maximum alignment
6521         that the compiler might choose by default for a type or object.
6522         (get_target_default_allocator_alignment): New function. Alignment known
6523         to be honored by the target default allocator.
6524         (get_target_maximum_allowed_alignment): New function. Maximum alignment
6525         we might accept for any type or object on the target.
6526         (get_target_maximum_alignment): Now synonym of maximum_default_alignment
6527
6528         * gigi.h (get_target_maximum_default_alignment): Declare new function.
6529         (get_target_default_allocator_alignment): Likewise.
6530         (get_target_maximum_allowed_alignment): Likewise.
6531
6532         PR ada/19037
6533         * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
6534         result of a function call, first try to use a stabilized reference for
6535         a constant renaming too.
6536         (validate_alignment): Use target_maximum_allowed_alignment instead of
6537         MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
6538         (gnat_to_gnu_entity): Use common nodes directly.
6539         (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
6540         alignment and size for the object.
6541         (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
6542         and N_Procedure_Call_Statement.
6543         (takes_address): Rename to lvalue_required_p, add third parameter
6544         'aliased' and adjust recursive calls.
6545         <N_Indexed_Component>: Update 'aliased' from the array type.
6546         <N_Selected_Component>: New case.
6547         <N_Object_Renaming_Declaration>: New Likewise.
6548         (Identifier_to_gnu): Adjust for above changes.
6549         (maybe_stabilize_reference) <CONST_DECL>: New case.
6550
6551         * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
6552         between type variants.
6553         (build_simple_component_ref): Likewise.
6554         (build_call_alloc_dealloc): Use target_default_allocator_alignment
6555         instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
6556         aligning type circuitry for allocations from the default storage pool.
6557         (build_allocator): Likewise.
6558         (build_simple_component_ref): Manually fold the reference for a
6559         constructor if the record type contains a template.
6560
6561         * utils.c (value_zerop): Delete.
6562         (gnat_init_decl_processing): Emit debug info for common types.
6563         (rest_of_record_type_compilation): If a union contains a field
6564         with a non-constant qualifier, treat it as variable-sized.
6565         (finish_record_type): Give the stub TYPE_DECL a name.
6566         (rest_of_record_type_compilation): Likewise.
6567         (convert) <CONSTRUCTOR>: New case.  Build a new constructor if
6568         types are equivalent array types.
6569         (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
6570         even if the type is not passed by reference.
6571         (static_ctors, static_dtors): Delete.
6572         (end_subprog_body): Do not record constructors and destructors.
6573         (build_global_cdtor): Delete.
6574         (gnat_write_global_declarations): Do not call build_global_cdtor.
6575
6576         * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
6577         -fRTS=rtp is specified.
6578         If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
6579         specified.
6580
6581         * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
6582         of the personality function with SJLJ exceptions.
6583
6584         * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
6585         the name of the personality function with SJLJ exceptions.
6586
6587 2007-08-14  Robert Dewar  <dewar@adacore.com>
6588             Ed Schonberg  <schonberg@adacore.com>
6589
6590         * par.ads, par.adb: Improve handling of extra right parens.
6591         (Par): Remove flag From_Limited_With_Clause.
6592
6593         * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
6594         Improve handling of extra right parens.
6595
6596 2007-08-14  Robert Dewar  <dewar@adacore.com>
6597
6598         * par-tchk.adb (TF_Semicolon): Improve error recovery
6599
6600 2007-08-14  Robert Dewar  <dewar@adacore.com>
6601             Ed Schonberg  <schonberg@adacore.com>
6602
6603         * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
6604         enumeration type, mark all literals as referenced.
6605         (Eval_Attribute, case 'Image): If the argument is an enumeration
6606         literal and names are available, constant-fold but mark nevertheless as
6607         non-static.
6608         Clean up function names.
6609         (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
6610         comment.
6611         (Requires_Simple_Name_Prefix): Removed.
6612
6613 2007-08-14  Robert Dewar  <dewar@adacore.com>
6614             Ed Schonberg  <schonberg@adacore.com>
6615
6616         * sem_ch11.adb: Improved warnings for unused variables
6617
6618         * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
6619         is a synchronized interface, the derived type is limited.
6620         (Analyze_Object_Declaration): Mark the potential coextensions in the
6621         definition and expression of an object declaration node.
6622         (Build_Derived_Type): For the completion of a private type declaration
6623         with a derived type declaration, chain the parent type's representation
6624         items to the last representation item of the derived type (not the
6625         first one) if they are not present already.
6626         (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
6627         object declaration of forward references to tags.
6628         (Access_Subprogram_Declaration): In Ada2005, anonymous access to
6629         subprogram types can appear as access discriminants of synchronized
6630         types.
6631         (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
6632         given in prefixed form as a selected component.
6633         (Process_Discriminants): If not all discriminants have defaults, place
6634         error message on a default that is present.
6635         (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
6636         extend a synchronized tagged type.
6637         Improved warnings for unused variables
6638         (Is_Visible_Component): Fix a visibility hole on a component inherited
6639         by a private extension when parent is itself declared as a private
6640         extension, and the derivation is in a child unit.
6641         (Find_Hidden_Interface): Move spec from the package body.
6642
6643 2007-08-14  Robert Dewar  <dewar@adacore.com>
6644             Ed Schonberg  <schonberg@adacore.com>
6645
6646         * sem_ch5.adb: Improve warnings on redundant assignments
6647
6648         * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
6649         parameter
6650         (Is_Synchronized_Tagged_Type): New subprogram that returns true
6651         in case of synchronized tagged types (AARM 3.9.4 (6/2)).
6652         (Safe_To_Capture_Value): Can now return True for constants, even if Cond
6653         is set to False. Improves handling of Known_[Not_]Null.
6654         (Wrong_Type): Special case address arithmetic attempt
6655         (Collect_Abstract_Interfaces): Add new formal to allow collecting
6656         abstract interfaces just using the partial view of private types.
6657         (Has_Abstract_Interfaces): Add new formal to allow checking types
6658         covering interfaces using the partial view of private types.
6659         (Is_Fully_Initialized_Type): Special VM case for uTag component. This
6660         component still needs to be defined in this case, but is never
6661         initialized as VMs are using other dispatching mechanisms.
6662         (Abstract_Interface_List): For a protected type, use base type to get
6663         proper declaration.
6664         Improve warnings on redundant assignments
6665         (Is_Variable): Handle properly an implicit dereference of a prefixed
6666         function call.
6667         (Build_Actual_Subtype): If this is an actual subtype for an
6668         unconstrained formal parameter, use the sloc of the body for the new
6669         declaration, to prevent anomalises in the debugger.
6670
6671 2007-08-14  Robert Dewar  <dewar@adacore.com>
6672
6673         * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
6674         dispatching operation
6675
6676 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6677             Gary Dismukes  <dismukes@adacore.com>
6678
6679         * exp_aggr.ads, 
6680         exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
6681         expanded aggregate code before allocator, and ahead of declaration for
6682         temporary, to prevent access before elaboration when the allocator is
6683         an actual for an access parameter.
6684         (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
6685         the TSD and the table of interfaces.
6686         (Convert_To_Assignments): Augment the test for delaying aggregate
6687         expansion for limited return statements to include the case of extended
6688         returns, to prevent creation of an unwanted transient scope.
6689         (Is_Static_Dispatch_Table_Aggregate): New subprogram.
6690         (Expand_Array_Aggregate): Handle aggregates associated with
6691         statically allocated dispatch tables.
6692         (Expand_Record_Aggregate): Handle aggregates associated with
6693         statically allocated dispatch tables.
6694         (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
6695         of anonymous access type.
6696
6697 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6698
6699         * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
6700         is a variable that renames a slice, use the variable itself in the
6701         expannsion when the renamed expression itself may be modified between
6702         the declaration of the renaming and the array assignment.
6703
6704 2007-08-14  Jerome Guitton  <guitton@adacore.com>
6705
6706         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb, 
6707         s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb, 
6708         s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
6709         New functions; dummy implementations.
6710
6711         * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
6712         functions, used to implement the multi-tasks mode routines on VxWorks.
6713
6714         * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
6715         New functions, thin
6716         binding to the VxWorks routines which have changed between VxWorks 5
6717         and 6.
6718         (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
6719         which are not callable from a RTP.
6720
6721         * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
6722         implemented for the multi-tasks mode on VxWorks 5 and 6.
6723
6724         * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
6725
6726         * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
6727         functions.
6728
6729 2007-08-14  Vincent Celier  <celier@adacore.com>
6730
6731         * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb, 
6732         gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
6733         mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb, 
6734         mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb, 
6735         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, 
6736         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
6737         mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
6738         procedure.
6739         (Major_Id_Name): New function.
6740         mlib-tgt.ads/mlib.tgt.adb:
6741         (Library_Major_Minor_Id_Supported): New function, default returns True
6742         Most mlib-tgt-*.adb that support shared libraries and symbolic links:
6743         (Build_Dynamic_Library): Add support for major/minor ids for shared libs
6744         Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
6745         Implementation of Library_Major_Minor_Id_Supported returns False
6746         clean.adb:
6747         (Clean_Library_Directory): If major/minor ids are supported, clean all
6748         library files.
6749         Major update of the Project Manager and of the project aware tools,
6750         including gprmake, so that the same sources in the GNAT repository
6751         can be used by gprbuild.
6752
6753 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6754
6755         * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
6756         (GCC_ZCX_Support): Switch to True.
6757         
6758         * s-intman-solaris.adb (Notify_Exception): Call
6759         Adjust_Context_For_Raise before raising, as expected for signal
6760         handlers in general.
6761         
6762         * s-intman-posix.adb (Notify_Exception): Remove declaration of
6763         Adjust_Context_For_Raise, moved to the spec of this unit to be visible
6764         to other implementation bodies.
6765         
6766         * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
6767         be visible by multiple implementation bodies.
6768         
6769         * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
6770         only for conditions coming from hardware.
6771         [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
6772         adjustments to signal context prior to exception raise from signal
6773         handler.
6774         (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
6775         mode.
6776         Solaris section: (__gnat_adjust_context_for_raise): New function.
6777         Implementation of the machine context adjustments to perform prior to
6778         raise from a signal handler. Version for both sparc and x86.
6779         (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
6780         (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
6781         prior to raising as expected for any handler, before possible nested
6782         faults to make sure all the contexts in a chain have been adjusted by
6783         the time we propagate.
6784
6785 2007-08-14  Pascal Obry  <obry@adacore.com>
6786
6787         * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
6788         (SYSTEM_INFO): New record.
6789         (SetThreadIdealProcessor): New imported routine needed for supporting
6790         task_info pragma on Windows.
6791
6792         * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
6793         info can be applied to the current host.
6794         (Create_Task): Set the ideal processor if information is present.
6795
6796         * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
6797         a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
6798
6799 2007-08-14  Olivier Hainque  <hainque@adacore.com>
6800
6801         * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
6802         stack size and initial stack pointer value for a given task.
6803         (Enter_Task): Get the stack attributes of the task we are entering and
6804         let the stack checking engine know about them.
6805
6806         * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
6807         Let the stack-checking engine know about the initial sp value and stack
6808         size associated with the current task.
6809         (Set_Stack_Info): If a stack base has been notified for the current
6810         task, honor it. Fallback to the previous less accurate method otherwise.
6811
6812         * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
6813
6814 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
6815
6816         * sem_ch10.adb: Create a limited view of an incomplete type, to make
6817         treatment of limited views uniform for all visible declarations in a
6818         limited_withed package.
6819         Set flag indicating that a subprogram body for a child unit has a
6820         generated spec.
6821         (Analyze_Compilation_Unit): If unit is a subprogram body that has no
6822         separate declaration, remove the unit name from visibility after
6823         compilation, so that environment is clean for subsequent compilations.
6824         (Install_Limited_Context_Clauses): Do not install a
6825         limited_private_with_clause unless the current unit is a body or a
6826         private child unit.
6827         (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
6828         in the same fashion.
6829         (Install_Limited_Withed_Unit): Do not install a limited with clause if
6830         it applies to the declaration of the current package body.
6831         (Remove_Private_With_Clauses): If there is a regular with_clause for
6832         the unit, delete Private_With_Clause from context, to prevent improper
6833         hiding when processing subsequent nested packages and instantiations.
6834
6835 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
6836
6837         * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
6838         dir/file, device:/dir/file, and device:drive_letter:/dir/file as
6839         representing absolute path names.
6840         __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
6841
6842         * cstreams.c (__gnat_full_name for VxWorks): Use
6843         __gnat_is_absolute_path to detect whether we need to add the current
6844         directory to normalize the path.
6845
6846 2007-08-14  Javier Miranda  <miranda@adacore.com>
6847
6848         * a-tags.ads, 
6849         a-tags.adb (Displace): Associate a message with the raised CE
6850         exception.
6851         (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
6852         To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
6853         To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
6854         spec.
6855         (Default_Prim_Op_Count): Removed.
6856         (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
6857         Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
6858         Remove pragma Inline_Always.
6859
6860         * rtsfind.ads (Default_Prim_Op_Count): Removed
6861         (Max_Predef_Prims): New entity
6862         (RE_Expanded_Name): Removed
6863         (RE_HT_Link): Removed
6864         (RE_Iface_Tag): Remmoved
6865         (RE_Ifaces_Table): Removed
6866         (RE_Interfaces_Array): Removed
6867         (RE_Interface_Data_Element): Removed
6868         (RE_Nb_Ifaces): Removed
6869         (RE_RC_Offset): Removed
6870         (RE_Static_Offset_To_Top): Removed
6871
6872         * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
6873         formal.
6874         (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
6875         Prim_Op_Count by Max_Predef_Prims.
6876
6877 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6878             Vincent Celier  <celier@adacore.com>
6879
6880         * binde.adb (Elab_All_Links): Remove unnecessary call to
6881         Generic_Separately_Compiled (if a unit satisfies this predicate, there
6882         won't be an associated Afile).
6883         (Elab_All_Links): Fail if a referenced unit cannot be found
6884
6885         * bindgen.adb: 
6886         Fix comments in bindgen regarding consistency checks done in Bcheck:
6887         the checks are made across units within a partition, not across several
6888         partitions.
6889         Fix generation of C binder file for VxWorks.
6890
6891         * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
6892         Generic_May_Lack_ALI, more descriptive of the current use of the
6893         predicate, and update documentation.
6894
6895         * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
6896         reorganization and documentation update for the case of predefined
6897         library generics (for which we do not reference an Afile).
6898
6899 2007-08-14  Robert Dewar  <dewar@adacore.com>
6900
6901         * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
6902         s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
6903         s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
6904         s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
6905         s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
6906         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
6907         s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
6908         s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
6909         exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
6910         s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
6911         s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
6912         a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
6913         s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
6914         g-altcon.adb: Minor reformatting
6915
6916         ada-tree.h: Delete empty line.
6917
6918         ali.ads: Minor reformatting
6919         Clarification of comments.
6920         Minor spelling correction
6921
6922         * exp_dbug.adb: Add Warnings Off to suppress new warning
6923
6924         * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6925         formal
6926
6927         * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
6928         value
6929
6930         * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
6931
6932         * a-textio.ads: Reorder the standard input/output/error declarations
6933         for consistency.
6934
6935         * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
6936
6937         * par-ch2.adb: Recognize RM specially in errout
6938         Change 'R'M to RM in all error messages
6939
6940         * scng.adb: Recognize RM specially in errout
6941
6942         * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
6943         N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
6944
6945         * s-direio.adb: Add missing routine header box.
6946
6947         * sem_attr.ads: Add ??? comments
6948
6949         * sem_eval.adb: Recognize RM specially in errout
6950         Change 'R'M to RM in all error messages
6951
6952         * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
6953
6954         * s-tasinf.ads: Fix minor comment typo.
6955
6956         * a-cihama.adb: Minor comment addition
6957
6958         * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
6959         formal
6960
6961         * s-tasinf-tru64.ads: Fix minor comment typo.
6962
6963         * itypes.ads: Comment update.
6964
6965         * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
6966         anymore.
6967
6968         * argv.c: Added protection against null gnat_argv and gnat_envp.
6969
6970         * bcheck.adb (Check_Consistency): Use correct markup character ({) in
6971         warning message when Tolerate_Consistency_Errors is True.
6972
6973         * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
6974         Any_Id, as this subprogram is only applicable to *type* entities (it
6975         sets RM_Size). Instead initialize just Esize and Alignment.
6976
6977 2007-08-14  Bob Duff  <duff@adacore.com>
6978
6979         * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads, 
6980         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
6981         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads, 
6982         a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
6983         a-coorse.ads (Next): Applied pragma Inline.
6984         Make all Containers packages Remote_Types (unless they are already
6985         Pure).
6986         (Previous): applied pragma Inline
6987         (Elements_Type): is now a record instead of an array
6988
6989 2007-08-14  Thomas Quinot  <quinot@adacore.com>
6990
6991         * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
6992         of Set_Item.
6993         (Set_Item): When the new item is an element of the currently allocated
6994         table passed by reference, save a copy on the stack if we're going
6995         to reallocate. Also, in Table.Set_Item, make sure we test the proper
6996         variable to determine whether to call Set_Last.
6997
6998         * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
6999         symbols-vms.adb, symbols-processing-vms-alpha.adb,
7000         symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
7001         some occurrences of the pattern
7002            T.Increment_Last;
7003            T.Table (T.Last) := Value;
7004         with a cleaner call to
7005            T.Append (Value);
7006
7007 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7008             Gary Dismukes  <dismukes@adacore.com>
7009             Thomas Quinot  <quinot@adacore.com>
7010
7011         * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
7012         derived type with interface progenitors use the analyzed formal as the
7013         parent of the actual, to create renamings for all the inherited
7014         operations in Derive_Subprograms.
7015         (Collect_Previous_Instances): new procedure within of
7016         Load_Parent_Of_Generic, to instantiate all bodies in the compilation
7017         unit being loaded, to ensure that the generation of global symbols is
7018         consistent in different compilation modes.
7019         (Is_Tagged_Ancestor): New function testing the ancestor relation that
7020         takes progenitor types into account.
7021         (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
7022         traversing over the primitives of the formal and actual types to locate
7023         any abstract subprograms of the actual type that correspond to a
7024         nonabstract subprogram of the formal type's ancestor type(s), and issue
7025         an error if such is found.
7026         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
7027         Instantiate_Package_Body, Instantiate_Subprogram_Body):
7028         Remove bogus guard around calls to Inherit_Context.
7029         (Reset_Entity): If the entity is the selector of a selected component
7030         that denotes a named number, propagate constant-folding to the generic
7031         template only if the named number is global to the generic unit.
7032         (Set_Instance_Env): Only reset the compilation switches when compiling
7033         a predefined or internal unit.
7034
7035 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7036
7037         * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
7038         parameter to determine whether operation applies to the prefix.
7039         (Complete_Object_Operation): If actual has an access type and
7040         controlling formal is not an in_parameter, reject the actual if it is
7041         an access_to_constant type.
7042         (Try_Primitive_Operation): If the type of the prefix is a formal tagged
7043         type, the candidate operations are found in the scope of declaration of
7044         the type, because the type has no primitive subprograms.
7045         (Analyze_Selected_Component): If prefix is class-wide, and root type is
7046         a private extension, only examine visible components before trying to
7047         analyze as a prefixed call.
7048         Change Entity_List to Type_To_Use, for better readability.
7049         (Has_Fixed_Op): Use base type when checking whether the type of an
7050         operator has a user-defined multiplication/division
7051         (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
7052         user-defined operators are available for fixed-point types.
7053
7054 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7055             Ed Schonberg  <schonberg@adacore.com>
7056
7057         * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
7058         formal At_Any_Place indicating, when True, that we want to test for
7059         availability of the stream attribute at any place (as opposed to the
7060         current visibility context only).
7061         (Missing_Read_Write_Attributes): A stream attribute is missing for the
7062         purpose of enforcing E.2.2(8) only if it is not available at any place.
7063         Take into account the Ada2005 pragma Has_Preelaborable_Initialization
7064         when checking the legality of an extension aggregate in a preelaborable
7065         package. Treat the literal null as a valid default expression in a
7066         component declaration for a type with preelaborable initialization.
7067         A limited interface is a legal progenitor for the designated type of a
7068         remote access to class-wide type.
7069
7070 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7071             Ed Schonberg  <schonberg@adacore.com>
7072
7073         * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
7074         reference): Use correct entity as denoted entity for the selector of
7075         the rewritten node.
7076         (Find_Direct_Name): Add comment about Generate_Reference incorrectly
7077         setting the Referenced_As_LHS flag for entities that are implicitly
7078         dereferenced.
7079         (Find_Type): If the type is an internally generated incomplete type,
7080         mark the full view as referenced, to prevent spurious warnings.
7081         (Find_Selected_Component, Has_Components): Handle properly non-limited
7082         views that are themselves incomplete types.
7083         Handle interfaces visible through limited-with clauses.
7084         (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
7085         subprogram generic actual for which we have generated a renaming.
7086         Warn when the renaming introduces a homonym of
7087         the renamed entity, and the renamed entity is directly visible.
7088
7089 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7090             Hristian Kirtchev  <kirtchev@adacore.com>
7091
7092         * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
7093         appear in the subtree to the current allocator if it is not a static
7094         coextension.
7095         (Resolve_Allocator): Perform cleanup if resolution has determined that
7096         the allocator is not a coextension.
7097         (Resolve): Skip an interpretation hidden by an abstract operator only
7098         when the type of the interpretation matches that of the context.
7099         (Resolve): When looping through all possible interpretations of a node,
7100         do not consider those that are hidden by abstract operators.
7101         (Resolve_Actuals): When verifying that an access to class-wide object
7102         is an actual  for a controlling formal, ignore anonymous access to
7103         subprograms whose return type is an access to class_wide type.
7104         (Resolve_Slice): If the prefix of the slice is a selected component
7105         whose type depends on discriminants, build its actual subtype before
7106         applying range checks on the bounds of the slice.
7107         (Valid_Conversion): In an instance or inlined body, compare root types,
7108         to prevent anomalies between private and public views.
7109         (Resolve): Improve error message for ambiguous fixed multiplication
7110         expressions that involve universal_fixed multiplying operations.
7111
7112 2007-08-14  Javier Miranda  <miranda@adacore.com>
7113             Hristian Kirtchev  <kirtchev@adacore.com>
7114
7115         * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
7116         location to allow the correct generation of errors in case of
7117         restrictions applied to the expanded code.
7118         (Expand_Entry_Barrier): Remove all generated renamings for a barrier
7119         function if the condition does not reference them.
7120         (Expand_Entry_Body_Declarations): Mark the index constant as having a
7121         valid value.
7122
7123 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7124             Pablo Oliveira  <oliveira@adacore.com>
7125
7126         * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
7127         typecode parameters for a union (in a variant record), remove
7128         extraneous layer of Any wrapping for member label.
7129         (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
7130         elabration statements, register the package with the name server
7131         at the beginning, not at the end, of the elaboration statements so
7132         that they can create remote access to subprogram values that designate
7133         remote subprograms from the package.
7134
7135 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7136
7137         * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
7138         values to compute the number of seconds since the Unix Epoc in order to
7139         account for Daylight Savings Time. Perform special processing for dates
7140         that are earlier than the Unix Epoc to obtain a negative number.
7141
7142 2007-08-14  Emmanuel Briot  <briot@adacore.com>
7143
7144         * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
7145         switches.
7146
7147 2007-08-14  Eric Botcazou  <ebotcazou@adacore.com>
7148
7149         * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
7150         binder-generated file is not in Ada.
7151         Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
7152         recorded in the ALI file.
7153         Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
7154
7155 2007-08-14  Vincent Celier  <celier@adacore.com>
7156
7157         * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
7158         (Output_Source): Do nothing if parameter is No_Sdep_Id
7159
7160         * make.adb (Gnatmake): Do not rebuild an archive simply because a
7161         shared library it imports has a later time stamp.
7162         (Check): Resolve the symbolic links in the path name of the object
7163         directory.
7164         Check that the ALI file is in the correct object directory
7165         Check if a file name does not correspond to the mapping of units
7166         to file names.
7167         (Display_Version): New procedure
7168         (Initialize): Process switches --version and --help
7169         Use type Path_Name_Type for path name
7170
7171 2007-08-14  Paul Hilfinger  <hilfinger@adacore.com>
7172
7173         * impunit.adb: Re-organize System.Random_Numbers and
7174         GNAT.Random_Numbers and add to builds.
7175
7176         * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
7177
7178         * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
7179
7180         * a-assert.ads, a-assert.adb: New files.
7181
7182 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
7183
7184         * layout.adb (Layout_Type): In the case of access-to-subprogram types,
7185         if AAMP_On_Target is True, then the size of the type encompasses two
7186         addresses (a static link and a subprogram address), except in the case
7187         of library-level access types.
7188
7189 2007-08-14  Vincent Celier  <celier@adacore.com>
7190
7191         * output.ads, output.adb (Write_Eol): Remove trailing spaces before
7192         writing the line.
7193         (Write_Eol_Keep_Blanks): New procedure to write a line, including
7194         possible trailing spaces.
7195         (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
7196
7197 2007-08-14  Javier Miranda  <miranda@adacore.com>
7198
7199         * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
7200         null-excluding access types.
7201
7202 2007-08-14  Javier Miranda  <miranda@adacore.com>
7203
7204         * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
7205         that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
7206         of private types add missing check on matching interfaces in the
7207         partial and full declarations.
7208         (Analyze_Protected_Type): Code cleanup.
7209         (Analyze_Task_Type): Code cleanup.
7210
7211 2007-08-14  Javier Miranda  <miranda@adacore.com>
7212
7213         * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
7214         generated interface thunk.
7215
7216 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7217
7218         * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
7219         obsolescent warning on application of 'Class to an incomplete type.
7220
7221         * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
7222         prevent obsolescent warning on application of 'Class to an incomplete
7223         type.
7224
7225 2007-08-14  Pascal Obry  <obry@adacore.com>
7226
7227         * s-fileio.adb (Is_Open): Add check for usability of the underlying
7228         file stream.
7229
7230 2007-08-14  Cyrille Comar  <comar@adacore.com>
7231
7232         * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
7233         since it is potentially used in cases implying double finalization of
7234         the same object.
7235
7236 2007-08-14  Jose Ruiz  <ruiz@adacore.com>
7237
7238         * s-tasini.adb (Get_Stack_Info): Move this function to
7239         System.Soft_Links.Tasking because it is common to the full and the
7240         restricted run times.
7241         (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
7242         in SSL.Tasking.Init_Tasking_Soft_Links.
7243
7244         * s-solita.adb (Get_Stack_Info): Function moved from
7245         System.Tasking.Initialization because it is common to the full and the
7246         restricted run times.
7247         (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
7248
7249 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7250
7251         * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
7252         s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
7253         (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
7254         parameter.
7255
7256         * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
7257         guard to 12K.
7258
7259 2007-08-14  Gary Dismukes  <dismukes@adacore.com>
7260
7261         * s-veboop.adb (SU): New named number initialized to
7262         System.Storage_Unit.
7263         (True_Val): The initialization expression is revised to use SU (=
7264         Storage_Unit) rather than assuming 8 for the component size of an
7265         unpacked Boolean array.
7266
7267 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7268
7269         * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
7270
7271         * tb-ivms.c: New file.
7272
7273         * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
7274
7275 2007-08-14  Geert Bosch  <bosch@adacore.com>
7276
7277         * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
7278         s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
7279         Add required linker pragmas for automatically linking with the gnalasup
7280         linear algebra support library, and the systems math library.
7281         Rename cdot to cdotu and zdot to zdotu.
7282         Update header comment to describe purpose of package.
7283
7284 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7285
7286         * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
7287         an explicitly specified Associated_Final_Chain, use that list.
7288         (Expand_N_Package_Body): Build dispatch tables of library level tagged
7289         types.
7290         (Expand_N_Package_Declaration): Build dispatch tables of library level
7291         tagged types. Minor code cleanup.
7292
7293 2007-08-14  Vincent Celier  <celier@adacore.com>
7294
7295         * gnatchop.adb (Terminate_Program): Remove exception and use
7296         Types.Terminate_Program instead.
7297
7298         * osint.ads, osint.adb (Current_Exit_Status): New global variable
7299         (Find_Program_Name): Added protection against empty name.
7300         (OS_Exit_Through_Exception): New procedure
7301
7302         * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
7303         (OS_Exit_Default): New procedure that contains the previous
7304         implementation of procedure OS_Exit.
7305         (Final_Value): Remove obsolete Interix stuff.
7306
7307 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7308
7309         * g-socket.ads: Reorganize example code so that it also works on
7310         Windows XP.
7311
7312 2007-08-14  Tristan Gingold  <gingold@adacore.com>
7313
7314         * g-trasym.ads: AIX now supports symbolic backtraces.
7315
7316 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7317
7318         * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
7319         units being loaded to detect circularities. A circularity may be
7320         present even if the current chain of pending units to load starts from
7321         a limited_with_clause.
7322
7323         * lib-load.ads: Change profile of Load_Unit to use a with_clause
7324         rather than a boolean flag, in order to detect circularities in
7325         with_clauses.
7326
7327         * par-load.adb: Use current with_clause in calls to Load_Unit, rather
7328         than propagating the From_Limited_With flag, in order to handle
7329         properly circularities involving with_clauses.
7330
7331 2007-08-14  Nicolas Setton  <setton@adacore.com>
7332
7333         * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
7334         warnings.
7335
7336 2007-08-14  Arnaud Charlet  <charlet@adacore.com>
7337
7338         * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
7339         to build for libgnala.
7340         libgnat: Add rules to build libgnala.a
7341         (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
7342         target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
7343         Add s-osinte-vxworks-kernel.adb to the target pairs of the
7344         kernel run-time lib for VxWorks 6, which would provide a different
7345         implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
7346         x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
7347         running ZCX by default.
7348         Add g-sttsne-locking to LynxOS version.
7349         Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
7350         On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
7351
7352         * system-darwin-x86.ads: New file.
7353
7354         * Make-lang.in: Delete files before copying onto them, so if they are
7355         read-only, the copy won't fail.
7356         Update dependencies
7357
7358 2007-08-14  Pascal Obry  <obry@adacore.com>
7359
7360         * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
7361         naming scheme.
7362
7363 2007-08-14  Vincent Celier  <celier@adacore.com>
7364
7365         * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
7366         (Gcc): Initialize Gcc_Name at the first call
7367
7368 2007-08-14  Ed Schonberg  <schonberg@adacore.com>
7369
7370         * sem_ch7.adb (Analyze_Package_Specification): Do not install private
7371         with_clauses of the enclosing unit when analyzing the package
7372         specification of a nested instance.
7373
7374 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7375
7376         * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
7377         (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
7378         Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
7379         layout of N_Allocator.
7380
7381 2007-08-14  Thomas Quinot  <quinot@adacore.com>
7382
7383         * rtsfind.adb (Check_RPC): Add PCS version check.
7384
7385         * gnatvsn.ads, gnatvsn.adb: Add PCS version.
7386         (Gnat_Free_Software): New function.
7387
7388         * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
7389         the PCS_Version value from s-parint, used to check that it is consistent
7390         with what exp_dist expects.
7391
7392         * s-parint.ads (PCS_Version): New entity for checking consistency
7393         between exp_dist and PCS.
7394
7395         * gen-soccon.c: (SO_REUSEPORT): New constant.
7396
7397 2007-08-14  Hristian Kirtchev  <kirtchev@adacore.com>
7398
7399         * a-calfor.adb (Image (Duration; Boolean)): Change type of local
7400         variable Sub_Second to Duration in order to accomodate a larger range
7401         of arithmetic operations.
7402
7403 2007-08-14  Bob Duff  <duff@adacore.com>
7404
7405         * g-sttsne-locking.ads: Move comments from spec to body.
7406         * g-sttsne-locking.adb: Move comments from spec to body.
7407         * g-sttsne-vxworks.ads: Removed.
7408         * g-sttsne-vxworks.adb: Removed.
7409
7410 2007-08-11  Ian Lance Taylor  <iant@google.com>
7411
7412         * misc.c (gnat_get_alias_set): Change return type to
7413         alias_set_type.
7414
7415 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7416
7417         * decl.c, utils2.c: Fix whitespace in last change.
7418
7419 2007-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7420
7421         * decl.c (compare_field_bitpos): Constify.
7422         * utils2.c (compare_elmt_bitpos): Likewise.
7423
7424 2007-07-27  Aurelien Jarno  <aurelien@aurel32.net>
7425
7426         * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by 
7427         anonymous access type.
7428         (pthread_sigmask): Now take an access sigset_t.
7429
7430 2007-07-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
7431
7432         * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
7433         
7434 2007-06-21  Eric Botcazou  <ebotcazou@adacore.com>
7435
7436         PR tree-optimization/25737
7437         * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
7438
7439 2007-06-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7440
7441         * trans.c (Attribute_to_gnu): When subtracting an
7442         offset from a pointer, use POINTER_PLUS_EXPR with
7443         NEGATE_EXPR instead of MINUS_EXPR.
7444         (gnat_to_gnu): Likewise.
7445         * utils.c (convert): When converting between
7446         thin pointers, use POINTER_PLUS_EXPR and sizetype
7447         for the offset.
7448         * utils2.c (known_alignment): POINTER_PLUS_EXPR
7449         have the same semantics as PLUS_EXPR for alignment.
7450         (build_binary_op): Add support for the semantics of
7451         POINTER_PLUS_EXPR's operands.
7452         When adding an offset to a pointer, use POINTER_PLUS_EXPR.
7453
7454 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
7455
7456         * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
7457         of get_signed_or_unsigned_type.
7458         * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
7459
7460 2007-06-11  Bob Duff  <duff@adacore.com>
7461             Thomas Quinot  <quinot@adacore.com>
7462
7463         * g-stsifd-sockets.adb (Create): Work around strange behavior of
7464         'bind' on windows that causes 'connect' to fail intermittently, by
7465         retrying the 'bind'.
7466         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7467
7468 2007-06-10  Duncan Sands  <baldrick@free.fr>
7469
7470         * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
7471         than to void, for the fields when making a new fat pointer type.
7472         (gnat_substitute_in_type): Now substitute_in_type.
7473         * gigi.h (gnat_substitute_in_type): Likewise.  Adjust recursive calls.
7474         * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
7475         * utils.c (update_pointer_to): Update fat pointers by updating the
7476         dummy node pointers used for the fields.
7477
7478 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7479             Bob Duff  <duff@adacore.com>
7480
7481         * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
7482         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, 
7483         g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads:  Add new
7484         constant Thread_Blocking_IO, always True by default, set False
7485         on a per-runtime basis.
7486         (Need_Netdb_Buffer): New constant.
7487
7488         * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
7489         g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
7490         files.
7491
7492         * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
7493         g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
7494         Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
7495         child package Task_Safe_NetDB
7496         (Host_Error_Messages): Add stub body.
7497         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7498
7499         * g-soccon-mingw.ads: Add Windows-specific constants.
7500         (Need_Netdb_Buffer): New constant.
7501         (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
7502         wrapper and import inet_addr(3) from the standard sockets library
7503         directly instead.
7504         (In_Addr): Add alignment clause.
7505         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
7506
7507 2007-06-06  Robert Dewar  <dewar@adacore.com>
7508
7509         * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7510         s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
7511         s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
7512         s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
7513         s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
7514         s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
7515         a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
7516         a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
7517         a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
7518         g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
7519         g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
7520         i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
7521         s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
7522         s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
7523         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
7524         s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
7525         s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
7526         s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
7527         s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
7528         s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
7529         s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
7530         s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
7531         s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
7532         s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
7533         s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
7534         s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
7535         s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
7536         s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
7537         s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
7538         s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
7539         s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
7540         a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
7541         Unchecked_* by Ada.Unchecked_*
7542
7543 2007-06-06  Robert Dewar  <dewar@adacore.com>
7544
7545         * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
7546         s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
7547         g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
7548         output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
7549         g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
7550         a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
7551
7552         * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
7553         s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
7554         s-tasloc.adb, s-tasloc.ads: New files.
7555
7556 2007-06-06  Bob Duff  <duff@adacore.com>
7557
7558         * g-expect-vms.adb: 
7559         (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
7560         * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
7561         (Send_Signal, Close): Raise Invalid_Process if the process id is
7562         invalid.
7563         (Pattern_Matcher_Access): Is now a general access type to be able to
7564         use aliased string.
7565
7566 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7567             Arnaud Charlet  <charlet@adacore.com>
7568
7569         * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
7570         (SIGEMT is now used instead of SIGTERM on AIX).
7571
7572         * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
7573         (Time_Slice_Supported): Set to True.
7574         Use SIGEMT instead of SIGTERM as SIGADAABORT.
7575
7576 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
7577
7578         * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
7579         (Time, Time)): Use To_Relative_Time rather than manual calculation to
7580         express the bounds of Duration as Time. Raise Time_Error when the
7581         result is greater or equal to the higher bound of Duration (on the
7582         margin case).
7583         ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
7584         Ada_High_And_Leaps.
7585         ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
7586         Ada_High_And_Leaps.
7587         ("-" (Time, Time)): Reorder code.
7588         (All_Leap_Seconds): Removed.
7589         (Arithmetic_Operations.Add): Remove sign related kludge.
7590         (Arithmetic_Operations.Difference): Control the leaps seconds processing
7591         with flag Leap_Support.
7592         (Arithmetic_Operations.Subtract): Remove sign related kludge.
7593         (Check_Within_Time_Bounds): New procedure.
7594         (Clock): Control the leap seconds processing with flag Leap_Support.
7595         (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
7596         (Formatting_Operations.Split): Control the leap seconds processing with
7597         flag Leap_Support.
7598         (Formatting_Operations.Time_Of): Control the leaps seconds processing
7599         with flag Leap_Support. Adjust the year, month and day (if applicable)
7600         when the value of day seconds designates a new day.
7601         (Split): Use parameter associations for better readability. Integrate
7602         flag Is_Ada_05.
7603         (Time_Of): Use parameter associations for better readability. Integrate
7604         flag Is_Ada_05.
7605
7606         * a-calfor.adb (Split): Use parameter associations for better
7607         readability. Integrate flag Is_Ada_05.
7608         (Time_Of): Remove flag Leap_Checks. Use parameter associations for
7609         better readability. Integrate flag Is_Ada_05.
7610
7611 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7612
7613         * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb, 
7614         s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb, 
7615         s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb, 
7616         s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads, 
7617         s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb, 
7618         s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb, 
7619         s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads, 
7620         s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads, 
7621         s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads, 
7622         s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
7623         s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
7624         time when entering this routine to detect a backward clock setting
7625         (manual setting or DST adjustment), to avoid waiting for a longer delay
7626         than needed.
7627         (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
7628         Remove handling of deferred priority change, and replace by setting the
7629         task priority directly, as required by AI-188.
7630         Update comments.
7631         (Max_Task_Image_Length): New constant.
7632         Replace Warnings (Off) by Unreferenced pragma, cleaner.
7633         (Dynamic_Priority_Support): Removed, no longer needed.
7634         (Poll_Base_Priority_Change): Ditto.
7635         (Set_Ceiling): Add this procedure to change the ceiling priority
7636         associated to a lock. This is a dummy implementation because dynamic
7637         priority ceilings are not supported by the underlying system.
7638
7639         * a-dynpri.adb (Set_Priority): Take into account case where Target is
7640         accepting a RV with its priority boosted.
7641         Remove handling of deferred priority change, and replace by setting the
7642         task priority directly, as required by AI-188.
7643
7644         * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
7645         Succeeded = True.
7646         Remove handling of deferred priority change, and replace by setting the
7647         task priority directly, as required by AI-188.
7648         (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
7649         of Self_Id earlier.
7650
7651         * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
7652         (Poll_Base_Priority_Change): Removed.
7653         Code clean up: use SSL.Current_Target_Exception.
7654
7655         * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
7656         to run as this is a potentially dispatching point.
7657         (Call_Synchronous): Use Local_Defer_Abort.
7658         (Callable): Relax assertion.
7659         (Selective_Wait): Relax assertion in case abort is not allowed.
7660         Remove handling of deferred priority change, and replace by setting the
7661         task priority directly, as required by AI-188.
7662
7663         * s-tasuti.adb (Make_Passive): Adjust assertions.
7664         Remove handling of deferred priority change, and replace by setting the
7665         task priority directly, as required by AI-188.
7666
7667 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7668
7669         * system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
7670         system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads, 
7671         system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads, 
7672         system-vxworks-mips.ads, system-vxworks-alpha.ads, 
7673         system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads, 
7674         system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads, 
7675         system-interix.ads, system-linux-hppa.ads, system-tru64.ads, 
7676         system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads, 
7677         system-solaris-sparcv9.ads, system-vms.ads, system.ads,
7678         system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
7679         system-linux-ia64.ads: Document mapping between Ada and OS priorities.
7680         This patch changes the largest non-binary modulus from 2**31-1 to
7681         2**32-1.
7682         (Compiler_System_Version): Removed, no longer used.
7683         Clean up system files by removing flags only used on a single target.
7684         Also remove obsolete flags, only used during bootstrap from system.ads
7685         (Address): Add a pragma Preelaborable_Initialization.
7686
7687         * system-aix.ads:  Ditto.
7688         (GCC_ZCX_Support): Set to true.
7689         Update priority range on AIX and map Ada priorities to target
7690         priorities appropriately for different scheduling policies.
7691
7692         * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
7693
7694 2007-06-06  Vincent Celier  <celier@adacore.com>
7695
7696         * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
7697         mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
7698
7699         * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb, 
7700         mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb, 
7701         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, 
7702         mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb, 
7703         mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
7704         MLib.Tgt, containing the default versions of the exported subprograms.
7705         For each platform, create a specific version of the body of new child
7706         package MLib.Tgt.Specific that contains only the body of subprograms
7707         that are different from the default.
7708         (Archive_Builder_Append_Options): New function.
7709
7710 2007-06-06  Matthew Gingell  <gingell@adacore.com>
7711
7712         * s-osinte-aix.adb: Map Ada priorities to target priorities
7713         appropriately for different scheduling policies.
7714
7715 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
7716
7717         * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
7718         its C counterpart.
7719         Remove references to Unchecked_Conversion, and use Ada.xxx instead.
7720         Replace Unchecked_Conversion by Ada.Unchecked_Conversion. 
7721
7722 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
7723
7724         * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
7725         Noop on VMS, added for interface commonality.
7726
7727 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
7728             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7729             Olivier Hainque  <hainque@adacore.com>
7730
7731         * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
7732         renamed expression of a full renaming at toplevel.
7733         (gnat_to_gnu_entity, case object): If not defining, do not look inside
7734         the values the constant is initialized to if it is an N_Allocator.
7735         (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
7736         TYPE_SIZE_UNIT of inner types after the stride is elaborated.
7737         (make_aligning_type): Accept an extra ROOM argument for storage to be
7738         made available before the aligned field, and an extra BASE_ALIGN
7739         argument for callers to pass the alignment guaranteed to be honored for
7740         the whole aligning object. Avoid call to finish_record_type, which only
7741         interferes with the sizes we want to set.
7742         (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
7743         make_aligning_type for super-aligned objects on stack.
7744         (components_to_record): Pass the adjusted size of the type when creating
7745         fields in the qualified union for the variant part.
7746         (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
7747         (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
7748         packed array type.
7749         (maybe_pad_type): Set TYPE_USER_ALIGN.
7750         (make_aligning_type): Likewise.
7751         ALIGN argument is unsigned int.
7752         (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
7753         (gnat_to_gnu_param): Likewise, for parameters.
7754         (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
7755         if it is constant and stems from a function call.
7756         (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
7757         of the record is specified.  Adjust accordingly.
7758         (adjust_packed): New static function.
7759         (gnat_to_gnu_field): Use it to adjust the packedness setting.
7760         (components_to_record): Likewise.
7761         (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
7762         side-effects if the object is deemed constant.
7763         (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
7764         type instead of merely finalizing it.  Tidy.
7765         <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
7766         <E_Access_Type>: Likewise.
7767         (defer_debug_incomplete_list): Rename to defer_finalize_list.
7768         (defer_debug_level): Delete.
7769         (gnat_to_gnu_entity) <debug_deferred>: Likewise
7770         <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
7771         type.
7772         <E_Record_Type>: Do not explicitly defer finalizing the type.
7773         Adjust for write_record_type_debug_info renaming.
7774         <E_Subprogram_Type>: Likewise.
7775         Finalize deferred types right after deferred incomplete types are
7776         expanded.
7777         (rest_of_type_decl_compilation): New global function.
7778         (components_to_record): Rename defer_debug parameter to do_not_finalize.
7779         (components_to_record): Propagate the packedness to the fields of the
7780         qualified union type if there is a variant part.
7781         (gnat_to_gnu_entity) <E_Array_Type>: Use new function
7782         instead of inline code to adjust the XUT field offsets.
7783         (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
7784         <E_Record_Subtype>: Do not let finish_record_type compute the sizes
7785         and write the debug info if the type derives from a discriminated one.
7786         (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
7787         <E_Array_Subtype>: Likewise.
7788         <E_String_Literal_Subtype>: Likewise.
7789         (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
7790         an alignment clause.
7791         (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
7792         before giving warning.
7793         (prepend_one_attribute_to): New function, helper to prepend an attribute
7794         to an attribute list.
7795         (gnat_to_gnu_entity) <E_Procedure>: Use it.
7796         (prepend_attributes): Likewise.
7797         (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
7798         <E_Array_Type>: Declare the padding type for the element type, if any.
7799         <E_Array_Subtype>: Likewise.
7800         (defer_limited_with): New variable.
7801         (Gigi_Equivalent_Type): New function.
7802         (gnat_to_gnu_entity): Use it at start and use result throughout.
7803         (gnat_to_gnu_entity, case E_Access_Type): Rework to use
7804         Gigi_Equivalent_Type, support Limited_With, allow two levels of
7805         indirection, precompute if unconstrained array to simplify logic, and
7806         use defer_limited_with to defer elaboration of some types from limited
7807         with.
7808         (finalize_from_with_types): New function.
7809
7810 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
7811             Eric Botcazou  <ebotcazou@adacore.com>
7812             Tristan Gingold  <gingold@adacore.com>
7813             Olivier Hainque  <hainque@adacore.com>
7814
7815         * trans.c (Identifier_to_gnu): Change test for deferred constant by
7816         adding guard that the entity is an E_Constant before testing presence
7817         of Full_view (and remove unnecessary test that entity is not a type).
7818         For a CONST_DECL used by reference, manually retrieve
7819         the DECL_INITIAL.  Do not invoke fold in the other DECL_P cases either.
7820         (struct language_function): Move from utils.c to here.
7821         (struct parm_attr): New structure.
7822         (parm_attr, parm_attr vector, parm_attr GC vector): New types.
7823         (f_parm_attr_cache): New macro.
7824         (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
7825         expressions for the 'First, 'Last and 'Length attributes of the
7826         unconstrained array IN parameters.
7827         (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
7828         Allocate the information structure for the function earlier, as well
7829         as the language-specific part.
7830         If the parameter attributes cache has been populated, evaluate the
7831         cached expressions on entry.
7832         (takes_address): Add OPERAND_TYPE parameter.  Handle N_Function_Call,
7833         N_Procedure_Call_Statement and N_Indexed_Component.
7834         (Pragma_to_gnu): Translate inspection_point to an asm statement
7835         containaing a comment and a reference to the object (either its address
7836         for BLKmode or its value).
7837         (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
7838         to go to DECL_INITIAL. Together with the size constraint relaxation
7839         in create_var_decl, enlarges the set of situations in which an
7840         identifier may be used as an initializer without implying elaboration
7841         code.
7842         (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
7843         DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
7844         node.
7845         (maybe_stabilize_reference): Remove lvalues_only parameter.
7846         (gnat_stabilize_reference): Adjust for above change.
7847         (gnat_to_gnu): Do not set location information on the result
7848         if it is a reference.
7849         (add_cleanup): Add gnat_node parameter and set the location of the
7850         cleanup to it.
7851         (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
7852         (Exception_Handler_to_gnu_zcx): Likewise.
7853         (gigi): Remove the cgraph node if the elaboration procedure is empty.
7854         (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
7855         the former right after the latter.
7856         (start_stmt_group): Make global.
7857         (end_stmt_group): Likewise.
7858         (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
7859         vars.
7860         (gnu_program_error_label_stack): Likewise.
7861         (gigi): Initialize them.
7862         (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
7863         (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
7864         New cases.
7865         (push_exception_label_stack): New function.
7866         (takes_address): New function.
7867
7868         * utils.c (struct language_function): Move to trans.c from here.
7869         (unchecked_convert): Do not wrap up integer constants in
7870         VIEW_CONVERT_EXPRs.
7871         (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
7872         the latter for aggregate types, unexpected by later passes, and relax an
7873         arbitrary size constraint on the former.
7874         (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
7875         to compare the sizes.
7876         (convert_vms_descriptor): When converting to a fat pointer type, be
7877         prepared for a S descriptor at runtime in spite of a SB specification.
7878         (shift_unc_components_for_thin_pointers): New function.
7879         (write_record_type_debug_info): For variable-sized fields, cap the
7880         alignment of the pointer to the computed alignment.
7881         (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
7882         If REP_LEVEL is 2, do not compute the sizes.
7883         (build_vms_descriptor): Adjust for new prototype of finish_record_type.
7884         (build_unc_object_type): Likewise.
7885         (declare_debug_type): New function.
7886
7887         * ada-tree.def: USE_STMT: removed (not emitted anymore).
7888
7889         * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
7890         no statement is expandable anymore.
7891         (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
7892         (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
7893         when the user requested it explicitely.
7894         (gnat_post_options): By default, set flag_eliminate_unused_debug_types
7895         to 0 for Ada.
7896         (get_alias_set): Return alias set 0 for a type if
7897         TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
7898
7899         * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
7900         (DECL_FUNCTION_STUB): New accessor macro.
7901         (SET_DECL_FUNCTION_STUB): New setter macro.
7902
7903         * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
7904
7905         * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
7906         declarations.
7907
7908 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
7909
7910         * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
7911         Rename to Abort_Task_Interrupt to be able to keep the same interface
7912         as the rest of the targets.
7913
7914         * s-osinte-vxworks.ads s-osinte-vxworks.adb
7915         (To_VxWorks_Priority): Remove explicit "in" mode indicator
7916
7917         * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
7918         New files.
7919
7920 2007-06-06  Robert Dewar  <dewar@adacore.com>
7921
7922         * a-chahan.ads: Remove obsolescent pragmas
7923
7924         * a-chlat1.ads: Minor reformatting
7925
7926 2007-06-06  Robert Dewar  <dewar@adacore.com>
7927
7928         * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
7929         for Errout
7930
7931         * errout.adb: New Finalize/Compilation_Errors/Output_Messages
7932         implementation
7933
7934         * errout.ads (Finalize): Changed interface
7935         (Output_Messages): New procedure
7936         (Compilation_Errors): New Interface
7937
7938         * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
7939         Finalize/Output_Messages interface for Errout
7940         (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
7941         Errout.
7942
7943 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7944             Olivier Hainque  <hainque@adacore.com>
7945             Robert Dewar  <dewar@adacore.com>
7946
7947         * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
7948         check.
7949         (Raise_Current_Excep): Call Debug_Raise_Exception just before
7950         propagation starts, to let debuggers know about the event in a reliable
7951         fashion.
7952         (Local_Raise): Moved to System.Exceptions
7953         More convenient to have this as a separate unit
7954
7955         * s-except.adb, s-except.ads: New files.
7956
7957         * a-exextr.adb (Unhandled_Exception): Delete - replaced by
7958         Debug_Unhandled_Exception in System.Exceptions where it belongs
7959         together with a couple of other debug helpers.
7960         (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
7961         the former Unhandled_Exception.
7962
7963         * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
7964         (Warn_No_Exception_Propagation): New procedure
7965         (Warn_If_No_Propagation): Rewritten for new warning generation
7966         (Expand_Exception_Handlers): New warning generation
7967         (Expand_N_Raise_xxx_Error): Rewritten for new warnings
7968         (Add_Exception_Label): Use Special_Exception_Package_Used for test
7969         instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
7970         (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
7971         even if restriction is set (makes life easier in Check_Returns)
7972         (Expand_Local_Exception_Handlers): Follow renamed entity chain when
7973         checking exception identities.
7974         (Expand_Local_Exception_Handlers): Do not optimize when all others case
7975         (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
7976         block for handler (used by Check_Returns)
7977         (Expand_Local_Exception_Handlers): Local_Raise now takes an address
7978         (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
7979         remove all exception handlers when optimizing local raise statements.
7980         (Find_Local_Handler): Use Get_Renamed_Entity
7981         (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
7982         marked analyzed after expanding exception handlers, do not generate
7983         redundant cleanup actions, because they have been constructed already.
7984
7985 2007-06-06  Thomas Quinot  <quinot@adacore.com>
7986
7987         * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
7988         presence of this categorization pragma is mandated by the language.
7989         (Limited_Controlled): Add missing pragma Preelaborable_Initialization
7990         for this type.
7991
7992 2007-06-06  Vincent Celier  <celier@adacore.com>
7993             Robert Dewar  <dewar@adacore.com>
7994
7995         * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb, 
7996         butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads, 
7997         err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads, 
7998         fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads, 
7999         lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads, 
8000         makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb, 
8001         par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb, 
8002         prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads, 
8003         prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb, 
8004         sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb, 
8005         uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
8006         ali.ads, ali.adb: 
8007         Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
8008         package Namet. Make File_Name_Type and Unit_Name_Type types derived from
8009         Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
8010         Use variables of types File_Name_Type and Unit_Name_Type in error
8011         messages.
8012         (Get_Name): Add parameter Ignore_Special, and set it reading file name
8013         (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
8014         here.
8015         Define flags Flag217-Flag230 with associated subprograms
8016         (Flag_Word5): New record type.
8017         (Flag_Word5_Ptr): New access type.
8018         (To_Flag_Word5): New unchecked conversion.
8019         (To_Flag_Word5_Ptr): Likewise.
8020         (Flag216): New function.
8021         (Set_Flag216): New procedure.
8022
8023 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8024
8025         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
8026         instead of 'Size.
8027
8028         * a-stwifi.ads, a-stzfix.ads: Minor reformatting
8029
8030 2007-06-06  Javier Miranda  <miranda@adacore.com>
8031
8032         * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
8033         the package.
8034         (Object_Specific_Data_Array): This is now internal to the package.
8035         (Object_Specific_Data): This is now internal to the package.
8036         (Select_Specific_Data_Element): This is now internal to the package.
8037         (Select_Specific_Data_Array): This is now internal to the package.
8038         (Select_Specific_Data): This is now internal to the package.
8039         (Offset_To_Top_Function_Ptr): This is now public.
8040         (To_Offset_To_Top_Function_Ptr): Removed.
8041         (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
8042          local to subprogram Offset_To_Top.
8043         (Predefined_DT): Removed.
8044         (Typeinfo_Ptr): Removed.
8045         (OSD): This function is now internal to this package.
8046         (SSD): This function is now internal to this package.
8047         (DT): New function that displaces the pointer to the table of primitives
8048          to get access to the enclosing wrapper record.
8049         (IW_Membership): Code cleanup.
8050         (Offset_To_Top): Code cleanup.
8051         (Predefined_DT): Removed.
8052         (Register_Interface_Tag): Removed.
8053         (Set_Interface_Table): Removed.
8054         (Set_Offset_Index): Removed.
8055         (Set_Offset_To_Top): Code cleanup.
8056         (Set_OSD): Removed.
8057         (Set_Signature): Removed.
8058         (Set_SSD): Removed.
8059         (Set_Tagged_Kind): Removed.
8060         (Typeinfo_Ptr): Removed.
8061         (TSD): Removed.
8062         (Displace): Add missing check on null actual.
8063
8064         * exp_disp.ads, exp_disp.adb
8065         (Select_Expansion_Utilities): Removed.
8066         (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
8067         (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
8068         the interface requires a new parameter.
8069         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
8070         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
8071         calls to subprograms Build_T, Build_S, etc. by the corresponding code.
8072         Done to remove package Select_Expansion_Utilities.
8073         (Make_DT): New implementation for statically allocated dispatch tables.
8074         (Make_Secondary_DT): Moved to the scope of Make_DT.
8075         (Register_Primitive): Code cleanup plus incoporate the use of the new
8076         function DT_Address_Attribute.
8077         (Expand_Interface_Thunk): The profile of this subprogram has been
8078         changed to return the Thunk_Id and the corresponding code.
8079         (Fill_DT_Entry): Removed. Its functionality is now provided by
8080         subprogram Register_Primitive.
8081         (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
8082         subprogram Register_Primitive.
8083         (Register_Primitive): New subprogram that incorporates the previous
8084         functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
8085         (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
8086         was only required to call Make_DT_Access_Action, which is now removed.
8087         (Ada_Actions): Removed
8088         (Action_Is_Proc): Removed
8089         (Action_Nb_Arg): Removed
8090         Replace all the calls to Make_DT_Access_Action by direct calls to
8091         Make_Procedure_Call_Statement or Make_Function_Call.
8092         (Set_DTC_Entity_Value): New subprogram.
8093         (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
8094         (Expand_Interface_Thunk): Add missing support for primitives that are
8095         functions with a controlling result (case in which there is no need
8096         to generate the thunk).
8097
8098         * exp_atag.ads, exp_atag.adb
8099         (Build_DT): New subprogram that displaces the pointer to reference the
8100         base of the wrapper record.
8101         (Build_Typeinfo_Offset): Removed.
8102         (RTE_Tag_Node): Removed.
8103         (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
8104         (Build_Get_RC_Offset): Removed.
8105         (Build_Inherit_Predefined_Prims): Removed.
8106         (Build_Inherit_TSD: Removed.
8107         (Build_New_TSD): Removed.
8108         (Build_Set_External_Tag): Removed.
8109         (Build_Set_Predefined_Prim_Op_Address): Add documentation.
8110         (Build_Set_Prim_Op_Address): Add documentation.
8111         (Build_Set_TSD): Removed.
8112
8113         * rtsfind.ads, rtsfind.adb
8114         (Load_Fail): If load fails and we are not in configurable run-time
8115         mode, then raise Unrecoverable_Error.
8116         (Text_IO_Kludge): Generate an error message if a run-time library is
8117         not available in a given run-time (ie. zfp run-time).
8118         (RTE_Record_Component): Add code to check that the component we search
8119         for is not found in two records in the given run-time package.
8120         (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
8121         (RE_DT_Predef_Prims_Offset): New entity
8122         (RE_Static_Offset_To_Top): New entity
8123         (RE_HT_Link): New entity.
8124         (System_Address_Image): Addition of this run-time package.
8125         (RE_Address_Image): New entity.
8126         (RE_Abstract_Interface): Removed.
8127         (RE_Default_Prim_Op_Count): Removed.
8128         (RE_DT_Entry_Size): Removed.
8129         (RE_DT_Min_Prologue_Size): Removed.
8130         (RE_DT_Prologue_Size): Removed.
8131         (RE_Ifaces_Table_Ptr): Removed.
8132         (RE_Interface_Data_Ptr): Removed.
8133         (RE_Type_Specific_Data): Removed.
8134         (RE_Primary_DT): Removed.
8135         (RE_Register_Interface_Tag): Removed.
8136         (RE_Set_Offset_Index): Removed.
8137         (RE_Set_OSD): Removed.
8138         (RE_Set_SSD): Removed.
8139         (RE_Set_Signature): Removed.
8140         (RE_Set_Tagged_Kind): Removed.
8141         (RE_Address_Array): New entity.
8142         (RE_DT): New entity.
8143         (RE_Iface_Tag): New entity.
8144         (RE_Interfaces_Table): New entity.
8145         (RE_No_Dispatch_Table): New entity.
8146         (RE_NDT_Prims_Ptr): New entity.
8147         (RE_NDT_TSD): New entity.
8148         (RE_Num_Prims): New entity.
8149         (RE_Offset_To_Top_Function_Ptr): New entity.
8150         (RE_OSD_Table): New entity.
8151         (RE_OSD_Num_Prims): New entity.
8152         (RE_Predef_Prims): New entity
8153         (RE_Predef_Prims_Table_Ptr): New entity.
8154         (RE_Primary_DT): New entity.
8155         (RE_Signature): New entity.
8156         (RE_SSD): New entity.
8157         (RE_TSD): New entity.
8158         (RE_Type_Specific_Data): New entity.
8159         (RE_Tag_Kind): New entity.
8160
8161 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8162
8163         * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
8164         C imported variable.
8165         (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
8166         on entry.
8167
8168 2007-06-06  Robert Dewar  <dewar@adacore.com>
8169
8170         * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
8171         character
8172
8173 2007-06-06  Vincent Celier  <celier@adacore.com>
8174
8175         * a-tifiio.adb (Put, internal): For negative numbers, check that there
8176         is room for at least one digit and the minus sign.
8177         (Put.Put_Character): Never put a character outside of the range of
8178         string To.
8179
8180 2007-06-06  Olivier Hainque  <hainque@adacore.com>
8181             Eric Botcazou  <ebotcazou@adacore.com>
8182
8183         * utils2.c (build_allocator): Provide the extra arguments to
8184         make_aligning_type for super-aligned objects allocated from the default
8185         pool. Leave enough room for a pointer before the aligning field, and
8186         store the system's allocator return value there.
8187         (build_call_alloc_dealloc): When releasing a super-aligned object,
8188         retrieve the system's allocator return value from where build_allocator
8189         has stored it, just ahead of the adjusted address we are passed.
8190         (build_call_raise): Handle properly the generation of line numbers when
8191         the node is marked No_Location.
8192         (compare_elmt_bitpos): Use tree_int_cst_compare.  Stabilize the sort
8193         by using DECL_UID on ties.
8194         (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
8195         main variant.
8196         (build_call_raise): Handle converting exception into goto; support new
8197         argument KIND.
8198         (build_component_ref): Add new arg to build_call_raise.
8199
8200 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8201
8202         * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
8203         "." in the case of nnn.xxx when nnn terminates with an underscore.
8204         Parse the remaining "#" or ":" in the case of nnn#.xxx#
8205
8206 2007-06-06  Robert Dewar  <dewar@adacore.com>
8207
8208         * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
8209
8210 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
8211             Vincent Celier  <celier@adacore.com>
8212             Robert Dewar  <dewar@adacore.com>
8213
8214         * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
8215         needed.
8216         (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
8217         ((destructor)) for adafinal, even when switch -a is used.
8218         Do not issue pragma Linker_Destructor for adafinal when switch -a is
8219         used.
8220         (Gen_Object_Files_Options): Add formatting of Linker Options, when
8221         Output_Linker_Option_List is set. Suppress this formatting when
8222         Zero_Formatting is set.
8223         Add case for CLI_Target.
8224         (System_Restrictions_Used): New flag, used to avoid generating with of
8225         System_Restrictions and initialization of the data unless there is
8226         some use of System.Restrictions in the partition.
8227         (Check_System_Restrictions_Used): New procedure
8228
8229         * s-stalib.adb: Remove with of System.Restrictions. No longer needed
8230         since we only with this unit in the binder file if it is used elsewhere
8231         in the partition.
8232
8233 2007-06-06  Vincent Celier  <celier@adacore.com>
8234
8235         * bindusg.adb: Add line for @<response file>
8236         Add lines for new switches -R and -Z
8237
8238         * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
8239         hierarchy in the list of files of the closure when -R is used
8240         (Gnatbind): Accept arguments starting with '@' to indicate response
8241         files and take the arguments from the response files.
8242         If List_Closure is set, display the referenced files
8243
8244 2007-06-06  Javier Miranda  <miranda@adacore.com>
8245             Robert Dewar  <dewar@adacore.com>
8246             Ed Schonberg  <schonberg@adacore.com>
8247
8248         * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
8249         which the address-clause is applied to in-mode actuals (allowed by
8250         13.1(22)).
8251         (Apply_Discriminant_Check): Do not generate a check if the type is
8252         constrained by a current instance.
8253         (Activate_Division_Check): New procedure
8254         (Activate_Overflow_Check): New procedure
8255         (Activate_Range_Check): New procedure
8256         Call these new Activate procedures instead of setting flags directly
8257         (Apply_Array_Size_Check): Removed, no longer needed.
8258         Code clean up: remove obsolete code related to GCC 2.
8259         (Get_E_Length): Protect against bomb in case scope is standard
8260         (Selected_Range_Checks): If the node to be checked is a conversion to
8261         an unconstrained array type, and the expression is a slice, use the
8262         bounds of the slice to construct the required constraint checks.
8263         Improve NOT NULL error messages
8264         (Apply_Constraint_Check): If the context is a null-excluding access
8265         type, diagnose properly the literal null.
8266
8267 2007-06-06  Pascal Obry  <obry@adacore.com>
8268
8269         * clean.adb (Clean_Archive): Use untouched casing for the archive name
8270         and the corresponding .deps file.
8271         (Clean_Interface_Copy_Directory): Use untouched casing for the library
8272         src directory. Minor code-clean-up. Use untouched casing for files
8273         read into the library src dir.
8274         (Clean_Library_Directory): Idem.
8275         (Parse_Cmd_Line): Accept new switch -aP
8276
8277 2007-06-06  Javier Miranda  <miranda@adacore.com>
8278             Ed Schonberg  <schonberg@adacore.com>
8279             Robert Dewar  <dewar@adacore.com>
8280             Eric Botcazou  <ebotcazou@adacore.com>
8281             Arnaud Charlet  <charlet@adacore.com>
8282
8283         * einfo.ads, einfo.adb (Available_View): New synthesized attribute
8284         applicable to types that have the With_Type flag set. Returns the
8285         non-limited view of the type, if available, otherwise the type itself.
8286         For class-wide types, there is no direct link in the tree, so we have
8287         to retrieve the class-wide type of the non-limited view of the Etype.
8288         New attributes Static_Initialization and Static_Elaboration_Desired.
8289         Remove the pragma Thread_Body, and the associated flag
8290         Is_Thread_Body in entities, and all related code.
8291         (Suppress_Value_Tracking_On_Call): New flag
8292         E_Exception has Esize and Alignment fields
8293         (Universal_Aliasing): New function.
8294         (Set_Universal_Aliasing): New procedure.
8295         (Write_Entity_Flags): Deal with Universal_Aliasing flag.
8296         (Check_Nested_Access): New procedure.
8297         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
8298         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
8299         (Related_Interface): New attribute. Present in dispatch table pointer
8300         components of records. Set to point to the entity of the corresponding
8301         interface type.
8302         (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
8303         (Original_Access_Type): Remove, not needed.
8304         (Root_Type): Handle properly subtypes of class-wide-types.
8305         Update comments.
8306
8307         * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
8308         class-wide types visible through limited-with clauses.
8309         (Try_Primitive_Operation): When examining all primitive operations of a
8310         tagged type, do not consider subprograms labeled as hidden unless they
8311         belong to a private generic type with a tagged parent.
8312         (Try_Object_Operation): Extensive rewriting, to handle properly various
8313         overloading cases, when several ancestors may have class-wide operations
8314         that are possible candidates, and when the overloaded functions return
8315         array types and have defaulted parameters so that the call may be
8316         interpreted as an indexing.
8317         (Analyze_Allocator): Remove Mark_Allocator and its invocation.
8318         (Process_Function_Call): use Next, rather than Next_Actual, to analyze
8319         successive actuals before analyzing the call itself.
8320         (Try_Primitive_Operation): A primitive operation is compatible with the
8321         prefix if the prefix has a synchronized type and the type of the formal
8322         is its corresponding record, as can be the case when the primitive
8323         operation is declared outside of the body of the type.
8324         (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
8325         perform homonym traversal, looking for class-wide operation matches
8326         (formerly done in statements of Try_Class_Wide_Operation). Matches on
8327         access parameters are now restricted to anonymous access types.
8328         (Mark_Allocator): An allocator with a discriminant association parent is
8329         a coextension.
8330         (Try_One_Prefix_Interpretation): If the type of the object is
8331         incomplete, as can be happen when it is a limited view obtained through
8332         a limited_with_clause, the selected component is not part of a prefixed
8333         call.
8334         (Complete_Object_Operation): Diagnose properly an object that is not
8335         aliased when the corresponding controlling formal is an access
8336         parameter.
8337         (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
8338         ambiguous calls in prefixed notation, where two primitives differ only
8339         in that the controlling argument of one is an access parameter.
8340
8341         * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
8342         whether a function that returns an unconstrained type can be inlined.
8343         (Process_Formals): Diagnose properly the illegal use of an incomplete
8344         type in the profile of an access_to_subprogram declaration.
8345         (Check_Synchronized_Overriding): Nothing check for concurrent types, the
8346         operations are attached to the corresponding record.
8347         (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
8348         When processing a primitive of a concurrent type which implements an
8349         interface change the type of all controlling formals to that of the
8350         corresponding record type.
8351         (Check_Synchronized_Overriding): Relax the conditional logic when trying
8352         to determine the tagged type to which a primitive belongs.
8353         (Check_Conventions): Capture condition to ignore a primitive operation
8354         (which is shared between the loop in Check_Conventions and the one in
8355         Check_Convention) in a new local function Skip_Check.
8356         (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
8357         confusion with Check_Conventions' own Prim_Op local variable.
8358         (Create_Extra_Formals): Test for a tagged result type rather than a
8359         controlling result when determining whether to add a BIP_Alloc_Form
8360         formal and a BIP_Final_List formal to the function.
8361         (Check_Conformance); For parameters that are anonymous access types,
8362         subtype conformance requires that the not null and the constant
8363         indicators must match
8364         (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
8365         to retrieve the appropriate type when processing a concurrent type
8366         declared within a generic. Minor comment reformatting. Change invocation
8367         of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
8368         mitive.
8369         (Analyze_Subprogram_Body): If the return type of a function is an
8370         anonymous access to the limited view of a class-wide type, and the
8371         non-limited view of the type is available, update the type of the
8372         function so that code can be generated.
8373         (Process_Formals): In case of access-subtype itype whose designated
8374         type is also an itype (situation that happens now with access to
8375         subprograms) we mark the access-type itype with the Has_Delayed_Freeze
8376         attribute to avoid backend problems.
8377         (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
8378         init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
8379         anonymous types' designated types are same before testing
8380         Subtypes_Statically_Match.
8381         (Create_Extra_Formals): Test for a named access parameter that is a
8382         controlling formal as an additional condition for adding an
8383         accessibility level formal. This can occur in the subp type created for
8384         dispatching calls in Expand_Dispatching_Call, and allows calling
8385         Create_Extra_Formals from that procedure rather than special-casing the
8386         extra formals there.
8387         (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
8388         when the function has a controlling result.
8389         (Check_Returns): Add much more knowledge of the optimization of local
8390         raise statements to gotos, to retain proper warnings in this case.
8391         (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
8392         nodes when looking for last statement.
8393
8394         * sem_type.ads, sem_type.adb (Specific_Type): Add support for
8395         class-wide types visible through limited with clauses.
8396         (Add_One_Interp): If the operands are anonymous access types, the
8397         predefined operator on universal_access is immediately visibles
8398         (Find_Unique_Type): Handle anonymous access to subprogram types just as
8399         other anonymous access types.
8400         (Disambiguate): Take into account CIL convention.
8401         (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
8402
8403 2007-06-06  Robert Dewar  <dewar@adacore.com>
8404
8405         * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
8406         sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
8407         elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
8408         Fix lower bound of tables.
8409         Add rep clauses.
8410
8411         * nlists.adb: Ditto.
8412         (Prev_Node, Next_Node): Change index type to Int so that it properly
8413         covers the range First_Node_Id - 1 up.
8414
8415 2007-06-06  Javier Miranda  <miranda@adacore.com>
8416             Ed Schonberg  <schonberg@adacore.com>
8417             Bob Duff  <duff@adacore.com>
8418             Hristian Kirtchev  <kirtchev@adacore.com>
8419
8420         * exp_aggr.ads, exp_aggr.adb: 
8421         (Build_Record_Aggr_Code): Add missing initialization of secondary tags
8422         in extension aggregates.
8423         (Flatten): Other conditions being met, an aggregate is static if the
8424         low bound given by component associations is different from the low
8425         bound of the base index type.
8426         (Packed_Array_Aggregate_Handled): If the component type is itself a
8427         packed array or record, the front-end must expand into assignments.
8428         (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
8429         Init_Pr, instead of Ancestor_Is_Expression.
8430         (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
8431         coextension chain root, either generate a list controller or use the
8432         already existing one.
8433         (Static_Array_Aggregate): New procedure to construct a positional
8434         aggregate that can be handled by the backend, when all bounds and
8435         components are compile-time known constants.
8436         (Expand_Record_Aggregate): Force conversion of aggregates of tagged
8437         types covering interface types into assignments.
8438         (Replace_Type): move to Build_Record_Aggr_Code.
8439         (Expand_Record_Aggr_Code): if the target of the aggregate is an
8440         interface type, convert to the definite type of the aggregate itself,
8441         so that needed components are visible.
8442         (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
8443         components and the context is an extended return statement do not
8444         create a transient block for it, to prevent premature finalization
8445         before the return is executed.
8446         (Gen_Assign): Do not generate a call to deep adjust routine if the
8447         component type is itself an array of controlled (sub)-components
8448         initialized with an inner aggregate.
8449         (Component_Check): New name for Static_Check. This name is now more
8450         appropriate, and documentation is added which was missing.
8451         (Component_Check): Add test for bit aligned component value
8452         (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
8453         Tagged_Comps, name is more appropriate given added function below.
8454         (Component_Not_OK_For_Backend): Check for bit aligned component ref.
8455
8456 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8457             Javier Miranda  <miranda@adacore.com>
8458             Robert Dewar  <dewar@adacore.com>
8459
8460         * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
8461         Terminated: Add unchecked type conversion from System.Address to
8462         System.Tasking.Task_Id when calling the predefined primitive
8463         _disp_get_task_id.
8464         Disable new Ada 05 accessibility check for JVM.NET targets, which
8465         cannot be implemented in a practical way.
8466         (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
8467         the sources always references the tag of the actual object. Therefore,
8468         if 'Tag is applied in the sources to class-wide interface objects we
8469         generate code that displaces "this" to reference the base of the object.
8470         (Expand_N_Attribute_Reference, case Size): Return specified size if
8471         known to front end.
8472         (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
8473         has code that displaces the pointer of the object to manage interface
8474         types. However this code must not be executed when the prefix is a
8475         subprogram. This bug caused the wrong expansion of the internally
8476         generated assignment that fills the dispatch table when the primitive
8477         is a function returning a class-wide interface type.
8478         (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
8479         Set_Attribute_Name for Name_Unaligned_Valid.
8480
8481 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8482             Gary Dismukes  <dismukes@adacore.com>
8483
8484         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
8485         If the initialization is the equivalent aggregate of the initialization
8486         procedure of the type, do not remove it.
8487         (Expand_N_Attribute_Definition_Clause): Exclude access variables
8488         initialized to null from having their expression reset to empty and
8489         note this exception in the comment.
8490
8491 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
8492             Robert Dewar  <dewar@adacore.com>
8493             Ed Schonberg  <schonberg@adacore.com>
8494             Gary Dismukes  <dismukes@adacore.com>
8495
8496         * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
8497         Add "with" and "use" clauses for Sem_Attr.
8498         (Expand_Current_Value): Do not replace occurences of attribute
8499         references where the prefix must be a simple name.
8500
8501         * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
8502         Namet. Add new arrays Attribute_Name_Modifies_Prefix and
8503         Attribute_Requires_Simple_Name_Prefix.
8504         (Name_Modifies_Prefix): Body of new function.
8505         (Requires_Simple_Name_Prefix): Body of new function.
8506         (Resolve_Attribute, case Access): Improve error message for case of
8507         mismatched conventions.
8508         (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
8509         incomplete type.
8510         (Analyze_Attribute, case 'Access): If the type of the prefix is a
8511         constrained subtype for a nominal unconstrained type, use its base type
8512         to check for conformance with the context.
8513         (Resolve_Attribute): Remove test of the access type being associated
8514         with a return statement from condition for performing accessibility
8515         checks on access attributes, since this case is now captured by
8516         Is_Local_Anonymous_Access.
8517         (Analyze_Access_Attribute): Set Address_Taken on entity
8518         (Analyze_Attribute, case Address): Set Address_Taken on entity
8519         (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
8520         validating an access attribute whose prefix is a current instance.
8521         (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
8522         applied to dispatching operations, if freezing is required then we set
8523         the attribute Has_Delayed_Freeze in the prefix's entity.
8524         (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
8525         current scope if access of local subprogram taken
8526         (Analyze_Access_Attribute): Check legality of self-reference even if the
8527         expression comes from source, as when a single component association in
8528         an aggregate has a box association.
8529         (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
8530         the prefix if it is a protected operation and the attribute is
8531         Unrestricted_Access.
8532         (Resolve_Attribute, case 'Access): Set the Etype of the attribute
8533         reference to the base type of the context, to force a constraint check
8534         when the context is an access subtype with an explicit constraint.
8535         (Analyze_Attribute, case 'Class): If the prefix is an interface and the
8536         node is rewritten as an interface conversion. leave unanalyzed after
8537         resolution, to ensure that type checking against the context will take
8538         place.
8539
8540 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8541             Javier Miranda  <miranda@adacore.com>
8542             Robert Dewar  <dewar@adacore.com>
8543
8544         * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
8545         wrapper when the full view of the controlling type of an inherited
8546         function that dispatches on result implements interfaces.
8547         (Expand_N_Object_Declaration): In cases where the type of the
8548         declaration is anonymous access, create finalization list for it.
8549         (Expand_N_Object_Declaration): Generate a persistent_bss directive only
8550         if the object has no explicit initialization, to match description of
8551         functionality of pragam Persistent_BSS.
8552         (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
8553         new function to build static aggregates, to replace initialization call
8554         when static initialization is desired.
8555         (Freeze_Type): Generate a list controller for an access type whenever
8556         its designated type has controlled anonymous access discriminants.
8557         (Build_Equivalent_Aggregate): New procedure to compute a static
8558         aggregate to be used as default initialization for composite types,
8559         instead of a generating a call to the initialization procedure for the
8560         type.
8561         (Build_Initialization_Call): When available, replace a call to the
8562         initialization procedure with a copy of the equivalent static aggregate
8563         for the type.
8564         (Expand_N_Object_Declaration):  Use New_Occurrence_Of in generated
8565         declarations for objects of a class-wide interface type, rather than
8566         just identifiers, to prevent visibility problems.
8567         (Expand_N_Object_Declaration): When expanding the declaration for an
8568         object of a class-wide interface type, preserve the homonym chain of
8569         the original entity before exchanging it with that of the generated
8570         renaming declaration.
8571         (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
8572         active, because there is no way to handle the exception.
8573         (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
8574         to do a minimum decoration of the Access_Disp_Table list.
8575         (Expand_Record_Controller): Avoid the addition of the controller between
8576         the component containing the tag of a secondary dispatch table and its
8577         adjacent component that stores the offset to the base of the object.
8578         This latter component is only generated when the parent type has
8579         discriminants ---documented in Add_Interface_Tag_Components).
8580         (Apply_Array_Size_Check): Removed, no longer needed.
8581         (Expand_N_Full_Type_Declaration): If the type has anonymous access
8582         components, create a Master_Entity for it only if it contains tasks.
8583         (Build_Init_Procedure): Suppress the tag assignment compiling under
8584         no run-time mode.
8585         (Freeze_Record_Type): Remove code associated with creation of dispatch
8586         table.
8587         (Init_Secondary_Tags): Update type of actuals when generating calls to
8588         Ada.Tags.Set_Offset_To_Top
8589         (Stream_Operation_OK): Disable use of streams compiling under no
8590         run-time mode
8591         (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
8592         if Has_Init_Expression set.
8593         (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
8594         Register_Primitive, which provides the same functionality.
8595         (Requires_Init_Proc): Return false in case of interface types.
8596         (Add_Secondary_Tables): Use the new attribute Related_Interface to
8597         cleanup the code.
8598         (Predefined_Primitive_Freeze): Do not assume that an internal entity
8599         is always associated with a predefined primitive because the internal
8600         entities associated with interface types are not predefined primitives.
8601         Therefore, the call to Is_Internal is replaced by a call to the
8602         function Is_Predefined_Dispatching_Operation.
8603         (Make_Eq_If): When generating the list of comparisons for the
8604         components of a given variant, omit the controller component that is
8605         present if the variant has controlled components.
8606
8607 2007-06-06  Javier Miranda  <miranda@adacore.com>
8608             Hristian Kirtchev  <kirtchev@adacore.com>
8609             Bob Duff  <duff@adacore.com>
8610
8611         * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
8612         handle the creation of finalization lists and calls for nested
8613         coextensions when the root of the chains is part of a return statement.
8614         (Inside_A_Return_Statement): New function inside Complete_Coextension_
8615         Finalization.
8616         (Expand_Record_Equality): Skip components that are interface types.
8617         (Displace_Allocator_Pointer): Add missing support for interface subtypes
8618         (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
8619         with Rewrite_Coextension. Change the condition for detecting coextension
8620         root nodes.
8621         (Is_Local_Access_Discriminant): Removed.
8622         (Rewrite_Coextension): New routine which rewrites a static coextension
8623         as a temporary and uses its unrestricted access in the construction of
8624         the outer object.
8625         (Complete_Coextension_Finalization): New routine. Generate finalization
8626         attachment calls to all delayed coextensions.
8627         (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
8628         the allocator is not a coextension itself and has delayed coextensions.
8629         If the current allocator is controlled, but also a coextension, delay
8630         the generation of the finalization attachment call.
8631         Rename local variable "Node" to "Nod" in order to avoid confusion with
8632         "Elists.Node".
8633         (Expand_Allocator_Expression): Call Adjust for initialized allocators of
8634         limited types that are not inherently limited. Such an allocator is
8635         illegal, but is generated by the expander for a return statement, to
8636         copy the result onto the secondary stack. This is the only case where a
8637         limited object can be copied. Generate code to displace the pointer
8638         to the object if the qualified expression is a class-wide interface
8639         object. Such displacement was missing and hence the copy of the object
8640         was wrong.
8641         (Apply_Accessibility_Check): Handle allocated objects initialized in
8642         place.
8643         (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
8644         and Expand_Allocator_Expression. Allocating class-wide interface objects
8645         this routine displaces the pointer to the allocated object to reference
8646         the component referencing the corresponding secondary dispatch table.
8647         Expand_Allocator_Expression): Add missing support to allocate class-wide
8648         interface objects initialized with a qualified expression.
8649         (Get_Allocator_Final_List): Test for an anonymous access type that is a
8650         function result type, and use the finalization list associated with the
8651         function scope in that case (such an anonymous type should not be
8652         treated like an access parameter's type).
8653
8654 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8655             Gary Dismukes  <dismukes@adacore.com>
8656             Javier Miranda  <miranda@adacore.com>
8657
8658         * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
8659         controlled type, use Make_Handler_For_Ctrl_Operation to construct the
8660         required exception handler.
8661         (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
8662         properly the case of a function whose return type is a limited
8663         class-wide interface type. Modify the code of the accessibility
8664         check to handle class-wide interface objects. In this case we need to
8665         displace "this" to reference the primary dispatch table to get access
8666         to the TSD of the object (to evaluate its accessibility level).
8667         (Expand_N_Extended_Return_Statement): Test for a tagged result type
8668         rather than a controlling result as one of the conditions for
8669         generating tests of the implicit BIP_Alloc_Form formal. The
8670         initialization assignment is also handled according to whether the
8671         result is tagged instead of controlling.
8672         In the case where the init assignment is inserted in the "then" part of
8673         the allocation conditional, rewrite the target to be a dereference of
8674         the implicit BIP_Object_Access formal.
8675         If the returned value is unconstrained and created on the secondary
8676         stack, mark the enclosing block and function so that the secondary
8677         stack is not reclaimed on return.
8678         Treat returns from functions with controlling results similarly to
8679         returns from functions with unconstrained result subtypes.
8680         If the object returned is unconstrained, and an allocator must be
8681         created for it, analyze the allocator once the block for the extended
8682         return is installed, to ensure that finalizable components
8683         of the expression use the proper finalization list. Guard the call to
8684         Move_Final_List with a check that there is something to finalize.
8685         (Make_Tag_Ctrl_Assignment): Use "old" handling
8686         of controlled type assignment for virtual machines, since new code uses
8687         unsupported features (such as direct access to bytes in memory).
8688
8689 2007-06-06  Gary Dismukes  <dismukes@adacore.com>
8690             Ed Schonberg  <schonberg@adacore.com>
8691
8692         * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
8693         accessibility actual, check for the case of an aliased object that has
8694         been rewritten as an Access attribute, and assign Prev to Prev_Orig so
8695         we fall into processing for the attribute rather than the name of the
8696         object.
8697         (Expand_Inline_Call): If an actual is a literal, and the corresponding
8698         formal has its address taken in the body, create a temporary to capture
8699         value.  If the return type is a limited interface, do not treat the
8700         return value as Controlled.
8701         (Is_In_Place_Function):  If the return type is a limited interface,
8702         treat as returning in place. The actual returned object may not always
8703         be limited, but the caller has to assume that it is returned in place.
8704         (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
8705         context of an allocator, use the correct finalization chain (that is,
8706         the chain belonging to the access type, rather than the chain belonging
8707         to the current scope).
8708         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
8709         result type rather than a controlling result as a precondition for
8710         adding an allocation form actual to a build-in-place call.
8711         (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
8712         (Freeze_Subprogram): Code cleanup. Remove all the code that register the
8713         primitive in the dispatch tables. This work is now done by Make_DT when
8714         the type is frozen.
8715         (Register_Predefined_DT_Entry): Removed.
8716         (Add_Return): If end label is not present, use sloc of last statement
8717         for generated return statement in procedure, for better gdb behavior
8718         on expanded code.
8719         (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
8720         object address nodes to ensure proper processing by routines like
8721         Insert_After*.
8722         (Expand_Call): Fix generation of validity check for parameter
8723         (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
8724         the allocation form parameter if the result subtype is constrained,
8725         except when the function has a controlling result.
8726         (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
8727         rather than Is_Controlled and Has_Controlled_Component, since we want to
8728         include class-wide result types in this treatment. Also test for a
8729         controlling result, since that also requires passing a finalization
8730         list.
8731         (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
8732         even when the result subtype is constrained, to handle calls involving
8733         controlling results.
8734         (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
8735         is now called even when the result subtype is constrained, to handle
8736         calls involving controlling results.
8737         (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
8738         on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
8739         now performs the test).
8740         (Make_Build_In_Place_Call_In_Object_Declaration):
8741         Add_Alloc_Form_Actual_* is now called even when the result subtype is
8742         constrained, to handle calls involving controlling results.
8743         (Add_Return): Accomodate rewritten pattern from local raise to goto
8744         transformation, so that we still recognize an transfer statement
8745         and do the right thing here in that case.
8746         (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
8747         and end of subprogram code.
8748         (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
8749         support for primitives that are functions (without formals) with a
8750         controlling result.
8751         (Inherited_From_Formal): If the actual subtype has not generic parent
8752         type, it is not an actual for a formal derived type, and there is no
8753         operation to inherit from the formal.
8754
8755 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8756             Thomas Quinot  <quinot@adacore.com>
8757
8758         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
8759         inserted cleanup code appropriately for GDB use.
8760         (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
8761         exception handler for Deep_Adjust or Deep_Finalize.
8762         (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
8763         Raise_From_Controlled_Operation is available, use a call to that
8764         subprogram instead of a plain "raise Program_Error" node to raise
8765         Program_Error if an exception is propagated from an Adjust or Finalize
8766         operation.
8767         (Insert_Actions_In_Scope_Around): If the statement to be wrapped
8768         appears in the optional statement list of a triggering alternative, the
8769         scope actions can be inserted directly there, and not in the list that
8770         includes the asynchronous select itself.
8771
8772 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8773             Robert Dewar  <dewar@adacore.com>
8774             Hristian Kirtchev  <kirtchev@adacore.com>
8775
8776         * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
8777         generated exception handler appropriately when debugging generated code.
8778         Deal properly with No_Exception_Propagation restriction mode.
8779         (Expand_N_Abort_Statement): Add an unchecked type conversion from
8780         System.Address to System.Tasking.Task_Id when processing the result of
8781         the predefined primitive _disp_get_task_id.
8782         (Expand_N_Asynchronous_Select): Clarify comment.
8783         (Expand_N_Protected_Type_Declaration): Minor code cleanup.
8784         (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
8785         (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
8786         (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
8787         privals and for generated call to Complete_Entry_Body, for better gdb
8788         behavior.
8789         (Copy_Result_Type): Utility to construct a parameter and result profile
8790         for protected functions whose return type is an anonymous access to
8791         subprogram.
8792         (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
8793         call the above.
8794         (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
8795         point when the local-raise-to-goto transformation has taken place.
8796
8797 2007-06-06  Javier Miranda  <miranda@adacore.com>
8798             Nicolas Setton  <setton@adacore.com>
8799
8800         * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
8801         functionality when the backend is generating code.
8802         Otherwise any serious error
8803         reported by the backend calling the frontend routine Error_Msg
8804         changes the Compilation_Mode to Check_Semantics, disables the
8805         functionality of this routine and causes the generation of
8806         spureous additional errors.
8807
8808         * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
8809         debugging information now generated by the compiler for fat-pointer
8810         types.
8811         Document the contents of DW_AT_producer in the GNAT Vendor extensions to
8812         DWARF2/3.
8813         Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
8814
8815 2007-06-06  Thomas Quinot  <quinot@adacore.com>
8816
8817         * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
8818         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
8819         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
8820         For a remote call to a function with a classwide return type, apply an
8821         E.4(18) check to the returned value.
8822         (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
8823         stream attributes of the designated type of an RACW, as they are not
8824         dispatching primitive operations.
8825
8826 2007-06-06  Geert Bosch  <bosch@adacore.com>
8827
8828         * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
8829         negative literal
8830         (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
8831         positive
8832         (Do_Divide_Fixed_Universal): Handle case of negative Frac.
8833         (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
8834         positive
8835         (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
8836
8837 2007-06-06  Javier Miranda  <miranda@adacore.com>
8838
8839         * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
8840         attribute compiling package Ada.Tags under No_Run_Time_Mode.
8841
8842 2007-06-06  Javier Miranda  <miranda@adacore.com>
8843
8844         * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
8845         deallocation of class-wide interface objects.
8846         (Expand_Dispatching_Constructor_Call): Take into account that if the
8847         result of the dispatching constructor is an interface type, the
8848         function returns a class-wide interface type; otherwise the returned
8849         object would be actual. The frontend previously accepted returning
8850         interface types because Expand_Interface_Actuals silently performed
8851         the management of the returned type "as if" it were a class-wide
8852         interface type.
8853         (Expand_Dispatching_Constructor_Call): Replace call to
8854         Make_DT_Access_Action by direct call to Make_Function_Call.
8855
8856 2007-06-06  Robert Dewar  <dewar@adacore.com>
8857             Ed Schonberg  <schonberg@adacore.com>
8858
8859         * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
8860         compute masking constant, since we now set Esize properly to the
8861         underlying size.
8862         (Create_Packed_Array_Type): Set proper Esize value adjusted as required
8863         to match the alignment.
8864         (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
8865         packed arrays of 8 bits or less.
8866
8867         * freeze.adb (Freeze_Entity): When freezing the formals of a
8868         subprogram, freeze the designated type of a parameter of an access type
8869         only if it is an access parameter.
8870         Increase size of C convention enumeration object
8871         (Freeze_Entity, array type case): Make sure Esize value is properly
8872         adjusted for the alignment if it is known.
8873         (Freeze_Entity, array type case): When checking bit packed arrays for
8874         the size being incorrect, check RM_Size, not Esize.
8875         (Freeze_Record_Type): Check for bad discriminated record convention
8876         (In_Exp_Body): Return true if the body is generated for a subprogram
8877         renaming, either an attribute renaming or a renaming as body.
8878         (Check_Itype): If the designated type of an anonymous access component
8879         is a non-protected subprogram type, indicate that it is frozen, to
8880         prevent out-of-scope freeze node at some subsequent call.
8881         (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
8882         only if the subprogram is neither imported nor exported, as well as the
8883         NCA descriptor class if the subprogram is exported.
8884
8885 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8886             Arnaud Charlet  <charlet@adacore.com>
8887             Robert Dewar  <dewar@adacore.com>
8888             Gary Dismukes  <dismukes@adacore.com>
8889
8890         * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
8891         default initialization on an imported object, when there is no
8892         initialization call generated for it.
8893         (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
8894         restriction
8895
8896         * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
8897         Static_Elaboration_Desired.
8898         Remove pragma Thread_Body.
8899         Implement a new pragma No_Body
8900         Removes the Explicit_Overriding pragma
8901         Remove Optional_Overriding pragma
8902         (Prag): Deal with Universal_Aliasing.
8903         (Name_CIL, Name_CIL_Constructor, Convention_CIL,
8904         Pragma_CIL_Constructor): New names.
8905
8906         * sem_cat.adb (Validate_Object_Declaration): An initialization that
8907         uses the equivalent aggregate of a type must be treated as an implicit
8908         initialization.
8909         (Get_Categorization): Check a unit for pragma Preelaborate only if it
8910         has none of the other categories.
8911         (Process_Import_Or_Interface_Pragma): Report an error for an attempt
8912         to apply Import to an object renaming declaration.
8913
8914         * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
8915         from a C++ class should be declared as limited and that it will be
8916         considererd limited.
8917         (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
8918         should be declared as limited and that it will be considererd limited.
8919         (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
8920         (Analyze_Pragma, case Export): Diagnose export of enumeration literal
8921         (Analyze_Pragma): Deal with Universal_Aliasing.
8922         (Sig_Flags): Likewise.
8923         (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
8924         (Overflow_Checks_Unsuppressed): New flag.
8925         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
8926         (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
8927         case of JVM or .NET targets, and compiling user code.
8928         Add debugging convenience routine rv
8929
8930 2007-06-06  Robert Dewar  <dewar@adacore.com>
8931
8932         * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
8933         are interface type.
8934         (Build_Elementary_Input_Call): For floating-point use right type in the
8935         absence of strange size or stream size clauses.
8936         (Build_Elementary_Write_Call): Same fix
8937         (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
8938         set to value that does not match base type size.
8939
8940 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
8941
8942         * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
8943         object of a limited type can be initialized with a call to a function
8944         that returns in place. If the limited type has unknown discriminants,
8945         and the underlying type is a constrained composite type, build an actual
8946         subtype from the function call, as is done for private types.
8947         (Side_Effect_Free): An expression that is the renaming of an object or
8948         whose prefix is the renaming of a object, is not side-effect free
8949         because it may be assigned through the renaming and its value must be
8950         captured in a temporary.
8951         (Has_Controlled_Coextensions): New routine.
8952         (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
8953         as is done for other limited types.
8954         (Non_Limited_Designated_Type): new predicate.
8955         (Make_CW_Equivalent_Type): Modified to handle class-wide interface
8956         objects.
8957         Remove all handling of with_type clauses.
8958
8959         * par-ch10.adb: Remove all handling of with_type clauses.
8960
8961         * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
8962         checksum if the main source could not be parsed.
8963         (Loat_Unit): When processing a child unit, determine properly whether
8964         the parent unit is a renaming when the parent is itself a child unit.
8965         Remove handling of with_type clauses.
8966
8967         * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
8968         (Set_Is_Static_Coextension): New procedure.
8969         (Has_Local_Raise): New function
8970         (Set_Has_Local_Raise): New procedure
8971         (Renaming_Exception): New field
8972         (Has_Init_Expression): New flag
8973         (Delay_Finalize_Attach): Remove because flag is obsolete.
8974         (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
8975         Remove all handling of with_type clauses.
8976         (Exception_Junk): Can now be set in N_Block_Statement
8977
8978 2007-06-06  Vincent Celier  <celier@adacore.com>
8979             Robert Dewar  <dewar@adacore.com>
8980
8981         * frontend.adb (Frontend): Return immediately if the main source could
8982         not be parsed, because of preprocessing errors.
8983
8984         * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
8985         (Gnat1drv): Exit with errors if the main source could not be parsed,
8986         because of preprocessing errors.
8987         (Check_Rep_Info): New procedure
8988
8989 2007-06-06  Robert Dewar  <dewar@adacore.com>
8990
8991         * g-hesorg.ads, g-heasor.ads,
8992         g-busorg.ads, g-bubsor.ads: Update documentation
8993         GNAT.Heap/Bubble_Sort_G is now pure
8994
8995 2007-06-06  Robert Dewar  <dewar@adacore.com>
8996
8997         * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
8998
8999 2007-06-06  Robert Dewar  <dewar@adacore.com>
9000             Ed Schonberg  <schonberg@adacore.com>
9001
9002         * g-comlin.ads, g-comlin.adb: 
9003         Add new warning for renaming of function return objects
9004
9005         * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
9006         (Tree_Read): Use size of object instead of type'object_size, since the
9007         latter is incorrect for packed array types.
9008         (Tree_Write): Same fix
9009
9010         * opt.ads: Add new warning for renaming of function return objects
9011         (Generating_Code): New boolean variable used to indicate that the
9012         frontend as finished its work and has called the backend to process
9013         the tree and generate the object file.
9014         (GCC_Version): Is now private
9015         (Static_Dispatch_Tables): New constant declaration.
9016         (Overflow_Checks_Unsuppressed): New flag.
9017         (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
9018         (List_Closure): New flag for gnatbind (-R)
9019         Zero_Formatting: New flag for gnatbind (-Z)
9020         (Special_Exception_Package_Used): New flag.
9021         (Warn_On_Unrepped_Components): New flag.
9022
9023         * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
9024         unit is a compilation unit, rather than relying on its scope, so that
9025         Standard can be renamed.
9026         (Analyze_Object_Renaming): Add new warning for renaming of function
9027         return objects.
9028         Also reject attempt to rename function return object in Ada 83 mode.
9029         (Attribute_Renaming): In case of tagged types, add the body of the
9030         generated function to the freezing actions of the type.
9031         (Find_Type): A protected type is visible right after the reserved word
9032         "is" is encountered in its type declaration. Set the entity and type
9033         rather than emitting an error message.
9034         (New_Scope): Properly propagate Discard_Names to inner scopes
9035         (Check_Nested_Access): New procedure.
9036         (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
9037         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9038
9039         * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
9040         Add new warning for renaming of function return objects
9041         (Check_References): Suppress warnings for objects whose type or
9042         base type has Warnings suppressed.
9043         (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
9044         (Set_Warning_Switch): Include new -gnatwc in -gnatwa
9045
9046 2007-06-06  Vincent Celier  <celier@adacore.com>
9047             Emmanuel Briot  <briot@adacore.com>
9048             Olivier Hainque  <hainque@adacore.com>
9049
9050         * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
9051         absolute value of Header.Block_Size when displaying the freed physical
9052         memory in traces.
9053         (Allocate): Compute Storage_Address using Integer_Address, not
9054         Storage_Offset, because the range of Storage_Offset may not be large
9055         enough.
9056         (Configure): New parameter Low_Level_Traces
9057         (Allocate, Deallocation, Free_Physically): Added low-level traces
9058         (Configure): new parameter Errors_To_Stdout.
9059         (Output_File): new subprogram
9060         (Deallocate, Dereference): Send error messages to the proper stream
9061         (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
9062         documented. Previous code would send it to the current output file
9063         defined in GNAT.IO, which might not be stdout
9064         (Is_Valid): Adjust comment to mention that a positive reply means that
9065         Header_Of may be used to retrieve the allocation header associated with
9066         the subprogram Storage address argument. Return False early if this
9067         address argument is misaligned.
9068
9069 2007-06-06  Vincent Celier  <celier@adacore.com>
9070
9071         * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
9072         switch -P
9073         (ASIS_Main): New global variable
9074         (Get_Closure): New procedure
9075         (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
9076         check, metric or pretty. Call Get_Closure in this case.
9077         (Check_Files): For GNAT LIST, check all sources of all projects when
9078         All_Projects is True.
9079         (GNATCmd): Accept -U for GNAT LIST
9080
9081 2007-06-06  Vincent Celier  <celier@adacore.com>
9082
9083         * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
9084         has been specified
9085         Correct error message when invocation of the linker fails
9086         Add explicit size clause for the C imported variables
9087         Object_List_File_Supported and Using_GNU_Linker to emphasize that
9088         we expect char size.
9089         Read target parameters earlier, since this is needed to set
9090         Target_VM properly. Also do not use -static/shared-libgcc for non GCC
9091         targets.
9092
9093 2007-06-06  Vincent Celier  <celier@adacore.com>
9094
9095         * gnatls.adb: 
9096         Add 3 spaces before the default project directory when displaying
9097         the project search path.
9098         Add new command line switch '-l' to display license information.
9099
9100 2007-06-06  Vasiliy Fofanov  <fofanov@adacore.com>
9101
9102         * gmem.c: Add support for timestamps on memory operations.
9103
9104         * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
9105         operations (not used currently, just foundation for future
9106         enhancements). Add possibility to perform full dump of gmem.out file.
9107         (Print_Back_Traces): Declare accesses to root arrays constants since
9108         they aren't modified.
9109         (Print_Back_Traces): allocate root arrays on the heap rather than stack.
9110
9111 2007-06-06  Vincent Celier  <celier@adacore.com>
9112
9113         * gnatsym.adb: Update Copyright notice
9114         (Parse_Cmd_Line): Accept new switch -D
9115         (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
9116          file.
9117
9118         * prj.ads (Policy): New policy Direct
9119         (Yes_No_Unknown): New enumeration type
9120         (Project_Data): New component Libgnarl_Needed
9121
9122         * prj-nmsc.adb (Check_For_Source): When recording a source file make
9123         use the untouched pathname casing.
9124         (Get_Directories): Ensure that the Display_Exec_Directory is using the
9125         proper casing on non case-sensitive platforms like Windows.
9126         (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
9127         on all platforms, as it is not possible to know which one is allowed
9128         before processing the project files.
9129         (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
9130         specified when symbol policy is Direct. Check that when there is a
9131         symbol file defined (either by default or with attribute
9132         Library_Symbol_File) it is not the same as the reference symbol file.
9133         (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
9134         (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
9135         extending projects.
9136         (Record_Ada_Source): Record a source that has been locally removed in an
9137         imported project.
9138
9139         * symbols.ads (Policy): New policy Direct
9140
9141         * symbols-vms.adb (Initialize): Take new policy Direct in case
9142         statement
9143
9144 2007-06-06  Vincent Celier  <celier@adacore.com>
9145
9146         * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
9147         Correct obvious bug (return Dir; instead of return Directory;).
9148         (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
9149
9150 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9151
9152         * g-pehage.adb (Produce): Open output files in Binary mode, so that
9153         they have UNIX line endings (LF only) even on Windows, and thus pass
9154         all GNAT style checks.
9155
9156 2007-06-06  Emmanuel Briot  <briot@adacore.com>
9157
9158         * g-regpat.adb (Quote): Fix improper quoting of '.'
9159
9160 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9161
9162         * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
9163         default, set False on a per-runtime basis.
9164         (Need_Netdb_Buffer): New constant.
9165
9166         * g-socket.ads, g-socket.adb: Import new package
9167         GNAT.Sockets.Thin.Task_Safe_NetDB.
9168         (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
9169         binding to obtain proper message.
9170         (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
9171         Replace various occurrences of Arry (Arry'First)'Address with the
9172         equivalent Arry'Address (GNAT always follows implementation advice from
9173         13.3(14)).
9174         (Get_Host_By_Address, Get_Host_By_Name,
9175         Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
9176         instead, rely on platform-specific task safe netdb operations provided
9177         by g-socthi.
9178
9179         * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
9180         parameter Process_Blocking_IO.
9181         (Host_Error_Messages): Add stub body.
9182         (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
9183         (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
9184         Safe_Getservbyport): Move functions into new child package
9185         Task_Safe_NetDB.
9186         (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
9187         Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
9188         (In_Addr): Add alignment clause.
9189
9190 2007-06-06  Robert Dewar  <dewar@adacore.com>
9191
9192         * g-trasym.ads, g-traceb.ads: Update list of supported targets
9193         Add note about symbolic traceback
9194
9195 2007-06-06  Pascal Obry  <obry@adacore.com>
9196
9197         * hostparm.ads (Normalized_CWD): Use the host directory separator
9198         instead of the hardcoded forward slash which is not the proper
9199         character on Windows for example.
9200         (Java_VM): Removed.
9201
9202 2007-06-06  Vincent Celier  <celier@adacore.com>
9203             Arnaud Charlet  <charlet@adacore.com>
9204
9205         * a-clrefi.adb, a-clrefi.ads: New files
9206
9207         * impunit.adb: Add s-os_lib in the list of user visible units.
9208         (Non_Imp_File_Names_95): Add a-clrefi to this list
9209         Remove obsolete run-time entries.
9210         (Non_Imp_File_Names_05): Add Ada 2005 entries for:
9211          "a-exetim" -- Ada.Execution_Time
9212          "a-extiti" -- Ada.Execution_Time.Timers
9213
9214         * mlib-prj.ads, mlib-prj.adb
9215         (Build_Library): Use untouched object dir and library dir. At the
9216         same time makes sure that the checks are done using the canonical
9217         form. Removes hard-coded directory separator and use the proper host
9218         one instead.
9219         (Process_Project): Do not look in object directory to check if libgnarl
9220         is needed for a library, if there is no object directory.
9221         (Build_Library): Scan the ALI files to decide if libgnarl is needed for
9222         linking.
9223         (Build_Library): When invoking gnatbind, use a response file if the
9224         total size of the arguments is too large.
9225
9226         * Makefile.rtl: (g-sttsne): New object file.
9227         Add entry for a-clrefi, s-utf_32, System.Exceptions
9228
9229         * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
9230         (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
9231         (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
9232         Change g-string to s-string, g-os_lib to s-os_lib
9233         Change all g-utf_32 references to s-utf_32
9234
9235 2007-06-06  Tristan Gingold  <gingold@adacore.com>
9236             Olivier Hainque  <hainque@adacore.com>
9237
9238         * init.c: Do not adjust IP of an imported VMS exception of ia64.
9239         LIB$STOP is called to raise an exception and the IP of the exception
9240         is the instruction right after the call.
9241         (__gnat_adjust_context_for_raise, AIX): Implement.
9242         (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
9243          adjust_context_for_raise before Raise_From_Signal_Hanler.
9244         (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
9245         siginfo is passed to the handler, necessary to let the zcx propagation
9246         engine unwind past it.
9247
9248 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9249
9250         * initialize.c (__gnat_initialize for vxworks):  Update documentation
9251         on the ZCX support, using different sets of crtstuff objects than with
9252         GCC 3.4.
9253
9254 2007-06-06  Robert Dewar  <dewar@adacore.com>
9255
9256         * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
9257         spec from body
9258         (Layout_Type): Fix recomputation of size from alignment.
9259
9260 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9261             Javier Miranda  <miranda@adacore.com>
9262
9263         * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
9264         association in an instance.
9265         (Copy_Generic_Node): If the node is a string literal, no need to copy
9266         its descendants.
9267         (Is_Generic_Formal): For a formal subprogram, the declaration is the
9268         grandparent of the entity.
9269         (Analyze_Formal_Interface_Type): Transform into a full type declaration,
9270         to simplify handling of formal interfaces that derive from other formal
9271         interfaces.
9272         (Instantiate_Subprogram_Body): The defining unit name of the body of
9273         the instance should be a defining identifier.
9274         (Install_Formal_Packages): make global to the package, for use in
9275         instantiations of child units.
9276         (Analyze_Package_Instantiation): Do not attempt to set information on an
9277         enclosing master of an entry when expansion is disabled.
9278         (Instantiate_Type): If the actual is a tagged synchronized type and the
9279         generic ancestor is an interface, create a generic actual for the
9280         corresponding record.
9281         (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
9282         declaration, to ensure that the interface list is processed correctly.
9283         (Inline_Instance_Body): If enclosing scope is an instance body, remove
9284         its entities from visibiility as well.
9285         (Pre_Analyze_Actuals): if the actual is an allocator with  constraints
9286         given with a named association, analyze the expression only, not the
9287         discriminant association itself.
9288         (Reset_Entity): If the analysis of a selected component is transformed
9289         into an expanded name in the prefix of a call with parameters, do not
9290         transform the original node into an expanded name, to prevent visibility
9291         errors in the case of nested generics.
9292         (Check_Private_View): For an array type, check whether the index types
9293         may need exchanging.
9294
9295 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9296             Vincent Celier  <celier@adacore.com>
9297
9298         * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
9299         since both are separated.
9300         Add support for imported CIL packages.
9301         Add further special handling of "value_type" for CIL.
9302         Add special handling of pragma Import for CIL.
9303
9304         * make.ads, make.adb: When switch -eS is used, direct all outputs to
9305         standard output instead of standard error, except errors.
9306         (Absolute_Path): Use untouched casing for the parent directory.
9307         (Add_Library_Search_Dir): Use the untouched directory name.
9308         (Add_Source_Search_Dir): Idem.
9309         (Change_To_Object_Directory): Update output to use proper casing.
9310         (Create_Binder_Mapping_File): Use the untouched filename to set
9311         ALI_Name.
9312         (Gnatmake): Use untouched library and executable directory names.
9313         (Insert_Project_Sources): Use untouched filename for spec and body.
9314         (Is_In_Object_Directory): Use untouched object directory.
9315         (Mark_Directory): Idem.
9316         (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
9317         contains the non-canonical filename in all cases.
9318         (Change_To_Object_Directory): In verbose mode, display the name of the
9319         object directory we're changing to.
9320         (Compile_Sources): Make sure, when a project file is used, to compile
9321         the body of the unit, when there is one, even when only the spec is
9322         recorded in an ALI file.
9323         (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
9324         spec to the body.
9325         (Report_Compilation_Failed): New procedure
9326         (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
9327         procedures moved from the spec to the body.
9328         (Extract_Failure): Removed, not used
9329         Replace explicit raises of exception Bind_Failed and Link_Failed with
9330         calls to Make_Failed with the proper message.
9331         Replace explicit raises of exception Compilation_Failed with calls to
9332         procedure Report_Compilation_Failed.
9333         (Initialize): Create mapping files unconditionally when using project
9334         files.
9335
9336         * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
9337         Pragma_CIL_Constructor): New names.
9338
9339         * targparm.ads, targparm.adb
9340         (Compiler_System_Version): Removed, no longer used.
9341         (Get_Target_Parameters): Relax checks on system.ads validity. Add
9342         handling of two new system flags: JVM and CLI.
9343
9344 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9345             Arnaud Charlet  <charlet@adacore.com>
9346
9347         * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
9348         time, use the default s-interr body that provides interrupt support
9349         based on signals.
9350         (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
9351         a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
9352         g-soccon.ads, and s-taprop.adb for the marte run time.
9353         (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
9354         timers are supported on marte.
9355         (EH_MECHANISM for marte): Do not use ZCX.
9356         (THREADSLIB for marte): Use -lmarte.
9357         Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
9358         Add mlib-tgt-specific.o to gnatmake objects
9359         mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
9360         longer of MLib.Tgt.
9361         (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
9362         6, either kernel or rtp, use a specialized version of s-osinte.ads.
9363
9364 2007-06-06  Pascal Obry  <obry@adacore.com>
9365
9366         * mkdir.c (__gnat_mkdir): Add support for UTF-8.
9367
9368 2007-06-06  Vincent Celier  <celier@adacore.com>
9369
9370         * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
9371         separator, use instead the proper host directory separator.
9372         (Copy_ALI_Files): Make sure that an already existing ALI file in the
9373         ALI copy dir is writable, before doing the copy.
9374
9375         * mlib-utl.ads, mlib-utl.adb: 
9376         (Gcc): If length of command line is too long, put the list of object
9377         files in a response file, if this is supported by the platform.
9378         (Ar): If invocation of the archive builder is allowed to be done in
9379         chunks and building it in one shot would go above an OS dependent
9380         limit on the number of characters on the command line, build the archive
9381         in chunks.
9382
9383 2007-06-06  Vincent Celier  <celier@adacore.com>
9384
9385         * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
9386         of specified object file is not equal to base name of source.
9387
9388 2007-06-06  Javier Miranda  <miranda@adacore.com>
9389             Hristian Kirtchev  <kirtchev@adacore.com>
9390             Ed Schonberg  <schonberg@adacore.com>
9391
9392         * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
9393         the full type declaration.
9394         (Analyze_Component_Declaration): Add local variable E to capture the
9395         initialization expression of the declaration. Replace the occurences of
9396         Expression (N) with E.
9397         (OK_For_Limited_Init_In_05): Allow initialization of class-wide
9398         limited interface object with a function call.
9399         (Array_Type_Declaration): If the declaration lacks subtype marks for
9400         indices, create a simple index list to prevent cascaded errors.
9401         (Is_Null_Extension): Ignore internal components created for secondary
9402         tags when checking whether a record extension is a null extension.
9403         (Check_Abstract_Interfaces): Add missing support for interface subtypes
9404         and generic formals.
9405         (Derived_Type_Declaration): Add missing support for interface subtypes
9406         and generic formals.
9407         (Analyze_Object_Declaration): If an initialization expression is
9408         present, traverse its subtree and mark all allocators as static
9409         coextensions.
9410         (Add_Interface_Tag_Component): When looking for components that may be
9411         secondary tags, ignore pragmas that can appear within a record
9412         declaration.
9413         (Check_Abstract_Overriding): an inherited function that dispatches on
9414         result does not need to be overriden if the controlling type is a null
9415         extension.
9416         (Mentions_T): Handle properly a 'class attribute in an anonymous access
9417         component declaration, when the prefix is an expanded name.
9418         (Inherit_Component): If the derivation is for a private extension,
9419         inherited components remain visible and their ekind should not be set
9420         to Void.
9421         (Find_Type_Of_Object): In the case of an access definition, always set
9422         Is_Local_Anonymous_Access. We were previously not marking the anonymous
9423         access type of a return object as a local anonymous type.
9424         (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
9425         range with character literal bounds.
9426         (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
9427         (Access_Subprogram_Declaration): Indicate that the type declaration
9428         depends on an incomplete type only if the incomplete type is declared
9429         in an open scope.
9430         (Analyze_Subtype_Declaration): Handle properly subtypes of
9431         synchronized types that are tagged, and that may appear as generic
9432         actuals.
9433         (Access_Subprogram_Declaration): An anonymous access to subprogram can
9434         appear as an access discriminant in a private type declaration.
9435         (Add_Interface_Tag_Components): Complete decoration of the component
9436         containing the tag of a secondary dispatch table and the component
9437         containing the offset to the base of the object (this latter component
9438         is only generated when the parent type has discriminants --as documented
9439         in this routine).
9440         (Inherit_Components): Use the new decoration of the tag components to
9441         improve the condition that avoids inheriting the components associated
9442         with secondary tags of the parent.
9443         (Build_Discriminanted_Subtype): Indicate to the backend that the
9444         size of record types associated with dispatch tables is known at
9445         compile time.
9446         (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
9447         (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
9448         to include task, protected, and synchronized interfaces as limited
9449         interfaces.
9450         (Process_Discriminants): Remove the setting of
9451         Is_Local_Anonymous_Access on the type of (anonymous) access
9452         discriminants of nonlimited types.
9453         (Analyze_Interface_Type_Declaration): Complete the decoration of the
9454         class-wide entity it is is already present. This situation occurs if
9455         the limited-view has been previously built.
9456         (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
9457         field.
9458         (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
9459         Related_Interface.
9460
9461 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9462
9463         * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
9464         of the type that specify the position of interface tags when the type
9465         inherits discriminated array components from the parent type.
9466         If a component is initialized with a box, check for the presence of a
9467         default expression in its declaration before using its default
9468         initialization procedure.
9469         (Resolve_Record_Aggregate): If a component is box-initialized, and the
9470         component type has a discriminants, create a partial aggregate for it
9471         by copying the discriminants of the component subtype.
9472         Reject attempt to initialize a discriminant with a box.
9473         (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
9474         associated with dispatch tables is known at compile time.
9475         (Get_Value): If an association in a record aggregate has a box
9476         association, and the corresponding record component has a default
9477         expression, always copy the default expression, even when the
9478         association has a single choice, in order to create a proper
9479         association for the expanded aggregate.
9480
9481 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9482             Robert Dewar  <dewar@adacore.com>
9483
9484         * par-ch12.adb (P_Generic_Associations): The source position of an
9485         Others association is that of the others keyword, not that of the token
9486         that follows the box.
9487         (P_Formal_Type_Definition): Handle formal access types that carry a
9488         not null indicator.
9489
9490         * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
9491         multiple identifier are present, save Scan_State before scanning the
9492         colon, to ensure that separate trees are constructed for each
9493         declaration.
9494         (P_Identifier_Declarations): For object declaration, set new flag
9495         Has_Init_Expression if initialization expression present.
9496         (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
9497         Improve NOT NULL error messages
9498
9499 2007-06-06  Robert Dewar  <dewar@adacore.com>
9500
9501         * par-ch4.adb: (P_Name): Recover from literal used as name
9502
9503 2007-06-06  Vincent Celier  <celier@adacore.com>
9504
9505         * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
9506         defaulted to False.
9507         In the "not" case, recursive call with Complemented set to True.
9508         Do not allow "or" or "and" operators when Complemented is True.
9509
9510 2007-06-06  Vincent Celier  <celier@adacore.com>
9511
9512         * prj.adb (Project_Empty): Gives default value for new component
9513         Libgnarl_Needed
9514
9515         * prj-attr.ads: Minor reformatting
9516
9517         * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
9518         directory using the untouched casing.
9519         (For_All_Source_Dirs): Idem.
9520
9521         * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
9522         directories specified with switches -aP.
9523         (Add_Search_Project_Directory): New procedure
9524         (Initialize_Project_Path): Put the directories in table
9525         Search_Directories in the project search path.
9526         (Initialize_Project_Path): For VMS, transform into canonical form the
9527         project path.
9528
9529 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9530
9531         * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
9532         true if configurable run-time or No_Run_Time is set.
9533         (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
9534         processing an unit which is not the one being compiled.
9535
9536 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9537
9538         * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
9539         Replace UC by Ada.UC
9540
9541         * s-bitops.adb: Get rid of System.Pure_Exceptions.
9542         Replace UC by Ada.UC
9543
9544 2007-06-06  Robert Dewar  <dewar@adacore.com>
9545
9546         * scng.adb: (Check_End_Of_Line): Deal with very long lines
9547
9548 2007-06-06  Robert Dewar  <dewar@adacore.com>
9549
9550         * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
9551         Remove no longer used nodes.
9552
9553 2007-06-06  Javier Miranda  <miranda@adacore.com>
9554             Ed Schonberg  <schonberg@adacore.com>
9555             Robert Dewar  <dewar@adacore.com>
9556
9557         * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
9558         on obsolescent withed unit in case of limited-withed units.
9559         (Analyze_Compilation_Unit): Add guard to code that removed an
9560         instantiation from visibility, to prevent compiler aborts when
9561         instantiation is abandoned early on.
9562         (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
9563         current unit being analyzed, and Distinguish local incomplete types
9564         from limited views of types declared elsewhere.
9565         (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
9566         to state that the class-wide entity is shared by the limited-view
9567         and the full-view.
9568         (Analyze_With_Clause): Improve placement of flag for case of
9569         unimplemented unit.
9570         (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
9571         manner similar to GNAT.Current_Exception. This is a violation of
9572         restriction (No_Exception_Propagation), and also inhibits the
9573         optimization of local raise to goto.
9574         (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
9575         and if so set Most_Recent_Exception_Used flag in Opt, and also check
9576         for violation of restriction No_Exception_Propagation.
9577
9578 2007-06-06  Javier Miranda  <miranda@adacore.com>
9579             Hristian Kirtchev  <kirtchev@adacore.com>
9580             Gary Dismukes  <dismukes@adacore.com>
9581
9582         * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
9583         use of entity Exception_Occurrence if it is not available in the
9584         target run-time.
9585
9586         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
9587         concurrent types are declared within an Ada 2005 generic, build their
9588         corresponding record types since they are needed for overriding-related
9589         semantic checks.
9590         (Analyze_Protected_Type): Rearrange and simplify code for testing that a
9591         protected type does not implement a task interface or a nonlimited
9592         interface.
9593         (Analyze_Task_Type): Rearrange and simplify code for testing that a task
9594         type does not implement a protected interface or a nonlimited interface.
9595         (Single_Task_Declaration, Single_Protected_Declaration): use original
9596         entity for variable declaration, to ensure that debugging information
9597         is correcty generated.
9598         (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
9599         routines if the expander is not active.
9600         (Analyze_Task_Body): Mark all handlers to stop optimization of local
9601         raise, since special things happen for task exception handlers.
9602
9603         * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
9604         concurrent types declared within a generic.
9605         (Check_Dispatching_Operation): Do not emit warning about late interface
9606         operations in the context of an instance.
9607         (Check_Dispatching_Call): Remove restriction against calling a
9608         dispatching operation with a limited controlling result.
9609         (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
9610         Register_Interface_DT_Entry by calls to Register_Primitive.
9611         (Check_Dispatching_Formals): Handle properly a function with a
9612         controlling access result.
9613
9614 2007-06-06  Robert Dewar  <dewar@adacore.com>
9615             Arnaud Charlet  <charlet@adacore.com>
9616
9617         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
9618         Check for restriction No_Implementation_Attributes if in Ada 95 mode.
9619         (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
9620         (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
9621         message when using a VM, since this attribute is not supported.
9622         (Analyze_Record_Representation_Clause): Give unrepped component warnings
9623
9624         * usage.adb: Add new warning for renaming of function return objects
9625         Indicate that -gnatwp and -gnatwP concern front-end inlining
9626         Add line for -gnatyg
9627         Add usage information for -gnatw.c/C
9628
9629 2007-06-06  Robert Dewar  <dewar@adacore.com>
9630             Ed Schonberg  <schonberg@adacore.com>
9631
9632         * sem_ch5.adb
9633         (Find_Var): Do not consider function call in test for infinite loop
9634         warning if warnings set off for function entity.
9635         (One_Bound): Do not create a temporary for a loop bound if it is a
9636         character literal.
9637         (Analyze_Assignment): Traverse the right hand side of an assignment and
9638         mark all allocators as static coextensions.
9639         (Analyze_Assignment): Exempt assignments involving a dispatching call
9640         to a function with a controlling access result from the check requiring
9641         the target to be class-wide.
9642
9643 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9644             Ed Schonberg  <schonberg@adacore.com>
9645             Robert Dewar  <dewar@adacore.com>
9646             Javier Miranda  <miranda@adacore.com>
9647
9648         * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
9649         chain of coextensions when an allocator serves as the root of such a
9650         chain.
9651         (Propagate_Coextensions): Remove the test for the root being an
9652         allocator.
9653         (Resolve_Allocator): Add condition to ensure that all future decoration
9654         occurs on an allocator node. Add processing and cleanup for static
9655         coextensions.
9656         (Valid_Conversion): If the operand type is the limited view of a
9657         class-wide type, use the non-limited view is available to determine
9658         legality of operation.
9659         (Ambiguous_Character): move to spec, for use elsewhere.
9660         (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
9661         (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
9662         character literals.
9663         (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
9664         Do_Division_Check flag explicitly.
9665         (Resolve_Actuals): If the actual is of a synchronized type, and the
9666         formal is of the corresponding record type, this is a call to a
9667         primitive operation of the type, that is declared outside of the type;
9668         the actual must be unchecked-converted to the type of the actual
9669         (Resolve_Call): Kill all current values for any subprogram call if
9670         flag Suppress_Value_Tracking_On_Call is set.
9671         (Resolve_Type_Conversion): Generate error message the the operand
9672         or target of interface conversions come from a limited view.
9673         (Check_Infinite_Recursion): Ignore generated calls
9674         (Check_Allocator_Discrim_Accessibility): New procedure for checking
9675         that an expression that constrains an access discriminant in an
9676         allocator does not denote an object with a deeper level than the
9677         allocator's access type.
9678         (Resolve_Allocator): In the case of an allocator initialized by an
9679         aggregate of a discriminated type, check that associations for any
9680         access discriminants satisfy accessibility requirements by calling
9681         Check_Allocator_Discrim_Accessibility.
9682         (Resolve_Equality_Op): Handle comparisons of anonymous access to
9683         subprogram types in the same fashion as other anonymous access types.
9684         (Resolve_Concatenation_Arg): Remove initial character '\' in an error
9685         message that is not a continuation message.
9686         (Resolve_Type_Conversion): Add missing support for conversion to
9687         interface type.
9688         (Resolve_Actuals): Introduce a transient scope around the call if an
9689         actual is a call to a function returning a limited type, because the
9690         resulting value must be finalized after the call.
9691         (Resolve_Actuals): If the call was given in prefix notations, check
9692         whether an implicit 'Access reference or implicit dereference must be
9693         added to make the actual conform to the controlling formal.
9694
9695 2007-06-06  Robert Dewar  <dewar@adacore.com>
9696             Javier Miranda  <miranda@adacore.com>
9697
9698         * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
9699         (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
9700         overriding of an inherited private subprogram now there is no need to
9701         inherit its dispatching slot and reduce the size of the dispatch table.
9702         Set_All_DT_Position now ensures that the same slot is now assigned to
9703         both entities. This is required to statically build the dispatch table.
9704         (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
9705         of calling Set_All_DT_Position to re-evaluate the position of the
9706         entries in the dispatch table. Such reevaluation is not desired if
9707         the tagged type is already frozen.
9708
9709 2007-06-06  Hristian Kirtchev  <kirtchev@adacore.com>
9710             Gary Dismukes  <dismukes@adacore.com>
9711             Robert Dewar  <dewar@adacore.com>
9712             Javier Miranda  <miranda@adacore.com>
9713
9714         * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
9715         reference acts as an lvalue when the attribute name modifies the prefix
9716         (Is_Coextension_Root): New routine.
9717         (Mark_Static_Coextensions): New routine.
9718         (Type_Access_Level): Revise code for checking the level of the
9719         anonymous access type of a return object.
9720         (Safe_To_Capture_Value): Not safe to capture if Address_Taken
9721         (Matches_Prefixed_View_Profile): Remove the no longer necessary
9722         retrieval of the corresponding controlling record type.
9723         (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
9724         concurrent types declared within a generic as well as class wide types.
9725         Emit a mode incompatibility error whenever a protected entry or routine
9726         override an interface routine whose first parameter is not of mode
9727         "out", "in out" or access to variable.
9728         (Overrides_Synchronized_Primitive): Rename to
9729         Find_Overridden_Synchronized_Primitive.
9730         (Collect_Interface_Components): New subprogram that collects all the
9731         components of a tagged record containing tags of secondary dispatch
9732         tables.
9733         (Add_Global_Declaration): New procedure
9734         (Abstract_Interface_List): Handle properly the case of a subtype of a
9735         private extension.
9736         (Type_Access_Level): In the case of a type whose parent scope is a
9737         return statement, call Type_Access_Level recursively on the enclosing
9738         function's result type to determine the level of the return object's
9739         type.
9740         (Build_Elaboration_Entity): Build name of elaboration entity from the
9741         scope chain of the entity, rather than the unit name of the file name.
9742         (Check_Nested_Access): New procedure.
9743         (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
9744         (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
9745         (Get_Renamed_Entity): Utility routine for performing common operation
9746         of chasing the Renamed_Entity field of an entity.
9747
9748 2007-06-06  Robert Dewar  <dewar@adacore.com>
9749
9750         * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
9751         elaboration model
9752         (Check_A_Call): Add check for entry call which was causing blowup
9753
9754 2007-06-06  Olivier Hainque  <hainque@adacore.com>
9755
9756         * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
9757         special code on ia64-vms to handle major incompatibilities between the
9758         GCC unwinding ABI and the VMS Condition Handling Facility, both calling
9759         this routine with a very different set of arguments and expectations on
9760         the return value.
9761
9762 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9763
9764         * socket.c (__gnat_close_signalling_fd): New function.
9765         (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
9766         __gnat_safe_getservbyname, __gnat_safe_getservbyport):
9767         New supporting functions for task safe Netdb operations.
9768
9769 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9770             Olivier Hainque  <hainque@adacore.com>
9771
9772         * a-except-2005.ads, a-except-2005.adb
9773         (Raise_From_Controlled_Operation): New procedure in
9774         (private part of) Ada.Exceptions (standard runtime version). Used to
9775         provide informational exception message when Program_Error is raised as
9776         a result of an Adjust or Finalize operation propagating an exception.
9777         (Rmsg_28): Fix description for E.4(18) check.
9778         (Raise_Current_Excep): Call Debug_Raise_Exception just before
9779         propagation starts, to let debuggers know about the event in a reliable
9780         fashion.
9781         Take the address of E and dereference to make sure it is homed on stack
9782         and prevent the stores from being deleted, necessary for proper
9783         debugger behavior on "break exception" hits.
9784         (Local_Raise): Moved to System.Exceptions
9785
9786         * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
9787         exception message from the current occurrence and raise Program_Error
9788         has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
9789
9790 2007-06-06  Jose Ruiz  <ruiz@adacore.com>
9791             Arnaud Charlet  <charlet@adacore.com>
9792
9793         * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
9794         lock, if needed.
9795
9796         * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
9797         priority associated to a lock.
9798
9799         * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
9800         assertion to take into account case of no abort restriction.
9801         (Initialize_Protection_Entries): Add initialization for the field
9802         New_Ceiling associated to the protected object.
9803         (Unlock_Entries): Change the ceiling priority of the underlying lock, if
9804         needed.
9805
9806         * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9807         since this function needs to be set consistently with Update_Exception.
9808
9809         * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
9810         since this function needs to be set consistently with Update_Exception.
9811
9812         * s-taskin.ads: Update comments on
9813         Interrupt_Server_Blocked_On_Event_Flag.
9814         (Unbind_Handler): Fix handling of server_task wakeup
9815         (Server_Task): Set self's state so that Unbind_Handler can take
9816         appropriate actions.
9817         (Common_ATCB): Now use a constant from System.Parameters to determine
9818         the max size of the Task_Image field.
9819
9820         * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
9821         Initialize_Analyzer function.
9822         ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
9823         take into account case of no abort restriction.
9824         ([Vulnerable_]Complete_Master): Modify assertion.
9825
9826         * s-tataat.adb (Finalize): Use the nestable versions of
9827         Defer/Undefer_Abort.
9828
9829         * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
9830
9831         * s-tpobop.ads: Update comments.
9832
9833         * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
9834         of locking the object manually, to avoid inconsistencies between
9835         Lock/Unlock_Entry assertions.
9836
9837         * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
9838         terminating
9839         application and System.Parameters.No_Abort is True.
9840         Update comments on Interrupt_Server_Blocked_On_Event_Flag.
9841         (Unbind_Handler): Fix handling of server_task wakeup
9842         (Server_Task): Set self's state so that Unbind_Handler can take
9843         appropriate actions.
9844
9845 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9846
9847         * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
9848         declarations instead of an explicit null body, for conciseness.
9849
9850 2007-06-06  Robert Dewar  <dewar@adacore.com>
9851
9852         * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
9853         illegal aggregate and the type is still Any_Composite.
9854         (Subtypes_Statically_Match): Fix problem of empty discriminant list
9855
9856 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9857
9858         * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
9859         to prevent subsequent expansion.
9860
9861 2007-06-06  Robert Dewar  <dewar@adacore.com>
9862
9863         * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
9864
9865 2007-06-06  Ed Schonberg  <schonberg@adacore.com>
9866             Robert Dewar  <dewar@adacore.com>
9867
9868         * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
9869         exceptions.
9870         (Write_Itype): Handle case of string literal subtype, which
9871         comes up in this context.
9872         (Update_Itype): when debugging expanded code, update sloc of itypes
9873         associated with defining_identifiers and ranges, for gdb use.
9874         (Sprint_Node_Actual): Add static keyword to object or exception
9875         declaration output if Is_Statically_Allocated is True.
9876         (Sprint_End_Label): Set entity of end marker for a subprogram, package,
9877         or task body, so that the tree carries the proper Sloc information for
9878         debugging use.
9879         (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
9880
9881 2007-06-06  Arnaud Charlet  <charlet@adacore.com>
9882
9883         * s-secsta.adb (Chunk): Ensure this object has a static size known at
9884         compile time, to avoid dynamic memory allocation
9885         (Elaboration code): Only use dynamic memory allocation when needed.
9886
9887 2007-06-06  Quentin Ochem  <ochem@adacore.com>
9888
9889         * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
9890         "Overflow_Guard".
9891         (Stack_Analyzer): Added field "Overflow_Guard"
9892         (Task_Result): Added field "Overflow_Guard".
9893         (Index_Str): New constant.
9894         (Task_Name_Str): New constant.
9895         (Actual_Size_Str): New constant.
9896         (Pattern_Array_Element_Size): New constant.
9897         (Get_Usage_Range): New subprogram.
9898         (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
9899         Now align the output.
9900         Added comments.
9901         (Initialize): Added value for Overflow_Guard.
9902         (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
9903         Update the value of the overflow guard according to the actual
9904         beginning of the pattern array.
9905         (Initialize_Analyzer): Added parameter Overflow_Guard.
9906         Take this parameter into accound when computing the max size.
9907         (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
9908         (Report_Result): Removed extra useless procedure.
9909         Updated call to Output_Result.
9910         Moved full computation of the Task_Result here.
9911
9912 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9913
9914         * g-soccon-darwin.ads, gen-soccon.c: Add new constant
9915         Thread_Blocking_IO, always True by default, set False on a per-runtime
9916         basis.
9917         Add Windows-specific constants
9918         Add new constant Need_Netdb_Buffer.
9919         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9920         not, whether to use getXXXbyYYY_r.
9921
9922         * gsocket.h: Add new constant Need_Netdb_Buffer.
9923         Add new macros to indicate whether getXXXbyYYY is thread safe and, if
9924         not, whether to use getXXXbyYYY_r.
9925
9926 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9927
9928         * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
9929         than their first call.
9930         Add type Dummy_Communication_Block used in the generation of the pre-
9931         defined dispatching primitive _disp_asynchronous_select.
9932         (Storage_Element): Put Pragma Universal_Aliasing on it.
9933
9934 2007-06-06  Vincent Celier  <celier@adacore.com>
9935
9936         * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
9937         function.
9938
9939         * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
9940         letter if it is not followed by a '/' or a '\'.
9941         (Windows): New Boolean function
9942
9943         * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
9944         Ada 2005.
9945         (Containing_Directory): On Windows, keep at least one '/' or '\' after a
9946         drive letter.
9947         (Containing_Directory): Raise Use_Error when the directory is a root
9948         directory.
9949         (Extension): When returning the result, use a conversion to Result_Type,
9950         not a qualification.
9951
9952 2007-06-06  Robert Dewar  <dewar@adacore.com>
9953
9954         * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
9955         (Set_Style_Check_Options): Recognize new -gnatyg style switch
9956
9957         * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
9958         Warn_On_Non_Local_Exception to False, to turn off warnings for
9959         No_Exception_Propagation in ZFP runtime.
9960         (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
9961         back-ends.
9962         (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
9963
9964 2007-06-06  Vincent Celier  <celier@adacore.com>
9965
9966         * switch-b.adb (Scan_Binder_Switches): Add processing for new
9967         switches -R and -Z
9968
9969         * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
9970         (Scan_Make_Switches): Recognize new switch -aP
9971
9972 2007-06-06  Matthew Gingell  <gingell@adacore.com>
9973             Jose Ruiz  <ruiz@adacore.com>
9974
9975         * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
9976         VxWorks task descriptor in the Ada run time, call a C subprogram
9977         (__gnat_get_stack_info) that extracts the required information.
9978
9979         * sysdep.c: Back out temporary lynxos workaround.
9980         (__gnat_get_stack_info): Add this procedure that passes to the Ada run
9981         time the stack information associated to the currently executing task.
9982         Only VxWorks systems require this function.
9983
9984 2007-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9985
9986         * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
9987         add the stack bias if the offset is computed from a frame address.
9988         (__gnat_backtrace): Adjust for above change.
9989
9990 2007-06-06  Thomas Quinot  <quinot@adacore.com>
9991
9992         * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
9993         PE_Non_Transportable_Actual.
9994         (By_Descriptor_Last): New constant.
9995         (By_Copy_Return): Likewise.
9996
9997 2007-06-06  Vincent Celier  <celier@adacore.com>
9998
9999         * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
10000         is.
10001
10002         * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
10003         /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
10004         /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
10005         Add missing comment for /OPTIMIZE=SPACE
10006         Add entry for OPTIMIZE=SPACE
10007         Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
10008         Add documentation for new qualifiers corresponding to -gnatw.c/.C
10009
10010 2007-06-06  Vincent Celier  <celier@adacore.com>
10011             Robert Dewar  <dewar@adacore.com>
10012
10013         * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
10014         -gnatw.C)
10015
10016         * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
10017         Document gnatbind switch -a
10018         (case Constructions): Document that variables declarations are allowed
10019         for previously declared variables.
10020         Fix external lib project example
10021         -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
10022         Indicate that "#if not X or Y then" is not allowed in input files to
10023         gnatprep.
10024         Document gnatw.x and gnatw.X warning flags
10025         Mention -Winline switch to activate warnings when back-end inlining is
10026         ineffective.
10027         Add gnatcheck rule descriptions
10028         Describe how to use the GNAT driver to call a tool on a closure.
10029         Describe how to run project-wide checks or metrics.
10030         Document gnatbind's -R option
10031         Updated to account for Ada 2005 support
10032
10033         * gnat_rm.texi (Case Construction): Allow variable declarations for
10034         previously declared variables.
10035         (Representation Clauses and Pragmas): Lift restriction on alignment
10036         clauses for record types.
10037         (Ada.Characters.*): Fix typo in reference to A.3.3(27).
10038         Document No_Exception_Propagation restriction
10039         Document No_Body pragma
10040         Updated to account for Ada 2005 support; corrected some typos
10041         (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
10042
10043         * gnat-style.texi: Make it clear that we never use mode IN for
10044         procedures or functions
10045
10046         * ug_words: Add entries for -gnatw.x and -gnatw.X
10047         Add entries for -gnatw.c/.C
10048
10049 2007-06-06  Pascal Obry  <obry@adacore.com>
10050             Vincent Celier  <celier@adacore.com>
10051
10052         * makegpr.adb (Add_Archive_Path): Use untouched object and library
10053         dirs and library name.
10054         (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
10055         comments.
10056         (Build_Library): Idem.
10057         (Compile_Individual_Sources): Idem.
10058         (Compile_Link_With_Gnatmake): Idem.
10059         (Compile_Sources): Idem.
10060         (Get_Imported_Directories): Idem.
10061         (Link_Executables): Idem. Same change for the executable dir.
10062         (Check_Compilation_Needed): C_Source_Path new variable containing
10063         the canonical form of Source_Path to check against the source names
10064         in the dependency file.
10065         (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
10066         verbose mode, display the name of the object directory we're changing
10067         to.
10068         (Saved_Switches): New name of table X_Switches
10069         (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
10070         (Usage): New line for switch -aP
10071         (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
10072         testing if a directory should be added to the search path.
10073
10074 2007-06-06  Javier Miranda  <miranda@adacore.com>
10075
10076         * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads, 
10077         a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
10078         declaration after freezing point of all its associated tagged types;
10079         otherwise such types are frozen too early.
10080
10081 2007-06-06  Robert Dewar  <dewar@adacore.com>
10082
10083         * a-reatim.adb: Documentation addition
10084
10085         * g-cgideb.adb: Minor code reorganization
10086
10087         * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
10088         mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
10089         s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
10090
10091         * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
10092         function.  Change name New_Scope to Push_Scope
10093         (Get_Debug_Flag_K): Remove unused obsolete function.
10094
10095         * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
10096         Push_Scope.
10097
10098         * makeusg.adb: Update Copyright notice
10099         Add line for switch -aP
10100
10101         * makeusg.adb: Fix wording of some usage messages
10102
10103         * s-assert.adb (Raise_Assert_Failure): Add call to
10104         Debug_Raise_Assert_Failure.
10105
10106         * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
10107         (2, Standard'Alignment) for compatibility with AAMP (where alignment
10108         is restricted to 1).
10109
10110         * s-wchjis.adb: Remove use of System.Pure_Exceptions
10111
10112         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
10113         node location to No_Location when we're not debugging the expanded
10114         code.
10115
10116 2007-05-22  Alexandre Oliva  <aoliva@redhat.com>
10117
10118         * misc.c (enumerate_modes): Consider log2_b to always be one.
10119
10120 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
10121
10122         * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
10123
10124 2007-05-02  Pascal Obry  <obry@adacore.com>
10125
10126         * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
10127         to use Stream_IO.File_Type. This is needed to make use of the UTF-8
10128         encoding support of Stream_IO.
10129         (Write_Unit): Idem.
10130
10131         * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
10132         filename and corresponding encoding to match the OS requirement.
10133         (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
10134         routine will fail on specific devices like CON: AUX: ...
10135
10136         PR ada/29856: Add missing braces
10137
10138 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10139
10140         PR ada/31660
10141         * ada-tree.h (lang_tree_node): Fix typo in chain_next.
10142
10143 2007-04-21  Jan Hubicka  <jh@suse.cz>
10144
10145         * misc.c (gnat_expand_body): Don't call target for destructors,
10146         avoid redundant check on syntax errors.
10147
10148 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10149
10150         * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
10151         instead of checking GIMPLE_STMT_P in chain_next.
10152
10153 2007-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10154
10155         PR ada/31576
10156         * system-linux-alpha.ads: Disable constant condition warning for the
10157         Default_Bit_Order variable.
10158         * system-linux-s390.ads: Likewise.
10159         * system-linux-s390x.ads: Likewise.
10160         * system-linux-sparc.ads: Likewise.
10161
10162 2007-04-06  Javier Miranda  <miranda@adacore.com>
10163             Matt Heaney  <heaney@adacore.com>
10164             Robert Dewar  <dewar@adacore.com>
10165
10166         a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10167         a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
10168         a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
10169         a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
10170         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
10171         a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
10172         a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
10173         a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
10174         a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
10175         a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
10176         a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
10177         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
10178         a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
10179         a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
10180         a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
10181         a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
10182         a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
10183         i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
10184         unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
10185         a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
10186         a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
10187         a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
10188         expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
10189         s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
10190         s-taprop-tru64.adb, s-taprop-irix.adb,
10191         s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
10192         s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
10193         s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
10194         s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb, 
10195         s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads, 
10196         a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb, 
10197         a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads, 
10198         g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads, 
10199         s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb, 
10200         s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads, 
10201         s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb, 
10202         s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, 
10203         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb, 
10204         s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb, 
10205         a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads, 
10206         a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads, 
10207         a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb, 
10208         a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
10209         a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads, 
10210         a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
10211         access types.
10212         Update documentation.
10213         Minor rewording.
10214
10215 2007-04-06  Robert Dewar  <dewar@adacore.com>
10216
10217         * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
10218         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
10219         system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
10220         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10221         system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
10222         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
10223         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
10224         system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
10225         system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
10226         system-hpux-ia64.ads, targparm.adb,
10227         targparm.ads (Functions_Return_By_DSP_On_Target): Removed
10228
10229         * system.ads: Move Functions_Return_By_DSP to obsolete section,
10230         kept for bootstrap purposes only.
10231
10232 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10233
10234         * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10235         s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
10236         s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
10237         (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
10238
10239 2007-04-06  Robert Dewar  <dewar@adacore.com>
10240
10241         * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
10242         (Local_Raise): New dummy procedure called when a raise is converted
10243         to a local goto. Used for debugger to detect that the exception
10244         is raised.
10245
10246         * debug.adb: Document new d.g flag (expand local raise statements to
10247         gotos even if pragma Restriction (No_Exception_Propagation) is not set)
10248
10249         * exp_sel.adb: Use Make_Implicit_Exception_Handler
10250
10251         * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
10252         suppress warnings for unused handlers.
10253         (Warn_If_No_Propagation):  Use new flag -gnatw.x to suppress
10254         warnings for raise statements not handled locally.
10255         (Get_RT_Exception_Entity): New function
10256         (Get_Local_Call_Entity): New function
10257         (Find_Local_Handler): New function
10258         (Warn_If_No_Propagation): New procedure
10259         (Expand_At_End_Handler): Call Make_Implicit_Handler
10260         (Expand_Exception_Handlers): Major additions to deal with local handlers
10261         (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
10262         Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
10263         for local raise
10264
10265         * exp_ch11.ads (Get_RT_Exception_Entity): New function
10266         (Get_Local_Call_Entity): New function
10267
10268         * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
10269         of restrictions that the binder will never suggest adding.
10270
10271         * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
10272         to No_Elist.
10273
10274         * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
10275         be with'ed in the presence of pragma Restriction
10276         (No_Exception_Propagation).
10277
10278         * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
10279
10280         * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
10281         parameter, then the handler is not a suitable target for a local raise,
10282         and this is a violation of restriction No_Exception_Propagation.
10283         (Analyze_Handled_Statements): Analyze choice parameters in exception
10284         handlers before analyzing statement sequence (needed for proper
10285         detection of local raise statements).
10286         (Analyze_Raise_Statement): Reraise statement is a violation of the
10287         No_Exception_Propagation restriction.
10288
10289         * s-rident.ads: Add new restriction No_Exception_Propagation
10290
10291         * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
10292         function, like Make_Exception_Handler but sets Local_Raise_Statements
10293         to No_List.
10294         (Add_Unique_Serial_Number): Deal with case where this is called during
10295         processing of configuration pragmas.
10296
10297 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10298             Pat Rogers  <rogers@adacore.com>
10299             Pascal Obry  <obry@adacore.com>
10300
10301         * g-stsifd-sockets.adb: New file.
10302
10303         * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
10304         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
10305         g-socthi-vms.adb: Move signalling
10306         fd management to a nested package, so that they can conveniently be
10307         moved to a subunit that is shared across Windows, VMS, and VxWorks
10308         (Ada implementation) or completed with imported bodies from socket.c
10309         (UNIX case).
10310         (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
10311         subprograms.
10312         (Check_Selector): Use Read_Signalling_Fd to read and discard data from
10313         the signalling file descriptor.
10314         (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
10315         signalling file descriptor.
10316         (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
10317         instead of creating a pair of sockets for signalling here.
10318
10319         * g-socthi.adb: Ditto.
10320         Set the runtime process to ignore SIGPIPEs on platforms that support
10321         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10322
10323         * g-socthi-mingw.adb: Ditto.
10324         (WS_Version): Use Windows 2.2.
10325         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10326
10327         * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
10328         Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
10329
10330         * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
10331         added GNAT byte swapping facility
10332         Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
10333
10334         * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
10335
10336         * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
10337         New subprograms.
10338         (__gnat_create_signalling_fds): New subprogram.
10339         Set the runtime process to ignore SIGPIPEs on platforms that support
10340         neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
10341
10342 2007-04-06  Hristian Kirtchev  <kirtchev@adacore.com>
10343             Vincent Celier  <celier@adacore.com>
10344
10345         * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
10346         New version of Ada.Calendar which supports the new upper bound of Ada
10347         time (2399-12-31 86_399.999999999).
10348         The following modifications have been made to the package:
10349          - New representation of time as count of nanoseconds since the start of
10350            Ada time (1901-1-1 0.0).
10351          - Target independent Split and Time_Of routines which service both
10352            Ada 95 and Ada 2005 code.
10353          - Target independent interface to the Ada 2005 children of Calendar.
10354          - Integrated leap seconds into Ada 95 and Ada 2005 mode.
10355          - Handling of non-leap centenial years.
10356          - Updated clock function.
10357          - Updated arithmetic and comparison operators.
10358
10359         * a-caldel.adb (To_Duration): Add call to target independent routine in
10360         Ada.Calendar to handle the conversion of time to duration.
10361
10362         * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
10363         (UTC Offset).
10364         If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
10365         set off to 0.
10366         (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
10367         targets do not have a natural time zone, GMT is used as a default.
10368         (__gnat_get_task_options): New.
10369
10370         * a-direct.adb (Modification_Time): Add with and use clauses for
10371         Ada.Calendar and Ada.
10372         Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
10373         since it is no longer needed.
10374         (Duration_To_Time): Removed.
10375         (OS_Time_To_Long_Integer): Removed.
10376         (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
10377         Formatting Time_Of routines which automatically handle time zones,
10378         buffer periods and leap seconds.
10379
10380         * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
10381         target independent routines in Ada.Calendar.
10382
10383         * a-calfor.ads, a-calfor.adb: 
10384         Code cleanup and addition of validity checks in various routines.
10385         (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
10386         Ada.Calendar.
10387
10388         * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
10389         independent routine in Ada.Calendar.
10390
10391 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10392
10393         * adaint.c: 
10394         (convert_addresses): Adjust prototype and dummy definition to expect an
10395          extra file_name argument.
10396
10397         * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
10398         filling the now expected file_name argument with the appropriate
10399         argv[0] expansion.
10400         (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
10401         (tracebk): Array of void * instead of char *, corresponding to what
10402          convert_addresses expects.
10403         (exename): New static global, to hold the executable file name to be
10404         used in all convert_addresses invocations.
10405         (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
10406         change.
10407         (__gnat_gmem_a2l_initialize): Resolve exename.
10408         (__gnat_convert_addresses): Use exename as the convert_addresses
10409         file_name argument.
10410
10411         * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
10412         "convert_addresses", now expecting a filename argument. Import the
10413         necessary entities to compute the filename to use and pass it to
10414         convert_addresses.
10415
10416 2007-04-06  Matt Gingell  <gingell@adacore.com>
10417
10418         * system-aix.ads: Back out previous change.
10419         (Functions_Return_By_DSP): Removed
10420
10421 2007-04-06  Pascal Obry  <obry@adacore.com>
10422
10423         * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
10424         or the monotonic used by Ada.Real_Time) to compute the sleep duration
10425         on Windows.
10426
10427 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10428
10429         * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
10430         function. Its value changes in different VxWorks versions, and it is
10431         now handled by the function __gnat_get_task_options.
10432
10433         * s-taprop-vxworks.adb (Create_Task): Call the function
10434         __gnat_get_task_options to get the required options for creating a task.
10435
10436 2007-04-06  Pascal Obry  <obry@adacore.com>
10437             Thomas Quinot  <quinot@adacore.com>
10438
10439         * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
10440         dealing with filename.
10441         (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
10442         filename from a standard string to a wide-string depending on the
10443         encoding value.
10444         (__gnat_freopen): Idem.
10445         (__gnat_current_time): New function (wrapper for time(3) standard C
10446         function).
10447
10448         * g-os_lib.ads (Current_Time): New function. Returns the current
10449         system time as an OS_Time value.
10450
10451         * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
10452         (Monotonic_Clock): Same.
10453
10454 2007-04-06  Quentin Ochem  <ochem@adacore.com>
10455
10456         * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
10457         not on a natural.
10458         (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
10459
10460 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
10461
10462         * a-retide.adb: Add elaboration code to ensure that the tasking run
10463         time is initialized when using delay operations even when no task is
10464         created.
10465
10466 2007-04-06  Javier Miranda  <miranda@adacore.com>
10467
10468         * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
10469         component Num_Prim_Ops.
10470         (Set_Num_Prim_Ops): Removed.
10471         Remove all the assertions because all the routines of this
10472         package are inline always.
10473         (Get_Offset_Index): Add support to primary dispatch tables.
10474         Move the documentation about the dispatch table to a-tags.ads
10475         (Set_External_Tag): Removed
10476         (Inherit_TSD): Removed.
10477         (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
10478         moved to a-tags.ads
10479         (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
10480         Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
10481         of the TSD field "Table" because this field has been renamed to
10482         "Ifaces_Table".
10483         (Inherit_CPP_DT): Removed.
10484         (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
10485         Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
10486         declarations have been moved to a-tags.ads
10487         (Check_Size): Removed.
10488         (Expanded_Name): Updated to get access to the new field of TSD
10489         containing the address of the expanded name.
10490         (Get_Access_Level/Set_Access_Level): Removed.
10491         (Get_Predefined_Prim_Op_Address): Removed.
10492         (Set_Predefined_Prim_Op_Address): Removed.
10493         (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
10494         (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
10495         (Set_Expanded_Name): Removed.
10496         (Inherit_DT): Removed.
10497         (Inherit_CPP_DT): Removed.
10498         (Set_RC_Offset): Removed.
10499         (Set_TSD): Removed.
10500         (Base_Address): New function that displaces "this" to point to the base
10501         of the object (that is, to point to the primary tag of the object).
10502
10503 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10504             Javier Miranda  <miranda@adacore.com>
10505
10506         * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
10507         anonymous access component, do not create a master_id if type already
10508         has one, as may happen if the type is a subcomponent of a packed array
10509         type.
10510         (Build_Init_Procedure, Component_Needs_Simple_Initialization,
10511         Initialize_Tag): Remove code associated with the old CPP pragmas.
10512         CPP_Virtual and CPP_Vtable are no longer supported.
10513         (Build_Offset_To_Top_Internal): Add support for concurrent record types
10514         (Build_Offset_To_Top_Functions): Add support for concurrent record types
10515         (Freeze_Record_Type): Remove call to
10516         Init_Predefined_Interface_Primitives.
10517         (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
10518         code required to initialize the tags of the secondary dispatch tables.
10519         This leaves the algoritm more clear.
10520         (Init_Secondary_Tags): Add support for concurrent record types
10521         (Make_Predefined_Primitive_Specs): Code cleanup.
10522         (Predefined_Primitive_Bodies): Code cleanup.
10523         (Build_Master_Renaming): New local subprogram.
10524         (Expand_N_Full_Type_Declaration): Build the master_id associated with
10525         anonymous access to task type components.
10526         (Expand_N_Subtype_Indication): The bounds of a range constraint in a
10527         subtype indication are resolved during analysis, and must not be done
10528         here.
10529         (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
10530
10531 2007-04-06  Geert Bosch  <bosch@adacore.com>
10532             Ed Schonberg  <schonberg@adacore.com>
10533             Javier Miranda  <miranda@adacore.com>
10534             Bob Duff  <duff@adacore.com>
10535
10536         * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
10537         for conversion of a Float_Type'Truncation to integer.
10538
10539         * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
10540         check if a node is an attribute that can be handled directly by the
10541         back end.
10542         (Expand_N_Attribute_Reference): Suppress expansion of floating-point
10543         attributes that can be handled directly by the back end.
10544         (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
10545         use new predicate Is_Access_Protected_Subprogram_Type.
10546         (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
10547         and Unchecked_Union if it is generated as part of the default  Output
10548         procedure for a type with default discriminants.
10549         (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
10550         if we are compiling under restriction No_Dispatching_Calls.
10551         (Constrained): Use Underlying_Type, in case the type is private without
10552         discriminants, but the full type has discriminants.
10553         (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
10554         call to Build_Get_Access_Level.
10555         (Expand_N_Attribute_Reference): The use of 'Address with class-wide
10556         interface objects requires a call to the run-time subprogram that
10557         returns the base address of the object.
10558         (Valid_Conversion): Improve error message on illegal attempt to store
10559         an anonymous access to subprogram value into a record component.
10560
10561         * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
10562         null".
10563         (Simplify_Type_Conversion): New procedure that performs simplification
10564         of Int_Type (Float_Type'Truncation (X)).
10565         (Resolve_Type_Conversion): Call above procedure after resolving operand
10566         and before performing checks. This replaces the existing ineffective
10567         code in Exp_Ch4.
10568         (Set_String_Literal_Subtype): When creating the internal static lower
10569         bound subtype for a string literal, use a newly created copy of the
10570         subtree representing the lower bound.
10571         (Resolve_Call): Exclude build-in-place function calls from transient
10572         scope treatment. Update comments to describe this exception.
10573         (Resolve_Equality_Op): In case of dispatching call check violation of
10574         restriction No_Dispatching_Calls.
10575         (Resolve_Call): If the call returns an array, the context imposes the
10576         component type of the array, and the function has one non-defaulted
10577         parameter, rewrite the call as the indexing of a call with a single
10578         parameter, to handle an Ada 2005 syntactic ambiguity for calls written
10579         in prefix form.
10580         (Resolve_Actuals): If an actual is an allocator for an access parameter,
10581         the master of the created object is the innermost enclosing statement.
10582         (Remove_Conversions): For a binary operator, check if type of second
10583         formal is numeric, to check if an abstract interpretation is present
10584         in the case of exponentiation as well.
10585
10586 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10587             Bob Duff  <duff@adacore.com>
10588
10589         * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
10590         copying a parameter list in a call, set properly the First_Named_Formal
10591         and Next_Named_Formal fields in the new list and in the enclosing call.
10592         (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
10593         names, to ease typing in the debugger. Improve comments.
10594         (Watch_Node): New variable, intended to be set in the debugger.
10595         (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
10596         called when the watched node is created.
10597         (New_Node_Debugging_Output): Combined version of local procedures
10598         New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
10599         with a parameter so that conditional breakpoints like "if Node = 12345"
10600         work.
10601         (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
10602         Add Elist1 function
10603
10604 2007-04-06  Thomas Quinot  <quinot@adacore.com>
10605             Ed Schonberg  <schonberg@adacore.com>
10606             Gary Dismukes  <dismukes@adacore.com>
10607
10608         * checks.ads, checks.adb (Selected_Range_Checks): No range check is
10609         required for a conversion between two access-to-unconstrained-array
10610         types.
10611         (Expr_Known_Valid): Validity checks do not apply to discriminants, but
10612         to discriminant constraints on discriminant objects. This rule must
10613         apply as well to discriminants of protected types in private components.
10614         (Null_Exclusion_Static_Checks): If No_Initialization is set on an
10615         object of a null-excluding access type then don't require the
10616         the object declaration to have an expression and don't emit a
10617         run-time check.
10618
10619 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
10620             Eric Botcazou  <botcazou@adacore.com>
10621
10622         * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
10623         and made constant.
10624
10625         * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
10626         Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
10627         carry any.
10628
10629         * fe.h (Compiler_Abort): Add third parameter.
10630
10631         * misc.c (internal_error_function): Build third argument from current
10632         input location and pass it to Compiler_Abort.
10633
10634 2007-04-06  Gary Dismukes  <dismukes@adacore.com>
10635
10636         * cstand.adb (Create_Standard): When the target's storage unit size is
10637         greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
10638         Standard_String.
10639
10640 2007-04-06  Nicolas Roche  <roche@adacore.com>
10641
10642         * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
10643         absolute path can have the following form: device:/a/b. In this case
10644         '/' should be inserted between the path and the filename.
10645
10646 2007-04-06  Olivier Hainque  <hainque@adacore.com>
10647             Eric Botcazou  <botcazou@adacore.com>
10648
10649         * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
10650         VAR_DECL to a CONST_DECL we make for a public constant when we know the
10651         corresponding definition has created the so made visible variable.
10652         Handle anonymous access to protected subprogram.
10653         (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
10654         object with an address clause volatile.  Re-enable original fix.
10655         <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
10656         too.
10657         (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
10658         associated with either the Equivalent or Root type, instead of the
10659         naked type node.
10660         (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
10661         subtree for every field of a global record type.
10662         (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
10663         discriminants, invoke again variable_size on its newly computed sizes.
10664
10665 2007-04-06  Robert Dewar  <dewar@adacore.com>
10666             Thomas Quinot  <quinot@adacore.com>
10667             Ed Schonberg  <schonberg@adacore.com>
10668             Bob Duff  <duff@adacore.com>
10669
10670         * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
10671         (Next_Component_Or_Discriminant): New function and procedure
10672         (First_Index, First_Literal, Master_Id,
10673         Set_First_Index, Set_First_Literal, Set_Master_Id):
10674         Add missing Ekind assertions.
10675         (Is_Access_Protected_Subprogram_Type): New predicate.
10676         (Has_RACW): New entity flag, set on package entities to indicate that
10677         the package contains the declaration of a remote accecss-to-classwide
10678         type.
10679         (E_Return_Statement): This node type has the Finalization_Chain_Entity
10680         attribute, in case the result type has controlled parts.
10681         (Requires_Overriding): Add this new flag, because "requires
10682         overriding" is subtly different from "is abstract" (see AI-228).
10683         (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
10684         Is_Abstract_Type. Make sure these are called only when appropriate.
10685         (Has_Pragma_Unreferenced_Objects): New flag
10686
10687         * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
10688         class-wide, the tag of the right-hand side must be an exact match, not
10689         an ancestor of that of the object on left-hand side.
10690         (Move_Activation_Chain): New procedure to create the call to
10691         System.Tasking.Stages.Move_Activation_Chain.
10692         (Expand_N_Extended_Return_Statement): Generate code to call
10693         System.Finalization_Implementation.Move_Final_List at the end of a
10694         return statement if the function's result type has controlled parts.
10695         Move asserts to Build_In_Place_Formal.
10696         (Move_Final_List): New function to create the call statement.
10697         (Expand_N_Assignment_Statement): In case of assignment to a class-wide
10698         tagged type, replace generation of call to the run-time subprogram
10699         CW_Membership by call to Build_CW_Membership.
10700         (Expand_N_Return_Statement): Replace generation of call to the run-time
10701         subprogram Get_Access_Level by call to Build_Get_Access_Level.
10702         (Expand_N_Simple_Function_Return): Replace generation of call to the
10703         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10704
10705         * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
10706         Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
10707         access to protected operations.
10708         (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
10709         master and chain actual parameters to a build-in-place function call
10710         involving tasks.
10711         (BIP_Formal_Suffix): Add new enumeration literals to complete the case
10712         statement.
10713         (Make_Build_In_Place_Call_In_Allocator,
10714         Make_Build_In_Place_Call_In_Anonymous_Context,
10715         Make_Build_In_Place_Call_In_Assignment,
10716         Make_Build_In_Place_Call_In_Object_Declaration): Call
10717         Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
10718         (Expand_Inlined_Call): If the subprogram is a null procedure, or a
10719         stubbed procedure with a null body, replace the call with a null
10720         statement without using the full inlining machinery, for efficiency
10721         and to avoid invalid values in source file table entries.
10722
10723         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
10724         renamings of calls to build-in-place functions.
10725
10726         * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
10727         provides the functionality of RTE_Available to record components.
10728         (RTU_Entity): The function Entity has been renamed to RTU_Entity
10729         to avoid undesired overloading.
10730         (Entity): New subprogram that returns the entity for the referened
10731         unit. If this unit has not been loaded, it returns Empty.
10732         (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
10733         Remove no longer used entities.
10734         (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
10735         (RE_Type_Specific_Data): New entity.
10736         (RE_Move_Any_Value): New entity.
10737         (RE_TA_A, RE_Get_Any_Type): New entities.
10738         (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
10739          RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
10740          RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
10741         (Entity): New subprogram that returns the entity for the referened
10742         unit. If this unit has not been loaded, it returns Empty.
10743         (RTE): Addition of a new formal that extends the search to the scopes
10744         of the record types found in the chain of the package.
10745
10746         * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
10747         "abstract subprograms must be visible" message, whether or not the type
10748         is an interface; that is, remove the special case for interface types.
10749         (Analyze_Function_Return): Remove error message "return of task objects
10750         is not yet implemented" because this is now implemented.
10751         (Create_Extra_Formals): Add the extra master and activation chain
10752         formals in case the result type has tasks.
10753         Remove error message "return of limited controlled objects is not yet
10754         implemented".
10755         (Create_Extra_Formals): Add the extra caller's finalization list formal
10756         in case the result type has controlled parts.
10757         (Process_Formals): In case of access formal types there is no need
10758         to continue with the analysis of the formals if we already notified
10759         errors.
10760         (Check_Overriding_Indicator): Add code to check overriding of predefined
10761         operators.
10762         (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
10763         flags for formals that do not require them,.
10764         (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
10765         hidden entity is use visible or directly visible.
10766         (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
10767         Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
10768         Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
10769         New_Overloaded_Entity): Split Is_Abstract flag into
10770         Is_Abstract_Subprogram and Is_Abstract_Type.
10771
10772         * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
10773         a return statement's finalization list to the caller's list, used for
10774         build-in-place functions with result type with controlled parts.
10775         Remove no longer used entities.
10776
10777         * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
10778         longer needed, because the full type is now limited, and therefore a
10779         pass-by-reference type.
10780         (Foreign_Task_Level): New constant.
10781
10782         * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
10783         move tasks from the activation chain belonging to a return statement to
10784         the one passed in by the caller, and update the master to the one
10785         passed in by the caller.
10786         (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
10787         of unactivated tasks, so we don't kill the ones that are being returned
10788         by a build-in-place function.
10789         (Create_Task): Ignore AI-280 for foreign threads.
10790
10791 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10792             Robert Dewar  <dewar@adacore.com>
10793             Bob Duff  <duff@adacore.com>
10794             Gary Dismukes  <dismukes@adacore.com>
10795
10796         * errout.adb (Unwind_Internal_Type): Use predicate
10797         Is_Access__Protected_Subprogram_Type.
10798
10799         * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
10800         (Freeze_Entity, packed array case): Do not override explicitly set
10801         alignment and size clauses.
10802         (Freeze_Entity):  An entity declared in an outer scope can be frozen if
10803         the enclosing subprogram is a child unit body that acts as a spec.
10804         (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
10805         (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
10806         Remove all code for DSP option
10807
10808         * layout.adb (Layout_Record_Type): Use First/
10809         Next_Component_Or_Discriminant
10810         (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
10811         to handle properly the anonymous access case.
10812
10813         * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
10814         for all access attributes, because overload resolution should work the
10815         same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
10816         causes the error message for the ambiguous "X'Access = Y'Access" and
10817         "X'Unrestricted_Access = Y'Access" and so forth to match.
10818         (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
10819         now that anonymous access to protected operations have their own kind.
10820         (Resolve_Attribute): In case of dispatching call check the violation of
10821         restriction No_Dispatching_Calls.
10822         (Check_Array_Type): Check new -gnatyA array index style option
10823
10824         * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
10825         attempt to derive from a synchronized tagged type.
10826         (Analyze_Type_Declaration): If there is a incomplete tagged view of the
10827         type, inherit the class-wide type already created, because it may
10828         already have been used in a self-referential anonymous access component.
10829         (Mentions_T): Recognize self-referential anonymous access components
10830         that use (a subtype of) the class-wide type of the enclosing type.
10831         (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
10832         Derived_Type for Prev formal on call to
10833         Check_Anonymous_Access_Components rather than Empty.
10834         (Make_Incomplete_Type_Declaration): Add test for case where the type has
10835         a record extension in deciding whether to create a class-wide type,
10836         rather than just checking Tagged_Present.
10837         (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
10838         to stand-alone object declarations as well as component declarations.
10839         (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
10840         prevent accidental overwriting when enclosing package appears in
10841         a limited_with_clause.
10842         (Array_Type_Declaration): If the component type is an anonymous access,
10843         the associated_node for the itype is the type declaration itself.
10844         (Add_Interface_Tag_Components): Modified to support concurrent
10845         types with abstract interfaces.
10846         (Check_Abstract_Interfaces): New subprogram that verifies the ARM
10847         rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
10848         (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
10849         to complete the decoration of synchronized interface types. Add also
10850         a call to Check_Abstract_Interfaces to verify the ARM rules.
10851         (Derive_Interface_Subprograms): Modified to support concurrent types
10852         with abstract interfaces.
10853         (Analyze_Subtype_Indication): Resolve the range with the given subtype
10854         mark, rather than delaying the full resolution depending on context.
10855         (Analyze_Component_Declaration,Analyze_Interface_Declaration,
10856         Analyze_Object_Declaration,Analyze_Subtype_Declaration,
10857         Array_Type_Declaration,Build_Derived_Record_Type,
10858         Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
10859         Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
10860         Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
10861         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
10862         called only when appropriate.
10863         (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
10864         to private type.
10865         (Analyze_Subtype_Declaration): For an access subtype declaration, create
10866         an itype reference for the anonymous designated subtype, to prevent
10867         scope anonmalies in gigi.
10868         (Build_Itype_Reference): New utility, to simplify construction of such
10869         references.
10870
10871 2007-04-06  Vincent Celier  <celier@adacore.com>
10872
10873         * errutil.adb (Initialize): Initialize warnings table, if all warnings
10874         are suppressed, supply an initial dummy entry covering all possible
10875         source locations.
10876
10877         * make.adb (Scan_Make_Arg): Reject options that should start with "--"
10878         and start with only one, such as "-RTS=none".
10879         (Collect_Arguments): Do not check for sources outside of projects.
10880         Do not collect arguments if project is externally built.
10881         (Compile_Sources): Do nothing, not even check if the source is up to
10882         date, if its project is externally built.
10883         (Compile): When compiling a predefined source, add -gnatpg
10884         as the second switch, after -c.
10885         (Compile_Sources): Allow compilation of Annex J renames without -a
10886         (Is_In_Object_Directory): Check if the ALI file is in the object
10887         even if there is no project extension.
10888         (Create_Binder_Mapping_File): Only put a unit in the mapping file for
10889         gnatbind if the ALI file effectively exists.
10890         (Initialize): Add the directory where gnatmake is invoked in front of
10891         the path if it is invoked from a bin directory, even without directory
10892         information, so that the correct GNAT tools will be used when spawned
10893         without directory information.
10894
10895         * makeusg.adb: Change switch -S to -eS
10896         Add lines for new switches -we, -wn and -ws
10897         Add line for new switch -p
10898
10899         * prj-proc.adb (Process): Set Success to False when Warning_Mode is
10900         Treat_As_Error and there are warnings.
10901
10902         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
10903         -gnatww Change gnatmake switch -S to -eS
10904         (Scan_Make_Switches): Code reorganisation. Process separately multi
10905         character switches and single character switches.
10906         (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
10907         False when switch is not recognized by gnatmake.
10908         (Scan_Make_Switches): Set Setup_Projects True when -p or
10909         --create-missing-dirs is specified.
10910
10911         * fname.adb (Is_Predefined_File_Name): Return True for annex J
10912         renamings Calendar, Machine_Code, Unchecked_Conversion and
10913         Unchecked_Deallocation only when Renamings_Included is True.
10914
10915         * par.adb: Allow library units Calendar, Machine_Code,
10916         Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
10917         when -gnatg is not specified.
10918         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
10919         there is no need to generate always a record_definition_node in case
10920         of synchronized interface types.
10921         (SIS_Entry_Active): Initialize global variable to False
10922         (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
10923         indicate cases where AI-447 says "not null" is legal.
10924
10925         * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
10926
10927         * makegpr.adb (Check_Compilation_Needed): Take into account dependency
10928         files with with several lines starting with the object fileb name.
10929         (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
10930         is specified.
10931         (Initialize): Add the directory where gprmake is invoked in front of the
10932         path, if it is invoked from a bin directory or with directory
10933         information, so that the correct GNAT tools will be used when invoked
10934         directly.
10935         (Check_Compilation_Needed): Process correctly backslashes on Windows.
10936
10937         * vms_data.ads: Update switches/qualifiers
10938
10939 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
10940             Thomas Quinot  <quinot@adacore.com>
10941
10942         * exp_aggr.adb:
10943         If the array component is a discriminated record, the array aggregate
10944         is non-static even if the component is given by an aggregate with
10945         static components.
10946         (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
10947         (Convert_Aggr_In_Allocator): If the allocator is for an access
10948         discriminant and the type is controlled. do not place on a finalization
10949         list at this point. The proper list will be determined from the
10950         enclosing object.
10951         (Build_Record_Aggr_Code): If aggregate has box-initialized components,
10952         initialize record controller if needed, before the components, to ensure
10953         that they are properly finalized.
10954         (Build_Record_Aggr_Code): For the case of an array component that has a
10955         corresponding array aggregate in the record aggregate, perform sliding
10956         if required.
10957
10958 2007-04-06  Javier Miranda  <miranda@adacore.com>
10959             Gary Dismukes  <dismukes@adacore.com>
10960             Ed Schonberg  <schonberg@adacore.com>
10961
10962         * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
10963         run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
10964
10965         * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
10966         accessibility on class-wide allocators if the allocator occurs at the
10967         same scope level as the allocator's type. The check is guaranteed to
10968         succeed in that case, even when the expression originates from a
10969         parameter of the containing subprogram.
10970         (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
10971         under No_Dispatching_Calls restriction. During the semantic analysis
10972         we already notified such violation.
10973         (Tagged_Membership): Constant folding. There is no need to check
10974         the tag at run-time if the type of the right operand is non
10975         class-wide abstract.
10976         Replace call to Is_Ancestor by call to Is_Parent
10977         to support concurrent types with interface types.
10978         (Expand_N_Allocator): Add an assertion associated with the generation
10979         of the master_id.
10980         (Expand_N_Slice): Do not enable range check to nodes associated
10981         with the frontend expansion of the dispatch table.
10982         (Is_Local_Access_Discriminant): Subsidiary function to
10983         Expand_N_Allocator.
10984         (Tagged_Membership): Replace generation of call to the run-time
10985         subprogram CW_Membership by call to Build_CW_Membership.
10986         (Expand_Allocator_Expression): Replace generation of call to the
10987         run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
10988
10989         * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
10990         initialize most the TSD components by means of an aggregate.
10991         Modify the declaration of the object containing the TSD
10992         because we now expand code that has a higher level of abstraction.
10993         The TSD has a discriminant containing the Inheritance Depth Level,
10994         value that is used in the membership test but also to fix the size
10995         of the table of ancestors.
10996         (Expand_Interface_Conversion): Insert function body at the closest place
10997         to the conversion expression, to prevent access-before-elaboration
10998         errors in the backend.
10999         Code improved to reduce the size of the dispatch table if
11000         compiling under restriction No_Dispatching_Calls plus code cleanup.
11001         Code reorganization plus removal of calls to Set_Num_Prim_Ops
11002         (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
11003         (Expand_Dispatching_Call): Minor code reorganization plus addition of
11004         code to return immediately if compiling under No_Dispatching_Calls
11005         restriction.
11006         (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
11007         CPP_Virtual and CPP_Vtable are no longer supported.
11008         (Expand_Interface_Conversion): Add missing support for interface type
11009         derivations.
11010         (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
11011         Is_Parent to support concurrent types with interfaces.
11012         (Init_Predefined_Interface_Primitives): Removed.
11013         (Make_Secondary_DT): Modified to support concurrent record types.
11014         (Set_All_DT_Position): Modified to support concurrent record types.
11015         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11016         with Get_External_Tag, Inherit_TSD, Set_External_Tag.
11017         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
11018         with CW_Membership.
11019         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
11020         with Get_Access_Level, Get_Predefined_Prim_Op_Address,
11021         Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
11022         Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
11023         Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
11024         (Expand_Dispatching_Call): Replace generation of call to the run-time
11025         subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
11026         calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
11027         Address.
11028         (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
11029         the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
11030         Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
11031         Build_Set_Prim_Op_Address.
11032         (Get_Remotely_Callable): Subprogram removed.
11033         (Init_Predefined_Interface_Primitives): Replace generation of call to
11034         the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
11035         Prims.
11036
11037         * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
11038         First (Parameter_Associations ()) with the call to First_Actual that
11039         returns an actual parameter expression for both named and positional
11040         associations.
11041
11042         * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
11043         check violation of restriction No_Dispatching_Calls.
11044         (Check_Controlling_Type): A formal of a tagged incomplete type is a
11045         controlling argument.
11046
11047         * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
11048         First/Next_Component_Or_Discriminant
11049         (Insert_Actions): Add entries for new N_Push and N_Pop nodes
11050         (Find_Implemented_Interface): Removed. All the calls to this subprogram
11051         specify Any_Limited_Interface, and this functionality is already
11052         provided by the function Has_Abstract_Interfaces.
11053         (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
11054         support concurrent types implementing interfaces.
11055         (Find_Implemented_Interface): Removed. All the calls to this subprogram
11056         specify kind Any_Limited_Interface, and this functionality is already
11057         provided by the function Has_Abstract_Interfaces.
11058         (Remove_Side_Effects): replace Controlled_Type by
11059         CW_Or_Controlled_Type whenever the issue is related to
11060         using or not the secondary stack.
11061
11062         * par-ch12.adb (P_Formal_Type_Definition): Update calls to
11063         P_Interface_Type_Definition to fulfill the new interface (the formal
11064         Is_Synchronized is no longer required).
11065
11066         * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
11067         Update dependencies.
11068
11069         * exp_atag.ads, exp_atag.adb: New file
11070
11071 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11072             Bob Duff  <duff@adacore.com>
11073             Cyrille Comar  <comar@adacore.com>
11074
11075         * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
11076         anonymous, use finalization list of enclosing dynamic scope.
11077         (Expand_N_Package_Declaration): For a library package declaration
11078         without a corresponding body, generate RACW subprogram bodies in the
11079         spec (just as we do for the task activation call).
11080         (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
11081         Is_Abstract_Type. Make sure these are called only when appropriate.
11082         Remove all code for DSP option
11083         (CW_Or_Controlled_Type): new subprogram.
11084
11085 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11086             Ed Schonberg  <schonberg@adacore.com>
11087             Gary Dismukes  <dismukes@adacore.com>
11088
11089         * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
11090         parameter. If it is set to true, return a result capped according to
11091         the global upper bound for the index of an entry family.
11092         (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
11093         (Build_Find_Body_Index): Adjust for above change.
11094         (Entry_Index_Expression): Likewise.
11095         (Is_Potentially_Large_Family): New function extracted from...
11096         (Collect_Entry_Families): ...here. Call it to detect whether the family
11097         is potentially large.
11098         (Build_Entry_Count_Expression): If the family is potentially large, call
11099         Family_Size with 'Cap' set to true.
11100         (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
11101         a protected version of an operation declared in the private part of
11102         a protected object, because they may be invoked through a callback.
11103         (Set_Privals): If the type of a private component is an anonymous access
11104         type, do not create a new itype for each protected body.
11105         If the body of a protected operation creates
11106         controlled types (including allocators for class-widetypes), the
11107         body of the corresponding protected subprogram must include a
11108         finalization list.
11109         (Build_Activation_Chain_Entity): Build the chain entity for extended
11110         return statements.
11111         (Type_Conformant_Parameters): Use common predicate Conforming_Types
11112         to determine whether operation overrides an inherited primitive.
11113         (Build_Wrapper_Spec): Add code to examine the parents while looking
11114         for a possible overriding candidate.
11115         (Build_Simple_Entry_Call): Set No_Initialization on the object used to
11116         hold an actual parameter value since its initialization is separated
11117         from the the declaration. Prevents errors on null-excluding access
11118         formals.
11119
11120 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11121             Pablo Oliveira  <oliveira@adacore.com>
11122
11123         * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
11124         Do an Unchecked_Conversion to handle the passage from the Underlying
11125         Type to the Base Type when calling Build_To_Any_Call and
11126         Build_From_Any_Call.
11127         (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
11128         E_Constant, depending upon Variable formal.
11129         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11130         PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
11131         parameter that requires an extra constrained parameter, declare
11132         temporary for actual as a variable, not a constant.
11133         (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
11134         the unit being compiled is the one that contains the stub type.
11135         Change primitive operation name for the RACW associated with a RAS
11136         from Call to _Call so it cannot clash with any legal identifier.
11137         (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
11138         Is_RAS.
11139         (Append_RACW_Bodies): New subprogram.
11140         (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
11141         Add_Receiving_Stubs_To_Declarations functions.
11142         When expanding a package body, this list correspond to the
11143         statements in the HSS at the end of the pacakge.
11144         When expanding a package spec, this list correspond to the
11145         spec declarations.
11146         (Add_Receiving_Stubs_To_Declarations): Append the function
11147         registering the receiving stubs at the end of the 'Stmts' list.
11148         (RCI_Package_Locator): Pass the new Version generic formal when
11149         instantiating a RCI_Locator package.
11150         (Build_From_Any_Function): To compute the High bound for an
11151         unconstrained array actual, we add the Low bound with the length.
11152         Thus we must convert the low bound and the length to an appropriate
11153         type before doing the sum.
11154         (Build_Subprogram_Receiving_Stubs, PolyORB):
11155          * Retrieve the extra formals parameters at the
11156            end of the parameter stream.
11157          * Use Move_Any_Value to write back out parameters
11158            after executing the request as it is more efficient
11159            than Copy_Any_Value.
11160          * Build the any containing Extra Formals with the
11161            appropriate typecode.
11162         (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
11163         empty Component_List.
11164         (Build_Actual_Object_Declaration): New subprogram. Build and insert into
11165         the tree the declaration for an object that serves as actual parameter
11166         in server-side stubs.
11167         (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
11168         PolyORB_Support.Build_Subprogram_Receiving_Stubs):
11169         Use Build_Actual_Object_Declaration to prepare the actuals.
11170         (Add_Parameter_To_NVList): Set the parameter mode to In for
11171         Extra Constrained Parameters.
11172         (Build_General_Calling_Stubs): Set the parameter type to boolean for
11173         Extra Constrained parameters.
11174         (Build_To_Any_Function, Build_From_Any_Function,
11175         Built_TypeCode_Function): When Typ is implicit, call the correct
11176         function with the first not implicit parent type.
11177         (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
11178         (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
11179         typecode from the Etype. Therefore we retrieve the correct typecode
11180         with a call to Get_Any_Type.
11181         (Copy_Specification): Do controlling formal type substitution based on
11182         Is_Controlling_Formal flag, instead of caller-provided object type.
11183         (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
11184         a RACW primitive operation, we might get a subprogram declaration for an
11185         ancestor of the RACW designated type (not for the designated type
11186         itself), in the case where this operation is inherited. In this case we
11187         have no easy means of determining the original tagged type for which
11188         the primitive was declared, so instead we now rely on
11189         Copy_Specification to use the Is_Controlling_Formal flag to determine
11190         which formals require type substitution.
11191
11192 2007-04-06  Robert Dewar  <dewar@adacore.com>
11193             Ed Schonberg  <schonberg@adacore.com>
11194
11195         * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
11196         GNAT.Current_Exception are not allowed if pragma Restrictions
11197         (No_Exception_Propagation) is set and in any case make the associated
11198         handler unsuitable as a target for a local raise statement.
11199         (Expand_Dispatching_Constructor_Call): Replace generation of call to the
11200         run-time subprogram CW_Membership by call to Build_CW_Membership.
11201         (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
11202         by a function call, a temporary must be created before expanding the
11203         Constructor_Call itself, to prevent out-of-order elaboration in the
11204         back-end when stack checking is enabled..
11205
11206 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11207
11208         * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
11209         result are the bounds of the left operand, not the right.
11210
11211 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11212
11213         * exp_strm.adb
11214         (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
11215          discriminant defaults.
11216         (Build_Record_Or_Elementary_Output_Procedure): Ditto.
11217         (Make_Component_List_Attributes): Ditto.
11218
11219 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11220             Bob Duff  <duff@adacore.com>
11221
11222         * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
11223         an association with a box as providing a value even though the
11224         initialization procedure for the type is not available.
11225         (Resolve_Record_Aggregate): Check that a choice of an association with a
11226         box corresponds to a component of the type.
11227         (Resolve_Record_Aggregate): Split Is_Abstract flag into
11228         Is_Abstract_Subprogram and Is_Abstract_Type.
11229
11230         * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
11231         assert.
11232
11233         * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
11234         Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
11235         called only when appropriate.
11236
11237 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11238
11239         * g-alleve.ads (Low Level Vector type definitions): Map each to the
11240         associated vector view instead of all to the unsigned char view.
11241
11242         * g-altcon.adb (Generic_Conversions): New internal generic package,
11243         offering facilities for all the Vector/View conversion routines
11244         implemented by this unit.
11245         (To_View/To_Vector - all versions): Reimplemented in a systematic
11246         manner, using the internal Generic_Conversions facilities.
11247
11248 2007-04-06  Pascal Obry  <obry@adacore.com>
11249
11250         * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
11251         string.
11252         (Create): Free the source string before storing the new one.
11253
11254 2007-04-06  Vincent Celier  <celier@adacore.com>
11255
11256         * g-debpoo.adb (Validity): New package with a complete new
11257         implementation of subprograms Is_Valid and Set_Valid.
11258         (Is_Valid): Move to local package Validity
11259         (Set_Valid): Move to local package Validity
11260
11261 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11262             Pablo Oliveira  <oliveira@adacore.com>
11263
11264         * g-expect.adb (Get_Command_Output): When expanding the output buffer
11265         we must ensure that there is enough place for the new data we are going
11266         to copy in.
11267
11268 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11269
11270         * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
11271         computation.
11272
11273 2007-04-06  Jose Ruiz  <ruiz@adacore.com>
11274             Vincent Celier  <celier@adacore.com>
11275
11276         * gnatcmd.adb (B_Start): Add prefix of binder generated file.
11277         (Stack_String): Add this String that contains the name of the Stack
11278         package in the project file.
11279         (Packages_To_Check_By_Stack): Add this list that contains the packages
11280         to be checked by gnatstack, which are the naming and the stack packages.
11281         (Check_Files): If no .ci files were specified for gnatstack we add all
11282         the .ci files belonging to the projects, including binder generated
11283         files.
11284         (Non_VMS_Usage): Document that gnatstack accept project file switches.
11285         (GNATCmd): Update the B_Start variable if we are in a VMS environment.
11286         Add gnatstack to the list of commands that use project file related
11287         switches, and get the single attribute Switches from the stack package
11288         in a project file when calling gnatstack. Parse the -U flag for
11289         processing files belonging to all projects in the project tree.
11290         Remove all processing for command Setup
11291
11292         * prj-attr.adb: Add new package Stack with single attribute Switches
11293
11294         * vms_conv.ads (Command_Type): Add command Stack.
11295         Move to body declarations that are only used in the body: types Item_Id,
11296         Translation_Type, Item_Ptr, Item and its subtypes.
11297
11298         * vms_conv.adb: (Initialize): Add data for new command Stack.
11299         Add declarations moved from the spec: types Item_Id, Translation_Type,
11300         Item_Ptr, Item and its subtypes.
11301         (Cargs_Buffer): New table
11302         (Cargs): New Boolean global variable
11303         (Process_Buffer): New procedure to create arguments
11304         (Place): Put character in table Buffer or Cargs_Buffer depending on the
11305          value of Cargs.
11306         (Process_Argument): Set Cargs when processing qualifiers for GNAT
11307         COMPILE
11308         (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
11309         empty, for table Cargs_Buffer.
11310         (Initialize): Remove component Setup in Command_List
11311
11312 2007-04-06  Vincent Celier  <celier@adacore.com>
11313
11314         * gprep.adb (Process_Files.Process_One_File): Use full file name when
11315         issuing pragma Source_Reference.
11316
11317 2007-04-06  Emmanuel Briot  <briot@adacore.com>
11318
11319         * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
11320         [[:xdigit:]] character class.
11321         Also raise an exception when an invalid character class is used.
11322
11323 2007-04-06  Pascal Obry  <obry@adacore.com>
11324
11325         * i-cstrea.ads: (fopen): Add encoding parameter.
11326         (freopen): Idem.
11327         Change reference from a-sysdep.c to sysdep.c in comment.
11328         Update copyright notice.
11329         This set of patch add support for the encoding form parameter.
11330
11331         * mingw32.h (S2WSU): New macro to convert from a string to a
11332         wide-string using the UTF-8 encoding. The S2WS macro supports now only
11333         standard 8bits encoding.
11334         (WS2SU): As above but converting from wide-sring to string.
11335         This is needed as it is necessary to have access to both versions in the
11336         runtime for the form parameter encoding support.
11337         This set of patch add support for the encoding form parameter.
11338         (S2WS): Improve implementation to handle cases where the filename is not
11339         UTF-8 encoded. In this case we default to using the current code page
11340         for the conversion.
11341
11342         * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
11343         type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
11344         the constants defined in adaint.h.
11345         (fopen): Add encoding parameter.
11346         (freopen): Idem.
11347
11348         * s-ficobl.ads (AFCB): Add Encoding field to record the filename
11349         encoding. This is needed for the Reset routine (freopen low level-call).
11350
11351         * s-fileio.adb (Open): Decode encoding form parameter and set the
11352         corresponding encoding value into AFCB structure.
11353         (Reset): Pass the encoding value to freopen.
11354         (Close): Move the call to Lock_Task to the beginning of the procedure.
11355
11356 2007-04-06  Geert Bosch  <bosch@adacore.com>
11357             Robert Dewar  <dewar@adacore.com>
11358
11359         * i-fortra.ads: Add Double_Complex type.
11360
11361         * impunit.adb: (Is_Known_Unit): New function
11362         Add Gnat.Byte_Swapping
11363         Add GNAT.SHA1
11364         Add new Ada 2005 units
11365         Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
11366         Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
11367         Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
11368         Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
11369
11370         * impunit.ads (Is_Known_Unit): New function
11371
11372         * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
11373         a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
11374         a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
11375         g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
11376         s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
11377         s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
11378         New files.
11379
11380         * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
11381
11382         * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
11383
11384 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11385             Arnaud Charlet  <charlet@adacore.com>
11386
11387         * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
11388         __gnat_adjust_context_for_raise.
11389         (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
11390         implementation of floating point operations as native x86 targets.
11391         So the FPU should be initialized in the same way using finit. Fix
11392         floating point operations accuracy issues.
11393         (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
11394         member in struct sigaction, so as to avoid warning for incompatible
11395         pointer types.
11396
11397 2007-04-06 Serguei Rybin  <rybin@adacore.com>
11398
11399         * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
11400         switches from previously loaded tree
11401
11402 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11403
11404         * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
11405         cases where a given dependency has a body or not.
11406         (Write_With_File_Names): New subprogram, common code for the two cases
11407         above.
11408
11409 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11410             Javier Miranda  <miranda@adacore.com>
11411
11412         * lib-xref.ads, lib-xref.adb: 
11413         Modify the loop that collects type references, to include interface
11414         types that the type implements. List each of these interfaces when
11415         building the entry for the type.
11416         (Generate_Definition): Initialize component Def and Typ of new entry
11417         in table Xrefs, to avoid to have these components unitialized.
11418         (Output_References): Split Is_Abstract flag into
11419         Is_Abstract_Subprogram and Is_Abstract_Type.
11420         (Generate_Reference): Add barrier to do not generate the warning
11421         associated with Ada 2005 entities with entities generated by the
11422         expander.
11423
11424 2007-04-06  Robert Dewar  <dewar@adacore.com>
11425             Arnaud Charlet  <charlet@adacore.com>
11426             Vincent Celier  <celier@adacore.com>
11427
11428         * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
11429         Update 'Exception Handling Control' chapter which was outdated.
11430         Minor fix to documentation of -gnatwq
11431         Remove section "Adapting the Run Time to a New C++ Compiler" because
11432         it is now obsolete.
11433         Add passage on need of -nostart-files in some non-ada-main cases.
11434         Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
11435         Update documentation about Interfacing with C++
11436         Add documentation for new gnatmake switch -p
11437         Add missing protocol part in URLs.
11438         Document -gnatyA
11439         Document pragma Compile_Time_Error
11440         Add documentation for Object_Size indicating that stand alone
11441         objects can have a larger size in some cases.
11442         Add node for GNAT.Byte_Swapping, GNAT.SHA1
11443         Update reference to the Ravenscar profile.
11444         Document pragma Unreferenced_Objects
11445
11446         * gnat-style.texi: Fix typo
11447
11448 2007-04-06  Vincent Celier  <celier@adacore.com>
11449
11450         * mlib.adb (Building_Library): Only output "building a library..." in
11451         verbose mode
11452
11453         * mlib-prj.adb (Build_Library): Only output lists of object and ALI
11454         files in verbose mode.
11455
11456         * mlib-utl.adb (Ar): Only output the first object files when not in
11457         verbose mode.
11458         (Gcc): Do not display all the object files if not in verbose mode, only
11459         the first one.
11460
11461 2007-04-06  Robert Dewar  <dewar@adacore.com>
11462
11463         * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
11464         it no longer destroys the contents of Name_Buffer or Name_Len and
11465         non-standard and invalid names are handled better.
11466         (Get_Decoded_Name_String): Improve performance by using
11467         Name_Has_No_Encodings flag in the name table.
11468         (Is_Valid_Name): New function to determine whether a Name_Id is valid.
11469         Used for debugging printouts.
11470
11471 2007-04-06  Robert Dewar  <dewar@adacore.com>
11472             Javier Miranda  <miranda@adacore.com>
11473             Bob Duff  <duff@adacore.com>
11474
11475         * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
11476         (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
11477         there is no need to generate always a record_definition_node in case
11478         of synchronized interface types.
11479         (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
11480         (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
11481         illegal in Ada 95, in cases where it is legal. Change the warnings to
11482         errors in other cases. Don't give the error unless the "not null"
11483         parses properly. Correct the source position at which the error occurs.
11484         (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
11485         P_Null_Exclusion, to suppress "not null" warnings.
11486         (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
11487         associated goto statements.
11488
11489         * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
11490         of END RECORD
11491
11492         * scans.ads (Type_Token_Location): New flag
11493
11494         * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
11495         (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
11496         P_Null_Exclusion, to suppress "not null" warnings.
11497
11498 2007-04-06  Robert Dewar  <dewar@adacore.com>
11499             Javier Miranda  <miranda@adacore.com>
11500             Bob Duff  <duff@adacore.com>
11501             Vincent Celier  <celier@adacore.com>
11502
11503         * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
11504         (Extensions_Allowed): No longer sets Ada_Version
11505         Entry for pragma Unreferenced_Objects
11506
11507         * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
11508         system.tasking if pragma priority used in a procedure
11509         (Analyze_Pragma, case Warning): Handle dot warning switches
11510         (Process_Compile_Time_Warning_Or_Error): New procedure
11511         (Analyze_Pragma): Add processing for Compile_Time_Error
11512         Add support for extra arguments External_Name and Link_Name.
11513         Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
11514         (Process_Import_Or_Interface): Add support for the use of pragma Import
11515         with tagged types.
11516         (Extensions_Allowed): No longer affects Ada_Version
11517         (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
11518         Is_Abstract_Type. Make sure these are called only when appropriate.
11519         Add processing for pragma Unreferenced_Objects
11520
11521         * snames.h, snames.ads, snames.adb: Add entry for pragma
11522         Compile_Time_Error
11523         Add new standard name Minimum_Binder_Options for new gprmake
11524         Add new standard names for gprmake: Archive_Suffix,
11525         Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
11526         Library_Support, Library_Version_Options,
11527         Shared_Library_Minimum_Options,
11528         Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
11529         Change Name_Call to Name_uCall so that it cannot clash with a legal
11530         subprogram name.
11531         Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
11532         Append C_Plus_Plus to convention identifiers as synonym for CPP
11533         Add new standard names Stack and Builder_Switches
11534         Add new standard names: Compiler_Minimum_Options, Global_Config_File,
11535         Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
11536         Run_Path_Option, Toolchain_Version.
11537         Entry for pragma Unreferenced_Objects
11538
11539         * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
11540         switches, without repetition of "eD". Make sure that last character of
11541         -gnatep= switch is not taken as -gnat switch character.
11542         Complete rewrite of circuit for handling saving compilation options
11543         Occasioned by need to support dot switchs for -gnatw, but cleans up
11544         things in general.
11545         -gnatX does not affect Ada_Version
11546         Include -gnatyA in -gnatg style switches
11547
11548         * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
11549         warnings on return objects.
11550         (Warn_On_Useless_Assignment): Exclude warnings on return objects
11551         (Set_Dot_Warning_Switch): New procedure
11552         (Check_References): Add missing case of test for
11553         Has_Pragma_Unreferenced_Objects
11554         (Output_Unreferenced_Messages): Implement effect of new pragma
11555         Unreferenced_Objects, remove special casing of limited controlled
11556         variables.
11557
11558 2007-04-06  Vincent Celier  <celier@adacore.com>
11559
11560         * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
11561         the default project path, initially done during elaboration of the
11562         package.
11563         If the prefix returned by Sdefault is null, get the prefix from a call
11564         to Executable_Prefix_Path.
11565         (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
11566         null.
11567
11568         * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
11569         canonical directory name to open the directory from which files are
11570         retrieved.
11571         (Record_Other_Sources): Idem.
11572         (Locate_Directory): Add the possibility to create automatically missing
11573         directories when Setup_Projects is True.
11574         Call Locate_Directory so that the directory will be created when
11575         Setup_Projects is True, for object dir, library dir, library ALI dir,
11576         library source copy dir and exec dir.
11577
11578         * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
11579         versions of GNAT.
11580
11581 2007-04-06  Robert Dewar  <dewar@adacore.com>
11582
11583         * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
11584         Use First/Next_Component_Or_Discriminant
11585         (Analyze_Record_Representation_Clause):
11586         Use First/Next_Component_Or_Discriminant
11587         (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
11588         (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
11589         definition if type is unconstrained.
11590         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11591         (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
11592         Is_Abstract_Subprogram and Is_Abstract_Type.
11593         (Adjust_Record_For_Reverse_Bit_Order): New procedure
11594
11595         * repinfo.adb (List_Record_Info): Use First/
11596         Next_Component_Or_Discriminant.
11597
11598         * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
11599         New procedure.
11600
11601         * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
11602         Include -gnatyA in default switches
11603
11604         * opt.ads: (Warn_On_Non_Local_Exception): New flag
11605         (Warn_On_Reverse_Bit_Order): New flag
11606         (Extensions_Allowed): Update the documentation.
11607         (Warn_On_Questionable_Missing_Parens): Now on by default
11608
11609         * usage.adb: Add documentation of -gnatw.x/X switches
11610         Document new -gnatyA style switch
11611         -gnatq warnings are on by default
11612
11613 2007-04-06  Ed Falis  <falis@adacore.com>
11614
11615         * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
11616         full word is no longer compared twice.
11617
11618 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11619
11620         * sem_ch10.adb (Install_Limited_Context_Clauses.
11621         Expand_Limited_With_Clause): Use a new copy of selector name in the
11622         call to Make_With_Clause. This fixes the tree structure for ASIS
11623         purposes. Nothing is changed in the compiler behaviour.
11624         (Process_Body_Clauses): Handle properly use clauses whose prefix is
11625         a package renaming.
11626         (Install_Limited_With_Clauses): Do not install non-limited view when it
11627         is still incomplete.
11628
11629 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11630             Gary Dismukes  <dismukes@adacore.com>
11631
11632         * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
11633         when capturing size information, instead of base type, which for a
11634         formal array type will be the unconstrained type.
11635         (Analyze_Formal_Object_Declaration): Add check for illegal default
11636         expressions for a formal in object of a limited type.
11637         (Instantiate_Object): Ditto.
11638         (Check_Formal_Package_Instance): Skip entities that are formal objects,
11639         because they were defaulted in the formal package and no check applies
11640         to them.
11641         (Check_Formal_Package_Instance): Extend conformance check to other
11642         discrete types beyond Integer.
11643         (Process_Default): Copy directly the unmatched formal. A generic copy
11644         has already been performed in Analyze_Formal_Package.
11645         (Analyze_Associations): If a formal subprogram has no match, check for
11646         partial parametrization before looking for a default, to prevent
11647         spurious errors.
11648         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
11649         not set the instantiation environment before analyzing the actuals.
11650         Fixes regression on 8515-003 with implementation of AI-133.
11651         Set_Instance_Env checks whether the generic unit is a predefined
11652         unit, in which case the instance must be analyzed with the latest Ada
11653         mode. This setting must take place after analysis of the actuals,
11654         because the actuals must be analyzed and frozen in the Ada mode extant
11655         outside of the current instantiation.
11656         (Save_Env, Restore_Env): Preserve and restore the configuration
11657         parameters so that predefined units can be compiled in the proper Ada
11658         mode.
11659         (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
11660         Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
11661         and Is_Abstract_Type.
11662         (Analyze_Formal_Package): For better error recovery, Add exception
11663         handler to catch Instantion_Error, which can be raised in
11664         Analyze_Associations
11665
11666 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11667             Bob Duff  <duff@adacore.com>
11668             Gary Dismukes  <dismukes@adacore.com>
11669
11670         * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
11671         prefix type is a discriminated subtype of the type of the formal.
11672         (Analyze_Allocator): Collect all coextensions regardless of the context.
11673         Whether they can be allocated statically is determined in exp_ch4.
11674         (Analyze_Selected_Component): If the prefix is a limited view and the
11675         non-limited view is available, use the non-limited one.
11676         (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
11677         therefore illegal), suggest a qualified expression rather than a type
11678         conversion, because a type conversion would be illegal in this context.
11679         (Anayze_Allocator): Trace recursively all nested allocators so that all
11680         coextensions are on the corresponding list for the root. Do no mark
11681         coextensions if the root allocator is within a declaration for a stack-
11682         allocated object, because the access discriminants will be allocated on
11683         the stack as well.
11684         (Analyze_Call): Remove restriction on calls to limited functions for the
11685         cases of generic actuals for formal objects, defaults for formal objects
11686         and defaults for record components.
11687         (Analyze_Allocator): Before analysis, chain coextensions on the proper
11688         element list. Their expansion is delayed until the enclosing allocator
11689         is processed and its finalization list constructed.
11690         (Try_Primitive_Operation): If the prefix is a concurrent type, looks
11691         for an operation with the given name among the primitive operations of
11692         the corresponding record type.
11693         (Analyze_Selected_Component): If the prefix is a task type that
11694         implements an interface, and there is no entry with the given name,
11695         check whether there is another primitive operation (e.g. a function)
11696         with that name.
11697         (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
11698         properly the indexing of a function call written in prefix form, where
11699         the function returns an array type, and all parameters of the function
11700         except the first have defaults.
11701         (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
11702         the original operands, rather than relocating them, for efficiency and
11703         to work properly when an operand is overloaded.
11704         (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
11705         Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
11706         (Analyze_Selected_Component): If the prefix is a private extension, only
11707         scan the visible components, not those of the full view.
11708         (Try_Primitive_Operation): If the operation is a procedure, collect all
11709         possible interpretations, as for a function, because in the presence of
11710         classwide parameters several primitive operations of the type can match
11711         the given arguments.
11712
11713 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11714             Robert Dewar  <dewar@adacore.com>
11715
11716         * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
11717         tag-indeterminate call to an abstract function, when the left-hand side
11718         is not classwide.
11719         (Analyze_Loop_Statement): Improve detection of infinite loops
11720
11721 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11722             Thomas Quinot  <quinot@adacore.com>
11723
11724         * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
11725         out of Analyze_Package_Declaration, because processing must be applied
11726         to package bodies as well, for deferred constants completed by pragmas.
11727         (Analyze_Package_Declaration): When the package declaration being
11728         analyzed does not require an explicit body, call Check_Completion.
11729         (May_Need_Implicit_Body): An implicit body is required when a package
11730         spec contains the declaration of a remote access-to-classwide type.
11731         (Analyze_Package_Body): If the package contains RACWs, append the
11732         pending subprogram bodies generated by exp_dist at the end of the body.
11733         (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
11734         Is_Abstract_Subprogram and Is_Abstract_Type.
11735         (Preserve_Full_Attributes): The full entity list is not an attribute
11736         that must be preserved from full to partial view.
11737
11738         * sem_dist.adb (Add_RAS_Dereference_TSS):
11739         Change primitive name to _Call so it cannot clash with any legal
11740         identifier, and be special-cased in Check_Completion.
11741         Mark the full view of the designated type for the RACW associated with
11742         a RAS as Comes_From_Source to get proper view switching when installing
11743         private declarations.
11744         Provite a placeholder nested package body along with the nested spec
11745         to have a place for Append_RACW_Bodies to generate the calling stubs
11746         and stream attributes.
11747
11748 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11749             Robert Dewar  <dewar@adacore.com>
11750
11751         * sem_ch8.adb (Has_Components): If the argument is an incomplete type
11752         that is a limited view, check the non-limited view if available.
11753         (Undefined): Refine error message for missing with of Text_IO
11754         (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
11755         to distinguish real missing with cases.
11756         Fix format of all missing with messages
11757         (Analyze_Subprogram_Renaming): Emit proper error message on illegal
11758         renaming as body when renamed entity is abstract.
11759
11760 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11761             Javier Miranda  <miranda@adacore.com>
11762
11763         * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
11764         predicate recursive, to handle complex expressions on literals whose
11765         spurious ambiguity comes from the abstract interpretation of some
11766         subexpression.
11767         (Interface_Present_In_Ancestor): Add support to concurrent record
11768         types.
11769         (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
11770         Is_Abstract_Subprogram and Is_Abstract_Type.
11771
11772 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11773             Javier Miranda  <miranda@adacore.com>
11774
11775         * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
11776         dereference of a local object R created as a reference to another
11777         object O, use the access level of O.
11778         (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
11779         rather than local Same_Formal_Type, to check whether protected operation
11780         overrides an inherited one.
11781         (Same_Formal_Type): New predicate, used when matching signatures of
11782         overriding synchronized operations, to handle the case when a formal
11783         has a type that is a generic actual.
11784         (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
11785         predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
11786         (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
11787         syntactic ambiguities involving indexing of function calls that return
11788         arrays.
11789         (Abstract_Interface_List): New subprogram that returns the list of
11790         abstract interfaces associated with a concurrent type or a
11791         concurrent record type.
11792         (Interface_Present_In_Parent): New subprogram used to check if a
11793         given type or some of its parents implement a given interface.
11794         (Collect_Abstract_Interfaces): Add support for concurrent types
11795         with interface types.
11796         (Has_Abstract_Interfaces): Add support for concurrent types with
11797         interface types.
11798         (Is_Parent): New subprogram that determines whether E1 is a parent
11799         of E2. For a concurrent type its parent is the first element of its
11800         list of interface types; for other types this function provides the
11801         same result than Is_Ancestor.
11802         (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
11803         (Collect_Synchronized_Interfaces): Removed because the subprogram
11804         Collect_Abstract_Interfaces provides this functionality.
11805         (Collect_Abstract_Interfaces): Minor update to give support to
11806         concurrent types and thus avoid undesired code duplication.
11807         (Get_Subprogram_Entity): Handle entry calls.
11808         (May_Be_Lvalue): Include actuals that appear as in-out parameters in
11809         entry calls.
11810         (Enter_Name): Do not give -gnatwh hiding warning for record component
11811         entities, they never result in hiding.
11812
11813 2007-04-06  Ed Schonberg  <schonberg@adacore.com>
11814             Robert Dewar  <dewar@adacore.com>
11815
11816         * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
11817         to chain nested components that are allocators for access discriminants
11818         of the enclosing object.
11819         Add N_Push and N_Pop nodes
11820         New field Exception_Label added
11821         (Local_Raise_Statements): New field in N_Exception_Handler_Node
11822         (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
11823         (Is_Coextension): New flag for allocators, to mark allocators that
11824         correspond to access discriminants of dynamically allocated objects.
11825         (N_Block_Statement): Document the fact that the corresponding entity
11826         can be an E_Return_Statement.
11827         (Is_Coextension): New flag for allocators.
11828         Remove all code for DSP option
11829
11830         * sprint.ads, sprint.adb: Display basic information for class_wide
11831         subtypes. Add handling of N_Push and N_Pop nodes
11832
11833 2007-04-06  Arnaud Charlet  <charlet@adacore.com>
11834
11835         * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
11836         before propagating exception.
11837
11838 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11839
11840         * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
11841         an address always within the call instruction from a return address.
11842
11843 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11844             Eric Botcazou  <botcazou@adacore.com>
11845
11846         * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
11847         expression with a COMPOUND_EXPR including the call instead of emitting
11848         the call directly here.
11849         (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
11850         high bound is constant and the slice is empty.  Tidy.
11851         (tree_transform, case N_Op_Not): Handle properly the case where the
11852         operation applies to a private type whose full view is a modular type.
11853         (Case_Statement_To_gnu): If an alternative is an E_Constant with an
11854         Address_Clause, use the associated Expression as the GNAT tree
11855         representing the choice value to ensure the corresponding GCC tree is
11856         of the proper kind.
11857         (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
11858         instead of just the operands, as the base GCC stabilize_reference does.
11859         <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
11860         requested; otherwise fail.
11861         (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
11862
11863 2007-04-06  Thomas Quinot  <quinot@adacore.com>
11864
11865         * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
11866         implementation of UI_Div.
11867         (UI_Div): Reimplement as a call to UI_Div_Rem.
11868         (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
11869         remainder, avoiding the cost of a multiplication and a subtraction.
11870         (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
11871         provides both quotient and remainder in a single computation.
11872         (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
11873         functions for uint.
11874         (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
11875         is undefined if the given n is not inversible.
11876
11877 2007-04-06  Olivier Hainque  <hainque@adacore.com>
11878
11879         * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
11880         BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
11881         opcodes.
11882
11883 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11884             Olivier Hainque  <hainque@adacore.com>
11885
11886         * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
11887         when updating the contents of the old pointer to an unconstrained array.
11888         (end_subprog_body): Set error_gnat_node to Empty.
11889         (write_record_type_debug_info): Do not be unduly sparing with our bytes.
11890         (unchecked_convert): For subtype to base type conversions, require that
11891         the source be a subtype if it is an integer type.
11892         (builtin_decls): New global, vector of available builtin functions.
11893         (gnat_pushdecl): Add global builtin function declaration nodes to the
11894         builtin_decls list.
11895         (gnat_install_builtins): Adjust comments.
11896         (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
11897         calling gnat_pushdecl, so that it knows when it handed a builtin
11898         function declaration node.
11899         (builtin_decl_for): Search the builtin_decls list.
11900
11901 2007-04-06  Eric Botcazou  <botcazou@adacore.com>
11902
11903         * s-stchop-vxworks.adb: 
11904         (Stack_Check): Raise Storage_Error if the argument has wrapped around.
11905
11906 2007-04-06  Robert Dewar  <dewar@adacore.com>
11907             Arnaud Charlet  <charlet@adacore.com>
11908
11909         * a-diroro.ads: Inserted the pragma Unimplemented_Unit
11910
11911         * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
11912         of files
11913         Add mention of -Sev (set initialize_scalars option from environment
11914         variable at run time) in gnatbind usage message.
11915
11916         * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
11917
11918         * fname-uf.ads: Minor comment fix
11919
11920         * osint.ads: Change pragma Elaborate to Elaborate_All
11921
11922         * par-load.adb: Add documentation.
11923
11924         * sem_cat.ads, sem_cat.adb: Minor code reorganization
11925
11926         * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
11927
11928         * s-secsta.ads: Extra comments
11929
11930         * s-soflin.ads: Minor comment fixes
11931
11932         * s-stratt.ads (Block_Stream_Ops_OK): Removed.
11933
11934         * s-wchcon.ads: Minor comment addition
11935
11936         * treepr.adb: Minor change in message
11937         (Print_Name,Print_Node): Make these debug printouts more robust: print
11938         "no such..." instead of crashing on bad input.
11939
11940 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
11941
11942         * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
11943         instead of gnat_signed_or_unsigned_type.
11944         * utils.c (gnat_signed_or_unsigned_type): Remove.
11945         * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
11946         * gigi.h (gnat_signed_or_unsigned_type): Remove
11947
11948 2007-03-09  Roger Sayle  <roger@eyesopen.com>
11949
11950         * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
11951         fold with the result of buildN.
11952         * decl.c (gnat_to_gnu_entity): Likewise.
11953         * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
11954         * utils.c (finish_record_type, merge_sizes, max_size, convert):
11955         Likewise.
11956         * utils2.c (gnat_truthvalue_conversion, compare_arrays,
11957         nonbinary_modular_operation, build_binary_op, build_unary_op,
11958         build_cond_expr): Likewise.
11959
11960         * utils.c (convert): Use fold_build1 when casting values to void.
11961         * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
11962         fold_convert instead of convert when appropriate.
11963
11964 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11965
11966         * Make-lang.in: Add install-pdf target as copied from
11967         automake v1.10 rules.
11968
11969 2007-02-28  Andreas Schwab  <schwab@suse.de>
11970
11971         * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
11972         $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
11973         (doc/gnat-style.info): Likewise.
11974
11975 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
11976
11977         * gnat-style.texi: Standardize title page.
11978         * gnat_rm.texi: Likewise.
11979         * gnat_ugn.texi: Likewise.
11980
11981 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
11982
11983         * decl.c (annotate_value): Adjust for refactoring of tree_map
11984         hierarchy.
11985
11986 2007-02-24  Mark Mitchell  <mark@codesourcery.com>
11987
11988         * decl.c (annotate_value): Adjust for refactoring of tree_map
11989         hierarchy.
11990
11991 2007-02-21  Ed Schonberg  <schonberg@adacore.com>
11992
11993         PR ada/18819
11994         * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
11995         untagged derived type, add hidden components to keep discriminant
11996         layout consistent, when a given discriminant of the derived type
11997         constraints several discriminants of the parent type.
11998
11999 2007-02-16  Eric Botcazou  <ebotcazou@adacore.com>
12000             Sandra Loosemore  <sandra@codesourcery.com>
12001
12002         * trans.c (call_to_gnu):  Use build_call_list instead of build3 to
12003         build the call expression.
12004         (gnat_stabilize_reference_1): Handle tcc_vl_exp.
12005         * utils.c (max_size) <tcc_exceptional>: Delete.
12006         <tcc_vl_exp>: New case.
12007         <tcc_expression>: Delete CALL_EXPR subcase.
12008         (build_global_cdtor): Use build_call_nary instead of build3.
12009         * utils2.c (build_call_1_expr): Likewise.
12010         (build_call_2_expr): Likewise.
12011         (build_call_0_expr): Likewise.
12012         (build_call_alloc_dealloc): Likewise.
12013
12014 2007-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12015
12016         * raise-gcc.c (get_region_description_for, get_call_site_action_for,
12017         get_action_description_for): Replace _Unwind_Word with _uleb128_t 
12018         and _Unwind_SWord with _sleb128_t.
12019
12020 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
12021
12022         * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
12023         * decl.c: Include gt-ada-decl.h.
12024         (annotate_value_cache): New.
12025         (annotate_value): Use it instead of TREE_COMPLEXITY.
12026
12027 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
12028
12029         * misc.c, utils2.c: Fix comment typos.
12030
12031 2007-01-24  Roger Sayle  <roger@eyesopen.com>
12032
12033         * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
12034         TREE_CONSTANT_OVERFLOW.
12035         (allocatable_size_p, annotate_value): Likewise.
12036         * trans.c (gnat_to_gnu): Likewise.
12037         * utils.c (unchecked_convert): Likewise.
12038         * utils2.c (build_simple_component_ref): Likewise.
12039
12040 2007-01-23  Richard Guenther  <rguenther@suse.de>
12041
12042         PR bootstrap/30541
12043         * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
12044         (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
12045         (gnatboot3): Likewise.
12046         (GNATBIND): Do not define.
12047         * Makefile.in (GNATBIND): Do not define.
12048
12049 2007-01-08  Richard Guenther  <rguenther@suse.de>
12050
12051         * cuintp.c (build_cst_from_int): Use built_int_cst_type.
12052         * trans.c (gnat_to_gnu): Likewise.
12053
12054 2006-12-07  Geoffrey Keating  <geoffk@apple.com>
12055
12056         * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
12057         * adaint.c: Likewise.
12058
12059 2006-12-05  Aldy Hernandez  <aldyh@redhat.com>
12060
12061         Merge from gimple-tuples-branch:
12062         2006-11-02  Aldy Hernandez  <aldyh@redhat.com>
12063
12064         * ada-tree.h (lang_tree_node): Handle gimple tuples.
12065         * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
12066         GIMPLE_MODIFY_STMT.
12067
12068 2006-12-02  Kazu Hirata  <kazu@codesourcery.com>
12069
12070         * Makefile.in, mingw32.h, trans.c: Fix comment typos.
12071         * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
12072         Fix typos.
12073
12074 2006-11-17  Eric Botcazou  <ebotcazou@adacore.com>
12075
12076         PR ada/27936
12077         * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
12078         if the initializer takes into account the padding.
12079
12080 2006-11-11  Richard Guenther  <rguenther@suse.de>
12081
12082         * trans.c (maybe_stabilize_reference): Remove handling of
12083         FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
12084
12085 2006-11-05  Arnaud Charlet  <charlet@adacore.com>
12086
12087         PR ada/29707
12088         * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
12089         (To_Target_Priority): New function.
12090
12091 2006-10-31  Robert Dewar  <dewar@adacore.com>
12092
12093         * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
12094         a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
12095         s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
12096         a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
12097         a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
12098         a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
12099         a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
12100         a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
12101         a-szbzha.adb: Minor reformatting. Fix header.
12102
12103         * a-numaux-x86.adb: Add parentheses for use of unary minus
12104         * a-ngcefu.adb: Supply missing parentheses for unary minus
12105         * a-ngcoty.adb: Add parens for use of unary minus
12106         * a-ngelfu.adb: Add missing parens for unary minus
12107         * a-tifiio.adb: Add parentheses for uses of unary minus
12108
12109 2006-10-31  Robert Dewar  <dewar@adacore.com>
12110             Bob Duff  <duff@adacore.com>
12111             Ed Schonberg  <schonberg@adacore.com>
12112
12113         * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
12114         with multiplying operator.
12115         (Expected_Type_Is_Any_Real): New function to determine from the Parent
12116         pointer whether the context expects "any real type".
12117         (Resolve_Arithmetic_Op): Do not give an error on calls to the
12118         universal_fixed "*" and "/" operators when they are used in a context
12119         that expects any real type. Also set the type of the node to
12120         Universal_Real in this case, because downstream processing requires it
12121         (mainly static expression evaluation).
12122         Reword some continuation messages
12123         Add some \\ sequences to continuation messages
12124         (Resolve_Call): Refine infinite recursion case. The test has been
12125         sharpened to eliminate some false positives.
12126         Check for Current_Task usage now includes entry barrier, and is now a
12127         warning, not an error.
12128         (Resolve): If the call is ambiguous, indicate whether an interpretation
12129         is an inherited operation.
12130         (Check_Aggr): When resolving aggregates, skip associations with a box,
12131         which are priori correct, and will be replaced by an actual default
12132         expression in the course of expansion.
12133         (Resolve_Type_Conversion): Add missing support for conversion from
12134         a class-wide interface to a tagged type. Minor code cleanup.
12135         (Valid_Tagged_Converion): Add support for abstact interface type
12136         conversions.
12137         (Resolve_Selected_Component): Call Generate_Reference here rather than
12138         during analysis, and use May_Be_Lvalue to distinguish read/write.
12139         (Valid_Array_Conversion): New procedure, abstracted from
12140         Valid_Conversion, to incorporate accessibility checks for arrays of
12141         anonymous access types.
12142         (Valid_Conversion): For a conversion to a numeric type occurring in an
12143         instance or inlined body, no need to check that the operand type is
12144         numeric, since this has been checked during analysis of the template.
12145         Remove legacy test for scope name Unchecked_Conversion.
12146
12147         * sem_res.ads: Minor reformatting
12148
12149         * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
12150         (PE_Current_Task_In_Entry_Body): New exception code
12151         (SE_Restriction_Violation): Removed, not used
12152
12153         * a-except.ads:  Update comments.
12154
12155         * types.h, types.ads: Add definition for Validity_Check
12156         (PE_Current_Task_In_Entry_Body): New exception code
12157         (SE_Restriction_Violation): Removed, not used
12158
12159 2006-10-31  Thomas Quinot  <quinot@adacore.com>
12160
12161         * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
12162         error status.
12163
12164 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
12165             Jose Ruiz  <ruiz@adacore.com>
12166
12167         * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
12168         part of Ada.Calendar: all subprogram raise Unimplemented.
12169         (Split_W_Offset): Temp function body, raising Unimplemented
12170
12171         * a-calend.ads, a-calend-vms.ads: 
12172         Add imported variable Invalid_TZ_Offset used to designate targets unable
12173         to support time zones.
12174         (Unimplemented): Temporary function raised by the body of new
12175         subprograms below.
12176         (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
12177         unit provides handling of leap seconds and is used by the new Ada 2005
12178         packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
12179         (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
12180         version returns an extra value which is the offset to UTC.
12181
12182         * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
12183         (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
12184         (Split_W_Offset): New function body.
12185         (Time_Of): When a date is close to UNIX epoch, compute the time for
12186         that date plus one day (that amount is later substracted after
12187         executing mktime) so there are no problems with time zone adjustments.
12188
12189         * a-calend-mingw.adb: Remove Windows specific version no longer needed.
12190
12191         * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
12192         a-catizo.ads, a-catizo.adb: New files.
12193
12194         * impunit.adb: Add new Ada 2005 entries
12195
12196         * sysdep.c: Add external variable __gnat_invalid_tz_offset.
12197         Rename all occurences of "__gnat_localtime_r" to
12198         "__gnat_localtime_tzoff".
12199         (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
12200         zone data and calculate the GMT offset.
12201         (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
12202         Use the field "tm_gmtoff" to extract the GMT offset.
12203         (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
12204         the external variable "timezone" to calculate the GMT offset.
12205
12206 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
12207             Jose Ruiz  <ruiz@adacore.com>
12208
12209         * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb, 
12210         s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads, 
12211         s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
12212         s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
12213         System.Any_Priority to a POSIX priority on the target.
12214
12215         * system-linux-ia64.ads: 
12216         Extend range of Priority types on Linux to use the whole range made
12217         available by the system.
12218
12219         * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
12220         function maps from System.Any_Priority to a POSIX priority on the
12221         target.
12222         (PTHREAD_PRIO_PROTECT): Set real value.
12223         (PTHREAD_PRIO_INHERIT): Now a function.
12224         (SIGCPUFAIL): New signal.
12225         (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
12226         are documented as reserved by the OS.
12227
12228         * system-aix.ads: Use the full range of priorities provided by the
12229         system on AIX.
12230
12231         * s-taprop-posix.adb: Call new function To_Target_Priority.
12232         (Set_Priority): Take into account Task_Dispatching_Policy and
12233         Priority_Specific_Dispatching pragmas when determining if Round Robin
12234         must be used for scheduling the task.
12235
12236         * system-linux-x86_64.ads, system-linux-x86.ads, 
12237         system-linux-ppc.ads: Extend range of Priority types on Linux to use
12238         the whole range made available by the system.
12239
12240         * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb, 
12241         s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb, 
12242         s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
12243         when deallocating the TCB in order to avoid potential references to
12244         deallocated data.
12245         (Set_Priority): Take into account Task_Dispatching_Policy and
12246         Priority_Specific_Dispatching pragmas when determining if Round Robin
12247         or FIFO within priorities must be used for scheduling the task.
12248
12249         * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
12250         the Thread field (to be used internally by the run-time system) and the
12251         kernel-level task id in the LWP field (to be used by the debugger).
12252         (Create_Task): Reorganize to unify the calls to taskSpawn into a single
12253         instance, and propagate the current task options to the spawned task.
12254         (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
12255         (Initialize): Set Round Robin dispatching when the corresponding pragma
12256         is in effect.
12257
12258 2006-10-31  Robert Dewar  <dewar@adacore.com>
12259
12260         * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads, 
12261         system-linux-hppa.ads, system-hpux-ia64.ads, 
12262         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads, 
12263         system-vxworks-sparcv9.ads, system-solaris-x86.ads, 
12264         system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads, 
12265         system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads, 
12266         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads, 
12267         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads, 
12268         system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
12269         Default_Bit_Order) to kill constant condition warnings for references
12270         to this switch.
12271
12272 2006-10-31  Vincent Celier  <celier@adacore.com>
12273             Eric Botcazou  <ebotcazou@adacore.com>
12274
12275         * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
12276         mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
12277         mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
12278         Ext_To, when building the library file name
12279
12280         * mlib-tgt-vxworks.adb: ditto.
12281         (Get_Target_Suffix): Add support for x86 targets.
12282
12283         * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
12284
12285         * mlib-tgt-darwin.adb: 
12286         Use Append_To, instead of Ext_To, when building the library file name
12287         (Flat_Namespace): New global variable.
12288         (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
12289         (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
12290         (Link_Shared_Libgcc): Delete.
12291         (Build_Dynamic_Library): Adjust for above changes.
12292         Use Opt package.
12293         (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
12294
12295 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12296
12297         * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
12298         (Initialize): Add type conversions required by above change.
12299
12300 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12301
12302         * s-osinte-vxworks.ads, s-osinte-vxworks.adb: 
12303         (getpid): New body for this function that uses the underlying taskIdSelf
12304         function for VxWorks 5 and VxWorks 6 in kernel mode.
12305         (unsigned_int): New type, modular to allow logical bit operations.
12306         (taskOptionsGet): New imported function.
12307
12308         * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
12309         field to be compliant with the type used by the corresponding operating
12310         system primitive.
12311
12312 2006-10-31  Pascal Obry  <obry@adacore.com>
12313             Eric Botcazou  <ebotcazou@adacore.com>
12314             Vincent Celier  <celier@adacore.com>
12315
12316         * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
12317         ASCII version of the registry API. This is needed as the GNAT runtime
12318         is now UNICODE by default.
12319         Include version.h.
12320         (get_gcc_version): Do not hardcode the return value.
12321         (__gnat_file_time_name): On Windows properly set the default returned
12322         value to -1 which corresponds to Invalid_Time.
12323         (__gnat_fopen): New routine. A simple wrapper on all plateforms
12324          except on Windows where it does conversion for unicode support.
12325         (__gnat_freopen): Idem.
12326         (__gnat_locate_exec_on_path): If environment variable PATH does not
12327         exist, return a NULL pointer
12328
12329         * adaint.h: (__gnat_fopen): Declare.
12330         (__gnat_freopen): Likewise.
12331
12332         * mingw32.h (_tfreopen): Define this macro here for older MingW
12333         version.
12334         Activate the unicode support on platforms using a MingW runtime
12335         version 3.9 or newer.
12336
12337         * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
12338         This is needed for proper unicode support on Windows.
12339         (freopen): Idem.
12340
12341 2006-10-31  Eric Botcazou  <ebotcazou@adacore.com>
12342             Nicolas Setton  <setton@adacore.com>
12343             Olivier Hainque  <hainque@adacore.com>
12344             Gary Dismukes  <dismukes@adacore.com>
12345
12346         * gigi.h: (tree_code_for_record_type): Declare.
12347         (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
12348         (get_global_renaming_pointers): Rename to
12349         invalidate_global_renaming_pointers.
12350         (static_ctors): Delete.
12351         (static_dtors): Likewise.
12352         (gnat_write_global_declarations): Declare.
12353         (create_var_decl): Adjust descriptive comment to indicate that the
12354         subprogram may return a CONST_DECL node.
12355         (create_true_var_decl): Declare new function, similar to
12356         create_var_decl but forcing the creation of a VAR_DECL node.
12357         (get_global_renaming_pointers): Declare.
12358         (add_global_renaming_pointer): Likewise.
12359
12360         * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
12361
12362         * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
12363         tree before setting TREE_ADDRESSABLE for by-reference return mechanism
12364         processing.
12365         (gnat_to_gnu_entity): Remove From_With_Type from computation for
12366         imported_p.
12367         <E_Access_Type>: Use the Non_Limited_View as the full view of the
12368         designated type if the pointer comes from a limited_with clause.  Make
12369         incomplete designated type if it is in the main unit and has a freeze
12370         node.
12371         <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
12372         Underlying_Full_View similarly.  Return earlier if the full view already
12373         has an associated tree.
12374         (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
12375         (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
12376         (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
12377         reference type built for objects with an address clause.
12378         Use create_true_var_decl with const_flag set for
12379         DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
12380         TREE_READONLY set.
12381         (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
12382         for Character and Wide_Character types. This info is read by the
12383         dwarf-2 writer, and is needed to be able to use the command "ptype
12384         character" in the debugger.
12385         (gnat_to_gnu_entity): When generating a type representing
12386         a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
12387         so that debug writers can distinguish it from ordinary integers.
12388         (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
12389         addition to TREE_READONLY to assert the constantness of variables for
12390         elaboration purposes.
12391         (gnat_to_gnu_entity, subprogram cases): Change loops on formal
12392         parameters to call new Einfo function First_Formal_With_Extras.
12393         (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
12394         protected type with its corresponding discriminant, to obtain a usable
12395         declaration
12396         (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
12397         for a multiple elaboration of the "equivalent" type.
12398         (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
12399         into record_global_renaming_pointer.
12400         (gnat_to_gnu_entity) <E_Array_Type>: Do not force
12401         TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
12402         <E_Array_Subtype>: Likewise.
12403         (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
12404         incomplete subtypes and incomplete subtypes of incomplete types visible
12405         through a limited with clause.
12406         (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
12407         the base index type for the maximum size of the array only if they are
12408         constant.
12409         (gnat_to_gnu_entity, renaming object case): Do not wrap up the
12410         expression into a SAVE_EXPR if stabilization failed.
12411
12412         * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
12413         a result decl into DECL_BY_REFERENCE on this decl, now what is expected
12414         by lower level compilation passes.
12415         (gnat_genericize): New function, lowering a function body to GENERIC.
12416         Turn the type of RESULT_DECL into a real reference type if the decl
12417         has been marked DECL_BY_REFERENCE, and adjust references to the latter
12418         accordingly.
12419         (gnat_genericize_r): New function. Tree walking callback for
12420         gnat_genericize.
12421         (convert_from_reference, is_byref_result): New functions. Helpers for
12422         gnat_genericize_r.
12423         (create_type_decl): Call gnat_pushdecl before calling
12424         rest_of_decl_compilation, to make sure that field TYPE_NAME of
12425         type_decl is properly set before calling the debug information writers.
12426         (write_record_type_debug_info): The heuristics which compute the
12427         alignment of a field in a variant record might not be accurate. Add a
12428         safety test to make sure no alignment is set to a smaller value than
12429         the alignment of the field type.
12430         (make_dummy_type): Use the Non_Limited_View as the underlying type if
12431         the type comes from a limited_with clause. Do not loop on the full view.
12432         (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
12433         (dummy_node_table): New global variable, moved from decl.c.
12434         (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
12435         (save_gnu_tree): Use above macros.
12436         (get_gnu_tree): Likewise.
12437         (present_gnu_tree): Likewise.
12438         (init_dummy_type): New function, moved from decl.c. Use above macros.
12439         (make_dummy_type): Likewise.
12440         (tree_code_for_record_type): New function extracted from make_dummy_type
12441         (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
12442         (static_ctors): Change it to a vector, make static.
12443         (static_dtors): Likewise.
12444         (end_subprog_body): Adjust for above change.
12445         (build_global_cdtor): Moved from trans.c.
12446         (gnat_write_global_declarations): Emit global constructor and
12447         destructor, and call cgraph_optimize before emitting debug info for
12448         global declarations.
12449         (global_decls): New global variable.
12450         (gnat_pushdecl): Store the global declarations in global_decls, for
12451         later use.
12452         (gnat_write_global_declarations): Emit debug information for global
12453          declarations.
12454         (create_var_decl_1): Former create_var_decl, with an extra argument to
12455          state whether the creation of a CONST_DECL is allowed.
12456         (create_var_decl): Behavior unchanged. Now a wrapper around
12457         create_var_decl_1 allowing CONST_DECL creation.
12458         (create_true_var_decl): New function, similar to create_var_decl but
12459         forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
12460         (create_field_decl): Do not always mark the field as addressable
12461         if its type is an aggregate.
12462         (global_renaming_pointers): New static variable.
12463         (add_global_renaming_pointer): New function.
12464         (get_global_renaming_pointers): Likewise.
12465
12466         * misc.c (gnat_dwarf_name): New function.
12467         (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
12468         (gnat_post_options): Add comment about structural alias analysis.
12469         (gnat_parse_file): Do not call cgraph_optimize here.
12470         (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
12471
12472         * trans.c (process_freeze_entity): Don't abort if we already have a
12473         non dummy GCC tree for a Concurrent_Record_Type, as it might
12474         legitimately have been elaborated while processing the associated
12475         Concurrent_Type prior to this explicit freeze node.
12476         (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
12477         exception handler volatile if it is of variable size.
12478         (process_type): Remove bypass for types coming from a limited_with
12479         clause.
12480         (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
12481         actual, convert the corresponding gnu_actual to the real destination
12482         type when necessary.
12483         (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
12484         originally TREE_READONLY but whose elaboration cannot be performed
12485         statically.
12486         Part of fix for F504-021.
12487         (tree_transform, subprogram cases): Change loops on formal parameters to
12488         call new Einfo function First_Formal_With_Extras.
12489         (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
12490         stemming from type conversion for the lhs.
12491         (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
12492         number of bits per unit for components of records.
12493         (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
12494         (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
12495         with At_End_Proc after the SJLJ EH cleanup.
12496         (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
12497         compilation unit.
12498         (elaborate_all_entities): Do not retest type_annotate_only.
12499         (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
12500         result type of an abstract subprogram, which may be an itype associated
12501         with an anonymous access result (related to AI-318-02).
12502         (build_global_cdtor): Move to utils.c.
12503         (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
12504         this choice is not a null tree nor an integer constant.
12505         (gigi): Run unshare_save_expr via walk_tree_without_duplicates
12506         on the body of elaboration routines instead of mark_unvisited.
12507         (add_stmt): Do not mark the tree.
12508         (add_decl_expr): Tweak comment.
12509         (mark_unvisited): Delete.
12510         (unshare_save_expr): New static function.
12511         (call_to_gnu): Issue an error when making a temporary around a
12512         procedure call because of non-addressable actual parameter if the
12513         type of the formal is by_reference.
12514         (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
12515         after building the elaboration routine.
12516
12517 2006-10-31  Bob Duff  <duff@adacore.com>
12518
12519         * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
12520         as finalization-started, so we can raise Program_Error on 'new'.
12521
12522         * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
12523         collection has already started.
12524
12525         * s-finimp.ads (Collection_Finalization_Started): Added new special
12526         flag value for indicating that a collection's finalization has started.
12527
12528         * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
12529         create a task whose master has already waited for dependent tasks.
12530
12531 2006-10-31  Robert Dewar  <dewar@adacore.com>
12532
12533         * lib.adb, lib.ads: (In_Predefined_Unit): New functions
12534
12535         * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads, 
12536         a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads, 
12537         a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads, 
12538         a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads, 
12539         a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads, 
12540         a-except-2005.ads: Add pragma Preelaborable_Warning
12541
12542 2006-10-31  Robert Dewar  <dewar@adacore.com>
12543             Jose Ruiz  <ruiz@adacore.com>
12544
12545         * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
12546
12547         * ali.adb (Get_Name): Properly handle scanning of wide character names
12548         encoded with brackets notation.
12549         (Known_ALI_Lines): Add S lines to this list.
12550         (Scan_ALI): Acquire S (priority specific dispatching) lines.
12551         New flag Elaborate_All_Desirable in unit table
12552
12553         * ali.ads (Priority_Specific_Dispatching): Add this range of
12554         identifiers to be used for Priority_Specific_Dispatching table entries.
12555         (ALIs_Record): Add First_Specific_Dispatching and
12556         Last_Specific_Dispatching that point to the first and last entries
12557         respectively in the priority specific dispatching table for this unit.
12558         (Specific_Dispatching): Add this table for storing each S (priority
12559         specific dispatching) line encountered in the input ALI file.
12560         New flag Elaborate_All_Desirable in unit table
12561
12562         * bcheck.adb: (Check_Configuration_Consistency): Add call to
12563         Check_Consistent_Dispatching_Policy.
12564         (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
12565         verifying that the use of Priority_Specific_Dispatching,
12566         Task_Dispatching_Policy, and Locking_Policy is consistent across the
12567         partition.
12568
12569         * bindgen.adb: (Public_Version_Warning): function removed.
12570         (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
12571         required information from ALI files in order to initialize the table
12572         containing the specific dispatching policy.
12573         (Gen_Adainit_Ada): Generate the variables required for priority specific
12574         dispatching entries (__gl_priority_specific_dispatching and
12575         __gl_num_specific_dispatching).
12576         (Gen_Adainit_C): Generate the variables required for priority specific
12577         dispatching entries (__gl_priority_specific_dispatching and
12578         __gl_num_specific_dispatching).
12579         (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
12580         pragma entries.
12581         (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
12582         (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
12583         (Tab_To): Removed.
12584         (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
12585         a call to gnat_set_globals.
12586         Generate a string containing settings from
12587         Priority_Specific_Dispatching pragma entries.
12588         (Gen_Object_Files_Options): Do not include the runtime libraries when
12589         pragma No_Run_Time is specified.
12590
12591         * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
12592         consistency with s-intman-posix.adb.
12593         (__gnat_error_handler, case FreeBSD): Account for the fact that the
12594         handler is installed with SA_SIGINFO.
12595         (__gnat_adjust_context_for_raise, FreeBSD case): New function for
12596         FreeBSD ZCX support, copied from Linux version.
12597         Add MaRTE-specific definitions for the linux target. Redefine sigaction,
12598         sigfillset, and sigemptyset so the routines defined by MaRTE.
12599         (__gl_priority_specific_dispatching): Add this variable that stores the
12600         string containing priority specific dispatching policies in the
12601         partition.
12602         (__gl_num_specific_dispatching): Add this variable that indicates the
12603         highest priority for which a priority specific dispatching pragma
12604         applies.
12605         (__gnat_get_specific_dispatching): Add this routine that returns the
12606         priority specific dispatching policy, as set by a
12607         Priority_Specific_Dispatching pragma appearing anywhere in the current
12608         partition. The input argument is the priority number, and the result
12609         is the upper case first character of the policy name.
12610         (__gnat_set_globals): Now a dummy function.
12611         (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
12612         mechargs instead of sigargs, as the latter can be retrieved from the
12613         former and sigargs is not what we want on ia64.
12614         (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
12615         mechargs argument.
12616         (__gnat_adjust_context_for_raise, ia64-vms): New function.
12617         (tasking_error): Remove unused symbol.
12618         (_abort_signal): Move this symbol to the IRIX specific part since this
12619         is the only target that uses this definition.
12620         (Check_Abort_Status): Move this symbol to the IRIX specific part since
12621         this is the only target that uses this definition.
12622         (Lock_Task): Remove unused symbol.
12623         (Unlock_Task): Remove unused symbol.
12624
12625         * lib-writ.adb (Write_ALI): Output new S lines for
12626         Priority_Specific_Dispatching pragmas.
12627         Implement new flag BD for elaborate body desirable
12628
12629         * lib-writ.ads: Document S lines for Priority Specific Dispatching.
12630         (Specific_Dispatching): Add this table for storing the entries
12631         corresponding to Priority_Specific_Dispatching pragmas.
12632         Document new BD flag for elaborate body desirable
12633
12634         * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
12635         of known pragmas.
12636
12637 2006-10-31  Javier Miranda  <miranda@adacore.com>
12638
12639         * a-tags.ads, a-tags.adb: 
12640         (Predefined_DT): New function that improves readability of the code.
12641         (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
12642         Inherit_DT): Use the new function Predefined_DT to improve code
12643         readability.
12644         (Register_Interface_Tag): Update assertion.
12645         (Set_Interface_Table): Update assertion.
12646         (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
12647         determining progenitor interfaces in Tags.
12648         (Inherit_CPP_DT): New subprogram.
12649
12650         * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
12651         analysis of the thunk code.
12652         (Expand_Interface_Conversion): Handle run-time conversion of
12653         access to class wide types.
12654         (Expand_Dispatching_Call): When generating the profile for the
12655         subprogram itype for a dispatching operation, properly terminate the
12656         formal parameters chaind list (set the Next_Entity of the last formal
12657         to Empty).
12658         (Collect_All_Interfaces): Removed. This routine has been moved to
12659         sem_util and renamed as Collect_All_Abstract_Interfaces.
12660         (Set_All_DT_Position): Hidden entities associated with abstract
12661         interface primitives are not taken into account in the check for
12662         3.9.3(10); this check is done with the aliased entity.
12663         (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
12664         interfacing with CPP by default.
12665         (Expand_Interface_Conversion): Add missing support for static conversion
12666         from an interface to a tagged type.
12667         (Collect_All_Interfaces): Add new out formal containing the list of
12668         abstract interface types to cleanup the subprogram Make_DT.
12669         (Make_DT): Update the code to generate the table of interfaces in case
12670         of abstract interface types.
12671         (Is_Predefined_Dispatching_Alias): New function that returns true if
12672         a primitive is not a predefined dispatching primitive but it is an
12673         alias of a predefined dispatching primitive.
12674         (Make_DT): If the ancestor of the type is a CPP_Class and we are
12675         compiling under full ABI compatibility mode we avoid the generation of
12676         calls to run-time services that fill the dispatch tables because under
12677         this mode we currently inherit the dispatch tables in the IP subprogram.
12678         (Write_DT): Emit an "is null" indication for a null procedure primitive.
12679         (Expand_Interface_Conversion): Use an address as the type of the formal
12680         of the internally built function that handles the case in which the
12681         target type is an access type.
12682
12683 2006-10-31  Robert Dewar  <dewar@adacore.com>
12684
12685         * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
12686
12687 2006-10-31  Robert Dewar  <dewar@adacore.com>
12688
12689         * bindusg.ads, bindusg.adb:
12690         Change to package and rename procedure as Display, which
12691         now ensures that it only outputs usage information once.
12692
12693 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
12694
12695         * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
12696         using RTPs.
12697
12698         * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
12699         when using RTPs.
12700
12701 2006-10-31  Robert Dewar  <dewar@adacore.com>
12702             Ed Schonberg  <schonberg@adacore.com>
12703
12704         * treepr.adb: Use new subtype N_Membership_Test
12705
12706         * checks.ads, checks.adb: Add definition for Validity_Check
12707         (Range_Or_Validity_Checks_Suppressed): New function
12708         (Ensure_Valid): Test Validity_Check suppressed
12709         (Insert_Valid_Check): Test Validity_Check suppressed
12710         (Insert_Valid_Check): Preserve Do_Range_Check flag
12711         (Validity_Check_Range): New procedure
12712         (Expr_Known_Valid): Result of membership test is always valid
12713         (Selected_Range_Checks): Range checks cannot be applied to discriminants
12714         by themselves. Disabling those checks must also be done for task types,
12715         where discriminants may be used for the bounds of entry families.
12716         (Apply_Address_Clause_Check): Remove side-effects if address expression
12717         is non-static and is not the name of a declared constant.
12718         (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
12719         Code cleanup and new error messages.
12720         (Enable_Range_Check): Test for some cases of suppressed checks
12721         (Generate_Index_Checks): Suppress index checks if index checks are
12722         suppressed for array object or array type.
12723         (Apply_Selected_Length_Checks): Give warning for compile-time detected
12724         length check failure, even if checks are off.
12725         (Ensure_Valid): Do not generate a check on an indexed component whose
12726         prefix is a packed boolean array.
12727         * checks.adb: (Alignment_Checks_Suppressed): New function
12728         (Apply_Address_Clause_Check): New procedure, this is a completely
12729         rewritten replacement for Apply_Alignment_Check
12730         (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
12731         we request a discriminal value only in case of discriminants.
12732         (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
12733         assignments where the target subtype is unconstrained and the target
12734         object is a parameter or dereference (other aliased cases are known
12735         to be unconstrained).
12736
12737 2006-10-31  Robert Dewar  <dewar@adacore.com>
12738
12739         * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
12740         prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
12741         vms_conv.adb: Fix bad table increment values (much too small)
12742
12743         * table.adb (Realloc): Make sure we get at least some new elements
12744         Defends against silly small values for table increment
12745
12746 2006-10-31  Robert Dewar  <dewar@adacore.com>
12747             Ed Schonberg  <schonberg@adacore.com>
12748             Bob Duff  <duff@adacore.com>
12749
12750         * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
12751         entities. Move other fields around to make this possible
12752         (Is_Derived_Type): Add missing call to Is_Type.
12753         (Extra_Formals): New function for subprograms, entries, subprogram
12754         types.
12755         (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
12756         (First_Formal_With_Extras): New function for subprogs, entries, subp
12757         types.
12758         (Write_Field28_Name): New procedure for node display of "Extra_Formals".
12759         Add node information for E_Return_Statement.
12760         (Elaborate_Body_Desirable): New flag
12761         (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
12762         to be Is_Inherently_Limited_Type, because return-by-reference has
12763         no meaning in Ada 2005.
12764         (E_Return_Statement): New entity kind.
12765         (Return_Applies_To): Field of E_Return_Statement.
12766         (Is_Return_Object): New flag in object entities.
12767         (Is_Dynamic_Scope): Make it True for E_Return_Statement.
12768         (Must_Have_Preelab_Init): New flag
12769         (Known_To_Have_Preelab_Init): New flag
12770         (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
12771         (Is_Visible_Formal): New flag on entities in formal packages.
12772         (Low_Bound_Known): New flag
12773         (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
12774         Incomplete_Kind.
12775         (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
12776         output when Id is an incomplete subtype.
12777
12778 2006-10-31  Robert Dewar  <dewar@adacore.com>
12779
12780         * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
12781         Avoid abbreviation Creat
12782         (Finalize): List all sources in extended mail source if -gnatl
12783         switch is active.
12784         Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
12785         (Finalize): Implement new -gnatl=xxx switch to output listing to file
12786         (Set_Specific_Warning_On): New procedure
12787         (Set_Specific_Warning_Off): New procedure
12788         Add implementation of new insertion \\
12789         (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
12790         (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
12791         types.
12792         (Error_Msg_Internal): Make sure that we set Last_Killed to
12793         True when a message from another package is suppressed.
12794         Implement insertion character ~ (insert string)
12795         (First_Node): Minor adjustments to get better placement.
12796
12797         * frontend.adb: 
12798         Implement new -gnatl=xxx switch to output listing to file
12799
12800         * gnat1drv.adb: 
12801         Implement new -gnatl=xxx switch to output listing to file
12802
12803         * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
12804         (Commands_To_Stdout): New flag
12805         Implement new -gnatl=xxx switch to output listing to file
12806         New switch Dump_Source_Text
12807         (Warn_On_Deleted_Code): New warning flag for -gnatwt
12808         Define Error_Msg_Line_Length
12809         (Warn_On_Assumed_Low_Bound): New switch
12810
12811         * osint.ads, osint.adb
12812         (Normalize_Directory_Name): Fix bug.
12813         Implement new -gnatl=xxx switch to output listing to file
12814         (Concat): Removed, replaced by real concatenation
12815         Make use of concatenation now allowed in compiler
12816         (Executable_Prefix.Get_Install_Dir): First get the full path, so that
12817         we find the 'lib' or 'bin' directory even when the tool has been
12818         invoked with a relative path.
12819         (Executable_Name): New function taking string parameters.
12820
12821         * osint-c.ads, osint-c.adb: 
12822         Implement new -gnatl=xxx switch to output listing to file
12823
12824         * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
12825
12826         * switch-c.adb: 
12827         Implement new -gnatl=xxx switch to output listing to file
12828         Recognize new -gnatL switch
12829         (no longer keep in old warning about old style usage)
12830         Use concatenation to simplify code
12831         Recognize -gnatjnn switch
12832         (Scan_Front_End_Switches): Clean up handling of -gnatW
12833         (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
12834
12835 2006-10-31  Robert Dewar  <dewar@adacore.com>
12836
12837         * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
12838         (Set_Specific_Warning_Off): New procedure
12839         (Warning_Specifically_Suppressed): New function
12840         (Validate_Specific_Warnings): New procedure
12841         (Output_Msg_Text): Complete rewrite to support -gnatjnn
12842
12843         * err_vars.ads: Implement insertion character ~ (insert string)
12844
12845 2006-10-31  Bob Duff  <duff@adacore.com>
12846             Ed Schonberg  <schonberg@adacore.com>
12847
12848         * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
12849         the parent part is a build-in-place function call, generate assignments.
12850         (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
12851         are build-in-place function calls.
12852         (Replace_Self_Reference): New subsidiary of
12853         Make_OK_Assignment_Statement, to replace an access attribute that is a
12854         self-reference into an access to the appropriate component of the
12855         target object. Generalizes previous mechanism to handle self-references
12856         nested at any level.
12857         (Is_Self_Referential_Init): Remove, not needed.
12858         (Is_Self_Referential_Init): New predicate to simplify handling of self
12859         referential components in record aggregates.
12860         (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
12861         check for presence of entity before checking for self-reference.
12862         (Has_Default_Init_Comps): Return True if a component association is a
12863         self-reference to the enclosing type, which can only come from a
12864         default initialization.
12865         (Make_OK_Assignment_Statement): If the expression is of the form
12866         Typ'Acc, where Acc is an access attribute, the expression comes from a
12867         default initialized self-referential component.
12868         (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
12869         that has been derived from several abstract interfaces we must also
12870         initialize the tags of the secondary dispatch tables.
12871
12872 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
12873             Thomas Quinot  <quinot@adacore.com>
12874             Javier Miranda  <miranda@adacore.com>
12875             Robert Dewar  <dewar@adacore.com>
12876
12877         * exp_attr.adb: 
12878         (Expand_Access_To_Protected_Op): If the context indicates that an access
12879         to a local operation may be transfered outside of the object, create an
12880         access to the wrapper operation that must be used in an external call.
12881         (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
12882         target, pass the Valid attribute applied to a floating-point prefix on
12883         to the back end without expansion.
12884         (Storage_Size): Use the new run-time function Storage_Size to retrieve
12885         the allocated storage when it is specified by a per-object expression.
12886         (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
12887         Nothing to do here, the attribute has been rewritten during semantic
12888         analysis.
12889         (Expand_Attribute_Reference): Handle expansion of the new Priority
12890         attribute
12891         (Find_Fat_Info): Handle case of universal real
12892         (Expand_Access_To_Protected_Op): Fix use of access to protected
12893         subprogram from inside the body of a protected entry.
12894         (Expand_Access_To_Protected_Op): Common procedure for the expansion of
12895         'Access and 'Unrestricted_Access, to transform the attribute reference
12896         into a fat pointer.
12897         (Is_Constrained_Aliased_View): New predicate to help determine whether a
12898         subcomponent's enclosing variable is aliased with a constrained subtype.
12899         (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
12900         test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
12901         an aliased prefix must be known to be constrained in order to use True
12902         for the attribute value, and now it's possible for some aliased views
12903         to be unconstrained.
12904
12905 2006-10-31  Robert Dewar  <dewar@adacore.com>
12906
12907         * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
12908         (Expand_Entity_Reference): Correct error of not handling subprogram
12909         formals in current_value processing.
12910
12911 2006-10-31  Javier Miranda  <miranda@adacore.com>
12912             Robert Dewar  <dewar@adacore.com>
12913             Ed Schonberg  <schonberg@adacore.com>
12914             Gary Dismukes  <dismukes@adacore.com>
12915
12916         * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
12917         register in the final list objects containing class-wide interfaces;
12918         otherwise we incorrectly register the tag of the interface in the final
12919         list.
12920         (Make_Controlling_Function_Wrappers): Add missing barrier to do not
12921         generate the wrapper if the parent primitive is abstract. This is
12922         required to report the correct error message.
12923         (Expand_N_Subtype_Indication): Do validity checks on range
12924         (Clean_Task_Names): If an initialization procedure includes a call to
12925         initialize a task (sub)component, indicate that the procedure will use
12926         the secondary stack.
12927         (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
12928         compatibility for interfacing with CPP by default.
12929         (Expand_N_Object_Declaration): Only build an Adjust call when the
12930         object's type is a nonlimited controlled type.
12931         * exp_ch3.adb: Add with and use of Exp_Ch6.
12932         (Expand_N_Object_Declaration): Check for object initialization that is a
12933         call to build-in-place function and apply Make_Build_In_Place_Call_In_
12934         Object_Declaration to the call.
12935         (Freeze_Type): When the designated type of an RACW was not frozen at the
12936         point where the RACW was declared, validate the primitive operations
12937         with respect to E.2.2(14) when it finally is frozen.
12938         (Build_Initialization_Call,Expand_Record_Controller): Rename
12939         Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
12940         return-by-reference has no meaning in Ada 2005.
12941         (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
12942         to register tag of the immediate ancestor interfaces in the
12943         run-time structure.
12944         (Init_Secondary_Tags): Moved to the specification to allow the
12945         initialization of extension aggregates with abstract interfaces.
12946         (Build_Master_Renaming): Make public, for use by function declarations
12947         whose return type is an anonymous access type.
12948         (Freeze_Record_Type): Replace call to Insert_List_Before by call to
12949         Insert_List_Before_And_Analyze after the generation of the specs
12950         associated with null procedures.
12951         (Expand_Tagged_Root): Update documentation in its specification.
12952         (Init_Secondary_Tags): Update documentation.
12953         (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
12954         tibility mode and the immediate ancestor is a CPP_Pragma tagged type
12955         then generate code to inherit the contents of the dispatch table
12956         directly from the ancestor.
12957         (Expand_Record_Controller): Insert controller component after tags of
12958         implemented interfaces.
12959         (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
12960         create null procedure overridings when null procedures are inherited
12961         from interfaces.
12962         (Make_Null_Procedure_Specs): New procedure to generate null procedure
12963         declarations for overriding null primitives inherited from interfaces.
12964         (Is_Null_Interface_Procedure): New function in
12965         Make_Null_Procedure_Specs.
12966         (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
12967         immediate ancestor of a tagged type is an abstract interface type we
12968         must generate the specification of the predefined primitives associated
12969         with controlled types (because the dispatch table of the ancestor is
12970         null and hence these entries cannot be inherited). This is required to
12971         elaborate well the dispatch table.
12972
12973 2006-10-31  Javier Miranda  <miranda@adacore.com>
12974             Ed Schonberg  <schonberg@adacore.com>
12975             Bob Duff  <duff@adacore.com>
12976             Gary Dismukes  <dismukes@adacore.com>
12977             Robert Dewar  <dewar@adacore.com>
12978
12979         * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
12980         conversion.
12981         (Expand_N_In): Do validity checks on range
12982         (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
12983         (Expand_N_Allocator): For "new T", if the object is constrained by
12984         discriminant defaults, allocate the right amount of memory, rather than
12985         the maximum for type T.
12986         (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
12987         when the allocator is initialized by a build-in-place call, since the
12988         allocator is already rewritten as a reference to the function result,
12989         and this prevents an unwanted duplication of the function call.
12990         Add with and use of Exp_Ch6.
12991         (Expand_Allocator_Expresssion): Check for an allocator whose expression
12992         is a call to build-in-place function and apply
12993         Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
12994         untagged designated types).
12995         (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
12996         optimization if source or target is biased.
12997         (Expand_N_Allocator): Add comments for case of an allocator within a
12998         function that returns an anonymous access type designating tasks.
12999         (Expand_N_Allocator): apply discriminant checks for access
13000         discriminants of anonymous access types (AI-402, AI-416)
13001
13002 2006-10-31  Bob Duff  <duff@adacore.com>
13003             Robert Dewar  <dewar@adacore.com>
13004             Gary Dismukes  <dismukes@adacore.com>
13005             Ed Schonberg  <schonberg@adacore.com>
13006
13007         * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
13008
13009         * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
13010         (Expand_N_Assignment_Statement): Call
13011         Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
13012         build-in-place function call. Currently, this can happen only for
13013         assignments that come from aggregates.
13014         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13015         in order to alleviate the upward compatibility introduced by AI-318.
13016         (Expand_N_Extended_Return_Statement): Add support for handling the
13017         return object as a build-in-place result.
13018         (Expand_Non_Function_Return): Implement simple return statements nested
13019         within an extended return.
13020         (Enable_New_Return_Processing): Turn on the new processing of return
13021         statements.
13022         (Expand_Non_Function_Return): For a return within an extended return,
13023         don't raise Program_Error, because Sem_Ch6 now gives a warning.
13024         (Expand_N_Extended_Return_Statement): Implement AI-318
13025         (Expand_Simple_Function_Return): Ditto.
13026         (Expand_N_If_Statement): Handle new -gnatwt warning
13027         (Expand_N_Case_Statement): Handle new -gnatwt warning
13028         (Expand_N_Assignment): Handle assignment to the Priority attribute of
13029         a protected object.
13030         (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
13031         validity checking of assignments to elementary record components.
13032         (Expand_N_Return_Statement): return Class Wide types on the secondary
13033         stack independantly of their controlled status since with HIE runtimes,
13034         class wide types are not potentially controlled anymore.
13035
13036         * expander.adb (Expand): Add case for new N_Extended_Return_Statement
13037         node kind.
13038
13039         * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
13040         Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
13041         it expects a block, procedure, or task. The return statement will get
13042         turned into a block, and Expand_Cleanup_Actions will happen then.
13043
13044 2006-10-31  Robert Dewar  <dewar@adacore.com>
13045             Ed Schonberg  <schonberg@adacore.com>
13046             Bob Duff  <duff@adacore.com>
13047             Gary Dismukes  <dismukes@adacore.com>
13048
13049         * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
13050         capability.
13051         (Expand_Inlined_Call): Tagged types are by-reference types, and
13052         therefore should be replaced by a renaming declaration in the expanded
13053         body, as is done for limited types.
13054         (Expand_Call): If this is a call to a function with dispatching access
13055         result, propagate tag from context.
13056         (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
13057         CPP by default.
13058         (Make_Build_In_Place_Call_In_Assignment): New procedure to do
13059         build-in-place when the right-hand side of an assignment is a
13060         build-in-place function call.
13061         (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
13062         of the explicit dereference of the allocator to the result subtype of
13063         the build-in-place function. This is needed to satisfy type checking
13064         in cases where the caller's return object is created by an allocator for
13065         a class-wide access type and the type named in the allocator is a
13066         specific type.
13067         (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
13068         conversion of the reference to the declared object to the result subtype
13069         of the build-in-place function. This is needed to satisfy type checking
13070         in cases where the declared object has a class-wide type. Also, in the
13071         class-wide case, change the type of the object entity to the specific
13072         result subtype of the function, to avoid passing a class-wide object
13073         without explicit initialization to the back end.
13074         (Register_Interface_DT_Entry): Moved outside the body of
13075         Freeze_Subprogram because this routine is now public; it is called from
13076         Check_Dispatching_Overriding to handle late overriding of abstract
13077         interface primitives.
13078         (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
13079         adding an implicit access actual on a call to a build-in-place function.
13080         (Expand_Actuals): Test for an actual parameter that is a call to a
13081         build-in-place function and apply
13082         Make_Build_In_Place_Call_In_Anonymous_Context to the call.
13083         (Is_Build_In_Place_Function): New function to determine whether an
13084         entity is a function whose calls should be handled as build-in-place.
13085         (Is_Build_In_Place_Function_Call): New function to determine whether an
13086         expression is a function call that should handled as build-in-place.
13087         (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
13088         calls to build-in-place functions as the initialization of an allocator.
13089         (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
13090         handling calls to build-in-place functions in contexts that do not
13091         involve init of a separate object (for example, actuals of subprogram
13092         calls).
13093         (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
13094         handling calls to build-in-place functions as the initialization of an
13095         object declaration.
13096         (Detect_Infinite_Recursion): Add explicit parameter Process to
13097         instantiation of Traverse_Body to avoid unreferenced warning.
13098         (Check_Overriding_Inherited_Interfaces): Removed.
13099         (Register_Interface_DT_Entry): Code cleanup.
13100         (Register_Predefined_DT_Entry): Code cleanup.
13101         (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
13102         inlined statements if within a transient scope.
13103         (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
13104         formal parameters with occurrences of actuals in inlined body, establish
13105         visibility on the proper view of the actual's subtype for the body's
13106         context.
13107         (Freeze_Subprogram): Do nothing if we are compiling under full ABI
13108         compatibility mode and we have an imported CPP subprogram because
13109         for now we assume that imported CPP primitives correspond with
13110         objects whose constructor is in the CPP side (and therefore we
13111         don't need to generate code to register them in the dispatch table).
13112         (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
13113         aligned selected component.
13114         (Add_Call_By_Copy_Node): Add missing code to handle the case in which
13115         the actual of an in-mode parameter is a type conversion.
13116         (Expand_Actuals): If the call does not come from source and the actual
13117         is potentially misaligned, let gigi handle it rather than rejecting the
13118         (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
13119         Class Wide types as returning by reference independantly of their
13120         controlled status since with HIE runtimes class wide types are not
13121         potentially controlled anymore.
13122
13123 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13124
13125         * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
13126         references that are private components of the protected object.
13127         (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
13128         (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
13129         instantiation to deal with warnings.
13130         (Initialize_Protection): If expression for priority is non-static, use
13131         System_Priority as its expected type, in case the expression has not
13132         been analyzed yet.
13133
13134 2006-10-31  Robert Dewar  <dewar@adacore.com>
13135
13136         * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
13137         initialization of Homonym_Len.
13138         (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
13139         names from fully qualified name. Fixes problem of duplicate
13140         external names differing only in the presence of such a block name.
13141
13142 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13143             Pablo Oliveira  <oliveira@adacore.com>
13144
13145         * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
13146         subprogram Ids, even if they are not yet assigned.
13147         (Build_Subprogram_Id): It is now this function that will take care of
13148         calling Assign_Subprogram_Ids if necessary.
13149         (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
13150         should be done only once they are assigned.
13151         (Build_From_Any_Function, case of tagged types): Add missing call to
13152         Allocate_Buffer.
13153         (Corresponding_Stub_Type): New subprogram. Returns the associated stub
13154         type for an RACW type.
13155         (Add_RACW_Features): When processing an RACW declaration for which the
13156         designated type is already frozen, enforce E.2.2(14) rules immediately.
13157         (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
13158         special reordering of controlling formals.
13159
13160         * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
13161         associated stub type for an RACW type.
13162
13163 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13164
13165         * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
13166         fixed-point operations in an integer context, i.e. as operands of a
13167         conversion to an integer type, indicate that result must be rounded.
13168
13169 2006-10-31  Robert Dewar  <dewar@adacore.com>
13170
13171         * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
13172         cases, pass the encoding method, since it is now required by the run
13173         time.
13174
13175         * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
13176         assumption that Str'First = 1.
13177         (Value_Wide_Character): Takes EM (encoding method) parameter and passes
13178         it on to the Value_Wide_Wide_Character call.
13179         (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
13180         properly handles a string of the form quote-encoded_wide_char-quote.
13181
13182         * s-wchcnv.adb: Minor reformatting
13183
13184 2006-10-31  Javier Miranda  <miranda@adacore.com>
13185
13186         * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
13187         run-time membership test to ensure that the constructed object
13188         implements the target abstract interface.
13189
13190 2006-10-31  Robert Dewar  <dewar@adacore.com>
13191
13192         * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
13193         Machine_Attribute pragma internally to implement the user pragma.
13194         Add processing for pragma Interface so that it is now completely
13195         equivalent to pragma Import.
13196
13197         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
13198         so that it can be applied to all entities, including record components
13199         and enumeration literals.
13200         (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
13201         priority ranges are correct, verify compatibility against task
13202         dispatching and locking policies, and if everything is correct an entry
13203         is added to the table containing priority specific dispatching entries
13204         for this compilation unit.
13205         (Delay_Config_Pragma_Analyze): Delay processing
13206         Priority_Specific_Dispatching pragmas because when processing the
13207         pragma we need to access run-time data, such as the range of
13208         System.Any_Priority.
13209         (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
13210         Allow pragma Unreferenced as a context item
13211         Add pragma Preelaborable_Initialization
13212         (Analyze_Pragma, case Interface): Interface is extended so that it is
13213         now syntactically and semantically equivalent to Import.
13214         (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
13215         insertion characters.
13216         Add handling for Pragma_Wide_Character_Encoding
13217         (Process_Restrictions_Restriction_Warnings): Ensure that a warning
13218         never supercedes a real restriction, and that a real restriction
13219         always supercedes a warning.
13220         (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
13221         appropriate form.
13222
13223 2006-10-31  Bob Duff  <duff@adacore.com>
13224             Ed Schonberg  <schonberg@adacore.com>
13225             Robert Dewar  <dewar@adacore.com>
13226
13227         * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
13228         Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
13229         Is_Inherently_Limited_Type, because return-by-reference has no meaning
13230         in Ada 2005.
13231         (Find_Node_To_Be_Wrapped): Use new method of determining the result
13232         type of the function containing a return statement, because the
13233         Return_Type field was removed. We now use the Return_Applies_To field.
13234
13235         * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
13236         (Build_Task_Image_Decl): If procedure is not called from an
13237         initialization procedure, indicate that function that builds task name
13238         uses the sec. stack. Otherwise the enclosing initialization procedure
13239         will carry the indication.
13240         (Insert_Actions): Remove N_Return_Object_Declaration. We now use
13241         N_Object_Declaration instead.
13242         (Kill_Dead_Code): New interface to implement -gnatwt warning for
13243         conditional dead code killed, and change implementation accordingly.
13244         (Insert_Actions): Add N_Return_Object_Declaration case.
13245         Correct comment to mention N_Extension_Aggregate node.
13246         (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
13247         attempts to save information for global variables which cannot be
13248         safely tracked.
13249         (Get_Current_Value_Condition): Handle conditions the other way round
13250         (constant on left). Also handle right operand of AND and AND THEN
13251         (Set_Current_Value_Condition): Corresponding changes
13252         (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
13253         (Get_Current_Value_Condition): Handle simple boolean operands
13254         (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
13255         (Get_Current_Value_Condition): If the variable reference is within an
13256         if-statement, does not appear in the list of then_statments, and does
13257         not come from source, treat it as being at unknown location.
13258         (Get_Current_Value_Condition): Enhance to allow while statements to be
13259         processed as well as if statements.
13260         (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
13261         come from source.
13262         (OK_To_Do_Constant_Replacement): Allow constant replacement within body
13263         of loop. This is safe now that we fixed Kill_Current_Values.
13264         (OK_To_Do_Constant_Replacement): Check whether current scope is
13265         Standard, before examining outer scopes.
13266
13267 2006-10-31  Vincent Celier  <celier@adacore.com>
13268
13269         * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
13270         When True, apply VMS treatment to children of packages A, G, I and S.
13271         For F320-016
13272
13273         * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
13274
13275 2006-10-31  Robert Dewar  <dewar@adacore.com>
13276             Ed Schonberg  <schonberg@adacore.com>
13277
13278         * freeze.adb: Add handling of Last_Assignment field
13279         (Warn_Overlay): Supply missing continuation marks in error msgs
13280         (Freeze_Entity): Add check for Preelaborable_Initialization
13281
13282         * g-comlin.adb: Add Warnings (Off) to prevent new warning
13283
13284         * g-expect.adb: Add Warnings (Off) to prevent new warning
13285
13286         * lib-xref.adb: Add handling of Last_Assignment field
13287         (Generate_Reference): Centralize handling of pragma Obsolescent here
13288         (Generate_Reference): Accept an implicit reference generated for a
13289         default in an instance.
13290         (Generate_Reference): Accept a reference for a node that is not in the
13291         main unit, if it is the generic body corresponding to an subprogram
13292         instantiation.
13293
13294         * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
13295
13296         * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
13297         -gnatwq/Q.
13298         (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
13299         exception handler.
13300         (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
13301         use clauses, to avoid messages on packages used to qualify, and also
13302         to avoid messages from obsolescent units.
13303         (Warn_On_Useless_Assignments): Don't generate messages for imported
13304         and exported variables.
13305         (Warn_On_Useless_Assignments): New procedure
13306         (Output_Obsolescent_Entity_Warnings): New procedure
13307         (Check_Code_Statement): New procedure
13308
13309         * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
13310         Change name Is_Ada_2005 to Is_Ada_2005_Only
13311         (Last_Assignment): New field for useless assignment warning
13312
13313 2006-10-31  Olivier Hainque  <hainque@adacore.com>
13314
13315         * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
13316         closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
13317
13318 2006-10-31  Bob Duff  <duff@adacore.com>
13319             Robert Dewar  <dewar@adacore.com>
13320             Ed Schonberg  <schonberg@adacore.com>
13321
13322         * g-awk.adb (Default_Session, Current_Session): Compile this file in
13323         Ada 95 mode, because it violates the new rules for AI-318.
13324
13325         * g-awk.ads: Use overloaded subprograms in every case where we used to
13326         have a default of Current_Session. This makes the code closer to be
13327         correct for both Ada 95 and 2005.
13328
13329         * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
13330         code, relying on the fact that the compiler generates a warning
13331         instead of an error in -gnatg mode.
13332
13333         * lib-xref.ads (Xref_Entity_Letters): Add entry for new
13334         E_Return_Statement entity kind.
13335         Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
13336
13337         * par.adb (P_Interface_Type_Definition): Addition of one formal to
13338         report an error if the reserved word abstract has been previously found.
13339         (SS_End_Type): Add E_Return for new extended_return_statement syntax.
13340
13341         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
13342         parenthesized range attribute usage
13343         (P_Expression_No_Right_Paren): Add missing comment about error recovery.
13344
13345         * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
13346         in the syntax for extended_return_statement. This is not in the latest
13347         RM, but the ARG is expected to issue an AI allowing this.
13348         (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
13349         N_Return_Object_Declaration. We now use N_Object_Declaration instead.
13350         (P_Return_Object_Declaration, P_Return_Subtype_Indication,
13351         P_Return_Statement): Parse the new syntax for extended_return_statement.
13352
13353         * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
13354         Output_End_Missing): Add error-recovery code for the new
13355         extended_return_statement syntax; that is, the new E_Return entry on
13356         the scope stack.
13357
13358         * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
13359         limited to nonlimited, because otherwise we violate the new Ada 2005
13360         rules about returning limited types in function Create_AST_Handler in
13361         s-asthan.adb.
13362
13363         * sem.adb (Analyze): Add cases for new node kinds
13364         N_Extended_Return_Statement and N_Return_Object_Declaration.
13365
13366         * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
13367         type is in the same category as type of context before applying check,
13368         to prevent anomalies in instantiations.
13369         (Resolve_Aggregate): Remove test for limited components in aggregates.
13370         It's unnecessary in Ada 95, because if it has limited components, then
13371         it must be limited. It's wrong in Ada 2005, because limited aggregates
13372         are now allowed.
13373         (Resolve_Record_Aggregate): Move check for limited types later, because
13374         OK_For_Limited_Init requires its argument to have been resolved.
13375         (Get_Value): When copying the component default expression for a
13376         defaulted association in an aggregate, use the sloc of the aggregate
13377         and not that of the original expression, to prevent spurious
13378         elaboration errors, when the expression includes function calls.
13379         (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
13380         were missing. We also didn't handle qualified expressions. Now also
13381         allow function calls. Use new common routine OK_For_Limited_Init.
13382         (Resolve_Extension_Aggregate): Minor fix to bad error message (started
13383         with space can upper case letter).
13384
13385         * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
13386         Has_Static_Discriminants flag
13387         (Record_Type_Declaration): Diagnose an attempt to declare an interface
13388         type with discriminants.
13389         (Process_Range_Expr_In_Decl): Do validity checks on range
13390         (Build_Discriminant_Constraints): Use updated form of
13391         Denotes_Discriminant.
13392         (Process_Subtype): If the subtype is a private subtype whose full view
13393         is a concurrent subtype, introduce an itype reference to prevent scope
13394         anomalies in gigi.
13395         (Build_Derived_Record_Type, Collect_Interface_Primitives,
13396         Record_Type_Declaration):  The functionality of the subprograms
13397         Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
13398         is now performed by a single routine.
13399         (Build_Derived_Record_Type): If the type definition includes an explicit
13400         indication of limitedness, then the type must be marked as limited here
13401         to ensure that any access discriminants will not be treated as having
13402         a local anonymous access type.
13403         (Check_Abstract_Overriding): Issue a detailed error message when an
13404         abstract subprogram was not overridden due to incorrect mode of its
13405         first parameter.
13406         (Analyze_Private_Extension_Declaration): Add support for the analysis of
13407         synchronized private extension declarations. Verify that the ancestor is
13408         a limited or synchronized interface or in the generic case, the ancestor
13409         is a tagged limited type or synchronized interface and all progenitors
13410         are either limited or synchronized interfaces.
13411         Derived_Type_Declaration): Check for presence of private extension when
13412         dealing with synchronized formal derived types.
13413         Process_Full_View): Enchance the check done on the usage of "limited" by
13414         testing whether the private view is synchronized.
13415         Verify that a synchronized private view is completed by a protected or
13416         task type.
13417         (OK_For_Limited_Init_In_05): New function.
13418         (Analyze_Object_Declaration): Move check for limited types later,
13419         because OK_For_Limited_Init requires its argument to have been resolved.
13420         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13421         in order to alleviate the upward compatibility introduced by AI-318.
13422         (Constrain_Corresponding_Record): If the constraint is for a component
13423         subtype, mark the itype as frozen, to avoid out-of-scope references to
13424         discriminants in the back-end.
13425         (Collect_Implemented_Interfaces): Protect the recursive algorithm of
13426         this subprogram against wrong sources.
13427         (Get_Discr_Value, Is_Discriminant): Handle properly references to a
13428         discriminant of limited type completed with a protected type, when the
13429         discriminant is used to constrain a private component of the type, and
13430         expansion is disabled.
13431         (Find_Type_Of_Object): Do not treat a return subtype that is an
13432         anonymous subtype as a local_anonymous_type, because its accessibility
13433         level is the return type of the enclosing function.
13434         (Check_Initialization): In -gnatg mode, turn the error "cannot
13435         initialize entities of limited type" into a warning.
13436         (OK_For_Limited_Init): Return true for generated nodes, since it
13437         sometimes violates the legality rules.
13438         (Make_Incomplete_Declaration): If the type for which an incomplete
13439         declaration is created happens to be the currently visible entity,
13440         preserve the homonym chain when removing it from visibility.
13441         (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
13442         inherited subprograms.
13443         (Access_Definition): If this is an access to function that is the return
13444         type of an access_to_function definition, context is a type declaration
13445         and the scope of the anonymous type is the current one.
13446         (Analyze_Subtype_Declaration): Add the defining identifier of a regular
13447         incomplete subtype to the set of private dependents of the original
13448         incomplete type.
13449         (Constrain_Discriminated_Type): Emit an error message whenever an
13450         incomplete subtype is being constrained.
13451         (Process_Incomplete_Dependents): Transform an incomplete subtype into a
13452         corresponding subtype of the full view of the original incomplete type.
13453         (Check_Incomplete): Properly detect invalid usage of incomplete types
13454         and subtypes.
13455
13456 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13457
13458         * g-catiio.ads, g-catiio.adb (Value): New function.
13459         Given an input String, try and parse a valid Time value.
13460
13461 2006-10-31  Vincent Celier  <celier@adacore.com>
13462
13463         * g-debpoo.adb (Is_Valid): Correctly compute Offset using
13464         Integer_Address arithmetic, as in Set_Valid.
13465
13466 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13467             Robert Dewar  <dewar@adacore.com>
13468
13469         * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
13470         handling executable extension manually and duplicating code.
13471
13472         * make.adb: Implement new -S switch
13473         (Gnatmake): Use new function Osint.Executable_Name instead
13474         of handling executable extension manually.
13475
13476         * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
13477         is specified, the executable name ends with this suffix.
13478         Take advantage of Osint.Executable_Name instead of duplicating code.
13479
13480         * switch-m.adb: Recognize new gnatmake -S switch
13481
13482         * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
13483         variable.
13484         (Get_Target_Parameters): Set Executable_Extension_On_Target if
13485         available.
13486
13487         * makeusg.adb: Add line for gnatmake -S switch
13488
13489 2006-10-31  Vincent Celier  <celier@adacore.com>
13490
13491         * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
13492         call it with -static-libgcc, as there are some platforms, such as
13493         Darwin, where one of these two switches is compulsory to link.
13494
13495 2006-10-31  Vincent Celier  <celier@adacore.com>
13496
13497         * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
13498         instead of ADA_PROJECT_PATH, for the project path.
13499         (Gnatls): When displaying the project path directories, use host dir
13500         specs.
13501
13502         * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
13503         names in the project path, as absolute paths may correspond to
13504         multi-valued VMS logical names.
13505
13506 2006-10-31  Vincent Celier  <celier@adacore.com>
13507
13508         * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
13509         absolute path name.
13510         (Locate_Regular_File): Ditto
13511         (Change_Dir): Remove, no longer used
13512         (Normalize_Pathname): Do not use Change_Dir to get the drive letter
13513         on Windows. Get it calling Get_Current_Dir.
13514         (OpenVMS): Remove imported boolean, no longer needed.
13515         (Normalize_Pathname)[VMS]: Do not resolve directory names.
13516         (Pid_To_Integer): New function to convert a Process_Id to  Integer
13517
13518 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13519
13520         * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
13521         sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
13522         to No_Socket.
13523         (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
13524         W_Sig_Socket.
13525
13526 2006-10-31  Robert Dewar  <dewar@adacore.com>
13527
13528         * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
13529         initial letter o as a zero.
13530
13531 2006-10-31  Robert Dewar  <dewar@adacore.com>
13532
13533         * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
13534
13535 2006-10-31  Robert Dewar  <dewar@adacore.com>
13536
13537         * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
13538         variant records
13539         (Layout_Variant_Record): Retrieve the discriminants from the entity
13540         rather than from the type definition, because in the case of a full
13541         type for a private type we need to take the discriminants from the
13542         partial view.
13543         (Layout_Component_List): When applying the Max operator to variants with
13544         a nonstatic size, check whether either operand is static and scale that
13545         operand from bits to storage units before applying Max.
13546         (Layout_Type): In VMS, if a C-convention access type has no explicit
13547         size clause (and does not inherit one in the case of a derived type),
13548         then the size is reset to 32 from 64.
13549
13550 2006-10-31  Vincent Celier  <celier@adacore.com>
13551
13552         * lib-load.adb (Load_Unit): Skip the test for a unit not found when
13553         its file has already been loaded, according to the unit being loaded,
13554         not to the current value of Multiple_Unit_Index.
13555
13556 2006-10-31  Thomas Quinot  <quinot@adacore.com>
13557             Eric Botcazou  <ebotcazou@adacore.com>
13558             Arnaud Charlet  <charlet@adacore.com>
13559
13560         * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
13561         (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
13562         possible.
13563         (a-except.o): Pass it to the compiler.
13564         (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
13565         (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
13566         a-calend-mingw.adb version.
13567
13568         * Makefile.rtl: Added s-dsaser.
13569         Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
13570         (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
13571         Ada.Dispatching.Round_Robin.
13572         Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
13573
13574         * Make-lang.in: Remove all references to gt-ada-decl.h.
13575         Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
13576         sources.
13577         Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
13578         Update dependencies.
13579
13580         * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
13581
13582 2006-10-31  Vincent Celier  <celier@adacore.com>
13583
13584         * mlib-utl.adb (Initialized): Remove, no longer used
13585         (Initialize): Remove, no longer used
13586         (Ar): If Ar_Exec is null, get the location of the archive builder and,
13587         if there is one, the archive indexer. Fail if the archive builder cannot
13588         be found.
13589         (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
13590         be found.
13591
13592 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13593
13594         * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
13595         Process_Body_Clauses): If the context of a body includes a use clause
13596         for P.Q then a with_clause for P in the same body is not redundant,
13597         even if the spec also has a with_clause on P.
13598         Add missing continuation mark to error msg
13599         (Build_Limited_Views): A limited view of a type is tagged if its
13600         declaration includes a record extension.
13601         (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
13602         node, even if the subunit has errors. This avoids malfunction by
13603         Lib.Check_Same_Extended_Unit in the presence of syntax errors.
13604         (Analyze_Compilation_Unit): Add circuit to make sure we get proper
13605         generation of obsolescent messages for with statements (cannot do
13606         this too early, or we cannot implement avoiding the messages in the
13607         case of obsolescent units withing obsolescent units).
13608         (Install_Siblings): If the with_clause is on a remote descendant of
13609         an ancestor of the current compilation unit, find whether there is
13610         a sibling child unit that is immediately visible.
13611         (Remove_Private_With_Clauses): New procedure, invoked after completing
13612         the analysis of the private part of a nested package, to remove from
13613         visibility the private with_clauses of the enclosing package
13614         declaration.
13615         (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
13616         now centralized in Generate_Reference.
13617         (Install_Limited_Context_Clauses): Remove superfluous error
13618         message associated with unlimited view visible through use
13619         and renamings. In addition, at the point in which the error
13620         is reported, we add the backslash to the text of the error
13621         to ensure that it is reported as a single error message.
13622         Use new // insertion for some continuation messages
13623         (Expand_Limited_With_Clause): Use copy of name rather than name itself,
13624         to create implicit with_clause for parent unit mentioned in original
13625         limited_with_clause.
13626         (Install_Limited_With_Unit): Set entity of parent identifiers if the
13627         unit is a child unit. For ASIS queries.
13628         (Analyze_Subunit): If the subunit appears within a child unit, make all
13629         ancestor child units directly visible again.
13630
13631 2006-10-31  Robert Dewar  <dewar@adacore.com>
13632
13633         * par-ch10.adb (P_Context_Clause): Minor error message fix
13634
13635 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
13636             Javier Miranda  <miranda@adacore.com>
13637
13638         * par-ch12.adb: Grammar update and cleanup.
13639         (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
13640         support for synchronized derived type definitions.
13641         Add the new actual Abstract_Present to every call to
13642         P_Interface_Type_Definition.
13643         (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
13644         a formal object declaration with an access definition or a subtype mark
13645         with a null exclusion.
13646         (P_Generic_Association): Handle association with box, and others_choice
13647         with box, to support Ada 2005 partially parametrized formal packages.
13648
13649 2006-10-31  Robert Dewar  <dewar@adacore.com>
13650             Javier Miranda  <miranda@adacore.com>
13651
13652         * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
13653         (P_Type_Declaration): Remove barrier against the reserved word "limited"
13654         after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
13655         (P_Type_Declaration): Minor code cleanup. Add support for synchronized
13656         private extensions.
13657         (P_Type_Declaration): Add the new actual Abstract_Present to every call
13658         to P_Interface_Type_Definition.
13659         (P_Interface_Type_Definition): Addition of one formal to report an error
13660         if the reserved word abstract has been previously found.
13661         (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
13662         object renaming declaration with an access definition or subtype mark
13663         with a possible null exclusion.
13664
13665         * par-ch9.adb: Minor error msg fix
13666
13667         * par-load.adb: Add missing continuation mark to error msg
13668
13669         * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
13670
13671 2006-10-31  Vincent Celier  <celier@adacore.com>
13672
13673         * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
13674         unknown attribute in unknown package or in package that does not need
13675         to be checked.
13676         (Parse_Package_Declaration): Do not issue warning for unknown package in
13677         quiet output.
13678
13679 2006-10-31  Vincent Celier  <celier@adacore.com>
13680
13681         * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
13682         (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
13683         Packages_To_Check.
13684
13685 2006-10-31  Vincent Celier  <celier@adacore.com>
13686
13687         * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
13688         on VMS, change "__" to '.' before checking the name.
13689         (Record_Ada_Source): Always add the source file name in the list of
13690         of sources, even if it is not the first time, as it is for another
13691         source index.
13692         (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
13693         dot, instead of replacing only the first '_'.
13694
13695         * prj-part.adb (Parse): Convert project file path to canonical form
13696
13697         * prj-proc.adb (Recursive_Process): Make sure that, when a project is
13698         extended, the project id of the project extending it is recorded in its
13699         data, even when it has already been processed as an imported project.
13700
13701 2006-10-31  Robert Dewar  <dewar@adacore.com>
13702
13703         * repinfo.adb (List_Entities): Don't list entities from renaming
13704         declarations.
13705
13706 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13707             Robert Dewar  <dewar@adacore.com>
13708
13709         * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
13710         only a restriction warning is active for the given restriction. This is
13711         desirable because we do not want to modify code in the case where only
13712         a warning is set.
13713         (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
13714         causes overriding of real restrictions.
13715         Take advantage of new No_Restrictions constant.
13716
13717         * raise.h: (__gnat_set_globals): Change profile.
13718
13719 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
13720
13721         * rtsfind.adb: Remove s-polint from comment as it exists no more.
13722
13723         * rtsfind.ads: 
13724         Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
13725         Move all the entities in obsolete package System.PolyORB_Interface to
13726         System.Partition_Interface.
13727         (RE_Storage_Size): New function in System.Tasking.
13728         (RE_Get_Ceiling): New entity.
13729         (RE_Set_Ceiling): New entity.
13730         (RO_PE_Get_Ceiling): New entity.
13731         (RO_RE_Set_Ceiling): New entity.
13732         (Inherit_CPP_DT): New entity
13733
13734 2006-10-31  Robert Dewar  <dewar@adacore.com>
13735
13736         * scng.adb (Scan, case of numeric literal): Better msg for identifier
13737         starting with a digit.
13738
13739 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13740             Thomas Quinot  <quinot@adacore.com>
13741             Javier Miranda  <miranda@adacore.com>
13742             Gary Dismukes  <dismukes@adacore.com>
13743
13744         * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
13745         properly an attempt to apply Unchecked_Access to a protected operation.
13746         (OK_Self_Reference): New subprogram to check the legality of an access
13747         attribute whose prefix is the type of an enclosing aggregate.
13748         Generalizes previous mechanism to handle attribute references nested
13749         arbitrarily deep within the aggregate.
13750         (Analyze_Access_Attribute): An access attribute whose prefix is a type
13751         can appear in an aggregate if this is a default-initialized aggregate
13752         for a self-referential type.
13753         (Resolve_Attribute, case Access): Ditto.
13754         Add support for new implementation defined attribute Stub_Type.
13755         (Eval_Attribute, case Attribute_Stub_Type): New case.
13756         (Analyze_Attribute, case Attribute_Stub_Type): New case.
13757         (Stream_Attribute_Available): Implement using new subprogram from
13758         sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
13759         Has_Specified_Stream_Attribute flag.
13760         Disallow Storage_Size and Storage_Pool for access to subprogram
13761         (Resolve_Attribute, case 'Access et al): Take into account anonymous
13762         access types of return subtypes in extended return statements. Remove
13763         accessibility checks on anonymous access types when Unchecked_Access is
13764         used.
13765         (Analyze_Attribute): Add support for the use of 'Class to convert
13766         a class-wide interface to a tagged type.
13767         Add support for the attribute Priority.
13768         (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
13769         whether the designated type is discriminated with a constrained partial
13770         view and require static matching in that case.
13771         Add local variable Des_Btyp. The Designated_Type
13772         of an access to incomplete subtype is either its non-limited view if
13773         coming from a limited with or its etype if regular incomplete subtype.
13774
13775         * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
13776         Fix predicate to identify and allow cases of (expander-generated)
13777         references to tag of designated object of a RACW.
13778         (Validate_Static_Object_Name): In Ada 2005, a formal object is
13779         non-static, and therefore cannot appear as a primary in a preelaborable
13780         package.
13781         (Has_Stream_Attribute_Definition): New subprogram, abstracted from
13782         Has_Read_Write_Attributes.
13783         (Has_Read_Write_Attributes): Reimplement in termes of
13784         Has_Stream_Attribute_Definition.
13785         (Missing_Read_Write_Attributes): When checking component types in a
13786         record, unconditionally call Missing_Read_Write_Attributes recursively
13787         (remove guard checking for Is_Record_Type / Is_Access_Type).
13788
13789 2006-10-31  Robert Dewar  <dewar@adacore.com>
13790
13791         * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
13792         useless assignments here and conditionalize it on absence of exception
13793         handlers.
13794         (Analyze_Exception_Handlers): Small code reorganization of error
13795         detection code, for new handling of formal packages.
13796
13797 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13798             Hristian Kirtchev  <kirtchev@adacore.com>
13799
13800         * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
13801         that has been constant-folded, preserve information of original tree,
13802         for ASIS uses.
13803         (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
13804         generated private extension declaration if the formal derived type is
13805         synchronized. Carry synchronized present over to the generated private
13806         extension.
13807         (Validate_Derived_Type_Instance): Ensure that the actual of a
13808         synchronized formal derived type is a synchronized tagged type.
13809         (Instantiate_Formal_Package): When creating the instantiation used to
13810         validate the actual package of a formal declared without a box, check
13811         whether the formal itself depends on a prior actual.
13812         (Instantiate_Formal_Subprogram): Create new entities for the defining
13813         identifiers of the formals in the renaming declaration, for ASIS use.
13814         (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
13815         a renaming declaration or a subtype declaration for an actual in an
13816         instance, capture location information of declaration in generic, for
13817         ASIS use.
13818         (Instantiate_Formal_Package): Add comments on needed additional tests.
13819         AI-317 (partial parametrization) is fully implemented.
13820         (Validate_Private_Type_Instance): Add check for actual which
13821         must have preelaborable initialization
13822         Use new // insertion for some continuation messages
13823         (Analyze_Formal_Object_Declaration): Change usage of Expression to
13824         Default_Expression. Add type retrieval when the declaration has an
13825         access definition. Update premature usage of incomplete type check.
13826         (Check_Access_Definition): New subsidiary routine. Check whether the
13827         current compilation version is Ada 05 and the supplied node has an
13828         access definition.
13829         (Instantiate object): Alphabetize local variables. Handle the creation
13830         of new renaming declarations with respect to the kind of definition
13831         used - either an access definition or a subtype mark. Guard against
13832         unnecessary error message in the context of anonymous access types after
13833         they have been resolved. Add check for required null exclusion in a
13834         formal object declaration.
13835         (Switch_View): A private subtype of a non-private type needs to be
13836         switched (the base type can have been switched without its private
13837         dependents because of the last branch of Check_Private_View.
13838         (Check_Private_View): Do not recompute Base_Type (T), instead use cached
13839         value from BT.
13840         (Instantiate_Type): Emit an error message whenever a class-wide type of
13841         a tagged incomplete type is used as a generic actual.
13842         (Find_Actual_Type): Extend routine to handle a component type in a child
13843         unit that is imported from a formal package in a parent.
13844         (Validate_Derived_Type_Instance): Check that analyzed formal and actual
13845         agree on constrainedness, rather than checking against ultimate ancestor
13846         (Instantiate_Subprogram_Body): Create a cross-reference link to the
13847         generic body, for navigation purposes.
13848
13849 2006-10-31  Robert Dewar  <dewar@adacore.com>
13850             Thomas Quinot  <quinot@adacore.com>
13851
13852         * sem_ch13.adb: Storage pool cannot be given for access to subprogram
13853         type.
13854         (New_Stream_Subprogram): When processing an attribute definition clause
13855         for a stream-oriented subprogram, record an entity node occurring at
13856         the point of clause to use for checking the visibility of the clause,
13857         as defined by 8.3(23) as amended by AI-195.
13858         (New_Stream_Subprogram): New procedure, factoring behaviour from both
13859          New_Stream_Function and New_Stream_Procedure.
13860         (New_Stream_Function, New_Stream_Procedure): Removed.
13861         (Analyze_Attribute_Definition_Clause, case Address): Check new
13862         Alignment_Check check
13863
13864 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13865             Javier Miranda  <miranda@adacore.com>
13866             Robert Dewar  <dewar@adacore.com>
13867
13868         * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
13869         generate the same errors compiling under -gnatc.
13870         (Try_Object_Operation): If no candidate interpretation succeeds, but
13871         there is at least one primitive operation with the right name, report
13872         error in call rather than on a malformed selected component.
13873         (Analyze_Selected_Component): If the prefix is an incomplete type from
13874         a limited view, and the full view is available, use the full view to
13875         determine whether this is a prefixed call to a primitive operation.
13876         (Operator_Check): Verify that a candidate interpretation is a binary
13877         operation before checking the type of its second formal.
13878         (Analyze_Call): Add additional warnings for function call contexts not
13879         yet supported.
13880         (Analyze_Allocator): Move the check for "initialization not allowed for
13881         limited types" after analyzing the expression. This is necessary,
13882         because OK_For_Limited_Init looks at the structure of the expression.
13883         Before analysis, we don't necessarily know what sort of expression it
13884         is. For example, we don't know whether F(X) is a function call or an
13885         indexed component; the former is legal in Ada 2005; the latter is not.
13886         (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
13887         were missing. We also didn't handle qualified expressions. Now also
13888         allow function calls. Use new common routine OK_For_Limited_Init.
13889         (Analyze_Type_Conversion): Do not perform some legality checks in an
13890         instance, because the error message will be redundant or spurious.
13891         (Analyze_Overloaded_Selected_Component): Do not do style check when
13892         setting an entity, since we do not know it is the right entity yet.
13893         (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
13894         (Analyze_Overloaded_Selected_Component): Same change
13895         (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
13896         since regular incomplete subtypes are transformed into corresponding
13897         subtypes of their full views.
13898         (Complete_Object_Operation): Treat name of transformed subprogram call
13899         as coming from source, for browsing purposes.
13900         (Try_Primitive_Operation): If formal is an access parameter, compare
13901         with base type of object to determine whether it is a primitive
13902         operation.
13903         (Operator_Check): If no interpretation of the operator matches, check
13904         whether a use clause on any candidate might make the operation legal.
13905         (Try_Class_Wide_Operation): Check whether the first parameter is an
13906         access type whose designated type is class-wide.
13907
13908 2006-10-31  Robert Dewar  <dewar@adacore.com>
13909             Ed Schonberg  <schonberg@adacore.com>
13910             Gary Dismukes  <dismukes@adacore.com>
13911
13912         * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
13913         warn on infinite loops.
13914         Add \\ to some continuation messages
13915         (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
13916         (Process_Bounds): If the bounds are integer literals that result from
13917         constant-folding, and they carry a user-defined type, preserve that type
13918         rather than treating this as an integer range.
13919         (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
13920         (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
13921         (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
13922         left hand side of assignment.
13923         (Analyze_Assignment): Add suport to manage assigments to the attribute
13924         priority of a protected object.
13925         (Check_Possible_Current_Value_Condition): Allow fully qualified names
13926         not just identifiers.
13927         (Check_Possible_Current_Value_Condition): Acquire left operand of AND
13928         or AND THEN for possible tracking.
13929         (Analyze_Iteration_Scheme): Check for setting Current_Value for the
13930         case of while loops so we can track values in the loop body.
13931
13932 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13933             Hristian Kirtchev  <kirtchev@adacore.com>
13934             Bob Duff  <duff@adacore.com>
13935
13936         * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
13937         procedure cannot be a protected operation (it is a basic_declaration,
13938         not a subprogram_declaration).
13939         (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
13940         Subp. Add logic for entry processing.
13941         (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
13942         Determine whether an entry or subprogram of a protected or task type
13943         override an inherited primitive of an implemented interface.
13944         (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
13945         Update the actual used in calls to Check_Overriding_Indicator.
13946         (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
13947         generate the proper reference to the parent unit, for cross-reference.
13948         (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
13949         Is_Formal.
13950         Add -gnatd.l --Use Ada 95 semantics for limited function returns,
13951         (Add_Extra_Formal): Revise procedure to allow passing in associated
13952         entity, scope, and name suffix, and handle setting of the new
13953         Extra_Formals field.
13954         (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
13955         pass new parameters. Add support for adding the new extra access formal
13956         for functions whose calls are treated as build-in-place.
13957         (Analyze_A_Return_Statement): Correct casing in error message.
13958         Move Pop_Scope to after Analyze_Function_Return, because an extended
13959         return statement really is a full-fledged scope. Otherwise, visibility
13960         doesn't work right. Correct use of "\" for continuation messages.
13961         (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
13962         evilly trying to call Analyze_Object_Declaration directly. Otherwise,
13963         the node doesn't get properly marked as analyzed.
13964         (Analyze_Subprogram_Body): If subprogram is a function that returns
13965         an anonymous access type that denotes a task, build a Master Entity
13966         for it.
13967         (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
13968         proper usage of null exclusion in a result definition.
13969         (Process_Formals): Code cleanup and new error message.
13970         (Process_Formals): Detect incorrect application of null exclusion to
13971         non-access types.
13972         (Conforming_Types): Handle conformance between [sub]types and itypes
13973          generated for entities that have null exclusions applied to them.
13974         (Maybe_Primitive_Operation): Add an additional type retrieval when the
13975          base type is an access subtype. This case arrises with null exclusions.
13976         (New_Overloaded_Entity): Do not remove the overriden entity from the
13977         homonym chain if it corresponds with an abstract interface primitive.
13978         (Process_Formals): Replace membership test agains Incomplete_Kind with a
13979         call to the synthesized predicate Is_Incomplete_Type.
13980         (Analyze_Subprogram_Body): Check wrong placement of abstract interface
13981         primitives.
13982         (Analyze_Subprogram_Declaration): Check that abstract interface
13983         primitives are abstract or null.
13984         (Analyze_Subprogram_Specification): Remove previous check for abstract
13985         interfaces because it was not complete.
13986         (Has_Interface_Formals): Removed.
13987
13988 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
13989             Javier Miranda  <miranda@adacore.com>
13990
13991         * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
13992         of Analyze_Package_Body, to create Itype references for anonymous
13993         access types created in the package declaration, whose designated types
13994         may have only a limited view.
13995         (Analyze_Package_Specification): For the private part of a nested
13996         package, install private_with_clauses of enclosing compilation unit if
13997         we are in its visible part.
13998         (Declare_Inherited_Private_Subprograms): Complete barrier
13999         to ensure that the primitive operation has an alias to some parent
14000         primitive. This is now required because, after the changes done for the
14001         implementation of abstract interfaces, the contents of the list of
14002         primitives has entities whose alias attribute references entities of
14003         such list of primitives.
14004         (Analyze_Package_Specification): Simplify code that handles parent units
14005         of instances and formal packages.
14006         (Uninstall_Declarations): Check the convention consistency among
14007         primitive overriding operations of a tagged record type.
14008
14009 2006-10-31  Robert Dewar  <dewar@adacore.com>
14010             Hristian Kirtchev  <kirtchev@adacore.com>
14011             Javier Miranda  <miranda@adacore.com>
14012             Ed Schonberg  <schonberg@adacore.com>
14013
14014         * sem_ch8.adb: Minor error msg rewording
14015         (Undefined): When checking for misspellings, invert arguments (to get
14016         expected and found set right)
14017         (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
14018         (Analyze_Generic_Renaming): Same fix
14019         (Use_One_Package): Do not take into account the internal entities of
14020         abstract interfaces during the analysis of entities that are marked
14021         as potentially use-visible.
14022         (Find_Type): Handle the case of an attribute reference for
14023         implementation defined attribute Stub_Type (simply let the analysis of
14024         the attribute reference rewrite it).
14025         (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
14026         type that appears in a Use_Type clause.
14027         (Analyze_Object_Renaming): Add support for renaming of the Priority
14028         attribute.
14029         (Find_Type): In Ada 2005, a task type can be used within its own body,
14030         when it appears in an access definition.
14031         (Analyze_Object_Renaming): Remove warning on null_exclusion.
14032         (Analyze_Object_Renaming): Introduce checks for required null exclusion
14033          in a formal object declaration or in a subtype declaration.
14034         (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
14035         (Check_Null_Exclusion): New local routine to
14036         Analyze_Subprogram_Renaming. Check whether the formals and return
14037         profile of a renamed subprogram have required null exclusions when
14038         their counterparts of the renaming already impose them.
14039         (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
14040         Determine whether an entity is inside a generic scope.
14041         (In_Open_Scope): First pass of documentation update.
14042         (Find_Expanded_Name): Add support for shadow entities associated with
14043         limited withed packages. This is required to handle nested packages.
14044         (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
14045         that makes a renaming of a limited withed package illegal.
14046
14047 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14048             Ed Schonberg  <schonberg@adacore.com>
14049
14050         * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
14051         Check_Overriding_Indicator.
14052         (Analyze_Task_Definition): Ditto.
14053         (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
14054         (Check_Overriding_Indicator): To find overridden interface operation,
14055         examine only homonyms that have an explicit subprogram declaration, not
14056         inherited operations created by an unrelated type derivation.
14057         (Check_Overriding_Indicator): When checking for the presence of "null"
14058         in a procedure, ensure that the queried node is a procedure
14059         specification.
14060         (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
14061         type when the formal is an access to variable.
14062         (Analyze_Protected_Type): Add check for Preelaborable_Initialization
14063         (Analyze_Task_Type): Same addition
14064         (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
14065         provide navigation capabilities for entries.
14066
14067 2006-10-31  Hristian Kirtchev  <kirtchev@adacore.com>
14068             Ed Schonberg  <schonberg@adacore.com>
14069             Javier Miranda  <miranda@adacore.com>
14070             Gary Dismukes  <dismukes@adacore.com>
14071
14072         * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
14073         inherited from an interface ancestor by another interface in the
14074         context of an instance as 'late'.
14075         (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
14076         of a call to a function that dispatches on access result.
14077         (Check_Dispatching_Operation): In case of late overriding of a primitive
14078         that covers abstract interface subprograms we register it in all the
14079         secondary dispatch tables associated with abstract interfaces.
14080         (Check_Dispatching_Call): Add check that a dispatching call is not made
14081         to a function with a controlling result of a limited type. This is a
14082         current implementation restriction.
14083         (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
14084         (Check_Dispatching_Operation): Do no emit a warning if the controlling
14085         argument is an interface type that is a generic formal.
14086         (Is_Interface_Subprogram): Removed.
14087         (Check_Dispatching_Operation): If the subprogram is not a dispatching
14088         operation, check the formals to handle the case in which it is
14089         associated with an abstract interface type.
14090
14091 2006-10-31  Robert Dewar  <dewar@adacore.com>
14092             Ed Schonberg  <schonberg@adacore.com>
14093
14094         * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
14095         Add new calls to this procedure during traversal
14096         (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
14097         another unit if expansion is disabled.
14098
14099 2006-10-31  Robert Dewar  <dewar@adacore.com>
14100
14101         * sem_eval.adb (Compile_Time_Compare): Make use of information from
14102         Current_Value in the conditional case, to evaluate additional
14103         comparisons at compile time.
14104
14105 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14106             Hristian Kirtchev  <kirtchev@adacore.com>
14107             Javier Miranda  <miranda@adacore.com>
14108
14109         * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
14110         subprogram type to provide better diagnostics in case of ambiguity.
14111         (Covers): Handle coverage of formal and actual anonymous access types in
14112         the context of generic instantiation.
14113         (Covers/Interface_Present_In_Ancestors): Use the base type to manage
14114         abstract interface types; this is required to handle concurrent types
14115         with discriminants and abstract interface types.
14116         (Covers): Include type coverage of both regular incomplete subtypes and
14117         incomplete subtypes of incomplete type visibles through a limited with
14118         clause.
14119
14120 2006-10-31  Robert Dewar  <dewar@adacore.com>
14121             Hristian Kirtchev  <kirtchev@adacore.com>
14122             Ed Schonberg  <schonberg@adacore.com>
14123
14124         * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
14125         messages for entities in packages which are not used.
14126         (Collect_Synchronized_Interfaces): New procedure.
14127         (Overrides_Synchronized_Primitive): New function.
14128         (Denotes_Discriminant): Extend predicate to apply to task types.
14129         Add missing continuation marks in error msgs
14130         (Unqualify): New function for removing zero or more levels of
14131         qualification from an expression. There are numerous places where this
14132         ought to be used, but we currently only deal properly with zero or one
14133         level.
14134         (In_Instance); The analysis of the actuals in the instantiation of a
14135         child unit is not within an instantiation, even though the parent
14136         instance is on the scope stack.
14137         (Safe_To_Capture_Value): Exclude the case of variables that are
14138         renamings.
14139         (Check_Obsolescent): Removed
14140         (Is_Aliased_View): A reference to an enclosing instance in an aggregate
14141         is an aliased view, even when rewritten as a reference to the target
14142         object in an assignment.
14143         (Get_Subprogram_Entity): New function
14144         (Known_To_Be_Assigned): New function
14145         (Type_Access_Level): Compute properly the access level of a return
14146         subtype that is an anonymous access type.
14147         (Explain_Limited_Type): Correct use of "\" for continuation messages.
14148         (Is_Transfer): The new extended_return_statement causes a transfer of
14149         control.
14150         (Has_Preelaborable_Initialization): New function
14151         (Has_Null_Exclusion): New function. Given a node N, determine whether it
14152         has a null exclusion depending on its Nkind.
14153         Change Is_Lvalue to May_Be_Lvalue
14154         (May_Be_Lvalue): Extensive additional code to deal with subprogram
14155         arguments (IN parameters are not Lvalues, IN OUT parameters are).
14156         (Safe_To_Capture_Value): Extend functionality so it can be used for
14157         the current value condition case.
14158         (Has_Compatible_Alignment): New function
14159         (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
14160         objects to handle the Ada 2005 case, where aliasedness no longer implies
14161         that the object is constrained. In particular, for dereferenced names,
14162         the designated object must be assumed to be unconstrained.
14163         (Kill_Current_Values): Properly deal with the case where we encounter
14164         a loop in the scope chain.
14165         (Safe_To_Capture_Value): Do not let a loop stop us from capturing
14166         a value.
14167         (Compile_Time_Constraint_Error): Improve error message in error case
14168
14169         * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
14170         associated with entities of abstract interface primitives.
14171         Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
14172
14173 2006-10-31  Robert Dewar  <dewar@adacore.com>
14174
14175         * s-osinte-tru64.adb: 
14176         Mark Asm statements Volatile to prevent warnings (seems a
14177         reasonable change anyway)
14178         Fixes new warnings
14179
14180         * s-mastop-irix.adb: Add Volatile to Asm statements
14181         Suppresses warning, and seems appropriate in any case
14182
14183         * s-osinte-vms.adb: Add Volatile to Asm statement
14184
14185         * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
14186
14187         * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
14188         returned.
14189         Add call to Check_Code_Statement
14190
14191 2006-10-31  Robert Dewar  <dewar@adacore.com>
14192             Ed Schonberg  <schonberg@adacore.com>
14193             Bob Duff  <duff@adacore.com>
14194
14195         * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
14196         Synchronized_Present): Add Formal_Derived_Type_Definition and
14197         Private_Extension_Declaration to the list of assertions.
14198         (Is_Entry_Barrier_Function): New flag
14199         (Has_Self_Reference): New flag on aggregates, to indicate that they
14200         contain a reference to the enclosing type, inserted through a default
14201         initialization.
14202         (Next_Rep_Item): Move from Node4 to Node5.
14203         (Entity): Add this field for N_Attribute_Definition_Clause.
14204         (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
14205         (N_Return_Object_Declaration): Remove this node kind. We now use
14206         N_Object_Declaration instead.
14207         (Actual_Designated_Subtype): Move to a different place to make room in
14208         N_Extended_Return_Statement.
14209         (Procedure_To_Call): Move to a different place to make room in
14210         N_Extended_Return_Statement.
14211         (Return_Type): Removed this field to make room in return statements
14212         (both kinds).
14213         (Return_Statement_Entity): New field in return statements, in part to
14214         replace Return_Type, and in part to support the fact that return
14215         statements are now pushed on the scope stack during semantic analysis.
14216         (Return_Object_Declarations): New field to support extended return
14217         statements.
14218         (N_Extended_Return_Statement): New node for extended_return_statement
14219         nonterminal.
14220         (N_Return_Object_Declaration): New node for part of
14221         extended_return_statement nonterminal. Needed because all the necessary
14222         fields won't fit in N_Extended_Return_Statement.
14223         Generic_associations now carry the Box_Present flag, to indicate a
14224         default for an actual in a partially parametrized formal package.
14225
14226         * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
14227         (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
14228         and for the new predefined dispatching policies: EDF_Across_Priorities,
14229         Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
14230         Introduce new name Stub_Type for implementation defined attribute.
14231         Add pragma Preelaborable_Initialization
14232         Add entry for Priority attribute.
14233         Add Pragma_Wide_Character_Encoding
14234         (Get_Convention_Name): Given a convention id, this function returns the
14235         corresponding name id from the names table.
14236
14237 2006-10-31  Ed Schonberg  <schonberg@adacore.com>
14238             Robert Dewar  <dewar@adacore.com>
14239             Bob Duff  <duff@adacore.com>
14240
14241         * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
14242         print null exclusion twice in the case of an access definition,
14243         Implement new -gnatL switch
14244         Remove N_Return_Object_Declaration. We now use
14245         N_Object_Declaration instead. Implement the case for
14246         N_Extended_Return_Statement. Alphabetize the cases.
14247         Add cases for new nodes N_Extended_Return_Statement and
14248         N_Return_Object_Declaration. The code is not yet written.
14249         Update the output for N_Formal_Object_Declaration
14250         and N_Object_Renaming_Declaration.
14251         (Write_Itype): Account for the case of a modular integer subtype whose
14252         base type is private.
14253
14254 2006-10-31  Arnaud Charlet  <charlet@adacore.com>
14255
14256         * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
14257         Remove elaboration code, now done in the binder.
14258
14259         * s-rident.ads: Make this unit Preelaborate.
14260         (No_Restrictions): New constant used to clean up code and follow
14261         preelaborate constraints.
14262
14263         * s-stalib.adb: 
14264         Add System.Restrictions dependence, referenced directly from the
14265         binder generated file.
14266
14267 2006-10-31  Gary Dismukes  <dismukes@adacore.com>
14268
14269         * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
14270         True when AAMP extended floating-point is in use (48-bit). Change type
14271         ByteLF to ByteLLF, add new array type ByteLF and condition the size of
14272         the two byte array types on AFloat. Change type of IV_Ilf overlay
14273         variable from Byte8 to ByteLF. Add appropriate initializations of
14274         floating-point overlays for AAMP cases.
14275
14276 2006-10-31  Javier Miranda  <miranda@adacore.com>
14277
14278         * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
14279         (Get_Ceiling): New subprogram that returns
14280         the ceiling priority of the protected object.
14281         (Set_Ceiling): New subprogram that sets the new ceiling priority of
14282         the protected object.
14283
14284         * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
14285
14286         * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
14287
14288 2006-10-31  Jose Ruiz  <ruiz@adacore.com>
14289
14290         * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
14291         requeuing to the same protected object to give higher priority tasks
14292         the opportunity to execute.
14293
14294 2006-10-31  Robert Dewar  <dewar@adacore.com>
14295
14296         * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
14297         add more precise check for the character sequence that follows '[' to
14298         avoid possible confusion in case if '[' is the last character of a
14299         string literals.
14300         (Scan_Wide): Always allow brackets encoding
14301
14302 2006-10-31  Olivier Hainque  <hainque@adacore.com>
14303
14304         * s-stchop.ads: make this unit preelaborate. This is desirable in
14305         general and made mandatory by the use of this unit by s-taprop which
14306         is itself preelaborate.
14307
14308         * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
14309         Td_Events component.
14310
14311 2006-10-31  Vincent Celier  <celier@adacore.com>
14312
14313         * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
14314         in file names.
14315
14316 2006-10-31  Vincent Celier  <celier@adacore.com>
14317
14318         * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
14319
14320 2006-10-31  Vincent Celier  <celier@adacore.com>
14321
14322         * makegpr.adb (Check_Compilation_Needed): Take into account path names
14323         with spaces.
14324         (Check_Compilation_Needed): When checking a C or C++ source, do not
14325         resolve symbolic links.
14326         (Display_Command): New Boolean parameter Ellipse, defaulted to False.
14327         When not in verbose mode and Ellipse is True, display "..." for the
14328         first argument with Display set to False.
14329         (Build_Global_Archive): Always set Display True for the first object
14330         file. Call Display_Command with Ellipse set to True.
14331
14332 2006-10-31  Matt Heaney  <heaney@adacore.com>
14333
14334         * a-crbtgo.ads: Commented each subprogram
14335
14336         * a-crbtgo.adb: Added reference to book from which algorithms were
14337         adapted.
14338
14339         * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
14340         indicate which child.
14341         (Generic_Conditional_Insert): changed parameter name from "Success" to
14342         "Inserted".
14343         (Generic_Unconditional_Insert_With_Hint): improved algorithm
14344
14345         * a-coorse.adb (Replace_Element): changed parameter name in call to
14346         conditional insert operation.
14347
14348         * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
14349
14350         * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
14351         Generic_Iteration
14352
14353         * a-ciorse.adb (Replace_Element): changed parameter name in call to
14354         conditional insert operation.
14355
14356         * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
14357         Generic_Iteration.
14358
14359         * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
14360         instead of mode inout.
14361
14362         * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
14363         draft
14364         (Generic_Read): preserve existing buckets array if possible
14365         (Generic_Write): don't send buckets array length anymore
14366
14367         * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
14368         instead of mode inout.
14369
14370         * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
14371         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14372
14373         * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
14374         (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
14375         (Replace_Element): local operation is now an instantiation
14376
14377         * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
14378         check current length.
14379         (Generic_Replace_Element): new operation
14380
14381 2006-10-31  Doug Rupp  <rupp@adacore.com>
14382
14383         * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
14384         Call TBK$SYMBOLIZE without omitting parameters.
14385
14386 2006-10-31  Vincent Celier  <celier@adacore.com>
14387
14388         * symbols-processing-vms-ia64.adb,
14389         symbols-processing-vms-alpha.adb (Process): Do not include symbols
14390         that come from generic instantiations in bodies.
14391
14392 2006-10-31  Pat Rogers  <rogers@adacore.com>
14393
14394         * a-rttiev.ads, a-rttiev.adb: 
14395         This is a significant redesign primarily for the sake of automatic
14396         timer task termination but also to fix a design flaw.
14397         Therefore we are now using an RTS lock, instead of a protected
14398         object, to provide mutual exclusion to the queue of pending events
14399         and the type Timing_Event is no longer a protected type.
14400
14401 2006-10-31  Robert Dewar  <dewar@adacore.com>
14402             Cyrille Comar  <comar@adacore.com>
14403             Ben Brosgol  <brosgol@adacore.com>
14404
14405         * debug.adb:  Update flags documentation
14406
14407         * gnat_ugn.texi: Add documentation for new -gnatwq switch
14408         Clean up documentation for several other warning switches
14409         Clarify how task stack size can be specified with various
14410         versions of Windows.
14411         Add note that -gnatVo includes ranges including loops
14412         Add documentation for -gnatL switch
14413         Add note on elaboration warning for initializing variables
14414         Add documentation for new -gnatwt warning switch
14415         Document new form of pragma Warnings (On|Off, string)
14416         Add comment on use of pragma Warnings to control warnings
14417         Add documentation for -gnatjnn switch
14418         Modify section on interfacing with C for VMS 64-bit.
14419         Add doc for -gnatVe/E
14420         Add documentation of new warning flags -gnatww/-gnatwW
14421         Add warnings about address clause overlays to list of warnings
14422         (Exception Handling Control): Document that the option --RTS must be
14423         used consistently for gcc and gnatbind.
14424         Clarify that inlining is not always possible
14425         Update documentation on pragma Unchecked_Union.
14426
14427         * gnat_rm.texi: 
14428         Add documentation for new extended version of pragma Obsolescent
14429         Add documentation for implementation defined attribute 'Stub_Type.
14430         Add note on use of Volatile in asm statements
14431         Add documentation on use of pragma Unreferenced in context clause
14432         Document new form of pragma Warnings (On|Off, pattern)
14433         Document pragma Wide_Character_Encoding
14434         Add note that pragma Restrictions (No_Elaboration_Code) is only fully
14435         enforced if code generation is active.
14436         Add section on pragma Suppress to document GNAT specific check
14437         Alignment_Check
14438         Clarify difference between No_Dispatching_Calls & No_Dispatch.
14439         Add documentation for pragma Restrictions (No_Elaboration_Code)
14440
14441         * gnat-style.texi: 
14442         Add comments on layout of subprogram local variables in the
14443         presence of nested subprograms.
14444
14445         * ug_words: Resync.
14446
14447         * elists.ads: Minor reformatting
14448         Node returns Node_Or_Entity_Id (doc change only)
14449
14450         * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
14451
14452         * g-arrspl.ads (Create): Update comments.
14453
14454         * sem.ads: Add details on the handling of the scope stack.
14455
14456         * usage.adb: Update documentation.
14457
14458         * validsw.ads, validsw.adb: 
14459         Add definition of Validity_Check_Components and implement -gnatVe/E
14460
14461         * vms_data.ads: Add missing VMS qualifiers.
14462
14463         * s-addope.ads: Add documentation on overflow and divide by zero
14464
14465 2006-10-31  Robert Dewar  <dewar@adacore.com>
14466             Thomas Quinot  <quinot@adacore.com>
14467             Arnaud Charlet  <charlet@adacore.com>
14468
14469         * fmap.adb: Put routines in alpha order
14470
14471         * g-boumai.ads: Remove redundant 'in' keywords
14472
14473         * g-cgi.adb: Minor reformatting
14474
14475         * g-cgi.ads: Remove redundant 'in' keywords
14476
14477         * get_targ.adb: Put routines in alpha order
14478
14479         * prj-attr.ads: Minor reformatting
14480
14481         * s-atacco.ads: Minor reformatting
14482
14483         * scn.adb: Put routines in alpha order
14484
14485         * sinput-l.adb: Minor comment fix
14486
14487         * sinput-p.adb: Minor comment fix
14488
14489         * s-maccod.ads: Minor reformatting
14490
14491         * s-memory.adb: Minor reformatting
14492
14493         * s-htable.adb: Fix typo in comment.
14494
14495         * s-secsta.adb: Minor comment update.
14496
14497         * s-soflin.adb: Minor reformatting
14498
14499         * s-stoele.ads: 
14500         Add comment about odd qualification in Storage_Offset declaration
14501
14502         * s-strxdr.adb: 
14503         Remove unnecessary 'in' keywords for formal parameters.
14504
14505         * treeprs.adt: Minor reformatting
14506
14507         * urealp.adb: Put routines in alpha order
14508
14509         * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
14510         taking string.
14511
14512         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14513
14514         * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
14515
14516         * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
14517         workaround as on other platforms.
14518
14519         * g-eacodu-vms.adb: Remove redundant 'in' keywords
14520         * g-expect-vms.adb: Remove redundant 'in' keywords
14521
14522         * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
14523         clear error message if the list-of-files file cannot be opened.
14524
14525         * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
14526         equality operator is always visible.
14527
14528         * lang.opt: Woverlength-strings: New option.
14529
14530         * nmake.adt: 
14531         Update copyright, since nmake.ads and nmake.adb have changed.
14532
14533         * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
14534         (Binder_Output_Time_Stamps_Set): removed.
14535         (Old_Binder_Output_Time_Stamp): idem.
14536         (New_Binder_Output_Time_Stamp): idem.
14537         (Recording_Time_From_Last_Bind): idem.
14538         (Recording_Time_From_Last_Bind): Make constant.
14539
14540         * output.ads, output.adb (Write_Str): Allow LF characters
14541         (Write_Spaces): New procedure
14542
14543         * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
14544
14545         * inline.adb: Minor reformatting
14546
14547         * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
14548
14549         * s-mastop-vms.adb: Remove redundant 'in' keywords
14550
14551         * s-osprim-vms.adb: Remove redundant 'in' keywords
14552
14553         * s-trafor-default.adb: Remove redundant 'in' keywords
14554
14555         * 9drpc.adb: Remove redundant 'in' keywords
14556
14557         * s-osinte-mingw.ads: Minor reformatting
14558
14559         * s-inmaop-posix.adb: Minor reformatting
14560
14561         * a-direio.ads: Remove quotes from Compile_Time_Warning message
14562
14563         * a-exexda.adb: Minor code reorganization
14564
14565         * a-filico.adb: Minor reformatting
14566
14567         * a-finali.adb: Minor reformatting
14568
14569         * a-nudira.ads: Remove quote from Compile_Time_Warning message
14570
14571         * a-numeri.ads: Minor reformatting
14572
14573         * a-sequio.ads: Remove quotes from Compile_Time_Warning message
14574
14575         * exp_pakd.ads: Fix obsolete comment
14576
14577         * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
14578         a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
14579         Probably not a bug, but certainly neater and more efficient.
14580
14581         * a-tienio.adb: Minor reformatting
14582
14583         * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
14584         Avoid assuming low bound of string is 1.
14585
14586         * gnatbind.adb: Change Bindusg to package and rename procedure as
14587         Display, which now ensures that it only outputs usage information once.
14588         (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
14589
14590         * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
14591         Table'First.
14592
14593         * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
14594         warning.
14595         (Match): Add pragma Assert to ensure that Matches'First is zero
14596
14597         * g-regpat.ads (Match): Document that Matches lower bound must be zero
14598
14599         * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
14600         documented preconditions (also kills warnings about bad indexes).
14601
14602         * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
14603         is 1.
14604         (Build_Import_Library): Ditto;
14605
14606         * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
14607
14608         * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
14609
14610         * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
14611         lower bound of choice table is 1.
14612
14613         * sem_case.ads (Analyze_Choices): Document that lower bound of
14614         Choice_Table is 1.
14615
14616         * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
14617         string is 1.
14618
14619         * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
14620         and add appropriate Assert pragma to suppress warnings.
14621
14622         * atree.h, atree.ads, atree.adb
14623         Change Elist24 to Elist25
14624         Add definitions of Field28 and Node28
14625         (Traverse_Field): Use new syntactic parent table in sinfo.
14626
14627         * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14628
14629         * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
14630
14631         * exp_tss.adb: Put routines in alpha order
14632
14633         * fe.h: Remove redundant declarations.
14634
14635 2006-10-23 Rafael Avila de Espindola  <rafael.espindola@gmail.com>
14636
14637         * utils.c (builtin_function): Rename to gnat_builtin_function.
14638         Move common code to add_builtin_function.
14639         * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
14640         gnat_builtin_function.
14641         * gigi.h (builtin_function): Rename to gnat_builtin_function.
14642         Change the signature.
14643
14644 2006-10-16  Brooks Moses  <bmoses@stanford.edu>
14645
14646         * Makefile.in: Add TEXI2PDF definition.
14647         * Make-lang.in: Add "ada.pdf" target.
14648
14649 2006-10-03  Kazu Hirata  <kazu@codesourcery.com>
14650
14651         * decl.c, utils.c: Fix comment typos.
14652         * utils.c: Fix a typo.
14653
14654 2006-09-28  Eric Botcazou  <ebotcazou@adacore.com>
14655
14656         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
14657         on "pure" Ada subprograms if SJLJ exceptions are used.
14658         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
14659         on the declaration node of JMPBUF_SAVE.
14660         * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
14661         of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
14662         * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
14663
14664 2006-08-20  Laurent Guerby  <laurent@guerby.net>
14665
14666         PR ada/28716
14667         g-socket.adb (Bind_Socket): Call Set_Address.
14668
14669 2006-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14670
14671         PR ada/15802
14672         * decl.c (same_discriminant_p): New static function.
14673         (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
14674         subtype and we have discriminants, fix up the COMPONENT_REFs
14675         for the discriminants to make them reference the corresponding
14676         fields of the parent subtype after it has been built.
14677
14678 2006-09-15  Roger Sayle  <roger@eyesopen.com>
14679
14680         PR ada/18817
14681         * utils.c (max_size): Perform constant folding of (A ? B : C) - D
14682         into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
14683
14684 2006-09-13  Olivier Hainque  <hainque@adacore.com>
14685
14686         PR ada/29025
14687         * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
14688         of a SAVE_EXPR, just make the operand addressable/not-readonly and
14689         let the common gimplifier code make and propagate a temporary copy.
14690         (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
14691         out/in-out actuals and defer setting the addressable/readonly bits
14692         to the gimplifier.
14693
14694 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14695
14696         PR ada/28591
14697         * decl.c (components_to_record): Defer emitting debug info for the
14698         record type associated with the variant until after we are sure to
14699         actually use it.
14700
14701 2006-09-13  Eric Botcazou  <ebotcazou@adacore.com>
14702
14703         PR ada/21952
14704         * gigi.h (gnat_internal_attribute_table): Declare.
14705         * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
14706         * utils.c (gnat_internal_attribute_table): New global variable.
14707         (builtin_function): Always call decl_attributes on the builtin.
14708         (handle_const_attribute): New static function.
14709         (handle_nothrow_attribute): Likewise.
14710
14711 2006-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
14712
14713         * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
14714
14715 2006-06-23  Olivier Hainque  <hainque@adacore.com>
14716
14717         * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
14718         not been able to get a constant upper bound from TYPE_SIZE_UNIT.
14719
14720 2006-06-20  James A. Morrison  <phython@gcc.gnu.org>
14721             Eric Botcazou  <ebotcazou@adacore.com>
14722
14723         PR ada/18692
14724         * Make-lang.in: Add check-gnat to lang_checks.  Rename existing
14725         check-gnat into check-acats.
14726
14727 2006-06-17  Karl Berry  <karl@gnu.org>
14728
14729         * gnat-style.texi (@dircategory): Use "Software development"
14730         instead of "Programming", following the Free Software Directory.
14731
14732 2006-06-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14733
14734         PR ada/27944
14735         * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
14736
14737 2006-06-06  Laurent Guerby  <laurent@guerby.net>
14738
14739         PR ada/27769
14740         mlib-utl.adb: Use Program_Name.
14741
14742 2006-05-28  Kazu Hirata  <kazu@codesourcery.com>
14743
14744         * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
14745         sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
14746         trans.c, utils.c: Fix comment typos.  Follow spelling
14747         conventions.
14748         * gnat_rm.texi, gnat_ugn.texi, : Fix typos.  Follow spelling
14749         conventions.
14750
14751 2006-05-19  Nicolas Setton  <setton@adacore.com>
14752
14753         * misc.c (gnat_dwarf_name): New function.
14754         (LANG_HOOKS_DWARF_NAME): Define to it.
14755
14756 2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
14757
14758         * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
14759         (ada/misc.o): Likewise.
14760         (ada/utils.o): Likewise.
14761
14762 2006-04-08  Aurelien Jarno  <aurel32@debian.org>
14763
14764         * Makefile.in: Add Ada support for GNU/kFreeBSD.
14765         * s-osinte-kfreebsd-gnu.ads: New file.
14766
14767 2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
14768
14769         * Make-lang.in: Rename docdir to gcc_docdir.
14770
14771 2006-03-04  Eric Botcazou  <ebotcazou@adacore.com>
14772
14773         * gigi.h (get_ada_base_type): Delete.
14774         * utils2.c (get_ada_base_type): Likewise.
14775         * trans.c (convert_with_check): Operate in the real base type.
14776
14777 2006-03-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14778
14779         * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
14780
14781 2006-03-02  Richard Sandiford  <richard@codesourcery.com>
14782
14783         * utils.c (create_var_decl): Use have_global_bss_p when deciding
14784         whether to make the decl common.
14785
14786 2006-02-20  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14787
14788         * Make-lang.in (Ada): Remove.
14789         (.PHONY): Remove Ada
14790
14791 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14792
14793         * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
14794         aggregate, check the interpretations of the other operand to find one
14795         that may be a boolean array.
14796
14797         (Analyze_Selected_Component): Fix flow-of-control typo in case where
14798         the prefix is a private extension.
14799
14800 2006-02-17  Eric Botcazou  <botcazou@adacore.com>
14801
14802         PR ada/26315
14803         * utils2.c (find_common_type): If both input types are BLKmode and
14804         have the same constant size, keep using the first one.
14805
14806         * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
14807
14808         * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
14809
14810         * misc.c (gnat_handle_option): New case for -Woverlength-strings.
14811
14812 2006-02-17  Jose Ruiz  <ruiz@adacore.com>
14813
14814         * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb, 
14815         s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb, 
14816         s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb, 
14817         s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
14818         Abort_Defer/Undefer pairs to avoid the possibility of a task being
14819         aborted while owning a lock.
14820
14821 2006-02-17  Javier Miranda  <miranda@adacore.com>
14822             Robert Dewar  <dewar@adacore.com>
14823
14824         * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
14825         through an access to class-wide interface we force the displacement of
14826         the pointer to the allocated object to reference the corresponding
14827         secondary dispatch table.
14828         (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
14829         if Long_Shifts are supported on the target, even if 64 bit divides
14830         are not supported (configurable run time mode).
14831         (Expand_N_Type_Conversion): Do validity check if validity checks on
14832         operands are enabled.
14833         (Expand_N_Qualified_Expression): Do validity check if validity checks
14834         on operands are enabled.
14835
14836 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14837
14838         * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
14839         must be materialized when the renamed expression is an explicit
14840         dereference.
14841
14842 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14843
14844         * freeze.adb (Statically_Discriminated_Components): Return false if
14845         the bounds of the type of the discriminant are not static expressions.
14846
14847         * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
14848         the bounds of the discriminant type are not static.
14849
14850 2006-02-17  Robert Dewar  <dewar@adacore.com>
14851
14852         * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
14853         then we close To if it is valid.
14854
14855 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14856
14857         * init.c (facility_resignal_table): new array
14858         (__gnat_default_resignal_p): enhance default predicate to resignal if
14859         VMS condition has one of the predefined facility codes.
14860
14861 2006-02-17  Vasiliy Fofanov  <fofanov@adacore.com>
14862
14863         * Makefile.in: Use VMS64 specialized versions of several units in
14864         Interfaces.C hierarchy to be compatible with HP C default size choices.
14865         Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
14866
14867 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14868
14869         * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
14870         instantiation, the corresponding entity is the related_instance of the
14871         wrapper package created for the instance.
14872
14873 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14874
14875         * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
14876         the current instance is nested within another instance in a child unit.
14877
14878 2006-02-17  Javier Miranda  <miranda@adacore.com>
14879             Ed Schonberg  <schonberg@adacore.com>
14880
14881         * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
14882         type we cannot inherit the primitive operations; we inherit the
14883         Corresponding_Record_Type (which has the list of primitive operations).
14884         (Check_Anonymous_Access_Types): When creating anonymous access types for
14885         access components, use Rewrite in order to preserve the tree structure,
14886         for ASIS use.
14887         (Analyze_Object_Declaration): For limited types with access
14888         discriminants with defaults initialized by an aggregate, obtain
14889         subtype from aggregate as for other mutable types.
14890         (Derived_Type_Declaration): If the derived type is a limited interface,
14891         set the corresponding flag (Is_Limited_Record is not sufficient).
14892
14893 2006-02-17  Ed Schonberg  <schonberg@adacore.com>
14894
14895         * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
14896         to inline a function that returns an unconstrained type, the return
14897         expression must be the first variable declared in the body of the
14898         function.
14899
14900 2006-02-17  Javier Miranda  <miranda@adacore.com>
14901
14902         * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
14903         abstract interface type, the static analysis is not enough to know if
14904         the interface is implemented or not by the source tagged type. Hence
14905         we must pass the work to the expander to generate the required code to
14906         evaluate the conversion at run-time.
14907         (Resolve_Equality_Op): Do not apply previous
14908         transformation if expansion is disasbled, to prevent anomalies when
14909         locating global references in a generic unit.
14910
14911 2006-02-17  Vincent Celier  <celier@adacore.com>
14912
14913         * snames.ads, snames.adb: New standard names for new project attributes:
14914         archive_builder, archive_indexer, compiler_pic_option,
14915         config_body_file_name, config_body_file_name_pattern,
14916         config_file_switches, config_file_unique, config_spec_file_name,
14917         config_spec_file_name_pattern, default_builder_switches,
14918         default_global_compiler_switches, default_language,
14919         dependency_file_kind, global_compiler_switches, include_path,
14920         include_path_file, language_kind, linker_executable_option,
14921         linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
14922         roots, runtime_project.
14923
14924 2006-02-17  Matthew Heaney  <heaney@adacore.com>
14925
14926         * a-convec.ads, a-convec.adb: 
14927         (operator "&"): handle potential overflow for large index types
14928         (Insert): removed Contraint_Error when using large index types
14929         (Insert_Space): removed Constraint_Error for large index types
14930         (Length): moved constraint check from Length to Insert
14931
14932         * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
14933         as not null access.
14934         Explicit raise statements now include an exception message.
14935         (operator "&"): handle potential overflow for large index types
14936         (Insert): removed Contraint_Error when using large index types
14937         (Insert_Space): removed Constraint_Error for large index types
14938         (Length): moved constraint check from Length to Insert
14939
14940 2006-02-17  Robert Dewar  <dewar@adacore.com>
14941
14942         * s-wchcnv.adb: Document handling of [ on output (we do not change
14943         this to ["5B"] and the new comments say why not.
14944
14945         * gnat_ugn.texi: 
14946         Add note for -gnatVo that this now includes the cases of type
14947         conversions and qualified expressions.
14948         Add comments on handling of brackets encoding for Text_IO
14949
14950 2006-02-17  Ramon Fernandez  <fernandez@adacore.com>
14951             Thomas Quinot  <quinot@adacore.com>
14952             Robert Dewar  <dewar@adacore.com>
14953             Javier Miranda  <miranda@adacore.com>
14954
14955         * expander.adb: Fix typo in comment
14956
14957         * exp_pakd.adb: Fix typo
14958         Minor comment reformatting.
14959
14960         * g-dyntab.adb: Minor reformatting
14961
14962         * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
14963         aliased subprograms to look for the abstract interface subprogram.
14964
14965 2006-02-16  Eric Botcazou  <ebotcazou@adacore.com>
14966
14967         * env.c (__gnat_setenv): Use size_t.
14968         (__gnat_unsetenv): Likewise.
14969         (__gnat_clearenv): Likewise.
14970
14971 2006-02-16  Arnaud Charlet  <charlet@adacore.com>
14972
14973         * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
14974
14975 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
14976
14977         * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
14978         g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
14979         i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
14980         s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
14981         s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
14982         s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
14983         s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
14984         s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
14985         s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
14986         no longer used.
14987
14988 2006-02-13  Jose Ruiz  <ruiz@adacore.com>
14989
14990         * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
14991         protection against race conditions is not needed.
14992         (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
14993         fallback handler.
14994         (Set_Specific_Handler): Add mutual exclusive access to the specific
14995         handler.
14996         (Specific_Handler): Add mutual exclusive access for retrieving the
14997         specific handler.
14998
14999         * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
15000         back handler.
15001
15002         * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
15003         Fall_Back_Handler and Specific_Handler.
15004
15005         * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
15006         termination handlers.
15007         Set two different owerflow depending on the maximal stack size.
15008
15009         * s-solita.adb (Task_Termination_Handler_T): Document why explicit
15010         protection against race conditions is not needed when executing the
15011         task termination handler.
15012
15013 2006-02-13  Robert Dewar  <dewar@adacore.com>
15014
15015         * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
15016         a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
15017         a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
15018         a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
15019         a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
15020         a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
15021         a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
15022         a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
15023         a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
15024         a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
15025         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
15026         a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
15027         a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
15028         a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
15029         a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
15030         a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
15031         a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
15032         a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
15033         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
15034         a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
15035         g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
15036         g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
15037         mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
15038         prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
15039         s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
15040         s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
15041         s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
15042         s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
15043         s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
15044         s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
15045         a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
15046         fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
15047         par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
15048         system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
15049         reformatting.
15050
15051 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
15052
15053         * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
15054         s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
15055         s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
15056         s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
15057         a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
15058         s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
15059         a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
15060         s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
15061         s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
15062
15063 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15064
15065         * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads, 
15066         s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads, 
15067         s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads, 
15068         s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads, 
15069         s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads, 
15070         s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
15071         replaced by anonymous access type.
15072         (pthread_sigmask): Now take an access sigset_t
15073
15074         * s-osinte-hpux.ads:  Ditto.
15075         (pthread_mutex_t, pthread_cond_t): Update definitions to support
15076         properly 32 and 64 bit ABIs.
15077
15078 2006-02-13  Pascal Obry  <obry@adacore.com>
15079
15080         * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb, 
15081         s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb, 
15082         s-taprop-linux.adb, s-taprop-solaris.adb,
15083         s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
15084         adjustement is already done when calling this routine.
15085
15086 2006-02-13  Pascal Obry  <obry@adacore.com>
15087
15088         * system-mingw.ads (Underlying_Priorities): Update the priority mapping
15089         table to take advantage of the 16 priority levels available on Windows
15090         2000 and XP. On NT4 there are only 7 priority levels, this is properly
15091         supported by this new mapping.
15092
15093 2006-02-13  Nicolas Setton  <setton@adacore.com>
15094
15095         * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
15096         (get_encoding): New subprogram. Extracts the encodings from an encoded
15097         Ada name.
15098
15099 2006-02-13  Pascal Obry  <obry@adacore.com>
15100             Nicolas Roche  <roche@adacore.com>
15101             Arnaud Charlet  <charlet@adacore.com>
15102
15103         * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
15104         support.
15105         (__gnat_try_lock): Add unicode support by using a specific section on
15106         Windows.
15107         (__gnat_get_current_dir): Idem.
15108         (__gnat_open_read): Idem.
15109         (__gnat_open_rw): Idem.
15110         (__gnat_open_create): Idem.
15111         (__gnat_create_output_file): Idem.
15112         (__gnat_open_append): Idem.
15113         (__gnat_open_new): Idem.
15114         (__gnat_file_time_name): Idem.
15115         (__gnat_set_file_time_name): Idem.
15116         (__gnat_stat): Idem.
15117         (win32_no_block_spawn): Idem.
15118         (__gnat_locate_exec_on_path): Idem.
15119         (__gnat_opendir): New routine.
15120         (__gnat_closedir): Idem.
15121         (__gnat_readdir): Add new parameter length (pointer to int). Update
15122         implementation to use it and add specific Win32 code for Unicode
15123         support.
15124         (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
15125         (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
15126         (convert_addresses): Do not define this dummy routine on VMS.
15127
15128         * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
15129         runtime Unicode support will be activated.
15130         (S2WS): String to Wide-String conversion. This version just copy a
15131         string in non Unicode version.
15132         (WS2S): Wide-String to String conversion. This version just copy a
15133         string in non Unicode version.
15134
15135         * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
15136         (Open): Now import __gnat_opendir from adaint.c.
15137         (Read): Change the implementation to support unicode characters. It is
15138         not possible to use strlen() on Windows as this version supports only
15139         standard ASCII characters. So the length of the directory entry is now
15140         returned from the imported __gnat_readdir routine.
15141         Update copyright notice.
15142
15143         * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
15144         (opendir): Moved to adaint.c.
15145
15146         * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
15147         (Get_Directory): Fix wrong indexing.
15148         (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
15149         __gnat_getenv from env.c
15150         (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
15151         from env.c
15152
15153         * env.h, env.c: New file.
15154
15155         * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
15156         adaint.c by __gnat_getenv from env.c
15157
15158         * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
15159         adaint.c by __gnat_getenv from env.c
15160
15161         * Make-lang.in: Add env.o in the list of C object needed by gnat1
15162         and gnatbind.
15163         Update dependencies.
15164
15165 2006-02-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15166             Olivier Hainque  <hainque@adacore.com>
15167             Eric Botcazou  <ebotcazou@adacore.com>
15168
15169         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
15170         
15171         * gigi.h (value_factor_p): Add prototype and description, now public.
15172
15173         * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
15174         promotion for field with rep clause if the associated size was proven
15175         to be in error.
15176         Expand comments describing attempts to use a packable type.
15177         (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
15178         E_Floating_Point_Subtype>: Inherit alias set of what we are making a
15179         subtype of to ensure conflicts amongst all subtypes in a hierarchy,
15180         necessary since these are not different types and pointers may
15181         actually designate any subtype in this hierarchy.
15182         (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
15183         discriminants but put them into record only if not Unchecked_Union;
15184         pass flag to components_to_record showing Unchecked_Union.
15185         (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
15186         components before variants; don't set TYPE_UNCHECKED_UNION_P.
15187         (components_to_record): New argument UNCHECKED_UNION.
15188         Remove special case code for Unchecked_Union and instead use main code
15189         with small changes.
15190
15191         PR ada/26096
15192         (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
15193         variable with the expression being built, only its inner field.
15194
15195         * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
15196         emit_sequence_entry_statements.
15197         (emit_sequence_entry_statements, body_with_handlers_p): Delete.
15198         (establish_gnat_vms_condition_handler): Move before
15199         Subprogram_Body_to_gnu.
15200         (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
15201         for a subprogram if it has a foreign convention or is exported.
15202         (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
15203         substituted for a CONST_DECL.
15204         (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
15205         Etype to assoc_to_constructor.
15206         (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
15207         discriminants of Unchecked_Union.
15208         (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
15209         don't need cluttering preprocessor directives.
15210         (establish_gnat_vms_condition_handler): New function. Establish the GNAT
15211         condition handler as current in the compiled function.
15212         (body_with_handlers_p): New function. Tell whether a given sequence of
15213         statements node is attached to a package or subprogram body and involves
15214         exception handlers possibly nested within inner block statements.
15215         (emit_sequence_entry_statements): New function, to emit special
15216         statements on entry of sequences when necessary. Establish GNAT
15217         condition handler in the proper cases for VMS.
15218         (Handled_Sequence_Of_Statements_to_gnu): Start block code with
15219         emit_sequence_entry_statements.
15220
15221         * utils2.c (find_common_type): If both input types are BLKmode and
15222         have a constant size, use the smaller one.
15223         (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
15224         the same.
15225
15226         * utils.c (value_factor_p): Make public, to allow uses from other gigi
15227         units.
15228         (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
15229         (convert, case UNION_TYPE): Remove special treatment for unchecked
15230         unions.
15231
15232         PR ada/18659
15233         (update_pointer_to): Update variants of pointer types to unconstrained
15234         arrays by attaching the list of fields of the main variant.
15235
15236 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15237             Robert Dewar  <dewar@adacore.com>
15238
15239         * a-exexpr.adb, a-exexpr-gcc.adb
15240         (Process_Raise_Exception): Removed, merged with Propagate_Exception.
15241         (Propagate_Exception): Now take extra From_Signal_Handler parameter.
15242         Remove code unused for exception propagation for the compiler itself
15243         from a-except.adb and update to still share separate packages.
15244
15245         * a-except.ads, a-except.adb: Ditto.
15246         Add comments that this version is now used only by the compiler and
15247         other basic tools. The full version that includes the Ada 2005 stuff
15248         is in separate files a-except-2005.ads/adb. The reason is that we do
15249         not want to cause bootstrap problems with compilers not recognizing
15250         Wide_Wide_String.
15251         Add exception reason code PE_Implicit_Return
15252         Add new exception reason code (Null Exception_Id)
15253
15254         * a-except-2005.adb, a-except-2005.ads: New files.
15255
15256         * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
15257
15258         * s-wchcon.adb: New file.
15259
15260         * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
15261         (traceback.o deps): Likewise.
15262         (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
15263         Activate build of GMEM instrumentation library on VMS targets.
15264         (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
15265         Use a-except-2005.ads/adb for all run-time library builds unless
15266         specified otherwise.
15267         [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
15268         s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
15269         Use s-parame.adb on all native platforms.
15270         Use s-parame-vxworks.adb on all vxworks platforms.
15271         Add env.c env.h in LIBGNAT_SRCS
15272         Add env.o in LIBGNAT_OBJS
15273         (GNATMAKE_OBJS): Remove ctrl_c.o object.
15274         (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
15275         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
15276         supports VxWorks 6 RTPs.
15277         (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
15278         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
15279
15280         * types.h, types.ads (Terminate_Program): New exception
15281         Add comment on modifying multiple versions of a-except.adb when the
15282         table of exception reasons is modified.
15283         Add exception reason code PE_Implicit_Return
15284         Add new exception reason code (Null Exception_Id)
15285
15286         * clean.adb (Initialize): Get the target parameters before checking
15287         if target is OpenVMS. Move the OpenVMS specific code here from package
15288         body elaboration code.
15289
15290 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15291             Vincent Celier  <celier@adacore.com>
15292             Robert Dewar  <dewar@adacore.com>
15293
15294         * ali-util.adb (Get_File_Checksum): Update to account for change in
15295         profile of Initialize_Scanner.
15296
15297         * gprep.adb (Gnatprep): Update to account for change in profile of
15298         Initialize_Scanner.
15299         (Process_One_File): Same.
15300
15301         * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
15302         common code between Get_Code_Unit and Get_Source_Unit. Reimplement
15303         that behaviour using the new Unit information recorded in the source
15304         files table, rather than going through all units every time.
15305         (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
15306         (Get_Source_Unit): Same.
15307
15308         * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
15309         change in profile of Initialize_Scanner.
15310         (Prepare_To_Preprocess): Same.
15311
15312         * lib.ads: Fix typo in comment (templace -> template).
15313
15314         * prj-part.adb (Parse_Single_Project): Update to account for change in
15315         profile of Initialize_Scanner.
15316
15317         * scn.adb (Initialize_Scanner): Account for change in profile of
15318         Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
15319         Also record the association of the given Source_File_Index to the
15320         corresponding Unit_Number_Type.
15321
15322         * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
15323         procedure.
15324         (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
15325         Remove Unit formal for generic scanner: this formal
15326         is only relevant to Scn (the scanner instance used to parse Ada source
15327         files), not to other instances. Update comment accordingly.
15328         (Scan): Use new function Snames.Is_Keyword_Name.
15329
15330         * sinfo-cn.adb: Fix typo in comment.
15331
15332         * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
15333         Unit.
15334
15335         * sinput.ads (Source_File_Record): New component Unit, used to capture
15336         the unit identifier (if any) associated to a source file.
15337
15338         * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
15339         Unit in Source_File_Record.
15340
15341         * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
15342         in profile of Initialize_Scanner.
15343
15344         * scans.adb (Initialize_Ada_Keywords): New procedure
15345
15346         * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
15347         Ada keywords in the Namet table, without the need to call
15348         Initialize_Scanner.
15349
15350         * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
15351         (Is_Keyword_Name): New function
15352
15353         * snames.ads: Add subtype Configuration_Pragma_Names
15354         Add pragma Ada_2005 (synonym for Ada_05)
15355         (Is_Keyword_Name): New function
15356
15357         * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
15358
15359 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15360
15361         * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
15362         index.
15363
15364         * a-stwima.adb (To_Set): Add extra check when N = 0.
15365
15366         * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
15367
15368 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
15369
15370         * s-parame-mingw.adb, s-parame-linux.adb,
15371         s-parame-solaris.adb: Removed, replaced by s-parame.adb
15372
15373         * s-parame-vxworks.ads: Fix typo.
15374
15375         * s-parame-vxworks.adb: New file.
15376
15377         * s-parame.adb: Version now used by all native platforms.
15378         (Default_Stack_Size): Use 2 megs for default stack size and use
15379         __gl_default_stack_size when available.
15380         (Minimum_Stack_Size): Use 12K.
15381
15382         * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
15383         (Create_Task): Refine implementation taking advantage of the XP stack
15384         size support. On XP, we now create the thread using the flag
15385         STACK_SIZE_PARAM_IS_A_RESERVATION.
15386
15387         * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
15388
15389         * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
15390         XP and 0 on older Windows versions.
15391
15392         * interfac-vms.ads: Removed, no longer used.
15393
15394 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15395
15396         * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb, 
15397         a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb, 
15398         a-cohase.adb: All explicit raise statements now include an exception
15399         message.
15400
15401         * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
15402         (Update_Element_Preserving_Key): renamed op to just Update_Element.
15403         Explicit raise statements now include an exception message
15404
15405         * a-cihase.ads, a-cohase.ads: Removed comment.
15406
15407         * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
15408         a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
15409         a-szbzha.adb, a-szfzha.ads: New files.
15410
15411 2006-02-13  Matthew Heaney  <heaney@adacore.com>
15412
15413         * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
15414         quicksort.
15415
15416 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15417
15418         * lang.opt: Wvariadic-macros: New option.
15419         Wold-style-definition: Likewise.
15420         Wmissing-format-attribute: Likewise.
15421
15422         * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
15423         -Wold-style-definition and -Wmissing-format-attribute.
15424
15425 2006-02-13  Robert Dewar  <dewar@adacore.com>
15426
15427         * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
15428
15429         * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
15430
15431 2006-02-13  Nicolas Roche  <roche@adacore.com>
15432
15433         * a-envvar.adb, a-envvar.ads: New files.
15434
15435 2006-02-13  Douglas Rupp  <rupp@adacore.com>
15436
15437         * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
15438
15439         * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
15440
15441 2006-02-13  Pat Rogers  <rogers@adacore.com>
15442
15443         * a-rttiev.adb, a-rttiev.ads: New files.
15444
15445 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
15446
15447         * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
15448         a-wwboio.ads, a-zzboio.adb, a-zzboio.ads:  New files.
15449
15450         * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
15451
15452 2006-02-13  Robert Dewar  <dewar@adacore.com>
15453
15454         * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb, 
15455         sem_case.adb: Minor code reorganization (not Present should be No)
15456
15457 2006-02-13  Geert Bosch  <bosch@adacore.com>
15458             Gary Dismukes  <dismukes@adacore.com>
15459
15460         * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
15461         0, since the lower bound of the actual string may be greater than one.
15462
15463         PR ada/20753
15464         * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
15465         layout is requested.
15466
15467 2006-02-13  Vincent Celier  <celier@adacore.com>
15468
15469         * back_end.adb (Scan_Compiler_Arguments): Check if
15470         Search_Directory_Present is True and, if it is, add the argument in
15471         the source search directory path.
15472
15473         * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
15474         Search_Directory_Present to True.
15475
15476 2006-02-13  Joel Brobecker  <brobecke@adacore.com>
15477
15478         * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
15479         volatile, to tell the compiler to preserve this variable at any level
15480         of optimization.
15481         (Gen_Versions_Ada): Temporarily work around codegen bug.
15482
15483 2006-02-13  Vincent Celier  <celier@adacore.com>
15484
15485         * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
15486         gcc to link with option -shared-libgcc.
15487         (Gnatlink): Remove duplicate switches -shared-libgcc
15488
15489 2006-02-13  Robert Dewar  <dewar@adacore.com>
15490
15491         * gnatvsn.ads (Current_Year): New constant, used to easily update
15492         copyright on all GNAT tools.
15493
15494         * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
15495         copyright notice.
15496
15497 2006-02-13  Robert Dewar  <dewar@adacore.com>
15498
15499         * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
15500         after hyphen (small aesthetic change useful for a range of numbers
15501         using ^-^.
15502         Suppress range checks for a couple of assignments which otherwise
15503         cause validity checks with validity checking turned on.
15504
15505         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
15506         Improvement in error message for object.
15507         (Rep_Item_Too_Late): Remove '!' in warning message.
15508
15509 2006-02-13  Robert Dewar  <dewar@adacore.com>
15510             Eric Botcazou  <ebotcazou@adacore.com>
15511
15512         * err_vars.ads: Suppress range checks for a couple of assignments
15513         which otherwise cause validity checks with validity checking turned on.
15514         Update comments.
15515
15516         * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
15517         Make message unconditional if it is a warning.
15518         (Error_Msg_NEL): Always output warning messages.
15519         Suppress range checks for a couple of assignments which otherwise
15520         cause validity checks with validity checking turned on.
15521
15522         * errout.ads (Message Insertion Characters): Document that '!' is
15523         implied by '?' in error messages.
15524
15525         * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
15526         (Gnat1drv): Use a goto to end of main subprogram instead of
15527         Exit_Program (E_Success) so that finalization can occur normally.
15528
15529 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
15530
15531         * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
15532         wrapped around.
15533
15534 2006-02-13  Vincent Celier  <celier@adacore.com>
15535
15536         * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
15537         Unchecked_Conversion functions.
15538         (Modification_Time): Use direct conversion of OS_Time to Calendar time
15539         when OpenVMS returns False.
15540
15541         * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
15542         a-dirval.adb (OpenVMS): New Boolean function
15543
15544 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15545             Thomas Quinot  <quinot@adacore.com>
15546
15547         * checks.adb (Build_Discriminant_Checks): If the expression being
15548         checks is an aggregate retrieve the values of its discriminants to
15549         generate the check, rather than creating a temporary and a reference
15550         to it.
15551         (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
15552         (Install_Null_Excluding_Check): Ditto
15553         (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
15554         not for the renamed object, so that the actual itype is attached in the
15555         proper context.
15556
15557 2006-02-13  Robert Dewar  <dewar@adacore.com>
15558             Vincent Celier  <celier@adacore.com>
15559
15560         * debug.adb: Eliminate numeric switches for binder/gnatmake
15561
15562         * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
15563         switches for the compiler.
15564         (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
15565         (Scan_Make_Switches): When failing with an illegal switch, output an
15566         error message with the full switch.
15567         Eliminate numeric switches for binder/gnatmake
15568
15569         * switch.ads, switch.adb (Bad_Switch): New procedure
15570
15571         * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
15572         Remove 0-9 as debug flag character possibilities
15573         -d is now controlling the primary stack size when its value is a
15574         positive. Also add checks against invalid values, and support for kb,
15575         mb. Ditto for -D switch.
15576
15577 2006-02-13  Robert Dewar  <dewar@adacore.com>
15578             Serguei Rybin  <rybin@adacore.com>
15579
15580         * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
15581         save/restore routines.
15582         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15583         were not always properly handled previously.
15584         Since we are changing the tree format anyway, also get rid of the
15585         junk obsolete Immediate_Errors flag.
15586         (Tree_Read): Change the way of reading Tree_Version_String - now we
15587         read the version string from the tree even if its length is not the
15588         same as the length of the version string computed from Gnatvsn.
15589         (Search_Directory_Present): New Boolean flag for the compiler.
15590         Define Tree_Version_String as a dynamic string.
15591         (Default_Stack_Size): new variable, used to handle switch -d.
15592
15593         * par-prag.adb: 
15594         For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
15595         only for main unit.
15596         Add pragma Ada_2005 (synonym for Ada_05)
15597         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
15598         were not always properly handled previously.
15599
15600         * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
15601         explicit Ada_95 to Ada_2005.
15602
15603 2006-02-13  Javier Miranda  <miranda@adacore.com>
15604             Robert Dewar  <dewar@adacore.com>
15605             Ed Schonberg  <schonberg@adacore.com>
15606
15607         * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
15608         against errors in the source program: a private types for which the
15609         corresponding full type declaration is missing and pragma CPP_Virtual
15610         is used.
15611         (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
15612         (Is_Known_Null): New flag
15613         (Has_Pragma_Pure): New flag
15614         (No_Return): Present in all entities, set only for procedures
15615         (Is_Limited_Type): A type whose ancestor is an interface is limited if
15616         explicitly declared limited.
15617         (DT_Offset_To_Top_Func): New attribute that is present in E_Component
15618         entities. Only used for component marked Is_Tag. If present it stores
15619         the Offset_To_Top function used to provide this value in tagged types
15620         whose ancestor has discriminants.
15621
15622         * exp_ch2.adb: Update status of new Is_Known_Null flag
15623
15624         * sem_ch7.adb: Maintain status of new Is_Known_Null flag
15625
15626         * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
15627         the categorization sense if Is_Pure was set by pragma Pure_Function.
15628
15629 2006-02-13  Quentin Ochem  <ochem@adacore.com>
15630             Olivier Hainque  <hainque@adacore.com>
15631
15632         * bindusg.adb: Updated documentation for -d and -D switches.
15633
15634         * raise.h (__gnat_set_globals): added new parameter for
15635         Default_Stack_Size.
15636
15637         * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
15638         (__gnat_handle_vms_condition): Adjust context before raise.
15639         (__gnat_install_handler): Restore the global vector setup for GCC
15640         versions before 3.4, as the frame based circtuitry is not available
15641         in this case.
15642         (__gnat_set_globals): added a parameter default_stack_size
15643         (__gl_default_stack_size): new variable.
15644
15645 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15646
15647         * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
15648         "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
15649         does not exist in the Ada RM.
15650         (Compatible_Int_Bounds): Determine whether two integer range bounds
15651         are of equal length and have the same start and end values.
15652         (Is_Int_Range_Bounds): Determine whether a node is an integer range.
15653         (Build_Record_Aggr_Code): Perform proper sliding of a nested array
15654         aggregate when it is part of an object declaration.
15655         (Build_Record_Aggr_Code)  If the aggregate ttype is a derived type that
15656         constrains discriminants of its parent, add explicitly the discriminant
15657         constraints of the ancestor by retrieving them from the
15658         stored_constraint of the parent.
15659
15660 2006-02-13  Robert Dewar  <dewar@adacore.com>
15661
15662         * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
15663         attribute Mechanism_Code is applied to renamed subprogram, modify
15664         prefix to point to base subprogram.
15665         Max/Min attributes now violate Restriction No_Implicit_Conditionals
15666
15667         * sinfo.ads: Document that Mechanism_Code cannot be applied to
15668         renamed subprograms so that the front-end must replace the prefix
15669         appropriately.
15670
15671 2006-02-13  Javier Miranda  <miranda@adacore.com>
15672             Gary Dismukes  <dismukes@adacore.com>
15673
15674         * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
15675         availability of RE_Interface_Tag.
15676         (Build_Initialization_Call): Fix wrong access to the discriminant value.
15677         (Freeze_Record_Type): Do not generate the tables associated with
15678         timed and conditional dispatching calls through synchronized
15679         interfaces if compiling under No_Dispatching_Calls restriction.
15680         When compiling for Ada 2005, for a nonabstract
15681         type with a null extension, call Make_Controlling_Function_Wrappers
15682         and insert the wrapper function declarations and bodies (the latter
15683         being appended as freeze actions).
15684         (Predefined_Primitive_Bodies): Do not generate the bodies of the
15685         predefined primitives associated with timed and conditional
15686         dispatching calls through synchronized interfaces if we are
15687         compiling under No_Dispatching_Calls.
15688         (Build_Init_Procedure):  Use RTE_Available to check if a run-time
15689         service is available before generating a call.
15690         (Make_Controlling_Function_Wrappers): New procedure.
15691         (Expand_N_Full_Type_Declaration): Create a class-wide master for
15692         access-to-limited-interfaces because they can be used to reference
15693         tasks that implement such limited interface.
15694         (Build_Offset_To_Top_Functions): Build the tree corresponding to the
15695         procedure spec and body of the Offset_To_Top function that is generated
15696         when the parent of a type with discriminants has secondary dispatch
15697         tables.
15698         (Init_Secondary_Tags): Handle the case in which the parent of the type
15699         containing secondary dispatch tables has discriminants to generate the
15700         correct arguments to call Set_Offset_To_Top.
15701         (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
15702
15703         * a-tags.ads, a-tags.adb: (Check_Index): Removed.
15704         Add Wide_[Wide_]Expanded_Name.
15705         (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
15706         the same functionality of Get_Prim_Op_Address but applied to predefined
15707         primitive operations because the pointers to the predefined primitives
15708         are now saved in a separate table.
15709         (Parent_Size): Modified to get access to the separate table of primitive
15710         operations or the parent type.
15711         (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
15712         functionality of Set_Prim_Op_Address but applied to predefined primitive
15713         operations.
15714         (Set_Signature): New subprogram used to store the signature of a DT.
15715         (Displace): If the Offset_To_Top value is not static then call the
15716         function generated by the expander to get such value; otherwise use
15717         the value stored in the table of interfaces.
15718         (Offset_To_Top): The type of the actual has been changed to Address to
15719         give the correct support to tagged types with discriminants. In this
15720         case this value is stored just immediately after the tag field.
15721         (Set_Offset_To_Top): Two new formals have been added to indicate if the
15722         offset_to_top value is static and hence pass this value to the run-time
15723         to store it in the table of interfaces, or else if this value is dynamic
15724         and then pass to the run-time the address of a function that is
15725         generated by the expander to provide this value for each object of the
15726         type.
15727
15728         * rtsfind.ads (Default_Prin_Op_Count): Removed.
15729         (Default_Prim_Op_Count): New entity
15730         (Get_Predefined_Prim_Op_Address): New entity
15731         (Set_Predefined_Prim_Op_Address): New entity
15732         (RE_Set_Signature): New entity
15733
15734 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15735             Ed Schonberg  <schonberg@adacore.com>
15736
15737         * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
15738         Make_Adjust_Call done for a newly-allocated object.
15739
15740         * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
15741         in a subprogram are wrapped in a cleanup block, indicate that the
15742         subprogram contains an inner block with an exception handler.
15743         (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
15744         Adjust call is for a newly-allocated object. In that case we must not
15745         assume that the finalization list chain pointers are correct (since they
15746         come from a bit-for-bit copy of the original object's pointers) so if
15747         the attach level would otherwise be zero (no change), we set it to 4
15748         instead to cause the pointers to be reset to null.
15749
15750         * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
15751         reset chain pointers to null.
15752
15753 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15754
15755         * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
15756         string, and the context requires a loop for the assignment (e.g.
15757         because the left-hand side is packed), generate a unique name for the
15758         temporary that holds the string, to prevent spurious name clashes.
15759
15760 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15761             Javier Miranda  <miranda@adacore.com>
15762             Robert Dewar  <dewar@adacore.com>
15763             Gary Dismukes  <dismukes@adacore.com>
15764
15765         * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
15766         return unconstrained arrays.
15767         Update comments.
15768         (Expand_Call):  An indirect call through an access parameter of a
15769         protected operation is not a protected call.
15770         Add circuit to raise CE in Ada 2005 mode following call
15771         to Raise_Exception.
15772         (Register_DT_Entry): Do nothing if
15773         the run-time does not give support to abstract interfaces.
15774         (Freeze_Subprogram): In case of dispatching operations, do not generate
15775         code to register the operation in the dispatch table if the source
15776         is compiled with No_Dispatching_Calls.
15777         (Register_Predefined_DT_Entry): Generate code that calls the new
15778         run-time subprogram Set_Predefined_Prim_Op_Address instead of
15779         Set_Prim_Op_Address.
15780
15781         * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
15782         on array assignments if the right-hand side is a function call that has
15783         been inlined. Check is performed on the assignment in the block.
15784         (Process_Bounds): If bounds and range are overloaded, apply preference
15785         rule for root operations to disambiguate, and diagnose true ambiguity.
15786         (Analyze_Assignment): Propagate the tag for a class-wide assignment with
15787         a tag-indeterminate right-hand side even when Expander_Active is True.
15788         Needed to ensure that dispatching calls to T'Input are allowed and
15789         get the tag of the target class-wide object.
15790
15791         * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
15792         an inherited primitive operation that already overrides several
15793         abstract interface primitives. For transitivity, the new entity must
15794         also override all the abstract interface primitives covered by the
15795         inherited overriden primitive.
15796         Emit warning if new entity differs from homograph in same scope only in
15797         that one has an access parameter and the other one has a parameter of
15798         a general access type with the same designated type, at the same
15799         position in the signature.
15800         (Make_Inequality_Operator): Use source locations of parameters and
15801         subtype marks from corresponding equality operator when creating the
15802         tree structure for the implicit declaration of "/=". This does not
15803         change anything in behaviour except that the decoration of the
15804         components of the subtree created for "/=" allows ASIS to get the
15805         string images of the corresponding identifiers.
15806         (Analyze_Return_Statement): Remove '!' in warning message.
15807         (Check_Statement_Sequence): Likewise.
15808         (Analyze_Subprogram_Body): For an access parameter whose designated type
15809         is an incomplete type imported through a limited_with clause, use the
15810         type of the corresponding formal in the body.
15811         (Check_Returns): Implicit return in No_Return procedure now raises
15812         Program_Error with a compile time warning, instead of beging illegal.
15813         (Has_Single_Return):  Function returning unconstrained type cannot be
15814         inlined if expression in unique return statement is not an identifier.
15815         (Build_Body_To_Inline): It is possible to inline a function call that
15816         returns an unconstrained type if all return statements in the function
15817         return the same local variable. Subsidiary procedure Has_Single_Return
15818         verifies that the body conforms to this restriction.
15819
15820         * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
15821         same type, and  one of them is of an anonymous access type, convert
15822         the other operand to it, so that this is a valid binary operation for
15823         gigi.
15824         (Resolve_Type_Conversion): Handle subtypes of protected types and
15825         task types when accessing to the corresponding record type.
15826         (Resolve_Allocator): Add '\' in 2-line warning message.
15827         Remove '!' in warning message.
15828         (Resolve_Call): Add '\' in 2-line warning message.
15829         (Valid_Conversion): Likewise.
15830         (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
15831         resulting type may be an access type with an implicit dereference.
15832         Obtain the proper component from the designated type.
15833         (Make_Call_Into_Operator): Handle properly a call to predefined equality
15834         given by an expanded name with prefix Standard, when the operands are
15835         of an anonymous access type.
15836         (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
15837         Explicit_Dereference and Resolve_Selected_Component, to verify that the
15838         prefix of the expression is not of an incomplete type. Allows full
15839         diagnoses of all semantic errors.
15840         (Resolve_Actuals): If the actual is an allocator whose directly
15841         designated type is a class-wide interface we build an anonymous
15842         access type to use it as the type of the allocator. Later, when
15843         the subprogram call is expanded, if the interface has a secondary
15844         dispatch table the expander will add a type conversion to force
15845         the displacement of the pointer.
15846         (Resolve_Call): If a function that returns an unconstrained type is
15847         marked Inlined_Always and inlined, the call will be inlined and does
15848         not require the creation of a transient scope.
15849         (Check_Direct_Boolean_Op): Removed
15850         (Resolve_Comparison_Op): Remove call to above
15851         (Resolve_Equality_Op): Remove call to above
15852         (Resolve_Logical_Op): Inline above, since this is only call.
15853         (Valid_Conversion): Handle properly conversions between arrays of
15854         convertible anonymous access types.
15855
15856         PR ada/25885
15857         (Set_Literal_String_Subtype): If the lower bound is not static, wrap
15858         the literal in an unchecked conversion, because GCC 4.x needs a static
15859         value for a string bound.
15860
15861 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15862             Hristian Kirtchev  <kirtchev@adacore.com>
15863
15864         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
15865         components of the corresponding record, take into account component
15866         definitions that are access definitions.
15867         (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
15868         procedure is not considered a dispatching call and will be expanded
15869         properly.
15870
15871 2006-02-13  Javier Miranda  <miranda@adacore.com>
15872
15873         * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
15874         controlling argument of the dispatching call is an abstract interface
15875         class-wide type then we use it directly.
15876         Check No_Dispatching_Calls restriction.
15877         (Default_Prim_Op_Position): Remove the code that looks for the last
15878         entity in the list of aliased subprograms. This code was wrong in
15879         case of renamings.
15880         (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
15881         when the source is compiled with the No_Dispatching_Calls restriction.
15882         (Init_Predefined_Interface_Primitives): No need to inherit primitives
15883         if we are compiling with restriction No_Dispatching_Calls.
15884         (Make_Disp_XXX): Addition of assertion to avoid the use of all these
15885         subprograms if we are compiling under No_Dispatching_Calls restriction.
15886         (Make_DT): Generate a dispatch table with a single dummy entry if
15887         we are compiling with the No_Dispatching_Calls restriction. In
15888         addition, in this case we don't generate code that calls to the
15889         following run-time subprograms: Set_Type_Kind, Inherit_DT.
15890         (Make_Select_Specific_Data_Table): Add assertion to avoid the use
15891         of this subprogram if compiling with the No_Dispatching_Calls
15892         restriction.
15893         (Expand_Type_Conversion): Instead of using the actual parameter,
15894         the argument passed as parameter to the conversion function was
15895         erroneously referenced by the expander.
15896         (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
15897         Set_Predefined_Primitive_Op_Address and Set_Signature.
15898         (Expand_Dispatching_Call): Generate call to
15899         Get_Predefined_Prim_Op_Address for predefined primitives.
15900         (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
15901         predefined primitives.
15902         (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
15903         primitives we reserve one dummy entry to ensure that the tag does not
15904         point to some memory that is associated with some other object. In
15905         addition, remove all the old code that generated the assignments
15906         associated with the signature of the dispatch table and replace them
15907         by a call to the new subprogram Set_Signature.
15908         (Set_All_DT_Position): Change the algorithm because now we have a
15909         separate dispatch table associated with predefined primitive operations.
15910         (Expand_Interface_Conversion): In case of non-static offset_to_top
15911         add explicit dereference to get access to the object after the call
15912         to displace the pointer to the object.
15913         (Expand_Interface_Thunk): Modify the generation of the actual used
15914         in the calls to the run-time function Offset_To_Top to fulfil its
15915         new interface.
15916         (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
15917
15918 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15919
15920         * exp_dist.adb (Copy_Specification): For access parameters, copy
15921         Null_Exclusion flag, which will have been set for stream subprograms
15922         in Ada2005 mode.
15923
15924 2006-02-13  Pascal Obry  <obry@adacore.com>
15925
15926         * expect.c (__gnat_expect_portable_execvp): New implementation. The
15927         previous implementation was using the C runtime spawnve routine but
15928         the corresponding wait was using directly the Win32 API. This was
15929         causing some times a lock when waiting for an event using
15930         WaitForSingleObject in __gnat_waitpid. This new implementation uses
15931         the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
15932         API fixes this problem.
15933
15934 2006-02-13  Robert Dewar  <dewar@adacore.com>
15935
15936         * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
15937         call.
15938
15939 2006-02-13  Thomas Quinot  <quinot@adacore.com>
15940
15941         * exp_pakd.ads: Fix typos in comments.
15942
15943         * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
15944         array reference that is an explicit dereference, mark the converted
15945         (packed) array reference as analyzed to prevent a forthcoming
15946         reanalysis from resetting its type to the original (non-packed) array
15947         type.
15948
15949 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
15950             Javier Miranda  <miranda@adacore.com>
15951             Eric Botcazou  <ebotcazou@adacore.com>
15952
15953         * exp_util.ads, exp_util.adb (Find_Prim_Op,
15954         Is_Predefined_Primitive_Operation): When
15955         searching for the predefined equality operator, verify that operands
15956         have the same type.
15957         (Is_Predefined_Dispatching_Operation): Remove the code that looks
15958         for the last entity in the list of aliased subprograms. This code
15959         was wrong in case of renamings.
15960         (Set_Renamed_Subprogram): New procedure
15961         (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
15962         Exp_Type constant computed when entering this subprogram.
15963         (Known_Null): New function
15964         (OK_To_Do_Constant_Replacement): New function
15965         (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
15966         (Side_Effect_Free): An attribute reference 'Input is not free of
15967         side effect, unlike other attributes that are functions. (from code
15968         reading).
15969         (Remove_Side_Effects): Expressions that involve packed arrays or records
15970         are copied at the point of reference, and therefore must be marked as
15971         renamings of objects.
15972         (Is_Predefined_Dispatching_Operation): Return false if the operation is
15973         not a dispatching operation.
15974
15975         PR ada/18819
15976         (Remove_Side_Effects): Lift enclosing type conversion nodes for
15977         elementary types in all cases.
15978
15979 2006-02-13  Javier Miranda  <miranda@adacore.com>
15980
15981         * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
15982         task types when accessing to the corresponding record type.
15983         Remove '!' in warning message.
15984
15985 2006-02-13  Olivier Hainque  <hainque@adacore.com>
15986
15987         * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
15988         to avoid useless and space inefficient overalignments on targets where
15989         Max_Alignment is larger than 16.
15990
15991 2006-02-13  Pascal Obry  <obry@adacore.com>
15992
15993         * g-catiio.adb (Sec_Number): New type used to compute the number of
15994         seconds since 1-1-1970.
15995         (Image) [Natural]: The parameter was an Integer, as we can't deal with
15996         negative numbers (years, months...) it is better to have a Natural here.
15997         Code clean-up.
15998         (Image) [Number]: Change parameter from Long_Integer to Number.
15999         (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
16000         overflow for dates past year 2038.
16001
16002 2006-02-13  Matthew Heaney  <heaney@adacore.com>
16003
16004         *  g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
16005         Constraint_Error.
16006
16007 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16008
16009         * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
16010         native platforms.
16011         (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
16012         finalization can occur normally.
16013
16014 2006-02-13  Vincent Celier  <celier@adacore.com>
16015
16016         * gnatcmd.adb (Rules_Switches): New table
16017         (Add_To_Rules_Switches): New procedure
16018         (GNATCmd): For command CHECK, put all options following "-rules" in the
16019         Rules_Switches table. Append these -rules switches after the -cargs
16020         switches.
16021
16022 2006-02-13  Robert Dewar  <dewar@adacore.com>
16023
16024         * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
16025         These two cases were generating incorrect output, and if this unit
16026         was built with checks on, generated a discriminant mismatch constraint
16027         error.
16028
16029 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16030             Robert Dewar  <dewar@adacore.com>
16031
16032         * lib-xref.adb (Get_Type_Reference): For a private type whose full
16033         view is an array type, indicate the component type as well, for
16034         navigation purposes.
16035         (Generate_Reference): Don't consider array ref on LHS to be a case
16036         of violating pragma Unreferenced.
16037         Do not give Ada 2005 warning except on real reference.
16038
16039 2006-02-13  Vincent Celier  <celier@adacore.com>
16040
16041         * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
16042         main source, add switch -mdebug-main=_ada_ so that the executable can
16043         be debugged by the standard VMS debugger.
16044         (Gnatmake): Set No_Main_Subprogram to True when there is no main
16045         subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
16046         Exit the Multi_Main_Loop when Unique_Compile is True after compilation
16047         of the last source, as the binding and linking phases are never
16048         performed.
16049         Set all executable obsolete when rebuilding a library.
16050
16051         * makeutl.adb (Linker_Options_Switches): Do not process empty linker
16052         options.
16053
16054 2006-02-13  Javier Miranda  <miranda@adacore.com>
16055
16056         PR ada/23973
16057         * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
16058         code to improve the error message reported when the program has
16059         declarations of abstract interface types and it is not compiled with
16060         the -gnat05 switch.
16061         (P_Access_Definition): Reorganize the code to improve the error
16062         message reported when the new Ada 2005 syntax for anonymous
16063         access types is used and the program is not compiled with the
16064         -gnat05 switch.
16065
16066 2006-02-13  Robert Dewar  <dewar@adacore.com>
16067
16068         * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
16069         stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
16070         (MODE_IN)
16071
16072 2006-02-13  Javier Miranda  <miranda@adacore.com>
16073
16074         * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
16075         against source containing syntax errors.
16076
16077 2006-02-13  Vincent Celier  <celier@adacore.com>
16078
16079         * prj.adb (Reset): Initialize the first element of table Namings with
16080         the standard naming data.
16081
16082 2006-02-13  Vincent Celier  <celier@adacore.com>
16083
16084         * prj.ads (Error_Warning): New enumeration type
16085
16086         * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
16087         unknown, use the location of the project to report the error.
16088         (When_No_Sources): New global variable
16089         (Report_No_Ada_Sources): New procedure
16090         (Check): New parameter When_No_Sources. Set value of global variable
16091         When_No_Sources,
16092         (Find_Sources): Call Report_No_Ada_Sources when appropriate
16093         (Get_Sources_From_File): Ditto
16094         (Warn_If_Not_Sources): Better warning messages indicating the unit name
16095         and the file name.
16096
16097         * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
16098         Call Prj.Proc.Process with parameter When_No_Sources.
16099
16100         * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
16101         Call Recursive_Check with parameter When_No_Sources.
16102         (Recursive_Check): New parameter When_No_Sources. Call itself and
16103         Prj.Nmsc.Check with parameter When_No_Sources.
16104         (Process): New parameter When_No_Sources. Call Check with parameter
16105         When_No_Sources.
16106         (Copy_Package_Declarations): New procedure to copy renamed parameters
16107         and setting the location of the declared attributes to the location
16108         of the renamed package.
16109         (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
16110         packages.
16111
16112 2006-02-13  Vincent Celier  <celier@adacore.com>
16113
16114         * prj-makr.adb (Make): Preserve the comments from the original project
16115         file.
16116         When removing nodes (attributes Source_Dirs, Source_Files,
16117         Source_List_File and package Naming), save the comments and attach the
16118         saved comments to the newly created nodes.
16119         Do not add a with clause for the naming package if one already exists.
16120
16121 2006-02-13  Javier Miranda  <miranda@adacore.com>
16122             Gary Dismukes  <dismukes@adacore.com>
16123             Robert Dewar  <dewar@adacore.com>
16124
16125         * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
16126
16127         * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
16128         aliased entities to look for the overriden abstract interface
16129         subprogram.
16130         (Is_Interface_Subprogram): Complete documentation.
16131         (Check_Dispatching_Operation): Do not generate code to register the
16132         operation in the dispatch table if the source is compiled with
16133         restriction No_Dispatching_Calls.
16134         (Override_Dispatching_Operation): Check for illegal attempt to override
16135         No_Return procedure with procedure that is not No_Return
16136         (Check_Dispatching_Call): Suppress the check for an abstract operation
16137         when the original node of an actual is a tag-indeterminate attribute
16138         call, since the attribute, which must be 'Input, can never be abstract.
16139         (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
16140         call to the Input attribute (even when rewritten).
16141         (Propagate_Tag): Augment comment to indicate the possibility of a call
16142         to an Input attribute.
16143
16144         * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
16145         calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
16146
16147         * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
16148         No_Wide_Characters is no longer partition-wide
16149         No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
16150         rather than GNAT
16151
16152 2006-02-13  Douglas Rupp  <rupp@adacore.com>
16153
16154         * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
16155
16156 2006-02-13  Javier Miranda  <miranda@adacore.com>
16157
16158         * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
16159         handles default-initialized components to keep separate the management
16160         of this feature but also avoid the unrequired resolution and
16161         expansion of components that do not have partially initialized
16162         values.
16163         (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
16164         (Check_Bounds): Likewise.
16165         (Check_Length): Likewise.
16166
16167 2006-02-13  Javier Miranda  <miranda@adacore.com>
16168             Ed Schonberg  <schonberg@adacore.com>
16169
16170         * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
16171         abstract interface type call analyze_and_resolve to expand the type
16172         conversion into the corresponding displacement of the
16173         reference to the base of the object.
16174         (Eval_Attribute, case Width): For systems where IEEE extended precision
16175         is supported, the maximum exponent occupies 4 decimal digits.
16176         (Accessibility_Message): Add '\' in 2-line warning message.
16177         (Resolve_Attribute): Likewise.
16178         (case Attribute_Access): Significantly revise checks
16179         for illegal access-to-subprogram Access attributes to properly enforce
16180         the rules of 3.10.2(32/2).
16181         Diagnose use of current instance with an illegal attribute.
16182
16183         * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
16184         to a Node_Id.
16185         (Enclosing_Generic_Unit): New function to return a node's innermost
16186         enclosing generic declaration node.
16187         (Compile_Time_Constraint_Error): Remove '!' in warning messages.
16188         (Type_Access_Level): The accessibility level of anonymous acccess types
16189         associated with discriminants is that of the current instance of the
16190         type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
16191         (Compile_Time_Constraint_Error): Handle case of conditional expression.
16192         (Kill_Current_Values_For_Entity): New function
16193         (Enter_Name): Change formal type to Entity_Id
16194
16195 2006-02-13  Hristian Kirtchev  <kirtchev@adacore.com>
16196             Ed Schonberg  <schonberg@adacore.com>
16197             Gary Dismukes  <dismukes@adacore.com>
16198
16199         * sem_ch10.adb (Check_Redundant_Withs): New procedure in
16200         Analyze_Compilation_Unit.
16201         Detect and warn on redundant with clauses detected in a package spec
16202         and/or body when -gnatwr is used.
16203         (Analyze_Context): Analyze config pragmas before other items
16204         (Install_Context_Items): Don't analyze config pragmas here
16205         (Install_Limited_Withed_Unit): Set limited entity of package in
16206         with_clause so that cross-reference information or warning messages on
16207         unused packages can be properly generated
16208         (Is_Visible_Through_Renamings): Return false if the limited_with_clause
16209         has Error_Posted set. Prevent infinite loops in illegal programs.
16210         (Check_Private_Child_Unit): Move test for a nonprivate with clause down
16211         to the point of the error test requiring the current unit to be private.
16212         This ensures that private with clauses are not exempted from the basic
16213         checking for being a descendant of the same library unit parent as a
16214         withed private descendant unit.
16215         (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
16216         handle private with clauses properly, as well as to account for cases
16217         where the withed unit is a public descendant of a private ancestor
16218         (in which case the current unit must be a descendant of the private
16219         ancestor's parent). The spec comments were updated accordingly. Also,
16220         the old error message in this subprogram was replaced with error
16221         messages that mirror the errors tested and reported by
16222         Check_Private_Child_Unit.
16223         Parameter and variable names improved for readability.
16224         (Install_Limited_Context_Clauses): Remove test for a withed unit being
16225         private as the precondition for calling
16226         Check_Private_Limited_Withed_Unit since that subprogram has been
16227         revised to test public units as well as private units.
16228
16229 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16230             Robert Dewar  <dewar@adacore.com>
16231             Ed Schonberg  <schonberg@adacore.com>
16232             Javier Miranda  <miranda@adacore.com>
16233
16234         * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
16235         that Scope_Stack.First = 1.
16236         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16237         were not always properly handled previously.
16238         (Formal_Entity): Complete rewrite, to handle properly some complex case
16239         with multiple levels of parametrization by formal packages.
16240         (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
16241         to the corresponding derived type declaration for proper semantics.
16242
16243         * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
16244         (Check_Component): Enforce restriction on components of
16245         unchecked_unions: a component in a variant cannot contain tasks or
16246         controlled types.
16247         (Unchecked_Union): Allow nested variants and multiple discriminants, to
16248         conform to AI-216.
16249         Add pragma Ada_2005 (synonym for Ada_05)
16250         Properly handle Ada_Version_Explicit and Ada_Version_Config, which
16251         were not always properly handled previously.
16252         Document that pragma Propagate_Exceptions has no effect
16253         (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
16254         (Set_Convention_From_Pragma): Check that if a convention is
16255         specified for a dispatching operation, then it must be
16256         consistent with the existing convention for the operation.
16257         (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
16258         longer required to specify an vtable-ptr component in the record. For
16259         compatibility reasons we leave the support for the previous definition.
16260         (Analyze_Pragma, case No_Return): Allow multiple arguments
16261
16262         * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
16263         non-overrideen inherited operation with a controlling result as
16264         illegal only its implicit declaration comes from the derived type
16265         declaration of its result's type.
16266         (Check_Possible_Deferred_Completion): Relocate the object definition
16267         node of the subtype indication of a deferred constant completion rather
16268         than directly analyzing it. The analysis of the generated subtype will
16269         correctly decorate the GNAT tree.
16270         (Record_Type_Declaration): Check whether this is a declaration for a
16271         limited derived record before analyzing components.
16272         (Analyze_Component_Declaration): Diagnose record types  not explicitly
16273         declared limited when a component has a limited type.
16274         (Build_Derived_Record_Type): Code reorganization to check if some of
16275         the inherited subprograms of a tagged type cover interface primitives.
16276         This check was missing in case of a full-type associated with a private
16277         type declaration.
16278         (Constant_Redeclaration): Check that the subtypes of the partial and the
16279         full view of a constrained deferred constant statically match.
16280         (Mentions_T): A reference to the current type in an anonymous access
16281         component declaration  must be an entity name.
16282         (Make_Incomplete_Type_Declaration): If type is tagged, set type of
16283         class_wide type to refer to full type, not to the incomplete one.
16284         (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
16285         available. Required to give support to the certified run-time.
16286         (Analyze_Component_Declaration): In case of anonymous access components
16287         perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
16288         (Process_Discriminants): For an access discriminant, use the
16289         discriminant specification as the associated_node_for_itype, to
16290         simplify accessibility checks.
16291
16292 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16293             Javier Miranda  <miranda@adacore.com>
16294
16295         * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
16296         abstract interpretations on an operator, remove interpretations that
16297         yield Address or a type derived from it, if one of the operands is an
16298         integer literal.
16299         (Try_Object_Operation.Try_Primitive_Operation,
16300         Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
16301         location when creating the new reference to a primitive or class-wide
16302         operation as a part of rewriting a subprogram call.
16303         (Try_Primitive_Operations): If context requires a function, collect all
16304         interpretations after the first match, because there may be primitive
16305         operations of the same type with the same profile and different return
16306         types. From code reading.
16307         (Try_Primitive_Operation): Use the node kind to choose the proper
16308         operation when a function and a procedure have the same parameter
16309         profile.
16310         (Complete_Object_Operation): If formal is an access parameter and prefix
16311         is an object, rewrite as an Access reference, to match signature of
16312         primitive operation.
16313         (Find_Equality_Type, Find_One_Interp): Handle properly equality given
16314         by an expanded name with prefix Standard, when the operands are of an
16315         anonymous access type.
16316         (Remove_Abstract_Operations): If the operation is abstract because it is
16317         inherited by a user-defined type derived from Address, remove it as
16318         well from the set of candidate interpretations of an overloaded node.
16319         (Analyze_Membership_Op): Membership test not applicable to cpp-class
16320         types.
16321
16322 2006-02-13  Bob Duff  <duff@adacore.com>
16323
16324         * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
16325         redundant use clauses.
16326         In particular, if the scope of two use clauses overlaps, but one is not
16327         entirely included in the other, we should not warn.  This can happen
16328         with nested packages.
16329         (Analyze_Subprogram_Renaming): Protect the compiler against previously
16330         reported errors. The bug was reported when the compiler was built
16331         with assertions enabled.
16332         (Find_Type): If the node is a 'Class reference and the prefix is a
16333         synchronized type without a corresponding record, return the type
16334         itself.
16335
16336 2006-02-13  Javier Miranda  <miranda@adacore.com>
16337
16338         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
16339         if this is the full-declaration associated with a private declaration
16340         that implement interfaces, then the private type declaration must be
16341         limited.
16342         (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
16343         as aliased. The use of the 'access attribute is not available for such
16344         object (for this purpose the object should be explicitly marked as
16345         aliased, but being an anonymous type this is not possible).
16346
16347 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16348             Robert Dewar  <dewar@adacore.com>
16349
16350         * sem_elab.adb (Same_Elaboration_Scope): A package that is a
16351         compilation unit is an elaboration scope.
16352         (Add_Task_Proc): Add '\' in 2-line warning message.
16353         (Activate_All_Desirable): Deal with case of unit with'ed by parent
16354
16355 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16356             Javier Miranda  <miranda@adacore.com>
16357
16358         * sem_type.adb (Write_Overloads): Improve display of candidate
16359         interpretations.
16360         (Add_One_Interp): Do not add to the list of interpretations aliased
16361         entities corresponding with an abstract interface type that is an
16362         immediate ancestor of a tagged type; otherwise we have a dummy
16363         conflict between this entity and the aliased entity.
16364         (Disambiguate): The predefined equality on universal_access is not
16365         usable if there is a user-defined equality with the proper signature,
16366         declared in the same declarative part as the designated type.
16367         (Find_Unique_Type): The universal_access equality operator defined under
16368         AI-230 does not cover pool specific access types.
16369         (Covers): If one of the types is a generic actual subtype, check whether
16370         it matches the partial view of the other type.
16371
16372 2006-02-13  Thomas Quinot  <quinot@adacore.com>
16373
16374         * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
16375         line. This is necessary to allow In_Extended_Main_Unit to provide
16376         correct results for itypes while writing out expanded source.
16377         (Close_File): No need to update the source_index_table here since it's
16378         now done for each line.
16379
16380 2006-02-13  Ed Schonberg  <schonberg@adacore.com>
16381             Robert Dewar  <dewar@adacore.com>
16382
16383         * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
16384         preserve the source unit where the itype is declared, and prevent a
16385         backend abort.
16386         (Note_Implicit_Run_Time_Call): New procedure
16387         (Write_Itype): Handle missing cases (E_Class_Wide_Type and
16388         E_Subprogram_Type)
16389
16390         * sprint.ads: Document use of $ for implicit run time routine call
16391
16392 2006-02-13  Quentin Ochem  <ochem@adacore.com>
16393
16394         * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
16395         task name.
16396
16397 2006-02-13  Bob Duff  <duff@adacore.com>
16398
16399         * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
16400         Scan_Unsigned, so we do not scan leading blanks and sign twice.
16401         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16402         raise Constraint_Error.
16403
16404         * s-vallli.adb (Scan_Long_Long_Integer): Call
16405         Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
16406         do not scan leading blanks and sign twice.
16407         Integer'Value("- 5") and Integer'Value("-+5") now correctly
16408         raise Constraint_Error.
16409
16410         * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
16411         Scan_Long_Long_Unsigned): Split out most of the processing from
16412         Scan_Long_Long_Unsigned out into
16413         Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
16414         This prevents scanning leading blanks and sign twice.
16415         Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
16416         See RM-3.5(44).
16417
16418         * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
16419         out most of the processing from Scan_Unsigned out into
16420         Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
16421         This prevents scanning leading blanks and sign twice.
16422
16423         * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
16424         use with Modular'Value attribute.
16425         (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
16426         attribute.
16427
16428 2006-02-13  Robert Dewar  <dewar@adacore.com>
16429
16430         * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
16431
16432 2006-02-13  Eric Botcazou  <ebotcazou@adacore.com>
16433
16434         * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
16435         (PPC VxWorks): Likewise.
16436         (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
16437         (forced_callee): Make non-inlinable and non-pure.
16438         (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
16439
16440 2006-02-13  Arnaud Charlet  <charlet@adacore.com>
16441             Ben Brosgol  <brosgol@adacore.com>
16442             Robert Dewar  <dewar@adacore.com>
16443
16444         * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
16445         support.
16446         Document that gnatbind -M option is for cross environments only.
16447         Added description of using gnatmem to trace gnat rtl allocs and deallocs
16448         Add note on use of $ to label implicit run time calls
16449         Add documentation for -gnatyI (check mode IN)
16450         Updated chapter on compatibility with HP Ada
16451         VMS-oriented edits.
16452         Ran spell and corrected errors
16453         Add documentation for gnatbind -d and rework documentation of -D
16454         at the same time.
16455         Add subprogram/data elimination section.
16456         Minor editing of annex A.
16457         Add section for gnatcheck.
16458         Add documentation for restriction No_Dispatching_Calls
16459         Add documentation for pragma Ada_2005
16460         Remove mention of obsolete pragma Propagate_Exceptions
16461         Document that pragma Unreferenced can appear after DO in ACCEPT
16462         Clarify Pure_Function for library level units
16463         Mention Max/Min in connection with No_Implicit_Conditionals
16464         No_Wide_Characters restriction is no longer partition-wide
16465         Add a nice example for Universal_Literal_String attribute
16466         Document that pragma No_Return can take multiple arguments
16467
16468         * ug_words: Added entry for gnatcheck
16469
16470         * g-ctrl_c.ads (Install_Handler): Enhance comments
16471
16472         * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
16473
16474         * g-trasym.ads: Add documentation on how to do off line symbolic
16475         traceback computation.
16476
16477         * s-fatgen.adb: Add comments for Unaligned_Valid
16478
16479         * stand.ads: Fix typo in comment
16480
16481 2006-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16482
16483         * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
16484
16485 2006-02-06  Roger Sayle  <roger@eyesopen.com>
16486
16487         * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
16488
16489 2006-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16490
16491         PR target/25926
16492         * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
16493         implementation that calls __main.
16494
16495 2006-01-25  Peter O'Gorman  <peter@pogma.com>
16496
16497         PR bootstrap/25859
16498         * Makefile.in (GCC_LINK): Remove quotes.
16499         (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
16500         or $(GCC_LINK).
16501
16502         (powerpc-darwin): Pass -shared-libgcc when building shared library.
16503
16504 2006-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16505
16506         PR ada/24533
16507         * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
16508
16509 2005-12-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16510
16511         * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
16512
16513 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16514
16515         * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
16516         needed.
16517
16518 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16519
16520         * Make-lang.in: Update dependencies
16521
16522 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16523
16524         * Make-lang.in: Add rule for ada/exp_sel.o
16525
16526 2005-12-12  Arnaud Charlet  <charlet@adacore.com>
16527
16528         * Makefile.in (mingw section): Remove EH_MECHANISM setting.
16529
16530 2005-12-09  Arnaud Charlet  <charlet@adacore.com>
16531
16532         * gnatvsn.ads (Library_Version): Bump to version 4.2
16533         (ASIS_Version_Number): Bumped.
16534
16535 2005-12-09  Doug Rupp  <rupp@adacore.com>
16536
16537         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
16538         Ada bind file prefix on VMS from b$ to b__.
16539         (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
16540         __init.
16541
16542         * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
16543         Targparm.OpenVMS_On_Target.
16544         (Object_Suffix): Initialize with target object suffix.
16545         (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
16546
16547         * butil.adb: Change some Hostparm.OpenVMS checks to
16548         Targparm.OpenVMS_On_Target.
16549
16550         * clean.adb: Change some Hostparm.OpenVMS checks to
16551         Targparm.OpenVMS_On_Target.
16552         (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
16553         ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
16554         Ada bind file prefix on VMS from b$ to b__.
16555
16556         * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
16557         --GCC so that Get_Target_Parameters can find system.ads.
16558         (Gnatlink): Call Get_Target_Parameters in mainline.
16559         Initialize standard packages for Targparm.
16560         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
16561         (Process_Args): Also Check for object files with target object
16562         extension.
16563         (Make_Binder_File_Names): Create with target object extension.
16564         (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
16565         to b__.
16566
16567         * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
16568         Targparm.OpenVMS_On_Target.
16569         ({declaration},Build_Library,Check_Library): Change Ada bind file
16570         prefix on VMS from b$ to b__.
16571
16572         * osint-b.adb: Change some Hostparm.OpenVMS checks to
16573         Targparm.OpenVMS_On_Target.
16574         (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
16575         b__.
16576
16577         * targext.c: New file.
16578
16579         * Makefile.in: add support for vxworks653 builds
16580         (../../vxaddr2line): gnatlink with targext.o.
16581         (TOOLS_LIBS): Move targext.o to precede libgnat.
16582         (init.o, initialize.o): Minor clean up in dependencies.
16583         (GNATLINK_OBJS): Add targparm.o, snames.o
16584         Add rules fo building targext.o and linking it explicitly with all
16585         tools.
16586         Also add targext.o to gnatlib.
16587
16588         * Make-lang.in: Add rules for building targext.o and linking it in
16589         with gnat1 and gnatbind.
16590         Add entry for exp_sel.o.
16591
16592         * osint.adb Change some Hostparm.OpenVMS checks to
16593         Targparm.OpenVMS_On_Target.
16594         (Object_File_Name): Use target object suffix.
16595
16596         * osint.ads (Object_Suffix): Remove, no longer used.
16597         (Target_Object_Suffix): Initialize with target object suffix.
16598
16599         * rident.ads: Add special exception to license.
16600
16601         * targparm.adb (Get_Target_Parameters): Set the value of
16602         Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
16603         value.
16604         (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
16605         
16606         * targparm.ads: Add special exception to license.
16607
16608         * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
16609         function.
16610         (Copy_File): Make sure from file is closed if error on to file
16611         (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
16612
16613         * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
16614         (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
16615
16616         * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
16617         target object suffix.
16618
16619 2005-12-09  Jose Ruiz  <ruiz@adacore.com>
16620             Quentin Ochem  <ochem@adacore.com>
16621             Florian Villoing  <villoing@adacore.com>
16622
16623         * a-taster.ads, a-taster.adb: New files.
16624
16625         * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
16626         link to the version that does nothing. This way the task termination
16627         routine is not executed twice for the environment task when finishing
16628         because of an unhandled exception.
16629
16630         * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
16631         handler because of an unhandled exception.
16632
16633         * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
16634         System.Tasking.Utilities instead of that in System.Tasking.Stages.
16635
16636         * s-finimp.adb (initialization code): Modify the soft link for the
16637         finalization of the global list instead of Adafinal.
16638
16639         * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
16640         non-tasking version of the soft link for task termination. We do
16641         nothing since if we are using the non-tasking version it
16642         means that the task termination functionality is not used.
16643         (Null_Finalize_Global_List): Add this null version for the procedure
16644         in charge of finalizing the global list for controlled objects.
16645         (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
16646         instead for handling run-time termination in a more flexible way.
16647         (Adafinal_NT): This new procedure will take care of finalizing the
16648         global list for controlled objects if needed, but no tasking
16649         finalization.
16650
16651         * s-tarest.adb (Task_Lock): Do not try to lock again the
16652         Global_Task_Lock if we already own it. Otherwise, we get blocked in
16653         some run-time operations.
16654         (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
16655         until all nested locks have been released.
16656         (Task_Wrapper): Call the fall-back task termination handler. It
16657         applies to all tasks but the environment task.
16658         (Finalize_Global_Tasks): Add the call for the task termination
16659         procedure for the environment task.
16660         (Task_Wrapper): suppress warnings around declaration of
16661         Secondary_Stack_Address.
16662
16663         * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
16664         moved to the Common_ATCB record.
16665         (Task_Lock): Global_Task_Lock_Nesting has been moved to the
16666         Common_ATCB record.
16667         (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
16668         Common_ATCB record.
16669
16670         * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
16671         Fall_Back_Handler, and Specific_Handler.
16672
16673         * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
16674         defined in Ada.Task_Termination, to avoid circular dependencies.
16675         (Termination_Handler): Redefine this type here, alredy defined in
16676         Ada.Task_Termination, for avoiding circular dependencies.
16677         (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
16678         for storing task termination handlers. In addition,
16679         Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
16680         Common_ATCB because it is used by both the regular and the restricted
16681         run times.
16682         (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
16683         Common_ATCB because it is used by both the regular and the restricted
16684         run times.
16685         (Common_ATCB): Added a dynamic task analyzer field.
16686
16687         * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
16688         potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
16689         (Task_Wrapper): Call the task termination handler. It applies to all
16690         tasks but the environment task.
16691         (Finalize_Global_Tasks): Call the task termination procedure for the
16692         environment task. The call to Finalize_Global_List is now performed
16693         using the soft links mechanism.
16694         (Task_Wrapper): added dynamic stack analysis.
16695
16696         * s-tasuti.adb (Abort_Tasks): The code in charge of checking
16697         potentially blocking operations has been moved from
16698         System.Tasking.Stages.Abort_Tasks to this procedure. There can be
16699         direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
16700         through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
16701         this run-time check.
16702
16703         * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
16704         of task termination procedure.
16705         (Init_Tasking_Soft_Links): Install the task-safe version of the soft
16706         link for the task termination procedure.
16707
16708         * bindusg.adb: (Bindusg): Added documentation for -u option.
16709
16710         * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
16711         (Get_Main_C): Add handling of dynamic stack analysis.
16712         (Gen_Output_File_C): Add external functions for dynamic stack analysis.
16713
16714         * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
16715         (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
16716         (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
16717
16718         * opt.ads: Added flags used by dynamic stack measurement.
16719         (Max_Line_Length): Remove (not used anymore)
16720
16721         * s-io.ads, s-io.adb (Standard_Error): new subprogram
16722         (Standart_Output): new subprogram
16723         (Set_Output): new subprogram
16724         (Put): now uses the value of Current_Out to know if the output has to be
16725         send to stderr or stdout.
16726         
16727         * s-stausa.ads: Complete implementation.
16728
16729         * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
16730         
16731         * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
16732         list of Ada 05 files.
16733         (GNAT Library Units): Add AltiVec files.
16734
16735         * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
16736         g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
16737         g-alvety.ads, g-alvevi.ads: New files providing altivec API.
16738
16739 2005-12-09  Nicolas Setton  <setton@adacore.com>
16740
16741         * adaint.c (__gnat_locate_regular_file): Return immediately if
16742         file_name is empty.
16743
16744 2005-12-09  Javier Miranda  <miranda@adacore.com>
16745             Hristian Kirtchev  <kirtchev@adacore.com>
16746
16747         * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
16748         to the specification because the frontend generates code that uses this
16749         subprogram.
16750         (Set_Interface_Table): Add missing assertion.
16751         Update documentation describing the run-time structure.
16752         (Displace): New subprogram that displaces the pointer to the object
16753         to reference one of its secondary dispatch tables.
16754         (IW_Membership): Modified to use the new table of interfaces.
16755         (Inherit_TSD): Modified to use the new table of interfaces.
16756         (Register_Interface_Tag): Use the additional formal to fill the
16757         contents of the new table of interfaces.
16758         (Set_Interface_Table): New subprogram that stores in the TSD the
16759         pointer to the table of interfaces.
16760         (Set_Offset_To_Top): Use the additional formal to save copy of
16761         the offset value in the table of interfaces.
16762         Update structure of GNAT Primary and Secondary dispatch table diagram.
16763         Add comment section on GNAT dispatch table prologue.
16764         (Offset_To_Signature): Update the constant value of the Signature field.
16765         (Dispatch_Table): Update comment on hidden fields in the prologue.
16766         (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
16767         Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
16768         the type of formal parameter T to Tag, introduce additional assertions.
16769         (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
16770         conversion.
16771         (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
16772
16773         * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
16774         in all the calls to Expand_Interface_Thunk. Instead of referencing the
16775         record component containing the tag of the secondary dispatch table we
16776         have to use the Offset_To_Top run-time function to get this information;
16777         otherwise if the pointer to the base of the object has been displace
16778         we get a wrong value if we use the 'position attribute.
16779
16780         * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
16781         all the calls to Expand_Interface_Thunk.
16782         (Make_Secondary_DT): Secondary dispatch tables do not have a table of
16783         interfaces; hence the call to Set_Interface_Table was clearly wrong.
16784         (Collect_All_Interfaces): Modify the internal subprogram Collect to
16785         ensure that the interfaces implemented by the ancestors are placed
16786         at the header of the generated list.
16787         (Expand_Interface_Conversion): Handle the case in which the displacement
16788         associated with the interface conversion is not statically known. In
16789         this case we generate a call to the new run-time subprogram Displace.
16790         (Make_DT): Generate and fill the new table of interfaces.
16791         (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
16792         Get_Tagged_Kind and Set_Tagged_Kind.
16793         (Tagged_Kind): New function that determines the tagged kind of a type
16794         with respect to limitedness and concurrency and returns a reference to
16795         RE_Tagged_Kind.
16796         (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
16797         Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
16798         primary dispatch table for a type.
16799         (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
16800         secondary dispatch table respectively of a tagged type.
16801
16802         * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
16803         (Expand_Interface_Conversion): New subprogram to indicate if the
16804         displacement of the type conversion is statically known.
16805         (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
16806
16807         * rtsfind.ads (RE_Offset_To_Top): New entity
16808         (RTU_Id): Add Ada_Task_Termination to the list so that it is made
16809         accessible to users.
16810         (Re_Displace): New entity
16811         (RE_Interface_Data): New entity
16812         (RE_Set_Interface_Data): New_Entity
16813         (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
16814         Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
16815         RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
16816         RE_TK_Tagged, RE_TK_Task.
16817
16818         * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
16819         Init_Secondary_Tags_Internal to allow its use with interface types and
16820         also to generate the code for the new additional actual required
16821         by Set_Offset_To_Top.
16822         (Build_Init_Statements): In case of components associated with abstract
16823         interface types there is no need to generate a call to its IP.
16824         (Freeze_Record_Type): Generate Select Specific Data tables only for
16825         concurrent types.
16826         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
16827         the bodies and specifications of the predefined primitive operations
16828         dealing with dispatching selects and abort, 'Callable, 'Terminated only
16829         for concurrent types.
16830
16831         * exp_sel.ads, exp_sel.adb: New files.
16832
16833         * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
16834         Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
16835         properly protected objects and attach handler in the case of the
16836         restricted profile.
16837         Move embeded package Select_Expansion_Utilities into a separate external
16838         package.
16839         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
16840         Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
16841         (Build_K, Build_S_Assignment): New subprograms, part of the select
16842         expansion utilities.
16843         (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
16844         Expand_N_Timed_Entry_Call): Optimize expansion of select statements
16845         where the trigger is a dispatching procedure of a limited tagged type.
16846
16847 2005-12-09  Olivier Hainque  <hainque@adacore.com>
16848
16849         * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
16850         pointer initialization values. Make a SAVE_EXPR instead. Add comments
16851         about the use and expansion of SAVE_EXPRs in the various possible
16852         renaming handling cases.
16853         (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
16854         abusing DECL_FCONTEXT.
16855
16856 2005-12-09  Matthew Heaney  <heaney@adacore.com>
16857
16858         * a-convec.adb (Merge): Added assertions to check whether vector params
16859         are sorted.
16860
16861         * a-coinve.adb (Merge): Added assertions to check whether vector params
16862         are sorted.
16863
16864         * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
16865         draft.
16866         (Cursor'Read): raises PE
16867
16868         * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
16869         to its default value.
16870
16871         * a-cihama.adb: Manually check whether cursor's key and elem are
16872         non-null
16873
16874         * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
16875         (Merge): Assert that target and source lists are in order
16876         (Swap): Declare non-const temporaries, to pass to Splice
16877
16878         * a-cdlili.ads: (Splice): Changed param name and param mode
16879
16880         * a-cdlili.adb: (Splice): Changed param name and param mode
16881         (Merge): Assert that target and source lists are in order
16882         (Swap): Declare non-const temporaries, to pass to Splice
16883
16884         * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
16885         (Write): declare Stream param as not null
16886
16887         * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
16888         an exception message.
16889
16890 2005-12-09  Thomas Quinot  <quinot@adacore.com>
16891             Robert Dewar  <dewar@adacore.com>
16892
16893         * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
16894         which is the absolute maximum length we can support.
16895
16896         * frontend.adb: For the processing of configuration pragma files,
16897         remove references to Opt.Max_Line_Length, which is not checked anymore.
16898
16899         * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
16900         length.
16901
16902         * scn.adb, scng.adb: 
16903         Always check line length against the absolute supported maximum,
16904         Hostparm.Max_Line_Length.
16905
16906         * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
16907         value for the maximum line length is Max_Line_Length (not
16908         Column_Number'Last).
16909         Minor error msg update
16910         (Set_Style_Check_Options): New interface returning error msg
16911         Minor code reorganization (processing for 'M' was out of alpha order)
16912
16913         * switch-c.adb: New interface for Set_Style_Check_Options
16914
16915         * stylesw.ads (Set_Style_Check_Options): New interface returning error
16916         msg.
16917
16918 2005-12-09  Javier Miranda  <miranda@adacore.com>
16919
16920         * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
16921         with IP subprogram were only supported if there were limited types.
16922
16923         * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
16924         records with IP subprogram were only supported if there were limited
16925         types.
16926
16927 2005-12-09  Olivier Hainque  <hainque@adacore.com>
16928             Eric Botcazou  <ebotcazou@adacore.com>
16929
16930         * trans.c (tree_transform, emit_check): Adjust calls to
16931         build_call_raise, passing the now expected GNAT_NODE argument.
16932
16933         * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
16934         source line information than what the current global locus indicates
16935         when appropriate.
16936
16937         * utils2.c (build_simple_component_ref): Return 0 if the offset of the
16938         field has overflowed.
16939         (build_call_raise): Add a GNAT_NODE argument to convey better source
16940         line information than what the current global locus indicates when
16941         appropriate.
16942         (build_component_ref): Adjust call to build_call_raise.
16943
16944 2005-12-09  Pascal Obry  <obry@adacore.com>
16945
16946         * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
16947         the iterator is quitting iteration on parent directory.
16948
16949 2005-12-09  Javier Miranda  <miranda@adacore.com>
16950
16951         * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
16952         and the assignment to a class-wide object, before the assignment we
16953         generate a run-time check to ensure that the tag of the Target is
16954         covered by the tag of the source.
16955
16956 2005-12-09  Robert Dewar  <dewar@adacore.com>
16957
16958         * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
16959         parameter in call to Image_Wide_Character.
16960
16961         * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
16962         parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
16963         (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
16964         annoying FFFE/FFFF inconsistency.
16965
16966 2005-12-09  Robert Dewar  <dewar@adacore.com>
16967             Javier Miranda  <miranda@adacore.com>
16968             Ed Schonberg  <schonberg@adacore.com>
16969
16970         * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
16971         of type conversion.
16972         (Find_Interface): New subprogram that given a tagged type and one of its
16973         component associated with the secondary table of an abstract interface
16974         type, return the entity associated with such abstract interface type.
16975         (Make_Subtype_From_Expr): If type has unknown discriminants, always use
16976         base type to create anonymous subtype, because entity may be a locally
16977         declared subtype or generic actual.
16978         (Find_Interface): New subprogram that given a tagged type and one of its
16979         component associated with the secondary table of an abstract interface
16980         type, return the entity associated with such abstract interface type.
16981
16982         * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
16983         conversion cannot be handled at compile time. In this case we pass this
16984         information to the expander to generate the appropriate code.
16985
16986 2005-12-09  Robert Dewar  <dewar@adacore.com>
16987             Ed Schonberg  <schonberg@adacore.com>
16988             Gary Dismukes  <dismukes@adacore.com>
16989             Javier Miranda  <miranda@adacore.com>
16990             Hristian Kirtchev  <kirtchev@adacore.com>
16991
16992         * einfo.adb (Itype_Printed): New flag
16993         (Is_Limited_Type): Derived types do not inherit limitedness from
16994         interface progenitors.
16995         (Is_Return_By_Reference_Type): Predicate does not apply to limited
16996         interfaces.
16997
16998         * einfo.ads (Itype_Printed): New flag
16999         Move Is_Wrapper_Package to proper section
17000         Add missing Inline for Is_Volatile
17001
17002         * output.ads, output.adb (Write_Erase_Char): New procedure
17003         (Save/Restore_Output_Buffer): New procedures
17004         (Save/Restore_Output_Buffer): New procedures
17005
17006         * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
17007         Add missing support for anonymous access type
17008         (Write_Id): Insert calls to Write_Itype
17009         (Write_Itype): New procedure to output itypes
17010
17011         * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
17012         use of "limited" in declaration.
17013
17014         * sinfo.ads, sinfo.adb: 
17015         Formal derived types can carry an explicit "limited" indication.
17016
17017         * sem_ch3.adb: Add with and use of Targparm.
17018         (Create_Component): If Frontend_Layout_On_Target is True and the
17019         copied component does not have a known static Esize, then reset
17020         the size and positional fields of the new component.
17021         (Analyze_Component_Declaration): A limited component is
17022         legal within a protected type that implements an interface.
17023         (Collect_Interfaces): Do not add to the list the interfaces that
17024         are implemented by the ancestors.
17025         (Derived_Type_Declaration): If the parent of the full-view is an
17026         interface perform a transformation of the tree to ensure that it has
17027         the same parent than the partial-view. This simplifies the job of the
17028         expander in order to generate the correct object layout, and it is
17029         needed because the list of interfaces of the full-view can be given in
17030         any order.
17031         (Process_Full_View): The parent of the full-view does not need to be
17032         a descendant of the parent of the partial view if both parents are
17033         interfaces.
17034         (Analyze_Private_Extension_Declaration): If declaration has an explicit
17035         "limited" the parent must be a limited type.
17036         (Build_Derived_Record_Type): A derived type that is explicitly limited
17037         must have limited ancestor and progenitors.
17038         (Build_Derived_Type): Ditto.
17039         (Process_Full_View): Verify that explicit uses of "limited" in partial
17040         and full declarations are consistent.
17041         (Find_Ancestor_Interface): Remove function.
17042         (Collect_Implemented_Interfaces): New procedure used to gather all
17043         implemented interfaces by a type.
17044         (Contain_Interface): New function used to check whether an interface is
17045         present in a list.
17046         (Find_Hidden_Interface): New function used to determine whether two
17047         lists of interfaces constitute a set equality. If not, the first
17048         differing interface is returned.
17049         (Process_Full_View): Improve the check for the "no hidden interface"
17050         rule as defined by AI-396.
17051
17052 2005-12-09  Robert Dewar  <dewar@adacore.com>
17053
17054         * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
17055         types, not on record subtypes.
17056         (Freeze_Entity): Code cleanup. Add barrier to the loop
17057         that generates the references for primitive operations. This allows to
17058         remove an unnecessary exception handler.
17059         Code reformatting and comment clean ups.
17060
17061 2005-12-09  Vincent Celier  <celier@adacore.com>
17062
17063         * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
17064         If GNAT CHECK is called with a project file, but with no
17065         source on the command line, call gnatcheck with all the compilable
17066         sources of the project.
17067         Take into account the new command Check, for gnatcheck. Treat as for
17068         other ASIS tools: take into account project, specific package Check and
17069         Compiler switches.
17070         For ASIS tools, add the switches in package Compiler for
17071         the invocation of the compiler.
17072
17073         * prj-attr.adb: Add package Check and its attributes
17074
17075         * vms_conv.ads (Command_Type): New command Check, for gnatcheck
17076
17077         * vms_conv.adb (Initialize): Change Params of command Check to
17078         unlimited files.
17079         Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
17080         Add data for new command Check
17081
17082         * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
17083         ELIM.
17084         Add qualifiers for Check command options
17085         (Command_Type): New command Check
17086
17087 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17088
17089         * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
17090         command line switch overruns the output buffer.
17091
17092 2005-12-09  Robert Dewar  <dewar@adacore.com>
17093
17094         * sem_prag.adb: Processing for new pragma Complete_Representation
17095         (Analyze_Pragma, case Debug): Implement two argument form.
17096
17097         * par-prag.adb: Entry for new pragma Complete_Representation
17098         (Prag, case Debug): Recognize two argument form of pragma Debug
17099         New interface for Set_Style_Check_Options.
17100
17101         * sem_ch13.adb: Implement new pragma Complete_Representation.
17102
17103         * snames.adb, snames.ads, snames.h: Entry for new pragma
17104         Complete_Representation.
17105
17106 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
17107
17108         * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
17109         available user-specified stream attributes on limited parameters to
17110         also test the type directly rather than only its underlying type (for
17111         Ada 95) and, in the case of Ada 2005, to check that the user-specified
17112         attributes are visible at the point of the subprogram declaration.
17113         For Ada 2005, the error message is modified to indicate that the
17114         type's stream attributes must be visible (again, only for -gnat05).
17115
17116 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17117
17118         * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
17119         anonymous access types.
17120
17121         * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
17122         matching of anonymous access types and anonymous access to subprogram
17123         types. 'R'M 4.9.1 (2/2).
17124
17125 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17126
17127         * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
17128         rule prematurely when operands are universal, remaining ambiguities
17129         will be removed during resolution.
17130         Code cleanup.
17131
17132         * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
17133         that are Ada 2005 functions.
17134         (Has_Abstract_Interpretation): Subsidiary to
17135         Remove_Conversions, to remove ambiguities caused by abstract operations
17136         on numeric types when operands are universal.
17137
17138 2005-12-09  Robert Dewar  <dewar@adacore.com>
17139
17140         * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
17141         for case where spec is categorized.
17142
17143 2005-12-09  Javier Miranda  <miranda@adacore.com>
17144
17145         * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
17146         types use the corresponding record type. This was not needed before
17147         the implementation of Ada 2005 synchronized types because
17148         concurrent types were never tagged types in Ada 95.
17149
17150 2005-12-09  Ed Schonberg  <schonberg@adacore.com>
17151
17152         * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
17153         first subtype of the type of the expression to verify that it is a
17154         legal Time type.
17155
17156 2005-12-09  Robert Dewar  <dewar@adacore.com>
17157
17158         * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
17159         decoded names.
17160
17161 2005-12-09  Quentin Ochem  <ochem@adacore.com>
17162             Robert Dewar  <dewar@adacore.com>
17163             Ed Falis  <falis@adacore.com>
17164             Florian Villoing  <villoing@adacore.com>
17165             Thomas Quinot  <quinot@adacore.com>
17166             Arnaud Charlet  <charlet@adacore.com>
17167
17168         * gnat_ugn.texi: Created section "Stack Related Tools"
17169         Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
17170         "Stack Related Tools"
17171         Added subsection "Static Stack Usage Analysis"
17172         Added subsection "Dynamic Stack Usage Analysis"
17173         Include documentation of itypes in sprint listing (-gnatG)
17174         Documented gnatbind -D switch (default sec stack size for fixed sec
17175         stacks).
17176         Added Interrupt_State and Persistent_BSS to list of configuration
17177         pragmas.
17178         Add missing doc for maximum value of nnn in -gnatyMnnn
17179
17180         * gnat_rm.texi: Document the AltiVec binding.
17181         Add documentation for pragma Complete_Representation
17182         Shortened an overly long line (> 79 chars)
17183         Clarify documentation of unchecked conversion in implementation
17184         defined cases.
17185         Document two argument form of pragma Debug
17186
17187         * types.ads (Column_Number): Update documentation.
17188
17189         * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
17190         library level Finalize_Storage_Only objects (these are not attached to
17191         any finalization list).
17192
17193         * system-mingw.ads: (Underlying_Priorities): Update comment.
17194
17195 2005-12-09  Robert Dewar  <dewar@adacore.com>
17196
17197         * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
17198         i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
17199         inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
17200         i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
17201         krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
17202         lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
17203         interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
17204         s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
17205         reformatting.
17206
17207 2005-12-09  Robert Dewar  <dewar@adacore.com>
17208
17209         * s-vaflop-vms-alpha.adb: (Ne_F): New function
17210         (Ne_G): New function
17211
17212         * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
17213         for tag assignment.
17214         (Rewrite_Comparison): Handle case where operation is not a comparison
17215         and ignore, and also handle type conversion case.
17216
17217 2005-12-09  Thomas Quinot  <quinot@adacore.com>
17218
17219         * exp_aggr.ads: Fix typo in comment.
17220         ???-mark Convert_Aggr_In_Assignment as needing documentation.
17221
17222 2005-12-09  Gary Dismukes  <dismukes@adacore.com>
17223
17224         * layout.adb: Replace various uses of byte by storage unit throughout.
17225         (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
17226         static size, convert to storage units before returning, to conform to
17227         spec.
17228
17229 2005-12-09  Matthew Gingell  <gingell@adacore.com>
17230
17231         * g-exctra.ads: Fix typo in comment.
17232
17233 2005-12-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17234
17235         * utils.c: Minor reformatting.
17236
17237 2005-12-09  Robert Dewar  <dewar@adacore.com>
17238
17239         * g-soccon.ads: 
17240         Further comment fixes to make the status of the default file clear
17241
17242         * s-bitops.adb: Clarify comment for Bits_Array
17243
17244 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17245
17246         * Make-lang.in (ada.install-normal): Remove.
17247
17248 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
17249
17250         * Make-lang.in: Remove all dependencies on s-gtype.
17251
17252 2005-12-05  Richard Guenther  <rguenther@suse.de>
17253
17254         * utils.c (convert): Use fold_convert where appropriate.
17255
17256 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
17257
17258         * Makefile.in (gnatlib): Fix regex, using \. instead of . when
17259         a period is meant.
17260
17261 2005-12-02  Richard Guenther  <rguenther@suse.de>
17262
17263         * trans.c (gnat_gimplify_expr): Use buildN instead of build.
17264
17265 2005-12-01  Roger Sayle  <roger@eyesopen.com>
17266
17267         * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
17268         nodes.
17269
17270 2005-11-23  Laurent Guerby  <laurent@guerby.net>
17271
17272         * mlib-prj.adb (Build_Library): Initialize Delete.
17273
17274 2005-11-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
17275
17276         * socket.c: Add extern int h_errno for rtems since networking header
17277         files are not available at this point in a tool bootstrap. Newlib
17278         only has basic C library header files.
17279
17280 2005-11-19  Richard Guenther  <rguenther@suse.de>
17281         Roger Sayle  <roger@eyesopen.com>
17282
17283         PR ada/23717
17284         * misc.c (internal_error_function): Don't use vsprintf to format
17285         the error message text, instead use pp_format_text and the new
17286         pretty printer APIs.  This allows handling of %qs, %w, etc.
17287
17288 2005-11-18  Laurent Guerby  <laurent@guerby.net>
17289
17290         PR ada/24857
17291         * Makefile.in: Use s-auxdec-empty for RTEMS.
17292
17293 2005-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17294
17295         PR ada/22333
17296         * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
17297         a temporary if taking the address of something that is neither
17298         reference, declaration, or constant, since the gimplifier
17299         can't handle that case.
17300
17301 2005-11-17  Laurent Guerby  <laurent@guerby.net>
17302
17303         PR ada/24857
17304         * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
17305
17306 2005-11-16  Richard Guenther  <rguenther@suse.de>
17307
17308         * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
17309
17310 2005-11-16  Joel Sherrill  <joel.sherrill@oarcorp.com>
17311
17312         PR ada/24855
17313         * raise-gcc.c: Add missing stdarg.h include.
17314  
17315 2005-11-16  Richard Guenther  <rguenther@suse.de>
17316
17317         * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
17318         (ada/misc.o): Likewise.
17319
17320 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17321
17322         * g-soccon.ads: Minor reformatting. Update comments.
17323
17324         * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
17325         gain visibility on the declaration of struct timeval.
17326
17327         * g-soccon-freebsd.ads,
17328         g-soccon-darwin.ads,
17329         g-soccon-tru64.ads,
17330         g-soccon-aix.ads,
17331         g-soccon-irix.ads,
17332         g-soccon-hpux.ads,
17333         g-soccon-solaris.ads,
17334         g-soccon-vms.ads,
17335         g-soccon-mingw.ads,
17336         g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
17337
17338         * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
17339         g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
17340         g-soccon-linux-x86.ads: New files.
17341
17342         * g-socthi-mingw.adb: 
17343         (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
17344
17345         * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
17346         (time_t, suseconds_t): New types constructed to match the tv_sec
17347         and tv_usec fields of C struct timeval.
17348         (Timeval): Construct structure in terms of the new types.
17349         (Host_Errno): New function (imported from socket.c), returns last hosts
17350         database error.
17351
17352         * g-socthi-vxworks.adb:  Add error handling circuitry.
17353
17354         * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
17355         components of struct timeval.
17356         (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
17357         (Check_Selector): In error conditions, clear internal socket sets to
17358         avoid a memory leak.
17359         (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
17360         Send_Timeout, Receive_Timeout.
17361
17362         * g-socthi.ads (time_t, suseconds_t): New types constructed to match
17363         the tv_sec and tv_usec fields of C struct timeval.
17364         (Timeval): Construct structure in terms of the new types.
17365         (Host_Errno): New function (imported from socket.c), returns last hosts
17366         database error.
17367
17368         * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
17369         hosts database last error code.
17370
17371         * gen-soccon.c: Complete value expansion should not be performed on
17372         TARGET, as it has the form of a math expression, and some components
17373         may be platform-defined macros.
17374         For VxWorks, generate the OK and ERROR values.
17375         New constants giving the sizes of the components of C struct timeval.
17376
17377 2005-11-14  Robert Dewar  <dewar@adacore.com>
17378             Ed Schonberg  <schonberg@adacore.com>
17379
17380         PR ada/18434
17381         * types.ads: Include All_Checks in Suppress_Array
17382
17383         * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
17384         not(a=b), since we no longer do this rewriting, and hence it is not
17385         needed.
17386         (Elaboration_Checks_Suppressed): Add special casing to
17387         deal with different cases of static and dynamic elaboration checks (all
17388         checks does not count in the first case, but does in the second).
17389         (Expr_Known_Valid): Do not assume that the result of any arbitrary
17390         function call is valid, since this is not the case.
17391         (Ensure_Valid): Do not apply validity check to a real literal
17392         in a universal or fixed context
17393
17394         * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
17395         elementary types using the operator in standard. It is cleaner not to
17396         modify the programmers intent, especially in the case of floating-point.
17397         (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
17398         it did not matter because we always rewrote a/=b to not(a=b).
17399         (Expand_Allocator_Expression): For an allocator expression whose nominal
17400         subtype is an unconstrained packed type, convert the expression to its
17401         actual constrained subtype.
17402         Implement warning for <= or >= where < or > not possible
17403         Fix to Vax_Float tests (too early in many routines, causing premature
17404         Vax_Float expansions.
17405
17406         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
17407         to be used with packages and generic packages as well as with
17408         subprograms.
17409         (Suppress): Set All_Checks, but not Elaboration_Check, for case
17410         of pragma Suppress (All_Checks)
17411         (Analyze_Pragma, case Warnings): Implement first argument allowed to be
17412         a string literal for precise control over warnings.
17413         Avoid raise of pragma in case of unrecognized pragma and just return
17414         instead.
17415
17416         * sem_prag.ads: Minor reformatting
17417
17418         * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
17419         with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
17420         Switch. Do not handle any exception.
17421         Include -gnatwx as part of -gnatg (warn on redundant parens)
17422         Allow optional = after -gnatm
17423         (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
17424         longer sets Elaboration_Checks.
17425         Code to set warning mode moved to Sem_Warn
17426         so that it can be shared by pragma processing.
17427
17428         * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
17429         statement.
17430
17431         * s-taprop-solaris.adb: 
17432         Change some <= to =, to avoid new warning
17433
17434         * a-exexda.adb, prj-proc.adb: 
17435         Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
17436         Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
17437
17438 2005-11-14  Robert Dewar  <dewar@adacore.com>
17439
17440         * exp_vfpt.adb: Handle /= case
17441         (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
17442         so that we do not get duplicate scaling for fixed point conversions.
17443
17444         * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
17445
17446 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17447
17448         * system-lynxos-ppc.ads, system-lynxos-x86.ads: 
17449         Increase default priority on Lynx from 15 to 17, and meet the Ada
17450         requirement that Default_Priority be ((Priority'First +
17451         Priority'Last) / 2) by increasing the range of Interrupt_Priority.
17452
17453 2005-11-14  Vincent Celier  <celier@adacore.com>
17454
17455         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17456         mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
17457         mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
17458         mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
17459         mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
17460         mlib-tgt-lynxos.adb (DLL_Prefix): New function
17461
17462 2005-11-14  Doug Rupp  <rupp@adacore.com>
17463
17464         * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
17465         private part.
17466
17467 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17468
17469         * s-traces-default.adb, s-trafor-default.ads,
17470         s-tratas-default.adb: Fix compilation errors.
17471
17472 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17473
17474         * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
17475         raising the exception so the memory used is freed.
17476
17477 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17478
17479         * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
17480         (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
17481         (convert_address): Update comments and list of platforms using this.
17482
17483         * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
17484         no longer used.
17485
17486 2005-11-14  Pascal Obry  <obry@adacore.com>
17487             Vincent Celier  <celier@adacore.com>
17488
17489         * gnatdll.adb (Parse_Command_Line): Remove redundant use of
17490         GNAT.Command_Line.
17491
17492         * memroot.adb: Remove redundant with/use clause on
17493         System.Storage_Elements.
17494
17495 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17496
17497         * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
17498         (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
17499         related code to a-exexpr.adb
17500         (Save_Occurrence_And_Private): Move GCC EH related code to
17501         a-exexpr-gcc.adb
17502         (Raise_Current_Excep): Add new variable Id with pragma
17503         volatile, to ensure that the variable lives on stack.
17504
17505         * a-exexpr-gcc.adb, raise-gcc.c: New file.
17506
17507         * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
17508         from a-except.adb.
17509         Move GCC EH related code to a-exexpr-gcc.adb
17510
17511         * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
17512         64-bit Solaris
17513         Split the Linux version of g-soccon into separate variants for 32 and 64
17514         bit platforms.
17515         (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
17516         vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
17517         install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
17518         of host variable $(RANLIB_FLAGS).
17519         (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
17520         Code clean up: remove unused/obsolete targets.
17521         (EH_MECHANISM): New variable introduced to differenciate between the
17522         two EH mechanisms statically.
17523         (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
17524         (LIBGNAT_OBJS): Add raise-gcc.o
17525         (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
17526         s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
17527         supports VxWorks 6 RTPs.
17528         (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
17529         i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
17530
17531         * raise.c: Move all GCC EH-related routines to raise-gcc.c
17532
17533 2005-11-14  Jose Ruiz  <ruiz@adacore.com>
17534
17535         * s-tassta.adb (Create_Task): Move the code in charge of resetting the
17536         deferral level, when abort is not allowed, to a later stage (the
17537         Task_Wrapper).
17538         (Task_Wrapper): If Abort is not allowed, reset the deferral level since
17539         it will not get changed by the generated code. It was previously done
17540         in Create_Task.
17541
17542 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17543             Olivier Hainque  <hainque@adacore.com>
17544             Eric Botcazou  <ebotcazou@adacore.com>
17545
17546         * decl.c:
17547         Factor common code to build a storage type for an unconstrained object
17548         from a fat or thin pointer type and a constrained object type.
17549         (annotate_value): Handle BIT_AND_EXPR.
17550         (annotate_rep): Don't restrict the back annotation of inherited
17551         components to the type_annotate_only case.
17552         (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
17553         we are not defining the type.
17554         <E_Record_Type>: Likewise.
17555         (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
17556         to get advantage of the new maybe_stabilize_reference interface, to
17557         ensure that what we reference is indeed stabilized instead of relying
17558         on assumptions on what the stabilizer does.
17559         (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
17560         type imported through a limited_with clause, use its non-limited view.
17561         (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
17562         differentiation.
17563         (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
17564         of #if sections + explicit comparisons of convention identifiers.
17565         (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
17566         before early-returning for certain types when code generation is
17567         disabled.
17568         (gnat_to_gnu_entity) <object>: Adjust comment attached to the
17569         nullification of gnu_expr we do for objects with address clause and
17570         that we are not defining.
17571         (elaborate_expression_1): Do not create constants when creating
17572         variables needed by the debug info: the dwarf2 writer considers that
17573         CONST_DECLs is used only to represent enumeration constants, and emits
17574         nothing for them.
17575         (gnat_to_gnu_entity) <object>: When turning a non-definition of an
17576         object with an address clause into an indirect reference, drop the
17577         initializing expression.
17578         Include "expr.h".
17579         (STACK_CHECK_BUILTIN): Delete.
17580         (STACK_CHECK_PROBE_INTERVAL): Likewise.
17581         (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
17582         (STACK_CHECK_MAX_VAR_SIZE): Likewise.
17583         (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
17584         corresponding to the renamed object as ignored for debugging purposes.
17585
17586         * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
17587         related): For a prefix that is a dereference of a fat or thin pointer,
17588         if there is an actual subtype provided by the front-end, use that
17589         subtype to build an actual type with bounds template.
17590         (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
17591         is provided by the front-end, use that subtype to compute the size of
17592         the deallocated object.
17593         (gnat_to_gnu): When adding a statement into an elaboration procedure,
17594         check for a potential violation of a No_Elaboration_Code restriction.
17595         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17596         with extra arguments to control whether to recurse through non-values
17597         and to let the caller know if the stabilization has succeeded.
17598         (gnat_stabilize_reference): Now a simple wrapper around
17599         maybe_stabilize, for common uses without restriction on lvalues and
17600         without need to check for the success indication.
17601         (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
17602         pass false instead of 0 as the FORCE argument which is a bool.
17603         (Identifier_to_gnu): Remove checks ensuring that an renamed object
17604         attached to a renaming pointer has been properly stabilized, as no such
17605         object is attached otherwise.
17606         (call_to_gnu): Invoke create_var_decl to create the temporary when the
17607         function uses the "target pointer" return mechanism.
17608         Reinstate conversion of the actual to the type of the formal
17609         parameter before any other specific treatment based on the passing
17610         mechanism. This turns out to be necessary in order for PLACEHOLDER
17611         substitution to work properly when the latter type is unconstrained.
17612
17613         * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
17614         common pattern.
17615         (maybe_stabilize_reference): New function, like gnat_stabilize_reference
17616         with extra arguments to control whether to recurse through non-values
17617         and to let the caller know if the stabilization has succeeded.
17618
17619         * utils2.c (gnat_build_constructor): Only sort the fields for possible
17620         static output of record constructor if all the components are constant.
17621         (gnat_build_constructor): For a record type, sort the list of field
17622         initializers in increasing bit position order.
17623         Factor common code to build a storage type for an unconstrained object
17624         from a fat or thin pointer type and a constrained object type.
17625         (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
17626         types variants, and process special cases of VIEW_CONVERT expressions
17627         as their NOP_EXPR counterpart to ensure we get to the
17628         CORRESPONDING_VARs associated with CONST_DECls.
17629         (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
17630         on the right-hand side.
17631
17632         * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
17633         a common pattern.
17634         (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
17635         are converting back to its original type.
17636         (convert) <JM input>: Fallthrough regular conversion code instead of
17637         extracting the object if converting to a type variant.
17638         (create_var_decl): When a variable has an initializer requiring code
17639         generation and we are at the top level, check for a potential violation
17640         of a No_Elaboration_Code restriction.
17641         (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
17642         SIZE and SIZE_UNIT which we need for later back-annotations.
17643         * utils.c: (convert) <STRING_CST>: Remove obsolete code.
17644         <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
17645         is an unchecked union.
17646         (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
17647         (convert) <VIEW_CONVERT_EXPR>: When the types have the same
17648         main variant, just replace the VIEW_CONVERT_EXPR.
17649         <UNION_TYPE>: Revert 2005-03-02 change.
17650
17651         * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
17652
17653         * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
17654
17655 2005-11-14  Matthew Heaney  <heaney@adacore.com>
17656
17657         * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads, 
17658         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb, 
17659         a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads, 
17660         a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb, 
17661         a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads, 
17662         a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb: 
17663         Compiles against the spec for ordered maps described in sections
17664         A.18.6 of the most recent (August 2005) AI-302 draft.
17665
17666 2005-11-14  Olivier Hainque  <hainque@adacore.com>
17667
17668         * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
17669         to ensure bias adjustments take place when need be and to prevent
17670         occurrences of intermediate overflows.
17671
17672 2005-11-14  Matthew Gingell  <gingell@adacore.com>
17673             Olivier Hainque  <hainque@adacore.com>
17674
17675         * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
17676         ia64 HP-UX.
17677
17678         * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
17679         tracebacks on ia64 HP-UX and provide explanatory comment.
17680         Enable backtraces on ia64 GNU/Linux.
17681         (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
17682         base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
17683
17684 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
17685             Javier Miranda  <miranda@adacore.com>
17686
17687         * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
17688         exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
17689         exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
17690         einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
17691
17692         * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
17693         properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
17694         assertions).
17695
17696         * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
17697         subprogram that generates the external name associated with a
17698         secondary dispatch table.
17699         (Get_Secondary_DT_External_Name): New subprogram that generates the
17700         external name associated with a secondary dispatch table.
17701
17702 2005-11-14  Emmanuel Briot  <briot@adacore.com>
17703
17704         * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
17705         line in the ALI file to include both an instantiation reference, and a
17706         returned value.
17707
17708 2005-11-14  Vincent Celier  <celier@adacore.com>
17709
17710         * clean.adb (Check_Project): Look for Ada code in extending project,
17711         even if Ada is not specified as a language.
17712         Use new function DLL_Prefix for DLL_Name
17713         (Clean_Interface_Copy_Directory): New procedure
17714         (Clean_Library_Directory): New procedure
17715         (Clean_Directory): Remove procedure, no longer used
17716         (Clean_Project): Do not delete any file in an externally built project
17717
17718         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
17719         directory of an extending project, even when there are no Ada source
17720         present.
17721         (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
17722         (Set_Ada_Paths.Add.Recursive_Add): Ditto
17723
17724         * mlib-prj.adb (Check_Library): For all library projects, get the
17725         library file timestamp.
17726         (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
17727         (Build_Library): Use new function DLL_Prefix for the DLL_Name
17728         (Clean): Remove procedure, no longer used
17729         (Ultimate_Extension_Of): New function
17730         (Build_Library): When cleaning the library directory, only remove an
17731         existing library file and any ALI file of a source of the project.
17732         When cleaning the interface copy directory, remove any source that
17733         could be a source of the project.
17734
17735         * prj.ads, prj.adb (Project_Empty): Add values of new components
17736         Library_TS and All_Imported_Projects.
17737         (Project_Empty): Add values for new components of Project_Data:
17738         Library_ALI_Dir and Display_Library_ALI_Dir
17739
17740         * prj-attr.adb: New project level attribute name Library_ALI_Dir
17741
17742         * prj-nmsc.adb (Check_Library_Attributes): Take into account new
17743         attribute Library_ALI_Dir.
17744         (Check_Library_Attributes): The library directory cannot be the same as
17745         any source directory of the project tree.
17746         (Check_Stand_Alone_Library): The interface copy directory cannot be
17747         the same as any source directory of the project tree.
17748
17749         * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
17750         all temporary files.
17751
17752 2005-11-14  Robert Dewar  <dewar@adacore.com>
17753             Ed Schonberg  <schonberg@adacore.com>
17754
17755         * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17756         (Check_Elab_Call): A call within a protected body is never an
17757         elaboration call, and does not require checking.
17758         (Same_Elaboration_Scope): Take into account protected types for both
17759         entities.
17760         (Activate_Elaborate_All_Desirable): New procedure
17761
17762         * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
17763         desirable
17764
17765         * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
17766         (Elab_Error_Msg): Use -da to include internal unit links, not -de.
17767
17768         * lib-writ.ads, lib-writ.adb: 
17769         Implement new AD/ED for Elaborate_All/Elaborate desirable
17770         Use new Elaborate_All_Desirable flag in N_With_Clause node
17771
17772         * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
17773         N_Free_Statement nodes.
17774         Define new class N_Subprogram_Instantiation
17775         Add Elaborate_Desirable flag to N_With_Clause node
17776         Add N_Delay_Statement (covering two kinds of delay)
17777
17778         * debug.adb: Introduce d.f flag for compiler
17779         Add -da switch for binder
17780
17781 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17782             Cyrille Comar  <comar@adacore.com>
17783
17784         * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
17785         for task component, in the case of a limited aggregate. The enclosed
17786         object declaration will create it earlier. Otherwise, in the case of a
17787         nested aggregate, the object may appear in the wrong scope.
17788         (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
17789         (Gen_Assign): If the component being assigned is an array type and the
17790         expression is itself an aggregate, wrap the assignment in a block to
17791         force finalization actions on the temporary created for each row of the
17792         enclosing object.
17793         (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
17794         structures are initialized after all discriminants are set so that
17795         they can be accessed even when their offset is dynamic.
17796
17797 2005-11-14  Robert Dewar  <dewar@adacore.com>
17798             Hristian Kirtchev  <kirtchev@adacore.com>
17799
17800         * sem_attr.adb: Implement Machine_Rounding attribute
17801         (Analyze_Access_Attribute): The access attribute may appear within an
17802         aggregate that has been expanded into a loop.
17803         (Check_Task_Prefix): Add semantic check for attribute 'Callable and
17804         'Terminated whenever the prefix is of a task interface class-wide type.
17805         (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
17806         the prefix is of a task interface class-wide type.
17807
17808         * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
17809         to avoid warnings.
17810
17811         * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
17812         Remove pragma Inline for [Unaligned_]Valid.
17813         Add comments that Valid routines do not work for Vax_Float
17814
17815         * exp_attr.adb: Implement Machine_Rounding attribute
17816
17817         * snames.h: Add entry for Machine_Rounding attribute
17818
17819 2005-11-14  Javier Miranda  <miranda@adacore.com>
17820             Robert Dewar  <dewar@adacore.com>
17821             Hristian Kirtchev  <kirtchev@adacore.com>
17822
17823         * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
17824         and related): For a prefix that is an explicit dereference of an
17825         access to unconstrained packed array type, annotate the dereference
17826         with an actual subtype so GIGI can make a correct size computation.
17827         (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
17828         'Unrestricted_Access, if the designated type is an interface we
17829         add a type conversion to force the displacement of the pointer
17830         to the secondary dispatch table.
17831         Use Universal_Real instead of Long_Long_Float when we need a high
17832         precision float type for the generated code (prevents gratuitous
17833         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
17834         (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
17835         'Terminated for task interface class-wide objects. Generate a call to
17836         the predefined dispatching routine used to retrieve the _task_id from
17837         a task corresponding record.
17838         (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
17839
17840         * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
17841         (Check_Dispatching_Operation): Protect the frontend againts
17842         previously detected errors.
17843
17844         * Makefile.rtl: Add new instantiations of system.fat_gen
17845
17846         * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads: 
17847         Change name of instantiated package for better consistency
17848         with newly added system.fat_gen instantiations.
17849
17850         * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
17851         s-fvagfl.ads: New files.
17852
17853 2005-11-14  Cyrille Comar  <comar@adacore.com>
17854             Thomas Quinot  <quinot@adacore.com>
17855
17856         * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
17857         assignment of a value of a tagged type that has been rewritten to a
17858         block statement, it is known by construction that no checks are
17859         necessary for the statements within the block: analyze it with checks
17860         suppressed.
17861         (Expand_N_If_Statement): When killing a dead then-branch in an
17862         if-statement that has elsif_parts, recompute the Current_Value node
17863         for any entity whose value is known from the condition of the first
17864         elsif_part.
17865         (Expand_N_Return_Statement): When returning a mutable record, convert
17866         the return value into its actual subtype in order to help the backend
17867         to return the actual size instead of the maximum. This is another
17868         aftermath of not returning mutable records on the sec-stack anymore.
17869
17870         * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
17871         handling of error msg for suspicious reverse range iteration.
17872         (Check_Possible_Current_Value_Condition): Move declaration from body to
17873         spec, to allow this subprogram to be called from exp_ch5.
17874
17875 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17876
17877         * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
17878         generate a set of nested array aggregates instead of a single flat
17879         aggregate for multi-dimensional arrays.
17880
17881 2005-11-14  Pascal Obry  <obry@adacore.com>
17882
17883         * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
17884         by spawnve is a process handle, no need to convert. Add a parameter
17885         close to control wether the process handle must be closed.
17886         (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
17887         a process handle, not need to convert.
17888         (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
17889
17890         * g-expect.adb: (Kill): Document the new close parameter.
17891         (Close): Do not release the process handle in the kill there as
17892         waitpid() is using it.
17893         (Send_Signal): Release the process handle.
17894
17895 2005-11-14  Robert Dewar  <dewar@adacore.com>
17896
17897         * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
17898         need a high precision float type for the generated code (prevents
17899         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17900         used).
17901
17902         * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
17903         need a high precision float type for the generated code (prevents
17904         gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
17905         used).
17906         (Expand_Width_Attribute): In configurable run-time, the attribute is not
17907         allowed on non-static enumeration subtypes. Force a load error to emit
17908         the correct diagnostic.
17909
17910 2005-11-14  Thomas Quinot  <quinot@adacore.com>
17911             Robert Dewar  <dewar@adacore.com>
17912             Ed Schonberg  <schonberg@adacore.com>
17913
17914         * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
17915         subtype to compute the size of the designated object at run-time,
17916         create such a subtype and store it in the Actual_Designated_Subtype
17917         attribute of the N_Free_Statement.
17918         Generate itype for classwide designated object in both cases of
17919         user-specified storage pool: specific and class-wide, not only in the
17920         specific case.
17921         Raise CE when trying to set a not null access type object to null.
17922         (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
17923         an explicit loop, because freeze nodes make its position variable.
17924
17925         * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
17926         null object.
17927
17928 2005-11-14  Javier Miranda  <miranda@adacore.com>
17929
17930         * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
17931         Build_Stream_Procedure): Add the null-excluding attribute to the first
17932         formal.
17933         This has no semantic meaning under Ada95 mode but it is a
17934         requirement under Ada05 mode.
17935
17936         * par-ch3.adb (P_Access_Definition): Addition of warning message if
17937         the null exclusion is used under Ada95 mode
17938         (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
17939         (P_Access_Definition): Remove assertion that forbids the use of
17940         the null-exclusion feature in Ada95.
17941
17942 2005-11-14  Robert Dewar  <dewar@adacore.com>
17943
17944         * impunit.adb: Exclude container helper units not intended for use by
17945         users.
17946
17947 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
17948
17949         * freeze.adb (Freeze_Entity): For an access formal that is an access
17950         to subprogram, freeze the anonymous subprogram type at the same time,
17951         to prevent later freezing in the wrong scope, such as the enclosing
17952         subprogram body.
17953         (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
17954         subprogram whenever available.
17955
17956 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17957
17958         PR ada/23732
17959         * gnatvsn.ads (Library_Version): Bump to 4.1
17960
17961 2005-11-14  Robert Dewar  <dewar@adacore.com>
17962
17963         * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
17964         Storage_Offset to avoid wrap around causing invalid results.
17965
17966 2005-11-14  Pascal Obry  <obry@adacore.com>
17967
17968         * gnatbind.adb (Is_Cross_Compiler): New function returning True for
17969         cross-compiler.
17970         (Scan_Bind_Arg): Fail with an error message if -M option is used
17971         on a native compiler.
17972
17973 2005-11-14  Robert Dewar  <dewar@adacore.com>
17974             Vincent Celier  <celier@adacore.com>
17975
17976         * gprep.adb: Implement -C switch to scan comments
17977
17978         * scng.adb: Scan comment symbol separately if Replace_In_Comments set
17979
17980         * scans.ads: Comment updates (including new use of Tok_Comment in
17981         preprocessing)
17982
17983         * opt.ads: Add documentation for flags that are used by gprmake,
17984         currently and in the next version of gprmake.
17985         (Verbosity_Level): New variable
17986         Add Replace_In_Comments switch
17987
17988         * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
17989         and -vm.
17990         Add /REPLACE_IN_COMMENTS for gnatprep -C switch
17991
17992 2005-11-14  Arnaud Charlet  <charlet@adacore.com>
17993
17994         * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
17995         message, friendlier.
17996
17997 2005-11-14  Robert Dewar  <dewar@adacore.com>
17998
17999         * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
18000
18001 2005-11-14  Doug Rupp  <rupp@adacore.com>
18002
18003         * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
18004
18005 2005-11-14  Robert Dewar  <dewar@adacore.com>
18006
18007         * interfac.ads: Change declarations of IEEE float types so that we no
18008         longer need a separate version of this package for VMS.
18009
18010 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18011
18012         * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
18013         internal entity created for the declaration of a child subprogram body
18014         with no spec as coming from source, to generate proper cross-reference
18015         information.
18016
18017 2005-11-14  Vincent Celier  <celier@adacore.com>
18018
18019         * make.adb (Compile_Sources): Change verbose message to minimum
18020         verbosity level High for "is in an Ada library", "is a read-only
18021         library" and "is an internal library",
18022         (Create_Binder_Mapping_File): Path name of ALI file for library project
18023         must include the library directory, not the object directory.
18024         (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
18025         for new switches -vl, -vm and -vh.
18026         (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
18027         (Check): Use minimum verbosity Medium for some Verbose_Msg calls
18028         (Compile_Sources): Do not attempt to compile if an ALI file is missing
18029         in a project that is externally built.
18030         (Compute_All_Imported_Projects): New procedure
18031         (Gnatmake): Check if importing libraries should be regenerated because
18032         at least an imported library is more recent.
18033         (Initialize): For each project compute the list of the projects it
18034         imports directly or indirectly.
18035         (Add_Library_Search_Dir): New procedure, used in place of
18036         Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18037         put in the search paths.
18038         (Add_Source_Search_Dir): New procedure, used in place of
18039         Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
18040         put in the search paths.
18041         (Mark_Directory): Resolve the absolute path the directory before marking
18042         it.
18043
18044         * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
18045         call to new procedure Bad_Switch. Call Scan_Pos with new parameter
18046         Switch. Do not handle any exception.
18047         (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
18048         so that the switch is recognized as valid.
18049         (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
18050
18051 2005-11-14  GNAT Script  <nobody@adacore.com>
18052
18053         * Make-lang.in: Makefile automatically updated
18054
18055 2005-11-14  Pascal Obry  <obry@adacore.com>
18056
18057         * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
18058         used.
18059         (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
18060         In both cases the last argument was dropped.
18061
18062 2005-11-14  Eric Botcazou  <ebotcazou@adacore.com>
18063
18064         * namet.h: (Column_Numbe): New type.
18065         (Get_Column_Number): Define to sinput__get_column_number.
18066         (Instantiation): Define to sinput__instantiation.
18067         (Get_Column_Number): Declare.
18068         (Instantiation): Likewise.
18069
18070 2005-11-14  Robert Dewar  <dewar@adacore.com>
18071
18072         * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
18073         syntax, which could cause compiler hangs.
18074
18075 2005-11-14  Vincent Celier  <celier@adacore.com>
18076
18077         * prj-ext.adb: Take into account new environment variable
18078         GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
18079         are defined.
18080         (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
18081         normalize its path name, making it absolute and resolving symbolic
18082         links, and replace the original if resolved path is different.
18083
18084 2005-11-14  Vincent Celier  <celier@adacore.com>
18085
18086         * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
18087         into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
18088
18089 2005-11-14  Emmanuel Briot  <briot@adacore.com>
18090
18091         * prj-pp.adb (Print): Do not output the with statement if the
18092         associated name is empty, which happens for virtual extending projects.
18093         (Print): Preserve the "extends all" attribute when printing the project.
18094
18095         * prj-tree.ads (String_Value_Of): Add comment about returned value for
18096         a virtual extending project.
18097
18098 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18099
18100         * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
18101         rhs of an assignment even if the type is unconstrained, when the
18102         context is non-expanding.
18103         In an inlined body, if the context type is private,
18104         resolve with its full view, which must be a composite type.
18105
18106 2005-11-14  Robert Dewar  <dewar@adacore.com>
18107             Ed Schonberg  <schonberg@adacore.com>
18108
18109         * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
18110         Do not give obsolescent warning on with of subprogram (since we
18111         diagnose calls)
18112         (Analyze_With_Clause): Add test for obsolescent package
18113         (Install_Context_Clauses): If the unit is the body of a child unit, do
18114         not install twice the private declarations of the parents, to prevent
18115         circular lists of Use_Clauses in a parent.
18116         (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
18117         compiling body of child unit.
18118         Use new class N_Subprogram_Instantiation
18119         (Expand_With_Clause): If this is a private with_clause for a child unit,
18120         appearing in the context of a package declaration, then the implicit
18121         with_clauses generated for parent units are private as well.
18122         (License_Check): Do not generate message if with'ed unit is internal
18123
18124 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
18125             Ed Schonberg  <schonberg@adacore.com>
18126             Thomas Quinot  <quinot@adacore.com>
18127
18128         * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
18129         names are internal, because they will not have a corresponding partner
18130         in the actual package.
18131         (Analyze_Formal_Package): Move the setting of the formal package spec's
18132         Generic_Parent field so that it occurs prior to analyzing the package,
18133         to allow proper operation of Install_Parent_Private_Declarations.
18134         (Analyze_Package_Instantiation): Set the instantiated package entity's
18135         Package_Instantiation field.
18136         (Get_Package_Instantiation_Node): Move declaration to package spec.
18137         Retrieve the N_Package_Instantiation node when the Package_Instantiation
18138         field is present.
18139         (Check_Generic_Child_Unit): Within an inlined call, the only possible
18140         instantiation is Unchecked_Conversion, for which no parents are needed.
18141         (Inline_Instance_Body): Deinstall and record the use_clauses for all
18142         parent scopes of a scope being removed prior to inlining an instance
18143         body.
18144         (Analyze_Package_Instantiation): Do not perform front-end inlining when
18145         the current context is itself an instance within a non-instance child
18146         unit, to prevent scope stack errors.
18147         (Save_References): If the node is an aggregate that is an actual in a
18148         call, rewrite as a qualified expression to preserve some type
18149         information, to resolve possible ambiguities in the instance.
18150         (Instance_Parent_Unit): New global variable to record the ultimate
18151         parent unit associated with a generic child unit instance (associated
18152         with the existing Parent_Unit_Visible flag).
18153         (type Instance_Env): New component Instance_Parent_Unit for stacking
18154         parents recorded in the global Instance_Parent_Unit.
18155         (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
18156         stack.
18157         (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
18158         it's not a top-level unit, and only do this if Instance_Parent_Unit is
18159         not already set. Replace test of Is_Child_Unit with test of parent's
18160         scope against package Standard. Add comments and a ??? comment.
18161         (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
18162         on a child instance parent to test that the parent equals
18163         Instance_Parent rather than simply checking that the unit is not a
18164         child unit.
18165         (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
18166         (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
18167         a formal interface are ancestors of the corresponding actual.
18168         (Validate_Formal_Interface_Type): Additional legality checks.
18169         (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
18170         interface types with ancestors.
18171         (Analyze_Formal_Package): If formal is a renaming, use renamed entity
18172         to diagnose attempts to use generic within its own declaration.
18173
18174 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18175             Javier Miranda  <miranda@adacore.com>
18176
18177         * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
18178         discriminant.
18179         (Build_Private_Derived_Type): The entity of the created full view of the
18180         derived type does not come from source. If after installing the private
18181         declarations of the parent scope the parent is still private, use its
18182         full view to construct the full declaration of the derived type.
18183         (Build_Derived_Record_Type): Relax the condition that controls the
18184         execution of the check that verifies that the partial view and
18185         the full view agree in the set of implemented interfaces. In
18186         addition, this test now only takes into account the progenitors.
18187         (Derive_Interface_Subprograms): No need to derive subprograms
18188         of ancestors that are interfaces.
18189         (Derive_Subprograms): Remove formal No_Predefined_Prims and the
18190         associated code.
18191         Change name Is_Package to Is_Package_Or_Generic_Package
18192         (Complete_Subprograms_Derivation): Handle the case in which the full
18193         view is a transitive derivation of the ancestor of the partial view.
18194         (Process_Full_View): Rename local subprogram Find_Interface_In_
18195         Descendant to Find_Ancestor_Interface to leave the code more clear.
18196         Remove wrong code that avoids the generation of an error message
18197         when the immediate ancestor of the partial view is an interface.
18198         In addition some minor reorganization of the code has been done to
18199         leave it more clear.
18200         (Analyze_Type_Declaration): If type has previous incomplete tagged
18201         partial view, inherit properly its primitive operations.
18202         (Collect_Interfaces): Make public, for analysis of formal
18203         interfaces.
18204         (Analyze_Interface_Declaration): New procedure for use for regular and
18205         formal interface declarations.
18206         (Build_Derived_Record_Type): Add support for private types to the code
18207         that checks if a tagged type implements abstract interfaces.
18208         (Check_Aliased_Component_Type): The test applies in the spec of an
18209         instance as well.
18210         (Access_Type_Declaration): Clean up declaration of malformed type
18211         declared as an access to its own classwide type, to prevent cascaded
18212         crash.
18213         (Collect_Interfaces): For private extensions and for derived task types
18214         and derived protected types, the parent may be an interface that must
18215         be included in the interface list.
18216         (Access_Definition): If the designated type is an interface that may
18217         contain tasks, create Master_Id for it before analyzing the expression
18218         of the declaration, which may be an allocator.
18219         (Record_Type_Declaration): Set properly the interface kind, for use
18220         in allocators, the creation of master id's for task interfaces, etc.
18221
18222 2005-11-14  Javier Miranda  <miranda@adacore.com>
18223             Ed Schonberg  <schonberg@adacore.com>
18224
18225         * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
18226         omitted in case of stream attribute subprograms.
18227         (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
18228         appear immediately after a subprogram body, when there is no previous
18229         subprogram declaration.
18230         Change name Is_Package to Is_Package_Or_Generic_Package
18231         (Process_Formals): A non null qualifier on a non null named access
18232         type is not an error, and is a warning only if Redundant_Constructs
18233         are flagged.
18234
18235 2005-11-14  Gary Dismukes  <dismukes@adacore.com>
18236             Ed Schonberg  <schonberg@adacore.com>
18237
18238         * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
18239         nested within Analyze_Package_Specification to install the private
18240         declarations and use clauses within each of the parent units of a
18241         package instance of a generic child package.
18242         (Analyze_Package_Specification): When entering a private part of a
18243         package associated with a generic instance or formal package, the
18244         private declarations of the parent must be installed (by calling new
18245         procedure Install_Parent_Private_Declarations).
18246         Change name Is_Package to Is_Package_Or_Generic_Package
18247         (Preserve_Full_Attributes): For a synchronized type, the corresponding
18248         record is absent in a generic context, which does not indicate a
18249         compiler error.
18250
18251 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18252
18253         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
18254         not try to rewrite a renamed stream attribute, because the operations
18255         on the type may not have been generated.
18256         Handle properly a renaming_as_body generated for a stream operation
18257         whose default is abstract because the object type itself is abstract.
18258         (Find_Type): If the type is incomplete and appears as the prefix of a
18259         'Class reference, it is tagged, and its list of primitive operations
18260         must be initialized properly.
18261         (Chain_Use_Clauses): When chaining the use clauses that appear in the
18262         private declaration of a parent unit, prior to compiling the private
18263         part of a child unit, find on the scope stack the proper parent entity
18264         on which to link the use clause.
18265         (Note_Redundant_Use): Emit a warning when a redundant use clause is
18266         detected.
18267         (Analyze_Object_Renaming): An attribute reference is not a legal object
18268         if it is not a function call.
18269
18270 2005-11-14  Robert Dewar  <dewar@adacore.com>
18271             Ed Schonberg  <schonberg@adacore.com>
18272
18273         * sem_eval.adb: Implement d.f flag
18274         (Subtype_Statically_Match): A generic actual type has unknown
18275         discriminants when the corresponding actual has a similar partial view.
18276         If the routine is called to validate the signature of an inherited
18277         operation in a child instance, the generic actual matches the full view,
18278
18279 2005-11-14  Hristian Kirtchev  <kirtchev@adacore.com>
18280             Ed Schonberg  <schonberg@adacore.com>
18281             Robert Dewar  <dewar@adacore.com>
18282             Thomas Quinot  <quinot@adacore.com>
18283
18284         * sem_res.adb (Resolve_Call): Provide a better error message whenever
18285         a procedure call is used as a select statement trigger and is not an
18286         entry renaming or a primitive of a limited interface.
18287         (Valid_Conversion): If the operand has a single interpretation do not
18288         remove address operations.
18289         (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
18290         statement to inhibit warning.
18291         (Resolve_Unary_Op): Do not produce a warning when
18292         processing an expression of the form -(A mod B)
18293         Use Universal_Real instead of Long_Long_Float when we need a high
18294         precision float type for the generated code (prevents gratuitous
18295         Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
18296         (Resolve_Concatenation_Arg): Improve error message when argument is an
18297         ambiguous call to a function that returns an array.
18298         (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
18299         there is an implicit operator in the given scope if we are within an
18300         instance: legality check has been performed on the generic.
18301         (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
18302         after resolving operand, to avoid false warnings on overloaded calls.
18303
18304 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18305             Javier Miranda  <miranda@adacore.com>
18306
18307         PR ada/15604
18308         * sem_type.adb (Covers): In an inlined body, a composite type matches
18309         a private type whose full view is a composite type.
18310         (Interface_Present_In_Ancestor): Protect the frontend against
18311         previously detected errors to ensure that its compilation
18312         with assertions enabled gives the same output that its
18313         compilation without assertions.
18314         (Interface_Present_In_Ancestor): Add support for private types.
18315         Change name In_Actual to In_Generic_Actual (clean up)
18316         (Disambiguate): New predicate In_Actual, to recognize expressions that
18317         appear in the renaming declaration generated for generic actuals, and
18318         which must be resolved in the outer context.
18319
18320 2005-11-14  Robert Dewar  <dewar@adacore.com>
18321             Thomas Quinot  <quinot@adacore.com>
18322             Hristian Kirtchev  <kirtchev@adacore.com>
18323             Ed Schonberg  <schonberg@adacore.com>
18324
18325         * sem_util.ads, sem_util.adb: Change name Is_Package to
18326         Is_Package_Or_Generic_Package.
18327         (Check_Obsolescent): New procedure.
18328         (Set_Is_Public): Remove obsolete junk test.
18329         (Set_Public_Status): Do not set Is_Public on an object whose declaration
18330         occurs within a handled_sequence_of_statemets.
18331         (Is_Controlling_Limited_Procedure): Factor some of the logic, account
18332         for a parameterless procedure.
18333         (Enter_Name): Recognize renaming declarations created for private
18334         component of a protected type within protected operations, so that
18335         the source name of the component can be used in the debugger.
18336
18337 2005-11-14  Ed Schonberg  <schonberg@adacore.com>
18338             Robert Dewar  <dewar@adacore.com>
18339
18340         * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
18341         of a generic subprogram are not visible outside the body.
18342         (Set_Warning_Switch): New procedure (code to set warning mode moved
18343         here from Switch.C so that it can be shared by pragma processing.
18344         (Check_References): Special case warning for non-modified non-imported
18345         volatile objects.
18346         * par-prag.adb: Modify processing of pragma Warnings to accomodate new
18347         form with a string literal argument
18348
18349 2005-11-14  Javier Miranda  <miranda@adacore.com>
18350
18351         * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
18352         anonymous access.
18353         (Write): Addition of "not null" to the anonymous access.
18354         (Read): Addition of "not null" to the anonymous access.
18355         (Write): Addition of "not null" to the anonymous access.
18356
18357         * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
18358         I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
18359         I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
18360         (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
18361         W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
18362         "not null" to the anonymous access.
18363
18364 2005-11-14  Robert Dewar  <dewar@adacore.com>
18365
18366         * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
18367         offset values
18368
18369 2005-11-14  Vincent Celier  <celier@adacore.com>
18370
18371         * switch.adb (Bad_Switch): New procedure
18372         (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
18373         message when in error.
18374
18375         * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
18376         Too_Many_Output_Files): Remove declarations, no longer used.
18377         (Scan_Nat): New parameter Switch
18378         (Scan_Pos): Ditto
18379         (Bad_Switch): New procedure
18380
18381         * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
18382         with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
18383         new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
18384         to Osint.Fail. Do not handle any exception.
18385
18386 2005-11-14  Vincent Celier  <celier@adacore.com>
18387
18388         * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
18389         designates a non existent directory.
18390
18391 2005-11-14  Robert Dewar  <dewar@adacore.com>
18392
18393         * xgnatugn.adb: Replace invalid membership test by 'Valid
18394
18395 2005-11-14  Vincent Celier  <celier@adacore.com>
18396
18397         * makegpr.adb (Gprmake): Do not attempt to build the global archive if
18398         there is no object directory.
18399
18400 2005-11-14  Robert Dewar  <dewar@adacore.com>
18401
18402         * usage.adb: Minor adjustment to output format, use nn instead of nnn
18403         (so that -gnateInnn does not run into next column)
18404
18405 2005-11-14  Ed Falis  <falis@adacore.com>
18406
18407         * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
18408         "constrained"
18409
18410 2005-11-14  Cyrille Comar  <comar@adacore.com>
18411
18412         * s-chepoo.ads: Add comments on Dereference.
18413         Remove unnecessary inherited abstract primitives.
18414         Cosmetic cleanup.
18415
18416 2005-11-14  Robert Dewar  <dewar@adacore.com>
18417
18418         * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
18419         node parameter, not needed, since it is available as Declaration_Node.
18420
18421 2005-11-14  Geert Bosch  <bosch@adacore.com>
18422
18423         * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
18424         grammatically correct.
18425
18426 2005-11-14  Vincent Celier  <celier@adacore.com>
18427
18428         * s-fileio.ads: Correct spelling error in comment
18429
18430 2005-11-14  Cyrille Comar  <comar@adacore.com>
18431             Robert Dewar  <dewar@adacore.com>
18432             Vincent Celier  <celier@adacore.com>
18433             Ben Brosgol  <brosgol@adacore.com>
18434             Jose Ruiz  <ruiz@adacore.com>
18435             Pascal Obry  <obry@adacore.com>
18436
18437         * gnat_ugn.texi: 
18438         Document that -fstack-check is needed for strict compliance with the
18439         Ada 95 Reference Manual.
18440         Correct reference to VAX systems to meet HP guidelines
18441         Add documentation for new gnatmake switches -vl, -vm and -vh
18442         Replace DEC Ada by HP Ada
18443         Replace DIGITAL by HP
18444         Remove empty section on tools in compatibility section
18445         Clarify the Windows convention semantics.
18446         Document the Win32 calling convention.
18447         The Stdcall, Win32 and DLL convention are synonyms.
18448         Add a note in -gnatR description about zero size record components
18449         Note on new >= and <= warnings for -gnatwc
18450         Document that equal sign after -gnatm is optional.
18451         Note that strip is working fine on DLL built with a Library
18452         Project. The restriction apply only to DLL built with gnatdll.
18453         Update section about the way to debug a DLL.
18454         Update information about the DLL convention.
18455         Document -C switch for gnatprep
18456         Document new attribute Library_ALI_Dir
18457         Update elaboration doc to include implicit Elaborate pragmas now
18458         generated for subprogram instantiations.
18459         Document limitation on executable names that include spaces for --GCC,
18460         --GNATBIND, and --GNATLINK switches.
18461         Document that -w causes -gnatws to be added at start of gcc switches
18462
18463         * gnat_rm.texi: Document that -mieee is needed for generating infinite
18464         and NaN values in case of overflow on machines that are not fully
18465         compliant with the IEEE floating-point standard.
18466         Create a section describing the set of compiler options needed for
18467         strict compliance with the Ada 95 Reference Manual.
18468         Add documentation for pragma Obsolescent applied to a package
18469         Clarify potential issues of mixed language programs related to the
18470         I/O buffering enabling in the elaboration of the GNAT runtime.
18471         Add extra documentation for pragma Restrictions (No_Elaboration_Code)
18472         This documentation only patch adds extra documentsion for pragma
18473         Restrictions (No_Elaboration_Code), explaining why it is not possible
18474         to document this restriction in terms of allowed source constructs.
18475         Document string literal form of pragma Warnings
18476         Document new attribute Library_ALI_Dir
18477         Add documentation on stable attributes in project files that was missing
18478
18479         * gnat-style.texi: Indicate that paragraphs within a single comment
18480         should be separated by empty comment lines
18481
18482         * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
18483         /05 respectively)
18484
18485         * bindusg.adb: Minor cleanup, put -m before -M for consistency
18486
18487 2005-11-14  Robert Dewar  <dewar@adacore.com>
18488
18489         * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
18490         a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
18491         a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
18492         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
18493         a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
18494         a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
18495         a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18496         a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
18497         a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
18498         a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18499         a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
18500         a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
18501         g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
18502         a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
18503         a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
18504         system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
18505         g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
18506         g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
18507         a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
18508         a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
18509         a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
18510         a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
18511         a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
18512         a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
18513         system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
18514         system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
18515         a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
18516         a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
18517         a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
18518         system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
18519         system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
18520         s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
18521         system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
18522         system-interix.ads, system-solaris-sparc.ads,
18523         system-solaris-sparcv9.ads, s-inmaop-vms.adb,
18524         s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
18525         system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
18526         s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
18527         a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
18528         a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
18529         a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
18530         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18531         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18532         a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
18533         a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
18534         a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
18535         a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
18536         a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
18537         a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
18538         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18539         a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
18540         a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
18541         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
18542         a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
18543         a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
18544         a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
18545         a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
18546         a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
18547         a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
18548         a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
18549         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18550         a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
18551         a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
18552         a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
18553         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
18554         a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
18555         a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
18556         a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
18557         bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
18558         csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
18559         errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
18560         errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
18561         exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
18562         exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
18563         freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
18564         g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
18565         g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
18566         g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
18567         g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
18568         g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
18569         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
18570         g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
18571         g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
18572         gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
18573         gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
18574         g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
18575         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
18576         g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
18577         g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
18578         g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
18579         layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
18580         mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
18581         mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
18582         nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
18583         osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
18584         par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
18585         par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
18586         par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
18587         prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
18588         prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
18589         prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
18590         prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
18591         sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
18592         sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
18593         sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18594         sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
18595         s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
18596         sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
18597         s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
18598         s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18599         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
18600         s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
18601         s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
18602         s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18603         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
18604         s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
18605         s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
18606         s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18607         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
18608         s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
18609         s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
18610         s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18611         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
18612         s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
18613         s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
18614         s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18615         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
18616         s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
18617         s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
18618         s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
18619         s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
18620         s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
18621         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
18622         s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
18623         styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
18624         s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
18625         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
18626         s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
18627         s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
18628         s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
18629         s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
18630         s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
18631         s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
18632         s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18633         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
18634         table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
18635         tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
18636         ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
18637         usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
18638         xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
18639         xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
18640         a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
18641         a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
18642         a-numaux-darwin.ads, a-numaux-darwin.adb,
18643         a-swuwha.ads, a-stunha.ads: Minor reformatting
18644
18645 2005-11-14  Robert Dewar  <dewar@adacore.com>
18646
18647         PR ada/18434
18648         * osint-m.adb: Add pragma Elaborate_All for Osint
18649
18650 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
18651
18652         PR ada/23995
18653         * trans.c (call_to_gnu): Restore statement lost in translation.
18654
18655 2005-11-08  Eric Botcazou  <ebotcazou@adacore.com>
18656
18657         * init.c: Use the Linux-specific section for the IA-64/Linux target.
18658         (__gnat_adjust_context_for_raise): Add conditional code so that the
18659         IA-64 is also supported.
18660
18661 2005-11-03  James E Wilson  <wilson@specifix.com>
18662
18663         PR ada/23427
18664         * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
18665         TREE_OVERFLOW check.
18666
18667 2005-09-21  Olivier Hainque  <hainque@adacore.com>
18668
18669         PR ada/22418
18670         * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
18671         as we create them to store a size in bits.
18672
18673 2005-10-21  Eric Botcazou  <ebotcazou@adacore.com>
18674
18675         PR ada/21937
18676         PR ada/22328
18677         PR ada/22381
18678         PR ada/22383
18679         PR ada/22419
18680         PR ada/22420
18681         * utils2.c (build_return_expr): New helper function.
18682         * gigi.h (build_return_expr): Declare it.
18683         * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
18684         of manually building the RETURN_EXPR tree.
18685         (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
18686         (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
18687         build_binary_op for the "target pointer" case.  Use build_return_expr
18688         instead of manually building the RETURN_EXPR tree.
18689
18690 2005-09-16  Laurent Guerby  <laurent@guerby.net>
18691
18692         PR ada/23788
18693         * s-tpinop.ads: Make this unit Preelaborate.
18694
18695 2005-09-16  Andreas Jaeger  <aj@suse.de>
18696
18697         * socket.c: Add string.h for memcpy.
18698
18699 2005-09-05  Arnaud Charlet  <charlet@adacore.com>
18700
18701         * dec-io.ads, dec-io.adb: Removed, no longer used.
18702
18703 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18704
18705         * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
18706
18707         * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
18708         s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
18709         s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
18710         s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
18711         dependent units are Preelaborate.
18712         (Initialize): Call Interrupt_Managemeent.Initialize and
18713         OS_Primitives.Initialize to ensure proper initialization of this unit.
18714         Remove use of System.Soft_Links
18715         Make this unit Preelaborate.
18716
18717         * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
18718         s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
18719         s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
18720         s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
18721         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
18722         s-tratas.ads, s-tasinf.ads: Minor reformatting.
18723         Add pragma Preelaborate, since these packages are suitable for this
18724         categorization.
18725         Update comments.
18726
18727         * s-traent-vms.ads, s-intman-dummy.adb,
18728         s-taprop-dummy.adb: Make this unit Preelaborate.
18729
18730         * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
18731         s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
18732         s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
18733         s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
18734         s-intman-solaris.adb, s-intman-irix-athread.adb,
18735         s-intman-irix.adb: Mark this unit Preelaborate.
18736         (Initialize): New procedure.
18737         Update comments.
18738
18739         * s-taspri-linux.ads: Removed.
18740
18741         * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
18742         as done by other implementations (e.g. posix).
18743
18744         * s-taprop.ads (Timed_Delay): Update spec since the caller now is
18745         responsible for deferring abort.
18746         Mark this unit Preelaborate.
18747
18748         * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
18749         proper initialization of the tasking run-time.
18750
18751         * s-tasdeb.ads: Mark this unit Preelaborate.
18752         (Known_Tasks): Add explicit default value to avoid elaboration code.
18753
18754         * s-inmaop-vms.adb (Elaboration code): Add call to
18755         Interrupt_Management.Initialize since the elaboration code depends on
18756         proper initialization of this package.
18757
18758         * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
18759         s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
18760         s-osprim-posix.adb: Make this unit Preelaborate.
18761
18762         * a-calend.adb: Add call to OS_Primitives.Initialize
18763
18764         * a-elchha.adb: Update use of Except.Id.Full_Name.
18765         Minor reformatting.
18766         Remove use of Ada.Exceptions.Traceback when possible, cleaner.
18767
18768         * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
18769         Move with clauses outside Warnings Off now that dependent units are
18770         Preelaborate.
18771         Use raise xxx with "..."; Ada 2005 form.
18772
18773         * a-taside.ads, a-taside.adb:
18774         Remove some dependencies, to make it easier to make this unit truly
18775         Preelaborate.
18776         Rewrite some code to be conformant with Preelaborate rules.
18777
18778         * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
18779         marked Preelaborate in the future.
18780
18781         * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
18782         these units Preelaborate.
18783
18784         * s-exctab.adb: Update use of Except.Id.Full_Name.
18785
18786         * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
18787         (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
18788         Set_Exc_Stack_Addr): Removed, no longer used.
18789         Remove reference to *Machine_State_Addr*, no longer needed.
18790
18791         * s-stalib.ads: Mark this unit as Preelaborate[_05].
18792         (Exception_Data): Full_Name is now a System.Address so that this unit
18793         can be made Preelaborate.
18794         Clean up/simplify code thanks to Full_Name being a System.Address.
18795         Remove obsolete pragma Suppress (All_Checks), no longer needed.
18796
18797         * s-taskin.ads, s-taskin.adb:
18798         Move with clauses outside Warnings Off now that dependent units are
18799         Preelaborate.
18800         Make this unit Preelaborate.
18801         (Initialize): New proceduure, replace elaboration code and makes the
18802         set up of the tasking run-time cleaner.
18803         (Detect_Blocking): Now a function instead of a deferred boolean, to
18804         obey Preelaborate rules.
18805
18806         * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
18807         soft links, no longer used.
18808
18809         * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
18810         packages are suitable for this categorization.
18811
18812         * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
18813         since we compile run-time sources in Ada 2005 mode.
18814         (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
18815         avoid having s-taprop*.adb depend on s-soflin and to avoid code
18816         duplication.
18817         Remove reference to *Machine_State_Addr*, no longer needed.
18818
18819 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
18820
18821         * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
18822         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18823         Remove reference to System.Exceptions.
18824
18825         * s-mastop-x86.adb: Removed, no longer used.
18826
18827         * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
18828
18829         * a-excach.adb: Minor reformatting.
18830
18831         * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
18832         instead fix new warnings that were hidden by this change.
18833         (AAA, ZZZ): Removed, replaced by...
18834         (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
18835         are used instead of constants, to help make Ada.Exception truly
18836         preelaborate.
18837         (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
18838         Raise_Storage_Error): File is now a System.Address, to simplify code.
18839         (Elab code): Removed, no longer used.
18840         (Null_Occurrence): Remove Warnings Off and make this construct
18841         preelaborate.
18842         Remove code related to front-end zero cost exception handling, since
18843         it is no longer used.
18844         Remove -gnatL/-gnatZ switches.
18845
18846         * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
18847         Update use of Except.Msg.
18848
18849         * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
18850         freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
18851         to front-end zero cost exception handling, since it is no longer used.
18852         Remove -gnatL/-gnatZ switches.
18853
18854         * lib-writ.ads: Minor reformatting
18855         Remove doc of UX
18856
18857         * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
18858
18859         * Make-lang.in: Remove references to s-except.ads
18860
18861         * s-except.ads: Removed, no longer used.
18862
18863         * s-mastop.ads, s-mastop.adb:
18864         (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
18865         Remove reference to System.Exceptions.
18866
18867         * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
18868         switch-b.adb: Remove code related to front-end zero cost exception
18869         handling, since it is no longer used.
18870         Remove -gnatL/-gnatZ switches.
18871
18872 2005-09-01  Robert Dewar  <dewar@adacore.com>
18873             Gary Dismukes  <dismukes@adacore.com>
18874             Javier Miranda  <miranda@adacore.com>
18875
18876         * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
18877         type by valid test and generate warning.
18878         (Tagged_Membership): Generate call to the run-time
18879         subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
18880         Change formal name Subtype_Mark to Result_Definition in several calls to
18881         Make_Function_Specification.
18882         (Expand_Allocator_Expression): Add tests for suppression of the AI-344
18883         check for proper accessibility of the operand of a class-wide allocator.
18884         The check can be left out if checks are suppressed or if the expression
18885         has a specific tagged type whose level is known to be safe.
18886
18887         * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
18888         generates the run-time check associated with null-excluding entities.
18889         (Expand_N_Return_Statement): Add tests to determine if the accessibility
18890         check on the level of the return expression of a class-wide function
18891         can be elided. The check usually isn't needed if the expression has a
18892         specific type (unless it's a conversion or a formal parameter). Also
18893         add a test for whether accessibility checks are suppressed. Augment
18894         the comments to describe the conditions for performing the check.
18895
18896 2005-09-01  Hristian Kirtchev  <kirtchev@adacore.com>
18897             Javier Miranda  <miranda@adacore.com>
18898             Gary Dismukes  <dismukes@adacore.com>
18899             Ed Schonberg  <schonberg@adacore.com>
18900
18901         * a-tags.adb (IW_Membership): Give support to
18902         "Iface_CW_Typ in T'Class". For this purpose the functionality of this
18903         subprogram has been extended to look for the tag in the ancestors tag
18904         table.
18905         Update the structure of the GNAT Dispatch Table to reflect the
18906         additional two tables used in dispatching selects.
18907         Introduce appropriate array types and record components in
18908         Type_Specific_Data to reflect the two tables.
18909         (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
18910         the TSD of a tag, indexed by position.
18911         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
18912         operation kind in the TSD of a tag, indexed by position.
18913
18914         * a-tags.ads: Introduce an enumeration type to capture different
18915         primitive operation kinds. Define a constant reflecting the number of
18916         predefined primitive operations.
18917         (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
18918         of an entry wrapper.
18919         (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
18920         callable entity of a primitive operation.
18921
18922         * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
18923         primitive operations used in dispatching selects for limited
18924         interfaces, limited tagged, task and protected types what implement a
18925         limited interface.
18926         (Freeze_Type): Generate the bodies of the primitive operations used in
18927         dispatching selects for limited tagged, task and protected types that
18928         implement a limited interface. Generate statements to populate the two
18929         auxiliary tables used for dispatching in select statements.
18930         (Freeze_Record_Type): Add call to initialize the dispatch table entries
18931         associated with predefined interface primitive operations.
18932         (Build_Dcheck_Function): Change Set_Subtype_Mark to
18933         Set_Result_Definition.
18934         (Build_Variant_Record_Equality): Change Subtype_Mark to
18935         Result_Definition.
18936         (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
18937         (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
18938         (Build_Assignment): Simplify the code that adds the run-time-check.
18939         (Expand_N_Object_Declaration): Code cleanup.
18940
18941         * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
18942         entries when there is a protected type that implements a limited
18943         interface.
18944
18945         * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
18946         common routines used in expansion of dispatching selects.
18947         (Add_Private_Declarations): Select the appropriate protection type when
18948         there is a protected type that implements a limited interface.
18949         (Build_Parameter_Block): Generate a wrapped parameter block.
18950         (Build_Protected_Subprogram_Body): Select the appropriate type for
18951         locking entries when there is a protected type that implements a
18952         limited interface.
18953         (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
18954         classified as entry wrappers.
18955         (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
18956         asynchronous selects.
18957         (Expand_N_Conditional_Entry_Call): Add support for expansion of
18958         dispatching conditional selects.
18959         (Expand_N_Protected_Type_Declaration): Select the appropriate type for
18960         protection when there is a protected type that implements limited
18961         interfaces.
18962         (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
18963         timed selects.
18964         (Extract_Dispatching_Call): Extract the entity of the name of a
18965         dispatching call, the object parameter, actual parameters and
18966         corresponding formals.
18967         (Make_Initialize_Protection): Correct logic of protection initialization
18968         when there is a protected type that implements a limited interface.
18969         (Parameter_Block_Pack): Populate a wrapped parameter block with the
18970         values of actual parameters.
18971         (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
18972         block and assign them to the original actual parameters.
18973
18974         * exp_ch9.ads (Subprogram_Protection_Mode): New type.
18975         (Build_Protected_Sub_Specification): Change the type and name of the
18976         last formal to account for the increased variety of protection modes.
18977
18978         * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
18979         entities. Used to save the value of the Is_Hidden attribute when the
18980         limited-view is installed.
18981         (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
18982         the attribute of procedures classified as entry wrappers.
18983         (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
18984         entity of a primitive wrapper.
18985         (Write_Entity_Flags): Output the name and value of the
18986         Is_Primitive_Wrapper attribute.
18987         (Write_Field27_Name): Output the name and entity of the field Wrapped_
18988         Entity.
18989         (Underlying_Type): If we have an incomplete entity that comes from
18990         the limited view then we return the Underlying_Type of its non-limited
18991         view if it is already available.
18992         (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
18993         including operators.
18994         (Write_Field26_Name): Add entry for Overridden_Operation
18995         (Overridden_Operation): New attribute of functions and procedures.
18996
18997         * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
18998         predefined position in the dispatch table for the primitive operations
18999         used in dispatching selects.
19000         (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
19001         predefined primitive operations and replace it with
19002         Default_Prim_Op_Count.
19003         (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
19004         Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
19005         the names of the generated primitive operations used in dispatching
19006         selects.
19007         (Init_Predefined_Interface_Primitives): No need to inherit primitives in
19008         case of abstract interface types. They will be inherit by the objects
19009         implementing the interface.
19010         (Make_DT): There is no need to inherit the dispatch table of the
19011         ancestor interface for the elaboration of abstract interface types.
19012         The dispatch table will be inherited by the object implementing the
19013         interface.
19014         (Copy_Secondary_DTs): Add documentation.
19015         (Validate_Position): Improve this static check in case of
19016         aliased subprograms because aliased subprograms must have
19017         the same position.
19018         (Init_Predefined_Interface_Primitives): New subprogram that initializes
19019         the entries associated with predefined primitives of all the secondary
19020         dispatch tables.
19021         (Build_Anonymous_Access_Type): Removed.
19022         (Expand_Interface_Actuals): With the previous cleanup there is no need
19023         to build an anonymous access type. This allows further cleanup in the
19024         code generated by the expander.
19025         (Expand_Interface_Conversion): If the actual is an access type then
19026         build an internal function to handle the displacement. If the actual
19027         is null this function returns null because no displacement is
19028         required; otherwise performs a type conversion that will be
19029         expanded in the code that returns the value of the displaced actual.
19030         (Expand_Interface_Actuals): Avoid the generation of unnecessary type
19031         conversions that have no effect in the generated code because no
19032         displacement is required. Code cleanup; use local variables to
19033         avoid repeated calls to the subprogram directly_designated_type().
19034
19035         * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
19036         Classify the primitive operations used in dispatching selects as
19037         predefined.
19038         (Implements_Limited_Interface): Determine whether some type either
19039         directly implements a limited interface or extends a type that
19040         implements a limited interface.
19041         (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
19042         (Expand_Subtype_From_Expr): Do not build actual subtype if the
19043         expression is limited.
19044         (Find_Interface_Tag): Add code to handle class-wide types and
19045         entities from the limited-view.
19046
19047         * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
19048         Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
19049         POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
19050         POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
19051         Set_Prim_Op_Kind.
19052
19053         * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
19054         of procedure name or prefix that appears as a trigger in a triggering
19055         alternative.
19056
19057         * uintp.ads: Introduce constants Uint_11 and Uint_13.
19058
19059 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19060
19061         * s-tataat.adb, a-tasatt.adb:
19062         Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
19063
19064         * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
19065         these procedures to body, and renamed Abort_Defer, Abort_Undefer.
19066         (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
19067         longer used.
19068
19069 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19070             Jose Ruiz  <ruiz@adacore.com>
19071
19072         * s-taprop-vxworks.adb:
19073         Move with clauses outside Warnings Off now that dependent units are
19074         Preelaborate.
19075         (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
19076         initialization of this unit.
19077         (Specific): Add new procedures Initialize and Delete so that this
19078         package can be used for VxWorks 5.x and 6.x
19079         (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
19080         differences between VxWorks 5.x and 6.x
19081         Minor reformatting.
19082         (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
19083         caller.
19084         Use only Preelaborate-compatible constructs.
19085
19086         * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
19087         Primitives.Operations.
19088         (Delete, Initialize): New procedures.
19089
19090         * s-osinte-vxworks.adb: Body used to handle differences between
19091         VxWorks 5.x and 6.x
19092         (kill, Set_Time_Slice, VX_FP_TASK): New functions.
19093
19094         * s-osinte-vxworks.ads: Minor reformatting.
19095         Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
19096         (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
19097         and 6.
19098         (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
19099         between Vxworks 5 and 6.
19100         (taskLock, taskUnlock): Removeed, no longer used.
19101
19102         * adaint.c: The wait.h header is not located in the sys directory on
19103         VxWorks when using RTPs.
19104         (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
19105         using RTPs.
19106         (__gnat_dup): dup is available on Vxworks when using RTPs.
19107         (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
19108
19109         * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
19110
19111         * expect.c: The wait.h header is not located in the sys directory on
19112         VxWorks when using RTPs.
19113
19114 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19115
19116         * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
19117
19118         * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
19119
19120         * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
19121         g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
19122         g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
19123         g-soccon-freebsd.ads: Add new constants:
19124          IP_MULTICAST_IF
19125          SO_RCVTIMEO/SO_SNDTIMEO
19126          IOV_MAX
19127
19128         * gen-soccon.c:
19129         Move all target-specific file inclusions and macro definitions to
19130         gsocket.h, in order to ensure that any C code in socket.c will see a
19131         set of constants that is consistent with the contents of g-soccon.ads.
19132
19133         * gsocket.h: Code imported from gen-soccon.c:
19134         Move all target-specific file inclusions and macro definitions to
19135         gsocket.h, in order to ensure that any C code in socket.c will see a set
19136         of constants that is consistent with the contents of g-soccon.ads.
19137         This change also makes gen-soccon self-contained (removing dependencies
19138         upon GCC internal headers).
19139
19140         * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
19141         iovecs at a time.
19142         (To_Inet_Addr): Now a procedure instead of a function, more efficient.
19143
19144         * socket.c: Minor reformatting.
19145
19146 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19147             Thomas Quinot  <quinot@adacore.com>
19148
19149         * fname-sf.adb, mlib-tgt.ads,
19150         back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
19151         g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
19152         osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
19153         prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
19154         prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
19155         prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
19156         sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
19157         makegpr.adb: Remove redundant use_clauses.
19158
19159 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19160
19161         * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
19162         s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
19163         s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
19164         s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
19165         s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
19166         s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
19167         s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
19168         table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
19169         s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
19170         s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
19171         a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
19172         a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
19173         a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
19174         a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
19175         system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
19176         system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19177         s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
19178         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
19179         s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
19180         s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
19181         s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
19182         s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
19183         system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
19184         s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
19185         system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
19186         s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
19187         a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
19188         a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
19189         a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
19190         a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
19191         a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
19192         a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
19193         a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
19194         a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
19195         a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
19196         a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
19197         csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
19198         g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
19199         a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
19200         a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
19201         a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
19202         a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
19203         g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
19204         i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
19205         interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
19206         i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
19207         s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
19208         s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
19209         s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
19210         s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
19211         s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
19212         s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
19213         s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
19214         s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
19215         s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
19216         s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
19217         s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
19218         s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
19219         s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
19220         s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
19221         s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
19222         s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
19223         s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
19224         s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
19225         s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
19226         s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
19227         s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
19228         s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
19229         and always use the no parameter form for consistency.
19230
19231         * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
19232
19233 2005-09-01  Robert Dewar  <dewar@adacore.com>
19234
19235         * binde.adb: Minor reformatting
19236         (Find_Elab_Order): Output warning if -p used with static elab order
19237
19238 2005-09-01  Robert Dewar  <dewar@adacore.com>
19239
19240         * checks.adb (Check_Needed): New procedure, deals with removing checks
19241         based on analysis of short-circuited forms. Also generates warnings for
19242         improper use of non-short-circuited forms.
19243         Code clean ups.
19244
19245 2005-09-01  Robert Dewar  <dewar@adacore.com>
19246
19247         * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
19248         with 'Valid tests.
19249
19250 2005-09-01  Robert Dewar  <dewar@adacore.com>
19251
19252         * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
19253         spec.
19254         Implement new insertion char < (conditional warning)
19255         * errutil.adb, erroutc.adb: Implement new insertion char <
19256         (conditional warning).
19257         * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
19258         (Error_Msg_Warn): New variable for < insertion char.
19259         * prj-nmsc.adb: Implement new errout insertion char < (conditional
19260         warning).
19261         (Check_For_Source): Change value of Source_Id only after the current
19262         source has been dealt with.
19263
19264 2005-09-01  Robert Dewar  <dewar@adacore.com>
19265             Doug Rupp  <rupp@adacore.com>
19266
19267         * exp_attr.adb: Handle vax fpt for 'Valid attribute
19268         * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
19269         * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
19270         (Valid_D, Valid_F, Valid_G): New functions
19271
19272 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19273             Hristian Kirtchev  <kirtchev@adacore.com>
19274             Javier Miranda  <miranda@adacore.com>
19275
19276         * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
19277         from object notation, the original node is unanalyzed and carries no
19278         semantic information, so that accessiblity checks must be performed on
19279         the type of the actual itself.
19280         (Expand_N_Subprogram_Declaration): Change last actual parameter for
19281         compatibility with Build_Protected_Sub_Specification.
19282         (Check_Overriding_Inherited_Interfaces): Add suport to handle
19283         overloaded primitives.
19284         (Register_Interface_DT_Entry): Use the new name of the formal
19285         the the calls to Expand_Interface_Thunk
19286
19287         * exp_dbug.ads: Augment comments on encoding of protected types to
19288         include the generation of dispatching subprograms when the type
19289         implements at least one interface.
19290
19291         * lib.ads: Extend information in Load_Stack to include whether a given
19292         load comes from a Limited_With_Clause.
19293
19294         * lib-load.adb (From_Limited_With_Chain): New predicate to determine
19295         whether a potential circularity is harmless, because it includes units
19296         loaded through a limited_with clause. Extends previous treatment which
19297         did not handle properly arbitrary combinations of limited and
19298         non-limited clauses.
19299
19300 2005-09-01  Nicolas Setton  <setton@adacore.com>
19301
19302         * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
19303         to be encoded as typ___XBLU_lowerbound__upperbound instead of
19304         typ___XB_lowerbound__upperbound.
19305
19306 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19307
19308         * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
19309         dummy access formal for RACW/RAS TypeCode TSS.
19310         (Build_TypeCode_Call): Do not generate dummy null access actual for
19311         calls to the TypeCode TSS.
19312
19313 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19314
19315         * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
19316         fully qualified name, to distinguish instances with the same local name.
19317
19318         * g-souinf.ads (Enclosing_Entity): Document that entity name is now
19319         fully qualified.
19320
19321 2005-09-01  Robert Dewar  <dewar@adacore.com>
19322
19323         * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
19324         packed arrays.
19325
19326 2005-09-01  Jerome Lambourg  <lambourg@adacore.com>
19327
19328         * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
19329         (Free): New deallocation procedure for filter elements
19330         (Close): Deallocate any existing filter for the concerned connection
19331
19332 2005-09-01  Laurent Pautet  <pautet@adacore.com>
19333
19334         * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
19335         position set is provided, we compute one in order to reduce the maximum
19336         length of the keys.  This computation first selects a character
19337         position between 1 and the minimum length of the keys in order to
19338         avoid reducing one of the keys to an empty string.
19339         (Initialize, Compute): When the ratio V to K is too low, the algorithm
19340         does not converge. The initialization procedure now comes with a
19341         maximum number of iterations such that when exceeded, an exception is
19342         raised in Compute. The user can initialize this ratio to another value
19343         and try again
19344         Reformating and updated headers.
19345
19346 2005-09-01  Javier Miranda  <miranda@adacore.com>
19347
19348         * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
19349         that given an entity T creates and returns an Itype that duplicates the
19350         contents of T. The returned Itype has the null-exclusion
19351         attribute set to True, and its Etype attribute references T
19352         to keep the association between the two entities.
19353         Update copyright notice
19354
19355         * sem_aggr.adb (Check_Can_Never_Be_Null,
19356         Aggregate_Constraint_Checks, Resolve_Aggregate,
19357         Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
19358
19359         * sem_ch5.adb (Analyze_Assignment): Code cleanup.
19360
19361 2005-09-01  Gary Dismukes  <dismukes@adacore.com>
19362             Robert Dewar  <dewar@adacore.com>
19363             Hristian Kirtchev  <kirtchev@adacore.com>
19364
19365         * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
19366         Result_Definition.
19367
19368         * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
19369         function specs.
19370         Call Set_Result_Definition instead of Set_Subtype_Mark.
19371         (P_Subprogram_Specification): Add parsing of anonymous access result
19372         plus null exclusions. Call Set_Result_Definition instead of
19373         Set_Subtype_Mark.
19374
19375         * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19376         (P_Access_Type_Definition): Add parsing for an anonymous access result
19377         subtype, plus parsing for null exclusions. Call Set_Result_Definition
19378         instead of Set_Subtype_Mark.
19379
19380         * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
19381         (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
19382         (Result_Definition): New function for N_Function_Specifications.
19383         (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
19384         N_Function_Specification.
19385         (Set_Null_Exclusion_Present): Allow this flag for
19386         N_Function_Specification.
19387         (Set_Result_Definition): New procedure for N_Function_Specifications.
19388         (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
19389         and N_Function_Specification.
19390
19391         * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
19392         Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
19393         Add support for LIMITED NEW for Ada 2005 AI-419
19394         Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
19395         syntax for anonymous access results.
19396         Replace Subtype_Mark field by Result_Definition in
19397         N_Function_Specification and N_Access_Definition specs.
19398         Add Null_Exclusion_Present to spec of N_Function_Specification.
19399         (Result_Definition): New function for N_Function_Specification and
19400         N_Access_Function_Definition.
19401         (Set_Result_Definition): New procedure for N_Function_Specification and
19402         N_Access_Function_Definition.
19403
19404         * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
19405         Result_Definition for cases of N_Access_Function_Definition and
19406         N_Function_Specification.
19407         Print "not null" if Null_Exclusion_Present on N_Function_Specification.
19408
19409 2005-09-01  Vincent Celier  <celier@adacore.com>
19410
19411         * lib-writ.adb: Update Copyright notice
19412         (Write_With_Lines): On platforms where file names are case-insensitive,
19413         record the file names in lower case.
19414         (Write_ALI): For D lines, on platforms where file names are
19415         case-insensitive, record the file names in lower case.
19416
19417 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19418             Emmanuel Briot  <briot@adacore.com>
19419
19420         * lib-xref.adb (Output_Overridden_Op): Display information on
19421         overridden operation.
19422
19423         * lib-xref.ads: Add documentation on overridden operations.
19424
19425         * ali.ads (Xref_Entity_Record): Add support for storing the overriding
19426         information.
19427
19428         * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
19429         overriding entity information.
19430
19431 2005-09-01  Vincent Celier  <celier@adacore.com>
19432
19433         * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
19434         including those that are inherited.
19435
19436 2005-09-01  Robert Dewar  <dewar@adacore.com>
19437
19438         * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
19439
19440         * par-prag.adb: Implement new pragma Debug_Policy
19441
19442         * sem_prag.adb Implement new pragma Debug_Policy
19443         (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
19444         Component_Size attribute specification. Give warning for ignored pragma
19445         Pack.
19446
19447         * snames.h, snames.ads, snames.adb: Introduce entries in
19448         Preset_Names for Name_Disp_Asynchronous_Select,
19449         Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
19450         Name_Disp_Timed_Select.
19451         New pragma Debug_Policy
19452
19453         * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
19454         explicitly.
19455         Switch -gnata also sets Debug_Pragmas_Enabled
19456
19457         * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
19458         handle an explicit -gnata when compiling predefined files.
19459
19460 2005-09-01  Vincent Celier  <celier@adacore.com>
19461
19462         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
19463         directories of projects that have no Ada sources.
19464
19465 2005-09-01  Robert Dewar  <dewar@adacore.com>
19466
19467         * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
19468         (makes a difference for wide characters)
19469
19470         * widechar.adb, widechar.ads:
19471         Add Wide_Char_Byte_Count feature to count chars vs bytes
19472
19473 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19474             Ed Schonberg  <schonberg@adacore.com>
19475             Robert Dewar  <dewar@adacore.com>
19476
19477         * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
19478         'Address attribute reference with an overloaded prefix, use the
19479         location of the prefix (not the location of the attribute reference) as
19480         the error location.
19481         (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
19482         a function renaming thereof, is a valid prefix for 'Size (where it is
19483         intepreted as a function call).
19484         (Statically_Denotes_Entity): New predicate to determine whether the
19485         prefix of an array attribute can be considered static.
19486
19487         PR ada/9087
19488         (Eval_Attr): Fix failure to evaluate Component_Size for
19489         unconstrained arrays (resulted in wrong value in packed case, since
19490         back end cannot handle this case)
19491
19492 2005-09-01  Robert Dewar  <dewar@adacore.com>
19493
19494         * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
19495         error msgs for most common cases.
19496         Use new errout insertion char < (conditional warning)
19497
19498 2005-09-01  Javier Miranda  <miranda@adacore.com>
19499             Ed Schonberg  <schonberg@adacore.com>
19500
19501         * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
19502         become local to the whole package.
19503         (Install_Limited_Withed_Unit): Instead of unchaining real entities if
19504         the package was already analyzed the new algorithm "replaces" the
19505         real entities by the shadow ones. This is required to ensure that
19506         the order of these entities in the homonym chains does not change;
19507         otherwise we can have undefined references at linking time because
19508         in case of conflicts the external name of the entities will have
19509         a suffix that depends on the order of the entities in the chain.
19510         (Remove_Limited_With_Clause): Complementary code that completes the
19511         new algorithm and replaces the shadow entities by the real ones.
19512         (Install_Limited_Withed_Unit): When unchaining entities before the
19513         installation of the shadow entities, only regular entities of the
19514         public part must be taken into account. This is required to
19515         keep this routine in synch with the work done by Remove_Limited_
19516         With_Clause
19517         (Install_Limited_With_Clause): Introduce implicit limited_with_clause
19518         even if unit is analyzed, because the analysis of the unit is
19519         idempotent in any case, and the limited view of the unit may have to
19520         be installed for proper visibility.
19521         (Expand_Limited_With_Clause): Even if the unit in the implicit
19522         with_clause has been analyzed already, a limited view of the package
19523         must be built for the current context, if it does not exist yet.
19524
19525 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19526             Javier Miranda  <miranda@adacore.com>
19527             Gary Dismukes  <dismukes@adacore.com>
19528
19529         * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
19530         defining entity for the instance body, make a new defining identifier
19531         rather than copying the entity of the spec, to prevent accidental
19532         sharing of the entity list.
19533         (Check_Private_View): When exchanging views of private types, build the
19534         list of exchanged views as a stack, to ensure that on exit the exchanges
19535         are undone in the proper order.
19536         (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
19537         Restore the compilation environment in case of instantiation_error.
19538         (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
19539         for an anonymous access result.
19540         (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
19541         (Formal_Entity): Handle properly the case of a formal package that
19542         denotes a generic package renaming.
19543
19544 2005-09-01  Thomas Quinot  <quinot@adacore.com>
19545
19546         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
19547         clause if the array aggregate is surrounded by parentheses.
19548
19549 2005-09-01  Cyrille Comar  <comar@adacore.com>
19550             Gary Dismukes  <dismukes@adacore.com>
19551             Ed Schonberg  <schonberg@adacore.com>
19552             Javier Miranda  <miranda@adacore.com>
19553
19554         * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
19555         underlying type
19556         to check if a type is Constrained in cases related to code generation
19557         (rather than semantic checking) since otherwise we do not generate
19558         similar code for mutable private types depending if their
19559         discriminants are visible or not.
19560         (Check_Abstract_Overriding): Do not complain about failure to override
19561         the primitive operations used in dispatching selects since they will
19562         always be overriden at the freeze point of the type.
19563         (Access_Definition): Separate out handling for resetting the scope
19564         of an anonymous access function result type. Retrieve the scope
19565         of the associated function rather than using Current_Scope, which
19566         does not have a consistent value (depends on whether we're in the
19567         middle of analyzing formal parameters). Add ??? comment about
19568         finding a cleaner way to handle the special cases of scope setting.
19569         (Process_Incomplete_Dependents): A protected operation is never a
19570         dispatching operation (only its wrapper may be).
19571         (Build_Derived_Record_Type): In case of tagged private types that
19572         implement interfaces add derivation of predefined primitive
19573         operations.
19574         (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
19575         by two parameters that are used in case of derivation from abstract
19576         interface types: No_Predefined_Prims is used to avoid the derivation
19577         of predefined primitives from the interface, and Predefined
19578         Prims_Only is used to complete the derivation predefined primitives
19579         in case of private tagged types implementing interfaces.
19580         Fix typo in comments
19581         (Find_Interface_In_Descendant): Protect the frontend against
19582         wrong code with large circularity chains.
19583         (Is_Private_Overriding): Add support for entities overriding interface
19584         subprograms. The test failed because Entities associated with overriden
19585         interface subprograms are always marked as hidden (and used to build
19586         the secondary dispatch table); in this case the overriden entity is
19587         available through the field abstract_interface_alias (cf. override_
19588         dispatching_operation)
19589         (Access_Definition): Set the scope of the type to Current_Scope for the
19590         case of a function with an anonymous access result type.
19591         (Access_Subprogram_Declaration): Handle creation of the type entity for
19592         an access-to-function type with an anonymous access result.
19593         (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
19594         in handling for N_Access_Function_Definition.
19595         (Analyze_Subtype_Declaration): Modify the text of error message.
19596         (Derived_Type_Declaration): Modify the text of error message.
19597         (Process_Subtype): Modify the text of error message plus cleanup
19598         of one redundant error message.
19599         (Analyze_Component_Declaration): Code cleanup.
19600         (Analyze_Object_Declaration): Code cleanup.
19601         (Analyze_Subtype_Declaration): Propagate the null-exclusion
19602         attribute in case of access types. Code cleanup.
19603         (Array_Type_Declaration): Code cleanup.
19604         (Process_Discriminants): Create the new null-excluding itype
19605         if required. Code cleanup.
19606         (Process_Subtype): Create the new null-excluding itype if
19607         required. Code cleanup.
19608         (Build_Derived_Record_Type): Code cleanup to avoid calling
19609         twice the subprogram derive_subprograms in case of private
19610         types that implement interfaces. In this particular case the
19611         subprogram Complete_Subprograms_Derivation already does the
19612         job associated with the second call.
19613
19614         * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
19615         conversion to the full view when generating an operation for a
19616         discriminant whose type may currently be private.
19617
19618 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19619             Javier Miranda  <miranda@adacore.com>
19620
19621         * sem_ch4.adb (Transform_Object_Operation): In a context off the form
19622         V (Obj.F), the rewriting does not involve the indexed component, but
19623         only the selected component itself.
19624         Do not apply the transformation if the analyzed node is an actual of a
19625         call to another subprogram.
19626         (Complete_Object_Operation): Retain the entity of the
19627         dispatching operation in the selector of the rewritten node. The
19628         entity will be used in the expansion of dispatching selects.
19629         (Analyze_One_Call): Improve location of the error message associated
19630         with interface.
19631         (Analyze_Selected_Component): No need to resolve prefix when it is a
19632         function call, resolution is done when parent node is resolved, as
19633         usual.
19634         (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
19635         when attempting to resolve a call transformed from its object notation.
19636         (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
19637         of the argument list for each interpretation of the operation.
19638         (Try_Object_Operation): The designated type of an access parameter may
19639         be an incomplete type obtained through a limited_with clause, in which
19640         case the primitive operations of the type are retrieved from its full
19641         view.
19642         (Analyze_Call): If this is an indirect call, and the return type of the
19643         access_to_subprogram is incomplete, use its full view if available.
19644
19645 2005-09-01  Javier Miranda  <miranda@adacore.com>
19646             Gary Dismukes  <dismukes@adacore.com>
19647
19648         * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
19649         access types the null-exclusion and access-to-constant attributes must
19650         also match.
19651         (Analyze_Return_Statement): When the result type is an anonymous access
19652         type, apply a conversion of the return expression to the access type
19653         to ensure that appropriate accessibility checks are performed.
19654         (Analyze_Return_Type): For the case of an anonymous access result type,
19655         generate the Itype and set Is_Local_Anonymous_Access on the type.
19656         Add ??? placeholder for check to disallow returning a limited object
19657         in Ada 2005 unless it's an aggregate or a result of a function call.
19658         Change calls from Subtype_Mark to Result_Definition.
19659         (Analyze_Subprogram_Body): Change formal Subtype_Mark to
19660         Result_Definition in call to Make_Function_Specification.
19661         (Build_Body_To_Inline): Change Set_Subtype_Mark to
19662         Set_Result_Definition.
19663         (Make_Inequality_Operator): Change formal Subtype_Mark to
19664         Result_Definition in call to Make_Function_Specification.
19665         (Process_Formals): Create the new null-excluding itype if required.
19666         (New_Overloaded_Entity): For an entity overriding an interface primitive
19667         check if the entity also covers other abstract subprograms in the same
19668         scope. This is required to handle the general case, that is, overriding
19669         other interface primitives and overriding abstract subprograms inherited
19670         from some abstract ancestor type.
19671         (New_Overloaded_Entity): For an overriding entity that comes from
19672         source, note the operation that it overrides.
19673         (Check_Conformance, Type_Conformant): Addition of one new formal
19674         to skip controlling formals in the analysis. This is used to
19675         handle overloading of abstract interfaces.
19676         (Base_Types_Match): Add missing case for types imported from
19677         limited-with clauses
19678         (New_Overloaded_Entity): Add barrier to protect the use of
19679         the "alias" attribute.
19680
19681 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19682
19683         * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
19684         verify that the procedure and the entry are mode conformant.
19685         (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
19686         as a different operator, which is often a cut-and-paste error.
19687
19688 2005-09-01  Javier Miranda  <miranda@adacore.com>
19689             Ed Schonberg  <schonberg@adacore.com>
19690
19691         * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
19692         used in controlling parameters exclude null because it is necessary to
19693         read the tag to dispatch, and null has no tag.
19694         (Override_Dispatching_Operation): If the previous operation is inherited
19695         from an interface, it becomes hidden  and does not participate in later
19696         name resolution.
19697
19698 2005-09-01  Javier Miranda  <miranda@adacore.com>
19699             Ed Schonberg  <schonberg@adacore.com>
19700             Gary Dismukes  <dismukes@adacore.com>
19701
19702         * sem_res.adb (Resolve_Membership_Op): In case of the membership test
19703         "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
19704         the expander will generate the corresponding run-time check to evaluate
19705         the expression.
19706         (Resolve_Call): Check for legal type of procedure name or prefix that
19707         appears as a trigger in a triggering alternative.
19708         (Valid_Conversion): If expression is ambiguous and the context involves
19709         an extension of System, remove System.Address interpretations.
19710         (Resolve_Qualified_Expression): Reject the case of a specific-type
19711         qualification applied to a class-wide argument. Enhance comment
19712         to explain checking of Original_Node.
19713         (Resolve_Type_Conversion): The location of the error message was not
19714         general enough to handle the general case and hence it has been removed.
19715         In addition, this patch improves the text of the message.
19716         (Resolve_Type_Conversion): Add missing support for access to interface
19717         types.
19718         (Resolve_Type_Conversion): If the target is a class-wide interface type,
19719         do not expand if the expression is the actual in a call, because proper
19720         expansion will take place when the call itself is expanded.
19721         (Resolve_Allocator): If the context is an unchecked conversion, the
19722         allocator inherits its storage pool, if any, from the target type of
19723         the conversion.
19724
19725 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19726             Javier Miranda  <miranda@adacore.com>
19727
19728         * sem_type.adb (Add_One_Interp): If a candidate operation is an
19729         inherited interface operation that has an implementation, use the
19730         implementation to avoid spurious ambiguities.
19731         (Interface_Present_In_Ancestor): In case of concurrent types we can't
19732         use the Corresponding_Record_Typ attribute to look for the interface
19733         because it is set by the expander (and hence it is not always
19734         available). For this reason we traverse the list of interfaces
19735         (available in the parent of the concurrent type).
19736         (Interface_Present_In_Ancestor): Handle entities from the limited view
19737
19738 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19739
19740         * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
19741         from the list of required components.
19742         (Is_Controlling_Limited_Procedure): Determine whether an entity is a
19743         primitive procedure of a limited interface with a controlling first
19744         parameter.
19745         (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
19746         of an entry.
19747         (Safe_To_Capture_Value): A value (such as non_null) is not safe to
19748         capture if it is generated in the second operand of a short-circuit
19749         operation.
19750         Do not capture values for variables with address clauses.
19751         (Is_Object_Reference): Treat a function call as an object reference only
19752         if its type is not Standard_Void_Type.
19753
19754 2005-09-01  Ed Schonberg  <schonberg@adacore.com>
19755
19756         * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
19757         to a variable that is statically known to be constant.
19758
19759 2005-09-01  Geert Bosch  <bosch@adacore.com>
19760             Robert Dewar  <dewar@adacore.com>
19761
19762         * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
19763         (VAXGF_Safe_First): Idem.
19764
19765 2005-09-01  Robert Dewar  <dewar@adacore.com>
19766             Arnaud Charlet  <charlet@adacore.com>
19767
19768         * g-dirope.ads: Minor reformatting
19769         Document that bounds of result of Base_Name match the input index
19770         positions.
19771         Add documentation on environment variable syntax for Expand_Path
19772
19773         * gnat_ugn.texi: Update documentation to include mention of -m switches
19774         Document new treatment of wide characters in max line length
19775         style check.
19776         Remove -gnatL/-gnatZ switches, no longer used.
19777         Add note on pragmas Assertion_Policy and Debug_Policy in discussion
19778         of -gnata switch.
19779
19780         * gnat_rm.texi: Add doc for two argument form of pragma
19781         Float_Representation.
19782         Add documentation for pragma No_Strict_Aliasing
19783         Add note that explicit component clause overrides pragma Pack.
19784         Add documentation of pragma Debug_Policy
19785
19786 2005-09-01  Matthew Heaney  <heaney@adacore.com>
19787
19788         * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
19789         a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
19790         a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
19791         a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
19792         draft (Draft 13, August 2005) of Ada Amendment 1.
19793
19794 2005-09-01  Arnaud Charlet  <charlet@adacore.com>
19795
19796         * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
19797         Note that the platform-specific version of g-soccon.ads for VMS is now
19798         named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
19799         really is a package spec).
19800         Replace s-taspri-linux.ads by s-taspri-posix.ads
19801         Remove references to s-mastop-x86.adb
19802
19803         * system-vxworks-xscale.ads: Removed, no longer used.
19804         * s-vxwork-xscale.ads: Removed, no longer used.
19805
19806 2005-09-01  Robert Dewar  <dewar@adacore.com>
19807
19808         * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
19809         g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
19810         g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
19811         exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
19812         g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
19813         g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
19814         g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
19815         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
19816         g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
19817         g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
19818         sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
19819         a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
19820         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
19821         a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
19822         a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
19823         a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
19824         g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
19825         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
19826         g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
19827         i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
19828         a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
19829
19830 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19831
19832         PR ada/23187
19833         * adaint.c
19834         (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
19835
19836 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19837             Doug Rupp  <rupp@adacore.com>
19838
19839         * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
19840         when needed.
19841         (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
19842         this code in the GNAT run-time.
19843
19844         * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
19845
19846         PR ada/21053
19847         * init.c (__gnat_error_handler [many]): Mark "msg" as const
19848         (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
19849
19850         (__gnat_inside_elab_final_code): Moved here from
19851         Standard_Library and only defined for the compiler.
19852         __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
19853         (__gnat_inum_to_ivec): Do not define this function on VxWorks when
19854         using RTPs because directly vectored Interrupt routines are not
19855         supported on this configuration.
19856         (getpid): Do not redefine this function on VxWorks when using RTPs
19857         because this primitive is well supported by the RTP libraries.
19858         (copy_msg): Correct the code that checks for buffer overflow.
19859         Discovered during code reading.
19860
19861 2005-08-29  Olivier Hainque  <hainque@adacore.com>
19862
19863         * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
19864         a library level mutable variable with an initializer, tell
19865         build_allocator to ignore the initializer's size. It may not be large
19866         enough for all the values that might be assigned to the variable later
19867         on.
19868
19869 2005-08-29  Arnaud Charlet  <charlet@adacore.com>
19870             Eric Botcazou  <ebotcazou@adacore.com>
19871
19872         * trans.c: Protect < in error msg with quote
19873         Replace GCC_ZCX by Back_End_Exceptions.
19874         (addressable_p) <COMPONENT_REF>: Also return 1 if the field
19875         has been sufficiently aligned in the record.
19876
19877 2005-08-15  James E. Wilson  <wilson@specifix.com>
19878
19879         * system-linux-alpha.ads: Change ia64 to alpha.
19880
19881 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
19882
19883         * decl.c, utils.c: Fix comment typos.
19884
19885 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
19886
19887         * decl.c, init.c, initialize.c: Fix comment typos.
19888
19889 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
19890
19891         Make CONSTRUCTOR use VEC to store initializers.
19892         * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
19893         CONSTRUCTOR_ELTS.
19894         * trans.c (extract_values): Likewise.
19895         * utils.c (convert, remove_conversions): Likewise.
19896         * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
19897         gnat_build_constructor): Likewise.
19898
19899 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
19900
19901         * decl.c (components_to_record): Use DECL_FCONTEXT instead of
19902         DECL_SECTION_NAME.
19903         (compare_field_bitpos): Likewise.
19904
19905 2005-07-09  Andrew Pinski  <pinskia@physics.uc.edu>
19906
19907         * utils.c (create_var_decl): Only set DECL_COMMON on
19908         VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
19909         VAR_OR_FUNCTION_DECL_P.
19910
19911 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
19912
19913         * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
19914         removed.
19915
19916 2005-07-07  Pascal Obry  <obry@adacore.com>
19917
19918         * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
19919         returned type on Windows.
19920
19921         * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
19922         routine.
19923
19924         * g-socket.adb (Inet_Addr): Check for empty Image and raises an
19925         exception in this case.
19926         Simplify the code as "Image (Image'Range)" = "Image".
19927
19928 2005-07-07  Vincent Celier  <celier@adacore.com>
19929
19930         * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
19931         the destructor/constructor attributes for <lib>final/<lib>init.
19932
19933         * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
19934
19935 2005-07-07  Eric Botcazou  <ebotcazou@adacore.com>
19936
19937         * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
19938         type if the parameter is not passed by copy but reference by default.
19939
19940 2005-07-07  Javier Miranda  <miranda@adacore.com>
19941
19942         * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
19943         Reimplementation of the support for abstract interface types in order
19944         to leave the code more clear and easy to maintain.
19945
19946         * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
19947         abstract interface types in order to leave the code clearer and easier
19948         to maintain.
19949
19950         * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
19951         is now implemented by the new subprogram Fill_Secondary_DT_Entry.
19952         (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
19953         appropriate entry of the secondary dispatch table.
19954         (Make_DT): Add code to inherit the secondary dispatch tables of
19955         the ancestors.
19956
19957         * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
19958         implementing both functionalities by means of a common routine, each
19959         routine has its own code.
19960
19961 2005-07-07  Javier Miranda  <miranda@adacore.com>
19962
19963         * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
19964
19965         * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
19966         types:
19967         --
19968           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19969         --
19970
19971         * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
19972         use of tag incomplete types.
19973
19974         * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
19975         give support to tagged incomplete types.
19976
19977         * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
19978         expression is a discriminant reference and its type is private, as can
19979         happen within a stream operation for a mutable record, use the full
19980         view of the type to resolve the case alternatives.
19981         (Analyze_Assignment): Check wrong dereference of incomplete types.
19982
19983         * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
19984         types.
19985
19986         * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
19987         incomplete types.
19988
19989         * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
19990         N_Incomplete_Type_Declaration nodes.
19991
19992         * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
19993         Tag_Present to give support to tagged incomplete types:
19994         --
19995           type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
19996         --
19997
19998 2005-07-07  Olivier Hainque  <hainque@adacore.com>
19999
20000         PR ada/22301
20001         * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
20002         definitions for the Unwind wrappers in the compiler case.
20003
20004 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
20005             Javier Miranda  <miranda@adacore.com>
20006
20007         * par-load.adb (Load): If a child unit is loaded through a limited_with
20008         clause, each parent must be loaded as a limited unit as well.
20009
20010         * sem_ch10.adb (Previous_Withed_Unit): Better name for
20011         Check_Withed_Unit. Return true if there is a previous with_clause for
20012         this unit, whether limited or not.
20013         (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
20014         the current unit.
20015         (Is_Visible_Through_Renamings): New local subprogram of install_limited
20016         _withed_unit that checks if some package installed through normal with
20017         clauses has a renaming declaration of package whose limited-view is
20018         ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
20019         of the current Draft document for Ada 2005.
20020         (Analyze_Context): Complete the list of compilation units that
20021         are allowed to contain limited-with clauses. It also contains
20022         checks that were previously done by Install_Limited_Context_Clauses.
20023         This makes the code more clear and easy to maintain.
20024         (Expand_Limited_With_Clause) It is now a local subprogram of
20025         Install_Limited_Context_Clauses, and contains the code that adds
20026         the implicit limited-with clauses for parents of child units.
20027         This functionality was prevously done by Analyze_Context.
20028
20029         * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
20030         incomplete type.
20031
20032         * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
20033         been erroneously named in a limited-with clause of its own context.
20034         In this case the error has been previously notified by Analyze_Context.
20035
20036 2005-07-07  Ed Schonberg  <schonberg@adacore.com>
20037
20038         * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
20039         generic package that contains local declarations with the same name.
20040         (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
20041
20042 2005-07-07  Bernard Banner  <banner@adacore.com>
20043
20044         * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
20045         ia64 platform only on platforms that you the GCC unwind library
20046         rather than the system unwind library.
20047
20048 2005-07-07  Thomas Quinot  <quinot@adacore.com>
20049
20050         * expect.c: Minor reformatting
20051
20052 2005-07-07  Sergey Rybin  <rybin@adacore.com>
20053
20054         * vms_data.ads: Add VMS qualifiers for new gnatpp switch
20055         --no-separate-is
20056
20057         * gnat_ugn.texi: Add description for new gnatpp option
20058         (--no-separate-is)
20059
20060 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20061
20062         * g-expect-vms.adb, g-expect.ads, g-expect.adb
20063         (Get_Command_Output): New subprogram to launch a process and get its
20064         standard output as a string.
20065
20066 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20067             Olivier Hainque  <hainque@adacore.com>
20068
20069         * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
20070         fetch a code-range descriptor associated with the machine state. On
20071         failure set the machine state's PC to 0; on success, pass the
20072         descriptor to exc_virtual_unwind.
20073
20074         * init.c (Tru64 section): New function __gnat_set_code_loc.
20075
20076 2005-07-04  Vincent Celier  <celier@adacore.com>
20077
20078         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20079         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20080         mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
20081         Remove all auto-initialization code, as this is now done through the
20082         constructor mechanism.
20083
20084         * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
20085         __gnat_sals_init_using_constructors): New functions.
20086
20087         * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
20088         Linker_Constructor and Linker_Destructor when switch -a is used.
20089
20090         * bindusg.adb: Add line for new switch -a
20091
20092         * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
20093         (Gnatbind): When switch -a is used, check if it is allowed
20094
20095         * switch-b.adb (Scan_Binder_Switches): Process new switch -a
20096
20097 2005-07-04  Joel Brobecker  <brobecker@adacore.com>
20098
20099         * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
20100         This prevents us from hitting a limitation during the debug info
20101         generation when using stabs.
20102         (Prims_Ptr): Likewise.
20103
20104 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
20105             Ed Schonberg  <schonberg@adacore.com>
20106             Javier Miranda  <miranda@adacore.com>
20107
20108         * checks.adb (Null_Exclusion_Static_Checks): In the case of
20109         N_Object_Declaration, only perform the checks if the Object_Definition
20110         is not an Access_Definition.
20111
20112         * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
20113         where the parent of an the access definition is an N_Object_Declaration
20114         when determining the Associated_Node_For_Itype and scope of an
20115         anonymous access-to-subprogram type.
20116
20117         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
20118         Corresponding_Spec on the body created for a null procedure. Add ???
20119         comment. Remove New_Copy_Tree call on body argument to
20120         Set_Body_To_Inline.
20121
20122         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
20123         discriminants, use the type of the actual as well, because the
20124         discriminants may be read by the called subprogram.
20125
20126         * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
20127         access type we do not need to handle non-limited views.
20128         (Build_Derived_Record_Type): Additional check to check that in case of
20129         private types, interfaces are only allowed in private extensions.
20130
20131 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20132
20133         * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
20134         <Pragma_Linker_Destructor>: Likewise.
20135
20136         * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
20137         Pragma_Linker_Destructor.
20138
20139         * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
20140         ATTR_LINK_DESTRUCTOR.
20141         (static_ctors, static_dtors): New variables.
20142
20143         * misc.c (gnat_expand_body): Output current function as constructor
20144         and destructor if requested.
20145
20146         * par-prag.adb: Add processing for pragma Linker_Constructor and
20147         Linker_Destructor.
20148
20149         * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
20150         extracted from Check_Interrupt_Or_Attach_Handler.
20151         (Check_Interrupt_Or_Attach_Handler): Invoke it.
20152         Implement pragma Linker_Constructor and Linker_Destructor with the
20153         help of Find_Unique_Parameterless_Procedure.
20154         Replace Name_Alias with Name_Target for pragma Linker_Alias.
20155
20156         * snames.h, snames.ads, snames.adb:
20157         Add Name_Linker_Constructor and Name_Linker_Destructor.
20158         Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
20159         * snames.adb: Remove Name_Alias.
20160
20161         * trans.c: Include cgraph.h.
20162         (build_global_cdtor): New function.
20163         (Compilation_Unit_to_gnu): Build global constructor and destructor if
20164         needed.
20165         (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
20166         of objects too.
20167         (addressable_p) <COMPONENT_REF>: Unconditionally test
20168         DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
20169
20170         * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
20171         variable if it is external.
20172
20173         (static_ctors, static_dtors): New global variables.
20174         (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
20175         <ATTR_LINK_DESTRUCTOR>: Likewise.
20176         (end_subprog_body): Chain function as constructor and destructor
20177         if requested.
20178
20179         * exp_util.adb (Force_Evaluation): Unconditionally invoke
20180         Remove_Side_Effects with Variable_Ref set to true.
20181         (Remove_Side_Effects): Handle scalar types first. Use a renaming
20182         for non-scalar types even if Variable_Ref is true and for class-wide
20183         expressions.
20184
20185 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20186
20187         * exp_attr.adb (Mod): Evaluate condition expression with checks off,
20188         to prevent spurious warnings.
20189
20190 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20191
20192         * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
20193         Itypes. Itypes are really unexpected there.
20194         (Build_TypeCode_Function): Generalise special processing for Itypes to
20195         handle the case of numeric implicit base types as well as enumerated
20196         ones.
20197
20198 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20199
20200         * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
20201         controlled, indicate the expected type of the dereference that is
20202         created for the call to Deep_Finalize, to prevent spurious errors when
20203         the designated type is private and completed with a derivation from
20204         another private type.
20205
20206 2005-07-04  Vincent Celier  <celier@adacore.com>
20207
20208         * make.adb (Change_To_Object_Directory): When unable to change the
20209         current dir to the object directory, output the full path of the
20210         directory.
20211
20212 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20213
20214         * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
20215
20216         * indepsw-linux.adb: Replace by...
20217
20218         * indepsw-gnu.adb: ...this new file
20219
20220 2005-07-04  Vincent Celier  <celier@adacore.com>
20221
20222         * mlib-prj.adb (Auto_Initialize): New constant String
20223         (SALs_Use_Constructors): New Boolean function
20224         (Build_Library): Call gnatbind with Auto_Initialize switch when
20225         SALs_Use_Constructors returns True.
20226
20227         * mlib-tgt.ads: Minor reformatting
20228
20229         * mlib-utl.ads: Minor reformatting
20230
20231         * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
20232
20233 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20234
20235         * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
20236         single protected declarations can have an interface list.
20237         (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
20238         with seriously malformed entry declarations, and lead to compilation
20239         abandoned messages.
20240
20241 2005-07-04  Javier Miranda  <miranda@adacore.com>
20242
20243         * par-load.adb: Load the context items in two rounds.
20244
20245 2005-07-04  Robert Dewar  <dewar@adacore.com>
20246
20247         * scng.adb: Do not consider Mod used as an attribute to be a keyword
20248
20249 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20250             Javier Miranda  <miranda@adacore.com>
20251
20252         * sem_ch10.adb (Build_Limited_Views): A type declared with a private
20253         type extension needs a limited view.
20254         Remove previous restriction on private types available through the
20255         limited-view (only tagged private types were previously allowed).
20256         (Install_Withed_Unit): In the code that implements the
20257         legality rule given in AI-377, exclude a child unit with the name
20258         Standard, because it is a homonym of the Standard environment package.
20259
20260 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20261
20262         * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
20263         overloaded function call, carry interpretations from the original tree
20264         to the copy.
20265
20266 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20267
20268         * sem_ch6.adb (Conforming_Types): If the types are anonymous access
20269         types check whether some designated type is a limited view, and use
20270         the non-limited view if available.
20271
20272 2005-07-04  Gary Dismukes  <dismukes@adacore.com>
20273
20274         * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
20275         constraint of full view of a private view T1 if present, when T2 is a
20276         discriminated full view.
20277
20278 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20279
20280         * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
20281         actual that is a view conversion of a bit packed array reference.
20282
20283 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20284
20285         * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
20286         present before checking whether an interface type covers a synchronized
20287         type.
20288
20289 2005-07-04  Ed Schonberg  <schonberg@adacore.com>
20290
20291         * sem_util.adb (Is_Object_Reference): An indexed or selected component
20292         whose prefix is an implicit dereference is an object reference. Removes
20293         spurious errors when compiling with -gnatc.
20294
20295 2005-07-04  Robert Dewar  <dewar@adacore.com>
20296
20297         PR ada/22039
20298         * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
20299
20300 2005-07-04  Matthew Gingell  <gingell@adacore.com>
20301
20302         * tracebak.c: Enable tracebacks on ia64 platforms
20303
20304 2005-07-04  Vincent Celier  <celier@adacore.com>
20305
20306         * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
20307         the GNAT BIND command, as gnatbind accepts multiples ALI files with
20308         the -L or -n switches.
20309
20310 2005-07-04  Vincent Celier  <celier@adacore.com>
20311
20312         * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
20313         correctly computed and the main project data is not modified while
20314         doing so.
20315         (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
20316         (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
20317         c++linker as this does not work on some platforms.
20318
20319 2005-07-04  Matthew Heaney  <heaney@adacore.com>
20320
20321         * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
20322         was changed.
20323         * a-coinve.adb: Perform constraint checks explicitly.
20324
20325 2005-07-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20326             Thomas Quinot  <quinot@adacore.com>
20327
20328         * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
20329         new target gen-soccon.
20330
20331 2005-07-04  Robert Dewar  <dewar@adacore.com>
20332
20333         * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
20334
20335 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20336
20337         * g-socket.ads (Check_Selector): Minor rewording of comment.
20338
20339 2005-07-04  Vincent Celier  <celier@adacore.com>
20340
20341         * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
20342
20343 2005-07-04  Thomas Quinot  <quinot@adacore.com>
20344
20345         * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
20346
20347 2005-07-04  Sergey Rybin  <rybin@adacore.com>
20348
20349         * gnat_ugn.texi: Add description of --eol gnatpp option
20350
20351 2005-07-04  Eric Botcazou  <ebotcazou@adacore.com>
20352             Thomas Quinot  <quinot@adacore.com>
20353
20354         * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
20355         if the user wants all calls of a subprogram to be flagged,
20356         independently of whether they are made from within the same unit or
20357         another unit.
20358         Mention restriction for pragma Linker_Alias on some platforms.
20359         Document pragma Linker_Constructor and Linker_Destructor.
20360         Rewrite documentation of Weak_External, Linker_Section and
20361         Linker_Alias pragmas.
20362
20363 2005-07-04  Arnaud Charlet  <charlet@adacore.com>
20364
20365         * s-stausa.ads, s-stausa.adb: New files.
20366
20367 2005-06-30  Kelley Cook
20368
20369         * all files:  Update FSF address in copyright headers.
20370         * gen-soccon.co (main): Output new FSF address in generated files.
20371
20372 2005-06-28  Paul Brook  <paul@codesourcery.com>
20373
20374         * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
20375
20376 2005-06-14  Olivier Hainque  <hainque@adacore.com>
20377             Eric Botcazou  <ebotcazou@adacore.com>
20378
20379         * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
20380         exc_unwind, now that we are generating proper .debug_frame output for
20381         that target.
20382
20383         * tracebak.c: Remove the mips-irix section, as we are now using the
20384         s-mastop based unwinder again.
20385         Under SPARC/Solaris, take into account the stack bias to compute the
20386         frame offset.  The stack bias is 0 for the V8 ABI and 2047 for the V9
20387         ABI.
20388
20389 2005-06-14  Doug Rupp  <rupp@adacore.com>
20390
20391         * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
20392
20393         * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
20394
20395 2005-06-14  Pascal Obry  <obry@adacore.com>
20396
20397         * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
20398         a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
20399         a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
20400         package name).
20401
20402         * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
20403         a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
20404         a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
20405         a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
20406         a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
20407         a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
20408         a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
20409         s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
20410         s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
20411         s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
20412         s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
20413         s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
20414         s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
20415         s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
20416         s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
20417         s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
20418         s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
20419         s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
20420         s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
20421         s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
20422         s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
20423         s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
20424         s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
20425         s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
20426         s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
20427         s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
20428         s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
20429         s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
20430         s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
20431         s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
20432         a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
20433         a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
20434         a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
20435         a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
20436         a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
20437         a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
20438         a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
20439         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
20440         a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
20441         a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
20442         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
20443         a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
20444         a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
20445         a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
20446         a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
20447         a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
20448         a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
20449         a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
20450         a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
20451         a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
20452         a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
20453         a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
20454         a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
20455         a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
20456         a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
20457         a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
20458         a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
20459         dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
20460         g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
20461         g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
20462         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
20463         g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
20464         g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
20465         gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
20466         g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
20467         i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
20468         s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
20469         s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
20470         s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
20471         s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
20472         s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
20473         s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
20474         s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
20475         s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
20476         s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
20477         s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
20478         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
20479         s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
20480         s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
20481         s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
20482         s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
20483         s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
20484         s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
20485         s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
20486         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
20487         s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
20488         s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
20489         s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
20490         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
20491         s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
20492         s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
20493         s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
20494         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
20495         s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
20496         s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
20497         s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
20498         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
20499         s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
20500         s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
20501         s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
20502         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
20503         s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
20504         s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
20505         s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
20506         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
20507         s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
20508         s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
20509         s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
20510         s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
20511         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
20512         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
20513         s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
20514         s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
20515         s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
20516         s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
20517         s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
20518         s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
20519         s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
20520         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
20521         s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
20522         s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
20523         s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
20524         s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
20525         a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
20526         a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
20527         a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
20528         a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
20529         a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
20530         a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
20531         a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
20532         a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
20533         a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
20534         "GNU Ada" to GNAT, use proper casing for RUN-TIME.
20535
20536 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
20537             Arnaud Charlet  <charlet@adacore.com>
20538
20539         * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
20540         longer protected objects. They have been replaced by lower-level
20541         suspension objects made up by a mutex and a condition variable (or
20542         their equivalent given a particular OS) plus some internal data to
20543         reflect the state of the suspension object.
20544         (Initialize, Finalize): Add this initialization procedure for
20545         Suspension_Object, which is a controlled type.
20546         (Finalize): Add the finalization procedure for Suspension_Object,
20547         which is a controlled type.
20548
20549         * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
20550         Ada.Synchronous_Task_Control because there is no longer a need for a
20551         VxWorks specific version of this package. Target dependencies
20552         has been moved to System.Task_Primitives.Operations.
20553
20554         * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
20555         longer needed.
20556         (InitializeCriticalSection, EnterCriticalSection,
20557         LeaveCriticalSection, DeleteCriticalSection): Replace the type
20558         pCriticalSection by an anonymous access type so that we avoid problems
20559         of accessibility to local objects.
20560
20561         * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
20562         s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
20563         s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
20564         s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
20565         s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
20566         set the environment task mask here.
20567         (Current_State): Add this function that returns the state of the
20568         suspension object.
20569         (Set_False): Add this procedure that sets the state of the suspension
20570         object to False.
20571         (Set_True): Add this procedure that sets the state of the suspension
20572         object to True, releasing the task that was suspended, if any.
20573         (Suspend_Until_True): Add this procedure that blocks the calling task
20574         until the state of the object is True. Program_Error is raised if
20575         another task is already waiting on that suspension object.
20576         (Initialize): Add this procedure for initializing the suspension
20577         object. It initializes the mutex and the condition variable which are
20578         used for synchronization and queuing, and it sets the internal state
20579         to False.
20580         (Finalize): Add this procedure for finalizing the suspension object,
20581         destroying the mutex and the condition variable.
20582
20583         * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
20584         s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
20585         s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
20586         s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
20587         which provides a low-level abstraction (using operating system
20588         primitives) for Ada.Synchronous_Task_Control.
20589         This object is made up by a mutex (for ensuring mutual exclusion), a
20590         condition variable (for queuing threads until the condition is
20591         signaled), a Boolean (State) indicating whether the object is open,
20592         and a Boolean (Waiting) reflecting whether there is a task already
20593         suspended on this object.
20594
20595         * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
20596         s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
20597         s-intman-vms.ads, s-intman-mingw.adb,
20598         (Initialize_Interrupts): Removed, no longer used.
20599
20600         * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
20601         (Setup_Interrupt_Mask): New procedure.
20602
20603         * s-intman-vxworks.ads, s-intman-vxworks.adb:  Update comments.
20604
20605         * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
20606
20607         * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
20608         this is no longer done in the body of s-taprop
20609         (Server_Task): Explicitely test for Pending_Action in case
20610         System.Parameters.No_Abort is True.
20611
20612         * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
20613         is no longer done in the body of s-taprop
20614
20615 2005-06-14  Robert Dewar  <dewar@adacore.com>
20616
20617         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
20618         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
20619         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
20620         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
20621         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
20622         system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
20623         system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
20624         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
20625         system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
20626         system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
20627         system-linux-hppa.ads, system-vms_64.ads,
20628         system-vxworks-alpha.ads: Minor comment update for
20629         AI-362 (unit is Pure).
20630
20631         * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
20632         Add pragma Pure_05 for AI-362
20633         Make remaining conversion functions obsolescent in Ada 95
20634
20635         * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20636         Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
20637         Add entries for a-wichun and a-zchuni
20638         Add a-widcha a-zchara for AI-395
20639         Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
20640
20641         * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
20642         Add entries for a-wichun.o and a-zchuni.o
20643         Entries for a-widcha.o and a-zchara.o
20644         Add entry for a-chacon.o
20645
20646         * a-ztenau.adb: Add with of Ada.Characters.Conversions
20647
20648         * a-chacon.ads, a-chacon.adb: New files.
20649
20650         * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
20651         categorization violations.
20652
20653         * a-strmap.ads: Add pragma Pure_05 for AI-362
20654         * a-strmap.ads: Add note on implicit categorization for AI-362
20655
20656         * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
20657
20658         * par-prag.adb: Dummy entry for pragma Persistent_BSS
20659         Set Ada_Version_Explicit, for implementation of AI-362
20660         Add processing for pragma Pure_05 and Preelaborate_05
20661         Add entry for Assertion_Policy pragma
20662
20663         * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
20664         when needed for proper processing of categorization stuff
20665
20666         * sem_cat.adb:
20667         For several cases, make errors in preealborate units warnings,
20668         instead of errors, if GNAT_Mode is set. For AI-362.
20669
20670         * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
20671         preelaborate unit is now warning if in GNAT mode
20672
20673         * s-stoele.ads: Document AI-362 for pragma preelaborate
20674
20675 2005-06-14  Doug Rupp  <rupp@adacore.com>
20676
20677         * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
20678         s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
20679         Default_Exception_Msg_Max_Length: new parameter.
20680
20681         * a-except.ads: (Exception_Msg_Max_Length): Set to
20682         System.Parameters.Default_Exception_Msg_Max_Length
20683         Add pragma Preelaborate_05 for AI-362
20684         Add warnings off to allow categorization violations for AI-362
20685
20686 2005-06-14  Vincent Celier  <celier@adacore.com>
20687
20688         * gnatsym.adb: Adapt to modification of package Symbols: procedure
20689         Process is now in package Processing.
20690
20691         * symbols.ads, symbols.adb:
20692         (Processing): New package, containing procedure Process
20693
20694         * symbols-vms-alpha.adb:
20695         Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
20696
20697         * symbols-vms.adb, symbols-processing-vms-alpha.adb,
20698         symbols-processing-vms-ia64.adb: New files.
20699
20700 2005-06-14  Pascal Obry  <obry@adacore.com>
20701
20702         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
20703         implementation. This new version generates the proper DllMain routine
20704         to initialize the SAL. The DllMain is generated in Ada and compiled
20705         before being added as option to the library build command.
20706
20707 2005-06-14  Doug Rupp  <rupp@adacore.com>
20708             Pascal Obry  <obry@adacore.com>
20709
20710         * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
20711         call to decc$translate_vms.
20712         (__gnat_locate_regular_file): Check if the path_val contains quotes. We
20713         need to remove those quotes before catenating the filename.
20714         (__gnat_locate_exec_on_path): improvements to the Win32 section:
20715         * avoid allocating the memory twice for better efficiency;
20716         * allocate 32K buffer for environment expansion as suggested by MSDN;
20717         * prepend ".;" to the path so that current directory is searched too.
20718
20719 2005-06-14  Robert Dewar  <dewar@adacore.com>
20720
20721         * a-except.adb (Exception_Identity): return Null_Id for null occurrence
20722         instead of raising CE (AI-241)
20723         Add warnings off to allow categorization violations for AI-362
20724
20725 2005-06-14  Robert Dewar  <dewar@adacore.com>
20726
20727         * ali-util.adb, gnatbind.adb: Remove references to
20728         Force_RM_Elaboration_Order.
20729
20730         * switch-b.adb: Remove recognition of -f switch
20731
20732 2005-06-14  Pascal Obry  <obry@adacore.com>
20733
20734         * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
20735         implementation which is slightly more efficient.
20736
20737 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
20738             Javier Miranda  <miranda@adacore.com>
20739             Ed Schonberg  <schonberg@adacore.com>
20740             Hristian Kirtchev  <kirtchev@adacore.com>
20741
20742         * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
20743         allocator's designated type is a class-wide type, and compiling for
20744         Ada 2005, emit a run-time check that the accessibility level of the
20745         type given in the allocator's expression is not deeper than the level
20746         of the allocator's access type.
20747
20748         (Tagged_Membership): Modified to gives support to abstract interface
20749         types.
20750
20751         * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
20752         Access_Level.
20753         (Descendant_Tag): New predefined function
20754         (Is_Descendant_At_Same_Level): New predefined function
20755         (Get_Access_Level): New private function
20756         (Set_Access_Level): New private procedure
20757         (IW_Membership): New function. Given the tag of an object and the tag
20758         associated with an interface, evaluate if the object implements the
20759         interface.
20760         (Register_Interface_Tag): New procedure used to initialize the table of
20761         interfaces used by the IW_Membership function.
20762         (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
20763         of the dispatch table.
20764         (Inherit_TSD): Modified to copy the table of ancestor tags plus the
20765         table of interfaces of the parent.
20766         (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
20767         (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
20768         (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
20769         and raise Tag_Error if the passed tag equalis No_Tag, to conform with
20770         Ada 2005 semantics for the new predefined function.
20771
20772         * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
20773         call to Descendant_Tag rather than Internal_Tag.
20774         (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
20775         the accessibility level of the attribute's Item parameter is not deeper
20776         than the level of the attribute's prefix type. Tag_Error is raised if
20777         the check fails. The check is only emitted for Ada_05.
20778         (Find_Stream_Subprogram): If a TSS exists on the type itself for the
20779         requested stream attribute, use it.
20780         (Expand_N_Attribute_Reference): If the designated type is an interface
20781         then rewrite the referenced object as a conversion to force the
20782         displacement of the pointer to the secondary dispatch table.
20783         (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
20784         is a dereference of an object with a constrained partial view.
20785
20786         * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
20787         type is a class-wide type, emit a run-time check that the accessibility
20788         level of the returned object is not deeper than the level of the
20789         function's master (only when compiling for Ada 2005).
20790
20791         * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
20792         Action_Nb_Arg): Add entries for new Get_Access_Level and
20793         Set_Access_Level routines in these tables.
20794         (Make_DT): Generate a call to set the accessibility level of the
20795         tagged type in its TSD.
20796         (Make_DT): Code cleanup. The functionality of generating all the
20797         secondary dispatch tables has been moved to freeze_record_type.
20798         (Make_Abstract_Interface_DT): Minor code cleanup.
20799         (Set_All_DT_Position): Code cleanup. As part of the code cleanup
20800         this subprogram implements a new algorithm that provides the
20801         same functionality and it is more clear in case of primitives
20802         associated with abstract interfaces.
20803         (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
20804         clean up, the functionality of this subprogram is now provided
20805         by Set_All_DT_Position.
20806         (Write_DT): New subprogram: a debugging procedure designed to be called
20807         within gdb to display the dispatch tables associated with a tagged
20808         type.
20809         (Collect_All_Interfaces): New subprogram that collects the whole list
20810         of interfaces that are directly or indirectly implemented by a tagged
20811         type.
20812         (Default_Prim_Op_Position): New subprogram that returns the fixed
20813         position in the dispatch table of the default primitive operations.
20814         (Expand_Interface_Actuals): New subprogram to generate code that
20815         displaces all the actuals corresponding to class-wide interfaces to
20816         reference the interface tag of the actual object.
20817         (Expand_Interface_Conversion): New subprogram. Reference the base of
20818         the object to give access to the interface tag associated with the
20819         secondary dispatch table.
20820         (Expand_Interface_Thunk): New subprogram that generates the code of the
20821         thunk. This is required for compatibility with the C+ ABI.
20822         (Make_Abstract_Interface_DT): New subprogram that generate the
20823         declarations for the secondary dispatch tables associated with an
20824         abstract interface.
20825         (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
20826         attribute for each primitive operation covering interface subprograms
20827         (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
20828         These subprograms were upgraded to give support to abstract interfaces
20829
20830         * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
20831         RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
20832         RE_Set_Access_Level.
20833         (RE_Unit_Table): Add entries for new Ada.Tags operations.
20834         Add support to call the followig new run-time subprograms:
20835         IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
20836
20837         * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
20838         match its full declaration when both have an access definition with
20839         statically matching designated subtypes.
20840         (Analyze_Component_Declaration): Delete commented out code that was
20841         incorrectly setting the scope of an anonymous access component's type.
20842         (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
20843         an access discriminant when the containing type is nonlimited.
20844         (Make_Incomplete_Type_Declaration): Create an incomplete type
20845         declaration for a record type that includes self-referential access
20846         components.
20847         (Check_Anonymous_Access_Types): Before full analysis of a record type
20848         declaration, create anonymous access types for each self-referential
20849         access component.
20850         (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
20851         an access component in this context is a Local_Anonymous_Access, for
20852         proper accessibility checks.
20853         (Access_Definition): Set properly the scope of the anonymous access type
20854         created for a stand-alone access object.
20855         (Find_Type_Of_Object): An object declaration may be given with an access
20856         definition.
20857         (Complete_Subprograms_Derivation): New subprogram used to complete
20858         type derivation of private tagged types implementing interfaces.
20859         In this case some interface primitives may have been overriden
20860         with the partial-view and, instead of re-calculating them, they
20861         are included in the list of primitive operations of the full-view.
20862         (Build_Derived_Record_Type): Modified to give support to private
20863         types implemening interfaces.
20864         (Access_Definition): Reject ALL on anonymous access types.
20865         (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
20866         type derivation to occur at a deeper accessibility level than the
20867         parent type.
20868         For the case of derivation within a generic body however, disallow the
20869         derivation if the derived type has an ancestor that is a formal type
20870         declared in the formal part of an enclosing generic.
20871         (Analyze_Object_Declaration): For protected objects, remove the check
20872         that they cannot contain interrupt handlers if not declared at library
20873         level.
20874         (Add_Interface_Tag_Components): New subprogram to add the tag components
20875         corresponding to all the abstract interface types implemented by a
20876         record type or a derived record type.
20877         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20878         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20879         Process_Full_View, Record_Type_Declaration): Modified to give
20880         support to abstract interface types
20881         (Collect_Interfaces): New subprogram that collects the list of
20882         interfaces that are not already implemented by the ancestors
20883         (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
20884         when partial view has no discriminants and full view has defaults.
20885         (Constrain_Access): Reject a constraint on a general access type
20886         if the discriminants of the designated type have defaults.
20887         (Access_Subprogram_Declaration): Associate the Itype node with the inner
20888         full-type declaration or subprogram spec. This is required to handle
20889         nested anonymous declarations.
20890         (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
20891         Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
20892         Process_Full_View, Record_Type_Declaration): Modified to give
20893         support to abstract interface types
20894         (Derive_Subprograms): Addition of a new formal to indicate if
20895         we are in the case of an abstact-interface derivation
20896         (Find_Type_Of_Subtype_Indic): Moved from the body of the package
20897         to the specification because it is requied to analyze all the
20898         identifiers found in a list of interfaces
20899
20900         * debug.adb: Complete documentation of flag "-gnatdZ"
20901
20902         * exp_ch3.adb: Implement config version of persistent_bss pragma
20903         (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
20904         testing for TSS presence to properly enforce visibility rules.
20905         (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
20906         Make_Abstract_Interfaces_DT to generate the secondary tables
20907         associated with abstract interfaces.
20908         (Build_Init_Procedure): Modified to initialize all the tags
20909         corresponding.
20910         (Component_Needs_Simple_Initialization): Similar to other tags,
20911         interface tags do not need initialization.
20912         (Freeze_Record_Type): Modified to give support to abstract interface
20913         types.
20914         (Expand_N_Object_Declaration): Do not generate an initialization for
20915         a scalar temporary marked as internal.
20916
20917         * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
20918         in-out parameter that is a component in an initialization procedure,
20919         whose constraint might depend on discriminants, and that may be
20920         misaligned because of packing or representation clauses.
20921         (Is_Legal_Copy): New predicate to determine whether a possibly
20922         misaligned in-out actual can actually be passed by copy/return. This
20923         is an error in case the type is by_reference, and a warning if this is
20924         the consequence of a DEC import pragma on the subprogram.
20925         (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
20926         interface types
20927         (Expand_Inlined_Call): Mark temporary generated for the return value as
20928         internal, so that no useless scalar normalization is generated for it.
20929         (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
20930         null procedure can always be inlined.
20931         (Expand_N_Subprogram_Declaration): If this is the declaration of a null
20932         procedure, generate an explicit empty body for it.
20933
20934         * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
20935         Given a type implementing an interface, returns the corresponding
20936         access_disp_table value.
20937         (Find_Interface_Tag): New subprogram. Given a type implementing an
20938         interface, returns the record component containing the tag of the
20939         interface.
20940         (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
20941         previous ones that return the corresponding tag and access_disp_table
20942         entities.
20943         (Is_Predefined_Dispatching_Operation): Determines if a subprogram
20944         is a predefined primitive operation.
20945         (Expand_Subtype_From_Expr): If the expression is a selected component
20946         within an initialization procedure, compute its actual subtype, because
20947         the component may depend on the discriminants of the enclosing record.
20948
20949         * i-cpp.ads, i-cpp.adb:
20950         This package has been left available for compatibility with previous
20951         versions of the frontend. As part of the new layout this is now a
20952         dummy package that uses declarations available at a-tags.ads
20953
20954         * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
20955         "constant access" and "aliased [constant] access" when not compiling
20956         with -gnat05.
20957         Suppress Ada 2005 keyword warning if -gnatwY used
20958         (P_Identifier_Declarations): Add support for object declarations with
20959         access definitions.
20960         (Private_Extension_Declaration): Complete the documentation
20961         (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
20962         attribute in case of private extension declaration
20963         (P_Type_Declaration): Mark as "abstract" the type declarations
20964         corresponding with protected, synchronized and task interfaces
20965         (P_Declarative_Items): "not" and "overriding" are overriding indicators
20966         for a subprogram or instance declaration.
20967
20968         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
20969         instantiation that is a dispatching operation has controlling access
20970         parameters that are null excluding.
20971         Save and restore Ada_Version_Explicit, for implementation of AI-362
20972         (Validate_Derived_Type_Instance): Add check for abstract interface
20973         types.
20974         (Analyze_Formal_Package): Establish Instantiation source for the copy of
20975         the generic that is created to represent the formal package.
20976         (Analyze_Package_Instantiation): Instantiate body immediately if the
20977         package is a predefined unit that contains inlined subprograms, and
20978         we are compiling for a Configurable_Run_Time.
20979         (Instantiate_Formal_Subprogram): Indicate that null default subprogram
20980         If the program has a null default, generate an empty body for it.
20981
20982         * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
20983         error message condition, null procedures are correctly detected now.
20984         (New_Overloaded_Entity): Bypass trivial overriding indicator check
20985         for subprograms in the context of protected types. Instead, the
20986         indicator is examined in Sem_Ch9 while analysing the subprogram
20987         declaration.
20988         (Check_Overriding_Indicator): Check consistency of overriding indicator
20989         on subprogram stubs as well.
20990         (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
20991         the library level.
20992         (Analize_Subprogram_Specification): When analyzing a subprogram in which
20993         the type of the first formal is a concurrent type, replace this type
20994         by the corresponding record type.
20995         (Analyze_Subprogram_Body): Undo the previous work.
20996         (Analyze_Procedure_Call): If the call has the form Object.Op, the
20997         analysis of the prefix ends up analyzing the call itself, after which
20998         we are done.
20999         (Has_Interface_Formals): New subprogram subsidiary to analyze
21000         subprogram_specification that returns true if some non
21001         class-wide interface subprogram is found
21002         (New_Overloaded_Entity): Modified to give support to abstract
21003         interface types
21004         (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
21005         access to subprograms must be recursive.
21006         (Is_Unchecked_Conversion): Improve the test that recognizes
21007         instantiations of Unchecked_Conversion, and allows them in bodies that
21008         are to be inlined by the front-end. When the body comes from an
21009         instantiation, a reference to Unchecked_Conversion will be an
21010         Expanded_Name, even though the body has not been analyzed yet.
21011         Replace Is_Overriding and Not_Overriding in subprogram_indication with
21012         Must_Override and Must_Not_Override, to better express intent of AI.
21013         (Analyze_Subprogram_Body): If an overriding indicator is given, check
21014         that it is consistent with the overrinding status of the subprogram
21015         at this point.
21016         (Analyze_Subprogram_Declaration): Indicate that a null procedure is
21017         always inlined.
21018         If the subprogram is a null procedure, indicate that it does not need
21019         a completion.
21020
21021         * sem_disp.adb (Check_Controlling_Type): Give support to entities
21022         available through limited-with clauses.
21023         (Check_Dispatching_Operation): A stub acts like a body, and therefore is
21024         allowed as the last primitive of a tagged type if it has no previous
21025         spec.
21026         (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
21027         to give support to abstract interface types
21028
21029         * sem_res.adb (Valid_Conversion): Perform an accessibility level check
21030         in the case where the target type is an anonymous access type of an
21031         object or component (that is, when Is_Local_Anonymous_Access is true).
21032         Prevent the special checks for conversions of access discriminants in
21033         the case where the discriminant belongs to a nonlimited type, since
21034         such discriminants have their accessibility level defined in the same
21035         way as a normal component of an anonymous access type.
21036         (Resolve_Allocator): When an allocator's designated type is a class-wide
21037         type, check that the accessibility level of type given in the
21038         allocator's expression or subtype indication is not statically deeper
21039         than the level of the allocator's access type.
21040         (Check_Discriminant_Use): Diagnose discriminant given by an expanded
21041         name in a discriminant constraint of a record component.
21042         (Resolve_Explicit_Dereference): Do not check whether the type is
21043         incomplete when the dereference is a use of an access discriminant in
21044         an initialization procedure.
21045         (Resolve_Type_Conversion): Handle conversions to abstract interface
21046         types.
21047         (Valid_Tagged_Conversion): The conversion of a tagged type to an
21048         abstract interface type is always valid.
21049         (Valid_Conversion): Modified to give support to abstract interface types
21050         (Resolve_Actuals): Enable full error reporting on view conversions
21051         between unrelated by_reference array types.
21052         The rule for view conversions of arrays with aliased components is
21053         weakened in Ada 2005.
21054         Call to obsolescent subprogram is now considered to be a violation of
21055         pragma Restrictions (No_Obsolescent_Features).
21056         (Check_Direct_Boolean_Operator): If the boolean operation has been
21057         constant-folded, there is nothing to check.
21058         (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
21059         check on possible violation of restriction No_Direct_Boolean_Operators
21060         until after expansion of operands, to prevent spurious errors when
21061         operation is constant-folded.
21062
21063         * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
21064         Has_Compatible_Type): Modified to give support to abstract interface
21065         types.
21066         (Interface_Present_In_Ancestor): New function to theck if some ancestor
21067         of a given type implements a given interface
21068
21069         * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
21070         prefix is a parameterless function that returns an access_to_procedure.
21071         (Transform_Object_Operation): Handle properly function calls of the
21072         form Obj.Op (X), which prior to analysis appear as indexed components.
21073         (Analyze_One_Call): Complete the error notification to help new Ada
21074         2005 users.
21075         (Analyze_Allocator): For an allocator without an initial value, where
21076         the designated type has a constrained partial view, a discriminant
21077         constraint is illegal.
21078
21079 2005-06-14  Robert Dewar  <dewar@adacore.com>
21080
21081         * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
21082         do with treatment of Set_Col when positioned at end of line character.
21083
21084 2005-06-14  Robert Dewar  <dewar@adacore.com>
21085
21086         * atree.adb: (Elist*): Protect against uninitialized field
21087
21088 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21089
21090         * checks.adb (Install_Null_Excluding_Check): Do not generate checks
21091         for an attribute reference that returns an access type.
21092         (Apply_Discriminant_Check): No need for check if (designated) type has
21093         constrained partial view.
21094
21095         (Apply_Float_Conversion_Check): Generate a short-circuit expression for
21096         both bound checks, rather than a conjunction.
21097         (Insert_Valid_Check): If the expression is an actual that is an indexed
21098         component of a bit-packed array, force expansion of the packed element
21099         reference, because it is specifically inhibited elsewhere.
21100
21101 2005-06-14  Vincent Celier  <celier@adacore.com>
21102
21103         * clean.adb (Clean_Project): Correctly delete executable specified as
21104         absolute path names.
21105
21106         * make.adb (Gnatmake): Allow relative executable path names with
21107         directory information even when project files are used.
21108         (Change_To_Object_Directory): Fail gracefully when unable to change
21109         current working directory to object directory of a project.
21110         (Gnatmake): Remove exception handler that could no longer be exercized
21111         (Compile_Sources.Compile): Use deep copies of arguments, as some of them
21112         may be deallocated by Normalize_Arguments.
21113         (Collect_Arguments): Eliminate empty arguments
21114
21115         * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
21116         and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
21117         (Check_Project): Return False when Project is No_Project. Return True
21118         when All_Projects is True.
21119         (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
21120         All_Projects to True.
21121         Minor reformatting
21122
21123 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21124             Javier Miranda  <miranda@adacore.com>
21125             Thomas Quinot  <quinot@adacore.com>
21126             Robert Dewar  <dewar@adacore.com>
21127             Hristian Kirtchev  <kirtchev@adacore.com>
21128             Gary Dismukes  <dismukes@adacore.com>
21129
21130         * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
21131         anonymous access types, to indicate that the accessibility level of
21132         the type is determined by that of the enclosing declaration.
21133         (Has_Persistent_BSS): New flag
21134         (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
21135         of this attribute with functions.
21136         (Is_Primitive_Wrapper): Remove the barrier.
21137         (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
21138         Has_Specified_Stream_Read, Has_Specified_Stream_Write):
21139         New subprograms.
21140         (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
21141         Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
21142         New subprograms.
21143         (Is_Pure_Unit_Access_Type): New flag
21144         (Abstract_Interfaces): Complete the assertion to cover all usages.
21145         (Set_Is_Interface): Complete the assertion to cover all usages.
21146         (Is_Primitive_Wrapper): New attribute.
21147         (Is_Obsolescent): Now applies to all entities (though it is only set
21148         for subprograms currently)
21149         New flag:  Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
21150         which solves various problems concerning access subtypes.
21151         (Has_Persistent_BSS): New flag
21152         (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
21153         Remove these subprograms because this attribute is currently
21154         not used.
21155         New entity flags:
21156         Has_Specified_Stream_Input (Flag190)
21157         Has_Specified_Stream_Output (Flag191)
21158         Has_Specified_Stream_Read (Flag192)
21159         Has_Specified_Stream_Write (Flag193)
21160         Present in all type and subtype entities. Set for a given view if the
21161         corresponding stream-oriented attribute has been defined by an
21162         attribute definition clause. When such a clause occurs, a TSS is set
21163         on the underlying full view; the flags are used to track visibility of
21164         the attribute definition clause for partial or incomplete views.
21165         (Is_Pure_Unit_Access_Type): New flag
21166         Clarify use of Is_Internal.
21167         (Is_Primitive_Wrapper): New attribute present in primitive subprograms
21168         internally generated to wrap the invocation of tasks and protected
21169         types that implement interfaces.
21170         (Implementation_Base_Type): Documentation correction
21171         (Is_Obsolescent): Now applies to all entities (though it is only set
21172         for subprograms currently)
21173         New flag:  Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
21174         which solves various problems concerning access subtypes.
21175
21176         * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
21177         for examined parameters. Identify unequal parameter list lengths as
21178         non-conformant parameters.
21179         (Overriding_Possible): Do not check for "All" qualifier in declaration
21180         of controlling access parameter, following prescription of AI-404.
21181         (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
21182         that build the procedure body that wraps an entry invocation
21183         (Build_Corresponding_Record, Build_Protected_Sub_Specification,
21184         Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
21185         Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
21186         give support to abstract interface types
21187
21188         * freeze.adb (Freeze_Entity): Issue error message if
21189         Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
21190         type has no storage pool (Ada 2005) AI-366.
21191         Also modified to give support to abstract interface types
21192         (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
21193         Inline_Always pragma.
21194
21195         * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
21196         now begin an entry declaration.
21197         (P_Entry_Or_Subprogram_With_Indicator): New procedure in
21198         P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
21199         a subprogram declaration preceded by an overriding indicator.
21200         (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
21201         declarations or subprogram declarations preceded by reserved words
21202         "not" or "overriding".
21203         (P_Entry_Declaration): Update comment. Parse and check overriding
21204         indicator, set semantic flags of entry declarations.
21205         (P_Task): New error message in case of private applied
21206         to a task type declaration.
21207         (P_Protected): New error message in case of private applied
21208         to a task type declaration.
21209
21210         * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
21211         in which the full view of a type implementing an interface is a
21212         concurrent type.
21213         (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
21214         Declare_Inherited_Private_Subprograms): If an explicit operation
21215         overrides an operation that is inherited in the private part, mark the
21216         explicit one as overriding, to enable overriding indicator checks.
21217         (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
21218         full view to partial view, to simplify handling in back-end.
21219
21220         * sprint.adb: Print interface lists where needed: derived types,
21221         protected types, task types.
21222         output "is null" for null procedures. Part of implementation of
21223
21224         * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
21225         relaxation of rules for access types in pure, shared passive partitions.
21226
21227         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
21228         first read discriminants into temporary objects, performing checks on
21229         the read values, then possibly performing discriminant checks on the
21230         actual (if it is constrained), and only finally reading the components
21231         into a constrained temporary object.
21232         (Build_Elementary_Input_Call): Adjust the specific circuitry for the
21233         case of reading discriminants of a mutable record type to recognize
21234         the new form of the code generated by
21235         Build_Mutable_Record_Read_Procedure.
21236
21237         * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
21238         of a simple call to Make_TSS_Name.
21239         (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
21240         buffer, in order for Is_TSS to work correctly on local TSS names.
21241
21242         * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
21243         Is_Local_Anonymous_Access to check legaliy of attributes in the
21244         context of  access components and stand-alone access objects.
21245         (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
21246         treated as available for a limited private type if there is an
21247         attribute_definition_clause that applies to its full view, but not in
21248         other cases where the attribute is available for the full view
21249         (specifically, the sole fact that the full view is non-limited does not
21250         make the attribute available for the partial view).
21251         (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
21252         non-overloaded intrinsic subprogram.
21253         (Check_Stream_Attribute): Reject an attribute reference for an
21254         unavailable stream attribute even if the prefix is not a limited type
21255         (case of a 'Input attribute reference for an abstract, non-classwide
21256         type)
21257         (Stream_Attribute_Available): New function to determine whether a stream
21258         attribute is available at a place.
21259         (Check_Attribute): Use Stream_Attribute_Available instead of just
21260         testing for TSS presence on the implementation base type.
21261         (Analyze_Attribute): Modified to give support to task interfaces.
21262         (Analyze_Access_Attribute): Add error check for use of an Access (or
21263         Unrestricted_Access) attribute with a subprogram marked as
21264         Inline_Always.
21265         (Analyze_Attribute, case Attribute_Address): Add error check for use of
21266         an Address attribute with a subprogram marked as Inline_Always.
21267         Update Eval_Attribute to handle new value of Width from AI-395
21268
21269         * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
21270         (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
21271         Factor common code across the stream-oriented attribute circcuits into
21272         a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
21273         processing is functionally identical to the previous duplicated one,
21274         except that an expression that denotes an abstract subprogram will now
21275         be rejected, as mandated by AI-195 item 5.
21276
21277         * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
21278         Is_Local_Anonymous_Access to apply accessibility checks to access
21279         components and stand-alone access objects.
21280         (Has_Discriminant_Dependent_Constraint): Moved to spec for use
21281         elsewhere.
21282         (Is_Potentially_Persistent_Type): New function
21283         (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
21284         a heap-object whose type has a constrained partial view, the object is
21285         unconstrained and the component may depend on a discriminant, making its
21286         renaming illegal.
21287
21288         * sinfo.ads, sinfo.adb
21289         (Must_Not_Override): Flag applicable to N_Entry_Declaration.
21290         (Must_Override): Flag applicable to N_Entry_Declaration.
21291         Indicate that interface_list can appear in single task and single
21292         protected declarations.
21293         Replace Is_Overriding and Not_Overriding with Must_Override and
21294         Must_Not_Override, to better express intent of AI.
21295         Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
21296         of an overriding indicator in a subprogram or instance.
21297         Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
21298         Add the overriding indicator [[not] overriding] construct to the
21299         following grammar productions:
21300          ENTRY_DECLARATION
21301          GENERIC_INSTANTIATION
21302          SUBPROGRAM_SPECIFICATION
21303
21304         * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
21305         can start with an overriding indicator.
21306
21307         * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
21308         flags accordingly on subrogram specifications or instances.
21309
21310         * sem_ch8.adb:
21311         (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
21312         overriding_indicator, if present, is consistent with status of spec.
21313         Improve error message for null-excluding checks on controlling access
21314         parameters.
21315         (Check_In_Previous_With_Clause): Protect the frontend against
21316         previously reported critical errors in the context clauses.
21317         Save and restore Ada_Version_Explicit, for implementation of AI-362
21318         (Analyze_Subprogram_Renaming): If the new entity is a dispatching
21319         operation verify that controlling formals of the renamed entity that
21320         are access parameters are explicitly non-null.
21321         (Find_Expanded_Name): Improve error message when prefix is an illegal
21322         reference to a private child unit.
21323
21324         * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
21325         s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
21326         Rewrite to correspond to new wide character names in AI-395
21327
21328         * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
21329         default procedures.
21330
21331 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21332             Robert Dewar  <dewar@adacore.com>
21333
21334         * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
21335         code, not on the bodies of predefined operations, to cut down on
21336         spurious noise.
21337
21338 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21339
21340         * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
21341         be expanded in place. The size computation does not require a
21342         subtraction, which would raise an exception on a compiler built with
21343         assertions when the upper bound is Integer'first.
21344         (Flatten): For an array of composite components, take into account the
21345         size of the components to determine whether it is safe to expand the
21346         array into a purely positional representation.
21347
21348 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21349
21350         * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
21351         denoting a formal parameter into account.
21352
21353 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21354
21355         * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
21356         the entry_call alternative of a conditional entry call, wrap the
21357         conditional entry call itself.
21358
21359 2005-06-14  Nicolas Setton  <setton@adacore.com>
21360             Ed Schonberg  <schonberg@adacore.com>
21361
21362         * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
21363         the "simple_choice" member in a variant record, in accordance with the
21364         description in the package spec: the information output for a constant
21365         should be "S number", not "SS number".
21366         (Get_Encoded_Name): Return at once if not generating code. Avoids name
21367         overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
21368
21369 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21370
21371         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
21372         RACW without any primitives, do not generate the if statement for
21373         dispatching by name in the PolyORB/DSA case, as it would be malformed
21374         (it would have an Elsif_Parts list that is not No_List, but with a
21375         length of 0).
21376
21377 2005-06-14  Robert Dewar  <dewar@adacore.com>
21378
21379         * exp_intr.adb, par-ch5.adb: Minor fix to error message text
21380
21381 2005-06-14  Jose Ruiz  <ruiz@adacore.com>
21382
21383         * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
21384         can determine whether pragma Suppress_Exception_Locations is in effect.
21385
21386         * utils2.c (build_call_raise): Do not pass the file name to the
21387         exception handler if pragma Suppress_Exception_Locations is in effect.
21388         (build_allocator): Add and process arg IGNORE_INIT_TYPE.
21389
21390 2005-06-14  Emmanuel Briot  <briot@adacore.com>
21391
21392         * g-debpoo.adb (Deallocate, Dereference): Improve output.
21393
21394 2005-06-14  Nicolas Roche  <roche@adacore.com>
21395
21396         * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
21397         to ""
21398         (Next_Level): Fix minor bug in handling of ../dir case
21399         (Read): Add dir separator to Directory name so that "" is understood as
21400          "/"
21401
21402 2005-06-14  Pascal Obry  <obry@adacore.com>
21403
21404         * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
21405         releasing the items.
21406
21407 2005-06-14  Vincent Celier  <celier@adacore.com>
21408             Cyrille Comar  <comar@adacore.com>
21409
21410         * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
21411         with output file descriptor and with output file name.
21412         (Dup, Dup2): Now global procedures as they are used by two subprograms
21413         (Copy): Allocate the 200K buffer on the heap rather than on the stack.
21414
21415 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21416
21417         PR ada/6717
21418         * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
21419         broadcast address.
21420         (Create_Selector): Bind listening socket used to create the signalling
21421         socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
21422         Set listen backlog to 1 to ensure that we detect socket theft by a
21423         failure of our own connect(2) call.
21424         (Check_Selector): Improve documentation of the selector mechanism.
21425         (Broadcast_Inet_Addr): New constant.
21426
21427 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21428
21429         * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
21430         type which turns out to be an incomplete and incorrect fix.
21431         (Layout_Array_Type): Use Underlying_Type when checking whether the scope
21432         of the type is declared in a record (for determination of insertion
21433         type).
21434         (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
21435         a private type and ensure that the primary entity is used for the type
21436         of the newly created function's V formal by taking the Etype of the
21437         view.
21438
21439 2005-06-14  Javier Miranda  <miranda@adacore.com>
21440             Jose Ruiz  <ruiz@adacore.com>
21441             Robert Dewar  <dewar@adacore.com>
21442             Ed Schonberg  <schonberg@adacore.com>
21443
21444         * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
21445         that indicates if we are parsing a compilation unit found in a
21446         limited-with clause.
21447         It is use to avoid the circularity check.
21448
21449         * par.ads, par.adb (Par): Addition of a new parameter to indicate if
21450         we are parsing a compilation unit found in a limited-with clause. This
21451         is use to avoid the circularity check.
21452
21453         * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
21454         unit as a consequence of parsing a limited-with clause. This is used
21455         to avoid the circularity check.
21456
21457         * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
21458         (Analyze_Context): Limited-with clauses are now allowed
21459         in more compilation units.
21460         (Analyze_Subunit_Context, Check_Parent): Protect the frontend
21461         againts previously reported critical errors in context clauses
21462         (Install_Limited_Withed_Unit): Code cleanup plus static detection
21463         of two further errors: renamed subprograms and renamed packages
21464         are not allowed in limited with clauses.
21465         (Install_Siblings): Do not install private_with_clauses on the package
21466         declaration for a non-private child unit.
21467         (Re_Install_Parents): When a parent of the subunit is reinstalled,
21468         reset visibility of child units properly.
21469         (Install_Withed_Unit): When a child unit appears in a with_clause of its
21470         parent, it is immediately visible.
21471
21472 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21473             Emmanuel Briot  <briot@adacore.com>
21474
21475         * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
21476         declared within an inlined body as referenced, to prevent spurious
21477         warnings.
21478         (Output_One_Ref): If an entity renames an array component, indicate in
21479         the ALI file that this aliases (renames) the array. Capture as well
21480         function renamings that rename predefined operations.
21481         Add information about generic parent for package and subprogram
21482         instances.
21483         (Get_Type_Reference): For a subtype that is the renaming of an actual in
21484         an instantiation, use the first_subtype to ensure that we don't generate
21485         cross-reference information for internal types.
21486         For objects and parameters of a generic private type, retain the '*'
21487         indicator to distinguish such an entity from its type.
21488
21489         * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
21490         to store information about instantiated entities.
21491
21492         * ali.adb (Scan_ALI): Add support for parsing the reference to the
21493         generic parent
21494
21495         * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
21496         (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
21497         information.
21498
21499 2005-06-10  Doug Rupp  <rupp@adacore.com>
21500             Arnaud Charlet  <charlet@adacore.com>
21501             Olivier Hainque  <hainque@adacore.com>
21502             Jose Ruiz  <ruiz@adacore.com>
21503
21504         * Make-lang.in: Add initialize.o when needed.
21505         Remove obsolete references to RT_FLAGS.
21506         Add missing dependencies for sdefault.o
21507
21508         * initialize.c: New file.
21509
21510         * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
21511         [VMS] cond_signal_table: Fix problem in declaration.
21512         [VMS] __gnat_error_handler: rewrite.
21513         Move all __gnat_initialize() routines to initialize.c
21514         Specialize the former "hpux" section to "hppa hpux", as this is what the
21515         section really is here for and we now have other hpux ports that need
21516         different contents.
21517         (__gnat_adjust_context_for_raise) i386-linux: First version of this
21518         function for this target. Adjust PC by one in the machine context. This
21519         adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
21520         it is more reliable to do that in the signal handler itself.
21521         (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
21522         flags, so that the handler is passed the context structure to adjust
21523         prior to the raise.
21524         (__gnat_error_handler) i386-linux: Adjust the signature to match what a
21525         SA_SIGINFO sigaction should look like. Call
21526         __gnat_adjust_context_for_raise before actually raising. Cleanup unused
21527         Machine_State_Operations stuff.
21528         Add conditional code so that the x86_64 is also supported.
21529
21530 2005-06-14  Pascal Obry  <obry@adacore.com>
21531
21532         * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
21533         the library name.
21534
21535 2005-06-14  Robert Dewar  <dewar@adacore.com>
21536
21537         * opt.ads, opt.adb: New flags for persistent_bss mode
21538         Add Ada_Version_Explicit, for implementation of AI-362
21539         Add Assertions_Enabled_Config and associated handling
21540         Needed since setting can be changed with Assertion_Policy pragma
21541         Add new flag Warn_On_Ada_2005_Compatibility
21542
21543         * switch-c.adb: Recognize -gnatwy/Y
21544         Set Ada_Version_Explicit, for implementation of AI-362
21545         The -gnatg switch now includes -gnatyu
21546
21547         * usage.adb: Add -gnatwy/Y
21548         Remove wrong asterisk on -gnatwX line
21549         Add line for -gnatyu switch
21550
21551 2005-06-14  Vincent Celier  <celier@adacore.com>
21552
21553         * osint.adb (Add_Default_Search_Dirs): Put source and object
21554         directories of project files before directories coming from
21555         ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
21556
21557 2005-06-14  Robert Dewar  <dewar@adacore.com>
21558
21559         PR ada/15613
21560         * par-ch2.adb (Scan_Pragma_Argument): New procedure
21561         (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
21562
21563 2005-06-14  Vincent Celier  <celier@adacore.com>
21564
21565         * prep.adb (Preprocess): Ignore error when scanning the first token of
21566         a line.
21567
21568 2005-06-14  Vincent Celier  <celier@adacore.com>
21569
21570         * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
21571         (Check_Stand_Alone_Library): If the specified reference symbol file does
21572         not exist, only issue a warning when the symbol policy is not
21573         Controlled. And, when symbol policy is Compliant, set the symbol
21574         policy to Autonomous.
21575
21576 2005-06-14  Vincent Celier  <celier@adacore.com>
21577
21578         * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
21579         when the project file in a with clause is not the last one, that is the
21580         project file name is followed by a comma.
21581         * prj-pp.adb: (First_With_In_List): New Boolean global variable
21582         (Print): Issue list of project files separated by commas in with clauses
21583         according to the values returned by Is_Not_Last_In_List.
21584         * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
21585         (Set_Is_Not_Last_In_List): New procedure
21586
21587 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
21588
21589         * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
21590
21591 2005-06-14  Robert Dewar  <dewar@adacore.com>
21592
21593         * scng.adb: Add call to new Check_EOF routine
21594         (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
21595         Add some comments regarding wide character handling
21596
21597         * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
21598
21599         * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
21600
21601         * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
21602         characters are now considered graphic characters and hence yield false
21603         in this call.
21604
21605         * nmake.adt: Modify header so that xnmake does not generate output
21606         files with multiple blank lines.
21607
21608         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21609         not have an extra blank line
21610
21611 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21612
21613         * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
21614         expression when the component type is an anonymous access type to
21615         ensure that appropriate accessibility checks are done.
21616
21617         * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
21618         expression of an assignment when the target object is of an anonymous
21619         access type. This ensures that required accessibility checks are done.
21620         (One_Bound): Move the check for type Universal_Integer to
21621         Process_Bounds.
21622         (Process_Bounds): Check whether the type of the preanalyzed range is
21623         Universal_Integer, and in that case set Typ to Integer_Type prior
21624         to setting the type of the original range and the calls to One_Bound.
21625
21626 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21627
21628         * sem_case.adb (Expand_Others_Choice): Improve warning.
21629
21630 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21631
21632         * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
21633         constraint of full view if present, when other type is discriminated.
21634         (Eval_Relational_Op): Recognize tests of pointer values against Null,
21635         when the pointer is known to be non-null, and emit appropriate warning.
21636
21637 2005-06-14  Robert Dewar  <dewar@adacore.com>
21638             Ed Schonberg  <schonberg@adacore.com>
21639
21640         PR ada/10671
21641         * sem_prag.adb: Implement pragma Persistent_BSS
21642         Remove obsolete pragma Persistent_Data, Persistent_Object
21643         Set Ada_Version_Explicit, for implementation of AI-362
21644         Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
21645         Add processing for pragma Pure_05 and Preelaborate_05
21646         Add processing for Assertion_Policy pragma
21647         Add pragma identifiers for Assert
21648         (Analyze_Pragma, case Assert): Check number of arguments
21649         (Process_Inline): Additional guard against an illegal program, where the
21650         argument of the pragma is undefined, and warnings on redundant
21651         constructs are enabled.
21652         (Analyze_Pragma, case Obsolescent): Allow an optional second argument
21653         Ada_05 to this pragma, specifying that the pragma is only active in
21654         Ada_05 mode.
21655         (Check_Arg_Order): New procedure
21656         Add appropriate calls to this procedure throughout
21657         Also throughout, check entity name before doing any other checks
21658
21659         * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
21660         Remove obsolete pragma Persistent_Data, Persistent_Object
21661         Add entries for pragma Pure_05 and Preelaborate_05
21662         Add entries for Assertion_Policy pragma and associated names
21663         Add some names for pragma argument processing
21664
21665         * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
21666
21667 2005-06-14  Ed Schonberg  <schonberg@adacore.com>
21668
21669         * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
21670         appears within a negation (either from source or as a rewriting of
21671         inequality) adjust text of warning accordingly.
21672
21673 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21674
21675         * s-strxdr.adb: Follow AI95-00132
21676
21677 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21678
21679         * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
21680
21681 2005-06-14  Arnaud Charlet  <charlet@adacore.com>
21682             Jose Ruiz  <ruiz@adacore.com>
21683
21684         * s-tposen.adb, s-tpobop.adb
21685         (Exceptional_Complete_Rendezvous): Save the occurrence and not only
21686         the exception id.
21687         (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
21688         there is no violation of the Max_Entry_Queue_Length restriction (if it
21689         has been set); Program_Error is raised otherwise.
21690         (Requeue_Call): Before requeuing the task on the target entry queue we
21691         check that there is no violation of the Max_Entry_Queue_Length
21692         restriction (if it has been set); Program_Error is raised otherwise.
21693
21694 2005-06-14  Robert Dewar  <dewar@adacore.com>
21695
21696         * styleg.adb: Fix several remaining problems in -gnatyu switch
21697         Blank line count not reset at start
21698         Scanning outside source buffer in some cases
21699         Confusing message for blanks at end of file
21700         Non-empty blank lines not recognized
21701
21702         * nmake.adt: Modify header so that xnmake does not generate output
21703         files with multiple blank lines.
21704
21705         * treeprs.adt: Remove a blank line so that output from xtreeprs does
21706         not have an extra blank line
21707
21708 2005-06-14  Sergey Rybin  <rybin@adacore.com>
21709
21710         * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
21711
21712 2005-06-14  Doug Rupp  <rupp@adacore.com>
21713             Vincent Celier  <celier@adacore.com>
21714
21715         * vms_conv.ads, vms_conv.adb: Remove "Library" command.
21716         Update copyright.
21717
21718         * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21719         Remove "Library" command.
21720         Change keyword for style check -gnatyd from NOCRLF to
21721         DOS_LINE_ENDINGS.
21722         Remove useless second style check keyword NONE
21723         Remove help documentation for inexistent style check keyword
21724         RM_COLUMN_LAYOUT.
21725         Add help documentation for style check keywords DOS_LINE_ENDINGS,
21726         UNNECESSARY_BLANK_LINES and XTRA_PARENS
21727         Add UNNECESSARY_BLANK_LINES for -gnatyu
21728         Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
21729
21730         * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
21731
21732 2005-06-14  Vincent Celier  <celier@adacore.com>
21733
21734         * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
21735         gprmake was invoked with -d.
21736         (Compile_Sources): If -d was used, output the "completed ..." message
21737         for each compilation.
21738         (Scan_Arg): Recognize new switch -d
21739         When -c and at least one main is specified, set
21740         Unique_Compile to True to guarantee that no other sources will be
21741         compiled.
21742
21743 2005-06-14  Matthew Heaney  <heaney@adacore.com>
21744
21745         * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
21746         * a-swuwha.ads, a-swuwha.adb: New files
21747
21748         * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
21749         * a-szuzha.ads, a-szuzha.adb: New files.
21750
21751         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
21752         a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
21753         a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
21754         a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
21755         a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
21756         a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
21757         a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
21758         a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
21759         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
21760         a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
21761         Ada 2005 RM.
21762
21763 2005-06-10  Eric Botcazou  <ebotcazou@adacore.com>
21764             Olivier Hainque  <hainque@adacore.com>
21765             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21766             Pascal Obry  <obry@adacore.com>
21767
21768         * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
21769
21770         * trans.c (call_to_gnu): Issue a warning for users of Starlet when
21771         making a temporary around a procedure call because of non-addressable
21772         actual parameter.
21773         (process_freeze_entity): If entity is a private type, capture size
21774         information that may have been computed for the full view.
21775         (tree_transform, case N_Allocator): If have initializing expression,
21776         check type for Has_Constrained_Partial_View and pass that to
21777         build_allocator.
21778         (tree_transform, case N_Return_Statement): Pass extra arg to
21779         build_allocator.
21780
21781         * decl.c (annotate_value): Remove early return if -gnatR is not
21782         specified.
21783         (gnat_to_gnu_field): Don't make a packable type for a component clause
21784         if the position is byte aligned, the field is aliased, and the clause
21785         size isn't a multiple of the packable alignment. It serves no useful
21786         purpose packing-wise and would be rejected later on.
21787         (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
21788
21789         PR ada/20515
21790         (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
21791         context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
21792         instead.
21793         (create_concat_name): Idem.
21794
21795 2005-06-10  Robert Dewar  <dewar@adacore.com>
21796             Eric Botcazou  <ebotcazou@adacore.com>
21797             Ben Brosgol  <brosgol@adacore.com>
21798             Cyrille Comar  <comar@adacore.com>
21799             Sergey Rybin  <rybin@adacore.com>
21800             Pascal Obry  <obry@adacore.com>
21801
21802         * gnat_rm.texi: Add documentation for pragma Persistent_BSS
21803         Document second argument (Ada_05) of pragma Obsolescent
21804         Add note that call to subprogram marked with pragma Obsolescent
21805         is now considered to be a violation of program Restrictions
21806         (No_Obsolescent_Features).
21807         (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
21808         that only machine-dependent attributes are supported.
21809
21810         * gnat_ugn.texi:
21811         Commented out menu lines and empty section for gnatclean examples
21812         Document -gnatwy/Y
21813         Fix some over long lines
21814         Clarify and enhance documentation of ADA_PROJECT_PATH.
21815         Rework section 2.11.2(3) about linking with a non-GNU compiler.
21816         Mention new switch -fcallgraph-info.
21817         Mention new switch -fstack-usage.
21818         For gnatpp, replace '-notab' with '-N' and add this option to Index
21819         Corrected VMS example.
21820         VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
21821         Minor reformatting
21822         Add documentation for -gnatyu switch (unnecessary blank lines)
21823         Document new switch -U for GNAT PRETTY and GNAT METRIC
21824         Add note about Stdcall being handled as C convention on non Windows OS.
21825         Remove some junk typo in description of gnatbind -S switch
21826         Remove reference to Extensions_Allowed pragma
21827         Document the new order of the directories to be searched (source and
21828         object directories of project files before directories in ADA_*_PATH
21829         environment variables.
21830
21831         * g-trasym.ads: Document that IRIX is supported
21832
21833 2005-06-10  Arnaud Charlet  <charlet@adacore.com>
21834
21835         * Makefile.in: Add initialize.o when needed.
21836         Adapt to new VMS package body Symbols and subunits
21837         No specialized version of a-sytaco is needed for VxWorks.
21838
21839         * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
21840         * a-zchara.ads, a-widcha.ads: New files.
21841
21842         * system-hpux-ia64.ads: New file.
21843
21844         * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
21845         is imported from the VxWorks kernel.
21846
21847 2005-06-14  Robert Dewar  <dewar@adacore.com>
21848
21849         * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
21850         fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
21851         a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
21852         s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
21853         a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
21854         g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
21855         i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
21856         namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
21857         sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
21858         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
21859         s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
21860         xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
21861
21862 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21863
21864         * xeinfo.adb: Fix typo in comment
21865
21866 2005-06-14  Javier Miranda  <miranda@adacore.com>
21867
21868         * repinfo.ads: Fix typo in comment
21869
21870 2005-06-14  Gary Dismukes  <dismukes@adacore.com>
21871
21872         * s-finimp.adb (Parent_Tag): Delete this imported function (function
21873         Parent_Tag is now in the visible part of Ada.Tags).
21874         (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
21875         using imported function.
21876
21877 2005-06-14  Bernard Banner  <banner@adacore.com>
21878
21879         * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
21880         also apply for handling support for VxSim 653.
21881
21882 2005-06-14  Eric Botcazou  <ebotcazou@adacore.com>
21883
21884         * xsnames.adb: Add automatic generation of snames.h.
21885
21886 2005-06-14  Thomas Quinot  <quinot@adacore.com>
21887
21888         * gen-soccon.c: Add IP_MULTICAST_IF constant
21889         Minor reformatting and adjustments to prevent warnings.
21890
21891 2005-06-14  Pascal Obry  <obry@adacore.com>
21892
21893         * seh_init.c: Do not include <sys/stat.h>. This is not needed.
21894
21895 2005-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
21896
21897         * trans.c (gnat_gimplify_expr): Call
21898         recompute_tree_invarant_for_addr_expr when we change
21899         the operand of the ADDR_EXPR.
21900
21901 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21902
21903         * misc.c: Don't include errors.h.
21904
21905 2005-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21906
21907         * raise.c (db): Add ATTRIBUTE_PRINTF_2.
21908
21909 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
21910
21911         * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
21912         comment typos.
21913         * gnat_rm.texi, gnat_ugn.texi: Fix typos.
21914
21915 2005-05-16  Nathanael Nerode  <neroden@gcc.gnu.org>
21916
21917         PR ada/20270
21918         * Makefile.in: Make TGT_LIB behave correctly.
21919
21920 2005-04-23  DJ Delorie  <dj@redhat.com>
21921
21922         * misc.c: Adjust warning() callers.
21923
21924 2005-04-16  Laurent Guerby  <laurent@guerby.net>
21925
21926         PR ada/18847
21927         * a-nudira.adb (Value): Check for valid string.
21928         * a-nuflra.adb (Value): Likewise.
21929
21930 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
21931
21932         * lang.opt: Refer to the GCC internals documentation instead of c.opt.
21933
21934 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
21935
21936         * adaint.c, init.c, tracebak.c: Fix comment typos.
21937         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
21938
21939 2005-04-07  Laurent Guerby  <laurent@guerby.net>
21940             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21941
21942         * Makefile.in: Add make ifeq define for hppa linux tasking support.
21943         * system-hpux.ads: Define Signed_Zeros to be True.
21944         * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
21945
21946 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
21947
21948         * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
21949         raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
21950         typos.
21951
21952 2005-03-30  Tom Tromey  <tromey@redhat.com>
21953
21954         * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
21955
21956 2005-03-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
21957
21958         * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
21959
21960 2005-03-29  Robert Dewar  <dewar@adacore.com>
21961
21962         * sem_res.adb (Resolve_Real_Literal): Generate warning if static
21963         fixed-point expression has value that is not a multiple of the Small
21964         value.
21965
21966         * opt.ads (Warn_On_Bad_Fixed_Value): New flag
21967
21968         * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
21969         nanoseconds.
21970
21971         * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
21972
21973 2005-03-29  Vincent Celier  <celier@adacore.com>
21974
21975         * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
21976         (Build_Dynamic_Library.Version_String): Return the empty string when
21977         Lib_Version is empty or when the symbol policy is not Autonomous.
21978
21979         * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
21980         a symbol is not in the reference symbol file, increase the Major ID
21981         and set the Minor ID to 0.
21982         Use gsmatch=lequal instead of gsmatch=equal
21983
21984 2005-03-29  Doug Rupp  <rupp@adacore.com>
21985
21986         * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
21987         name and translate.
21988
21989 2005-03-29  Javier Miranda  <miranda@adacore.com>
21990
21991         * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
21992         (Inherit_DT): The first formal has been redefined as a Tag.
21993         This allows us the removal of the subprogram Get_TSD.
21994         (TSD): Replace the call to Get_TSD by the actual code.
21995
21996         * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
21997         (Make_DT): Upgrade the call to Inherit_TSD according to the
21998         new interface: the first formal is now a Tag.
21999
22000         * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
22001         redefined as a Tag.
22002         This change allows us to remove the subprogram Get_TSD.
22003         (CPP_Get_TSD): Subprogram removed.
22004         (TSD): Replace the call to CPP_Get_TSD by the actual code.
22005
22006         * rtsfind.ads: Remove support to call the run-time
22007         subprogram Get_TSD
22008
22009 2005-03-29  Robert Dewar  <dewar@adacore.com>
22010
22011         * errutil.adb, errout.adb:
22012         Minor comment updates on Line_Terminator references
22013
22014         * par-ch10.adb: Add ??? comment about line terminator
22015
22016         * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
22017         (check dos line terminator).
22018         (Check_Line_Max_Length): New procedure, split off from the existing
22019         Check_Line_Terminator routine. Separating this out allows -gnatyf to
22020         be properly recognized.
22021
22022         * styleg.adb: Add ??? comment for line terminator reference
22023
22024         * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
22025         (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
22026
22027         * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
22028         (check dos line terminator).
22029         (Check_Line_Max_Length): New procedure, split off from the existing
22030         Check_Line_Terminator routine. Separating this out allows -gnatyf to
22031         be properly recognized.
22032
22033         * stylesw.ads, stylesw.adb:
22034         Add handling for new -gnatyd switch (check dos line terminator)
22035
22036         * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
22037         Recognize -gnatwb/-gnatwB switches
22038         Include Warn_On_Bad_Fixed_Value for -gnatg
22039
22040         * usage.adb:
22041         Add line for new -gnatyd switch (check dos line terminator)
22042
22043         * usage.adb: Add lines for -gnatwb/-gnatwB
22044
22045         * vms_data.ads: Add entry for NOCRLF (-gnatyd)
22046
22047         * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
22048
22049         * gnat_ugn.texi: Fix overlong lines
22050         Document new -gnatyd switch
22051         Document new -gnatwb/-gnatwB switches
22052
22053 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22054
22055         * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
22056         order to retrieve the component list of the type, before examining
22057         individual components.
22058
22059         * sem_type.adb (Covers): Types are compatible if one is the base type
22060         of the other, even though their base types might differ when private
22061         views are involved.
22062
22063 2005-03-29  Thomas Quinot  <quinot@adacore.com>
22064
22065         * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
22066         To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
22067         of using Set_Renaming_TSS. This ensures that the TSS bodies are not
22068         analyzed if expansion is disabled (which could otherwise cause spurious
22069         error messages if expansion has been disabled due to previous
22070         (unrelated) errors).
22071
22072         * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
22073         is disabled, the entity denoted by the argument is the access type
22074         itself, not an underlying record type, so there is no need to go back
22075         to the Corresponding_Remote_Type.
22076
22077 2005-03-29  Gary Dismukes  <dismukes@adacore.com>
22078             Robert Dewar  <dewar@adacore.com>
22079
22080         * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
22081         expand a call to an instance of
22082         Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
22083         Constructor actual of the instance. A class-wide membership
22084         check is also generated, to ensure that the tag passed to the instance
22085         denotes a type in the class.
22086         (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
22087         of Name_Generic_Dispatching_Constructor.
22088
22089         * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
22090         05 unit for AI-260-02).
22091
22092         * a-tgdico.ads: New file.
22093
22094         * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
22095         predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
22096
22097         * snames.ads, snames.adb (Preset_Names): Add entry for
22098         Generic_Dispatching_Constructor.
22099
22100         PR ada/20300
22101         * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
22102         character type cases.
22103         (Analyze_Subprogram_Renaming): Add special handling for
22104         the case of renaming of stream attributes when the renaming denotes a
22105         generic formal subprogram association for an abstract formal subprogram.
22106         Check that the attribute is a primitive stream attribute (and not
22107         a class-wide stream attribute) and then rewrite the attribute name
22108         as the name of the appropriate compiler-generated stream primitive.
22109
22110 2005-03-29  Robert Dewar  <dewar@adacore.com>
22111
22112         * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
22113         recursive calls.
22114         (Is_Possibly_Unaligned_Object): Correct typo that
22115         resulted in inaccurate result for unaligned scalars within records.
22116
22117 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22118
22119         * freeze.adb (Freeze_Record_Type): If the type of the component is an
22120         itype whose parent is controlled and not yet frozen, do not create a
22121         freeze node for the itype if expansion is disabled.
22122
22123 2005-03-29  Vincent Celier  <celier@adacore.com>
22124
22125         * make.adb (Gnatmake): Don't fail if the main project file is declared
22126         as having no Ada sources. Do not display message "no sources to
22127         compile" in quiet output.
22128
22129 2005-03-29  Doug Rupp  <rupp@adacore.com>
22130
22131         * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
22132         extra tools.
22133
22134 2005-03-29  Robert Dewar  <dewar@adacore.com>
22135
22136         * par-ch12.adb (P_Generic): Give better msg for illegal private generic
22137         child.
22138
22139 2005-03-29  Robert Dewar  <dewar@adacore.com>
22140
22141         * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
22142         missing TYPE Improve the error message generated when compiling a
22143         limited interface in Ada83 or Ada95 mode.
22144
22145 2005-03-29  Robert Dewar  <dewar@adacore.com>
22146
22147         * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
22148         rather than proceed ahead using a junk attribute name.
22149
22150 2005-03-29  Vincent Celier  <celier@adacore.com>
22151
22152         * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
22153
22154         * prj-part.adb (Parse_Single_Project): Set the location of a project
22155         on its defining identifier, rather than on the reserved word "project".
22156
22157         * prj-proc.adb (Expression): Adapt to the fact that default of external
22158         references may be string expressions, not always literal strings.
22159         (Recursive_Process): Set Display_Name equal to Name
22160         when Location is No_Location, that is when there is no actual file.
22161         Get the Display_Name of the project from the source, when it is not a
22162         virtual project.
22163         (Process): Use the Display_Name in error messages
22164
22165         * prj-strt.adb (External_Reference): Allow default to be string
22166         expressions, not only literal strings.
22167
22168 2005-03-29  Vincent Celier  <celier@adacore.com>
22169
22170         * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
22171         file and the reference symbol file to be the same file.
22172
22173 2005-03-29  Thomas Quinot  <quinot@adacore.com>
22174
22175         * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
22176         forbid conversion of a local access-to-subprogram type to a remote one.
22177
22178         * sem_util.adb (Wrong_Type): For a record type that is the expanded
22179         equivalent type for a remote access-to-subprogram type, go back to the
22180         original RAS entity when displaying an error message, so the casing is
22181         the original source casing.
22182
22183 2005-03-29  Robert Dewar  <dewar@adacore.com>
22184
22185         * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
22186         on param update.
22187
22188 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22189
22190         * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
22191         subtype if code is being pre-analyzed, to prevent un-expanded
22192         references to protected formals, among others.
22193         (Analyze_Explicit_Dereference): If the overloaded prefix includes some
22194         interpretation that can be a call, include the result of the call as a
22195         possible interpretation of the dereference.
22196
22197         * sem_ch5.adb (Process_Bounds): Determine type of range by
22198         pre-analyzing a copy of the original range, and then analyze the range
22199         with the expected type.
22200
22201         * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
22202         with an overloaded prefix where not all interpretations yield an
22203         access to subprogram, do not rewrite node as a call.
22204         (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
22205         the node as a call once the context identifies the interpretation of
22206         the prefix whose call yields the context type.
22207         (Valid_Conversion): For the case of a conversion between
22208         local access-to-subprogram types, check subtype conformance using
22209         Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
22210         detailed error message.
22211
22212 2005-03-29  Ed Schonberg  <schonberg@adacore.com>
22213
22214         * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
22215         indicator, indicate that the formal can never be null.
22216         (Process_Formals): If a formal has a non_null indicator, insert the
22217         resulting subtype immediately before the enclosing subprogram decl,
22218         and not at the beginning of the corresponding declarative part, to
22219         prevent access before elaboration (Ada2005).
22220
22221 2005-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22222
22223         PR ada/19956
22224         * utils.c (finish_record_type): Use variable_size when setting sizes.
22225
22226 2005-03-29  Robert Dewar  <dewar@adacore.com>
22227
22228         * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
22229         guarantee Unix style line terminators for the output files, even when
22230         running on windows.
22231
22232 2005-03-29  Robert Dewar  <dewar@adacore.com>
22233
22234         * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
22235         buffer if an exception is raised.
22236
22237 2005-03-29  Ed Falis  <falis@adacore.com>
22238
22239         * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
22240         VxWorks 653 1.4
22241
22242 2005-03-29  Robert Dewar  <dewar@adacore.com>
22243
22244         * sem_util.ads: Minor reformatting
22245         * gnat_rm.texi: Minor editing.
22246
22247 2005-03-29  Eric Botcazou  <ebotcazou@adacore.com>
22248
22249         * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
22250         * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
22251
22252 2005-03-24  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
22253
22254         * adaint.c (__gnat_portable_spawn): Adjust cast.
22255
22256 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
22257
22258         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
22259
22260 2005-03-17  Pascal Obry  <obry@adacore.com>
22261
22262         * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
22263         used.
22264
22265         * expect.c (__gnat_waitpid): Moved here from adaint.c.
22266         Reimplement under Win32 using Win32 API.
22267
22268         (__gnat_kill) [Win32]: Properly close the process handle before leaving
22269         this routine.
22270
22271 2005-03-17  Eric Botcazou  <ebotcazou@adacore.com>
22272
22273         * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
22274         (DECL_RENAMED_OBJECT): New accessor macro.
22275         (SET_DECL_RENAMED_OBJECT): New setter macro.
22276
22277         * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
22278         object in all cases.  Attach the renamed object to the VAR_DECL.
22279         (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
22280         field is not prescribed.
22281
22282         * misc.c (gnat_handle_option): Handle -gnatO separately.
22283         (gnat_print_decl) <VAR_DECL>: New case.
22284         Print the DECL_RENAMED_OBJECT node.
22285
22286         * lang.opt:  Declare separate -gnatO option.
22287
22288         * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
22289         pointer, replace it with the renamed object.
22290         <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
22291         pointer type if the source is not a fat pointer type whose underlying
22292         array has the same non-zero alias set as that of the destination array.
22293
22294 2005-03-17  Javier Miranda  <miranda@adacore.com>
22295
22296         * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
22297         (Get_Inheritance_Depth): Removed.
22298         (Set_Inheritance_Depth): Removed.
22299
22300         * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
22301         subprogram Get_Expanded_Name because it is not referenced by the
22302         frontend.
22303
22304         * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
22305         (CPP_Get_Inheritance_Depth): Removed.
22306         (CPP_Set_Inheritance_Depth): Removed.
22307
22308         * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
22309
22310 2005-03-17  Robert Dewar  <dewar@adacore.com>
22311
22312         * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
22313         3, since we now expect GCC 3 to do all the work.
22314
22315 2005-03-17  Javier Miranda  <miranda@adacore.com>
22316
22317         * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
22318         of one barrier to avoid wrong usage of this attribute.
22319
22320         * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
22321         First_Private_Entity.
22322
22323         * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
22324         the subprogram against wrong usage.
22325         Adapt the code to traverse the entities in the
22326         scope of a record_type because in addition to its usage regarding
22327         packages, this subprogram is also called by Expand_N_Freeze_Entity
22328         to install the visible declarations of the enclosing scope of a
22329         record_type_with_private to establish the proper visibility before
22330         freezing the entity and related subprograms.
22331
22332 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22333
22334         * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
22335         entry formals.
22336
22337 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22338
22339         * exp_ch3.adb (Check_Attr): New subprogram.
22340         (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
22341         into a new Check_Attr subprogram, in order to provide a more
22342         explanatory error message (including the name of the missing attribute).
22343         (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
22344         subprogram determines whether a default implementation exists for a
22345         given stream attribute.
22346         (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
22347         Determine whether to generate a default implementation for each stream
22348         attribute separately, as this depends on the specific attribute.
22349
22350         * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
22351         limited extension where a stream attribute is missing for a limited
22352         component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
22353         generate a bogus reference to the missing attribute to prevent
22354         cascaded errors. Instead, generate a null statement.
22355
22356         * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
22357         available for a limited type if it has been specified for an ancestor
22358         of the type.
22359
22360 2005-03-17  Ed Schonberg  <schonberg@adacore.com>
22361
22362         * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
22363         entity is an operator.
22364
22365 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22366
22367         * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22368         spec, to make this predicate available to other units.
22369
22370         * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
22371         reimplementing it.
22372
22373         * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
22374         when no distribution runtime library is available.
22375
22376         * sem_res.adb, sem_dist.adb: Disable expansion of remote
22377         access-to-subprogram types when no distribution runtime library is
22378         available.
22379         (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
22380         predicate available to other units.
22381
22382         * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
22383         spec, to make this predicate available to other units.
22384
22385 2005-03-17  Vincent Celier  <celier@adacore.com>
22386
22387         * make.adb (Insert_Project_Sources): Make sure the Q is always
22388         initialized.
22389
22390         * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
22391         the default for the tree, not the global default naming.
22392
22393         * prj-proc.adb (Recursive_Process): No need to put the default naming
22394         in the project data, it's already there.
22395
22396 2005-03-17  Doug Rupp  <rupp@adacore.com>
22397
22398         * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
22399
22400         * 5xcrtl.ads: Renamed to...
22401         * s-crtl-vms64.ads: ...this new file
22402
22403 2005-03-17  Robert Dewar  <dewar@adacore.com>
22404
22405         PR ada/19519
22406         * namet.adb (Copy_One_Character): Set proper wide character encoding
22407         for upper half character if we have upper half encoding.
22408
22409 2005-03-17  Robert Dewar  <dewar@adacore.com>
22410
22411         * par.adb (Par): Improved msg for attempt to recompile predefined unit
22412
22413 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22414
22415         * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
22416         tagged limited type, the TSS is a newly built renaming declaration:
22417         insert it using Set_TSS, not Copy_TSS.
22418
22419 2005-03-17  Javier Miranda  <miranda@adacore.com>
22420
22421         * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
22422         Try_Object_Operation): Analyze the object that is accessible
22423         through the prefix of the subprogram call before we apply
22424         the transformation of the object-operation notation.
22425
22426 2005-03-17  Jose Ruiz  <ruiz@adacore.com>
22427
22428         * s-taprob.adb (Initialize_Protection): Initialize the protected
22429         object's owner to Null_Task.
22430         (Lock): If pragma Detect_Blocking is in effect and the caller of this
22431         procedure is already the protected object's owner then Program_Error
22432         is raised. In addition the protected object's owner is updated.
22433         (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
22434         of this procedure is already the protected object's owner then
22435         Program_Error is raised.
22436         In addition the protected object's owner is updated.
22437         (Unlock): Remove the ownership of the protected object.
22438
22439         * s-taprob.ads (Protection): Add the field Owner, used to store the
22440         protected object's owner.
22441         This component is needed for detecting one type of potentially blocking
22442         operations (external calls on a protected subprogram with the same
22443         target object as that of the protected action). Document the rest of
22444         the components.
22445
22446         * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
22447         Initialize the protected object's owner to Null_Task.
22448         (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
22449         caller of this procedure is already the protected object's owner then
22450         Program_Error is raised.
22451         Do not raise Program_Error when this procedure is called from a
22452         protected action.
22453         (Unlock_Entries): Remove the ownership of the protected object.
22454         (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
22455         of this procedure is already the protected object's owner then
22456         Program_Error is raised.
22457         Do not raise Program_Error when this procedure is called from
22458         a protected action.
22459
22460         * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
22461         used to store the protected object's owner.
22462
22463         * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
22464         effect and this procedure (a potentially blocking operation) is called
22465         from whithin a protected action, Program_Error is raised.
22466         (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
22467         and this procedure (a potentially blocking operation) is called from
22468         whithin a protected action, Program_Error is raised.
22469
22470 2005-03-17  Vincent Celier  <celier@adacore.com>
22471             Nicolas Setton  <setton@adacore.com>
22472
22473         * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
22474         switch, not supported by the linker on Darwin. Add '_' before
22475         <library>init, as this character is added unconditionally by the
22476         compiler.
22477         (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
22478         correct one ".dylib". This fixes detection of the archive files when
22479         building library projects.
22480
22481 2005-03-17  Vincent Celier  <celier@adacore.com>
22482
22483         * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
22484         -gnat83, -gnat95 and -gnat05.
22485
22486 2005-03-17  Vasiliy Fofanov  <fofanov@adacore.com>
22487
22488         * gnat_ugn.texi: Document gnatmem restriction
22489
22490 2005-03-17  Thomas Quinot  <quinot@adacore.com>
22491
22492         * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
22493         cleanup
22494
22495 2005-03-17  Robert Dewar  <dewar@adacore.com>
22496
22497         * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
22498         a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
22499         s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
22500
22501         * casing.adb: Comment improvements
22502
22503 2005-03-17  Pascal Obry  <obry@adacore.com>
22504
22505         * g-expect.adb: Minor reformatting.
22506
22507 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
22508
22509         * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
22510         (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
22511         to dependencies.
22512
22513 2005-03-15  Vincent Celier  <celier@adacore.com>
22514
22515         * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
22516         Add new parameter In_Tree to specify the project tree: needed
22517         by the project manager. Adapt to changes in project manager
22518         using new parameter In_Tree.
22519
22520 2005-03-15  Jakub Jelinek  <jakub@redhat.com>
22521
22522         * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
22523         ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
22524         ada/bldtools to avoid make -jN failures.
22525
22526 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22527
22528         * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
22529         to NULL_TREE on entry.
22530
22531 2005-03-15  Robert Dewar  <dewar@adacore.com>
22532
22533         * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
22534         system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
22535         system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
22536         system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
22537         system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
22538         system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
22539         system-interix.ads, system-solaris-sparc.ads,
22540         system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
22541         system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
22542         system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
22543         system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
22544         system-linux-s390.ads, system-linux-s390x.ads: Add line defining
22545         Compiler_System_Version to be False.
22546
22547         * opt.ads: Add new flag Opt.Address_Is_Private
22548
22549         * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
22550         Add new parameter Compiler_System_Version to avoid checking for
22551         completeness of parameters when compiler is compiling itself.
22552         Allows old versions of GNAT to be compiled with new compiler.
22553
22554 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22555
22556         * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
22557         (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
22558         calling thread.
22559         (Stack_Base_Available): New flag.
22560         (Get_Page_Size): New overloaded functions imported from C.
22561         (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
22562         PROT_ON, PROT_OFF): New constants.
22563         (mprotect): New function imported from C.
22564         (pthread_teb_t): New record type.
22565
22566         * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
22567         (Create_Task): Account for the Yellow Zone and the guard page.
22568
22569 2005-03-15  Vincent Celier  <celier@adacore.com>
22570
22571         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22572         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22573         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
22574         mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
22575         Library_File_Name_For): Add new parameter In_Tree
22576         to specify the project tree: needed by the project manager.
22577         Adapt to changes in project manager using new parameter In_Tree.
22578         Remove local imports, use functions in System.CRTL.
22579
22580         * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
22581         to use the project manager.
22582
22583         * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
22584         In_Tree to designate the project tree. Adapt to changes in the project
22585         manager, using In_Tree.
22586
22587         * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
22588         Copy_Interface_Sources): Add new parameter In_Tree to specify the
22589         project tree: needed by the project manager.
22590         (Build_Library): Check that Arg'Length >= 6 before checking if it
22591         contains "--RTS=...".
22592
22593         * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
22594         Library_File_Name_For): Add new parameter In_Tree to specify the
22595         project tree: needed by the project manager.
22596
22597         * prj.ads, prj.adb: Major modifications to allow several project trees
22598         in memory at the same time.
22599         Change tables to dynamic tables and hash tables to dynamic hash
22600         tables. Move tables and hash tables from Prj.Com (in the visible part)
22601         and Prj.Env (in the private part). Move some constants from the visible
22602         part to the private part. Make other constants deferred.
22603         (Project_Empty): Make it a variable, not a function
22604         (Empty_Project): Add parameter Tree. Returns the data with the default
22605         naming data of the project tree Tree.
22606         (Initialize): After updating Std_Naming_Data, copy its value to the
22607         component Naming of Project Empty.
22608         (Register_Default_Naming_Scheme): Use and update the default naming
22609         component of the project tree, instead of the global variable
22610         Std_Naming_Data.
22611         (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
22612         Tree is not defaulted, return the default naming data of the Tree.
22613         (Initial_Buffer_Size): Constant moved from private part
22614         (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
22615         variables initialized in procedure Initialize.
22616         (Add_To_Buffer): Add two in out parameters to replace global variables
22617         Buffer and Buffer_Last.
22618         (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
22619         functions.
22620         Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
22621         hash tables.
22622         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22623         for the project tree.
22624         (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
22625         constant at the beginning of the package spec, so that they cane be used
22626         in subprograms before their full declarations.
22627         (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
22628         (Empty_Project): Add parameter of type Project_Node_Ref
22629         (Private_Project_Tree_Data): Add component Default_Naming of type
22630         Naming_Data.
22631         (Buffer, Buffer_Last): remove global variables
22632         (Add_To_Buffer): Add two in out parameters to replace global variables
22633         Buffer and Buffer_Last.
22634         (Current_Packages_To_Check): Remove global variable
22635         (Empty_Name): Move to private part
22636         (No-Symbols): Make it a constant
22637         (Private_Project_Tree_Data): New type for the private part of the
22638         project tree data.
22639         (Project_Tree_Data): New type for the data of a project tree
22640         (Project_Tree_Ref): New type to designate a project tree
22641         (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
22642         for the project tree.
22643
22644         * prj-attr.ads: Add with Table; needed, as package Prj no longer
22645         imports package Table.
22646
22647         * prj-com.adb: Remove empty, no longer needed body
22648
22649         * prj-com.ads: Move most of the content of this package to package Prj.
22650
22651         * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
22652         designate the project node tree and Packages_To_Check to replace
22653         global variable Current_Packages_To_Check.
22654         Add new parameters In_Tree and Packages_To_Check to local subprograms,
22655         when needed. Adapt to changes in project manager with project node tree
22656         In_Tree.
22657
22658         * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
22659         project tree to most subprograms. Move tables and hash tables to
22660         private part of package Prj.
22661         Adapt to changes in project manager using project tree In_Tree.
22662
22663         * prj-makr.adb (Tree): New constant to designate the project node tree
22664         Adapt to change in project manager using project node tree Tree
22665
22666         * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
22667         display the Library_Src_Dir and the Library_Dir.
22668         Add new parameter In_Tree to designate the project node tree to most
22669         subprograms. Adapt to changes in the project manager, using project tree
22670         In_Tree.
22671         (Check_Naming_Scheme): Do not alter the casing on platforms where
22672         the casing of file names is not significant.
22673         (Check): Add new parameter In_Tree to designate the
22674
22675         * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
22676         designate the project tree.
22677         Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
22678
22679         * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
22680         to replace those that were in the private part of package Prj.
22681         Add new parameter In__Tree to designate the project node tree to most
22682         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22683         (Post_Parse_Context_Clause): When specifying the project node of a with
22684         clause, indicate that it is a limited with only if there is "limited"
22685         in the with clause, not necessarily when In_Limited is True.
22686         (Parse): Add new parameter In_Tree to designate the project node tree
22687
22688         * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
22689         designate the project node tree. Adapt to change in Prj.Tree with
22690         project node tree In_Tree.
22691
22692         * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
22693         tree In_Tree in the call to function Empty_Process to give its initial
22694         value to the project data Processed_Data.
22695         Add new parameters In_Tree to designate the project tree and
22696         From_Project_Node_Tree to designate the project node tree to several
22697         subprograms. Adapt to change in project manager with project tree
22698         In_Tree and project node tree From_Project_Node_Tree.
22699
22700         * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
22701         to replace those that were in the private part of package Prj.
22702         Add new parameter In_Tree to designate the project node tree to most
22703         subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
22704
22705         * prj-tree.ads, prj-tree.adb: Add new parameter of type
22706         Project_Node_Tree_Ref to most subprograms.
22707         Use this new parameter to store project nodes in the designated project
22708         node tree.
22709         (Project_Node_Tree_Ref): New type to designate a project node tree
22710         (Tree_Private_Part): Change table to dynamic table and hash tables to
22711         dynamic hash tables.
22712
22713         * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
22714         the project tree to most subprograms. Adapt to changes in project
22715         manager using project tree In_Tree.
22716
22717         * makegpr.adb (Project_Tree): New constant needed to use project
22718         manager.
22719
22720 2005-03-15  Olivier Hainque  <hainque@adacore.com>
22721
22722         * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
22723         for sigactions with SA_SIGINFO set. Call
22724         __gnat_adjust_context_for_raise before raising, to perform the
22725         potentially required adjustments to the machine context for the GCC
22726         unwinder.
22727
22728         * raise.h (__gnat_adjust_context_for_raise): New prototype.
22729
22730         * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
22731         Adjust PC by one in the provided machine context.
22732         (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
22733         so that the handler is passed the context structure to adjust prior to
22734         the raise.
22735         (__gnat_error_handler) HPUX: Adjust the signature to match what an
22736         SA_SIGINFO sigaction should look like. Call
22737         __gnat_adjust_context_for_raise before actually raising.
22738         (__gnat_adjust_context_for_raise): Default noop to help PC
22739         adjustments before raise from signal handlers.
22740         (__gnat_error_handler): Indirectly call a predicate function to
22741         determine if a condition should be resignaled or not.
22742         (__gnat_set_resignal_predicate): User interface to modify the predicate.
22743         (__gnat_default_resignal_p): Default GNAT predicate.
22744
22745 2005-03-15  Doug Rupp  <rupp@adacore.com>
22746
22747         * adaint.c: Prefix #include of VMS system header files with vms/
22748         [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
22749         Do not define a dummy function "convert_addresses" under Darwin,
22750         not needed.
22751
22752         * tb-alvms.c, expect.c: Prefix #include of VMS system header files
22753         with vms/
22754
22755 2005-03-15  Nicolas Setton  <setton@adacore.com>
22756
22757         * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
22758         PPC/AIX.
22759
22760 2005-03-15  Robert Dewar  <dewar@adacore.com>
22761
22762         * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
22763         AI-386.
22764
22765         * a-retide.ads: Minor comment changes
22766
22767 2005-03-15  Robert Dewar  <dewar@adacore.com>
22768
22769         * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
22770         a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
22771         Realloc_For_Chunk to private part of package.
22772         New subprograms for AI-301
22773
22774         * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
22775         Get_Line procedure.
22776         Avoid unnecessary use of Get/Set_Wide_String
22777
22778 2005-03-15  Robert Dewar  <dewar@adacore.com>
22779
22780         PR ada/13470
22781         * a-stunau.ads, a-stunau.adb:
22782         Change interface to allow efficient (and correct) implementation
22783         The previous changes to allow extra space in unbounded strings had
22784         left this interface a bit broken.
22785
22786         * a-suteio.adb: Avoid unnecessary use of Get/Set_String
22787
22788         * g-spipat.ads, g-spipat.adb: New interface for Get_String
22789         Minor reformatting (function specs)
22790
22791         * g-spitbo.adb: New interface for Get_String
22792
22793         * g-spitbo.ads: Minor reformatting
22794
22795         * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
22796
22797         * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
22798
22799 2005-03-15  Javier Miranda  <miranda@adacore.com>
22800             Robert Dewar  <dewar@adacore.com>
22801             Thomas Quinot  <quinot@adacore.com>
22802             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22803
22804         * atree.ads, atree.adb: Add support for Elist24 field
22805
22806         * atree.h: Fix wrong definition of Field27
22807         Add support for Elist16 field
22808         Add support for Elist24 field
22809
22810         * einfo.ads, einfo.adb (Abstract_Interfaces,
22811         Set_Abstract_Interfaces): New subprograms.
22812         (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
22813         subprograms.
22814         (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
22815         entities rather than a single node.
22816         (Is_Interface, Set_Is_Interface): New subprogram
22817         (First_Tag_Component): New syntesized attribute
22818         (Next_Tag_Component): New synthesized attribute
22819         (Write_Entity_Flags): Upgraded to write Is_Interface
22820         (Write_Field24_Name): Upgraded to write Abstract_Interfaces
22821         (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
22822         (Task_Body_Procedure): New subprogram to read this attribute.
22823         (Set_Task_Body_Procedure): New subprogram to set this attribute.
22824         (Has_Controlled_Component): Now applies to all entities.
22825         This is only a documentation change, since it always worked to apply
22826         this to other than composite types (yielding false), but now this is
22827         official.
22828         Update documentation on Must_Be_Byte_Aligned for new spec
22829
22830         * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
22831         exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
22832         uses of the Access_Disp_Table attribute to reference the first dispatch
22833         table associated with a tagged type. As
22834         part of the implementation of abstract interface types,
22835         Access_Disp_Table has been redefined to contain a list of dispatch
22836         tables (rather than a single dispatch table).
22837         Similarly, upgrade all the references to Tag_Component by the
22838         new attribute First_Tag_Component.
22839         (Find_Inherited_TSS): Moved to exp_tss.
22840         Clean up test in Expand_N_Object_Declaration for cases
22841         where we need to do a separate assignment of the initial value.
22842         (Expand_N_Object_Declaration): If the expression in the
22843         declaration of a tagged type is an aggregate, no need to generate an
22844         additional tag assignment.
22845         (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
22846         is to be deleted.
22847         Bit packed array ops are only called if operands are known to be
22848         aligned.
22849         (Component_Equality): When returning an N_Raise_Program_Error statement,
22850         ensure that its Etype is set to Empty to avoid confusing GIGI (which
22851         expects that only expressions have a bona fide type).
22852         (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
22853         determine the amount of data to be copied.
22854
22855         * par.adb (P_Interface_Type_Definition): New subprogram that parses the
22856         new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
22857             INTERFACE_TYPE_DEFINITION ::=
22858               [limited | task | protected | synchronized] interface
22859                 [AND interface_list]
22860
22861         * par-ch3.adb (P_Type_Declaration): Modified to give support to
22862         interfaces.
22863         (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
22864         interfaces.
22865         (P_Interface_Type_Definition): New subprogram that parses the new
22866         syntax rule of Ada 2005 interfaces
22867         (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
22868         messages by the correct RENAMES (quotes removed).
22869
22870         * sem_prag.adb: Upgrade all the references to Tag_Component by the new
22871         attribute First_Tag_Component.
22872
22873         * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
22874         (Interface_List, Set_Interface_List): New subprograms.
22875         (Interface_Present, Set_Interface_Present): New subprograms.
22876         (Limited_Present, Set_Limited_Present): Available also in derived
22877         type definition nodes.
22878         (Protected_Present, Set_Protected_Present): Available also in
22879         record type definition and
22880         derived type definition nodes.
22881         (Synchronized_Present, Set_Synchronized_Present): New subprograms.
22882         (Task_Present, Set_Task_Present): New subprogram.
22883         (Task_Body_Procedure): Removed.
22884         (Set_Task_Body_Procedure): Removed.
22885         These subprogram have been removed because the attribute
22886         Task_Body_Procedure has been moved to the corresponding task type
22887         or task subtype entity to leave a field free to store the list
22888         of interfaces implemented by a task (for AI-345)
22889         Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
22890         (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
22891         expression flag Do_Range_Check
22892         (Exception_Junk): Change to Flag7 to accomodate above change
22893         (Box_Present, Default_Name, Specification, Set_Box_Present,
22894         Set_Default_Name, Set_Specification): Expand the expression
22895         "X in N_Formal_Subprogram_Declaration" into the corresponding
22896         two comparisons. Required to use the csinfo tool.
22897
22898         * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
22899         "with string" given.
22900
22901         * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
22902         expression given.
22903
22904         * par-ch11.adb (P_Raise_Statement): Recognize with string expression
22905         in 2005 mode
22906
22907         * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
22908         attribute Task_Body_Procedure rather than the old semantic field that
22909         was available in the task_type_declaration node.
22910
22911         * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
22912         interface type definitions.
22913         (P_Formal_Derived_Type_Definition): Modified to handle the list of
22914         interfaces.
22915
22916         * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
22917         task type declaration.
22918         (P_Protected): Modified to handle the list of interfaces in a
22919         protected type declaration.
22920
22921 2005-03-15  Doug Rupp  <rupp@adacore.com>
22922             Vincent Celier  <celier@adacore.com>
22923
22924         * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
22925         (Gen_Output_File_C): Likewise.
22926         (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
22927
22928 2005-03-15  Thomas Quinot  <quinot@adacore.com>
22929
22930         * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
22931         is an N_Raise_Constraint_Error node, create a new copy of it without
22932         going through a call to Duplicate_Subexpr.
22933
22934 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22935             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22936             Nicolas Setton  <setton@adacore.com>
22937             Ed Schonberg  <schonberg@adacore.com>
22938
22939         PR ada/19900
22940         PR ada/19408
22941         PR ada/19140
22942         PR ada/20255
22943         * decl.c (gnat_to_gnu_field): Reject aliased components with a
22944         representation clause that prescribes a size not equal to the rounded
22945         size of their types.
22946         (gnat_to_gnu_entity, case E_Component): Always look at
22947         Original_Record_Component if Present and not the entity.
22948         (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
22949         of tagged extension types by not making field for components that are
22950         inside the parent.
22951         (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
22952         (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
22953         expression to the type of the object when the object is constant.
22954         Reverse defer_debug_incomplete_list before traversing it, so that trees
22955         are processed in the order at which they were added to the list. This
22956         order is important when using the stabs debug format.
22957         If we are deferring the output of debug information, also defer this
22958         output for a function return type.
22959         When adding fields to a record, prevent emitting debug information
22960         for incomplete records, emit the information only when the record is
22961         complete.
22962         (components_to_record): New parameter defer_debug.
22963         (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
22964         (gnat_to_gnu_field_decl): New function.
22965         (substitution_list, annotate_rep): Call it.
22966         (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
22967         (gnat_to_gnu_entity, case E_Record_Type): Likewise.
22968         No longer update discriminants to not be a COMPONENT_REF.
22969         (copy_alias_set): Strip padding from input type; also handle
22970         unconstrained arrays properly.
22971
22972         * gigi.h (write_record_type_debug_info): New function.
22973         Convert to use ANSI-style prototypes. Remove unused
22974         declarations for emit_stack_check, elab_all_gnat and
22975         set_second_error_entity.
22976         (gnat_to_gnu_field_decl): New decl.
22977
22978         * utils.c (write_record_type_debug_info): New function.
22979         (finish_record_type): Delegate generation of debug information to
22980         write_record_type_debug_info.
22981         (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
22982         (update_pointer_to): Fix pasto.
22983         (convert) <UNION_TYPE>: Accept slight type variations when
22984         converting to an unchecked union type.
22985
22986         * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
22987         replace the N_Freeze_Entity with a null statement.
22988
22989         * freeze.adb (Freeze_Expression): If the freeze nodes are generated
22990         within a constrained subcomponent of an enclosing record, place the
22991         freeze nodes in the scope stack entry for the enclosing record.
22992         (Undelay_Type): New Subprogram.
22993         (Set_Small_Size): Pass T, the type to modify; all callers changed.
22994         (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
22995         within records; allow them to have freeze nodes if their base types
22996         aren't frozen yet.
22997
22998         * exp_util.adb (Remove_Side_Effects): Properly test for
22999         Expansion_Delayed and handle case when it's inside an
23000         N_Qualified_Expression.
23001
23002         * sem_ch3.adb (Derived_Type_Declaration): New predicate
23003         Comes_From_Generic, to recognize accurately that the parent type in a
23004         derived type declaration can be traced back to a formal type, because
23005         it is one or is derived from one, or because its completion is derived
23006         from one.
23007         (Constrain_Component_Type): If component comes from source and has no
23008         explicit constraint, no need to constrain in in a subtype of the
23009         enclosing record.
23010         (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
23011         Minor change to propagate Is_Ada_2005 flag
23012
23013         * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
23014         Expansion_Delayed is False.
23015         (assoc_to_constructor): Ignore fields that have a
23016         Corresponding_Discriminant.
23017         (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
23018         function returns "by target", dereference the target pointer using the
23019         type of the actual return value.
23020         <all>: Be prepared for a null gnu_result.
23021         (processed_inline_subprograms): Check flag_really_no_inline
23022         instead of flag_no_inline.
23023         (set_second_error_entity): Remove unused function.
23024         (gnat_to_gnu, case N_Selected_Component): Call
23025         gnat_to_gnu_field_decl.
23026         (assoc_to_constructor): Likewise.
23027
23028 2005-03-15  Robert Dewar  <dewar@adacore.com>
23029             Ed Schonberg  <schonberg@adacore.com>
23030             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23031
23032         * exp_pakd.adb (Create_Packed_Array_Type): Do not set
23033         Must_Be_Byte_Aligned for cases where we do not need to use a
23034         System.Pack_nn unit.
23035
23036         * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
23037         as procedures.
23038         Needed now that we do some processing for IN parameters as well. This
23039         may well fix some unrelated errors.
23040         (Expand_Call): Handle case of unaligned objects (in particular those
23041         that come from packed arrays).
23042         (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
23043         renamed entity is an inherited operation, re-expand the call using the
23044         original operation, which is the one to call.
23045         Detect attempt to inline parameterless recursive subprogram.
23046         (Represented_As_Scalar): Fix to work properly with private types
23047         (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
23048         accurate estimate. Yields True in far fewer cases than before,
23049         improving the quality of code that depends on this test.
23050
23051         * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
23052         over both visible and private declarations to remove them from tree,
23053         and mark subprograms declared in package as eliminated, to prevent
23054         spurious use in subsequent compilation of generic units in the context.
23055
23056         * exp_util.ads: Minor cleanup in variable names
23057
23058         * sem_eval.ads, sem_eval.adb: Minor reformatting
23059         (Compile_Time_Known_Bounds): New function
23060
23061 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23062
23063         * exp_ch7.adb (Convert_View): Use base types of underlying types when
23064         determining whether an unchecked conversion is needed for the argument
23065         of an initialization call.
23066
23067 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23068
23069         * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
23070         that appears in the instantiation rather than the internal subtype
23071         generated in the wrapper package, to avoid anomalies in gigi when the
23072         target is derived from a private type whose full view is an access type.
23073
23074 2005-03-15  Robert Dewar  <dewar@adacore.com>
23075
23076         * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
23077         not needed.
23078         Add documentation to replace the use of this flag
23079         Fix kludge for Maximum_Alignment on x86 so that it does not apply to
23080         the x86_64.
23081
23082 2005-03-15  Thomas Quinot  <quinot@adacore.com>
23083
23084         * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
23085         here from exp_attr so it can be shared between exp_attr and exp_dist.
23086         (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
23087         all TSS names, not a subset thereof, and the previous name introduced
23088         an unnecessarily confusion that a distinction might exist between
23089         "OK" TSS names and some "not OK" TSS names.
23090
23091 2005-03-15  Doug Rupp  <rupp@adacore.com>
23092
23093         * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
23094         Command_Name.
23095
23096 2005-03-15  Pascal Obry  <obry@adacore.com>
23097             Eric Botcazou  <ebotcazou@adacore.com>
23098
23099         PR ada/20226
23100         PR ada/20344
23101         * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
23102         when IN_RTS. This is to work around a bootstrap path problem.
23103
23104         * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
23105         table and pass it to __gnat_install_SEH_handler().
23106         (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
23107
23108         * lang.opt: Fix specification of -fRTS=.
23109
23110 2005-03-15  Doug Rupp  <rupp@adacore.com>
23111             Bernard Banner  <banner@adacore.com>
23112             Vincent Celier  <celier@adacore.com>
23113             Arnaud Charlet  <charlet@adacore.com>
23114
23115         PR ada/6852
23116         This change works fine when gnatlib is built from the gcc directory,
23117         but does not work when using the libada Makefile, since GCC_FOR_TARGET
23118         is not passed to ada/Makefile.in, so more work is needed by a
23119         Makefile/configure expert.
23120
23121         * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
23122         set GMEM_LIB on ia64 linux to add optional support for gnatmem.
23123         Setup gnatlink switch -M for x86_64 linux, as it is already setup
23124         for Linux x86.
23125         (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
23126         Run ranlib on libgccprefix.a
23127         Define PREFIX_OBJS for Darwin, to build libgccprefix.
23128         (ADA_INCLUDE_SRCS): Split Ada packages.
23129
23130 2005-03-15  Robert Dewar  <dewar@adacore.com>
23131
23132         * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
23133
23134         * impunit.adb: Add GNAT.UTF_32
23135
23136         * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
23137
23138         * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
23139         now uses GNAT.UTF_32).
23140
23141         * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
23142         capabilities for categorizing characters using Unicode categories
23143
23144 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23145
23146         * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
23147         instantiation that has been rewritten as a package body, retrieve spec
23148         to generate proper name for implicit_with_clause.
23149         (Install_Parents): Recognize a parent that is an instantiation but has
23150         been rewritten as a package declaration during analysis.
23151
23152 2005-03-15  Javier Miranda  <miranda@adacore.com>
23153             Ed Schonberg  <schonberg@adacore.com>
23154
23155         * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
23156         parameter reported some error we immediately return. This improves the
23157         behaviour of the frontend in case of errors.
23158         (Install_Parent, Remove_Parent): Introduce new flag
23159         Parent_Unit_Visible, to preserve the proper visibility of the ultimate
23160         ancestor of a generic child unit, when the child is being instantiated.
23161         (Inline_Instance_Body): If we are compiling the private
23162         part or the body of a child unit, restore the proper visibility of the
23163         parents after compiling the instance body.
23164
23165 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23166             Javier Miranda  <miranda@adacore.com>
23167
23168         PR ada/15608
23169         * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
23170         of a private type, in which case it is underlying_type that denotes
23171         the proper task. Also modified to use the new entity attribute
23172         that is directly available in the task type and task subtype entities
23173         (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
23174         arrays when other dimensions than the first are constrained by
23175         discriminants of an enclosing record.
23176         (Insert_Explicit_Dereference): If the prefix is an indexed component or
23177         a combination of indexed and selected components, find ultimate entity
23178         and generate the appropriate reference for it, to suppress spurious
23179         warnings.
23180         (Note_Possible_Modification): If an entity name has no entity, return.
23181         (Is_Variable): A function call never denotes a variable.
23182         (Requires_Transient_Scope): For record types, recurse only on
23183         components, not on internal subtypes that may have been generated for
23184         constrained components.
23185
23186 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23187
23188         * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
23189         Eliminated as candidates for resolution. Both efficient, and avoids
23190         anomalies with operators declared in deleted code.
23191         (Process_Implicit_Dereference_Prefix): Use this procedure whenever
23192         expansion is disabled (as when compiling a generic) to prevent spurious
23193         warnings on prefixes of selected components.
23194
23195 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23196
23197         * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
23198         attached to a list before checking whether it appears in the private
23199         declarations of the current package.
23200         (Make_Inequality_Operator): Insert declaration in proper declarative
23201         list rather than just setting the Parent field, so that
23202         Is_Private_Declaration can handle it properly.
23203
23204 2005-03-15  Ed Schonberg  <schonberg@adacore.com>
23205
23206         * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
23207         a renaming a body, check that the renamed subprogram in not intrinsic.
23208         (Find_Direct_Name): If several use_visible entities hide
23209         each other, and the context is a predefined file compiled through
23210         rtsfind, keep only the entity that comes from a predefined file.
23211
23212 2005-03-15  Geert Bosch  <bosch@adacore.com>
23213
23214         * s-fatgen.adb (Valid): Extend special exceptions to account for long
23215         long float padding to also cover AMD64 and IA64.
23216
23217 2005-03-15  Gary Dismukes  <dismukes@adacore.com>
23218
23219         * s-imgwch.adb: Add with and use of Interfaces.
23220         (Img_Wide_Character): Change type of Val to Unsigned_16.
23221         (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
23222
23223 2005-03-15  Matthew Gingell  <gingell@adacore.com>
23224
23225         * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
23226
23227 2005-03-15  Robert Dewar  <dewar@adacore.com>
23228
23229         * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
23230
23231         * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
23232
23233         * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
23234
23235 2005-03-15  Robert Dewar  <dewar@adacore.com>
23236
23237         * s-bitops.adb, s-bitops.ads,
23238         s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
23239         s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
23240         tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
23241         s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
23242         s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
23243         s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
23244         s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
23245         s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
23246         reformatting.
23247
23248 2005-03-15  Eric Botcazou  <ebotcazou@adacore.com>
23249
23250         * utils2.c (build_binary_op): Fix typo.
23251
23252 2005-03-15  Doug Rupp  <rupp@adacore.com>
23253
23254         * s-crtl.ads (popen,pclose): New imports.
23255
23256 2005-03-15  Cyrille Comar  <comar@adacore.com>
23257
23258         * comperr.adb (Compiler_Abort): remove references to obsolete
23259         procedures in the bug boxes for various GNAT builds.
23260
23261 2005-03-15  Vincent Celier  <celier@adacore.com>
23262
23263         * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
23264
23265 2005-03-15  Geert Bosch  <bosch@adacore.com>
23266             Arnaud Charlet  <charlet@adacore.com>
23267             Robert Dewar  <dewar@adacore.com>
23268             Cyrille Comar  <comar@adacore.com>
23269             Sergey Rybin  <rybin@adacore.com>
23270
23271         * gnat_ugn.texi: Remove extended inline assembly example, as it was far
23272         too specific and long-winded to be appropriate for the GNAT User's
23273         Guide.
23274         Warn about use of GCC switches not documented in the GNAT User's Guide,
23275         as these may cause generated code to not conform to Ada semantics.
23276         Remove mention of -gdwarf-2 for sparc64, since this is now the default.
23277         Add documentation for -gnat95 and -gnat05 switches
23278         Remove paragraph documenting obsolete way to refer to third party
23279         libraries.
23280         Add a few references to Ada_05 that were missing.
23281         Update documentation on -gnatZ/-gnatL.
23282         Document limitation when using -m64 under Solaris.
23283         Change the "Name Casing" subsection of the pretty-printer section
23284         according to the changes in the dictionary processing.
23285
23286         * gnat_rm.texi: Document the Ada_05 pragma.
23287         Section on record representation clauses describes the new more
23288         relaxed rules about placement of large packed bit array components.
23289         Add documentation of GNAT.UTF_32
23290
23291 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
23292
23293         * misc.c (gnat_post_options): Turn off structural
23294         aliasing for now.
23295
23296 2005-03-08  Laurent Guerby  <laurent@guerby.net>
23297
23298         * system-linux-sparc.ads: Fix typo in previous commit.
23299
23300 2005-03-07  James A. Morrison  <phython@gcc.gnu.org>
23301             Laurent Guerby  <laurent@guerby.net>
23302
23303         PR ada/20035
23304         * system-linux-sparc.ads: New.
23305         * Makefile.in: Add sparc linux entry.
23306
23307 2005-02-27  Danny Smith  <dannysmith@users.sourceforge.net>
23308
23309         * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
23310         parameters as unused.
23311
23312 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
23313         Partial merge from libada-gnattools-branch:
23314
23315         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23316         * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
23317         into code in gnattools/Makefile.in.  Remove direct dependencies on
23318         stamp-tools by tools clauses.
23319         2004-12-02  Nathanael Nerode  <neroden@gcc.gnu.org>
23320         * config-lang.in: Add gnattools to $lang_dirs.
23321
23322 2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>
23323
23324         PR ada/19942
23325         * utils.c (gnat_type_for_mode): Return null instead of ICE because
23326         we asked for an unknown mode.
23327
23328 2005-02-12  Richard Henderson  <rth@redhat.com>
23329
23330         * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
23331         validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
23332
23333 2005-02-10  Andreas Jaeger  <aj@suse.de>
23334
23335         * init.c (__gnat_initialize): Mark parameter as unused.
23336
23337 2005-02-09  Doug Rupp  <rupp@adacore.com>
23338
23339         * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
23340         * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
23341
23342 2005-02-09  Doug Rupp  <rupp@adacore.com>
23343
23344         * gnatchop.adb (dup, dup2),
23345         g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
23346
23347         * gnatlbr.adb (mkdir),
23348         mlib-tgt-vms-ia64.adb (popen, plose):  Import with decc$ prefix.
23349
23350         * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
23351
23352 2005-02-09  Doug Rupp  <rupp@adacore.com>
23353
23354         * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
23355
23356 2005-02-09  Robert Dewar  <dewar@adacore.com>
23357             Thomas Quinot  <quinot@adacore.com>
23358             Javier Miranda  <miranda@adacore.com>
23359             Pascal Obry  <obry@adacore.com>
23360             Ed Schonberg  <schonberg@adacore.com>
23361             Doug Rupp  <rupp@adacore.com>
23362             Gary Dismukes  <dismukes@adacore.com>
23363             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23364
23365         * g-zstspl.ads: New file.
23366
23367         * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
23368
23369         * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
23370         Ada 95 mode
23371         Add definition of Wide_Wide_Space for AI-285
23372
23373         * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
23374         interface (to support Ada 95 and Ada 2005 units).
23375         Add Unbounded_IO files
23376         Add entries for Wide_Wide packages for AI-285
23377         Add list of containers packages to Ada 2005 unit list
23378
23379         * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
23380         support new Unbounded_IO package cleanly.
23381
23382         * g-utf_32.ads, g-utf_32.adb: New files.
23383
23384         * Makefile.rtl: Add entry for g-utf_32
23385         Add new files for Unbounded_IO
23386         Adjust make file for new AI-285 wide wide packages
23387         Add AI-302 containers to the run time.
23388
23389         * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
23390         a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
23391         subprograms for AI-301.
23392
23393         * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
23394
23395         * a-stunau.ads: Minor comment correction
23396
23397         * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
23398         etc.
23399         Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
23400         (Check_RPC): Update to match changes in expanded code.
23401         Clean up unused entity.
23402
23403         * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
23404         was not taken into account.
23405         This includes proper initialization with Normalize_Scalars.
23406         (Get_Simple_Init_Val): Major rewrite for initialize scalars and
23407         normalize scalars cases (particularly the latter) to do a better job
23408         of finding invalid representations.
23409
23410         * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
23411
23412         * s-strops.ads, s-strops.adb: Remove string normalize routines, never
23413         used
23414
23415         * exp_dist.adb: Add support for wide wide character type
23416         (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
23417         private part, generate stub bodies at the end of the private part,
23418         not the visible part.
23419         (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
23420         PolyORB support.
23421         (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
23422         generic wrapper to execute final processing after completing the
23423         expansion of the RPC receiver for an RACW.
23424
23425         * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
23426         packages and attributes.
23427         (Preset_Names): Addition of the new reserved words of Ada 2005,
23428         that is interface, overriding and synchronized.
23429         (Get_Pragma_Id): Give support to the use of the new reserved word
23430         "interface" as a pragma name.
23431         (Is_Pragma_Name): Give support to the use of the new reserved word
23432         "interface" as a pragma name.
23433         (Preset_Names): Add stream_size string for the Stream_Size Ada2005
23434         attribute implementation.
23435
23436         * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
23437         checks to entities that are output parameters of Asm operations.
23438         Handle the Stream_Size attribute.
23439         Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
23440
23441         * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
23442
23443         * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
23444         for second parameter being 0.0.
23445         Add support for wide wide character type.
23446         (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
23447
23448         * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
23449         s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
23450         s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
23451         s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
23452         for wide wide character cases.
23453
23454         * cstand.adb: Create entities for Wide_Wide_Character and
23455         Wide_Wide_String.
23456
23457         * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
23458         accordance with AI-258.
23459         Add new declarations for 16/32 bit C character types (Part of AI285)
23460
23461         * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
23462         (Obsolescent_Warning): New field
23463         (Rep_Clause): New local subprogram used to share code. Returns the rep
23464         clause for which the name is given in parameter.
23465         (Has_Stream_Size_Clause): New routine.
23466         (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
23467         (Address_Clause): Implementation is now using Rep_Clause.
23468         (Alignment_Clause): Idem.
23469         (Size_Clause): Idem.
23470
23471         * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
23472         entity in non-Ada 2005 mode and generate warning.
23473
23474         * par-prag.adb: Add handling of one argument form for pragma Ada_05.
23475         (Prag): Code cleanup. Remove old gnat pragma "overriding"
23476
23477         * sem_prag.adb: Add handling of one argument form for pragma Ada_05
23478         (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
23479         on the named unit if the pragma is not in the current compilation unit,
23480         so that elaboration calls in the current unit can set up an elaboration
23481         dependency on the named unit, as needed.
23482         (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
23483         subprogram as well as for subprograms declared within a package.
23484         (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
23485         pragma overriding.
23486
23487         * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
23488         to z) to avoid some instances of duplication for Wide_Wide packages.
23489
23490         * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
23491         characters.
23492
23493         * scn.adb: Char_Literal_Value field is now a Uint
23494
23495         * scng.adb: Significant rewrite to handle new Ada 2005 features
23496         allowing wide and wide wide characters in program text, e.g. for
23497         identifiers, as described in AI-285.
23498         (Set_Reserved): New procedure, makes setting up keywords cleaner.
23499         (Initialize_Scanner): Register the new reserved words of Ada 2005.
23500         (Scan): Give support to the new reserved words.
23501
23502         * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
23503         warning notifying that interface, overriding, and synchronized are
23504         new reserved words.
23505         (P_Pragma): Allow the use of the new reserved word "interface" as
23506         a pragma name.
23507
23508         * gnatls.adb, gnatbind.adb,
23509         ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
23510         identifiers named "interface" to "SAL_Interface".
23511
23512         * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
23513         (Structured Exception handling).
23514         (Gen_Main_C): Idem.
23515
23516         * bindgen.adb:
23517         (Gen_Main_Ada): Set the default exit code if specified.
23518         (Gen_Main_C): Likewise.
23519         Part of *DC20-006.
23520         (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
23521         Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
23522
23523         * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
23524         new -Xnnn switch.
23525
23526         * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
23527         has a collision with the new Ada 2005 "interface" reserved word.
23528
23529         * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
23530         generate a warning notifying that interface, overriding, and
23531         synchronized are new reserved words.
23532
23533         * scans.ads (Token_Type): Addition of the tokens corresponding to the
23534         new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
23535         and Tok_Synchronized.
23536
23537         * sem_res.adb (Resolve_Actuals): Change error messages to refer to
23538         "dispatching" rather than "primitive" operations, since dispatching
23539         calls are now allowed to abstract formal subprograms (which are not
23540         primitive).
23541         Char_Literal_Value field is now a Uint
23542         (Resolve_Slice): If the prefix is an access to an unconstrained array,
23543         compute the actual subtype of the designated object to impose the proper
23544         index constraints.
23545         (Resolve_Selected_Component): Do not insert an access check if the
23546         prefix is an access type: such a node is expanded into an explicit
23547         dereference, on which the access check is performed anyway. Removes
23548         expensive duplicate checks.
23549         (Resolve_Call): Use new flag Is_Obsolescent and field
23550         Obsolescent_Warning so that pragma Obsolescent works on library
23551         subprograms.
23552         Add support for wide wide character type
23553         (Resolve_Allocator): Replace the error message on wrong null-exclusion
23554         value by a warning message.
23555         (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
23556         as fixed-point, and one of the operands is non-static and universal, it
23557         can only be an illegal exponentiation operation, in which case there is
23558         no real value to retrieve.
23559
23560         * exp_strm.adb: Add support for wide wide character type
23561         (Build_Elementary_Input_Call): Compute the size of the stream element by
23562         querying the rep chain to find the Stream_Attribute attribute value.
23563         (Build_Elementary_Write_Call): Ditto.
23564
23565         * sem_aggr.adb: Char_Literal_Value field is now a Uint
23566         Add support for wide wide character type
23567         Replace the error messages on wrong null-exclusion value by warnings
23568         as described in Ada 2005.
23569         (Resolve_Extension_Aggregate): Document the fact that the error
23570         message on class-wide expressions in extensions aggregates.
23571
23572         * sem_case.adb: Add support for wide wide character type
23573
23574         * sem_ch13.adb: Add support for wide wide character type
23575         (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
23576
23577         * sem_ch3.adb: Add support for wide wide character type
23578         (Process_Subtype): If constraint is illegal for the type, set Ekind of
23579         now-useless Itype, to prevent cascaded errors on a compiler built
23580         without -gnatp.
23581
23582         * sem_ch8.adb: Add with and use of Sem_Disp.
23583         (Analyze_Subprogram_Renaming): Replace unclean uses of
23584         Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
23585         of Corresponding_Spec to Empty).
23586         (Attribute_Renaming): Replace use of Corresponding_Spec with
23587         Corresponding_ Formal_Spec and simplify condition.
23588         (Use_One_Package): Check that scope of homonym of identifier is defined,
23589         before checking whether it is a wrapper package.
23590         Add support for wide wide character type
23591
23592         * sem_eval.adb: Add support for wide wide character type.
23593         (Eval_Arithmetic_Op): Check for compile time known signed integer
23594         overflow in the non-static case.
23595         (Subtypes_Statically_Match): A formal scalar type and its base type do
23596         not statically match.
23597
23598         * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
23599         "not in" for test of N_Formal_Subprogram_Declaration (which is now a
23600         subtype).
23601         (Unit_Declaration_Node): Ditto.
23602         (Is_Variable_Prefix):  For the case of an indexed component whose prefix
23603         has a packed array type, the prefix has been rewritten into a type
23604         conversion. Determine variable-ness from the converted expression.
23605         Handle wide wide character cases.
23606
23607         * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
23608
23609         * stringt.ads, stringt.adb: Handle full UTF-32 range.
23610         Remove ["0A"] from comment, since it can look like a line terminator.
23611         Currently we don't permit this, but this is under discussion by the
23612         ARG, and it is easy enough to use a different example.
23613
23614         * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
23615         handling UTF-32 encoding for wide wide character.
23616         Implement new brackets coding ["hhhhhhhh"]
23617         Add UTF-8 encodings for full UTF-32 range
23618
23619         * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
23620
23621         * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
23622         bit range Add full UTF-32 support.
23623         (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
23624         notify that constraint error will be raised at run-time
23625         because a null value is assigned to a null-excluding object.
23626         Remove some obsolete declarations and make Char_Code
23627         unsigned.
23628
23629         * a-except.adb (Rcheck_30): New subprogram. Addition of the message
23630         corresponding to CE_Null_Not_Allowed, and adjust the output of all the
23631         Rcheck subprograms.
23632
23633         * checks.adb (Check_Null_Not_Allowed): Replace the error message on
23634         wrong null-exclusion value by a warning message.
23635         (Enable_Range_Check): Do range check if the prefix is an
23636         explicit dereference whose designated object is an unconstrained array.
23637         Current algorithm for removing duplicate checks is over-eager in this
23638         case.
23639
23640         * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
23641         null-exclusion value by a warning message
23642
23643         * atree.h, atree.ads, atree.adb: Remove Char_Code field support
23644         completely. Add support for Uint2 field
23645
23646         sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
23647         exp_prag.adb: Char_Literal_Value field is now a Uint.
23648
23649         * exp_util.adb (Insert_Actions): Replace
23650         N_Formal_Subprogram_Declaration by
23651         N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
23652         Char_Literal_Value field is now a Uint.
23653
23654         * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
23655         defined for subprogram renaming declarations. When set, the field
23656         indicates the defining entity of a corresponding formal subprogram
23657         when the renaming corresponds to a formal subprogram association in an
23658         instantiation.
23659         (Set_Corresponding_Formal_Spec): New procedure to return
23660         Corresponding_Formal_Spec field.
23661         Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
23662         (which is now a subtype).
23663         Char_Literal_Value field is now a Uint
23664
23665         * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
23666         pointer to the base of the dispatch table.
23667         Minor changes to comments.
23668         (Controlling_Type): New function for determining the tagged type
23669         associated with a tagged primitive subprogram.
23670         (Expand_Dispatching_Call): Add support for a controlling actual that is
23671         directly a value of type Ada.Tag rather than a tagged object.
23672
23673         * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
23674         describing the new layout.
23675         (Dispatch_Table): The expander computes the actual array size, allocates
23676         the Dispatch_Table record accordingly, and generates code that displaces
23677         the base of the record after the Typeinfo_Ptr component. The access to
23678         these components is done by means of local functions.
23679         (Offset_To_Top): New function.
23680         (Typeinfo_Ptr): New function.
23681         (Get_TSD): Modified to access the new position of the TSD.
23682         (Set_TSD): Modified to save the TSD in its new position.
23683
23684         * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
23685         case of formal abstract subprograms. Add check and message for -gnat05.
23686         Update comments.
23687
23688         * sem_ch12.adb: Add with and use for Sem_Disp.
23689         (Analyze_Associations): Minor change from "=" to "in" for use of
23690         N_Formal_Subtype_Declaration (which is now a subtype).
23691         (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
23692         N_Formal_Subtype_Declaration (which is now a subtype).
23693         (Analyze_Formal_Subprogram): Add handling for
23694         N_Formal_Abstract_Subprogram, marking the formal as abstract and
23695         dispatching, setting the controlling status of the formal parameters
23696         and result, and issuing an error if there is no controlling type for
23697         the formal subprogram.
23698         (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
23699         which is an unclean use of that field, we set the new field
23700         Corresponding_Formal_Spec to make the formal subprogram available to
23701         processing in Analyze_Subprogram_Declaration.
23702         (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
23703         Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
23704         Constrained, so that it is is does not statically match its anonymous
23705         base type.
23706
23707         * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
23708         abstract formal subprograms in error check for functions returning
23709         abstract types. Set scope of new designator for
23710         a parameterless subprogram, so that it is available when checking the
23711         body for nested subprograms, before full analysis of said body.
23712         (Analyze_Subprogram_Body): Warn on inlining bodies with nested
23713         subprogram only if inner one comes from source.
23714         (Analyze_Function_Call): If the call is given in object notation, the
23715         analysis of the name rewrites the node and analyzes it with the proper
23716         argument list. After analyzing the name, if the call has been rewritten
23717         and the result type is set, no further analysis is needed.
23718         (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
23719         mark in function specification, in a context where the formals are
23720         visible and hide outer homographs.
23721
23722         * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
23723         as the tagged type for the cases of abstract formal subprograms and
23724         renamings of those.  Clean up spec comments.
23725         (Check_Dispatching_Context): Add error message to indicate "abstract
23726         procedure", covering the case of a call to a formal abstract procedure
23727         that has statically tagged operands.
23728         (Check_Dispatching_Call): Check for the case of an actual given by
23729         a tag-indeterminate function call whose type is an ancestor of the
23730         containing call's associated tagged type. This situation can occur
23731         for inherited primitives with function defaults. In this case we
23732         use the tagged type's tag directly as the controlling argument for
23733         the calls.
23734         (Expand_Call): Name change on call to Expand_Dispatch_Call.
23735
23736         * sprint.adb (Sprint_Node_Actual): Split
23737         N_Formal_Subprogram_Declaration into two alternatives for the new
23738         cases N_Formal_Abstract_Subprogram_Declaration and
23739         N_Formal_Concrete_Subprogram_Declaration.
23740         Char_Literal_Value field is now a Uint.
23741
23742         * trans.c: Get rid of junk Uint2 reference.
23743         Char_Literal_Value field is now a Uint.
23744         (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
23745         (gigi): Correct third arg to gimplify_body.
23746
23747         * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
23748         (TYPE_LANG_FLAG_0): Check for record or union.
23749
23750         * treepr.adb: Char_Literal_Value field is now a Uint
23751
23752         * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
23753         UI_From_CC.
23754
23755         * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
23756         Add full UTF-32 support
23757         Char_Code is now 32 bits
23758
23759         * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
23760         wide character UTF_32 line terminators.
23761         Initialize Main_Source_File to avoid error when no main
23762         source is loaded.
23763
23764         * errout.adb (Finalize): Do not check Num_SRef_Pragmas
23765         (Main_Source_File) when no main source has been loaded, to avoid
23766         potential crash.
23767
23768 2005-02-09  Robert Dewar  <dewar@adacore.com>
23769
23770         * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
23771         Fix name of Set routine
23772
23773         * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
23774         fixed packages.
23775
23776         * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
23777         a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
23778         fixed packages
23779
23780         * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
23781         forms of Get_Line subprograms for AI-301.
23782
23783         * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
23784         a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
23785         a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
23786         a-stwima.ads: Minor reformatting.
23787
23788 2005-02-09  Doug Rupp  <rupp@adacore.com>
23789             Thomas Quinot  <quinot@adacore.com>
23790
23791         * adaint.c, adaint.h
23792         [VMS] (to_ptr32): New function.
23793         (MAYBE_TO_PTR32): New macro.
23794         (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
23795         for pointer size.
23796         [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
23797         [VMS] (#define fork()): Remove since unneccessary.
23798         (__gnat_set_close_on_exec): New routine to support
23799         GNAT.OS_Lib.Set_Close_On_Exec.
23800
23801         * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
23802         the parent side as close-on-exec so that they are not inherited by the
23803         child.
23804
23805         * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
23806         set or clear the FD_CLOEXEC flag on a file descriptor.
23807
23808 2005-02-09  Eric Botcazou  <ebotcazou@adacore.com>
23809             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23810
23811         PR ada/19386
23812         * decl.c:
23813         (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
23814         on the field if Pragma Component_Alignment (Storage_Unit).
23815         (gnat_to_gnu_entity, case object): Do not treat a renaming that has
23816         side-effects as if it were a constant; also make SAVE_EXPR to protect
23817         side-effects.
23818         (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
23819         UNION_TYPE.
23820         (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
23821         (components_to_record): Test it.
23822         Fix improper usage of REFERENCE_CLASS_P.
23823
23824         * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
23825         RECORD_TYPE.
23826
23827         * utils2.c: Minor reformatting.
23828
23829         * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
23830         handle other cases like RECORD_TYPE.
23831
23832         * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
23833
23834 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23835
23836         * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
23837         component of an array of arrays in an assignment context, and the
23838         aggregate has component associations that require sliding on
23839         assignment, force reanalysis of the aggregate to generate a temporary
23840         before the assignment.
23841         (Must_Slide): Make global to the package, for use in Gen_Assign.
23842
23843 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23844
23845         * exp_ch4.adb (Expand_Composite_Equality): If a component is an
23846         unchecked union with no inferable discriminants, return a
23847         Raise_Program_Error node, rather than inserting it at the point the
23848         type is frozen.
23849         (Expand_Record_Equality, Component_Equality): Handle properly the case
23850         where some subcomponent is an unchecked union whose generated equality
23851         code raises program error.
23852
23853 2005-02-09  Doug Rupp  <rupp@adacore.com>
23854
23855         * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
23856         [VMS] (#define exit hack): Remove.
23857
23858 2005-02-09  Pascal Obry  <obry@adacore.com>
23859             Arnaud Charlet  <charlet@adacore.com>
23860
23861         * init.c (__gnat_initialize): Add a new parameter eh which contains the
23862         address of the exception registration. The Win32 version of this
23863         routine calls __gnat_install_SEH_handler() to initialize the SEH
23864         (Structured Exception Handling) handler.
23865         (__gnat_error_handler) [Win32]: Removed. Not needed as we use
23866         SEH (Structured Exception Handling) now.
23867         (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
23868         (__gnat_initialize for ppc-vxworks): Adjust comments and the
23869         preprocessor condition protecting the call to the extra eh setup
23870         subprogram, which is only available for the ppc target.
23871         (__gnat_clear_exception_count): replaced reference to
23872         variable taskIdCurrent by call to taskIdSelf(), cleaner.
23873
23874         * seh_init.c: New file.
23875
23876         * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
23877         (GNATBIND_OBJS): Idem.
23878
23879         * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
23880         routine takes a new parameter (a pointer to the exception registration
23881         for the SEH (Structured Exception Handling) support.
23882
23883         * raise.h: (__gnat_install_SEH_handler): New prototype.
23884         Update copyright notice.
23885
23886         * s-tassta.adb (Task_Wrapper): Declare the exception registration
23887         record and initialize it by calling __gnat_install_SEH_handler.
23888
23889 2005-02-09  Vincent Celier  <celier@adacore.com>
23890
23891         * make.adb (Gnatmake): Do not fail when the main project has no object
23892         directory.
23893
23894 2005-02-09  Doug Rupp  <rupp@adacore.com>
23895
23896         * Makefile.in [VMS] (LN,LN_S): Define as cp -p
23897         Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
23898         [VMS]: Add translations for g-enblsp.adb.
23899
23900         * s-asthan-vms.adb: Removed.
23901         * s-asthan-vms-alpha.adb: Added.
23902
23903 2005-02-09  Pascal Obry  <obry@adacore.com>
23904
23905         * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
23906         (LIBGNAT_OBJS): Add seh_init.o.
23907
23908 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23909
23910         PR ada/16592
23911         * Makefile.in: Link all gnat tools with -static-libgcc, since
23912         -shared-libgcc is now used by default on some systems (e.g. linux with
23913         recent binutils).
23914         Remove references to Makefile.prolog/generic, no longer used.
23915
23916 2005-02-09  Vincent Celier  <celier@adacore.com>
23917
23918         * prj-makr.adb (Process_Directory): Put file name in canonical case
23919         before matching against the patterns.
23920         If gnatname has been invoked as <prefix>-gnatname
23921         then invoke the compiler as <prefix>-gcc, not just "gcc".
23922
23923 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23924
23925         * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
23926         with expansion disabled. The actual subtype is needed among other
23927         places when the selected component appears in the context of a loop
23928         bound, and denotes a packed array.
23929         (Operator_Check): Always use the first subtype in the
23930         error message, to avoid the appearance of internal base types.
23931         (Transform_Object_Operation): Copy each actual in full
23932         to the parameter associations of the constructed call, rather than
23933         using the shallow copy mechanism of New_Copy_List. This ensures that
23934         the chaining of named associations is done properly.
23935         (Complete_Object_Operation): Rewrite node, rather than
23936         replacing it, so that we can trace back to the original selected
23937         component.
23938
23939         * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
23940         and calls that use object notation, if the called function is not
23941         declared  in a withed unit, place the elaboration constraint on the
23942         unit in the context that makes the function accessible.
23943         (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
23944         imposes an elaboration constraint between two packages.
23945
23946 2005-02-09  Ed Schonberg  <schonberg@adacore.com>
23947
23948         * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
23949         views of a private type after handling its private dependents, to
23950         maintain proper stack discipline between entry and exit from the
23951         package.
23952
23953 2005-02-09  Cyrille Comar  <comar@adacore.com>
23954
23955         * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
23956         Minor reformatting.
23957
23958 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
23959
23960         * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
23961         fields for foreign threads.
23962
23963 2005-02-09  Doug Rupp  <rupp@adacore.com>
23964
23965         * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
23966         recursion warnings when compiled with -gnatdm.
23967
23968 2005-02-09  Robert Dewar  <dewar@adacore.com>
23969
23970         * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
23971         Slight fix to documentation of -gnaty with no parameters
23972
23973         * xr_tabls.ads: Add ??? comment for missing overall comment
23974
23975         * xsinfo.adb: Make default file name be sinfo.h, since this is what
23976         we now use by default.
23977
23978         * xsnames.adb: Adjust end of file test to look for five space followed
23979         by '#' instead of six spaces. The format of xsnames.adb was modified
23980         in the last update.
23981
23982         * a-numeri.ads: Add reference to AI-388 for greek letter pi
23983         identifier.
23984
23985         * clean.adb: Minor reformatting.
23986
23987         * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
23988         gnatname.adb: Minor reformatting
23989         Add 2005 to copyright output when utility is run
23990
23991         * csets.adb: Eliminate obsolete comment
23992
23993         * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
23994         Update comments.
23995
23996         * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
23997
23998 2005-02-09  Sergey Rybin  <rybin@adacore.com>
23999
24000         * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
24001         the difference between compact and incompact layout and add the record
24002         representation clause to the example illustrating different layouts.
24003         Add the description of '-A5' gnatpp option ("align 'AT' keywords in
24004         component clauses").
24005
24006 2005-02-09  Florian Villoing  <villoing@adacore.com>
24007
24008         * gnat_ugn.texi: Fix typos.
24009         Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
24010         @file.
24011         Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
24012         in the generated documentation.
24013
24014 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24015
24016         * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
24017         longer supported.
24018         Update linker wrapper when linking with non GNU C++.
24019
24020 2005-02-09  Pascal Obry  <obry@adacore.com>
24021
24022         * gnat_ugn.texi:
24023         Document the procedure to debug the DllMain routine on Windows.
24024         Add note about -funwind-tables and mixed Ada and C/C++ programming in
24025         ZCX mode.
24026         Document new BIND qualifer /RETURN_CODES=VMS.
24027
24028 2005-02-09  Ben Brosgol  <brosgol@adacore.com>
24029
24030         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
24031         Edited gnatmetric chapter
24032
24033 2005-02-09  Robert Dewar  <dewar@adacore.com>
24034
24035         * gnat_rm.texi:
24036         Changes to document new wide wide character support
24037         For AI-285
24038         Update documentation on Normalize_Scalars and Initialize_Scalars
24039
24040 2005-02-09  Pascal Obry  <obry@adacore.com>
24041
24042         * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
24043
24044 2005-02-09  Jose Ruiz  <ruiz@adacore.com>
24045
24046         * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
24047         from the VxWorks kernel) that is needed for getting the active
24048         priority of the different tasks.
24049
24050         * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
24051         Use a pragma Elaborate_Body in the spec file instead.
24052         Noticed by code reading.
24053
24054 2005-02-09  Thomas Quinot  <quinot@adacore.com>
24055
24056         * exp_util.ads: Minor correction in comment.
24057
24058 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24059
24060         * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
24061         since this procedure is now too complex to be worth inlining.
24062
24063 2005-02-09  Richard Henderson  <rth@redhat.com>
24064
24065         * utils.c (gnat_define_builtin): Remove.
24066         (gnat_install_builtins): Use build_common_builtin_nodes.
24067
24068 2005-02-09  Arnaud Charlet  <charlet@adacore.com>
24069
24070         * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
24071         a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
24072         a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
24073         a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
24074         a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
24075         a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
24076         a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
24077         a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
24078         a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
24079         a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
24080         a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
24081         a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
24082         a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
24083         a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
24084         a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
24085         a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
24086         a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
24087         a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
24088         a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
24089         a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
24090         a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
24091         a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
24092         a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
24093         a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
24094         a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
24095         a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
24096         a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
24097         a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
24098         a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
24099         a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
24100         a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
24101         a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
24102         a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
24103         a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
24104         library.
24105
24106 2005-01-27  Laurent Guerby  <laurent@guerby.net>
24107
24108         * Makefile.in: Fix a-intnam.ads from previous commit,
24109         add 2005 to copyright.
24110         * a-intman-rtems.ads: Renamed to...
24111         * a-intnam-rtems.ads:
24112
24113 2005-01-27  Laurent Guerby  <laurent@guerby.net>
24114
24115         * Makefile.in: Rename GNAT RTEMS specific files.
24116         * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
24117         5rosinte.ads, 5rparame.adb: Replaced by files below.
24118         * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
24119         s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
24120
24121 2005-01-27  Joel Sherrill  <joel.sherrill@oarcorp.com>
24122             Laurent Guerby  <laurent@guerby.net>
24123
24124         PR ada/19488
24125         * 5rosinte.ads: Add No_Key constant.
24126         * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
24127         * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
24128
24129 2005-01-26  Laurent Guerby  <laurent@guerby.net>
24130
24131         PR ada/19414
24132         * i-cobol.adb (Valid_Numeric): Handle zero length case.
24133
24134 2005-01-20  Richard Henderson  <rth@redhat.com>
24135
24136         * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
24137         a-intnam-linux.ads and system-linux-alpha.ads.
24138         * a-intnam-linux-alpha.ads: Remove file.
24139         * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
24140         * system-linux-alpha.ads: New file.
24141
24142 2005-01-18  Jakub Jelinek  <jakub@redhat.com>
24143
24144         PR ada/13470
24145         * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
24146         set to the new string.
24147
24148 2005-01-18  Toon Moene  <toon@moene.indiv.nluug.nl>
24149
24150         * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
24151         to True.
24152
24153 2005-01-18  Richard Henderson  <rth@redhat.com>
24154
24155         * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
24156         THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
24157         for alpha-linux.
24158         * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
24159
24160 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
24161
24162         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
24163         (GCC_ZCX_Support): Likewise.
24164
24165 2005-01-11  Bastian Blank  <waldi@debian.org>
24166
24167         * system-linux-s390.ads: Define Preallocated_Stacks.
24168         * system-linux-s390x.ads: Likewise.
24169
24170 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
24171
24172         * gnat_ugn.texi: Fix texi errors with null variables.
24173
24174 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24175
24176         * gen-soccon.c: New utility program to generate g-soccon.ads
24177         automatically.
24178
24179         * socket.c, gsocket.h: Split inclusion of system header files into a
24180         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
24181
24182         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24183         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
24184         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
24185         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
24186         should not be edited by hand anymore, but should be regenerated using
24187         gen-soccon.
24188
24189 2005-01-03  Robert Dewar  <dewar@adacore.com>
24190             Ed Schonberg  <schonberg@adacore.com>
24191             Vincent Celier  <celier@adacore.com>
24192
24193         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
24194         on/off, since this is an obsolescent feature, for which we now generate
24195         a warning.
24196
24197         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
24198         warning mode is set and obsolescent usage of this attribute occurs.
24199         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
24200         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
24201         predates, and partly motivates, the adoption of the AI.
24202         Implement new Ada 2005 attribute Mod
24203
24204         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
24205         attribute Mod.
24206
24207         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
24208
24209         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
24210         pragma restrictions.
24211         New entry for Ada 2005 attribute Mod.
24212
24213         * par-prag.adb:
24214         Add recognition of new pragma Restrictions No_Dependence
24215         Recognize restriction No_Obsolescent_Features at parse time
24216
24217         * bcheck.adb: Add circuitry for checking for consistency of
24218         No_Dependence restrictions.
24219
24220         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
24221         restrictions.
24222
24223         * restrict.ads, restrict.adb: Add subprograms to deal with
24224         No_Dependence restrictions.
24225
24226         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
24227         restrictions.
24228
24229         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
24230         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
24231
24232         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
24233         dummy parameter to scng instantiation.
24234         Needed for new restriction No_Obsolescent_Features
24235
24236         * scn.adb: (Obsolescent_Check): New procedure
24237         Needed for new restriction No_Obsolescent_Features
24238
24239         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
24240         specified by AI-285, needed for implementation of AI-388 (adding greek
24241         pi to Ada.Numerics).
24242         Add new generic formal to scng, needed for new restriction
24243         No_Obsolescent_Features.
24244
24245         * s-rident.ads: Add new restriction No_Obsolescent_Features.
24246
24247         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
24248         restrictions lines.
24249         (Scan_ALI): When finding an unexpected character on an R line, raise
24250         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
24251         Ignore_Errors is True, default restrictions are set and scanning of the
24252         ALI file continues with the next line. Also, when Bad_R_Line is raised
24253         and Ignore_Errors is True, skip to the end of le line.
24254
24255         * sem_ch10.adb: Check that explicit with's do not violate
24256         No_Dependence restrictions.
24257         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
24258         illegal context clauses containing child units of instance.
24259
24260         * sem_prag.adb: Processing and checking for new No_Dependence
24261         restrictions.
24262         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
24263         analyze and check the External argument.
24264
24265         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
24266
24267 2005-01-03  Robert Dewar  <dewar@adacore.com>
24268
24269         * atree.adb: Add a fifth component to entities
24270         This allows us to add 32 flags and four new fields
24271
24272         * atree.ads: Add a fifth component to entities
24273         This allows us to add 32 flags and four new fields
24274
24275         * einfo.ads, einfo.adb: Document new fields and new flags now available
24276         Add routines for printing new fields
24277
24278         * treepr.adb: Call routines to print out additional fields if present
24279
24280 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24281
24282         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
24283         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
24284
24285         * Makefile.in: Add support to build shared Ada libraries on solaris x86
24286         Remove gpr2make, replaced by gprmake.
24287         Remove references to gnatmem and libaddr2line.
24288         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
24289         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
24290         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
24291         a-numaux-darwin.ads and a-numaux-darwin.adb
24292         Enable mlib-tgt-lynxos.adb on lynxos.
24293
24294         * Make-lang.in: Remove rules for gpr2make.
24295         When generating sdefault.adb, do not call Relocate_Path
24296         on S3 for function Target_Name, as it is not a path.
24297         Remove references to gnatmem and libaddr2line.
24298
24299         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
24300         files.
24301
24302 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
24303
24304         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
24305         address is incompatible with its base type alignment constraints when
24306         this can be decided statically.
24307
24308 2005-01-03  Olivier Hainque  <hainque@adacore.com>
24309
24310         * decl.c (compatible_signatures_p): New function. The intended purpose
24311         is to check if two function signatures for a call-site and a callee are
24312         compatible enough for the call to be valid. The underlying purpose is
24313         to check if a call to a mapped builtin is using the right interface.
24314         The current code actually does not check antyhing - this a placeholder
24315         for future refinements.
24316         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
24317         builtin calls for convention Intrinsic.
24318
24319         * gigi.h (builtin_decl_for): Declare (new function).
24320
24321         * utils.c (gnat_install_builtins): Install the target specific builtins.
24322         (builtin_decl_for): New function, provide a dummy body for now.
24323
24324 2005-01-03  Geert Bosch  <bosch@adacore.com>
24325
24326         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
24327         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
24328         (Pred): Implement in terms of Succ.
24329
24330         * trans.c (convert_with_check): Reimplement conversion of float to
24331         integer.
24332
24333 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24334             Vincent Celier  <celier@adacore.com>
24335
24336         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
24337         bounds can be negative, and must be declared Int, not Nat.
24338
24339         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
24340         array is checked after using the index in the array.
24341
24342         * makegpr.adb (Add_Switches): Check if there is a package for the
24343         processor. If there is no package, do not look for switches.
24344
24345 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24346
24347         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
24348         generation of predefined stream operations (specs and bodies) should
24349         proceed. Under various restrictions these subprograms must not be
24350         generated.
24351
24352 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24353
24354         * exp_dist.adb:
24355         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
24356         amount of PCS-specific code in RACW stubs generation.
24357         (Copy_Specification): Set Etype on copied formal parameter entities, as
24358         this information is needed for PolyORB stubs generation.
24359         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
24360         variable Dynamic_Async.
24361         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
24362         (Build_RPC_Receiver_Specification): Make generic again, as recent
24363         changes have allowed RPC receivers to have the same profile for both
24364         variants of the PCS.
24365         Reorganise RPC receiver generation to reduce differences between the
24366         structure of GARLIC and PolyORB RPC receivers.
24367         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
24368         PCS-specific.
24369         Simplify elaboration code for RCI packages.
24370
24371         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
24372         generation to reduce differences between the structure of GARLIC and
24373         PolyORB RPC receivers.
24374
24375         * s-stratt.adb: Fix typo in comment.
24376
24377 2005-01-03  Thomas Quinot  <quinot@adacore.com>
24378
24379         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
24380         copied from Make_Init_Call).
24381
24382         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
24383         reads and assignments on a temporary variable declared with appropriate
24384         discriminants.
24385
24386 2005-01-03  Robert Dewar  <dewar@adacore.com>
24387
24388         * i-c.adb (To_C): Raise CE if string is null and Append_Null
24389
24390 2005-01-03  Robert Dewar  <dewar@adacore.com>
24391
24392         * i-cstrin.adb (Update): Do not append a null in form called with a
24393         String. This avoids unintended behavior.
24394
24395 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24396
24397         PR ada/17527
24398         * init.c: Fix warnings on Free BSD section.
24399
24400 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24401
24402         PR ada/16949
24403         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
24404         xsinfo.adb).
24405
24406 2005-01-03  Vincent Celier  <celier@adacore.com>
24407
24408         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
24409         libraries when Unique_Compile is True (-u switch).
24410         (Gnatmake): ditto.
24411
24412 2005-01-03  Robert Dewar  <dewar@adacore.com>
24413
24414         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
24415         upper case letter or underscore after W, as allowed by spec.
24416
24417 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24418
24419         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
24420         darwin port by using proper type definitions from header files.
24421         Use SIGTERM instead of SIGABRT for SIGADAABORT.
24422
24423 2005-01-03  Robert Dewar  <dewar@adacore.com>
24424
24425         * par.adb: Enhance error message handling for configuration file
24426         pragmas.
24427
24428 2005-01-03  Robert Dewar  <dewar@adacore.com>
24429
24430         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
24431         removed during the previous update (test properly for case of dividing
24432         largest negative number by -1, which generates overflow).
24433
24434 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24435             Sergey Rybin  <rybin@adacore.com>
24436
24437         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
24438         to use as the defining identifier for a formal package.
24439         (Remove_Parent): If the instance takes place within (an instance of)
24440         a sibling, preserve private declarations of common parent.
24441
24442 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24443
24444         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
24445         to determine whether one of the operands is a fixed-point type for
24446         which a user-defined multiplication or division operation might be
24447         defined.
24448
24449         * sem_res.adb (Valid_Conversion): The legality rules for conversions
24450         of access types are symmetric in Ada 2005: either designated type can
24451         be unconstrained.
24452
24453 2005-01-03  Vincent Celier  <celier@adacore.com>
24454
24455         * s-fileio.adb (Temp_File_Record): Change length of string component
24456         Name from L_tmpnam + 1 to max_path_len + 1.
24457
24458 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
24459
24460         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
24461         Self_Id.Deferral_Level = 0.
24462         (Do_Pending_Action): Move this function to the spec.
24463
24464         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
24465         Do_Pending_Action explicitely when needed, in case we're using
24466         No_Abort restrictions.
24467
24468         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
24469         deferral level since it will not get changed by the generated code.
24470         Keeping a default value of 1 would prevent some operations (e.g.
24471         select or delay) to proceed successfully.
24472
24473 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
24474             Robert Dewar  <dewar@adacore.com>
24475             Cyrille Comar  <comar@adacore.com>
24476
24477         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
24478         porting guide chapter (vms version).
24479         Revised doc title (removed "for native platforms") and subtitle.
24480         Add discussion on warning flag for obsolescent features. First we
24481         note that it applies to obsolete GNAT features, which was previously
24482         omitted. Second we contrast the behavior with that of the new
24483         Ada 2005 AI-368 restriction No_Obsolescent_Features.
24484         Preliminary rewriting of GNAT & libraries chapter in order to take
24485         into account default project locations & new project manager
24486         capabilities.
24487
24488 2005-01-03  Robert Dewar  <dewar@adacore.com>
24489
24490         * cstand.adb (Create_Operators): Clean up format and documentation of
24491         unary and binary operator result tables. No change in code, just
24492         reformatting and addition of comments.
24493
24494         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
24495         sem_ch2.adb: Minor reformatting
24496
24497         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
24498         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
24499         comments for Tree_Read and Tree_Write.
24500
24501 2005-01-03  Pascal Obry  <obry@adacore.com>
24502
24503         * exp_attr.ads: Minor reformatting.
24504
24505 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
24506
24507         * comperr.adb (Compiler_Abort): Add specialized message for GAP
24508         versions.
24509
24510 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
24511
24512         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
24513         whether the ancestor type is private, as may be the case with nested
24514         instantiations.
24515
24516 2004-12-30  Sohail Somani  <sohail@sohailsomani.com>
24517
24518         PR ada/19128
24519         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
24520
24521 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
24522
24523         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
24524         * utils2.c (build_unary_op): Likewise.
24525
24526 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24527
24528         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
24529
24530 2004-12-19  Richard Henderson  <rth@redhat.com>
24531
24532         * trans.c (gigi): Update gimplify_body call.
24533
24534 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
24535
24536         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
24537
24538 2004-12-07  Ed Falis  <falis@adacore.com>
24539
24540         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
24541         current task being suspended.
24542
24543         * init.c (__gnat_clear_exception): added to reset VxWorks exception
24544         count.
24545         (__gnat_map_signal): removed test for current task being suspended.
24546
24547 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24548
24549         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
24550         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
24551         targets (such as AAMP).
24552
24553 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24554
24555         * atree.adb (Visit_Itype): Create a new name for the generated itype,
24556         because the back-end may otherwise treat it as a redefinition of the
24557         old symbol.
24558
24559 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
24560
24561         * back_end.adb (Scan_Back_End_Switches): Accept --param.
24562
24563         * lang-specs.h: Accept --param.
24564
24565 2004-12-07  Vincent Celier  <celier@adacore.com>
24566
24567         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
24568         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
24569         Current_Body_Suffix => Ada_Body_Suffix).
24570         Take into account Externally_Built attribute.
24571
24572         * clean.adb (In_Extension_Chain): Always return False when one of the
24573         parameter is No_Project.
24574         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
24575         Ada_Language_Index).
24576         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
24577         Process_Languages for procedure Parse).
24578
24579         * gnatcmd.adb (Carg_Switches): New table.
24580         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
24581         Adapt to name changes in package Prj (Current_Spec_Suffix =>
24582         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
24583
24584         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
24585         Header_Num and function Hash are now declared in package Prj,
24586         not Prj.Com.
24587
24588         * prj.adb (Suffix_Of): New function.
24589         (Set (Suffix)): New procedure.
24590         (Hash): One function moved from Prj.Com
24591         (Is_Present, Language_Processing_Data_Of): New functions
24592         (Set): Two new procedures
24593         (Add_Language_Name, Display_Language_Name): New procedures
24594
24595         * prj.ads: (Suffix_Of): New function
24596         (Set (Suffix)): New procedure
24597         Add several types and tables for multi-language support.
24598         (Header_Num): Type moved from Prj.Com
24599         (Hash): Two functions moved from Prj.Com
24600         (Is_Present, Language_Processing_Data_Of): New functions
24601         (Set): Two new procedures
24602         (Add_Language_Name, Display_Language_Name): New procedures
24603         (Naming): Component name changes:
24604         Current_Spec_Suffix => Ada_Spec_Suffix,
24605         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
24606         Impl_Suffixes, Supp_Suffixes.
24607         (Project_Data): New components: Externally_Built, Supp_Languages,
24608         First_Language_Processing, Supp_Language_Processing, Default_Linker,
24609         Default_Linker_Path.
24610
24611         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
24612         new package Language_Processing with its attributes (Compiler_Driver,
24613         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
24614         Binder_Driver, Default_Linker).
24615
24616         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
24617         (Header_Num): Type moved to package Prj
24618
24619         * prj-env.adb: Adapt to name changes in package Prj
24620         (Current_Spec_Suffix => Ada_Spec_Suffix,
24621         Current_Body_Suffix => Ada_Body_Suffix).
24622
24623         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
24624         default to the project path, except the "-" is one of the directories
24625         in env var ADA_PROJECT_PATH.
24626         (Current_Project_Path): Global variable, replacing Project_Path
24627         that was in the body of Prj.Part.
24628         (Project_Path): New function
24629         (Set_Project_Path): New procedure
24630         Initialize Current_Project_Path during elaboration of the package
24631         Remove dependency on Prj.Com, no longer needed
24632
24633         * prj-ext.ads (Project_Path): New function
24634         (Set_Project_Path): New procedure
24635
24636         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
24637         suffix is defined for language <lang>.
24638         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
24639         accessing directly the components of Naming.
24640         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
24641         Reorganise of this package.
24642         Break procedure Check in several procedures.
24643
24644         * prj-nmsc.ads: Replace all procedures (Ada_Check,
24645         Other_Languages_Check and Language_Independent_Check) with a single
24646         procedure Check.
24647
24648         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
24649         Process_Languages, no longer needed.
24650
24651         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
24652         Current_Project_Path.
24653         Remove elaboration code, moved to the body of Prj.Ext
24654         Use new function Prj.Ext.Project_Path instead of old variable
24655         Project_Path.
24656         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
24657         When comparing with project paths on the stack, first put the resolved
24658         path in canonical case.
24659         (Parse_Single_Project): Set the path name of the project file in the
24660         tree to the normalized path.
24661
24662         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
24663         parameter Process_Languages, no longer needed.
24664         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
24665         Other_Languages_Check.
24666
24667         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
24668         to store the resolved canonical path of the project file.
24669         Remove dependency to Prj.Com, no longer needed
24670
24671         * prj-util.adb: Adapt to name changes in package Prj
24672         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
24673         Ada_Body_Suffix).
24674
24675         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
24676         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
24677         Externally_Built, Include_Option, Language_Processing.
24678
24679         * makegpr.adb: Numerous changes due to changes in packages
24680         Prj and Prj.Nmsc.
24681
24682         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
24683         default to the project path, except whe "-" is one of the directories
24684         in env var ADA_PROJECT_PATH.
24685         (Gnatls): In verbose mode, add the new section "Project Search Path:"
24686
24687 2004-12-07  Robert Dewar  <dewar@adacore.com>
24688
24689         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
24690
24691         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
24692         set -gnatR3m mode.
24693
24694         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
24695         flag. No longer needed now that we handle this in gnat1drv.adb.
24696
24697         * repinfo.ads: Minor reformatting
24698
24699 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24700             Olivier Hainque  <hainque@adacore.com>
24701             Eric Botcazou  <ebotcazou@adacore.com>
24702
24703         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
24704         TYPE_SIZE_UNIT of result type if SIZE is not specified.
24705         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
24706         of a bitfield, which we know is useless and causes trouble because of
24707         alignment implications.
24708
24709         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
24710         BSS sections.
24711         (process_attributes): Clear DECL_COMMON again when a section attribute
24712         is present.
24713         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
24714         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
24715         (create_field_decl): Special case ADDRESSABLE negative to mean
24716         "no bitfield creation", to be used by make_aligning_type. Don't
24717         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
24718         fields claimed addressable still have to be bitfields. Use
24719         value_factor_p instead of a raw binop construction to check for the
24720         position's alignment.
24721
24722 2004-12-07  Geert Bosch  <bosch@adacore.com>
24723
24724         * eval_fat.adb: Revert previous change.
24725
24726 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24727             Ed Schonberg  <schonberg@adacore.com>
24728
24729         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
24730         with an implicit dereference as its prefix, use
24731         Insert_Explicit_Dereference instead of merely rewriting the prefix into
24732         an explicit dereference. This ensures that a reference to the original
24733         prefix is generated, if appropriate.
24734
24735         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
24736         dereference is rewritten to an explicit one, generate a reference to
24737         the entity denoted by its prefix using the original prefix node, so
24738         the dereference can be properly recorded as a read of the denoted
24739         access value, if appropriate.
24740
24741         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
24742         emitting 'assigned but never read' warning on a variable on the basis
24743         that it has an access type.
24744         (Check_References): Emit unreferenced warning when the scope is a
24745         subprogram body.
24746
24747 2004-12-07  Robert Dewar  <dewar@adacore.com>
24748             Ed Schonberg  <schonberg@adacore.com>
24749
24750         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
24751         intrinsic
24752
24753         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
24754         leaving call unchanged.
24755         This deals with the case where the pragma Import specified
24756         an external name, to be handled by the back end.
24757
24758         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
24759         subprogram which is Imported with convention Intrinsic if an
24760         External_Name argument is specified.
24761         (Process_Import_Or_Interface): Properly diagnose link name argument.
24762         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
24763         with Sem_Ch6.Cannot_Inline.
24764         (Process_Inline): Provide separate warning for inapplicable inline
24765         pragma.
24766         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
24767         treatment is uniform on different targets.
24768
24769 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24770
24771         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
24772         construct is rewritten, preserve end label to permit source navigation.
24773
24774 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24775
24776         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
24777         Specific_Build_Stub_Target): New subprograms.
24778         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
24779         the PCS implementation used, using the above PCS-customized subprograms.
24780         Minor reformatting.
24781         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
24782         for generation of DSA code targeted to the PolyORB PCS.
24783         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
24784         implementation of the partition communication subsystem in ancillary
24785         subprograms.
24786         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
24787         PolyORB_Support.Build_Stub_Type): New subrograms containing the
24788         PCS-specific part of Add_Stub_Type.
24789         (Insert_Partition_Check): Use runtime library function to perform
24790         E.4(19) check.
24791
24792         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
24793         (RE_Same_Partition): New entity, from s-parint.
24794
24795         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
24796
24797 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24798
24799         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
24800         Output the copyright message on a separate line from the version
24801         message.
24802
24803 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
24804
24805         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
24806         compile-time warning.
24807
24808 2004-12-07  Robert Dewar  <dewar@adacore.com>
24809
24810         * g-regpat.adb: (Match): Change a misuse of or to or else
24811
24812 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24813
24814         * lib-xref.adb:
24815         (Generate_Reference): Handle properly a reference to an entry formal,
24816          when an accept statement has a pragma Unreferenced for it.
24817
24818         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
24819         and the Has_Pragma_Unreferenced flag for each formal before analyzing
24820         the body, to ensure that warnings are properly emitted for each accept
24821         statement of a given task entry.
24822
24823 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
24824
24825         * Makefile.in: Add support for foreign threads on VMS.
24826
24827 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24828
24829         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
24830         Remove.
24831         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
24832
24833         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
24834
24835         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
24836         exception.
24837         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
24838
24839 2004-12-07  Robert Dewar  <dewar@adacore.com>
24840
24841         * nlists.adb (Prepend_Debug): Remove parameters and nest within
24842         Prepend.
24843         (Remove_Next_Debug): Same fix
24844
24845         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
24846         maintain back pointers now, though we did not used to, and comments
24847         were out of date).
24848         (Prepend): Remove pragma Inline.
24849         (Remove_Next): Same cleanup
24850
24851 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24852
24853         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
24854         used to record an implicit dereference as a read operation on its
24855         prefix when operating under -gnatc. Necessary to avoid spurious
24856         'variable assigned but never read' warnings in that mode.
24857         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
24858         is a non-overloaded implicit dereference, call the above subprogram to
24859         ensure proper recording of references.
24860
24861 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
24862
24863         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
24864         to be resolved later as part of Analyze_Iteration_Scheme's call to
24865         Make_Index.
24866
24867 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
24868
24869         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
24870         prefix is not a scalar type, place error message on prefix, not on
24871         type entity.
24872
24873 2004-12-07  Bernard Banner  <banner@adacore.com>
24874
24875         * vxaddr2line.adb: Add support for x86 vxworks
24876
24877 2004-12-07  Thomas Quinot  <quinot@adacore.com>
24878
24879         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
24880         documentation of the behaviour of these functions when passed an IP
24881         address that has no record in the system hosts database and no reverse
24882         record in the DNS.
24883
24884         * cstand.adb, a-tags.ads: Fix typos in comment.
24885
24886 2004-12-07  Robert Dewar  <dewar@adacore.com>
24887
24888         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
24889         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
24890         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
24891         s-poosiz.ads: Minor reformatting
24892
24893         * make.adb: Minor reformatting
24894         Add some ??? comments asking for more comments
24895
24896         * s-poosiz.adb: Minor reformatting
24897         Add comments on alignment requirement
24898
24899         * sinfo.ads: Remove obsolete comment and fix typo.
24900
24901 2004-12-07  Vincent Celier  <celier@adacore.com>
24902             Sergey Rybin  <rybin@adacore.com>
24903
24904         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
24905         Files" with the new tool and package names.
24906         Reformatting to suppress most of the warnings for line too long
24907         Document the new section "Project Search Path:" in the output of
24908         gnatls -v.
24909         Add gnatmetric section
24910
24911 2004-12-07  Vincent Celier  <celier@adacore.com>
24912
24913         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
24914         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
24915         and -eit to -ept. Added qualifier
24916         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
24917
24918 2004-11-27  Andreas Schwab  <schwab@suse.de>
24919
24920         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
24921
24922 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
24923
24924         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
24925         internal implementation unit GNAT.Sockets.Thin,
24926         as their usage for sockets is non-portable (using the read and write
24927         functions from the system runtime library is fine on UNIX but won't
24928         work under Windows).
24929
24930         * mingw32.h: Update copyright notice.
24931
24932 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
24933
24934         * ada-tree.h: Minor reformatting of previous change to avoid lines
24935         longer than 79 characters.
24936
24937 2004-11-25  Olivier Hainque  <hainque@adacore.com>
24938
24939         * tb-gcc.c: GCC infrastructure based implementation of
24940         __gnat_backtrace.
24941
24942 2004-11-24  Steven Bosscher  <stevenb@suse.de>
24943
24944         * misc.c (gnat_post_options): Don't clear
24945         flag_inline_functions.
24946
24947 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
24948
24949         PR ada/17986
24950         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
24951         tree.
24952
24953 2004-11-21  Andreas Jaeger  <aj@suse.de>
24954
24955         * stylesw.adb: Change Style_Check_Subprogram_Order to
24956         Style_Check_Order_Subprograms.
24957
24958 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
24959
24960         * adaint.h, adaint.c
24961         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
24962         to avoid warnings.
24963         Add also a cast to kill another warning.
24964         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
24965         parameter with the priority class of the parent process instead of
24966         always using the NORMAL_PRIORITY_CLASS.
24967         (__gnat_dup): New function.
24968         (__gnat_dup2): New function.
24969         (__gnat_is_symbolic_link): Enable the effective body of this
24970         function when __APPLE__ is defined.
24971
24972         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
24973         Update comments.
24974
24975 2004-11-18  Olivier Hainque  <hainque@adacore.com>
24976
24977         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
24978         address of which may be used to represent "others" and "all others"
24979         choices in exception tables, instead of the current harcoded
24980         (void *)0 and (void *)1.
24981         (Setup_Exception): Do nothing in the GNAT SJLJ case.
24982
24983         * gigi.h (others_decl, all_others_decl): New decls representing the
24984         new Others_Value and All_Others_Value objects.
24985         (struct attrib): Rename "arg" component as "args", since GCC expects a
24986         list of arguments in there.
24987
24988         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
24989         corresponding objects exported by a-exexpr, instead of hardcoded dummy
24990         addresses.
24991
24992         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
24993         others_decl and all_others_decl instead of hardcoded dummy addresses
24994         to represent "others" and "all others" choices, which is cleaner and
24995         more flexible with respect to the possible eh pointer encoding policies.
24996
24997         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
24998         (process_attributes): Account for the naming change of the "args"
24999         attribute list entry component.
25000
25001         * decl.c (build_attr_list): Rename into prepend_attributes to allow
25002         cumulating attributes for different entities into a single list.
25003         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
25004         attributes for the current entity and propagate first subtype
25005         attributes to other subtypes.
25006         <E_Procedure>: Attribute arguments are attr->args and not
25007         attr->arg any more.
25008         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
25009         argument provided, as this is what GCC expects. Use NULL_TREE instead
25010         of 0 for trees.
25011
25012 2004-11-18  Robert Dewar  <dewar@adacore.com>
25013
25014         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
25015         Minor reformatting througout (including new function specs)
25016         Add ??? comments asking for clarification.
25017
25018 2004-11-18  Thomas Quinot  <quinot@adacore.com>
25019
25020         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
25021         incomplete duplicate implementation of this subprogram from butil.
25022
25023 2004-11-18  Thomas Quinot  <quinot@adacore.com>
25024
25025         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
25026         procedures factors the common processing for building an RPC receiver
25027         for an RCI package or an RACW type.
25028         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
25029         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
25030         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
25031         in use.
25032         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
25033         Add_RACW_Features.
25034         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
25035         Add_RAST_Features.
25036         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
25037         distribution subprogram identifiers that are either subprogram numbers
25038         or strings.
25039         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
25040         string distribution identifiers assigned to a given subprogram.
25041         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
25042         (Add_RAS_Dereference_TSS): Add comments.
25043         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
25044         is not referenced yet because it will be used by the PolyORB DSA
25045         implementation.
25046         (Insert_Partition_Check): Remove fossile code.
25047         (First_RCI_Subprogram_Id): Document this constant.
25048         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
25049         RAS_Access TSS.
25050         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
25051         replaced with calls to Get_Library_Unit_Name_String. Previously there
25052         were several instances of the same code in different locations in the
25053         compiler; this checkin completes the replacement of all of these
25054         instances with calls to a common subprogram.
25055         Minor reformatting.
25056
25057         * sem_dist.adb: Remove comment noting that RPC receiver generation
25058         should be disabled for RACWs that implement RASs.
25059         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
25060
25061         * sem_util.ads, sem_util.adb (Has_Stream): New function
25062         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
25063         qualified name of a library unit into the name buffer.
25064         (Note_Possible_Modification): Generate a reference only
25065         if the context comes from source.
25066
25067         * snames.ads (PCS_Names): New subtype corresponding to names of
25068         supported implementations of the Partition Communication Subsystem
25069         (PCS) (i.e. the runtime library support modules for the distributed
25070         systems annex).
25071
25072 2004-11-18  Robert Dewar  <dewar@adacore.com>
25073             Ed Schonberg  <schonberg@adacore.com>
25074
25075         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
25076         (Has_Rep_Pragma): New function
25077         (Has_Attribute_Definition_Clause): New function
25078         (Record_Rep_Pragma): Moved here from sem_ch13.adb
25079         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
25080
25081         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
25082
25083         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
25084         (Expand_Pragma_Psect_Object): New procedure
25085         These procedures contain the revised and cleaned up processing for
25086         these two pragmas. This processing was formerly in Sem_Prag, but
25087         is more appropriately moved here. The cleanup involves making sure
25088         that the pragmas are properly attached to the tree, and that no
25089         nodes are improperly shared.
25090
25091         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
25092         pragmas to Exp_Prag, which is more appropriate.
25093         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
25094         check for duplicates Remove use of Is_Psected flag, no longer needed.
25095         Use new Make_String_Literal function with string.
25096
25097         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
25098         that are functions return universal values, that have to be converted
25099         to the context type.
25100         Use new Make_String_Literal function with string.
25101         (Get_Stream_Convert_Pragma): New function, replaces the use of
25102         Get_Rep_Pragma, which had to be kludged to work in this case.
25103
25104         * freeze.adb: Use new Has_Rep_Pragma function
25105
25106         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
25107         function with string.
25108         Use new Has_Rep_Pragma function.
25109
25110         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
25111         string argument.
25112
25113 2004-11-18  Robert Dewar  <dewar@adacore.com>
25114
25115         * errout.ads, errout.adb: (First_Sloc): New function
25116
25117         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
25118         check (-gnatyx) instead of being included as a redundant construct
25119         warning.
25120
25121         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
25122         Style_Check_Order_Subprograms.
25123
25124         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
25125         stylesw.adb: Add Style_Check_Xtra_Parens
25126
25127         * usage.adb: Add line for -gnatyx (check extra parens)
25128
25129         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
25130
25131 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25132             Robert Dewar  <dewar@adacore.com>
25133
25134         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
25135         discriminant of a constrained subtype, analyze the copy of the
25136         corresponding constraint, because in some cases it may be only
25137         partially analyzed.
25138         Removes long-lived ??? comments.
25139
25140         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
25141         handled controlled or secondary-stack expressions within the
25142         iteration_scheme of a loop.
25143
25144         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
25145         bounds that may contain functions calls, to prevent memory leaks when
25146         the bound contains a call to a function that uses the secondary stack.
25147         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
25148         generate temporaries for loop bounds that might contain function calls
25149         that require secondary stack and/or finalization actions.
25150
25151         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
25152         selected component and the selector is overloadable (not just a
25153         function) treat as function call, Analyze_Call will disambiguate if
25154         necessary.
25155         (Analyze_Selected_Component): Do not generate an actual subtype for the
25156         selected component if expansion is disabled. The actual subtype is only
25157         needed for constraint checks.
25158         (Analyze_Allocator): If restriction No_Streams is set, then do
25159         not permit objects to be declared of a stream type, or of a
25160         composite type containing a stream.
25161
25162         * restrict.ads: Remove the a-stream entry from Unit_Array, since
25163         No_Streams no longer prohibits with'ing this package.
25164
25165         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
25166         discriminants, but the parent base has unknown discriminants, there is
25167         no discriminant constraint to inherit. Such a discrepancy can arise
25168         when the actual for a formal type with unknown discriminants is a
25169         similar private type whose full view has discriminants.
25170         (Analyze_Object_Declaration): If restriction No_Streams is set, then
25171         do not permit objects to be declared of a stream type, or of a
25172         composite type containing a stream.
25173
25174 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25175
25176         * exp_dbug.ads: Update documentation to reflect simpler encoding for
25177         protected operations.
25178
25179         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
25180         generated name, it complicates decoding in gdb and hinders debugging
25181         of protected operations.
25182         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
25183         flag for the protected entry barrier function.
25184         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
25185         flag for the protected entry function.
25186
25187 2004-11-18  Nicolas Setton  <setton@adacore.com>
25188
25189         * expect.c: Define __unix__ when __APPLE__ is defined.
25190
25191         * Makefile.in: Inform the value of the variable GMEM_LIB in the
25192         Darwin-specific section.
25193
25194         * lang-specs.h: Change the placement of the %1 marker.
25195         Works around the fact that gcc adds -fPIC by default under Darwin.
25196
25197 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
25198
25199         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
25200         type of the object with the packed array type, set the Analyzed flag
25201         on the object if it is an entity or simple indexed component, to avoid
25202         spurious type errors.
25203
25204 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
25205
25206         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
25207         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
25208         separate line from the version message.
25209
25210 2004-11-18  Ed Falis  <falis@adacore.com>
25211
25212         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
25213         vthreads.
25214         (init_float): Eliminate initialization of floating point status for
25215         AE653. The instructions have no effect for vThreads.
25216
25217 2004-11-18  Vincent Celier  <celier@adacore.com>
25218
25219         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
25220         gnatbind is invoked with -shared.
25221
25222 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
25223
25224         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
25225         for Detect_Blocking which is redundant with the check done within the
25226         procedure Protected_Single_Entry_Call.
25227         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
25228         Detect_Blocking which is redundant with the check done within the
25229         procedure Protected_Single_Entry_Call.
25230
25231 2004-11-18  Vincent Celier  <celier@adacore.com>
25232
25233         * makegpr.adb (Compile): Put the compiling switches (in package
25234         Compiler and on the command line) immediately after "-c", instead of
25235         at the end of the command line invocation of the compiler, when
25236         compiling a non-Ada file.
25237         (Build_Global_Archive): When there is no need to rebuild the archive,
25238         set Global_Archive_Exists, so that the archive is passed to the linker
25239         if one is needed.
25240
25241 2004-11-18  Robert Dewar  <dewar@adacore.com>
25242             Sergey Rybin  <rybin@adacore.com>
25243
25244         * gnat_ugn.texi:
25245         Remove extra paren check from list of checks for redundant constructs
25246         Add documentation of new -gnatyx style check (check extra parens)
25247         Remove paragraph about gnatelim debug options.
25248
25249         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
25250         objects rather than forbidding dependencies on the package Ada.Streams.
25251
25252         * sinfo.ads: Add ??? note that we should document pragmas passed to
25253         back end.
25254
25255         * g-expect.ads: Fix a few typos in the comments.
25256
25257 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
25258
25259         * misc.c (gnat_handle_option): Use %< and %> for quoting in
25260         warning message.
25261
25262 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
25263
25264         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
25265
25266 2004-11-07  Andreas Schwab  <schwab@suse.de>
25267
25268         * Makefile.in (install-gnatlib): Remove spurious hyphen.
25269
25270 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
25271
25272         PR ada/18228
25273         * Makefile.in (darwin): Set soext to .dylib.
25274
25275 2004-10-26  Vincent Celier  <celier@gnat.com>
25276             Thomas Quinot   <quinot@act-europe.fr>
25277
25278         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
25279         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
25280         there is no use of GNAT.Sockets.Constants.
25281         Remove remaining pragma Import for C_Write
25282         Remove C_Read and C_Write from internal implementation unit
25283         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
25284         the read and write functions from the system runtime library is fine
25285         on UNIX but won't work under Windows).
25286
25287         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
25288         (Check_Selector): Use C_Recv instead of C_Read.
25289         Selectors are the GNAT.Sockets abstraction to perform a select()
25290         call on a set of descriptors. To allow abortion of an ongoing
25291         select operation, some data is written to a dedicated socket that
25292         is always monitored.
25293         Under Windows, the write and read library functions cannot operate
25294         on sockets, so we need to use send and recv instead, which is portable
25295         across all supported platforms.
25296
25297         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
25298         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
25299         (using the read and write functions from the system runtime library is
25300         fine on UNIX but won't work under Windows).
25301
25302 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
25303
25304         * mlib-tgt-darwin.adb: New file.
25305
25306         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25307         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25308         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
25309         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
25310         subprogram body.
25311
25312         * Makefile.in: Add support for building shared libraries under Darwin.
25313         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
25314         the low level EH init subprogram to be called from __gnat_initialize.
25315
25316         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
25317         indicates which options to pass to the archive indexer.
25318
25319         * mlib-utl.adb: Add support for calling ranlib with additional
25320         options. This is needed for instance under Mac OS X.
25321         (Ranlib_Options): New global variable, used to store the potential
25322         options to pass to ranlib.
25323         (Ar): Use Ranlib_Options when spawning ranlib.
25324         (Initialize): Set the value of ranlib option.
25325
25326 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25327
25328         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
25329         instead of 8K, to reflect the real potential needs for stack-checking
25330         in the ZCX case.
25331
25332 2004-10-26  Pascal Obry  <obry@gnat.com>
25333
25334         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
25335
25336         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
25337         Windows only the initial thread stack size can be set so it is good to
25338         start we a low stack size.
25339         The OS will adjust the size as needed.
25340
25341 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
25342             Nicolas Setton  <setton@act-europe.fr>
25343
25344         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
25345         "__unix__" instead of "unix".
25346         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
25347         sections were just mistakenly ignored. The former is
25348         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
25349         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
25350         of hpux. This prevents an unwanted definition of the symbol
25351         convert_addresses in adaint.o.
25352
25353 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25354
25355         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
25356         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
25357
25358 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25359
25360         * a-filico.ads, a-filico.adb: fix incorrect header.
25361
25362 2004-10-26  Javier Miranda  <miranda@gnat.com>
25363
25364         * a-ststio.ads: Fix typo in identifier
25365
25366 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25367
25368         * sem_ch4.adb: Minor reformatting.
25369
25370 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25371
25372         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
25373         enabled, check the result of unary and binary operations when the
25374         expression is the right-hand side of an assignment.
25375
25376 2004-10-26  Vincent Celier  <celier@gnat.com>
25377
25378         * clean.adb (Delete): Do not output warnings when in quiet output and
25379         not in verbose mode.
25380         (Force_Deletions): New Boolean flag, defaulted to False
25381         (Delete): Only delete a file if it is writable, and when
25382         Force_Deletions is True.
25383         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
25384         (Usage): Line for new switch -f
25385         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
25386         own.
25387
25388 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25389
25390         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
25391         JM type only if its size matches that of the wrapper.  When a size is
25392         prescribed and the field is not aliased, remove the wrapper of a JM
25393         type only if the size is not greater than that of the packed array.
25394         (gnat_to_gnu_entity): Change the extension of packed array wrappers
25395         from LJM to JM.
25396
25397 2004-10-26  Geert Bosch  <bosch@gnat.com>
25398
25399         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
25400         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
25401         (Pred): Implement in terms of Succ.
25402
25403 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25404
25405         * exp_aggr.adb (Safe_Component): An aggregate component that is an
25406         unchecked conversion is safe for in-place use if the expression of the
25407         conversion is safe.
25408         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
25409         be expandable in place even if the aggregate does not come from source.
25410         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
25411         designated object of an allocator in place, rather than building it
25412         first on the stack. The previous scheme forces a full copy of the array,
25413         and may be altogether unsusable if the size of the array is too large
25414         for stack allocation.
25415
25416 2004-10-26  Robert Dewar  <dewar@gnat.com>
25417
25418         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
25419         compares if the component is atomic.
25420
25421         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
25422         array assignment if the component type is atomic.
25423
25424 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25425             Eric Botcazou  <ebotcazou@act-europe.fr>
25426
25427         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
25428         is aliased and is a by_reference type, do not pass by copy.
25429         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
25430         detect whether the call is in the right side of an assignment or
25431         the expression of an object declaration.  Recurse on component
25432         association within aggregates.
25433         Call it in the condition that determines whether the temporary is
25434         necessary for correct stack-checking.
25435
25436 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25437
25438         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
25439         RACW_Type, used in the PolyORB version.
25440         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
25441         version and the GARLIC version.
25442
25443         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
25444         Rename RCI_Info to RCI_Locator for better consistency between the
25445         GARLIC and PolyORB versions of the distributed systems annex.
25446         (DSA_Implementation_Name): This enumeration lists the possible
25447         implementations of the Partition Communication Subsystem for the
25448         Distributed Systems Annex (DSA). The three available implementations
25449         are the dummy stub implementation (No_DSA), and two versions based on
25450         two different distribution runtime libraries: GARLIC and PolyORB. Both
25451         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
25452         technology.
25453         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
25454         that organization.
25455
25456         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
25457         between the GARLIC and PolyORB versions of the distributed systems
25458         annex.
25459         Remove RE_Unbounded_Reclaim_Pool since it is unused.
25460
25461 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
25462
25463         * gnat1drv.adb: Suppress calling the back end when
25464         Frontend_Layout_On_Target is true.
25465
25466 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25467
25468         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
25469         Set_Read_Only): New subprograms.
25470         These new routines allow the user to set or unset the Owner execute
25471         and Owner write permission flags on a file.
25472
25473         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
25474         GNAT.OS_Lib.Set_Executable instead of rolling our own.
25475
25476 2004-10-26  Matthew Gingell  <gingell@gnat.com>
25477
25478         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
25479
25480 2004-10-26  Pascal Obry  <obry@gnat.com>
25481
25482         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
25483         memory before the faulting page we properly test the process read
25484         access for this address using appropriate Win32 routine.
25485         (HPUX sections): guard with "__hpux__" instead of "hpux".
25486
25487 2004-10-26  Robert Dewar  <dewar@gnat.com>
25488
25489         * lib-xref.adb (Generate_Reference): Don't complain about reference to
25490         entry parameter if pragma Unreferenced set, since we do not properly
25491         handle the case of multiple parameters.
25492
25493 2004-10-26  Vincent Celier  <celier@gnat.com>
25494
25495         * prj-env.adb: (Contains_ALI_Files): New Boolean function
25496         (Ada_Objects_Path.Add): For a library project, add to the object path
25497         the library directory only if there is no object directory or if the
25498         library directory contains ALI files.
25499         (Set_Ada_Paths.Add.Recursive_Add): Ditto
25500
25501 2004-10-26  Vincent Celier  <celier@gnat.com>
25502
25503         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
25504         extension of library projects.
25505
25506         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
25507         path defaults to ".:<prefix>/lib/gnat".
25508         (Parse): For an extending all project, allow direct import of a project
25509         that is virtually extended.
25510
25511         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
25512         the specified name is directly imported, return its ID. Otherwise, if
25513         an extension of this project is imported, return the ID of the
25514         extension.
25515
25516 2004-10-26  Robert Dewar  <dewar@gnat.com>
25517
25518         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
25519         (Sub3): New procedure, used by Scaled_Divide
25520         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
25521         correct more than one instance of failure to propagate carries
25522         correctly.
25523         (Double_Divide): Handle overflow case of largest negative number
25524         divided by minus one.
25525
25526         * s-arit64.ads (Double_Divide): Document that overflow can occur in
25527         the case of a quotient value out of range.
25528         Fix comments.
25529
25530 2004-10-26  Robert Dewar  <dewar@gnat.com>
25531
25532         * s-bitops.adb (Bit_Eq): Remove redundant check.
25533
25534         * s-bitops.ads: Minor comment updates
25535         Change some occurrences of Address to System.Address
25536
25537         * s-carsi8.ads: Fix minor cut-and-paste error in comments
25538
25539 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25540
25541         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
25542         accessibility check to prefix that is a protected operation.
25543
25544 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25545
25546         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
25547         empty, post message on stub.
25548
25549 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25550             Javier Miranda  <miranda@gnat.com>
25551
25552         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
25553         current instance appears within a unit that is directly in the context
25554         of the main unit.
25555         Used to determine whether the body of the instance should be analyzed
25556         immediately after its spec, to make its subprogram bodies available
25557         for front-end inlining.
25558         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
25559         constraint is not allowed on the component type (AARM 12.5.3(3))
25560
25561 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
25562
25563         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
25564         'Storage_Pool): enhance, document & limit detection of non-sharable
25565         internal pools.
25566
25567         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
25568
25569         * s-pooglo.ads: Add more documentation now that this pool is properly
25570         documented.
25571
25572 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25573
25574         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
25575         or protected type with discriminants, do not constrain the
25576         corresponding record type if the subtype declaration has no
25577         discriminant constraints. This can be the case in source code, or in
25578         the subtype declaration created to rename an actual type within an
25579         instantiation.
25580
25581 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25582
25583         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
25584         different kind of stub (possibly wrong name for file), do not check
25585         for conformance.
25586         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
25587         includes call to some function that returns an unconstrained type, do
25588         not inline.
25589
25590 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
25591
25592         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
25593         appear in the code for the main unit. Dependencies among units in the
25594         context of the main unit are established when those other units are
25595         compiled. Otherwise spurious elaboration constraints can generate
25596         incorrect elaboration circularities.
25597
25598 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
25599             Ed Schonberg   <schonberg@gnat.com>
25600
25601         * sem_util.adb (Is_Aliased_View): Defend against the case where this
25602         subprogram is called with a parameter that is not an object name. This
25603         situation arises for some cases of illegal code, which is diagnosed
25604         later, and in this case it is wrong to call Is_Aliased, as that might
25605         cause a compiler crash.
25606         (Explain_Limited_Type): Refine previous fix to include
25607         inherited components of derived types, to provide complete information.
25608
25609         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
25610         is the prival for a protected object.
25611         It is necessary to mark this entity as a variable, in addition to
25612         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
25613         modified to avoid checking the Aliased flag on entities that are not
25614         objects. (Checking that flag for non-objects is erroneous and could
25615         lead to a compiler crash).
25616
25617 2004-10-26  Robert Dewar  <dewar@gnat.com>
25618
25619         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
25620         X_Frac = 0.5, then we know that the number X must be positive.
25621         (Succ): Remove the same redundant test, and also fix the primary test
25622         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
25623         Minor reformatting
25624         (Decompose): Add fuller comments to spec
25625
25626 2004-10-26  Pascal Obry  <obry@gnat.com>
25627
25628         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
25629         validity (process must have read access). Set to 0 in all other cases.
25630         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
25631         violation on Win32.
25632         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
25633         segmentation violation.
25634
25635 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
25636
25637         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
25638         whose type is a constructed subtype of an aliased object with an
25639         unconstrained nominal subtype, convert the actual to the constructed
25640         subtype before taking its address.
25641
25642 2004-10-26  Vincent Celier  <celier@gnat.com>
25643
25644         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
25645         (Is_Path_Name_Case_Sensitive): New function
25646
25647         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
25648         (Base_Name, Simple_Name, Current_Directory, Compose,
25649         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
25650         the result.
25651
25652 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
25653             Vasiliy Fofanov  <fofanov@act-europe.fr>
25654             Vincent Celier   <celier@gnat.com>
25655
25656         * gnat_ugn.texi: Generalize "finding memory problems" section into a
25657         "memory management issues" section and document some of the useful
25658         memory pools provided as part of the GNAT library.
25659         Remove "virtual" from declaration of A::method2 in
25660         the simple example of Ada/C++ mixed system.
25661         Library Projects may be virtually extended: their virtual extensions
25662         are not Library Projects.
25663         Added section on extending project hierarchies.
25664
25665 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
25666
25667         * adaint.c (__gnat_get_libraries_from_registry): Cast value
25668         to LPBYTE.
25669         (__gnat_portable_spawn): Remove const.
25670
25671         * mingw32.h (MAXPATHLEN): Check for previous definition.
25672
25673 2004-10-17  Matthias Klose  <doko@debian.org>
25674
25675         * gnatvsn.ads: Set gnat library version to 4.0.
25676
25677 2004-10-05  Vincent Celier  <celier@gnat.com>
25678
25679         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
25680
25681 2004-10-04  Laurent Guerby  <laurent@guerby.net>
25682
25683         PR ada/15156
25684         * Makefile.in: Define and use RANLIB_FLAGS.
25685
25686 2004-10-04  Pascal Obry  <obry@gnat.com>
25687
25688         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
25689         other x86 platforms).
25690
25691 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25692
25693         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
25694         in general and triggers stack alignment adjustment for thread entry
25695         points on targets where this is necessary.
25696
25697 2004-10-04  Bernard Banner  <banner@gnat.com>
25698
25699         PR ada/13897
25700         * Makefile.in: Add section for powerpc linux
25701         Add variant i-vxwork-x86.ads
25702
25703         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
25704
25705 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
25706
25707         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
25708         table registration calls when need be. Ensures no reference to the crt
25709         ctors symbol are issued in the SJLJ case, which avoids possible
25710         undefined symbol errors in the case of modules to be statically linked
25711         with the kernel.
25712
25713 2004-10-04  Javier Miranda  <miranda@gnat.com>
25714
25715         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
25716         in-line the code corresponding to subprogram Analyze_Actuals. In
25717         addition, analyze the actuals only in case of subprogram call.
25718
25719 2004-10-04  Ed Falis  <falis@gnat.com>
25720
25721         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
25722
25723 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
25724
25725         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
25726         in the documentation.
25727
25728 2004-10-04  Robert Dewar  <dewar@gnat.com>
25729
25730         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
25731         IF and CASE.
25732         (Analyze_Block_Statement): Add circuitry to detect following dead code
25733         (Check_Unreachable_Code): Handle case of block exit
25734
25735 2004-10-04  Robert Dewar  <dewar@gnat.com>
25736
25737         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
25738         (XMatchD): Avoid warning for Logic_Error call
25739
25740 2004-10-04  Robert Dewar  <dewar@gnat.com>
25741
25742         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
25743         consider expressions buried within a procedure actual to be an actual.
25744         This caused some blowups with uses of packed slices within a procedure
25745         actual.
25746
25747 2004-10-04  Robert Dewar  <dewar@gnat.com>
25748
25749         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
25750         longer need to be initialized to zero.
25751         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
25752         initialized to zero.
25753
25754         * checks.adb (Expr_Known_Valid): Packed arrays are now always
25755         considered valid, even if the representation is modular. That's correct
25756         now that we no longer initialize packed modular arrays to zero.
25757
25758         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
25759         suffixes. These are now documented as the only cases in which the
25760         debugger ignores outer records.
25761         Previously, the spec allowed arbitrary suffixes for this purpose.
25762         Change name of LJM to JM for packed array pad records
25763         Create separate section on packed array handling, and add a whole new
25764         set of comments to this section describing the situation with packed
25765         modular types and justification requirements depending on endianness.
25766
25767 2004-10-04  Robert Dewar  <dewar@gnat.com>
25768
25769         * a-except.adb: Add a comment for last change
25770
25771         * einfo.ads: Minor spelling correction in comment
25772
25773         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
25774
25775         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
25776         messages.
25777
25778         * sem_util.ads: Minor comment update
25779
25780 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25781
25782         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
25783         Inline_Always when in Configurable_Run_Time mode.
25784
25785         * sem_prag.adb (Process_Convention): If entity is an inherited
25786         subprogram, apply convention to parent subprogram if in same scope.
25787         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
25788         when in Configurable_Run_Time mode.
25789
25790 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25791
25792         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
25793         class_wide type after component list has been inherited.
25794
25795 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25796
25797         * sem_ch12.adb (Check_Generic_Actuals): New predicate
25798         Denotes_Previous_Actual, to handle properly the case of a private
25799         actual that is also the component type of a subsequent array actual.
25800         The visibility status of the first actual is not affected when the
25801         second is installed.
25802         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
25803         make fully recursive the treatment of formals of packages declared
25804         with a box.
25805         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
25806         the above on exit from an instantiation.
25807         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
25808         current instantiation which is now complete.
25809         (Analyze_Package_Instantiation): No instantiated body is needed if the
25810         main unit is generic. Efficient, and avoid anomalies when a instance
25811         appears in a package accessed through rtsfind.
25812
25813 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25814
25815         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
25816         do not generate a declaration for a temporary if the call is part of a
25817         library-level instantiation.
25818
25819 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
25820
25821         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
25822         searching for a limited component to flag.
25823
25824         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
25825         expansion of Input, to account for the fact that the implicit call
25826         generated by the attribute reference must freeze the user-defined
25827         stream subprogram. This is only relevant to 'Input, because it can
25828         appear in an object declaration, prior to the body of the subprogram.
25829
25830         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
25831         expansion can proceed and further errors uncovered.
25832         (Minor clean up): Fix cases of using | instead of \ for continuation
25833         messages.
25834
25835 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25836
25837         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
25838
25839         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
25840         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
25841         Use gcc_assert and gcc_unreachable.
25842
25843         * decl.c (gnat_to_gnu_entity, case object): Check and process a
25844         specified alignment before validating size.
25845         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
25846         stripped-down declaration for the type of the inner field when making
25847         a JM type.
25848
25849         * utils.c (finish_record_type): Do not compute the size in units
25850         incrementally. Instead compute it once for the rep clause case.
25851         Use gcc_assert and gcc_unreachable.
25852
25853 2004-10-04  Vincent Celier  <celier@gnat.com>
25854
25855         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
25856         in file name.
25857         (Is_Valid_Path_Name): Take '/' as a directory separator.
25858
25859 2004-10-04  Vincent Celier  <celier@gnat.com>
25860
25861         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
25862         (Extended_Project) only if Extended_Project is defined, to avoid
25863         assertion error.
25864         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
25865         resolved path.
25866         (Parse_Single_Project): Ditto.
25867
25868         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
25869         Add_To_Project_Path for virtual projects.
25870
25871 2004-10-04  Vincent Celier  <celier@gnat.com>
25872
25873         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25874         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
25875         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
25876         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
25877         parameter Options_2.
25878
25879         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
25880         Build_Dynamic_Library with an empty Options_2.
25881
25882         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
25883         default anymore.
25884
25885         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
25886         directory separator, if any.
25887         (Gprmake): Do not allow mains on the command line for library projects.
25888         Do not attempt to link when the project is a library project.
25889         (Library_Opts): New table to store Library_Options.
25890         (Build_Library): If Library_Options is specified, pass these options
25891         when building a shared library.
25892
25893 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
25894
25895         * s-tposen.adb (Service_Entry): The object must be always unlocked at
25896         the end of this procedure now that the unlock operation was inserted
25897         by the expander.
25898
25899 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
25900
25901         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
25902         corresponding to the Preallocated_Stacks flags in System.
25903         (Get_Target_Parameters): Including the processing for
25904         Preallocated_Stacks.
25905
25906         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
25907         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
25908         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
25909         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
25910         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
25911         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
25912         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
25913         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
25914         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
25915         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
25916         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
25917         used to signal whether the compiler creates the required stacks and
25918         descriptors for the different tasks (when True) or it is done by the
25919         underlying operating system at run time (when False).
25920         It is initially set to False in all targets.
25921
25922         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
25923         if it is supported by the target.
25924         (Make_Task_Create_Call): Pass the stack address if it has been
25925         previously created. Otherwise pass a Null_Address.
25926
25927         * snames.adb: Add _stack.
25928
25929         * snames.ads: Add Name_uStack. Required to allow the expander to
25930         statically allocated task stacks.
25931
25932         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
25933         Stack_Address argument.
25934         Check that its value is equal to Null_Address because this target does
25935         not support the static stack allocation.
25936
25937 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25938
25939         * usage.adb: Change "pragma inline" to "pragma Inline" in information
25940         and error messages
25941
25942 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25943
25944         * exp_dist.adb: Split declaration of asynchronous flag out of
25945         Add_RACW_Read_Attribute.
25946         Minor reformatting for better alignment with PolyORB version.
25947         Store the entity for the asynchronous flag of an RACW, rather than the
25948         expression, in the asynchronous flags table. This will allow this flag
25949         to be used in other subprograms beside Add_RACW_Read_Attribute.
25950
25951 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
25952
25953         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
25954         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25955         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
25956         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
25957         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
25958         sockets constant MSG_NOSIGNAL (Linux-specific).
25959         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
25960         all Send operations.
25961         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
25962         from trigerring SIGPIPE.
25963         Rename components to avoid clash with Ada 2005 possible reserved
25964         word 'interface'.
25965         (Check_Selector): When the select system call returns with an error
25966         condition, propagate Socket_Error to the caller.
25967
25968 2004-10-01  Jan Hubicka  <jh@suse.cz>
25969
25970         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
25971
25972 2004-09-23  Robert Dewar  <dewar@gnat.com>
25973
25974         PR ada/17540
25975         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
25976         instead do this at freeze time (we won't do it if there is an address
25977         clause).
25978         Change "pragma inline" to "pragma Inline" in information and error
25979         messages.
25980         Minor reformatting.
25981
25982         * freeze.adb (Check_Address_Clause): Remove previous change, not the
25983         right way of doing things after all.
25984         (Freeze_Entity): For object, set Is_Public for imported entities
25985         unless there is an address clause present.
25986
25987 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
25988
25989         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
25990         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
25991         ensures proper handling of types with rep clauses, which might have
25992         their TYPE_SIZE set already.
25993
25994 2004-09-21  Robert Dewar  <dewar@gnat.com>
25995
25996         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
25997         packed array types in both little- and big-endian cases. This change
25998         ensures that we no longer count on the unused bits being initialized
25999         for such types (and in particular ensures that equality testing will
26000         only read the relevant bits).
26001         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26002         These changes mean that we no longer need to initialize small packed
26003         arrays.
26004         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
26005         optimization to an LJM field as to its parent field.
26006
26007         * ada-tree.h, trans.c, utils.c, utils2.c:
26008         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
26009
26010 2004-09-20  Jan Hubicka  <jh@suse.cz>
26011
26012         * utils.c (gnat_finalize): Remove.
26013         (end_subprog_body): Directly call cgraph_finalize_function;
26014         do not lower the nested functions.
26015
26016 2004-09-20  Robert Dewar  <dewar@gnat.com>
26017
26018         PR ada/17540
26019         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
26020         if an address clause is present, since that means that the Import
26021         should be ignored.
26022
26023 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
26024
26025         * 5tsystem.ads: Removed, no longer used.
26026
26027 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
26028             Zack Weinberg  <zack@codesourcery.com>
26029
26030         * ada-tree.def: Use tree_code_class enumeration constants
26031         instead of code letters.
26032         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
26033         Update for new tree-class enumeration constants.
26034
26035 2004-09-17  Vincent Celier  <celier@gnat.com>
26036
26037         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
26038         capabilities of the general project manager.
26039
26040 2004-09-09  Vincent Celier  <celier@gnat.com>
26041
26042         * a-direct.ads: Add pragma Ada_05
26043         (Directory_Entry_Type): Give default value to component Kind to avoid
26044         not initialized warnings.
26045
26046         * a-direct.adb (Current_Directory): Remove directory separator at the
26047         end.
26048         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
26049         an existing directory.
26050         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
26051         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
26052         Convert the result to File_Size.
26053
26054         * prj.ads: (Project_Error): New exception
26055
26056         * prj-attr.adb: Except in procedure Initialize, Fail comes from
26057         Prj.Com, not from Osint.
26058         (Attrs, Package_Attributes): Tables moved to private part of spec
26059         (Add_Attribute, Add_Unknown_Package): Moved to new child package
26060         Prj.Attr.PM.
26061         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
26062         Prj.Project_Error after call to Fail.
26063         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
26064         Fail. Check that package name is not already in use.
26065
26066         * prj-attr.ads: Comment updates to indicate that all subprograms may be
26067         used by tools, not only by the project manager, and to indicate that
26068         exception Prj.Prj_Error may be raised in case of problem.
26069         (Add_Unknown_Package, Add_Attribute): Moved to new child package
26070         Prj.Attr.PM.
26071         (Attrs, Package_Attributes): Table instantiations moved from the body to
26072         the private part to be accessible from Prj.Attr.PM body.
26073
26074         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
26075         from new package Prj.Attr.PM.
26076         (Parse_Attribute_Declaration): Call Add_Attribute from new package
26077         Prj.Attr.PM.
26078
26079         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
26080
26081         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
26082         instead of Elaboration_Checks).
26083
26084         * a-calend.adb: Minor reformatting
26085
26086 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26087
26088         * gigi.h (maybe_pad_type): New declaration.
26089         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
26090
26091         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
26092
26093         * cuintp.c: Convert to use buildN.
26094
26095         * decl.c (maybe_pad_type): No longer static.
26096         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
26097         target pointer.
26098         Convert to use buildN.
26099
26100         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
26101         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
26102         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
26103         RHS.
26104         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
26105         (gnat_gimplify_expr, case ADDR_EXPR): New case.
26106         Convert to use buildN.
26107
26108         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
26109         TREE_READONLY for const.
26110         Convert to use buildN.
26111
26112         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
26113         (create_var_decl): Refine when TREE_STATIC is set.
26114         Convert to use buildN.
26115
26116 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
26117
26118         * gnat_ugn.texi: Delete text relating to checking of ali and object
26119         consistency.
26120
26121         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
26122         routines.
26123
26124 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
26125
26126         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
26127         pragmas recognized by GNAT.
26128
26129         * gnat_rm.texi: Document pragma Detect_Blocking.
26130
26131         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
26132         raise Program_Error if called from a protected operation.
26133
26134         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
26135         the protected action nesting level.
26136         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
26137         protected action nesting level.
26138         (Unlock): When pragma Detect_Blocking is active decrease the protected
26139         action nesting level.
26140
26141         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
26142         Protected_Action_Nesting.
26143
26144         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
26145         Common_ATCB record. It contains the dynamic level of protected action
26146         nesting for each task. It is needed for checking whether potentially
26147         blocking operations are called from protected operations.
26148         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
26149         Detect_Blocking is active or not in the partition.
26150
26151         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
26152         raise Program_Error if called from a protected operation.
26153         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
26154         Program_Error if called from a protected operation.
26155         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
26156         Program_Error if called from a protected operation.
26157
26158         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
26159         raise Program_Error if called from a protected operation.
26160
26161         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
26162         raise Program_Error if called from a protected operation, and increase
26163         the protected action nesting level.
26164         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
26165         Program_Error if called from a protected operation, and increase the
26166         protected action nesting level.
26167         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
26168         protected action nesting level.
26169
26170         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
26171         raise Program_Error if called from a protected operation, and increase
26172         the protected action nesting level.
26173         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
26174         Program_Error if called from a protected operation, and increase the
26175         protected action nesting level.
26176         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
26177         raise Program_Error if called from a protected operation.
26178         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
26179         active, raise Program_Error if called from a protected operation.
26180         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
26181         protected action nesting level.
26182
26183         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
26184         insertion of the statement raising Program_Error. The run time
26185         contains the required machinery for handling that.
26186
26187         * sem_util.ads: Change comment associated to procedure
26188         Check_Potentially_Blocking_Operation.
26189         This procedure does not insert a call for raising the exception because
26190         that is currently done by the run time.
26191
26192         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
26193
26194         * init.c: Add the global variable __gl_detect_blocking that indicates
26195         whether pragma Detect_Blocking is active (1) or not (0). Needed for
26196         making the pragma available at run time.
26197         (__gnat_set_globals): Pass and update the detect_blocking parameter.
26198
26199         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
26200         pragma Detect_Blocking is active.
26201
26202         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
26203
26204         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
26205         DB is found in the ali file. Any unit compiled with pragma
26206         Detect_Blocking active forces its effect in the whole partition.
26207
26208         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
26209         Detect_Blocking is active and delay is called from a protected
26210         operation.
26211
26212         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
26213         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
26214         Detect_Blocking is active (0 otherwise).
26215         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
26216         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
26217         otherwise).
26218
26219 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
26220
26221         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
26222         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
26223         package.
26224
26225         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
26226         (Register_Receiving_Stub): Add Subp_Info formal parameter.
26227         Update API in placeholder implemetation of s-parint to reflect changes
26228         in distribution runtime library.
26229
26230         * sem_ch3.adb (Expand_Derived_Record): Rename to
26231         Expand_Record_Extension.
26232
26233         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
26234         primitive operations of potentially distributed object types that have
26235         non-controlling anonymous access formals.
26236
26237         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
26238         subprogram.
26239         New implementation of expansion for remote access-to-subprogram types,
26240         based on the RACW infrastructure.
26241         This version of sem_dist is compatible with PolyORB/DSA as well as
26242         GLADE.
26243
26244         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
26245         Asynchrronous that applies to a remote access-to-subprogram type, mark
26246         the underlying RACW type as asynchronous.
26247
26248         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
26249          __gnat_using_gnu_linker to 1.
26250
26251         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
26252         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
26253         GNAT.Perfect_Hash_Generators, and remove the empty
26254         GNAT.Perfect_Hash package.
26255
26256         * atree.adb: Minor reformatting
26257
26258         * exp_ch3.adb (Expand_Derived_Record): Rename to
26259         Expand_Record_Extension.
26260         (Build_Record_Init_Proc.Build_Assignment): The default expression in
26261         a component declaration must remain attached at that point in the
26262         tree so New_Copy_Tree copies it if the enclosing record type is derived.
26263         It is therefore necessary to take a copy of the expression when building
26264         the corresponding assignment statement in the init proc.
26265         As a side effect, in the case of a derived record type, we now see the
26266         original expression, without any rewriting that could have occurred
26267         during expansion of the ancestor type's init proc, and we do not need
26268         to go back to Original_Node.
26269
26270         * exp_ch3.ads (Expand_Derived_Record): Rename to
26271         Expand_Record_Extension.
26272
26273         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
26274         Returns the RACW type used to implement a remote access-to-subprogram
26275         type.
26276         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
26277         New subprograms. Used to create a proxy tagged object for a remote
26278         subprogram. The proxy object is used as the designated object
26279         for RAS values on the same partition (unless All_Calls_Remote applies).
26280         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
26281         System.Partition_Interface.Get_Unique_Remote_Pointer.
26282         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
26283         Renamed from Add_RAS_*_Attribute.
26284         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
26285         subprograms.
26286         New implementation of expansion for remote access-to-subprogram types,
26287         based on the RACW infrastructure.
26288
26289         * exp_dist.ads (Copy_Specification): Update comment to note that this
26290         function can copy the specification from either a subprogram
26291         specification or an access-to-subprogram type definition.
26292
26293 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
26294
26295         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
26296         in an instance, between an explicit subprogram an one inherited from a
26297         type derived from an actual.
26298
26299         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
26300         add a polling call if the subprogram is to be inlined by the back-end,
26301         to avoid repeated calls with multiple inlinings.
26302
26303         * checks.adb (Apply_Alignment_Check): If the expression in the address
26304         clause is a call whose name is not a static entity (e.g. a dispatching
26305         call), treat as dynamic.
26306
26307 2004-09-09  Robert Dewar  <dewar@gnat.com>
26308
26309         * g-trasym.ads: Minor reformatting
26310
26311         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
26312         packed arrays, since unused bits are expected to be zero for a
26313         comparison.
26314
26315 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
26316
26317         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
26318         comment.
26319
26320 2004-09-09  Pascal Obry  <obry@gnat.com>
26321
26322         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
26323         enable map file generation. Add the right option to generate the map
26324         file if Map_File is set to True.
26325
26326         * gnatdll.adb (Gen_Map_File): New variable.
26327         (Syntax): Add info about new -m (Map_File) option.
26328         (Parse_Command_Line): Add support for -m option.
26329         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
26330         Minor reformatting.
26331
26332 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
26333
26334         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
26335         new gnatdist implementation.
26336         Define a subpackage isolating the output routines specific to this
26337         verbose mode.
26338
26339 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
26340
26341         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
26342
26343         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
26344
26345 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
26346
26347         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
26348         internal unit.
26349
26350         * opt.ads: Add Ada_Version_Runtime constant used to decide which
26351         version of the language is used to compile the run time.
26352
26353 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
26354
26355         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
26356         of variable length temporaries for function return now that the
26357         back-end and gigi support it.
26358
26359 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26360
26361         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
26362
26363         * trans.c (struct stmt_group): Delete field GLOBAL.
26364         (gnat_init_stmt_group): Do not initialize it.
26365         (call_to_gnu): Use save_expr, not protect_multiple_eval.
26366         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
26367         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
26368         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
26369         (start_stmt_group): Likewise.
26370         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
26371
26372         * utils2.c (ggc.h): Include.
26373         (build_call_raise): Call build_int_cst, not build_int_2.
26374
26375         * utils.c (gnat_init_decl_processing): Fix arg to
26376         build_common_tree_nodes.
26377         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
26378         (gnat_define_builtin): Set built_in_decls.
26379         (init_gigi_decls): Call build_int_cst, not build_int_2.
26380
26381         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
26382         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
26383         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
26384         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
26385         SET_TYPE_MODULE): Use them.
26386         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
26387         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
26388         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
26389         SET_TYPE_ADA_SIZE): Likewise.
26390         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
26391         (DECL_CONST_CORRESPONDING_VAR,
26392         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
26393         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
26394         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
26395         (TYPE_RM_SIZE_NUM): New macro.
26396         (TYPE_RM_SIZE): Modified to use above.
26397
26398         * cuintp.c: (build_cst_from_int): New function.
26399         (UI_To_gnu): Use it.
26400
26401         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
26402         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
26403         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
26404         MIN_EXPR for the size, copy it into new.
26405
26406 2004-09-01  Robert Dewar  <dewar@gnat.com>
26407
26408         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
26409         packed indexed component where array is an IN OUT formal. This
26410         generated garbage code previously.
26411
26412         * gnat_ugn.texi: Document -fverbose-asm
26413
26414         * gnat-style.texi: Minor updates (note that boolean constants and
26415         variables are joined with AND/OR rather than short circuit forms).
26416
26417 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
26418
26419         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
26420         it is an upward conversion of an untagged type with no representation
26421         change.
26422
26423 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
26424
26425         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
26426         System.Partition_Interface.
26427
26428         * checks.adb (Apply_Access_Checks): Do not generate checks when
26429         expander is not active (but check for unset reference to prefix of
26430         dereference).
26431
26432         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
26433         pragma Debug as an if statement with a constant condition, for
26434         consistent treatment of entity references contained within the
26435         enclosed procedure call.
26436
26437 2004-09-01  Vincent Celier  <celier@gnat.com>
26438
26439         * bindgen.adb: (Set_EA_Last): New procedure
26440         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
26441         Set_EA_Last.
26442         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
26443         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
26444         linked without errors.
26445         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
26446         ST and EA.
26447         (Gen_Exception_Table_C): Correct same bugs
26448
26449         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
26450
26451         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
26452         on Windows, make sure that the drive letter is in upper case.
26453
26454         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
26455         Windows, when the drive letter is added and Case_Sensitive is True, the
26456         drive letter is forced to upper case.
26457
26458         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
26459         to Options_2 for the call to MLib.Utl.Gcc.
26460
26461         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
26462         directory separator when defining BASE_DIR.
26463
26464 2004-09-01  Pascal Obry  <obry@gnat.com>
26465
26466         * gprcmd.adb (Extend): Do not output trailing directory separator. This
26467         is not needed and it confuses Windows GNU/make which does not report
26468         directory terminated by a slash as a directory.
26469         (gprcmd): Idem for "pwd" internal command.
26470
26471         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
26472         target names rewrite to fix regressions with recent version of
26473         GNU/make. Starting with GNU/make 3.80 the pipe character was not
26474         handled properly anymore.
26475
26476 2004-09-01  Andreas Schwab  <schwab@suse.de>
26477
26478         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
26479         * raise.c [!IN_RTS]: Undef abort.
26480
26481 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
26482
26483         * utils2.c (build_allocator): Use ssize_int.
26484
26485         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
26486
26487 2004-08-27  Andreas Schwab  <schwab@suse.de>
26488
26489         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
26490
26491 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26492             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26493
26494         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
26495
26496 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
26497
26498         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
26499         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26500         * utils.c (init_gigi_decls): Likewise.
26501         * utils2.c (build_call_raise, build_allocator): Likewise.
26502
26503 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
26504
26505         * utils.c (gnat_init_decl_processing): Adjust
26506         build_common_tree_nodes call.
26507
26508 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
26509
26510         * utils2.c (build_allocator): Use build_int_cst for negative
26511         size types.
26512
26513 2004-08-18  Richard Henderson  <rth@redhat.com>
26514
26515         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
26516
26517 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
26518
26519         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
26520         call.s
26521         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
26522         (gnat_to_gnu): Likewise.
26523
26524 2004-08-16  Pascal Obry  <obry@gnat.com>
26525
26526         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
26527         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
26528         option and not mdll anymore. Update comment.
26529
26530 2004-08-16  Pascal Obry  <obry@gnat.com>
26531
26532         * bld.adb (Put_Include_Project): Properly handle directory separators
26533         on Windows.
26534
26535 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
26536
26537         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
26538         decreasing the number of allocated junk nodes while searching for the
26539         appropriate subprogram.
26540
26541 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
26542
26543         * cuintp.c (UI_To_gnu): Use build_int_cst..
26544         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
26545         * utils.c (init_gigi_decls): Likewise.
26546         * utils2.c (build_call_raise): Likewise.
26547
26548 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
26549
26550         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
26551         for a global aliased object with a variable size and an unconstrained
26552         nominal subtype, pretend there is no initializer if the one we have is
26553         incomplete, and avoid referencing an inexistant component in there. The
26554         part we have will be rebuilt anyway and the reference may confuse
26555         further operations.
26556
26557 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
26558
26559         * einfo.ads: Minor reformatting
26560
26561         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
26562         restrictions in the ALI if we only want to warn about violations.
26563
26564 2004-08-13  Vincent Celier  <celier@gnat.com>
26565
26566         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
26567         when creating a new Unit_Record in table Units.
26568
26569         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
26570         that are violated, if any.
26571
26572         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
26573         add directory separator if path already ends with a directory separator.
26574
26575 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26576
26577         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
26578         unit, this is an attempt to inline a construct that is not available in
26579         the current restricted mode, so abort rather than trying to continue.
26580
26581         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
26582         discriminants that rename those of the parent, recover names of
26583         original discriminants for the constraint on the full view of the
26584         parent.
26585         (Complete_Private_Subtype): Do not create a subtype declaration if the
26586         subtype is an itype.
26587
26588         * gnat_rm.texi: Added section on implementation of discriminated
26589         records with default values for discriminants.
26590
26591 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
26592
26593         PR ada/15601
26594         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
26595         the second operand is overloaded.
26596
26597 2004-08-10  Richard Henderson  <rth@redhat.com>
26598
26599         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
26600         add __builtin_alloca.
26601
26602 2004-08-10  Richard Henderson  <rth@redhat.com>
26603
26604         * config-lang.in (boot_language): Yes.
26605
26606 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
26607
26608         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
26609         from complaining on potential uninitialized reference.
26610         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
26611         new specification and test explicitly for non-zero return value.
26612
26613         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
26614         returning C.int, to avoid using a derived boolean type.
26615
26616         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
26617         Duplicate_Subexpr_No_Checks in preference to direct use of
26618         Remove_Side_Effects and New_Copy_Tree.
26619         Clear Comes_From_Source on prefix of 'Size attribute reference.
26620
26621         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
26622         g-socthi-vxworks.adb: Change calls to
26623         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
26624         and test explicitly for non-zero return value.
26625
26626         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
26627         (Is_Socket_In_Set): Declare imported function as returning C.int, to
26628         avoid using a derived boolean type.
26629
26630 2004-08-09  Albert Lee  <lee@gnat.com>
26631
26632         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
26633
26634 2004-08-09  Pascal Obry  <obry@gnat.com>
26635
26636         * gnat_ugn.texi: Document new way to build DLLs on Windows using
26637         GCC's -shared option.
26638
26639         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
26640         Options_2 parameter (options put after object files).
26641
26642 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
26643
26644         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
26645         ignore overflows on low and high bounds of an index to also account for
26646         differences in signedness between sizetype and gnu_index_subtype.
26647         These are as legitimate as the ones caused by a lower TYPE_PRECISION
26648         on sizetype.
26649
26650 2004-08-09  Robert Dewar  <dewar@gnat.com>
26651
26652         * s-solita.ads, s-solita.adb: Minor reformatting
26653
26654         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
26655         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
26656         obsolescent section
26657         Add note that No_Implicit_Conditionals does not suppress
26658         run time constraint checks.
26659
26660         * vms_conv.ads: Minor reformatting
26661
26662         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
26663         and necessary for following change).
26664         (Mark): Return new format Mark_Id containing sec stack address
26665         (Release): Use sec stack address from Mark_Id avoiding Self call
26666
26667         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
26668         pointer (cleanup and necessary for following change).
26669         Define Mark_Id as record containing address of secondary stack, that way
26670         Release does not need to find the stack again, decreasing the number of
26671         calls to Self and improving efficiency.
26672
26673         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
26674
26675         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
26676         case variable into the individual case branches when possible.
26677
26678         * sem_ch11.adb: Minor reformatting
26679
26680         * prj.ads: Correct spelling of suffixs
26681
26682         * prj-nmsc.adb: Minor reformatting
26683         Correct spelling suffixs throughout (also in identifiers)
26684
26685         * freeze.adb: Minor spelling correction
26686
26687         * exp_ch2.adb: Cleanups to handling of Current_Value
26688         (no functional effect).
26689
26690         * bld.adb: Correct spelling of suffixs
26691
26692         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
26693
26694 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26695
26696         PR ada/15408
26697         * sem_ch7.adb (Install_Private_Declarations): In the body of the
26698         package or of a child, private entities are both immediately_visible
26699         and not hidden.
26700
26701 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
26702
26703         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
26704         there are no range checks on the value of the literal.
26705
26706         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
26707         wrapped is the triggering alternative of an asynchronous select, action
26708         statements mustbe inserted before the select itself.
26709
26710         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
26711         case where the prefix is a protected function call.
26712         (Resolve_Attribute, case 'Access): The attribute reference on a
26713         subprogram is legal in a generic body if the subprogram is declared
26714         elsewhere.
26715
26716 2004-08-09  Vincent Celier  <celier@gnat.com>
26717
26718         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
26719         languages, otherwise building the library may fail with unresolved
26720         symbols.
26721         (Compile_Sources): Do not build libraries if -c switch is used
26722
26723         * gnatlink.adb (Process_Args): New switches -M and -Mmap
26724         (Write_Usage): If map file creation is supported, output new switches
26725         -M and -Mmap.
26726         (Gnatlink): When -M is specified, add the necessary switch(es) to the
26727         gcc call, when supported.
26728
26729         * Makefile.in: Added indepsw.o to the object list for gnatlink
26730         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
26731
26732         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
26733         indepsw.adb, indepsw.ads: New files.
26734
26735 2004-08-09  Bernard Banner  <banner@gnat.com>
26736
26737         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
26738
26739         * Makefile.in: add section for vxworks x86
26740
26741 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
26742
26743         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
26744         per-object constrained components where the discriminant is of an
26745         Access type.
26746         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
26747         the parent initialization procedure for derived Unchecked_Unions.
26748         Instead, derived Unchecked_Unions build their own initialization
26749         procedure.
26750         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
26751         Check the body of the subprogram for details.
26752         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
26753         functions for derived Unchecked_Union types by introducing a condition.
26754         Allow the creation of TSS equality functions for Unchecked_Unions.
26755         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
26756         Add formal parameter Discr to function signature. Discr is used to
26757         control the generated case statement for Unchecked_Union types.
26758         (Make_Eq_If): Rename formal parameter Node to E in function signature.
26759
26760         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
26761         Unchecked_Unions.
26762         Check the body of the subprogram for details.
26763         (Expand_Composite_Equality): Augment composite type equality to include
26764         correct handling of Unchecked_Union components.
26765         (Expand_N_In): Add condition to detect illegal membership tests when the
26766         subtype mark is a constrained Unchecked_Union and the expression lacks
26767         inferable discriminants, and build a Raise_Program_Error node.
26768         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
26769         to detect types that contain components of unconstrained Unchecked_Union
26770         subtype. Add condition to detect equality between types that have an
26771         unconstrained Unchecked_Union component, and build a Raise_Program_Error
26772         node. Add condition to detect equality between Unchecked_Union types
26773         that lack inferable discriminants, and build a Raise_Program_Error node.
26774         Otherwise build a TSS equality function call.
26775         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
26776         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
26777         with the operand lacking inferable discriminants, and build a Raise_
26778         Program_Error node.
26779         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
26780         composite equality.
26781         (Has_Inferable_Discriminants): Implement new predicate for objects and
26782         expressions of Unchecked_Union type. Check the body of subprogram for
26783         details.
26784         (Has_Unconstrained_UU_Components): Add function
26785         Component_Is_Unconstrained_UU. It is used to detect whether a single
26786         component is of an unconstrained Unchecked_Union subtype. Add function
26787         Variant_Is_Unconstrained_UU. It is used to detect whether a single
26788         component inside a variant is of an unconstrained Unchecked_Union type.
26789
26790         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
26791         inferred discriminant values. Add condition to generate a case
26792         statement with an inferred discriminant as the switch.
26793         (Make_Component_List_Assign): Introduce a Boolean flag that determines
26794         the behaviour of the subprogram in the presence of an Unchecked_Union.
26795         Add condition to trigger the usage of the inferred discriminant value
26796         as the generated case statement switch.
26797         (Make_Field_Assign): Introduce a Boolean flag that determines the
26798         behaviour of the subprogram in the presence of an Unchecked_Union. Add
26799         condition to trigger the usage of the inferred discriminant value as
26800         the right-hand side of the generated assignment.
26801
26802         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
26803         parameter generation when dealing with Unchecked_Unions.
26804
26805         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
26806         checks for Unchecked_Unions.
26807
26808         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
26809
26810         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
26811         Raise_Program_Error nodes for the execution of Read and Write
26812         attributes of Unchecked_Union types and the execution of Input and
26813         Output attributes of Unchecked_Union types that lack default
26814         discriminant values.
26815
26816         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
26817         Unchecked_Union. Add procedure Check_Component. It is used to inspect
26818         per-object constrained components of Unchecked_Unions for being
26819         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
26820         check individual components withing a variant.
26821
26822         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
26823         comparison of Unchecked_Unions.
26824         (Resolve_Equality_OP): Remove guard that prevents equality between
26825         Unchecked_Unions.
26826
26827         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
26828         of component subtypes for Unchecked_Union components.
26829         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
26830         since it is the actual subtype.
26831
26832         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
26833         pass of Unchecked_Union subtypes as generic actuals to formal types
26834         that lack known_discriminant_parts or that are derived Unchecked_Union
26835         types, and do nothing. In any other case, produce an error message.
26836
26837         * sem_ch3.adb (Analyze_Component_Declaration): Add function
26838         Contains_POC. It determines whether a constraint uses the discriminant
26839         of an enclosing record type.
26840         Add condition to detect per-object constrained component and set the
26841         appropriate flag.
26842         (Derived_Type_Declaration): Remove guard that prevents derivation from
26843         Unchecked_Union types.
26844         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
26845         Union subtypes.
26846
26847         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
26848         references to Unchecked_Union discriminants.
26849
26850         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
26851         formal generation when dealing with Unchecked_Unions.
26852         (Set_Actual_Subtypes): Add condition to prevent generation of actual
26853         subtypes for Unchecked_Unions.
26854
26855         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
26856         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
26857         completions of discriminated partial views by Unchecked_Unions and
26858         produce an error message.
26859
26860 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26861
26862         * trans.c (struct stmt_group): New field, GLOBAL.
26863         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
26864         (struct elab_info): New struct.
26865         (elab_info_list, gnu_elab_proc_stack): New variables.
26866         (Compilation_Unit_to_gnu): New procedure.
26867         (gigi): Call it and also handle elaboration procs we've saved.
26868         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
26869         global field from parent.
26870         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
26871         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
26872         (start_stmt_group): Initialize global field from parent.
26873         (add_decl_expr): Set to global for current statement group.
26874         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
26875         post.
26876
26877         * utils.c (global_bindings_p): True when no current_function_decl; no
26878         longer check current_binding_level.
26879
26880 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
26881
26882         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
26883         choice.
26884
26885         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
26886
26887 2004-08-06  Andreas Schwab  <schwab@suse.de>
26888
26889         * utils.c (gnat_define_builtin): Remove second parameter of
26890         make_decl_rtl.
26891         (begin_subprog_body): Likewise.
26892
26893 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
26894
26895         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
26896         optimization, not supported by the tree-ssa back-end.
26897
26898 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
26899
26900         * s-mastop-irix.adb: Update comments.
26901
26902         * a-except.adb (Exception_Information): Raise Constraint_Error if
26903         exception Id is Null_Id.
26904         This is required behavior, which is more reliably and clearly checked
26905         at the top level interface level.
26906
26907 2004-07-26  Javier Miranda  <miranda@gnat.com>
26908
26909         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
26910         call if a component has no default_expression and the box is used.
26911
26912         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
26913         default_expression and you use box, it behaves as if you had declared a
26914         stand-alone object.
26915         (Resolve_Record_Aggregate): If a component has no default_expression and
26916         you use box, it behaves as if you had declared a stand-alone object.
26917
26918         * sem_ch10.adb (Install_Siblings): Do not make visible the private
26919         entities of private-with siblings.
26920
26921 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26922
26923         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
26924         for a component of an itype, set the parent pointer for analysis,
26925         there is no list in which to insert it.
26926
26927         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
26928         bona-fide renamings, not for inherited operations.
26929
26930         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
26931         actual for a formal that is an access parameter, create local
26932         finalization list even if the expression is not an aggregate.
26933
26934 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26935
26936         PR ada/16213
26937         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
26938         Diagnose properly illegal subprogram renamings that are library units.
26939
26940 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
26941
26942         PR ada/15588
26943         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
26944         conversion rewritten as an unchecked conversion, check that original
26945         expression is a variable.
26946
26947         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
26948         unchecked_conversion, create new node rather than rewriting in place,
26949         to preserve original construct.
26950
26951 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26952
26953         * gigi.h (gnat_expand_body): Deleted.
26954
26955         * Make-lang.in: (trans.o): Depends on function.h.
26956
26957         * misc.c: (gnat_expand_body): Moved to here.
26958
26959         * trans.c (gnat_expand_body_1): Deleted.
26960         (gnat_expand_body): Moved from here.
26961         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
26962         (add_stmt): Check for marked visited with global_bindings_p.
26963         (gnat_gimplify_expr, case COMPONENT_REF): New case.
26964         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
26965
26966         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
26967         VIEW_CONVERT_EXPR if not operation type.
26968
26969         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
26970         fat pointer.
26971
26972         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
26973         changes: reformatting of negation operators, removing unneeded
26974         inequality comparison with zero, converting equality comparisons with
26975         zero to negations, changing int/0/1 to bool/false/true, replace calls
26976         to gigi_abort with abort, and various other similar changes.
26977
26978 2004-07-26  Vincent Celier  <celier@gnat.com>
26979
26980         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
26981         "setup".
26982
26983         * make.adb (Gnatmake): Fail when a library is not present and there is
26984         no object directory.
26985
26986         * mlib-prj.adb (Check_Library): No need to check if the library needs
26987         to be rebuilt if there is no object directory, hence no object files
26988         to build the library.
26989
26990         * opt.ads (Setup_Projects): New Boolean flag.
26991
26992         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
26993         Location.
26994         Create directory when Kind /= "" and in "gnat setup". Report error if
26995         directory cannot be created.
26996         (Ada_Check): Create library interface copy dir if it does not exist
26997         and we are in "gnat setup".
26998         (Find_Sources): No error if in "gnat setup" and no Ada sources were
26999         found.
27000         (Language_Independent_Check): Create object directory, exec directory
27001         and/or library directory if they do not exist and we are in
27002         "gnat setup".
27003
27004         * vms_conv.ads: (Command_Type): New command Setup.
27005
27006         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
27007
27008         * vms_data.ads: Add qualifiers/switches for new built-in command
27009         "setup".
27010
27011 2004-07-25  Richard Henderson  <rth@redhat.com>
27012
27013         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
27014         DECL_IGNORED_P on RESULT_DECL.
27015
27016 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
27017
27018         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
27019         allocation and potentially overflowing update with
27020         Tailored_Exception_Information. Use the sec-stack free procedural
27021         interface to output Exception_Information instead.
27022
27023         * a-except.adb (To_Stderr): New subprogram for character, and string
27024         version moved from a-exextr to be visible from other separate units.
27025         (Tailored_Exception_Information): Remove the procedural version,
27026         previously used by the default Last_Chance_Handler and not any more.
27027         Adjust various comments.
27028
27029         * a-exexda.adb: Generalize the exception information procedural
27030         interface, to minimize the use of secondary stack and the need for
27031         local buffers when the info is to be output to stderr:
27032         (Address_Image): Removed.
27033         (Append_Info_Character): New subprogram, checking for overflows and
27034         outputing to stderr if buffer to fill is of length 0.
27035         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
27036         (Append_Info_Address, Append_Info_Exception_Name,
27037         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
27038         Append_Info_Basic_Exception_Traceback,
27039         Append_Info_Exception_Information): New subprograms.
27040         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
27041         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
27042         Exception_Info_Maxlength, Exception_Name_Length,
27043         Exception_Message_Length): New subprograms.
27044         (Exception_Information): Use Append_Info_Exception_Information.
27045         (Tailored_Exception_Information): Use
27046         Append_Info_Basic_Exception_Information.
27047         Export services for the default Last_Chance_Handler.
27048
27049         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
27050         other separate units.
27051
27052 2004-07-20  Vincent Celier  <celier@gnat.com>
27053
27054         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
27055
27056 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27057
27058         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
27059         emit itype references for the designated types of component types that
27060         are declared outside of the full record declaration, and that may
27061         denote a partial view of that record type.
27062
27063 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27064
27065         PR ada/15607
27066         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
27067         which is the designated type in an access component declaration, to the
27068         list of incomplete dependents of the parent type, to avoid elaboration
27069         issues with out-of-scope subtypes.
27070         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
27071         full view of the parent.
27072
27073 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
27074
27075         PR ada/15610
27076         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
27077         entities that are hidden, such as references to generic actuals
27078         outside an instance.
27079
27080 2004-07-20  Javier Miranda  <miranda@gnat.com>
27081
27082         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
27083         support to the new notation.
27084         (Analyze_Selected_Component): Add call to Try_Object_Operation.
27085
27086 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
27087
27088         * s-taprob.adb: Adding the elaboration code required for initializing
27089         the tasking soft links that are common to the full and the restricted
27090         run times.
27091
27092         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
27093         restricted run time has been moved to the package
27094         System.Soft_Links.Tasking.
27095
27096         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
27097         restricted run time has been moved to the package
27098         System.Soft_Links.Tasking.
27099
27100         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
27101
27102         * s-solita.ads, s-solita.adb: New files.
27103
27104 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27105
27106         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
27107         Case_Statement_to_gnu): Split off from gnat_to_gnu.
27108         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
27109         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
27110         Exception_Handler_to_gnu_zcx): Likewise.
27111
27112 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
27113
27114         * gigi.h (builtin_function): Declare.
27115
27116 2004-07-15  Robert Dewar  <dewar@gnat.com>
27117
27118         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
27119         reformatting
27120
27121         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
27122         access values as an example of a warning.
27123
27124         * gnat_rm.texi: Document new attribute Has_Access_Values
27125
27126         * gnat-style.texi: Document that box comments belong on nested
27127         subprograms
27128
27129         * sem_util.ads (Has_Access_Values): Improved documentation
27130
27131         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
27132
27133         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
27134         (Process_Interface_Name): Call to this new procedure
27135         (Set_Extended_Import_Export_External_Name): Call to this new procedure
27136
27137         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
27138
27139         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
27140
27141         * einfo.ads: Minor comment typo fixed
27142
27143 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
27144
27145         * snames.adb: Add _atcb.
27146
27147         * snames.ads: Add Name_uATCB.
27148
27149         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
27150         (in the expanded code) when using the restricted run time.
27151
27152         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
27153         a in parameter in order to allow ATCBs to be preallocated (in the
27154         expanded code).
27155
27156         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
27157         order to allow ATCBs to be preallocated. In case of error, the ATCB is
27158         deallocated in System.Tasking.Stages.
27159
27160         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
27161         order to allow ATCBs to be preallocated.
27162
27163         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
27164         here. It was previously done in Initialize_ATCB.
27165
27166         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
27167
27168         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
27169         Restricted run time.
27170
27171         * exp_ch3.adb: When using the Restricted run time, pass the
27172         preallocated Ada_Task_Control_Block when creating a task.
27173
27174 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
27175
27176         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
27177         function call that is itself an actual in an enclosing call, diagnose
27178         problem here rather than assuming that resolution will catch it.
27179
27180         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
27181         the local copy of a generic unit for a formal package, and the generic
27182         is a child unit, install private part of ancestors before compiling
27183         private part of spec.
27184
27185         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
27186         use scope entities rather than tree structures, to handle properly
27187         parent units that are instances rewritten as bodies for inlining
27188         purposes.
27189
27190         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
27191         Remove_Parents): Handle properly a parent unit that is an
27192         instantiation, when the unit has been rewritten as a body for inlining
27193         purposes.
27194
27195         * par.adb (Goto_List): Global variable to collect goto statements in a
27196         given unit, for use in detecting natural loops.
27197
27198         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
27199         use in detecting natural loops.
27200
27201         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
27202         backwards goto's, and rewrite as a infinite loop, to improve locality
27203         of temporaries.
27204
27205         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
27206         subcomponent that includes an indexed reference, to prevent the
27207         generation of copies that would miscompile the desired assignment
27208         statement.
27209         (Build_Task_Image_Decls): Add a numeric suffix to
27210         generated name for string variable, to avoid spurious conflicts with
27211         the name of the type of a single protected object.
27212
27213         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
27214         loop with an explicit exit statement, to avoid generating an
27215         out-of-range value with 'Succ leading to spurious constraint_errors
27216         when compiling with -gnatVo.
27217
27218 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
27219
27220         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
27221         might not be analyzed yet, even if its Etype is already set (case of an
27222         unchecked conversion built using Unchecked_Convert_To, for example).
27223         If the prefix has already been analyzed, this will be a nop anyway.
27224
27225         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
27226         controller type, or an assignment of a record type with controlled
27227         components, copy only user data, and leave the finalization chain
27228         pointers untouched.
27229
27230 2004-07-15  Vincent Celier  <celier@gnat.com>
27231
27232         * make.adb (Collect_Arguments): Improve error message when attempting
27233         to compile a source not part of any project, when -x is not used.
27234
27235         * prj.ads: (Defined_Variable_Kind): New subtype
27236
27237         * prj-attr.adb (Register_New_Package): Two new procedures to register
27238         a package with or without its attributes.
27239         (Register_New_Attribute): Mew procedure to register a new attribute in a
27240         package.
27241         New attribute oriented subprograms: Attribute_Node_Id_Of,
27242         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27243         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27244         Next_Attribute.
27245         New package oriented subprograms: Package_Node_Id_Of,
27246         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27247
27248         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
27249         type.
27250         (Package_Node_Id): Now a private, self initialized type
27251         (Register_New_Package): New procedure to register a package with its
27252         attributes.
27253         New attribute oriented subprograms: Attribute_Node_Id_Of,
27254         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
27255         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
27256         Next_Attribute.
27257         New package oriented subprograms: Package_Node_Id_Of,
27258         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
27259
27260         * prj-dect.adb (Parse_Attribute_Declaration,
27261         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
27262
27263         * prj-makr.adb (Make): Parse existing project file before creating
27264         other files. Fail if there was an error during parsing.
27265
27266         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
27267         new spec of Prj.Attr.
27268
27269         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
27270         to new spec of Prj.Attr.
27271
27272 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27273
27274         * utils2.c: Fix typo in comment.
27275
27276 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27277
27278         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
27279         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
27280
27281 2004-07-14  Andreas Schwab  <schwab@suse.de>
27282
27283         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
27284
27285 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27286
27287         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
27288         object type.
27289         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
27290         TYPE_STUB_DECL.
27291
27292         * misc.c (gnat_types_compatible_p): New function.
27293         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
27294         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
27295
27296         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
27297         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
27298         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
27299         (mark_visited): Don't mark dummy type.
27300         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
27301         parameter, we must remove any LJM building from GNU_NAME.
27302         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
27303         (pos_to_constructor): Use int_const_binop.
27304         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
27305         PARM_DECL.
27306
27307         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
27308         (gnat_pushlevel): Set TREE_USE on BLOCK node.
27309         (gnat_install_builtins): Add __builtin_memset.
27310
27311 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
27312
27313         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
27314         for a renaming, stabilize the initialization expression if we are at a
27315         local level.  At the local level, uses of the renaming may be performed
27316         by a direct dereference of the initializing expression, and we don't
27317         want possible variables there to be evaluated for every use.
27318
27319         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
27320         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
27321         them on the way.  Account for the fact that we may introduce side
27322         effects in the process.
27323
27324 2004-07-13  Richard Henderson  <rth@redhat.com>
27325
27326         * misc.c (default_pass_by_ref): Use pass_by_reference.
27327
27328 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
27329
27330         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
27331         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
27332
27333 2004-07-08  Richard Henderson  <rth@redhat.com>
27334
27335         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
27336         commentary.
27337
27338 2004-07-06  Vincent Celier  <celier@gnat.com>
27339
27340         * vms_conv.ads: Minor reformatting.
27341         Alphabetical order for enumerated values of type Command_Type, to have
27342         the command in alphabetical order for the usage.
27343
27344         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
27345         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
27346
27347         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
27348
27349         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
27350         (Add_Archive_Path): Only add the global archive if there is one.
27351         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
27352         or not any object file to put in the global archive, and don't build
27353         a global archive if there is none.
27354         (X_Switches): New table
27355         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
27356         in the X_Switches table, if any.
27357         (Initialize): Make sure the X_Switches table is empty
27358         (Scan_Arg): Record -X switches in table X_Switches
27359
27360         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
27361
27362         * make.adb: Minor comment fix
27363
27364         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
27365         invoked with directory information, add the directory in front of the
27366         path.
27367
27368         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
27369         invoked with directory information, add the directory in front of the
27370         path.
27371
27372         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
27373         when Keep_Temporary_Files is False.
27374         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
27375         directory information, add the directory in front of the path.
27376         When not on VMS, handle new switch -dn before the command to set
27377         Keep_Temporary_Files to True.
27378         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
27379         everywhere.
27380
27381         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
27382         invoked with directory information, add the directory in front of the
27383         path.
27384
27385 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
27386
27387         * snames.ads, snames.adb (Name_Stub): New name for the distributed
27388         systems annex.
27389
27390         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
27391         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
27392
27393         * g-socket.adb (To_Timeval): Fix incorrect conversion of
27394         Selector_Duration to Timeval for the case of 0.0.
27395
27396         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
27397         documentation from Evolve_And_Then.
27398
27399 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
27400
27401         * s-taprop-tru64.adb, s-taprop-os2.adb,
27402         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
27403
27404 2004-07-06  Robert Dewar  <dewar@gnat.com>
27405
27406         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
27407         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
27408         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
27409         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
27410         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
27411         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
27412         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
27413         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
27414         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
27415         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
27416         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
27417         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
27418         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
27419         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
27420         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
27421         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
27422         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
27423         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
27424         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
27425         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
27426         vms_data.ads: Minor reformatting,
27427         Fix bad box comment format.
27428
27429         * gnat_rm.texi: Fix minor grammatical error
27430
27431         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
27432
27433         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
27434         more cases of discriminated records to be recognized as not needing a
27435         secondary stack.
27436         (Has_Access_Values): New function.
27437
27438         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
27439
27440         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
27441         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
27442         with LRM terminology).
27443         Change terminology in comments primitive type => elementary type.
27444
27445 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27446
27447         PR ada/15602
27448         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
27449         parameters do not impose any requirements on the presence of a body.
27450
27451 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27452
27453         PR ada/15593
27454         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
27455         compilation unit and is in an open scope at the point of instantiation,
27456         assume that a body may be present later.
27457
27458 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
27459
27460         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
27461         Improve error message when specified size is not supported.
27462
27463         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
27464         is never a primitive operation.
27465
27466 2004-07-05  Andreas Schwab  <schwab@suse.de>
27467
27468         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
27469         RECORD_OR_UNION_CHECK.
27470         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
27471
27472 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
27473
27474         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
27475         dependency on xgnatugn, instead build it via a submake.
27476         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
27477
27478 2004-07-04  Richard Henderson  <rth@redhat.com>
27479
27480         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
27481
27482 2004-07-01  Richard Henderson  <rth@redhat.com>
27483
27484         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
27485         * utils.c (max_size): Likewise.
27486
27487 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27488
27489         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
27490         and rest_of_type_compilation; add arg to create_*_decl.
27491         (annotate_decl_with_node): Deleted.
27492         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
27493         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
27494         (get_current_block_context, gnat_pushdecl): New declarations.
27495         (gnat_init_stmt_group): Likewise.
27496         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
27497         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
27498         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
27499         (gnat_init): Call gnat_init_stmt_group.
27500         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
27501         (gnu_pending_elaboration_list): Deleted.
27502         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
27503         (gigi): Rearrange initialization calls and move some to last above.
27504         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
27505         Delete calls to add_decl_expr; add arg to create_*_decl.
27506         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
27507         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27508         begin_subprog_body and call it.
27509         Don't push and pop ggc context.
27510         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
27511         (add_stmt): Remove handling of DECL_EXPR from here.
27512         If not in function, mark visited.
27513         (add_decl_expr): Put global at top level.
27514         Check for cases of DECL_INITIAL we have to handle here.
27515         (process_type): Add extra arg to create_type_decl.
27516         (build_unit_elab): Rework to just gimplify.
27517         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
27518         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
27519         (get_pending_elaborations, pending_elaborations_p): Likewise.
27520         (push_pending_elaborations, pop_pending_elaborations): Likewise.
27521         (get_elaboration_location, insert_elaboration_list): Likewise.
27522         (gnat_binding_level): Renamed from ada_binding_level.
27523         (init_gnat_to_gnu): Don't clear pending_elaborations.
27524         (global_bindings_p): Treat as global if no current_binding_level.
27525         (set_current_block_context): New function.
27526         (gnat_pushdecl): Renamed from pushdecl; major rework.
27527         All callers changed.
27528         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
27529         (finish_record_type): Call call pushdecl for stub decl.
27530         (function_nesting_depth): Deleted.
27531         (begin_subprog_body): Delete obsolete code.
27532         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
27533
27534 2004-06-28  Robert Dewar  <dewar@gnat.com>
27535
27536         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27537         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
27538         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
27539         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
27540         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
27541
27542         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
27543         deal with problem of inefficient slices on machines with strict
27544         alignment, when the slice is a component of a composite.
27545
27546         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
27547         machines, we need the check there as well.
27548
27549 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27550
27551         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
27552         determine safe copying direction for overlapping slice assignments
27553         when component is controlled.
27554
27555         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
27556         formal derived type in the actual for a formal package are visible in
27557         the enclosing instance.
27558
27559 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
27560
27561         PR ada/15600
27562         * sem_util.adb (Trace_Components): Diagnose properly an illegal
27563         circularity involving a private type whose completion includes a
27564         self-referential component.
27565         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
27566         renaming or an instantiation from an implicit derived operation.
27567
27568 2004-06-28  Pascal Obry  <obry@gnat.com>
27569
27570         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
27571         DLL.
27572         (Library_File_Name_For): Idem.
27573
27574 2004-06-28  Matthew Gingell  <gingell@gnat.com>
27575
27576         * g-traceb.ads: Add explanatory note on the format of addresses
27577         expected by addr2line.
27578
27579 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
27580
27581         * Makefile.in: Force debugging information on s-tasdeb.adb,
27582         a-except.adb and s-assert.adb needed by the debugger.
27583
27584 2004-06-28  Vincent Celier  <celier@gnat.com>
27585
27586         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
27587         Need_To_Build_Lib.
27588         (Gnatmake): Ditto.
27589
27590         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
27591
27592         * prj.adb: Minor reformatting
27593         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
27594
27595         * prj.ads: Comment updates
27596         Minor reformatting
27597         (Project_Data): Change Flag1 to Need_To_Build_Lib.
27598         Remove Flag2: not used.
27599
27600         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
27601         declaration.
27602
27603         * gnat_ugn.texi: Put a "null;" declaration in one project file example
27604
27605         * gnat_rm.texi: Document Empty declarations "null;".
27606
27607         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
27608         front of the linker options.
27609         (Link_Foreign): Put the global archives and the libraries in front of
27610         the linker options.
27611
27612 2004-06-28  Javier Miranda  <miranda@gnat.com>
27613
27614         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
27615         (RTU_Loaded): Code cleanup
27616         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
27617         withed predefined units.
27618
27619         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
27620         explicitly withed predefined units.
27621         Fix typo in comment
27622
27623         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
27624         explicitly withed predefined units.
27625
27626 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27627
27628         * ada-tree.def (DECL_STMT): Deleted.
27629         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
27630         (DECL_STMT_VAR): Deleted.
27631         * decl.c: add_decl_stmt now add_decl_expr.
27632         * gigi.h: Likewise.
27633         * trans.c: Likewise.
27634         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
27635         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
27636         (add_stmt): Only handle padded type here.
27637         (add_stmt_with_node): Allow gnat_node to not be present.
27638         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
27639         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
27640         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
27641         make a SAVE_EXPR for the entire fat pointer.
27642         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
27643         (create_index_type): Make a DECL_EXPR.
27644         (end_subprog_body): Don't call allocate_struct_function here but
27645         do clear cfun.
27646
27647 2004-06-25  Pascal Obry  <obry@gnat.com>
27648
27649         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
27650         Relocatable from Build_Dynamic_Library call.
27651
27652         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
27653         Relocatable are now synonym.
27654
27655         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
27656
27657         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
27658         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
27659         call.
27660
27661         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
27662         Lib_Address and Relocatable.
27663         (Default_DLL_Address): Removed.
27664
27665         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
27666         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
27667         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
27668         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
27669         (Default_DLL_Address): Removed.
27670
27671         * mlib-tgt-mingw.adb: Ditto.
27672         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
27673
27674         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
27675         the initial thread stack size.
27676
27677         * a-strmap.ads: Move package L to private part as it is not used in
27678         the spec. Found while reading code.
27679
27680 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
27681
27682         * tracebak.c: Introduce support for a GCC infrastructure based
27683         implementation of __gnat_backtrace.
27684
27685         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
27686         any more. Use accessors instead. This eases maintenance and relaxes
27687         some alignment constraints.
27688         (_GNAT_Exception structure): Remove the Ada specific fields
27689         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
27690         a-exexpr.adb.
27691         (is_handled_by, __gnat_eh_personality): Replace component references to
27692         exception structure by use of the new accessors.
27693
27694         * init.c (__gnat_initialize): Adjust comments to match the just
27695         reverted meaning of the -static link-time option.
27696
27697         * adaint.c (convert_addresses): Arrange not to define a stub for
27698         mips-irix any more, as we now want to rely on a real version from a
27699         recent libaddr2line.
27700
27701         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
27702         the personality routine can use them and not have to rely on a C
27703         counterpart of the record anymore. This simplifies maintenance and
27704         relaxes the constraint of having Standard'Maximum_Alignment match
27705         BIGGEST_ALIGNMENT.
27706         Update comments, and add a section on the common header alignment issue.
27707
27708 2004-06-25  Geert Bosch  <bosch@gnat.com>
27709
27710         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
27711         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
27712
27713 2004-06-25  Robert Dewar  <dewar@gnat.com>
27714
27715         * gnat_rm.texi: Fix section on component clauses to indicate that the
27716         restriction on byte boundary placement still applies for bit packed
27717         arrays.
27718         Add comment on stack usage from Initialize_Scalars
27719
27720         * gnat_ugn.texi: Add documentation for -gnatyLnnn
27721
27722         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
27723         limiting nesting level.
27724
27725         * usage.adb: Add line for -gnatyLnnn switch
27726
27727         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
27728         sem_ch13.adb, exp_aggr.adb: Minor reformatting
27729
27730         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
27731         type as well as on the subtype. This corrects a problem in freeze in
27732         setting alignments of atomic types.
27733
27734         * sem_eval.ads: Minor comment typo fixed
27735
27736         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
27737         level.  Minor reformatting.
27738
27739         * fname.adb (Is_Predefined_File_Name): Require a letter after the
27740         minus sign. This means that file names like a--b.adb will not be
27741         considered predefined.
27742
27743         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
27744         record Test new flag and give diagnostic for bad component clause.
27745         (Freeze_Entity): Set alignment of array from component alignment in
27746         cases where this is safe to do.
27747
27748         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
27749         arrays.
27750
27751         * cstand.adb: (Create_Standard): Set alignment of String to 1
27752
27753         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
27754
27755         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
27756         code in the common constrained array cases.
27757
27758         * a-storio.adb: Change implementation to avoid possible alignment
27759         problems on machines requiring strict alignment (data should be moved
27760         as type Buffer, not type Elmt).
27761
27762         * checks.adb (Apply_Array_Size_Check): Improve these checks by
27763         killing the overflow checks which we really do not need (64-bits is
27764         enough).
27765
27766 2004-06-25  Vincent Celier  <celier@gnat.com>
27767
27768         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
27769         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
27770         inconditionally for the main project.
27771         (Recursive_Add_Archives.Add_Archive_Path): New procedure
27772         (Link_Executables.Check_Time_Stamps): New procedure
27773         (Link_Executables.Link_Foreign): New procedure
27774         Changes made to reduce nesting level of this package
27775         (Check): New procedure
27776         (Add_Switches): When not in quiet output, check that a switch is not
27777         the concatenation of several valid switches. If it is, issue a warning.
27778         (Build_Global_Archive): If the global archive is rebuilt, linking need
27779         to be done.
27780         (Compile_Sources): Rebuilding a library archive does not imply
27781         rebuilding the global archive.
27782         (Build_Global_Archive): New procedure
27783         (Build_Library): New name for Build_Archive, now only for library
27784         project
27785         (Check_Archive_Builder): New procedure
27786         (Create_Global_Archive_Dependency_File): New procedure
27787         (Gprmake): Call Build_Global_Archive before linking
27788         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
27789         throughout.
27790         (Scan_Arg): Display the Copyright notice when -v is used
27791
27792         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
27793         for gnatls.
27794
27795         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
27796         COMPILE.
27797         Add new GNAT LIST qualifier /FILES=
27798         Added qualifier /DIRECTORY= to GNAT METRIC
27799         Added qualifier /FILES= to GNAT METRIC
27800         Added qualifier /FILES to GNAT PRETTY
27801
27802         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
27803         to take into account both versions of the switch.
27804
27805         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
27806         always be the last switch to the gcc driver. Disable switch storing so
27807         that switches automatically added by the gcc driver are not put in the
27808         ALI file.
27809
27810         * prj.adb (Project_Empty): Take into account changes in components of
27811         Project_Data.
27812
27813         * prj.ads (Languages_Processed): New enumaration value All_Languages.
27814
27815         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
27816         used. Split Boolean component Ada_Sources_Present in two Boolean
27817         components Ada_Sources_Present and Other_Sources_Present.
27818         Minor reformatting
27819
27820         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
27821         instead of Sources_Present.
27822         (Set_Ada_Paths.Add.Recursive_Add): Ditto
27823
27824         * prj-nmsc.adb: Minor reformatting
27825         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
27826         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
27827         Check_Ada_Naming_Scheme.
27828         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
27829         throughout.
27830
27831         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
27832         In_Limited.
27833         Make sure that all cycles where there is at least one "limited with"
27834         are detected.
27835         (Parse_Single_Project): New Boolean parameter In_Limited
27836
27837         * prj-proc.adb (Recursive_Check): When Process_Languages is
27838         All_Languages, call first Prj.Nmsc.Ada_Check, then
27839         Prj.Nmsc.Other_Languages_Check.
27840
27841         * prj-proc.adb (Process): Use Ada_Sources_Present or
27842         Other_Sources_Present (instead of Sources_Present) depending on
27843         Process_Languages.
27844
27845         * lang-specs.h: Keep -g and -m switches in the same order, and as the
27846         last switches.
27847
27848         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
27849         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
27850         False.
27851         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
27852         False.
27853
27854         * lib.ads (Disable_Switch_Storing): New procedure.
27855
27856         * make.adb: Modifications to reduce nesting level of this package.
27857         (Check_Standard_Library): New procedure
27858         (Gnatmake.Check_Mains): New procedure
27859         (Gnatmake.Create_Binder_Mapping_File): New procedure
27860         (Compile_Sources.Compile): Add switch -gnatez as the last option
27861         (Display): Never display -gnatez
27862
27863         * Makefile.generic:
27864         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
27865
27866         * gnatcmd.adb (Check_Project): New function
27867         (Process_Link): New procedure to reduce nesting depth
27868         (Check_Files): New procedure to reduce the nesting depth.
27869         For GNAT METRIC, include the inherited sources in extending projects.
27870         (GNATCmd): When GNAT LS is invoked with a project file and no files,
27871         add the list of files from the sources of the project file. If this list
27872         is too long, put it in a temp text files and use switch -files=
27873         (Delete_Temp_Config_Files): Delete the temp text file that contains
27874         a list of source for gnatpp or gnatmetric, if one has been created.
27875         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
27876         in the project file is too large, create a temporary text file that
27877         list them and pass it to the tool with "-files=<temp text file>".
27878         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
27879
27880         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
27881         generated file is in not in Ada.
27882
27883         * gnatls.adb: Remove all parameters And_Save that are no longer used.
27884         (Scan_Ls_Arg): Add processing for -files=
27885         (Usage): Add line for -files=
27886
27887         * g-os_lib.adb (On_Windows): New global constant Boolean flag
27888         (Normalize_Pathname): When on Windows and the path starts with a
27889         directory separator, make sure that the resulting path will start with
27890         a drive letter.
27891
27892         * clean.adb (Clean_Archive): New procedure
27893         (Clean_Project): When there is non-Ada code, delete the global archive,
27894         the archive dependency files, the object files and their dependency
27895         files, if they exist.
27896         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
27897
27898 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
27899
27900         * sinfo.ads: Fix typo in comment.
27901
27902         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
27903         the TSS for remote access-to-subprogram types, since these TSS are
27904         always present once the type has been analyzed.
27905         (RAS_E_Dereference): Same.
27906
27907         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
27908         reference raises Bad_Attribute, mark the reference as analyzed so the
27909         node (and any children resulting from rewrites that could have occurred
27910         during the analysis that ultimately failed) is not analyzed again.
27911
27912         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
27913
27914         * exp_dist.adb: Minor comment fix.
27915
27916         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
27917         type is an anonymous access type, no unchecked deallocation of the
27918         allocated object can occur. If the object is controlled, attach it with
27919         a count of 1. This allows attachment to the Global_Final_List, if
27920         no other relevant list is available.
27921         (Get_Allocator_Final_List): For an anonymous access type that is
27922         the type of a discriminant or record component, the corresponding
27923         finalisation list is the one of the scope of the type.
27924
27925 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
27926
27927         * sem_ch3.adb (Replace_Type): When computing the signature of an
27928         inherited subprogram, use the first subtype if the derived type
27929         declaration has no constraint.
27930
27931         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
27932         before applying previous optimization. Minor code cleanup.
27933
27934         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
27935         placed at the beginning of an unpacked record without explicit
27936         alignment, a slice of it will be aligned and does not need a copy when
27937         used as an actual.
27938
27939 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
27940
27941         PR ada/15591
27942         PR ada/15592
27943         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
27944         reference is written with expressions mimicking parameters.
27945
27946 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
27947
27948         PR ada/15589
27949         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
27950         STEP 2a. The constraints of a full type declaration of a derived record
27951         type are checked for conformance with those declared in the
27952         corresponding private extension declaration. The message
27953         "not conformant with previous declaration" is emitted if an error is
27954         detected.
27955
27956 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
27957
27958         * g-traceb.ads: Document the need for -E binder switch in the spec.
27959
27960         * g-trasym.ads: Document the need for -E binder switch in the spec.
27961
27962 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
27963
27964         * sem_prag.adb: Add handling of pragma Detect_Blocking.
27965
27966         * snames.h, snames.ads, snames.adb: Add entry for pragma
27967         Detect_Blocking.
27968
27969         * s-rident.ads: Change reference to pragma Detect_Blocking.
27970
27971         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
27972         system.ads.
27973
27974         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
27975         to indicate whether pragma Detect_Blocking is active.
27976
27977         * par-prag.adb: Add entry for pragma Detect_Blocking.
27978
27979         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
27980         of not handling WITH.
27981         Note that this replaces the previous update which was incorrect.
27982
27983 2004-06-25  Javier Miranda  <miranda@gnat.com>
27984
27985         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
27986         use-clauses to have a clean environment.
27987
27988         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
27989         the installation of the use-clauses to stablish a clean environment in
27990         case of compilation of a separate unit; otherwise the call to
27991         use_one_package is protected by the barrier Applicable_Use.
27992
27993         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
27994         the installation of the use-clauses to stablish a clean environment in
27995         case of compilation of a separate unit.
27996         (End_Use_Clauses): Minor comment cleanup.
27997
27998 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
27999
28000         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
28001
28002 2004-06-23  Richard Henderson  <rth@redhat.com>
28003
28004         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
28005
28006 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28007
28008         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
28009         now bool instead of int.
28010         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
28011         * trans.c (gnu_switch_label_stack): New function.
28012         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
28013         elaboration of renamed entity returns.
28014         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
28015         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
28016         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
28017         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
28018         DECL_SIZE_UNIT and simplify variable-sized case.
28019         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
28020         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
28021         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
28022         (build_unit_elab): Disable for now.
28023         * utils.c (mark_visited): New function.
28024         (pushdecl): Walk tree to call it for global decl.
28025         (update_pointer_to): Update all variants of pointer and ref types.
28026         Add arg to COMPONENT_REF.
28027         (convert): Likewise.
28028         Move check for converting between variants lower down.
28029         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
28030         (build_allocator): Don't force type of MODIFY_EXPR.
28031         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
28032         put_var_into_stack.
28033
28034 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28035
28036         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
28037         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
28038         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
28039         subprograms.
28040         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
28041         all callers changed.
28042         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
28043         the way that EXIT_STMT finds the loop label.
28044         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
28045         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
28046         (add_stmt): Use annotate_with_locus insted of setting directly.
28047         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
28048         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
28049         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
28050         (build_vms_descriptor): Add extra args to ARRAY_REF.
28051         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
28052         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
28053         New cases.
28054         (build_binary_op): Don't make explicit CONVERT_EXPR.
28055         Add extra rgs to ARRAY_REF.
28056
28057 2004-06-14  Pascal Obry  <obry@gnat.com>
28058
28059         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
28060         Windows.  Fix minor typo.
28061
28062         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
28063         which is now supported on Windows. With this implementation using the
28064         Library Project feature is no different on Windows than on UNIX.
28065
28066 2004-06-14  Vincent Celier  <celier@gnat.com>
28067
28068         * makegpr.adb (Compile_Sources): Nothing to do when there are no
28069         non-Ada sources.
28070
28071         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
28072
28073         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
28074         found, show the project name and the path of the previously parsed
28075         project file.
28076
28077 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
28078
28079         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
28080         array, avoid copying the actual before the call.
28081
28082 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
28083
28084         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
28085         Instead, allocate memory on worst-case alignment assumptions, and then
28086         return an aligned address within the allocated zone.
28087
28088 2004-06-14  Robert Dewar  <dewar@gnat.com>
28089
28090         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
28091         elab entities in predefined units in No_Run_Time_Mode.
28092         (Gen_Adainit_C): Same fix
28093         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
28094         units in No_Run_Time_Mode
28095         (Gen_Elab_Calls_C): Same fix
28096
28097         * symbols-vms-alpha.adb: Minor reformatting
28098
28099         * g-debpoo.ads: Minor reformatting
28100
28101         * lib.adb (In_Same_Extended_Unit): Version working on node id's
28102
28103         * lib.ads (In_Same_Extended_Unit): Version working on node id's
28104
28105         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
28106         working on nodes.
28107
28108         * make.adb: Minor reformatting
28109
28110         * par-ch12.adb: Minor reformatting
28111
28112         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
28113
28114         * prj-strt.adb: Minor reformatting
28115
28116         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
28117         be more general.
28118
28119         * sem_attr.adb: Minor reformatting
28120
28121         * sem_ch7.adb: Minor reformatting
28122
28123         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
28124         for type in the same unit as the object declaration.
28125
28126         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
28127         static string expressions and not just string literals.
28128         Minor reformatting
28129         (Set_Warning): Reset restriction warning flag for restriction pragma
28130         Implement pragma Profile_Warnings
28131         Implement pragma Profile (Restricted)
28132         Give obolescent messages for old restrictions and pragmas
28133
28134         * snames.h, snames.ads, snames.adb: Add new entry for pragma
28135         Profile_Warnings.
28136
28137         * s-rident.ads: Add declarations for restrictions required by profile
28138         Restricted and profile Ravenscar.
28139
28140         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
28141
28142         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
28143         configuration pragmas.
28144
28145 2004-06-11  Vincent Celier  <celier@gnat.com>
28146
28147         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
28148         gnatsym, when symbol policy is Restricted.
28149
28150         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
28151         gnatsym, when symbol policy is Restricted.
28152
28153         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
28154         read the symbol file.
28155         (Finalize): Fail in symbol policy Restricted if a symbol in the original
28156         symbol file is not in the object files. Do not create a new symbol file
28157         when symbol policy is Restricted.
28158
28159         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
28160         in Scng.
28161
28162         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
28163         Restricted.
28164         (Usage): Line for new switch -R
28165
28166         * make.adb (Initialize): When the platform is not VMS, add the
28167         directory where gnatmake is invoked in the front of the path, if
28168         gnatmake is invoked with directory information.  Change the Scan_Args
28169         while loop to a for loop.
28170         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
28171         if Depth is equal or greater than the proposed depth, there is nothing
28172         to do.
28173         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
28174         instead of 0.
28175
28176         * prj.ads: Add new symbol policy Restricted.
28177
28178         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
28179         with the new parameters Check_All_Labels and Case_Location.
28180
28181         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
28182         (Library_Symbol_File needs to be defined).
28183
28184         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
28185         and Case_Location If Check_All_Labels is True, check that all values of
28186         the string type are used, and output warning(s) if they are not.
28187
28188         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
28189         and Case_Location.
28190
28191         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
28192
28193         * gnat_ugn.texi: Update documentation about the library directory in
28194         Library Projects.
28195
28196         * makegpr.adb (Display_Command): In verbose mode, also display the
28197         value of the CPATH env var, when the compiler is gcc.
28198         (Initialize): Change the Scan_Args while loop to a for loop
28199         (Compile_Individual_Sources): Change directory to object directory
28200         before compilations.
28201
28202         * symbols.ads: New symbol policy Restricted.
28203
28204 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
28205
28206         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
28207         is now taken care of internally in the Exception_Propagation package
28208         and does not require clients assistance any more.
28209
28210         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
28211         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
28212         functions. Helpers to maintain a predicate required in the handling of
28213         occurrence transfer between tasks.
28214         This is now handled internally and does not require clients assistance
28215         for the setup/propagate separation anymore.
28216         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
28217         allocation strategy, handle the Setup_And_Not_Propagated predicate and
28218         document.
28219
28220         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
28221         raise_after_setup, now that everything is handled internally within the
28222         setup/propagation engine.
28223
28224 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28225
28226         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
28227         Add additional conditions for the case of an actual being a simple
28228         name or literal. Improve inlining by preventing the generation
28229         of temporaries with a short lifetime (one use).
28230
28231 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
28232
28233         PR ada/15587
28234         * einfo.ads: Minor comment updates for Has_Completion and
28235         E_Constant list of flags.
28236
28237         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
28238         and constant redeclarations now set the Has_Completion flag of their
28239         defining identifiers.
28240
28241         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
28242         Inspect_Deferred_Constant_Completion.
28243         Used to detect private deferred constants that have not been completed
28244         either by a constant redeclaration or pragma Import. Emits error message
28245         "constant declaration requires initialization expression".
28246
28247         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
28248         completes a deferred constant.
28249
28250 2004-06-11  Geert Bosch  <bosch@gnat.com>
28251
28252         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
28253
28254         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
28255         calculating exponent for scaling denormal numbers.
28256         (Leading_Part): Properly raise Constraint_Error for zero or negative
28257         Adjustment.
28258         (Remainder): Properly raise Constraint_Error for zero divisor.
28259
28260 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
28261
28262         * sem_util.adb: Minor reformatting.
28263
28264         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
28265         dereference when accessing the entry parameter record.
28266         (Check_Array_Type): Always check for possible implicit dereference.
28267         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28268         Abort if a pointer is still present (denoting that an implicit
28269         dereference was left in the tree by the front-end).
28270
28271         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
28272         dereference when accessing the entry parameter record.
28273         (Check_Array_Type): Always check for possible implicit dereference.
28274         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
28275         Abort if a pointer is still present (denoting that an implicit
28276         dereference was left in the tree by the front-end).
28277
28278 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
28279
28280         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
28281         message, like the compiler itself does. Easier to parse the output.
28282
28283         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
28284
28285         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
28286         be base names, and not includes directories.
28287
28288 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28289
28290         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
28291         so that dependencies are properly taken into account by make.
28292
28293 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
28294
28295         PR ada/15622
28296         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
28297         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
28298
28299 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
28300
28301         * Makefile.in (install-gnatlib): install target-specific run-time files.
28302
28303         * Make-lang.in: Remove obsolete targets.
28304
28305 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28306
28307         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
28308         specification, to catch misuses of program unit names.
28309
28310         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
28311         superfluous conversions in an instance.
28312
28313 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
28314
28315         PR ada/15403
28316         * sem_ch12.adb (Save_References): If operator node has been folded to
28317         enumeration literal, associated_node must be discarded.
28318
28319 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
28320
28321         * s-stchop-vxworks.adb: Add required pragma Convention to
28322         Task_Descriptor because it is updated by a C function.
28323
28324 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
28325
28326         PR ada/15568
28327         * Makefile.in: Remove target specific SO_OPT on IRIX
28328
28329 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28330
28331         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
28332         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
28333         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
28334         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
28335         (STMT_STMT, USE_STMT): New statement codes.
28336         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
28337         * ada-tree.h: Reflect above changes.
28338         (struct tree_loop_id): Deleted.
28339         (union lang_tree_node, struct lang_decl, struct lang_type):
28340         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
28341         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
28342         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
28343         (IS_ADA_STMT): New macro.
28344         * decl.c (annotate_decl_with_node): New function.
28345         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
28346         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
28347         Call add_stmt_with_node to do needed assignments.
28348         Add call to update setjmp buffer directly, not via EXPR_STMT.
28349         (maybe_variable): Argment GNAT_NODE deleted.
28350         * gigi.h (maybe_variable): Likewise.
28351         (make_transform, add_stmt_with_node, set_block_for_group): New.
28352         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
28353         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
28354         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
28355         (set_lineno, set_lineno_from_sloc): Likewise.
28356         (record_code_position, insert_code_for): Likewise.
28357         (gnat_poplevel): Now returns void.
28358         (end_subprog_body): Now takes argument.
28359         * misc.c (cgraph.h, tree-inline.h): New includes.
28360         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
28361         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
28362         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
28363         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
28364         (gnat_parse_file): Don't set immediate_size_expand.
28365         Call cgraph functions.
28366         (gnat_expand_expr): Remove most cases.
28367         (record_code_position, insert_code_for): Remove from here.
28368         * trans.c (toplev.h, tree-gimple.h): Now included.
28369         (discard_file_names): Deleted.
28370         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
28371         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
28372         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
28373         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
28374         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
28375         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
28376         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
28377         (set_block_for_group, add_stmt_list): Likewise.
28378         (start_stmt_group): Renamed from start_block_stmt.
28379         (end_stmt_group): Likewise, from end_block_stmt.
28380         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
28381         (gigi): Don't set discard_file_names or call set_lineno.
28382         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
28383         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
28384         Numerous changes throughout to reflect new names and complete
28385         function-at-a-time implementation.
28386         (gnat_expand_stmt): Delete or comment out all cases.
28387         (process_inlined_subprograms): Use add_stmt.
28388         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
28389         call set_lineno; also remove unneeded block handling.
28390         (process_type): Remove unneeded block handling.
28391         (build_unit_elab): Remove calls to deleted functions.
28392         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
28393         (tree-dump.h): Likewise.
28394         (struct ada_binding_level): Add field jmpbuf_decl.
28395         (gnat_define_builtin, gnat_install_builtins): New.
28396         (gnat_gimplify_function, gnat_finalize): Likewise.
28397         (gnat_poplevel): No longer return BLOCK, set it instead.
28398         Remove code dealing with nested functions.
28399         (gnat_init_decl_processing): Also set size_type_node.
28400         Call gnat_install_builtins.
28401         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
28402         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
28403         Remove special-case for "main".
28404         (end_subprog_body): Add arg and rework for tree-ssa.
28405         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
28406         Add case for BOOLEAN_TYPE.
28407         * utils2.c (rtl.h): Now include.
28408         (build_call_raise): Test Debug_Flag_NN directly.
28409         (build_call_alloc_dealloc): Don't use local stack allocation for now.
28410         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
28411         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
28412
28413 2004-06-07  Robert Dewar  <dewar@gnat.com>
28414
28415         * a-direct.ads, einfo.ads: Minor comment updates
28416
28417         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
28418         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28419         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
28420         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
28421         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
28422
28423         * s-interr-sigaction.adb: Remove unreferenced variable
28424         (Attached_Interrupts).  Minor reformatting.
28425         Avoid use of variable I (replace by J).
28426
28427         * par-ch10.adb: Fix text of one error message
28428
28429         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
28430         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
28431         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
28432         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
28433         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
28434         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
28435         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
28436         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
28437         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
28438         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
28439         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
28440         2005 support.
28441
28442 2004-06-07  Doug Rupp  <rupp@gnat.com>
28443
28444         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
28445
28446         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
28447
28448         * mlib-tgt-vms-ia64.adb: New file.
28449
28450         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
28451         Add mlib-tgt-vms-ia64.adb
28452         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
28453         Move to alpha specific ifeq section.
28454         Add VMS specific versions of symbols.adb
28455         Renaming of 5q vms files.
28456
28457         * 5qsystem.ads renamed to system-vms_64.ads.
28458
28459 2004-06-07  Vincent Celier  <celier@gnat.com>
28460
28461         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
28462         explain that when a time of day corresponding to the non existing hour
28463         on the day switching to DST is specified, Split may return a different
28464         value for Seconds.
28465
28466         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
28467         to GNAT PRETTY.
28468
28469         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
28470         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
28471
28472         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
28473         to False.
28474         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
28475         the linking options.
28476         (Build_Library.Check_Libs): On VMS, if there is a dependency on
28477         g-trasym.ads, set Gtrasymobj_Needed to True.
28478
28479         * prj-attr.adb: Add new package Metrics for gnatmetric
28480
28481         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
28482         canonical case to take into account files with upper case characters on
28483         Windows.
28484         (Ada_Check): Load the reference symbol file name in the name buffer to
28485         check it, not the symbol file name.
28486
28487         * snames.ads, snames.adb: Add standard name Metrics (name of project
28488         file package for gnatmetric).
28489
28490         * vms_conv.ads: Add Metric to Comment_Type
28491
28492         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
28493
28494         * vms_data.ads: Add qualifiers for GNAT METRIC
28495
28496         * makegpr.adb (Link_Executables): Take into account the switches
28497         specified in package Linker of the main project.
28498
28499 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
28500
28501         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
28502         the index of the last element is Units.Last, not Units.Table'Last
28503         (which is usually not a valid index within the actually allocated
28504         storage for the table).
28505
28506         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
28507         determines whether to generate a call to a checked storage pool
28508         Dereference action.
28509         Generate such a call only for a dereference that either comes from
28510         source, or is the result of rewriting a dereference that comes from
28511         source.
28512
28513 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
28514
28515         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
28516
28517 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
28518
28519         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
28520         file level, elaborate the stride for inner dimensions in alignment
28521         units, not bytes.
28522
28523         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
28524         in a comment.
28525
28526 2004-06-07  Javier Miranda  <miranda@gnat.com>
28527
28528         * exp_ch6.adb: Correct wrong modification in previous patch
28529
28530 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
28531
28532         * g-trasym.ads: Corrected comment to properly reflect level of support
28533         on VMS.
28534
28535 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
28536
28537         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
28538         includes case of a variable referenced on the left hand side of an
28539         assignment, therefore remove redundant code. Variables and prefixes of
28540         indexed or selected components are now marked as referenced on left
28541         hand side. Warnings are now properly emitted when variables or prefixes
28542         are assigned but not read.
28543
28544         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
28545         left hand side referenced variables. Private access types do not
28546         produce the warning "variable ... is assigned but never read".
28547         Add also additional checks to left hand side referenced variables.
28548         Aliased, renamed objects and access types do not produce the warning
28549         "variable ... is assigned but never read" since other entities may read
28550         the memory location.
28551
28552 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
28553
28554         * Makefile.in: In the powerpc/vxworks-specific section, restore
28555         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
28556         by mistake).
28557
28558 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
28559
28560         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
28561         predefined operators.
28562         Removes spurious type errors from g-trasym-vms.adb.
28563
28564         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
28565         distinct from the operator appearing in the source, call appropriate
28566         routine to insert conversions when needed, and complete resolution of
28567         node.
28568         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
28569         interpretations for rewritten right operand.
28570         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
28571         the other operand is overloaded and the context is a type conversion.
28572
28573 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28574
28575         * ada-tree.def (BLOCK_STMT): Now has two operands.
28576         (BREAK_STMT): New.
28577
28578         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
28579
28580         * gigi.h: (gnat_poplevel): Now returns a tree.
28581
28582         * trans.c (end_block_stmt): Add arg; all callers changed.
28583         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
28584         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
28585         (add_stmt): Set TREE_TYPE.
28586         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
28587         (gnat_expand_stmt, case BREAK_STMT): New case.
28588
28589         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
28590
28591 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
28592
28593         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
28594         procedure Set_Stack_Size that is not needed.
28595
28596 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
28597
28598         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
28599         used for gnatpp input file and for the files upon which it depends
28600
28601 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
28602
28603         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28604
28605 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
28606
28607         * gnatvsn.ads: Bump version numbers appropriately.
28608         Add new build type.
28609
28610 2004-06-07  Pascal Obry  <obry@gnat.com>
28611
28612         * gnat_ugn.texi: Improve comments about imported names and link names
28613         on Windows. Add a note about the requirement to use -k gnatdll's option
28614         when working with a DLL which has stripped stdcall symbols (no @nn
28615         suffix).
28616
28617 2004-05-27  Vincent Celier  <celier@gnat.com>
28618
28619         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
28620         COMMENTS_LAYOUT=UNTOUCHED
28621
28622         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
28623         symbols-vms-alpha.adb
28624
28625 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
28626
28627         * sem.ads: Clarify documentation on checks suppression.
28628
28629         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
28630
28631 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
28632
28633         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
28634         the case of multiple derivations.
28635         (Is_Object_Reference): For a selected component, verify that the prefix
28636         is itself an object and not a value.
28637
28638         * sem_ch12.adb (Same_Instantiated_Constant): New name for
28639         Same_Instantiated_Entity.
28640         (Same_Instantiated_Variable): Subsidiary to
28641         Check_Formal_Package_Instance, to recognize actuals for in-out generic
28642         formals that are obtained from a previous formal package.
28643         (Instantiate_Subprogram_Body): Emit proper error when
28644         generating code and the proper body of a stub is missing.
28645
28646         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
28647         has a universal interpretation, do the disambiguation here.
28648
28649         * exp_ch4.adb (Expand_N_Type_Conversion,
28650         Expand_N_Unchecked_Type_Conversion): Special handling when target type
28651         is Address, to avoid typing anomalies when Address is a visible integer
28652         type.
28653
28654         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
28655         to determine whether a subprogram should not be marked Pure, even when
28656         declared in a pure package.
28657
28658 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
28659
28660         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
28661
28662         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
28663         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
28664         Update the documentation about the Ravenscar profile, following the
28665         definition found in AI-249.
28666
28667         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
28668         setting the Profile (Ravenscar). This must be done in addition to
28669         setting the required restrictions.
28670
28671         * rtsfind.ads: Add the set of operations defined in package
28672         Ada.Interrupts.
28673
28674         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
28675         restriction.
28676
28677 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
28678
28679         lang-specs.h: Always require -c or -S and always redirect to /dev/null
28680         if -gnatc or -gnats is passed.
28681
28682 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
28683
28684         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
28685         a significant reference. Warnings are now properly emitted when a
28686         discriminated type is not referenced.
28687
28688         * lib-xref.adb (Generate_Reference): A deferred constant completion,
28689         record representation clause or record type discriminant does not
28690         produce a reference to its corresponding entity. Warnings are now
28691         properly emitted when deferred constants and record types are not
28692         referenced.
28693
28694 2004-05-27  Geert Bosch  <bosch@gnat.com>
28695
28696         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
28697         Fixes ACATS Annex G tests.
28698
28699 2004-05-27  Robert Dewar  <dewar@gnat.com>
28700
28701         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
28702         handling WITH
28703
28704 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
28705
28706         * s-interr.adb (Server_Task): Take into account case of early return
28707         from sigwait under e.g. linux.
28708
28709 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
28710
28711         * gnat_ugn.texi: Add description for the new gnatpp options:
28712          -rnb - replace the original source without creating its backup copy
28713          -c0 - do not format comments
28714
28715 2004-05-24  Geert Bosch  <bosch@gnat.com>
28716
28717         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
28718         with 192 bits of precision, sufficient to reduce a double-extended
28719         arguments X with a maximum relative error of T'Machine_Epsilon, for X
28720         in -2.0**32 .. 2.0**32.
28721         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
28722         reduction by the processor, which only uses a 68-bit approximation of
28723         Pi.
28724         (Tan): Always reduce arguments and compute function either using
28725         the processor's fptan instruction, or by dividing sin and cos as needed.
28726
28727 2004-05-24  Doug Rupp  <rupp@gnat.com>
28728
28729         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
28730         gcc error on 32/64 bit VMS.
28731
28732 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
28733
28734         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
28735         since this is what we get for stack overflows although not documented
28736         as such.
28737         Document the issues which may require adjustments to our signal
28738         handlers.
28739
28740 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
28741
28742         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
28743         enclosing dynamic scope if the instantiation is within a generic unit.
28744
28745 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28746
28747         * exp_dbug.ads: Fix typo.
28748
28749         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
28750         Rename it to its proper name: system-linux-ia64.ads
28751         (stamp-gnatlib1): Remove extra target specific run time files when
28752         setting up the rts directory.
28753
28754 2004-05-24  Javier Miranda  <miranda@gnat.com>
28755
28756         * einfo.ads, einfo.adb (Limited_Views): Removed.
28757         (Limited_View): New attribute that replaces the previous one. It is
28758         now a bona fide package with the limited-view list through the
28759         first_entity and first_private attributes.
28760
28761         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
28762         limited-private-with clause.
28763         (Install_Limited_Withed_Unit): Install the private declarations of a
28764         limited-private-withed package. Update the installation of the shadow
28765         entities according to the new structure (see Build_Limited_Views)
28766         (Build_Limited_Views): Replace the previous implementation of the
28767         limited view by a package entity that references the first shadow
28768         entity plus the first shadow private entity (required for limited-
28769         private-with clause)
28770         (New_Internal_Shadow_Entity): Code cleanup.
28771         (Remove_Limited_With_Clause): Update the implementation to undo the
28772         new work carried out by Build_Limited_Views.
28773         (Build_Chain): Complete documentation.
28774         Replace Ada0Y by Ada 0Y in comments
28775         Minor reformating
28776
28777         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
28778         types the level of accessibility depends on the enclosing type
28779         declaration.
28780
28781         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
28782         entities. Complete documentation of previous change.
28783
28784 2004-05-24  Robert Dewar  <dewar@gnat.com>
28785
28786         * namet.adb: Minor reformatting
28787         Avoid use of name I (replace by J)
28788         Minor code restructuring
28789
28790         * sem_ch6.adb: Minor reformatting
28791
28792         * lib-writ.adb: Do not set restriction as active if this is a
28793         Restriction_Warning case.
28794
28795         * sem_prag.adb: Reset restriction warning flag if real pragma
28796         restriction encountered.
28797
28798         * s-htable.adb: Minor reformatting
28799         Change rotate count to 3 in Hash (improves hash for small strings)
28800
28801         * 5qsystem.ads: Add comments for type Address (no literals allowed).
28802
28803         * gnat_ugn.texi: Add new section of documentation "Code Generation
28804         Control", which describes the use of -m switches.
28805
28806 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
28807
28808         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
28809         through the DECL_INITIAL for renamed variables.
28810
28811 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
28812
28813         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
28814
28815 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
28816
28817         * exp_dbug.ads: Correct comments concerning handling of overloading,
28818         since we no longer use $ anymore.
28819
28820 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
28821
28822         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
28823         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
28824         with illegal subunits.
28825
28826 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
28827
28828         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
28829         body with front-end inlining enabled, check whether an inline pragma
28830         appears immediately after the body and applies to it.
28831
28832         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
28833         enabled and the pragma appears after the body of the subprogram.
28834
28835 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
28836
28837         Part of function-at-a-time conversion
28838
28839         * misc.c (adjust_decl_rtl): Deleted.
28840         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
28841         Define.
28842
28843         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
28844         (add_decl_stmt, add_stmt, block_has_vars): New functions.
28845         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
28846
28847         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
28848         when making a decl.
28849         (gnat_to_gnu_entity): Likewise.
28850         Use add_stmt to update setjmp buffer.
28851         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
28852         flush_addressof.
28853         No longer call adjust_decl_rtl.
28854         (DECL_INIT_BY_ASSIGN_P): New macro.
28855         (DECL_STMT_VAR): Likewise.
28856
28857         * trans.c (gigi): Call start_block_stmt to make the outermost
28858         BLOCK_STMT.
28859         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
28860         Call start_block_stmt and end_block_stmt temporarily.
28861         Use gnat_expand_stmt instead of expand_expr_stmt.
28862         (add_decl_stmt): New function.
28863         (tree_transform): Call it.
28864         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
28865         (end_block_stmt): Set type and NULL_STMT.
28866         (gnat_expand_stmt): Make recursize call instead of calling
28867         expand_expr_stmt.
28868         (gnat_expand_stmt, case DECL_STMT): New case.
28869         (set_lineno_from_sloc): Do nothing if global.
28870         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
28871         (start_block_stmt, add_stmt, end_block_stmt): New functions.
28872         (build_block_stmt): Call them.
28873         (gnat_to_code): Don't expand NULL_STMT.
28874         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
28875         args.
28876         (tree_transform): Likewise.
28877         (tree_transform, case N_Null_Statement): Return NULL_STMT.
28878         (gnat_expand_stmt, case NULL_STMT): New case.
28879         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
28880         IF_STMT_TRUE.
28881
28882         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
28883         TREE_ADDRESSABLE.
28884
28885         * utils.c (create_var_decl): Do not call expand_decl or
28886         expand_decl_init.
28887         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
28888         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
28889         here.
28890         (struct e_stack): Add chain_next to GTY.
28891         (struct binding_level): Deleted.
28892         (struct ada_binding_level): New struct.
28893         (free_block_chain): New.
28894         (global_binding_level, clear_binding_level): Deleted.
28895         (global_bindings_p): Rework to see if no chain.
28896         (kept_level_p, set_block): Deleted.
28897         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
28898         new data structure and work directly on BLOCK node.
28899         (gnat_poplevel): Similarly.
28900         (get_decls): Look at BLOCK_VARS.
28901         (insert_block): Work directly on BLOCK node.
28902         (block_has_var): New function.
28903         (pushdecl): Rework for new binding structures.
28904         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
28905         poplevel.
28906         (build_subprog_body): Likewise.
28907         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
28908
28909         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
28910
28911         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
28912         (DECL_STMT_VAR): Likewise.
28913
28914 2004-05-17  Robert Dewar  <dewar@gnat.com>
28915
28916         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
28917         procedure
28918
28919         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
28920         of restriction synonyums by using
28921         Restrict.Process_Restriction_Synonyms.
28922
28923         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
28924
28925         * s-restri.ads (Tasking_Allowed): Correct missing comment
28926
28927         * s-rident.ads: Add entries for restriction synonyms
28928
28929         * ali.adb: Fix some problems with badly formatted ALI files that can
28930         result in infinite loops.
28931
28932         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
28933         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
28934         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
28935         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
28936         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
28937         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
28938         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
28939         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
28940         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
28941         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
28942         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
28943         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
28944         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
28945         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
28946         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
28947         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
28948         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
28949         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28950         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
28951         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
28952         to Task_Id (minor cleanup).
28953
28954 2004-05-17  Vincent Celier  <celier@gnat.com>
28955
28956         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
28957         directory separator.
28958
28959         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
28960         project being extended, if Languages is not declared in extending
28961         project.
28962
28963 2004-05-17  Javier Miranda  <miranda@gnat.com>
28964
28965         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
28966         limited view of a visible sibling.
28967
28968 2004-05-14  Robert Dewar  <dewar@gnat.com>
28969
28970         * gnat_ugn.texi: Minor change to -gnatS documentation
28971
28972         * sprint.adb: Remove some instances of Assert (False) and for this
28973         purpose replace them by output of a ??? string.
28974
28975         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
28976         Assert (False).
28977
28978         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
28979         flag processing. This was suppressing required dependencies in
28980         No_Run_Time mode and is not needed since the binder does not generate
28981         references for things in libgnat anyway.
28982
28983         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
28984         warning.
28985
28986 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
28987
28988         * gnat_ugn.texi: Document AIX-specific issue with initialization of
28989         resolver library.
28990
28991         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
28992         action for the case of an actual parameter in an init proc call.
28993
28994 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
28995
28996         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
28997         subtype, check visible entities in base type.
28998
28999         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
29000         actions if the object is a renaming.
29001
29002         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
29003         Check_Formal_Package_Instance, to determine more precisely when the
29004         formal and the actual denote the same entity.
29005
29006 2004-05-14  Javier Miranda  <miranda@gnat.com>
29007
29008         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
29009
29010         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
29011         corresponding to a private_with must be removed from visibility; it
29012         will be made visible later, just before we analyze the private part of
29013         the package.
29014         (Check_Private_Child_Unit): Allow private_with clauses in public
29015         siblings.
29016         (Install_Siblings): Make visible the private entities of private-withed
29017         siblings.
29018         (Install_Withed_Unit): Do not install the private withed unit if we
29019         are compiling a package declaration and the Private_With_OK flag was
29020         not set by the caller. These declarations will be installed later,
29021         just before we analyze the private part of the package.
29022
29023         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
29024         during the evaluation of the expression that initializes the object,
29025         decorate it with the expected type to avoid cascade errors.
29026         Code cleanup.
29027
29028         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
29029         subprogram we have to install the private_with clauses after its
29030         specification has been analyzed (as documented in AI-262.TXT).
29031
29032         * sem_ch8.adb (Has_Private_With): New function. Determines if the
29033         current compilation unit has a private with on a given entity.
29034         (Find_Direct_Name): Detect the Beaujolais problem described in
29035         AI-262.TXT
29036
29037         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
29038         provides the functionality of the function Is_Ancestor that was
29039         previously available in sem_ch10. It has been renamed to avoid
29040         overloading.
29041
29042         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
29043
29044 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29045
29046         * utils.c (build_vms_descriptor): Use SImode pointers.
29047
29048 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
29049
29050         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
29051
29052 2004-05-14  GNAT Script  <nobody@gnat.com>
29053
29054         * Make-lang.in: Makefile automatically updated
29055
29056 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
29057
29058         Renaming of target specific files for clarity
29059
29060         * Makefile.in: Rename GNAT target specific files.
29061
29062         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
29063         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
29064         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
29065         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
29066         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
29067         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
29068         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
29069         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
29070         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
29071         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
29072         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
29073         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
29074         51osinte.adb, 51osinte.ads, 51system.ads,
29075         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
29076         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
29077         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
29078         56tpopsp.adb, 57system.ads, 58system.ads,
29079         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
29080         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29081         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
29082         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
29083         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
29084         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29085         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
29086         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29087         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29088         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
29089         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
29090         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
29091         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
29092         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
29093         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
29094         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29095         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29096         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29097         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
29098         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
29099         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
29100         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
29101         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
29102         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29103         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
29104         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
29105         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29106         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
29107         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29108         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
29109         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
29110         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
29111         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
29112         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
29113         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
29114         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
29115         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
29116         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
29117         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
29118         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
29119
29120         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
29121         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
29122         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
29123         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
29124         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
29125         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
29126         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
29127         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
29128         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
29129         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
29130         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
29131         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
29132         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
29133         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
29134         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
29135         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
29136         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
29137         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
29138         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
29139         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
29140         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
29141         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
29142         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
29143         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
29144         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
29145         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
29146         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
29147         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
29148         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
29149         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
29150         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
29151         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
29152         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
29153         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
29154         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
29155         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
29156         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
29157         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
29158         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
29159         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
29160         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
29161         s-osinte-vms.ads, s-osinte-vxworks.adb,
29162         s-osinte-vxworks.ads, s-osprim-mingw.adb,
29163         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
29164         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
29165         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
29166         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
29167         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
29168         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
29169         s-stchop-vxworks.adb, s-taprop-dummy.adb,
29170         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
29171         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
29172         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
29173         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
29174         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
29175         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
29176         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
29177         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
29178         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
29179         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
29180         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
29181         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
29182         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
29183         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
29184         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
29185         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
29186         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
29187         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
29188         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
29189         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
29190         system-irix-o32.ads, system-linux-x86_64.ads,
29191         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
29192         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
29193         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
29194         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
29195         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
29196         system-vxworks-mips.ads, system-vxworks-ppc.ads,
29197         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
29198         above.
29199
29200 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
29201
29202         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
29203
29204 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
29205
29206         Merge from tree-ssa-20020619-branch.
29207
29208         * config-lang.in (boot_language, build_by_default): Set
29209         to no.
29210         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
29211         (max_size): Add static chain op for call_expr.
29212
29213 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
29214
29215         PR target/15331
29216         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
29217
29218 2004-05-11  Roger Sayle  <roger@eyesopen.com>
29219
29220         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
29221         COND_EXPR.
29222
29223 2004-05-10  Doug Rupp  <rupp@gnat.com>
29224
29225         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
29226         system.aux_dec.
29227
29228         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
29229
29230         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
29231
29232         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
29233         Fixes undefined symbols in IA64 gnatlib.
29234
29235         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
29236
29237         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
29238         Short_Address). This will be moved to system.auxdec.
29239
29240 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
29241
29242         * sem_util.adb: Replace test for presence of a node that is always
29243         present with a call to Discard_Node.
29244
29245         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
29246         Analyze on the library unit node after generation of distribution stub
29247         constructs.  The call was a no-op because Unit_Node has already been
29248         Analyzed, and the tree fragments for the distribution stubs are
29249         analyzed as they are inserted in Exp_Dist.
29250         Update comment regarding to distribution stubs to reflect that we
29251         do not generate stub in separate files anymore.
29252
29253         * einfo.ads: Clarify the fact that a tagged private type has the
29254         E_Record_Type_With_Private Ekind.
29255
29256         * erroutc.adb: Minor reformatting
29257
29258         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
29259         values if line length is increased using -gnatyM (noticed during code
29260         reading).
29261
29262         * eval_fat.adb: Minor reformatting
29263         Put spaces around exponentiation operator
29264
29265 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29266
29267         PR ada/15005
29268         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
29269         has been rewritten as an explicit dereference, retrieve type of
29270         original node to check for possibly unconstrained record type.
29271
29272 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
29273
29274         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
29275         overriding, use the operation of the parent unconditionally.
29276
29277         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
29278         operation when either operand is a literal, to avoid further
29279         ambiguities.
29280
29281         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
29282         overridden by a previous explicit declaration, mark the previous entity
29283         as overriding.
29284
29285         * sem_disp.adb (Check_Dispatching_Operation): New predicate
29286         Is_Visibly_Controlled, to determine whether a declaration of a
29287         primitive control operation for a derived type overrides an inherited
29288         one. Add warning if the explicit declaration does not override.
29289
29290 2004-05-10  Vincent Celier  <celier@gnat.com>
29291
29292         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
29293         some cases when the sources are no longer present.
29294
29295         * make.adb (Collect_Arguments): Fail if an external source, not part
29296         of any project need to be compiled, when switch -x has not been
29297         specified.
29298
29299         * makeusg.adb: Document new switch -x
29300
29301         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
29302         defaulted to False.
29303
29304         * switch-m.adb (Scan_Make_Switches): New switch -x
29305
29306         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
29307         gnatmake switch -x.
29308
29309         * gnat_ugn.texi: Document new gnatmake switch -x
29310
29311 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
29312
29313         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
29314
29315         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
29316         (process_attributes): Likewise.
29317
29318 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
29319
29320         * s-inmaop.ads: Fix spelling mistake in one of the comments.
29321
29322 2004-05-10  Robert Dewar  <dewar@gnat.com>
29323
29324         * gnat_ugn.texi: Document that for config pragma files, the maximum
29325         line length is always 32767.
29326
29327         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
29328         literals is now allowed.
29329
29330         * gnat-style.texi: Remove statement about splitting long lines before
29331         an operator rather than after, since we do not follow this rule at all.
29332         Clarify rule (really lack of rule) for spaces around exponentiation
29333
29334         * sem_elim.adb: Allow concatenation of string literals as well as a
29335         single string literal for pragma arguments.
29336
29337         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
29338
29339         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
29340         written for append case.
29341
29342         * frontend.adb: Changes to avoid checking max line length in config
29343         pragma files.
29344
29345         * g-os_lib.ads: Minor reformatting
29346
29347         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
29348         wrong in any case. Instead use standard value. Noticed during code
29349         reading.
29350
29351         * opt.ads (Max_Line_Length): New field, used to implement removal of
29352         limitation on length of lines when scanning config pragma files.
29353
29354         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
29355         makeutl.ads, makeutl.adb: Minor reformatting
29356
29357         * scn.adb: Do not check line length while scanning config pragma files
29358         Do not check line length while scanning out license information
29359
29360         * scng.adb: Changes to avoid line length checks while parsing config
29361         pragma files.
29362
29363 2004-05-10  GNAT Script  <nobody@gnat.com>
29364
29365         * Make-lang.in: Makefile automatically updated
29366
29367 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
29368
29369         * osint.adb (Find_Program_Name): Fix handling of VMS version
29370         number.
29371
29372 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
29373
29374         * g-os_lib.ads (Invalid_Time): New constant
29375
29376         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
29377         return OS_Time instead of time_t to match what is imported by Ada.
29378         Now return -1 if the file doesn't exist, instead of a random value
29379
29380 2004-05-05  Robert Dewar  <dewar@gnat.com>
29381
29382         * usage.adb: Add line for -gnatR?s switch
29383
29384         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
29385
29386         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
29387         and for Match (Data_First, Data_last)
29388
29389         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
29390         written when we are dealing with multi-unit files.
29391
29392 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
29393
29394         * Makefile.in: Remove unused targets and variables.
29395
29396 2004-05-05  Vincent Celier  <celier@gnat.com>
29397
29398         * switch-m.adb: New gnatmake switch -eI
29399
29400         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
29401         of new gnatmake switch -eInnn.
29402
29403         * makegpr.adb: Take into account new parameters Index and Src_Index in
29404         Prj.Util.
29405
29406         * clean.adb: Implement support for multi-unit sources, including new
29407         switch -i.
29408
29409         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
29410         Src_Index.
29411
29412         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
29413         (Extract_From_Q): New out parameter Index
29414         (Mark, Is_Marked): Subprograms moved to Makeutl
29415         (Switches_Of): New parameter Source_Index
29416         (Add_Switch): New parameter Index
29417         (Check): New parameter Source_Index
29418         (Collect_Arguments): New parameter Source_Index
29419         (Collect_Arguments_And_Compile): New parameter Source_Index
29420         (Compile): New parameter Source_Index
29421         Put subprograms in alphabetical order
29422         Add support for multi-source sources, including in project files.
29423
29424         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
29425         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
29426         Make.
29427
29428         * makeusg.adb: New gnatmake switch -eInnn
29429
29430         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
29431         Prj.Util.Value_Of.
29432
29433         * opt.ads (Main_Index): New variable, defaulted to 0.
29434
29435         * osint.ads, osinte.adb (Add_File): New parameter Index
29436         (Current_Source_Index): New function
29437
29438         * prj.adb: Take into account new components Index and Src_Index
29439
29440         * prj.ads (String_Element): New component Index
29441         (Variable_Value): New component Index
29442         (Array_Element): New component Src_Index
29443
29444         * prj-attr.adb: Indicate that optional index may be specified for
29445         attributes Main, Executable, Spec, Body and some of Switches.
29446
29447         * prj-attr.ads (Attribute_Kind): New values for optional indexes
29448         (Attribute_Record): New component Optional_Index
29449
29450         * prj-com.ads (File_Name_Data): New component Index
29451
29452         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
29453
29454         * prj-env.adb (Put): Output optional index
29455
29456         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
29457         attributes Spec and Body.
29458
29459         * prj-nmsc.adb: Process optional indexes
29460
29461         * prj-pp.adb: Ouput "at" for optional indexes
29462
29463         * prj-proc.adb: Take into account optional indexes
29464
29465         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
29466         Optional_Index. For string literal,
29467         process optional index when Optional_Index is True.
29468         (Parse_Expresion): New Boolean parameter Optional_Index
29469
29470         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
29471         (Set_Source_Index_Of): New procedure
29472
29473         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
29474         index.
29475
29476         * prj-util.ads (Executable_Of): New parameter Index
29477         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
29478         New parameter Src_Index, defaulted to 0.
29479
29480 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29481
29482         PR ada/15257
29483         * sem_ch3.adb (Access_Definition): If this is an access parameter
29484         whose designated type is imported through a limited_with clause, do
29485         not add the enclosing subprogram to the list of private dependents of
29486         the type.
29487
29488 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
29489
29490         PR ada/15258
29491         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
29492         a limited_with clause, and the other is its non-limited view.
29493
29494 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
29495
29496         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
29497
29498         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
29499         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
29500         Stand.Boolean_Literals to produce references to entities
29501         Standard_False and Standard_True from compile-time computed boolean
29502         values.
29503
29504         * stand.ads (Boolean_Literals): New variable, provides the entity
29505         values for False and True, for use by the expander.
29506
29507 2004-05-05  Doug Rupp  <rupp@gnat.com>
29508
29509         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
29510         5vinmaop.adb: Unchecked convert Short_Address vice Address
29511
29512         * adaint.c, raise.c: Caste CRTL function return value
29513         to avoid gcc error on 32/64 bit IVMS.
29514
29515         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
29516         target = IA64/VMS.
29517
29518         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
29519
29520         * 5qsystem.ads (Address): Declare as Long_Integer
29521         (Short_Address): Declare as 32 bit subtype of Address
29522         Declare  abstract address operations to avoid gratuitous ambiguities.
29523
29524 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
29525
29526         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
29527         instead of the old Boolean_Entry_Barriers.
29528         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
29529
29530 2004-05-05  GNAT Script  <nobody@gnat.com>
29531
29532         * Make-lang.in: Makefile automatically updated
29533
29534 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29535
29536         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
29537
29538 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
29539
29540         PR ada/15152
29541         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
29542         alone. Replacing object references by literals is inappropriate in a
29543         so low level context.
29544
29545 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
29546
29547         * a-exexpr.adb: Add comments
29548
29549 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
29550
29551         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
29552         declare the Ancestor_Tags array in Type_Specific_Data with a small size
29553         without risking a bounds check error when accessing one of its
29554         components.
29555         (Type_Specific_Data): Define Ancestor_Tags as a small array.
29556         This prevents us from hitting a limitation during the debug info
29557         generation when using stabs.
29558
29559         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
29560         small array.
29561         This prevents us from hitting a limitation during the debug info
29562         generation when using stabs.
29563
29564 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
29565
29566         lang-specs.h: Remove -gnatz* from specs.
29567
29568 2004-05-03  Vincent Celier  <celier@gnat.com>
29569
29570         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
29571
29572         * Make-lang.in, Makefile.in: Add gprmake
29573
29574 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
29575
29576         * sem_aggr.adb: Fix typo in comment.
29577
29578 2004-05-03  Robert Dewar  <dewar@gnat.com>
29579
29580         * make.adb: Minor reformatting
29581
29582         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
29583
29584         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
29585         so that it works when address is not a private type.
29586
29587         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
29588         properly with rewritten unchecked conversions. This prevents
29589         order-of-elaboration issues that can otherwise arise.
29590         (Minimum_Size): Don't check size of access types under VMS
29591
29592         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
29593         interpretations of integer literals as type System.Address.
29594
29595         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
29596         (Is_Descendent_Of): New function
29597
29598 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
29599
29600         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29601         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
29602         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
29603
29604         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
29605         of the old Max_Entry_Queue_Depth.
29606
29607         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
29608         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
29609         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
29610
29611         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
29612         New entry for proper handling of Max_Entry_Queue_Depth.
29613         New entry for proper handling of No_Dynamic_Interrupts.
29614
29615         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
29616         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29617         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
29618         the GNAT specific restriction Max_Entry_Queue_Depth.
29619         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
29620         the GNAT specific restriction No_Dynamic_Interrupts.
29621
29622         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
29623         instead of the old Boolean_Entry_Barriers.
29624         Use the new restriction No_Dynamic_Attachment instead of the old
29625         No_Dynamic_Interrupts.
29626
29627         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
29628         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
29629
29630         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
29631         of the old Max_Entry_Queue_Depth.
29632
29633 2004-05-03  GNAT Script  <nobody@gnat.com>
29634
29635         * Make-lang.in: Makefile automatically updated
29636
29637 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
29638
29639         * checks.adb (Enable_Range_Check): If the prefix of an index component
29640         is an access to an unconstrained array, perform check unconditionally.
29641
29642 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29643
29644         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
29645         Component_Clause.
29646
29647 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
29648
29649         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
29650         alternate stack setting. There was no support for the tasking cases
29651         and the changes eventually caused a number of side-effect failures in
29652         the non-tasking case too.
29653
29654 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
29655
29656         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
29657         -gnats is passed.
29658
29659 2004-04-29  Vincent Celier  <celier@gnat.com>
29660
29661         * make.adb (Gnatmake): Increase max size of argument array for
29662         gnatbind for the potential addition of -F.
29663         If there are Stand-Alone Library projects, invoke gnatbind with -F to
29664         be sure that elaboration flags will be checked.
29665
29666         * switch-c.adb: Correct call to Scan_Pos for -gnateI
29667
29668 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
29669
29670         * sem_warn.adb (Check_References): Move '<access-variable> may be
29671         null' warning out of under Warn_On_No_Value_Assigned.
29672
29673 2004-04-29  Ed Falis  <falis@gnat.com>
29674
29675         * gnat_ugn.texi: Fixed texi error
29676
29677 2004-04-29  Robert Dewar  <dewar@gnat.com>
29678
29679         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
29680         abstract operations if they come from predefined files.
29681
29682         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
29683         Dynamic, not RM).
29684
29685         * s-addope.adb: Correct obvious error in mod function
29686
29687 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
29688
29689         * Makefile.in: Add target pairs for powerpc darwin*
29690         tasking support.
29691
29692         * a-intnam-darwin.ads, s-osinte-darwin.adb,
29693         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
29694
29695 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29696
29697         * Makefile.in: Add target macro definitions for s390*-linux*.
29698         * system-linux-s390.ads: New file.
29699         * system-linux-s390x.ads: New file.
29700
29701 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
29702
29703         * gnat_ugn.texi: Correct argument to @setfilename.
29704
29705 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
29706
29707         * a-exexpr.adb (Unwind_Word): New data type.
29708         (Unwind_Exception): Use it as type of Private1 and Private2.
29709
29710         * raise.c (db_action_for): Fix debug printf.
29711
29712 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
29713
29714         * a-wtmoio.ads: Formal type must be a modular type, not a signed
29715         integer type.
29716
29717 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29718
29719         * decl.c (gnat_to_gnu_entity, case object): Call
29720         __builtin_update_setjmp_buf.
29721
29722         * gigi.h (update_setjmp_buf): Deleted.
29723         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
29724
29725         * misc.c: (update_setjmp_buf): Deleted.
29726
29727         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
29728         around block of RTL.
29729
29730         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
29731
29732 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
29733
29734         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
29735         subprogram for which no pragma All_Calls_Remote applies, store the
29736         address of the real subprogram in the underlying record type, so local
29737         dereferences do not go through the PCS.
29738
29739 2004-04-26  Robert Dewar  <dewar@gnat.com>
29740
29741         * i-c.ads: Add some type qualifications to avoid ambiguities when
29742         compiling with s-auxdec.ads and a non-private address type.
29743
29744 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
29745
29746         * Makefile.rtl: Fix error in previous check-in:
29747         Add s-addope.o to non tasking object list (rather than tasking object
29748         list).
29749
29750 2004-04-26  Javier Miranda  <miranda@gnat.com>
29751
29752         * sem_aggr.adb: Fix typo in comments
29753         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
29754         Required to check the null-exclusion attribute.
29755
29756         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
29757         case of anonymous access types in record and array components. For a
29758         component definition the level is the same of the enclosing composite
29759         type.
29760
29761         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
29762         that are anonymous access types the level of accessibility depends on
29763         the enclosing type declaration. In order to have this information, set
29764         the scope of the anonymous access type to the enclosing record type
29765         declaration.
29766         (Array_Type_Declaration): In case of components that are anonymous
29767         access types the level of accessibility depends on the enclosing type
29768         declaration. In order to have this information, set the scope of the
29769         anonymous access type to the enclosing array type declaration.
29770
29771         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
29772         access type.
29773
29774         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
29775         renaming of anonymous access-to-constant types allowed if and only if
29776         the renamed object is access-to-constant.
29777
29778         * sem_util.adb (Type_Access_Level): In case of anonymous access types
29779         that are component_definition or discriminants of a nonlimited type,
29780         the level is the same as that of the enclosing component type.
29781
29782 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
29783
29784         * sem_elim.adb: Some minor code reorganization from code reading. Fix
29785         misprint in the function name (File_Name_Match).
29786
29787 2004-04-23  Laurent Guerby  <laurent@guerby.net>
29788
29789         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
29790         install.
29791
29792 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
29793
29794         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
29795
29796 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
29797
29798         * adaint.c (__gnat_try_lock): No longer requires that the parent
29799         directory be writable, the directory itself is enough.
29800         (gnat_is_absolute_path): Change profile, so that the call from
29801         GNAT.OS_Lib can be made more efficient.
29802
29803         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
29804         from GNAT.OS_Lib can be made more efficient.
29805
29806         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
29807         one copy of the file name. Found by code reading.
29808
29809 2004-04-23  Vincent Celier  <celier@gnat.com>
29810
29811         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
29812         Correct documentation on gnatmake switches transmitted to the compiler
29813
29814         * ali.ads: Minor comment fix
29815
29816 2004-04-23  Javier Miranda  <miranda@gnat.com>
29817
29818         * sem_ch6.adb: (Confirming Types): Code cleanup
29819
29820         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
29821         subprogram types: E_Anonymous_Access_Subprogram_Type and
29822         E_Anonymous_Access_Protected_Subprogram_Type.
29823
29824 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
29825
29826         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29827         whether a pragma All_Calls_Remote applies to the subprogram on which
29828         'Access is taken.
29829         No functional change is introduced by this revision; the new parameter
29830         will be used to allow calls to local RCI subprograms to be optimized
29831         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29832         as is already done in the PolyORB implementation of the DSA.
29833
29834         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
29835         whether a pragma All_Calls_Remote applies to the subprogram on which
29836         'Access is taken.
29837         No functional change is introduced by this revision; the new parameter
29838         will be used to allow calls to local RCI subprograms to be optimized
29839         to not use the PCS in the case where no pragma All_Calls_Remote applies,
29840         as is already done in the PolyORB implementation of the DSA.
29841
29842 2004-04-23  Robert Dewar  <dewar@gnat.com>
29843
29844         * Makefile.rtl: Add entry for s-addope.o in run time library list
29845         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
29846         * s-addope.ads, s-addope.adb: New files.
29847
29848         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
29849         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
29850         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
29851         System.Address to be non-private and signed.
29852
29853         * sem_elim.adb: Minor reformatting (fairly extensive)
29854         Some minor code reorganization from code reading
29855         Add a couple of ??? comments
29856
29857 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29858
29859         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
29860         (tree_transform, case N_If_Statement): Remove non-determinism.
29861
29862         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
29863
29864 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
29865
29866         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
29867         Eliminate' section.
29868
29869         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
29870         no longer used as a parameter name for Eliminate pragma).
29871
29872 2004-04-22  Laurent Guerby  <laurent@guerby.net>
29873
29874         PR optimization/14984
29875         PR optimization/14985
29876         * trans.c (gigi): Fix non determinism leading to bootstrap
29877         comparison failures.
29878
29879 2004-04-21  Pascal Obry  <obry@gnat.com>
29880
29881         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
29882         passed to spawnvp() to properly handle program pathname with spaces on
29883         Win32.
29884
29885 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
29886
29887         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
29888         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
29889         unlocked in case of exceptions.
29890
29891 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
29892
29893         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
29894         This function does not exist anymore.
29895
29896 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
29897
29898         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
29899
29900         * link.c: Move variables to the __gnat name space.
29901
29902         * Makefile.in: list link.o explicitly when needed.
29903
29904         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
29905
29906 2004-04-21  Javier Miranda  <miranda@gnat.com>
29907
29908         * einfo.adb (Original_Access_Type): New subprogram
29909         (Set_Original_Access_Type): New subprogram
29910         (Write_Field21_Name): Write the name of the new field
29911
29912         * einfo.ads (Original_Access_Type): New field present in access to
29913         subprogram types.
29914         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
29915         E_Anonymous_Access_Protected_Subprogram_Type.
29916
29917         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
29918         subprogram types.
29919
29920         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
29921         to anonymous access to subprogram types.
29922
29923         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
29924         to subprogram types.
29925
29926         * sem_ch3.adb (Access_Definition): Complete decoration of entities
29927         corresponding to anonymous access to subprogram types.
29928         (Analyze_Component_Declaration): Add new actual to the call to
29929         subprogram replace_anonymous_access_to_protected_subprogram.
29930         (Array_Type_Declaration): Add new actual to the call to subprogram
29931         replace_anonymous_access_to_protected_subprogram.
29932         (Process_Discriminants): Add new actual to the call to subprogram
29933         replace_anonymous_access_to_protected_subprogram.
29934         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
29935
29936         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
29937         formal.
29938
29939         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
29940         access to subprogram types.
29941
29942         * sem_util.adb (Has_Declarations): Addition of package_specification
29943         nodes.
29944
29945 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
29946
29947         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
29948         inlined flags to renamed entity only if in current unit.
29949
29950 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
29951
29952         * s-parint.ads: Add DSA implementation marker.
29953
29954         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
29955         value of System.Partition_Interface.DSA_Implementation to determine
29956         what version of the distributed systems annex is available (no
29957         implementation, GLADE, or PolyORB).
29958
29959 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
29960
29961         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
29962
29963 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
29964
29965         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
29966         with new type if alias sets differ.
29967         Fixes ACATS c41103b.
29968
29969 2004-04-21  Vincent Celier  <celier@gnat.com>
29970
29971         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
29972         Add array Lang_Args for the language specific compiling argument
29973         switches.
29974
29975         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
29976
29977 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
29978
29979         * gnat_rm.texi: Update the descripton of the Eliminate pragma
29980         according to the recent changes in the format of the parameters of the
29981         pragma (replacing Homonym_Number with Source_Location).
29982
29983 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
29984
29985         * 5isystem.ads: Removed, unused.
29986
29987         * gnat_rm.texi: Redo 1.13 change.
29988
29989 2004-04-19  Robert Dewar  <dewar@gnat.com>
29990
29991         * s-stoele.ads: Clean up definition of Storage_Offset (the new
29992         definition is cleaner, avoids the kludge of explicit Standard operator
29993         references, and also is consistent with a visible System.Address with
29994         no visible operations.
29995
29996         * s-geveop.adb: Add declarations to avoid assumption of visible
29997         operations on type System.Address (since these might not be available
29998         if Address is a non-private type for which the operations
29999         are made abstract).
30000
30001         * sem_eval.adb: Minor reformatting
30002
30003         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
30004         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
30005         reformatting (new function spec format).
30006
30007         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
30008         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
30009         s-caun64.adb: Add declarations to avoid assumption of visible
30010         operations on type System.Address (since these might not be available
30011         if Address is a non-private type for which the operations are made
30012         abstract).
30013
30014         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
30015
30016         * exp_intr.adb: Minor comment update
30017
30018         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
30019
30020         * 5omastop.adb: Add declarations to avoid assumption of visible
30021         operations on type System.Address (since these might not be available
30022         if Address is a non-private type for which the operations
30023         are made abstract).
30024
30025 2004-04-19  Vincent Celier  <celier@gnat.com>
30026
30027         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
30028
30029         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
30030         defaulted to Ada.
30031
30032         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
30033         defaulted to Ada.
30034         Call Check with Process_Languages.
30035         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
30036         with Process_Languages.
30037         (Recursive_Check): New Boolean parameter Process_Languages. Call
30038         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
30039         Process_Languages.
30040
30041         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
30042
30043         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
30044         parameter Ada_Main, defaulted to True.
30045         Check for Ada specific characteristics only when Ada_Main is True.
30046
30047         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
30048
30049         * prj.adb: (Project_Empty): Add new Project_Data components.
30050
30051         * prj.ads: New types and tables for non Ada languages.
30052         (Project_Data): New components Languages, Impl_Suffixes,
30053         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
30054         Include_Path, Include_Data_Set.
30055
30056         * prj-env.ads, prj-env.adb: Minor reformatting
30057
30058         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
30059         Put subprograms in alphabetical order
30060
30061         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
30062         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
30063         Opt.Follow_Links.
30064
30065         * mlib-prj.adb: Back out modification in last version, as they are
30066         incorrect.
30067         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
30068
30069         * make.adb: (Mains): Moved to package Makeutl
30070         (Linker_Opts): Moved to package Makeutl
30071         (Is_External_Assignment): Moved to package Makeutl
30072         (Test_If_Relative_Path): Moved to package Makeutl
30073         (Gnatmake): Move sorting of linker options to function
30074         Makeutl.Linker_Options_Switches.
30075
30076         * makeutl.ads, makeutl.adb: New files.
30077
30078         * Makefile.in: Add makeutl.o to the object files for gnatmake
30079
30080         * makeusg.adb: Add line for new switch -eL.
30081
30082         * gnatls.adb (Image): New function.
30083         (Output_Unit): If in verbose mode, output the list of restrictions
30084         specified by pragmas Restrictions.
30085
30086         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
30087         Text_IO.
30088
30089         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
30090         needed, to put it in the range 1970 (included) - 2026 (excluded).
30091         (Time_Of): Do not shift Unix_Min_Year (1970).
30092         Shift the date by multiple of 56 years, if needed, to put it in the
30093         range 1970 (included) - 2026 (excluded).
30094
30095         * adaint.h, adaint.c (__gnat_set_executable): New function.
30096
30097 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30098
30099         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
30100         and pop GC context.
30101         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
30102         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
30103         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
30104         (tree_transform, case N_Code_Statement): Likewise.
30105         (gnat_expand_stmt, case LABEL_STMT): Don't look at
30106         LABEL_STMT_FIRST_IN_EH.
30107         (gnat_expand_stmt, case ASM_STMT): New case.
30108
30109         * utils2.c (build_unary_op): Properly set TREE_READONLY of
30110         UNCONSTRAINED_ARRAY_REF.
30111
30112         * utils.c (poplevel): Temporarily push/pop GC context around inline
30113         function expansion.
30114
30115         * decl.c (maybe_variable): Properly set TREE_READONLY of
30116         UNCONSTRAINED_ARRAY_REF.
30117         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
30118
30119         * ada-tree.def: (ASM_STMT): New.
30120
30121         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
30122         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
30123         ASM_STMT_INPUT): New.
30124         (ASM_STMT_CLOBBER): Likewise.
30125
30126 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
30127
30128         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
30129         general rcheck mechanism to raise Program_Error for E.4(18), instead
30130         of a custom raiser in System.Partition_Interface.
30131         Part of general cleanup work before PolyORB integration.
30132
30133         * snames.ads, snames.adb: Add new runtime library entities and names
30134         for PolyORB DSA.
30135
30136         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30137         exp_dist.
30138         (Build_Subprogram_Id): New subprogram provided by exp_dist
30139         Code reorganisation in preparation for PolyORB integration.
30140
30141         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
30142         exp_dist.
30143         (Build_Subprogram_Id): New subprogram provided by exp_dist
30144
30145         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
30146         actual parameter types for call to dereference of an
30147         access-to-subprogram type.
30148
30149         * rtsfind.ads: Add new runtime library entities and names for PolyORB
30150         DSA.
30151
30152         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
30153         instead, which has the same behaviour here since we never pass it a
30154         NULL pointer.
30155
30156         * link.c (run_path_option, Solaris case): Use -Wl, as for other
30157         platforms.
30158
30159         * Makefile.in: adjust object file lists for gnatlink and gnatmake
30160         to account for new dependency upon Interfaces.C.Strings + link.o
30161         For x86 FreeBSD, use 86numaux.
30162
30163         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
30164         from Mlib.Tgt to Mlib.
30165
30166         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
30167         target-independent.
30168
30169         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
30170         target-specific versions of this subprogram, now implemented as a
30171         target-independent function in Mlib.
30172
30173         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
30174         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
30175         (Linker_Library_Path_Option): Remove target-specific versions of this
30176         subprogram, now implemented as a target-independent function in Mlib.
30177
30178         * atree.adb: (Allocate_Initialize_Node): New subprogram.
30179         Factors out node table slots allocation.
30180         (Fix_Parents): New subprogram.
30181         Encapsulate the pattern of fixing up parent pointers for syntactic
30182         children of a rewritten node.
30183         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
30184         (Rewrite): Use New_Copy when creating saved copy of original node.
30185         (Replace): Use Copy_Node to copy nodes.
30186
30187 2004-04-19  Javier Miranda  <miranda@gnat.com>
30188
30189         * sprint.adb (Sprint_Node_Actual): Give support to the new
30190         Access_To_Subprogram node available in Access_Definition nodes. In
30191         addition, give support to the AI-231 node fields: null-exclusion,
30192         all-present, constant-present.
30193
30194         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
30195
30196         * sinfo.ads, sinfo.adb:
30197         New field Access_To_Subprogram_Definition in Access_Definition nodes
30198
30199         * sem_ch6.adb (Process_Formals): Move here the code that creates and
30200         decorates internal subtype declaration corresponding to the
30201         null-excluding formal. This code was previously in Set_Actual_Subtypes.
30202         In addition, carry out some code cleanup on this code. In case of
30203         access to protected subprogram call
30204         Replace_Anonymous_Access_To_Protected_Subprogram.
30205         (Set_Actual_Subtypes): Code cleanup.
30206
30207         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
30208         Find_Type in case of anonymous access renamings. Add warning in case of
30209         null-excluding attribute used in anonymous access renaming.
30210
30211         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
30212         subprogram
30213
30214         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
30215         subprogram.
30216         (Access_Definition): In case of anonymous access to subprograms call
30217         the corresponding semantic routine to decorate the node.
30218         (Access_Subprogram_Declaration): Addition of some comments indicating
30219         some code that probably should be added here. Detected by comparison
30220         with the access_definition subprogram.
30221         (Analyze_Component_Declaration): In case of access to protected
30222         subprogram call Replace_Anonymous_Access_To_Protected.
30223         (Array_Type_Declaration): In case of access to protected subprogram call
30224         Replace_Anonymous_Access_To_Protected_Subprogram.
30225         (Process_Discriminants): In case of access to protected subprogram call
30226         Replace_Anonymous_Access_To_Protected_Subprogram.
30227
30228         * par.adb (P_Access_Definition): New formal that indicates if the
30229         null-exclusion part was present.
30230         (P_Access_Type_Definition): New formal that indicates if the caller has
30231         already parsed the null-excluding part.
30232
30233         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
30234         (P_Identifier_Declarations): Code cleanup and give support to renamings
30235         of anonymous access to subprogram types.
30236         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
30237         (P_Array_Type_Definition): Give support to AI-254.
30238         (P_Component_Items): Give support to AI-254.
30239         (P_Access_Definition): New formal that indicates if the header was
30240         already parsed by the caller.
30241         (P_Access_Type_Definition): New formal that indicates if the caller has
30242         already parsed the null-excluding part.
30243
30244         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
30245         call to P_Access_Definition.
30246
30247 2004-04-19  Geert Bosch  <bosch@gnat.com>
30248
30249         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
30250         the delicate semantics of floating-point to integer conversion.
30251         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
30252
30253         * eval_fat.adb (Machine_Mantissa): Moved to spec.
30254         (Machine_Radix): New function.
30255
30256         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
30257         conversion checks.
30258         (Machine_Radix): New function also for use in conversion checks.
30259
30260 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
30261
30262         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
30263
30264         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
30265         to decorate the access-to-protected subprogram and the equivalent type.
30266
30267         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
30268         to anonymous access to subprogram types.
30269
30270         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
30271         constant-folding, for legality checks in contexts that require an RM
30272         static expression.
30273
30274         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
30275         temporary but stack checking is not enabled, increment serial number
30276         to so that symbol generation is consistent with and without stack
30277         checking.
30278
30279         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
30280         independent on whether stack checking is enabled, caller must check
30281         the corresponding flag.
30282
30283         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
30284         range checks.
30285         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
30286         parent if it has discriminants.
30287         (Build_Derived_Private_Type): Constructed full view does
30288         not come from source.
30289         (Process_Discriminants): Default discriminants on a tagged type are
30290         legal if this is the internal completion of a private untagged
30291         derivation.
30292
30293         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
30294         no constraint checks, because it corresponds to an existing object.
30295
30296         * sem_prag.adb (Process_Convention): Pragma applies
30297         only to subprograms in the same declarative part, i.e. the same unit,
30298         not the same scope.
30299
30300         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
30301         ignore type mismatch on a numeric conversion if expression comes from
30302         expansion.
30303
30304 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
30305
30306         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
30307         Homonym_Number parameter, add processing for Source_Location parameter
30308         corresponding.
30309         (Check_Eliminated): Remove the check for homonym numbers, add the check
30310         for source location traces.
30311
30312         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
30313         with Arg_Source_Location corresponding to the changes in the format of
30314         the pragma.
30315
30316         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
30317         Eliminate pragma corresponding to the changes in the format of the
30318         pragma: Homonym_Number is replaced with Source_Location, two ways of
30319         distinguishing homonyms are mutially-exclusive.
30320
30321 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
30322
30323         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
30324
30325         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
30326         No_Dollar_In_Label, no longer necessary, as it is always True.
30327         (Strip_Suffixes): Likewise.
30328
30329 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
30330
30331         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
30332         modulus for compatibility with size clause on targets with 16-bit
30333         Integer.
30334
30335         * layout.adb (Discrimify): In the case of private types, set Vtyp to
30336         full type to fix type mismatches on calls to size functions for
30337         discriminant-dependent array components.
30338
30339 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
30340
30341         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
30342         lib.
30343
30344 2004-04-19  Pascal Obry  <obry@gnat.com>
30345
30346         * mdll-utl.adb (Locate): New version is idempotent.
30347
30348 2004-04-17  Laurent Guerby  <laurent@guerby.net>
30349
30350         PR ada/14988 (partial)
30351         * impunit.adb: Fix typo.
30352
30353 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
30354
30355         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
30356         and install-rts-cert targets.  Remove all gnatlib and gnattools
30357         targets and all other rts-* targets (moved to libada).  Remove (now)
30358         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
30359         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
30360
30361 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30362
30363         * trans.c (tree_transform): Shortcut returning error_mark_node for
30364         statements in annotate_only_mode.
30365         (tree_transform, case N_Label, case N_Return_Statement,
30366         N_Goto_Statement): Make statement tree instead of generating code.
30367         (tree_transform, case N_Assignment_Statement): No longer check
30368         type_annotate_only.
30369         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
30370         RETURN_STMT): New.
30371         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
30372         New fcns.
30373         (gnat_to_gnu): Collect any RTL generated and deal with it.
30374         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
30375         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
30376         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
30377
30378         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
30379
30380         * ada-tree.def (EXPR_STMT): Fix typo in name.
30381         (BLOCK_STMT, IF_STMT): New nodes.
30382
30383         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
30384         LABEL_STMT_FIRST_IN_EH): New macros.
30385         (RETURN_STMT_EXPR): Likewise.
30386
30387         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
30388         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
30389
30390 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30391
30392         * atree.ads: Correct documentation on extended nodes.
30393
30394         * link.c: Set run_path_option for FreeBSD.
30395
30396 2004-04-08  Vincent Celier  <celier@gnat.com>
30397
30398         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
30399         one of the ALI file, do not link with DEC lib.
30400
30401         * par.adb Remove the last two characters ("%s" or "%b") when checking
30402         if a language defined unit may be recompiled.
30403
30404 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
30405
30406         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
30407         removal of abstract operation leaves no possible interpretation for
30408         expression.
30409
30410         * sem_eval.adb (Eval_Qualified_Expression): Use
30411         Set_Raises_Constraint_Error on node when needed, so that it does not
30412         get optimized away by subsequent optimizations.
30413
30414         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
30415         operands even when they are not wrapped in a type conversion.
30416
30417 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
30418
30419         * sem_prag.adb (Set_Exported): Warn about making static as result of
30420         export only when the export is coming from source. This may be not
30421         be true e.g. on VMS where we expand export pragmas for exception codes
30422         together with imported or exported exceptions, and we don't want the
30423         user to be warned about something he didn't write.
30424
30425 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
30426
30427         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
30428         duplication between normal entities and those declared as renamings.
30429         No functional change.
30430
30431         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
30432         inline functions returning an unconstrained result.
30433
30434 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
30435
30436         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
30437         conform to what other front-ends do.
30438
30439 2004-04-08  Doug Rupp  <rupp@gnat.com>
30440
30441         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
30442         libraries.
30443
30444 2004-04-06  Pascal Obry  <obry@gnat.com>
30445
30446         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
30447
30448         * osint.adb (Program_Name): Do not look past a directory separator.
30449
30450 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
30451
30452         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
30453
30454         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
30455         requirement for preserving a copy of the original assignment node.
30456
30457         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
30458
30459 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
30460
30461         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
30462         when supported.
30463
30464 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
30465
30466         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
30467         operator calls in functional notation, and apply
30468         Universal_Interpretation to operands, not to their type.
30469
30470 2004-04-06  Robert Dewar  <dewar@gnat.com>
30471
30472         * 5wdirval.adb: Minor reformatting
30473
30474 2004-04-06  Ed Falis  <falis@gnat.com>
30475
30476         * gnat_rm.texi: Improve a reference to the GCC manual
30477
30478 2004-04-05  Vincent Celier  <celier@gnat.com>
30479
30480         * adaint.h, adaint.c: Add function __gnat_named_file_length
30481
30482         * impunit.adb: Add Ada.Directories to the list
30483
30484         * Makefile.in: Add VMS and Windows versions of
30485         Ada.Directories.Validity package body.
30486
30487         * Makefile.rtl: Add a-direct and a-dirval
30488
30489         * mlib-tgt.ads: Minor comment update.
30490
30491         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
30492         a-direct.ads, a-direct.adb: New files.
30493
30494 2004-04-05  Vincent Celier  <celier@gnat.com>
30495
30496         PR ada/13620
30497         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
30498         just to the compiler.
30499
30500 2004-04-05  Robert Dewar  <dewar@gnat.com>
30501
30502         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
30503         returned string is 1.
30504
30505         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
30506
30507         * eval_fat.ads: Minor reformatting
30508
30509         * g-curexc.ads: Document that lower bound of returned string values
30510         is always one.
30511
30512         * gnatlink.adb: Add ??? comment for previous change
30513         (need to document why this is VMS specific)
30514
30515         * s-stoele.ads: Minor reformatting
30516
30517         * tbuild.ads: Minor reformatting throughout (new function specs)
30518
30519         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
30520         after WITH.
30521
30522         * scng.adb: Minor reformatting
30523
30524 2004-04-05  Geert Bosch  <bosch@gnat.com>
30525
30526         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
30527         (Leading_Part): Still perform truncation to machine number if the
30528         specified radix_digits is greater or equal to machine_mantissa.
30529
30530 2004-04-05  Javier Miranda  <miranda@gnat.com>
30531
30532         * par-ch3.adb: Complete documentation of previous change
30533         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
30534         (aliased must appear before constant).
30535
30536         * par-ch4.adb: Complete documentation of previous change.
30537
30538         * par-ch6.adb: Complete documentation of previous change.
30539
30540         * sinfo.ads: Fix typo in commment.
30541
30542 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
30543
30544         * sem_ch3.adb (Inherit_Components): If derived type is private and has
30545         stored discriminants, use its discriminants to constrain parent type,
30546         as is done for non-private derived record types.
30547
30548         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
30549         Ada 2005 AI-310: an abstract non-dispatching operation is not a
30550         candidate interpretation in an overloaded call.
30551
30552         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
30553         expression is Null and target type is not an access type (e.g. a
30554         non-private address type).
30555
30556 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
30557
30558         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
30559         statement whose right-hand side is an inlined call, save a copy of the
30560         original assignment subtree to preserve enough consistency for
30561         Analyze_Assignment to proceed.
30562
30563         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
30564         complete assignment subtree which is now unnecessary, as the expansion
30565         of inlined call has been improved to preserve a consistent assignment
30566         tree.  Note_Possible_Modification must be called only
30567         after checks have been applied, or else unnecessary checks will
30568         be generated.
30569
30570         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
30571         of explicit dereferences that do not Come_From_Source:
30572          - be selective on cases where we must go back to the dereferenced
30573            pointer (an assignment to an implicit dereference must not be
30574            recorded as modifying the pointer);
30575          - do not rely on Original_Node being present (Analyze_Assignment
30576            calls Note_Possible_Modification on a copied tree).
30577
30578         * sem_warn.adb (Check_References): When an unset reference to a pointer
30579         that is never assigned is encountered, prefer '<pointer> may be null'
30580         warning over '<pointer> is never assigned a value'.
30581
30582 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
30583
30584         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
30585         the ABI.
30586
30587 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
30588
30589         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
30590         libexc. We currently don't reference anything in this library and
30591         linking it in triggers linker warnings we don't want to see.
30592
30593         * init.c: Update comments.
30594
30595 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30596
30597         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
30598         * utils.c (create_field_decl): Likewise.
30599         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
30600
30601 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
30602
30603         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
30604         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
30605         Add info directory entry and category.
30606
30607 2004-04-02  Jan Hubicka  <jh@suse.cz>
30608
30609         * utils.c: Include function.h
30610         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
30611
30612 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30613
30614         PR ada/14150
30615         * Make-lang.in: Clean up generation of documentation
30616
30617         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
30618
30619         * xgnatug.adb: Removed, replaced by xgnatugn.adb
30620
30621         * xgnatugn.adb: Replaces xgnatug.adb
30622
30623         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
30624
30625         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
30626
30627         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30628         gnat_ug_wnt.texi: Removed.
30629
30630 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
30631
30632         * utils2.c: Update copyright notice.
30633
30634 2004-04-01  Robert Dewar  <dewar@gnat.com>
30635
30636         * checks.adb: Minor reformatting throughout
30637         Note that prev checkin added RM reference to alignment warning
30638
30639 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
30640
30641         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
30642         non-static when building aggregate for bit-packed array.
30643
30644         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
30645         function call that is itself the actual in a procedure call, build
30646         temporary for it.
30647
30648         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
30649         a string literal, create a temporary for it, constant folding only
30650         handles scalars here.
30651
30652 2004-04-01  Vincent Celier  <celier@gnat.com>
30653
30654         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
30655         Error_Msg_SP): New empty procedures to instantiate the Scanner.
30656         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
30657         tokens.
30658         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
30659         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
30660         and get the checksum.
30661
30662         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
30663         already in the Q.
30664         Increase the Marking_Label at the end of the Multiple_Main_Loop,
30665         instead of at the beginning.
30666
30667         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
30668         directly.
30669         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
30670         on VMS.
30671
30672         * osint.ads (Multi_Unit_Index_Character): New Character global variable
30673
30674         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
30675         not '~' directly.
30676
30677         * par.adb: Remove test on file name to detect language defined units.
30678         Add test on unit name, after parsing, to detect language defined units
30679         that are not compiled with -gnatg (except System.RPC and its children)
30680
30681         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
30682         following units without style checking.
30683
30684         * switch-c.adb: Change -gnatC to -gnateI
30685
30686         * usage.adb: Document new switch -gnateInnn
30687
30688         * scng.adb (Accumulate_Token_Checksum): New procedure
30689         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
30690         word or literal number.
30691         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
30692         numbers.
30693
30694 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
30695
30696         * a-tasatt.adb,
30697         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
30698         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
30699         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
30700         5vtpopde.adb: Add missing 'constant' keywords.
30701
30702 2004-04-01  Javier Miranda  <miranda@gnat.com>
30703
30704         * par-ch4.adb: (P_Allocator): Code cleanup
30705
30706         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
30707         attribute.
30708
30709         * sinfo.ads: Complete documentation of previous change
30710
30711 2004-04-01  Pascal Obry  <obry@gnat.com>
30712
30713         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
30714         only on VMS.  This special handling was done because an old GNU/ld bug
30715         on Windows which has been fixed.
30716
30717 2004-04-01  GNAT Script  <nobody@gnat.com>
30718
30719         * Make-lang.in: Makefile automatically updated
30720
30721 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30722
30723         * decl.c (gnat_to_gnu_entity, make_type_from_size):
30724         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
30725         * trans.c (tree_transform, convert_with_check): Likewise.
30726         * utils.c (gnat_signed_or_unsigned_type): Likewise.
30727         (build_vms_descriptor, unchecked_convert): Likewise.
30728         * utils2.c (nonbinary_modular_operation): Likewise.
30729
30730 2004-03-29  Javier Miranda  <miranda@gnat.com>
30731
30732         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
30733         (Install_Null_Excluding_Check): Local subprogram that determines whether
30734         an access node requires a runtime access check and if so inserts the
30735         appropriate run-time check.
30736         (Apply_Access_Check): Call Install_Null_Excluding check if required
30737         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
30738
30739         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
30740
30741         * einfo.ads: Fix typo in comment
30742
30743         * exp_ch3.adb (Build_Assignment): Generate conversion to the
30744         null-excluding type to force the corresponding run-time check.
30745         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
30746         type to force the corresponding run-time check.
30747
30748         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
30749         the null-excluding type to force the corresponding run-time check.
30750
30751         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
30752         case of access types unless they have the null-excluding attribute.
30753
30754         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
30755         part.
30756
30757         * exp_util.ads: Fix typo in comment
30758
30759         * par.adb (P_Null_Exclusion): New subprogram
30760         (P_Subtype_Indication): New formal that indicates if the null-excluding
30761         part has been scanned-out and it was present
30762
30763         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
30764
30765         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
30766         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
30767         type to force the corresponding run-time check
30768         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
30769         components
30770         (Resolve_Array_Aggregate): Carry out some static checks
30771         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
30772
30773         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
30774         attribute must be set only if specified by means of the null-excluding
30775         part. In addition, we must also propagate the access-constant attribute
30776         if present.
30777         (Access_Subprogram_Declaration, Access_Type_Declaration,
30778         Analyze_Component_Declaration, Analyze_Object_Declaration,
30779         Array_Type_Declaration, Process_Discriminants,
30780         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
30781         and carry out some static checks.
30782         (Build_Derived_Access_Type): Set the null-excluding attribute
30783         (Derived_Type_Declaration, Process_Subtype): Carry out some static
30784         checks.
30785
30786         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
30787
30788         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
30789
30790         * sem_ch6.adb (Process_Formals): Carry out some static checks.
30791         (Set_Actual_Subtypes): Generate null-excluding subtype if the
30792         null-excluding part was present; it is not required to be done here in
30793         case of anonymous access types.
30794         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
30795         value.
30796
30797         * sem_res.adb (Resolve_Actuals): Carry out some static check
30798         (Resolve_Null): Allow null in anonymous access
30799
30800         * sinfo.adb: New subprogram Null_Exclusion_Present
30801         All_Present and Constant_Present available on access_definition nodes
30802
30803         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
30804         object_declaration, derived_type_definition, component_definition,
30805         discriminant_specification, access_to_object_definition,
30806         access_function_definition, allocator, access_procedure_definition,
30807         access_definition, parameter_specification, All_Present and
30808         Constant_Present flags available on access_definition nodes.
30809
30810 2004-03-29  Robert Dewar  <dewar@gnat.com>
30811
30812         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
30813         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
30814         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
30815         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
30816         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
30817         sem_prag.adb: Updates to handle multiple units/file
30818
30819         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
30820
30821         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
30822         sem_util.adb: Minor reformatting
30823
30824         * sem_ch12.adb: Add comment for previous change
30825
30826 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
30827
30828         * osint.adb (Executable_Prefix): Set Exec_Name to the current
30829         executable name when not initialized. Otherwise, use its current value.
30830
30831         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
30832         initialize it to another executable name than the current one. This
30833         allows to configure paths for an executable name (gnatmake) different
30834         from the current one (gnatdist).
30835
30836 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
30837
30838         * exp_ch6.adb (Expand_Call): A call to a function declared in the
30839         current unit cannot be inlined if it appears in the body of a withed
30840         unit, to avoid order of elaboration problems in gigi.
30841
30842         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
30843         information for protected (wrapper) operation as well, to simplify gdb
30844         use.
30845
30846         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
30847         protected body, indicate that the entity for the generated spec comes
30848         from source, to ensure that references are properly generated for it.
30849         (Build_Body_To_Inline): Do not inline a function that returns a
30850         controlled type.
30851
30852         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
30853         apply convention to homonyms that are declared explicitly.
30854
30855         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
30856         that renames an equality operator and the operands are overloaded,
30857         resolve them with the declared formal types, before rewriting as an
30858         operator.
30859
30860 2004-03-29  GNAT Script  <nobody@gnat.com>
30861
30862         * Make-lang.in: Makefile automatically updated
30863
30864 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
30865
30866         * memtrack.adb: Log realloc calls, which are treated as free followed
30867         by alloc.
30868
30869 2004-03-25  Vincent Celier  <celier@gnat.com>
30870
30871         * prj-makr.adb (Process_Directories): Detect when a file contains
30872         several units. Do not include such files in the config pragmas or
30873         in the naming scheme.
30874
30875         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
30876         Resolve links only when not in Trusted_Mode.
30877         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
30878         Do not resolve links for the display names.
30879
30880         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
30881         resolve links when computing the display names.
30882
30883 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
30884
30885         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
30886         attribute reference does not denote a subtype, it can be any
30887         expression that has a classwide type, potentially after an implicit
30888         dereference.  In particular, the prefix can be a view conversion for
30889         a classwide type (for which Is_Object_Reference holds), but it can
30890         also be a value conversion for an access-to-classwide type. In the
30891         latter case, there is an implicit dereference, and the original node
30892         for the prefix does not verify Is_Object_Reference.
30893
30894         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
30895         conversion of a discriminant-dependent component of a mutable object
30896         is one itself.
30897
30898 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
30899
30900         * freeze.adb (Freeze_Entity): When an inherited subprogram is
30901         inherited, has convention C, and has unconstrained array parameters,
30902         place the corresponding warning on the derived type declaration rather
30903         than the original subprogram.
30904
30905         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
30906         indication on renaming declaration, if formal has a box and actual
30907         is absent.
30908
30909         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
30910         determine whether to generate an implicit or explicit reference to
30911         the renamed entity.
30912
30913         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
30914         subprogram renaming comes from a defaulted formal subprogram in an
30915         instance.
30916
30917 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
30918
30919         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
30920         value expressions to ensure that calls within a component definition
30921         will be checked (since those are evaluated during the record type's
30922         elaboration).
30923
30924 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
30925
30926         * s-tpobop.adb: Code clean up:
30927         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
30928         code.
30929         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
30930
30931 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
30932
30933         * Makefile.in: Clean up in the ravenscar run time.
30934
30935 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30936
30937         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
30938         of No_Strict_Aliasing to build_pointer_type_for_mode.
30939         * utils.c (update_pointer_to): Walk pointer and ref chains.
30940
30941 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
30942
30943         * ali.ads: Fix Comment about Dynamic_Elab.
30944
30945         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
30946         Has_RACW, Is_Generic, etc.)
30947         (Output_Object, Gnatls): Take into account ALI files not attached to
30948         an object.
30949
30950 2004-03-22  Vincent Celier  <celier@gnat.com>
30951
30952         * gprep.adb: Change all String_Access to Name_Id
30953         (Is_ASCII_Letter): new function
30954         (Double_File_Name_Buffer): New procedure
30955         (Preprocess_Infile_Name): New procedure
30956         (Process_Files): New procedure
30957         (Gnatprep): Check if output and input are existing directories.
30958         Call Process_Files to do the real job.
30959
30960 2004-03-22  Robert Dewar  <dewar@gnat.com>
30961
30962         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
30963         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
30964
30965 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
30966
30967         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
30968         case when the source contains only comments.
30969
30970 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
30971
30972         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
30973         declaration for a child subprogram body that acts as a spec, indicate
30974         that the entity in the declaration needs debugging information.
30975
30976         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
30977         full view if the subtype is created for a constrained record component;
30978         gigi has enough information to construct the record, and there is no
30979         place in the tree for the declaration.
30980
30981         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
30982         serial number for the dummy body that is built for analysis, to avoid
30983         inconsistencies in the generation of internal names when compiling
30984         with -gnatN.
30985
30986 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
30987
30988         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
30989         object.
30990
30991 2004-03-22  GNAT Script  <nobody@gnat.com>
30992
30993         * Make-lang.in: Makefile automatically updated
30994
30995 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
30996
30997         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
30998         * trans.c (tree_transform, emit_index_check): Likewise.
30999         * utils.c (build_template): Likewise.
31000         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
31001         (maybe_unconstrained_array, unchecked_convert): Likewise.
31002         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
31003         (build_unary_op): Likewise.
31004         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
31005         (fill_vms_descriptor): Likewise.
31006         (build_call_alloc_dealloc): Likewise.
31007         ALIGN is unsigned.
31008         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
31009
31010 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
31011
31012         PR other/14630
31013         * gnat_ug.texi: Add info directory category and entry.
31014         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
31015         gnat_ug_wnt.texi: Regenerate.
31016
31017 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
31018
31019         * ada-tree.h: Update copyright notice.
31020         Minor reformatting.
31021
31022 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
31023
31024         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
31025         as regular exception objects and not as mere integers representing the
31026         condition code.  The latter approach required some dynamics to mask off
31027         severity bits, which did not fit well into the GCC table based model.
31028         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
31029         exception data objects. We don't it and it would conflict with the other
31030         external symbol we have to generate for such exceptions.
31031
31032         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
31033         the special code for VMS exceptions, since these are now represented
31034         as regular exceptions objects.
31035
31036 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31037
31038         * decl.c (debug_no_type_hash): Remove.
31039         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
31040         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
31041
31042 2004-03-19  Laurent Guerby  <laurent@guerby.net>
31043
31044         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
31045         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
31046
31047 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31048
31049         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
31050         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
31051         (TYPE_RM_SIZE_INT): Directly use type.values.
31052         (TREE_LOOP_ID): Clean up check.
31053         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
31054         TYPE_VALUES, not TYPE_FIELDS.
31055         * trans.c (convert_with_check): Delay access of bounds of basetype
31056         until sure is numeric.
31057
31058 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
31059
31060         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
31061
31062         Code clean up:
31063         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
31064         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
31065         Specific.Set instead of direct call to e.g pthread_setspecific.
31066
31067 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
31068
31069         * adaint.c: Update comments.
31070
31071         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
31072         GNATLIB_SHARED for FreeBSD.
31073
31074 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
31075
31076         * init.c [VxWorks]: Do not fix the stack size for the environment task.
31077         When needed (stack checking) the stack size is retrieved
31078         from the VxWorks kernel.
31079
31080         * Makefile.in: Flag -nostdinc is required when building the run time
31081         for avoiding looking for files in the base compiler.
31082         Add the VxWorks specific version of the package body for
31083         System.Stack_checking.Operations (5zstchop.adb).
31084
31085         * Make-lang.in: Add the object file for
31086         System.Stack_Checking.Operations.
31087
31088         * Makefile.rtl: Add object file for the package
31089         System.Stack_Checking.Operations.
31090
31091         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
31092
31093         * s-stache.ads, s-stache.adb: Move the operations related to stack
31094         checking from this package to package System.Stack_Checking.Operations.
31095         This way, stack checking operations are only linked in the final
31096         executable when using the -fstack-check flag.
31097
31098 2004-03-18  Doug Rupp  <rupp@gnat.com>
31099
31100         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
31101         Reorganize ifeq's.
31102
31103         * 5qsystem.ads, 5xcrtl.ads: New files.
31104
31105 2004-03-18  Vincent Celier  <celier@gnat.com>
31106
31107         * prj.adb (Reset): Reset hash table Files_Htable
31108
31109         * prj-env.adb (Source_Paths, Object_Paths): New tables.
31110         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
31111         the procedures Add_To_Path_File.
31112         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
31113         making sure that each directory is present only once and, for object
31114         dirs, when a directory already present is added, the duplicate is
31115         removed and the directory is always put as the last in the table.
31116         Write the path files at the end of these accumulations.
31117
31118         * prj-nmsc.adb (Record_Source): Add source file name in hash table
31119         Files_Htable for all sources.
31120
31121         * prj-proc.adb (Process): Remove restrictions between not directly
31122         related extending projects.
31123
31124 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
31125
31126         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
31127         (Find_Sources): Minor speed optimization.
31128
31129         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
31130         parameter Trusted_Mode.
31131
31132 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
31133
31134         * scn.adb (Determine_License): Take into account a degenerated case
31135         when the source contains only comments.
31136
31137 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
31138
31139         * sem_warn.adb (Check_References): For a warning on a selected
31140         component that does not come from source, locate an uninitialized
31141         component of the record type to produce a more precise error message.
31142
31143 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
31144
31145         * 3zsoccon.ads: Fix multicast options.
31146
31147         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
31148         in the spec.
31149
31150 2004-03-15  Robert Dewar  <dewar@gnat.com>
31151
31152         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
31153         pragma used for a private type.
31154
31155         * lib-xref.adb (Generate_Reference): Do not generate warning if
31156         reference is in a different unit from the pragma Unreferenced.
31157
31158         * 5vtpopde.adb: Minor reformatting
31159         Fix casing of To_Task_ID
31160
31161         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
31162         flag if we have an unchecked conversion to an access type in the same
31163         unit.
31164
31165 2004-03-15  Geert Bosch  <bosch@gnat.com>
31166
31167         * a-ngcoty.adb (Modulus): In alternate formula for large real or
31168         imaginary parts, use Double precision throughout.
31169
31170         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
31171         we want to be able to compile run-time with -gnata for testing, but
31172         this may also be instantiated in user code that is compiled with -gnata.
31173
31174 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
31175
31176         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
31177         codes. Having a separate type for this is useful to enforce consistency
31178         throughout the various run-time units.
31179         (Exception_Data): Use Exception_Code for Import_Code.
31180
31181         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
31182         Natural and Integer in various places.
31183         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
31184         with the severity bits masked off.
31185         (Register_VMS_Exception): Handle the additional exception data pointer
31186         argument.
31187
31188         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
31189         component, now reflected by an exported accessor.
31190         (is_handled_by): New routine to compute whether the propagated
31191         occurrence matches some handler choice specification. Extracted out of
31192         get_action_description_for, and expanded to take care of the VMS
31193         specifities.
31194         (get_action_description_for): Use is_handled_by instead of an explicit
31195         complex condition to decide if the current choice at hand catches the
31196         propagated occurrence.
31197
31198         * raise.h (Exception_Code): New type for C.
31199
31200         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
31201         System.Standard_Library.Exception_Code, to allow references from the
31202         pragma import/export expander.
31203
31204         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
31205         New accessors to allow easy access to GNAT exception data
31206         characteristics.
31207         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
31208         redundant Handled_By_Others component, helper for the personality
31209         routine which will now be able to call the appropriate exception data
31210         accessor instead.
31211
31212         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
31213         component of Standard_Exception_Type to be the closest possible to
31214         Exception_Code in System.Standard_Library, that we cannot get at this
31215         point. Expand a ??? comment to notify that this type node should
31216         probably be rewritten later on.
31217
31218         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
31219         registration call to include a pointer to the exception object in the
31220         arguments.
31221
31222         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
31223         instead of int and explicit bitmasks.
31224
31225 2004-03-15  Vincent Celier  <celier@gnat.com>
31226
31227         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
31228         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
31229
31230         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
31231         longer needed now that it is in the spec of
31232         System.Tasking.Task_Attributes.
31233
31234         * adaint.h, adaint.c: (__gnat_create_output_file): New function
31235
31236         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
31237
31238         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
31239
31240         * make.adb (Gnatmake): Do not check the executable suffix; it is being
31241         taken care of in Scan_Make_Arg.
31242         (Scan_Make_Arg): Add the executable suffix only if the argument
31243         following -o, in canonical case, does not end with the executable
31244         suffix.  When in verbose mode and executable file name does not end
31245         with executable suffix, output the executable name, in canonical case.
31246
31247         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
31248         to avoid warnings when instantiating Ada.Task_Attributes.
31249         Minor reformating.
31250
31251         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
31252         in the correct order.
31253
31254         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
31255         redirect standard output and error to a file for the invocation of the
31256         compiler, then read the file.
31257
31258         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
31259         directory, instead of the Value.
31260         (Find_Source_Dirs): Remove useless code & comments.
31261
31262 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
31263
31264         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
31265         tagged type is inherited, and the parent operation is not frozen yet,
31266         force generation of a freeze node for the inherited operation, so the
31267         corresponding dispatch entry is properly initialized.
31268         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
31269         when looking for user-defined equality operation.
31270
31271         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
31272         boolean when locating primitive equality of tagged component.
31273
31274         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
31275         bit-aligned field and the right-hand side a string literal, introduce
31276         a temporary before expanding assignment into a loop.
31277
31278         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
31279         priority in full, to ensure that any expanded subepxressions of it are
31280         elaborated in the scope of the init_proc.
31281
31282         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
31283         after object declaration, skipping over code that may have been
31284         generated for validity checks.
31285
31286         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
31287         discriminants, ignore the known discriminants of its full view, if
31288         any, to check legality.
31289
31290         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
31291         component if type has unknown discriminants.
31292         (Analyze_Private_Extension_Declaration): Discriminant constraint is
31293         null if type has unknown discriminants.
31294
31295         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
31296         for end label when present.
31297
31298         * s-fileio.adb (Open): When called with a C_Stream, use given name for
31299         temporary file, rather than an empty string.
31300
31301 2004-03-15  Ed Falis  <falis@gnat.com>
31302
31303         * s-thread.adb: Removed, no longer used.
31304
31305 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31306
31307         * decl.c (target.h): Now include.
31308         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
31309         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
31310         (validate_size): For POINTER_TYPE, get smallest size permitted on
31311         machine.
31312
31313         * fe.h: Sort Einfo decls and add Set_Mechanism.
31314
31315         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
31316         (ada/decl.o): Depends on target.h.
31317
31318         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
31319         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
31320
31321 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
31322
31323         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
31324
31325         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
31326         Insert_Dereference_Action when rewriting an implicit dereference into
31327         an explicit one, this will be taken care of during expansion of the
31328         explicit dereference.
31329         (Expand_N_Slice): Same. Always do the rewriting, even for the case
31330         of non-packed slices, since the dereference action generated by
31331         expansion of the explicit dereference is needed in any case.
31332         (Expand_N_Selected_Component): When rewriting an implicit dereference,
31333         analyze and resolve the rewritten explicit dereference so it is seen
31334         by the expander.
31335         (Insert_Dereference_Action): This procedure is now called only for the
31336         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
31337         dereferences that do not come from source (including explicit
31338         dereferences resulting from rewriting implicit ones), but do not
31339         recursively insert a check for the dereference nodes contained within
31340         the check.
31341         (Insert_Dereference_Action): Clarify and correct comment.
31342
31343 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
31344
31345         PR ada/14131
31346         Move language detection to the top level.
31347         * config-lang.in: Build by default.
31348
31349 2004-03-05  Robert Dewar  <dewar@gnat.com>
31350
31351         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
31352
31353         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
31354         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
31355         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
31356         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
31357         unchecked conversion to spec to avoid warnings.
31358
31359         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
31360         to Task_ID
31361
31362         * 7stpopsp.adb: Correct casing in To_Task_ID call
31363
31364         * a-strsea.ads, a-strsea.adb: Minor reformatting
31365
31366         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
31367
31368         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
31369         Adjust Max_Msg_Length to be clearly large enough.
31370
31371         * fe.h: Define In_Same_Source_Unit
31372
31373         * osint.adb: Add pragma Warnings Off to suppress warnings
31374         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
31375         aliasing warnings.
31376
31377         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
31378
31379         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
31380
31381         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
31382
31383         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
31384
31385         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
31386
31387         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
31388         node. We now do generate them for gcc back end.
31389
31390         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
31391         warning.
31392
31393         * sinput-c.adb: Fix bad name in header.
31394         Add pragma Warnings Off to suppress aliasing warning.
31395
31396         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
31397
31398         * snames.h, snames.ads, snames.adb: Add entry for pragma
31399         No_Strict_Aliasing.
31400
31401 2004-03-05  Vincent Celier  <celier@gnat.com>
31402
31403         * prj-com.ads: Add hash table Files_Htable to check when a file name
31404         is already a source of another project.
31405
31406         * prj-nmsc.adb (Record_Source): Before recording a new source, check
31407         if its file name is not already a source of another project. Report an
31408         error if it is.
31409
31410         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
31411         source file name, call gnatpp with all the sources of the main project.
31412
31413         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
31414         of file names.
31415
31416         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
31417         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
31418         /RUNTIME_SYSTEM=, converted to --RTS=
31419         /NOTABS, converted to -notabs
31420
31421 2004-03-05  Pascal Obry  <obry@gnat.com>
31422
31423         * make.adb: Minor reformatting.
31424
31425 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
31426
31427         Part of implemention of AI-262.
31428         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
31429
31430         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
31431         procedure.
31432
31433         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
31434         when component type is a partially constrained class-wide subtype.
31435         (Constrain_Discriminated_Type): If parent type has unknown
31436         discriminants, a constraint is illegal, even if full view has
31437         discriminants.
31438         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
31439         with unknown discriminants whose full view is a discriminated record.
31440
31441         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
31442         flag, to handle properly derivations of tagged types with unknown
31443         discriminants.
31444         (Analyze_Package_Spec, Analyze_Package_Body): Install
31445         Private_With_Clauses before analyzing private part or body.
31446
31447         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
31448         Has_Discriminants can be true for a given type (documentation).
31449
31450 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
31451
31452         * s-restri.ads: Fix license (GPL->GMGPL).
31453
31454         * s-tassta.adb: Minor reformatting.
31455
31456         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31457         by calls to Exit_One_ATC_Level, since additional clean up is performed
31458         by this function.
31459
31460         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
31461         by calls to Exit_One_ATC_Level, since additional clean up is performed
31462         by this function.
31463
31464 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31465
31466         * trans.c: Reflect GCC changes to fix bootstrap problem.
31467         Add warning for suspicious aliasing unchecked conversion.
31468
31469 2004-03-05  GNAT Script  <nobody@gnat.com>
31470
31471         * Make-lang.in: Makefile automatically updated
31472
31473 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
31474
31475         * ali.adb (Read_Instantiation_Instance): Do not modify the
31476         current_file_num when reading information about instantiations, since
31477         this corrupts files in later references.
31478
31479 2004-03-02  Vincent Celier  <celier@gnat.com>
31480
31481         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
31482         before checking if it is read-only.
31483
31484         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
31485         of SRC_DIRS and eliminate duplicates.
31486
31487         * gprcmd.adb: Replace command "path" with command "path_sep" to return
31488         the path separator.
31489         (Usage): Document path_sep
31490
31491         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
31492         C++ compiler. No need for a script.
31493         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
31494         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
31495         subst.
31496
31497         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
31498         where there are Ada sources.
31499         (Set_Ada_Paths): Only add to the include path the source dirs of project
31500         with Ada sources.
31501         (Add_To_Path): Add the Display_Values of the directories, not their
31502         Values.
31503
31504         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
31505         data.
31506
31507         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
31508         is not No_Name.
31509         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
31510         Value is canonicalized.
31511         (Language_Independent_Check): Do not copy Value to Display_Value when
31512         canonicalizing Value.
31513
31514         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
31515         path to find limited with cycles.
31516         (Parse_Single_Project): Use canonical cased path to find the end of a
31517         with cycle.
31518
31519 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
31520
31521         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
31522         and not a child unit.
31523
31524         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
31525         appear in a with_clause.
31526
31527         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
31528         only happen in type_annotate mode, do not try to elaborate it.
31529
31530         * exp_util.adb (Force_Evaluation): If expression is a selected
31531         component on the left of an assignment, use a renaming rather than a
31532         temporary to remove side effects.
31533
31534         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
31535         inlined instance body, which is analyzed before the end of the
31536         enclosing scope.
31537
31538 2004-03-02  Robert Dewar  <dewar@gnat.com>
31539
31540         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
31541         sem_ch4.adb: Use new feature for substitution of keywords in VMS
31542
31543         * errout.ads, errout.adb: Implement new circuit for substitution of
31544         keywords in VMS.
31545
31546         * sem_case.adb (Analyze_Choices): Place message properly when case is
31547         a subtype reference rather than an explicit range.
31548
31549         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
31550
31551 2004-03-02  Doug Rupp  <rupp@gnat.com>
31552
31553         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
31554
31555 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
31556
31557         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
31558
31559 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31560
31561         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
31562         BLKmode bitfield.
31563
31564 2004-02-25  Robert Dewar  <dewar@gnat.com>
31565
31566         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
31567         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
31568         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
31569         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
31570         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
31571         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
31572         the defining instance of the type to avoid aliasing problems.
31573         Fix copyright header.  Fix bad comments in package header.
31574
31575         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
31576
31577 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
31578
31579         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
31580         rewritten as references when aliased through an address clause.
31581
31582         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
31583         whether call can be interpreted as an indirect call to the result of a
31584         parameterless function call returning an access subprogram.
31585
31586 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
31587
31588         Code clean up:
31589         * exp_ch7.adb (Make_Clean): Remove generation of calls to
31590         Unlock[_Entries], since this is now done by Service_Entries directly.
31591
31592         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
31593
31594         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
31595         Requeue_Call for better code readability. Change spec and update calls:
31596         PO_Service_Entries now unlock the PO on exit.
31597         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
31598         PO_Service_Entries.
31599
31600         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
31601
31602         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
31603
31604 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
31605
31606         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
31607         protected subprogram call and analyzing the result of such expanding
31608         in case when the called protected subprogram is eliminated.
31609
31610         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
31611         names.
31612
31613 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
31614
31615         * Makefile.in: Clean ups.
31616
31617 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
31618
31619         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
31620         protected operations if original subprogram is flagged as eliminated.
31621         (Expand_N_Subprogram_Body): For a protected operation, create
31622         discriminals for next operation before checking whether the operation
31623         is eliminated.
31624
31625         * exp_ch9.adb (Expand_N_Protected_Body,
31626         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
31627         for internal protected operations if the original subprogram is
31628         eliminated.
31629
31630         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
31631         declared in a single protected object.
31632
31633 2004-02-23  Vincent Celier  <celier@gnat.com>
31634
31635         * prj-attr.adb: Make attribute Builder'Executable an associative array,
31636         case insensitive if file names are case insensitive, instead of a
31637         standard associative array.
31638
31639         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
31640         them as case insensitive on platforms where the file names are case
31641         sensitive.
31642
31643         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
31644         project file has already been parsed that canonical path are compared.
31645
31646 2004-02-23  Robert Dewar  <dewar@gnat.com>
31647
31648         * sinput-c.ads: Correct bad unit title in header
31649
31650         * freeze.adb: Minor reformatting
31651
31652 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31653
31654         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
31655         nonaddressable COMPONENT_REF that is removing padding that we are
31656         taking the address of, take the address of the padded record instead
31657         if item is variable size.
31658
31659 2004-02-20  Robert Dewar  <dewar@gnat.com>
31660
31661         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
31662
31663 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
31664
31665         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
31666         itype references for the constrained designated type of a component
31667         whose base type is already frozen.
31668
31669 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
31670
31671         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
31672         avoid GCC warnings.
31673
31674 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
31675
31676         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
31677         identifier for a phantom package that rewrites the formal package
31678         declaration with a box. The Add semantic decorations for the defining
31679         identifier from the original node (that represents the formal package).
31680
31681 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
31682
31683         * Make-lang.in (ada/stamp-sdefault): Use the top level
31684         move-if-change.
31685
31686 2004-02-19  Richard Henderson  <rth@redhat.com>
31687
31688         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
31689
31690 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
31691
31692         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
31693         Scan_ALI can be used for multiple ALI files without reinitializing
31694         between calls.
31695
31696 2004-02-18  Robert Dewar  <dewar@gnat.com>
31697
31698         * debug.adb: Minor reformatting.
31699
31700 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
31701
31702         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
31703         to zero if there is an address clause.
31704
31705 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
31706
31707         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
31708
31709 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
31710
31711         * layout.adb (Layout_Component_List): Revise generation of call to
31712         discriminant-checking function to pass selections of all of the type's
31713         discriminants rather than just the variant-controlling discriminant.
31714
31715 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
31716
31717         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
31718         fail in the current setup and triggers spurious system error messages.
31719         Pretend it occurred and failed instead.
31720
31721 2004-02-18  Vincent Celier  <celier@gnat.com>
31722
31723         * bld.adb: Mark FLDFLAGS as saved
31724         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
31725         it is not the root project.  Put each directory to be
31726         extended between double quotes to prevent it to be expanded on Windows.
31727         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
31728         the project file. Set them back to their initial values if they have not
31729         been set in the project file.
31730
31731         * gprcmd.adb: (Gprdebug, Debug): New global variables
31732         (Display_Command): New procedure
31733         (Usage): Document new command "linkopts"
31734         Call Display_Command when env var GPRDEBUG has the value "TRUE"
31735         Implement new command "linkopts"
31736         Remove quotes that may be around arguments for "extend"
31737         Always call Normalize_Pathname with arguments formatted for the platform
31738
31739         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
31740         Change @echo to @$(display) in target clean to be able to clean silently
31741
31742         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
31743
31744         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
31745         canonical case.
31746
31747         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
31748         = Extending_All when current project is an extending all project.
31749
31750         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
31751         set to True only for LINK command, after Unix switch -o.
31752         (Process_Arguments): Set Output_File_Expected to True for LINK command
31753         after Unix switch -o. When Output_File_Expected is True, never add an
31754         extension to a file name.
31755
31756         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
31757         option file name, only to the --for-linker= switch.
31758         (Option_File_Name): If option file name do not end with ".opt", append
31759         "/OPTIONS".
31760
31761 2004-02-18  GNAT Script  <nobody@gnat.com>
31762
31763         * Make-lang.in: Makefile automatically updated
31764
31765 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
31766
31767         * Make-lang.in (stamp-sdefault): Do not depend on
31768         move-if-change.
31769
31770 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
31771
31772         * config-lang.in: Disable Ada by default until probe logic for
31773         a bootstrap Ada compiler can be moved to the top level configure
31774         script.
31775
31776 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
31777
31778         * decl.c (components_to_record): Don't claim that the internal fields
31779         we make to hold the variant parts are semantically addressable, because
31780         they are not.
31781
31782         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
31783         adjust the comment describing the modular type form when we can use it.
31784         (Install_PAT): Account for the Esiz renaming.
31785
31786         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
31787         sc_onstack context indication before raising the exception to which
31788         the signal is mapped. Allows better handling of later signals possibly
31789         triggered by the resumed user code if the exception is handled.
31790
31791 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
31792
31793         * 5zinit.adb: Removed, no longer used.
31794
31795 2004-02-12  Robert Dewar  <dewar@gnat.com>
31796
31797         * ali.adb: Remove separating space between parameters on R line. Makes
31798         format consistent with format used by the binder for Set_Globals call.
31799
31800         * atree.ads, atree.adb: Minor reformatting (new function header format)
31801
31802         * bindgen.adb: Add Run-Time Globals documentation section containing
31803         detailed documentation of the globals passed from the binder file to
31804         the run time.
31805
31806         * gnatls.adb: Minor reformatting
31807
31808         * init.c (__gnat_set_globals): Add note pointing to documentation in
31809         bindgen.
31810
31811         * lib-writ.ads, lib-writ.adb: Remove separating space between
31812         parameters on R line.
31813         Makes format consistent with format used by the binder for Set_Globals
31814         call.
31815
31816         * osint.ads: Add 2004 to copyright notice
31817         Minor reformatting
31818
31819         * snames.ads: Correct capitalization of FIFO_Within_Priorities
31820         Noticed during code reading, documentation issue only
31821
31822         * usage.adb: Remove junk line for obsolete C switch
31823         Noticed during code reading
31824
31825 2004-02-12  Vincent Celier  <celier@gnat.com>
31826
31827         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
31828         extend for each directory, so that multiple /** directories are
31829         extended individually.
31830         (Recursive_Process): Set the default for LANGUAGES to ada
31831
31832         * gprcmd.adb: Define new command "ignore", to do nothing.
31833         Implement new comment "path".
31834
31835         * Makefile.generic: Suppress output when SILENT is set
31836         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
31837         used, so that the correct compiler is invoked.
31838         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
31839         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
31840
31841 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
31842
31843         * Makefile.in: Clean ups and remove obsolete targets.
31844
31845 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
31846
31847         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
31848         predicate declared in exp_util.
31849
31850         * exp_util.adb: Add comments.
31851
31852         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
31853         visibility before compiling context of the subunit.
31854
31855         * sem_res.adb (Check_Parameterless_Call): If the context expects a
31856         value but the name is a procedure, do not attempt to analyze as a call,
31857         in order to obtain more telling diagnostics.
31858
31859         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
31860         'Access on parameterless function calls.
31861         (Normalize_Actuals): For a parameterless function call with missing
31862         actuals, defer diagnostic until resolution of enclosing call.
31863
31864         * sem_util.adb (Wrong_Type): If the context type is an access to
31865         subprogram and the expression is a procedure name, suggest a missing
31866         'attribute.
31867
31868 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
31869             Nathanael Nerode  <neroden@gcc.gnu.org>
31870
31871         PR ada/6637
31872         PR ada/5911
31873         Merge with libada-branch:
31874         * config-lang.in: Build libada only when ada is built.
31875
31876 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
31877
31878         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
31879         for a tagged type, verify that both formals have the same type.
31880
31881         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
31882         temporary when the formal is an in-parameter and the actual a possibly
31883         unaligned slice.
31884
31885         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
31886         when expansion is disabled, to ensure proper name capture with
31887         overloaded literals.  Condition can be of any boolean type, resolve
31888         accordingly.
31889
31890         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
31891         renaming is for a formal subprogram with a default operator name, and
31892         there is a usable operator that is visible at the point of
31893         instantiation.
31894
31895 2004-02-09  Robert Dewar  <dewar@gnat.com>
31896
31897         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
31898         rewrite to ignore errors in ali files, intended to allow tools downward
31899         compatibility with new versions of ali files.
31900
31901         * ali.ads: Add new parameter Ignore_Errors
31902
31903         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
31904         duplicating the error message giving the file with restrictions.
31905
31906         * debug.adb: Add debug flag I for gnatbind
31907
31908         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
31909         operators for the case where the operator is a defining operator.
31910
31911         * exp_ch3.adb: Minor reformatting (new function spec format).
31912
31913         * exp_ch4.adb: Add comment for previous change, and make minor
31914         adjustment to loop to always check for improper loop termination.
31915         Minor reformatting throughout (new function spec format).
31916
31917         * gnatbind.adb: Implement -di debug flag for gnatbind
31918
31919         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
31920
31921         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
31922
31923         * lib-load.adb: Fix bad assertion.
31924         Found by testing and code reading.
31925         Minor reformatting.
31926
31927         * lib-load.ads: Minor reformatting.
31928
31929         * lib-writ.adb: There is only one R line now.
31930
31931         * lib-writ.ads: Add documentation on making downward compatible changes
31932         to ali files so old tools work with new ali files.
31933         There is only one R line now.
31934         Add documentation on format incompatibilities (with special GPS note)
31935
31936         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
31937
31938         * par-load.adb: Minor reformatting
31939
31940         * sem_ch8.adb: Fix to error message from last update
31941         Minor reformatting and restructuring of code from last update
31942
31943         * par-prag.adb, snames.adb, snames.ads, snames.h,
31944         sem_prag.adb: Implement pragma Profile.
31945
31946         * stylesw.adb: Implement -gnatyN switch to turn off all style check
31947         options.
31948
31949         * usage.adb: Add line for -gnatyN switch
31950
31951         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
31952
31953 2004-02-09  Albert Lee  <lee@gnat.com>
31954
31955         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
31956
31957 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
31958
31959         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
31960         slices.
31961
31962         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
31963         is nested in an instance that is not frozen yet, to avoid
31964         order-of-elaboration problems in gigi.
31965
31966         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
31967         body the attribute is legal.
31968
31969 2004-02-09  Robert Dewar  <dewar@gnat.com>
31970
31971         * s-rident.ads: Minor comment correction
31972
31973         * targparm.adb: Remove dependence on uintp completely. There was
31974         always a bug in Make in that it called Targparm before initializing
31975         the Uint package. The old code appeared to get away with this, but
31976         the new code did not! This caused an assertion error in gnatmake.
31977
31978         * targparm.ads: Fix bad comment, restriction pragmas with parameters
31979         are indeed fully supported.
31980
31981 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
31982
31983         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
31984
31985 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
31986
31987         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
31988         with targetm.calls.promote_prototypes.
31989
31990 2004-02-04  Robert Dewar  <dewar@gnat.com>
31991
31992         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
31993         ali.ads, gprcmd.adb: Minor reformatting
31994
31995         * bindgen.adb: Output restrictions string for new style restrictions
31996         handling
31997
31998         * impunit.adb: Add s-rident.ads (System.Rident) and
31999         s-restri (System.Restrictions)
32000
32001         * lib-writ.adb: Fix bug in writing restrictions string (last few
32002         entries wrong)
32003
32004         * s-restri.ads, s-restri.adb: Change name Restrictions to
32005         Run_Time_Restrictions to avoid conflict with package name.
32006         Add circuit to read and acquire run time restrictions.
32007
32008 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
32009
32010         * restrict.ads, restrict.adb: Use the new restriction
32011         No_Task_Attributes_Package instead of the old No_Task_Attributes.
32012
32013         * sem_prag.adb: No_Task_Attributes is a synonym of
32014         No_Task_Attributes_Package.
32015
32016         * snames.ads, snames.adb: New entry for proper handling of
32017         No_Task_Attributes.
32018
32019         * s-rident.ads: Adding restriction No_Task_Attributes_Package
32020         (AI-00249) that supersedes the GNAT specific restriction
32021         No_Task_Attributes.
32022
32023 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
32024
32025         * sem_prag.adb:
32026         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
32027          body, an identifier may be wrapped in an unchecked conversion.
32028
32029 2004-02-04  Vincent Celier  <celier@gnat.com>
32030
32031         * lib-writ.ads: Comment update for the W lines
32032
32033         * bld.adb: (Expression): An empty string list is static
32034
32035         * fname-uf.adb: Minor comment update
32036
32037         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
32038
32039         * gnatbind.adb: Initialize Cumulative_Restrictions with the
32040         restrictions on the target.
32041
32042 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
32043
32044         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
32045         gen_rtx.
32046
32047 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
32048
32049         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
32050
32051 2004-02-02  Vincent Celier  <celier@gnat.com>
32052
32053         * gprcmd.adb (Check_Args): If condition is false, print the invoked
32054         comment before the usage.
32055         Gprcmd: Fail when command is not recognized.
32056         (Usage): Document command "prefix"
32057
32058         * g-md5.adb (Digest): Process last block.
32059         (Update): Do not process last block. Store remaining characters and
32060         length in Context.
32061
32062         * g-md5.ads (Update): Document that several call to update are
32063         equivalent to one call with the concatenated string.
32064         (Context): Add fields to allow new Update behaviour.
32065
32066         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
32067         defaulted to False.
32068         When May_Fail is True and no existing file can be found, return No_File.
32069
32070         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
32071         functions.
32072
32073         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
32074         spec file name instead on the W line.
32075
32076 2004-02-02  Robert Dewar  <dewar@gnat.com>
32077
32078         * ali.adb: Read and acquire info from new format restrictions lines
32079
32080         * bcheck.adb: Add circuits for checking restrictions with parameters
32081
32082         * bindgen.adb: Output dummy restrictions data
32083         To be changed later
32084
32085         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
32086         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
32087         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
32088         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
32089         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
32090
32091         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
32092         the warning message on access to possibly uninitialized variable S)
32093         Minor changes for new restrictions handling.
32094
32095         * gnatbind.adb: Minor reformatting
32096         Minor changes for new restrictions handling
32097         Move circuit for -r processing here from bcheck (cleaner)
32098
32099         * gnatcmd.adb, gnatlink.adb: Minor reformatting
32100
32101         * lib-writ.adb: Output new format restrictions lines
32102
32103         * lib-writ.ads: Document new R format lines for new restrictions
32104         handling.
32105
32106         * s-restri.ads/adb: New files
32107
32108         * Makefile.rtl: Add entry for s-restri.ads/adb
32109
32110         * par-ch3.adb: Fix bad error messages starting with upper case letter
32111         Minor reformatting
32112
32113         * restrict.adb: Major rewrite throughout for new restrictions handling
32114         Major point is to handle restrictions with parameters
32115
32116         * restrict.ads: Major changes in interface to handle restrictions with
32117         parameters. Also generally simplifies setting of restrictions.
32118
32119         * snames.ads/adb: New entry for proper handling of No_Requeue
32120
32121         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
32122         restriction counting.
32123         Other minor changes for new restrictions handling
32124
32125         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
32126         Restriction_Warnings now allows full parameter notation
32127         Major rewrite of Restrictions for new restrictions handling
32128
32129 2004-02-02  Javier Miranda  <miranda@gnat.com>
32130
32131         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
32132         syntax rule for object renaming declarations.
32133         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
32134         component definitions.
32135
32136         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
32137         components.
32138         (Array_Type_Declaration): Give support to access components. In addition
32139         it was also modified to reflect the name of the object in anonymous
32140         array types. The old code did not take into account that it is possible
32141         to have an unconstrained anonymous array with an initial value.
32142         (Check_Or_Process_Discriminants): Allow access discriminant in
32143         non-limited types.
32144         (Process_Discriminants): Allow access discriminant in non-limited types
32145         Initialize the new Access_Definition field in N_Object_Renaming_Decl
32146         node.  Change Ada0Y to Ada 0Y in comments
32147
32148         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
32149         equality operators.
32150         Change Ada0Y to Ada 0Y in comments
32151
32152         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
32153         renamings Change Ada0Y to Ada 0Y in comments
32154
32155         * sem_type.adb (Find_Unique_Type): Give support to the equality
32156         operators for universal access types
32157         Change Ada0Y to Ada 0Y in comments
32158
32159         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
32160
32161         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
32162         field.
32163         (N_Object_Renaming_Declaration): Addition of Access_Definition field
32164         Change Ada0Y to Ada 0Y in comments
32165
32166         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
32167         component definition and object renaming nodes
32168         Change Ada0Y to Ada 0Y in comments
32169
32170 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
32171
32172         * restrict.adb: Use the new restriction identifier
32173         No_Requeue_Statements instead of the old No_Requeue for defining the
32174         restricted profile.
32175
32176         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
32177         No_Requeue_Statements.
32178
32179         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
32180         that supersedes the GNAT specific restriction No_Requeue. The later is
32181         kept for backward compatibility.
32182
32183 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
32184
32185         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
32186         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
32187         pragma and fix incorrect ones.
32188
32189         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
32190         warning if the pragma is redundant.
32191
32192 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
32193
32194         * 5staprop.adb: Add missing 'constant' keywords.
32195
32196         * Makefile.in: use consistent value for SYMLIB on
32197         platforms where libaddr2line is supported.
32198
32199 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32200
32201         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
32202         annotating types.
32203
32204 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
32205
32206         * init.c (__gnat_install_handler): Setup an alternate stack for signal
32207         handlers in the environment thread. This allows proper propagation of
32208         an exception on stack overflows in this thread even when the builtin
32209         ABI stack-checking scheme is used without support for a stack reserve
32210         region.
32211
32212         * utils.c (create_field_decl): Augment the head comment about bitfield
32213         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
32214         here, because the former is not accurate enough at this point.
32215         Let finish_record_type decide instead.
32216         Don't make a bitfield if the field is to be addressable.
32217         Always set a size for the field if the record is packed, to ensure the
32218         checks for bitfield creation are triggered.
32219         (finish_record_type): During last pass over the fields, clear
32220         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
32221         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
32222         from DECL_BIT_FIELD.
32223
32224 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
32225
32226         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
32227         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
32228         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
32229
32230 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32231
32232         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
32233
32234         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
32235         (ZCX_By_Default): Likewise.
32236         (Front_End_ZCX_Support): Likewise.
32237
32238         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
32239         (Initialize_Lock): Mark Level unreferenced.
32240         (Sleep): Mark Reason unreferenced.
32241         (Timed_Sleep): Likewise.
32242         (Wakeup): Likewise.
32243         (Exit_Task): Use Result.
32244         (Check_No_Locks): Mark Self_ID unreferenced.
32245
32246         * 5gtasinf.adb (New_Sproc): Make Attr constant.
32247         (Bound_Thread_Attributes): Make Sproc constant.
32248         (New_Bound_Thread_Attributes): Likewise.
32249
32250 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32251
32252         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
32253         one-dimensional array an slice assignments, when component type is
32254         controlled.
32255
32256         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
32257         component type is controlled, and control_actions are in effect, use
32258         TSS procedure rather than generating inline code.
32259
32260         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
32261         arrays with controlled components.
32262
32263 2004-01-26  Vincent Celier  <celier@gnat.com>
32264
32265         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
32266         command line for the non VMS case.
32267
32268         * gnatlink.adb (Process_Binder_File): When building object file, if
32269         GNU linker is used, put all object paths between quotes, to prevent ld
32270         error when there are unusual characters (such as '!') in the paths.
32271
32272         * Makefile.generic: When there are sources in Ada and the main is in
32273         C/C++, invoke gnatmake with -B, instead of -z.
32274
32275         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
32276         from VMS_Conversion.
32277         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
32278         specification of argument file on the command line.
32279
32280 2004-01-26  Bernard Banner  <banner@gnat.com>
32281
32282         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
32283
32284 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
32285
32286         * snames.adb: Update copyright notice.
32287         Add info on slice assignment for controlled arrays.
32288
32289 2004-01-23  Robert Dewar  <dewar@gnat.com>
32290
32291         * exp_aggr.adb: Minor reformatting
32292
32293         * exp_ch9.adb: Minor code clean up
32294         Minor reformatting
32295         Fix bad character in comment
32296
32297         PR ada/13471
32298         * targparm.adb (Get_Target_Parameters): Give clean abort error on
32299         unexpected end of file, along with more detailed message.
32300
32301 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32302
32303         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
32304         PAT.
32305
32306         * decl.c (copy_alias_set): New function.
32307         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
32308
32309 2004-01-23  Doug Rupp  <rupp@gnat.com>
32310
32311         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
32312         lib$${file} in case subsequent character is not a separator.
32313
32314 2004-01-23  Vincent Celier  <celier@gnat.com>
32315
32316         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
32317         when the GCC version is at least 3.
32318
32319         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
32320         Remove all "Opt.", to prepare for opt split
32321
32322         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
32323         Extends_All. Set to True when the project parsed is an extending all
32324         project. Fails for importing an extending all project only when the
32325         imported project is an extending all project.
32326         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
32327         depending on the value of Extends_All returned.
32328
32329         * prj-proc.adb (Process): Check that no project shares its object
32330         directory with a project that extends it, directly or indirectly,
32331         including a virtual project.
32332         Check that no project extended by another project shares its object
32333         directory with another also extended project.
32334
32335         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
32336         Kind = N_With_Clause
32337
32338         * prj-tree.ads: Minor reformatting
32339         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
32340
32341 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
32342
32343         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
32344         applies to a type with an incomplete view, use full view in Name of
32345         clause, for consistency with uses of Get_Attribute_Definition_Clause.
32346
32347 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
32348
32349         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
32350         SCHED_RR, since other values are not supported by this policy.
32351         (Initialize): Move initialization of mutex attribute to package
32352         elaboration, to prevent early access to this variable.
32353
32354         * Makefile.in: Remove mention of Makefile.adalib, unused.
32355
32356         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
32357         1ssecsta.ads: Removed, unused.
32358
32359 2004-01-21  Javier Miranda  <miranda@gnat.com>
32360
32361         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
32362         entity if already built in the current scope.
32363
32364         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
32365         reminder in internal scopes. Required for nested limited aggregates.
32366
32367 2004-01-21  Doug Rupp  <rupp@gnat.com>
32368
32369         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
32370         VMS. Replace all occurences of libgnat- and libgnarl- with
32371         libgnat$(hyphen) and libgnarl$(hyphen).
32372         Fixed shared library build problem on VMS.
32373
32374 2004-01-21  Robert Dewar  <dewar@gnat.com>
32375
32376         * mlib-prj.adb: Minor reformatting
32377
32378 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
32379
32380         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
32381         'constant' keywords for declaration of pointers that are not modified.
32382
32383         * exp_pakd.adb: Fix English in comment.
32384
32385 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
32386
32387         PR ada/10889
32388         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
32389         copy all attributes of the parent, including the foreign language
32390         convention.
32391
32392 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
32393
32394         PR ada/10565
32395         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
32396         for 'delay until' statement.
32397
32398 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
32399
32400         * Make-lang.in: Replace $(docdir) with doc.
32401         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
32402         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
32403         to use consistent MAKEINFO rule.
32404         (ada.man, ada.srcman): Dummy entry.
32405         (ADA_INFOFILES): Define.
32406         (ada.info, ada.srcinfo): New rules.
32407
32408 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
32409
32410         * utils.c: Update copyright notice, missed in previous change.
32411
32412 2004-01-19  Vincent Celier  <celier@gnat.com>
32413
32414         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
32415         args if Bind is True. Set First_ALI, if not already done.
32416         (Build_Library): For Stand Alone Libraries, extract from one ALI file
32417         an eventual --RTS switch, for gnatbind, and all backend switches +
32418         --RTS, for linking.
32419
32420 2004-01-19  Robert Dewar  <dewar@gnat.com>
32421
32422         * sem_attr.adb, memtrack.adb: Minor reformatting
32423
32424 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
32425
32426         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
32427         that rename enumeration literals. This is properly done in sem_eval.
32428
32429         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
32430         to functions that rename enumeration literals.
32431
32432         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
32433         functions that rename enumeration literals.
32434
32435 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
32436
32437         * Make-lang.in (utils.o): Depend on target.h.
32438         * utils.c: Include target.h.
32439         (process_attributes): Use targetm.have_named_sections instead
32440         of ASM_OUTPUT_SECTION_NAME.
32441
32442 2004-01-16  Andreas Jaeger  <aj@suse.de>
32443
32444         * Makefile.in: Add $(DESTDIR).
32445
32446 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
32447
32448         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
32449         also when not defining if a Size clause applies. That information is
32450         not to be ignored.
32451
32452 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
32453
32454         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
32455         symbolic links for the shared gnat run time when needed.
32456
32457 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
32458
32459         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
32460         for writing, and terminate with an error message if not.
32461
32462 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
32463
32464         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
32465         warning on an access to subprogram in an instance, when the target
32466         type is declared in the same generic unit.
32467         (Eval_Attribute): If 'access is known to fail accessibility check,
32468         rewrite as a raise statement.
32469
32470 2004-01-15  GNAT Script  <nobody@gnat.com>
32471
32472         * Make-lang.in: Makefile automatically updated
32473
32474 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
32475
32476         * Make-lang.in (ada.srcextra): Dummy entry.
32477
32478 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
32479
32480         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
32481
32482 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
32483
32484         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
32485         components that are initialized with aggregates.
32486
32487 2004-01-13  Vincent Celier  <celier@gnat.com>
32488
32489         * gnatlink.adb (Process_Binder_File): To find directory of shared
32490         libgcc, if "gcc-lib" is not a subdirectory, look for the last
32491         subdirectory "lib" in the path of the shared libgnat or libgnarl.
32492
32493         * make.adb (Gnatmake): If GCC version is at least 3, link with
32494         -shared-libgcc, when there is at least one shared library project.
32495
32496         * opt.ads (GCC_Version): New integer constant.
32497
32498         * adaint.c (get_gcc_version): New function.
32499
32500 2004-01-13  Robert Dewar  <dewar@gnat.com>
32501
32502         * sem_dist.adb, sem_res.adb, sem_util.adb,
32503         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
32504         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
32505
32506 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
32507
32508         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
32509         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
32510         declarations.
32511
32512 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
32513
32514         * misc.c: Remove trailing spaces.
32515         Update copyright notice missed in previous change.
32516
32517         PR ada/13572
32518         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
32519         prefix/share/make
32520
32521         * Makefile.generic: Update copyright.
32522         Add license notice.
32523
32524         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
32525         of prefix/share/make.
32526
32527         * Makefile.prolog: Update copyright.
32528         Add license notice.
32529
32530 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
32531
32532         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
32533         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
32534         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
32535         instead of String.
32536
32537         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
32538         signature.
32539
32540 2004-01-12  Javier Miranda  <miranda@gnat.com>
32541
32542         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
32543         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
32544         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
32545         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
32546         Component_Definition node.
32547
32548 2004-01-12  Ed Falis  <falis@gnat.com>
32549
32550         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
32551
32552 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
32553
32554         * link.c: Change default libgnat kind to STATIC for FreeBSD.
32555
32556 2004-01-12  Bernard Banner  <banner@gnat.com>
32557
32558         * Makefile.in: map 86numaux to a-numaux for x86_64
32559
32560 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
32561
32562         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
32563         generated to rename a generic actual, go to the actual itself, the
32564         subtype is not a user-visible entity.
32565
32566         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
32567         part is a private subtype, reset the visibility of its full view, if
32568         any, to be consistent.
32569
32570         PR ada/13417
32571         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
32572         to use a generic package G as a formal package for another generic
32573         declared within G.
32574
32575 2004-01-12  Robert Dewar  <dewar@gnat.com>
32576
32577         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
32578
32579         * usage.adb: Remove mention of obsolete -gnatwb switch
32580         Noticed during code reading
32581
32582 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
32583
32584         * 1ssecsta.adb: Minor changes for -gnatwa warnings
32585
32586 2004-01-12  GNAT Script  <nobody@gnat.com>
32587
32588         * Make-lang.in: Makefile automatically updated
32589
32590 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
32591
32592         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
32593
32594 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
32595
32596         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
32597
32598 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
32599
32600         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
32601         Update comment and copyright date.
32602         * stamp-xgnatug: Delete.
32603
32604 2004-01-05  Robert Dewar  <dewar@gnat.com>
32605
32606         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
32607         be modified by the binder generated main program if the -D switch is
32608         used.
32609
32610         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
32611         imported functions (since now we expect this to be done for imported
32612         functions)
32613
32614         * 5vtaprop.adb: Add several ??? for sections requiring more comments
32615         Minor reformatting throughout
32616
32617         * 5zinit.adb: Minor reformatting
32618         Add 2004 to copyright date
32619         Minor changes to avoid -gnatwa warnings
32620         Correct some instances of using OR instead of OR ELSE (noted while
32621         doing reformatting)
32622
32623         * sprint.adb: Minor updates to avoid -gnatwa warnings
32624
32625         * s-secsta.ads, s-secsta.adb:
32626         (SS_Get_Max): New function to obtain high water mark for ss stack
32627         Default_Secondary_Stack is not a constant since it may be modified by
32628         the binder generated main program if the -D switch is used.
32629
32630         * switch-b.adb: New -Dnnn switch for binder
32631
32632         * switch-c.adb:
32633         Make -gnatg imply all warnings currently in -gnatwa
32634
32635         * vms_conv.adb: Minor reformatting
32636         Add 2004 to copyright notice
32637         Add 2004 to printed copyright notice
32638
32639         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
32640         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
32641         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
32642         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
32643         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
32644         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
32645         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
32646         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
32647         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
32648         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
32649         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
32650         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
32651         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
32652         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
32653         checks.adb, clean.adb, cstand.adb, einfo.ads,
32654         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
32655         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
32656         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
32657         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
32658         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
32659         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
32660         Minor reformatting and code clean ups.
32661         Minor changes to prevent -gnatwa warnings
32662
32663         * ali.adb: Minor reformatting and cleanup of code
32664         Acquire new SS indication of secondary stack use from ali files
32665
32666         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
32667         (since now we expect this to be done for imported functions)
32668
32669         * bindgen.adb: Generate call to modify default secondary stack size if
32670         -Dnnn switch given
32671
32672         * bindusg.adb: Add line for new -D switch
32673
32674         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
32675         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
32676         Add circuitry for both records and arrays to avoid gigi
32677         processing if the type involved has non-bit-aligned components
32678
32679         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
32680         N_String_Literal node always references an E_String_Literal_Subtype
32681         entity. This may not be true in the future.
32682         (Possible_Bit_Aligned_Component): Move processing of
32683         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
32684
32685         * exp_ch6.adb (Expand_Thread_Body): Pick up
32686         Default_Secondary_Stack_Size as variable so that we get value modified
32687         by possible -Dnnn binder parameter.
32688
32689         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
32690         (Type_May_Have_Bit_Aligned_Components): New function.
32691
32692         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
32693         (Type_May_Have_Bit_Aligned_Components): New function.
32694
32695         * fe.h: (Set_Identifier_Casing): Fix prototype.
32696         Add declaration for Sem_Elim.Eliminate_Error_Msg.
32697         Minor reformatting.
32698
32699         * freeze.adb (Freeze_Entity): Add RM reference to error message about
32700         importing constant atomic/volatile objects.
32701         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
32702         unless explicit Pure_Function pragma given, to avoid insidious bug of
32703         call to non-pure imported function getting eliminated.
32704
32705         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
32706         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
32707         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
32708         Add 2004 to printed copyright notice
32709
32710         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
32711         stack used.
32712
32713         * Makefile.rtl: Add entry for g-sestin.o
32714         g-sestin.ads: New file.
32715
32716         * mdll.adb: Minor changes to avoid -gnatwa warnings
32717
32718         * mlib-tgt.adb: Minor reformatting
32719
32720         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
32721         New switch Sec_Stack_Used (GNAT, GNATBIND)
32722         Make Default_Secondary_Stack_Size a variable instead of a constant,
32723         so that it can be modified by the new -Dnnn bind switch.
32724
32725         * rtsfind.adb (Load_Fail): Give full error message in configurable
32726         run-time mode if all_errors mode is set. This was not done in the case
32727         of a file not found, which was an oversight.
32728         Note if secondary stack unit is used by compiler.
32729
32730         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
32731         ineffective elaborate all pragmas on non-visible packages (this
32732         happened when a renamed subprogram was called). Now the elaborate all
32733         always goes on the package containing the renaming rather than the one
32734         containing the renamed subprogram.
32735
32736         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
32737         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
32738
32739         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
32740         has an Etype that references an E_String_Literal.
32741         (Eval_String_Literal): Avoid assumption that N_String_Literal node
32742         always references an E_String_Literal_Subtype entity. This may not
32743         be true in the future.
32744
32745         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
32746         pragma location.
32747
32748         * sem_res.adb (Resolve): Specialize msg for function name used in proc
32749         call.
32750
32751 2004-01-05  Ed Falis  <falis@gnat.com>
32752
32753         * g-debuti.adb: Replaced direct boolean operator with short-circuit
32754         form.
32755
32756 2004-01-05  Vincent Celier  <celier@gnat.com>
32757
32758         * bld.adb: Minor comment updates
32759         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
32760         of Item_Name).
32761
32762         * make.adb (Gnatmake): Special process for files to compile/check when
32763         -B is specified. Fail when there are only foreign mains in attribute
32764         Main of the project file and -B is not specified. Do not skip bind/link
32765         steps when -B is specified.
32766
32767         * makeusg.adb: Document new switch -B
32768
32769         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
32770
32771         * switch-m.adb: (Scan_Make_Switches): Process -B switch
32772
32773         * vms_data.ads: Add new GNAT PRETTY qualifier
32774         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
32775
32776 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
32777
32778         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
32779         case.
32780
32781         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
32782         Set_Identifier_Casing.
32783
32784         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
32785         has size that overflows.
32786
32787 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
32788
32789         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
32790         -gnatwa warning on static condition.
32791
32792 2004-01-05  Doug Rupp  <rupp@gnat.com>
32793
32794         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
32795
32796 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
32797
32798         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
32799         all attributes, including read-only attribute.
32800
32801 2004-01-05  Pascal Obry  <obry@gnat.com>
32802
32803         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
32804         library naming scheme.
32805
32806         * mlib-prj.adb (Build_Library): Generate different names for the static
32807         or dynamic version of the GNAT runtime. This is needed to support the
32808         new shared library naming scheme.
32809         (Process_Binder_File): Add detection of shared library in binder file
32810         based on the new naming scheme.
32811
32812         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
32813         scheme for the shared runtime libraries.
32814
32815         * Makefile.in:
32816         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
32817         scheme.
32818         (install-gnatlib): Do not create symlinks for shared libraries.
32819         (gnatlib-shared-default): Idem.
32820         (gnatlib-shared-dual-win32): New target. Not used for now as the
32821         auto-import feature does not support arrays/records.
32822         (gnatlib-shared-win32): Do not create copy for the shared libraries.
32823         (gnatlib-shared-vms): Fix shared runtime libraries names.
32824
32825         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
32826         dependent runtime shared library name.
32827
32828 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
32829
32830         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
32831         than the object.
32832
32833 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
32834
32835         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
32836         protected objects when allocator has a subtype indication, not a
32837         qualified expression. Note that qualified expressions may have to be
32838         checked when limited aggregates are implemented.
32839
32840         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
32841         pure, emit warning.
32842         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
32843         subprogram is imported, remove warning.
32844
32845 2004-01-05  Geert Bosch  <bosch@gnat.com>
32846
32847         * s-poosiz.adb: Update copyright notice.
32848         (Allocate): Use Task_Lock to protect against concurrent access.
32849         (Deallocate): Likewise.
32850
32851 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
32852
32853         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
32854         comment.
32855
32856 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
32857
32858         * gnat_ug.texi: Force a CVS commit by updating copyright.
32859         * gnat_ug_vxw.texi: Regenerate.
32860         * gnat_ug_wnt.texi: Regenerate.
32861         * gnat_ug_vms.texi: Regenerate.
32862         * gnat_ug_unx.texi: Regenerate.
32863
32864 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
32865
32866         * trans.c: Remove uses of "register" specifier in
32867         declarations of local variables.
32868
32869 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
32870
32871         * stamp-xgnatug: New stamp file.
32872         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
32873         (ada/doctools/xgnatug): Add $(build_exeext).
32874         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
32875         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
32876
32877 2003-12-17  Ed Falis  <falis@gnat.com>
32878
32879         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
32880         eliminate warning.
32881
32882         * a-exextr.adb: Add context clause for
32883         Ada.Exceptions.Last_Chance_Handler.
32884
32885 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
32886
32887         * cstand.adb (Create_Standard): Change the way how the declaration of
32888         the Duration type is created (making it the same way as it is for all
32889         the other standard types).
32890
32891 2003-12-17  Robert Dewar  <dewar@gnat.com>
32892
32893         * s-crtl.ads: Fix header format
32894         Change Pure to Preelaborate
32895
32896 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
32897
32898         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
32899         the expression type only if it is declared in the current unit.
32900
32901         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
32902         are universal and already analyzed, as can occur in constrained
32903         subcomponents that depend on discriminants, when one constraint is a
32904         subtype mark.
32905
32906         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
32907         type Any_Fixed is legal as the argument of a conversion, if only one
32908         fixed-point type is in context.
32909
32910 2003-12-17  GNAT Script  <nobody@gnat.com>
32911
32912         * Make-lang.in: Makefile automatically updated
32913
32914 2003-12-15  Robert Dewar  <dewar@gnat.com>
32915
32916         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
32917         sec stack size.
32918
32919 2003-12-15  Vincent Celier  <celier@gnat.com>
32920
32921         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
32922         (Gnatchop): Do not set failure status when reporting the number of
32923         warnings.
32924
32925 2003-12-15  Doug Rupp  <rupp@gnat.com>
32926
32927         * s-ctrl.ads: New file.
32928
32929         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
32930
32931         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
32932         (GNATBIND_OBJS): Add ada/s-crtl.o.
32933
32934         * Makefile.in [VMS]: Clean up ifeq rules.
32935
32936         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
32937         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
32938         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
32939         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
32940         s-tasdeb.adb: Update copyright.
32941         Import System.CRTL.
32942         Make minor modifications to use System.CRTL declared functions instead
32943         of importing locally.
32944
32945 2003-12-15  GNAT Script  <nobody@gnat.com>
32946
32947         * Make-lang.in: Makefile automatically updated
32948
32949 2003-12-11  Ed Falis  <falis@gnat.com>
32950
32951         * 5zinit.adb: Clean up.
32952
32953         * 5zintman.adb (Notify_Exception): replaced case statement with a call
32954         to __gnat_map_signal, imported from init.c to support
32955         signal -> exception mappings that depend on the vxWorks version.
32956
32957         * init.c:
32958         Created and exported __gnat_map_signal to support signal -> exception
32959         mapping that is dependent on the VxWorks version.
32960         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
32961
32962 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
32963
32964         * 5wosinte.ads: Link with -mthreads switch.
32965
32966 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
32967
32968         * init.c (__gnat_install_handler [NetBSD]): Set
32969         __gnat_handler_installed, as done on all other platforms.
32970         Remove duplicated code.
32971
32972 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
32973
32974         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
32975
32976 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
32977
32978         * sinfo.ads: Fix inconsistent example code in comment.
32979
32980 2003-12-11  Robert Dewar  <dewar@gnat.com>
32981
32982         * a-tiinau.adb: Add a couple of comments
32983
32984         * sem_ch3.adb: Minor reformatting
32985
32986         * sem_prag.adb:
32987         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
32988         Minor reformatting throughout
32989
32990 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
32991
32992         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
32993         bounds of a loop, create a separate block in order to generate proper
32994         cleanup actions to prevent memory leaks.
32995
32996         * sem_res.adb (Resolve_Call): After a call to
32997         Establish_Transient_Scope, the call may be rewritten and relocated, in
32998         which case no further processing is needed.
32999
33000         * sem_util.adb: (Wrong_Type): Refine previous fix.
33001          Fixes ACATS regressions.
33002
33003         PR ada/13353
33004         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
33005         be inlined.
33006
33007 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
33008
33009         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
33010         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
33011         obsolete files.
33012
33013         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
33014         (rts-zfp): Ditto.
33015
33016 2003-12-08  Robert Dewar  <dewar@gnat.com>
33017
33018         * 7sintman.adb: Minor reformatting
33019
33020         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
33021         standard linker options to get standard libraries linked. We now plan
33022         to provide dummy versions of these libraries to match the appropriate
33023         configurable run-time (e.g. if a library is not needed at all, provide
33024         a dummy empty library).
33025
33026         * targparm.ads: Configurable_Run_Time mode no longer affects linker
33027         options (-L parameters and standard libraries). What we plan to do is
33028         to provide dummy libraries where the libraries are not required.
33029
33030         * gnatbind.adb: Minor comment improvement
33031
33032 2003-12-08  Javier Miranda  <miranda@gnat.com>
33033
33034         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
33035         aggregate in the parent. Otherwise constants with limited aggregates
33036         are not supported. Add new formal to pass the component type (Ctype).
33037         It is required to call the corresponding IP subprogram in case of
33038         default initialized components.
33039         (Gen_Assign): In case of default-initialized component, generate a
33040         call to the IP subprogram associated with the component.
33041         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
33042         of aggregate with default initialized components.
33043         (Has_Default_Init_Comps): Improve implementation to recursively check
33044         all the present expressions.
33045
33046         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
33047         to indicate that the initialization call corresponds to a
33048         default-initialized component of an aggregate.
33049         In case of default initialized aggregate with tasks this parameter is
33050         used to generate a null string (this is just a workaround that must be
33051         improved later). In case of discriminants, this parameter is used to
33052         generate a selected component node that gives access to the discriminant
33053         value.
33054
33055         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
33056         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
33057         allocated aggregates with default-initialized components.
33058
33059         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
33060         the box notation is used in positional aggregates.
33061
33062 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
33063
33064         * lib.ads: Fix typo in comment
33065
33066 2003-12-08  Vincent Celier  <celier@gnat.com>
33067
33068         * prj.adb (Project_Empty): New component Unkept_Comments
33069         (Scan): Remove procedure; moved to Prj.Err.
33070
33071         * prj.ads (Project_Data): New Boolean component Unkept_Comments
33072         (Scan): Remove procedure; moved to Prj.Err.
33073
33074         * prj-dect.adb: Manage comments for the different declarations.
33075
33076         * prj-part.adb (With_Record): New component Node
33077         (Parse): New Boolean parameter Store_Comments, defaulted to False.
33078         Set the scanner to return ends of line and comments as tokens, if
33079         Store_Comments is True.
33080         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
33081         comments are associated with these nodes. Store the node IDs in the
33082         With_Records.
33083         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
33084         With_Records.
33085         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
33086         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
33087         current project. Call Tree.Restore afterwards. Set the various nodes
33088         for comment storage (Next_End, End_Of_Line, Previous_Line,
33089         Previous_End).
33090
33091         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
33092         defaulted to False.
33093
33094         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
33095         to False. When Truncated is True, truncate the string, never go to the
33096         next line.
33097         (Write_End_Of_Line_Comment): New procedure
33098         (Print): Process comments for nodes N_With_Clause,
33099         N_Package_Declaration, N_String_Type_Declaration,
33100         N_Attribute_Declaration, N_Typed_Variable_Declaration,
33101         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
33102         Process nodes N_Comment.
33103
33104         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
33105         without comments and there are some comments, set the flag
33106         Unkept_Comments to True.
33107         (Scan): If there are comments, set the flag Unkept_Comments to True and
33108         clear the comments.
33109         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
33110         (Next_End_Nodes: New table
33111         (Comment_Zones_Of): New function
33112         (Scan): New procedure; moved from Prj. Accumulate comments in the
33113         Comments table and set end of line comments, comments after, after end
33114         and before end.
33115         (Add_Comments): New procedure
33116         (Save, Restore, Seset_State): New procedures
33117         (There_Are_Unkept_Comments): New function
33118         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
33119         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
33120         procedures.
33121         (First_Comment_After, First_Comment_After_End): New functions
33122         (First_Comment_Before, First_Comment_Before_End): New functions
33123         (Next_Comment): New function
33124         (End_Of_Line_Comment, Follows_Empty_Line,
33125         Is_Followed_By_Empty_Line): New functions
33126         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
33127         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
33128         (Set_Next_Comment): New procedure
33129         (Default_Project_Node): Associate comment before if the node can store
33130         comments.
33131
33132         * scans.ads (Token_Type): New enumeration value Tok_Comment
33133         (Comment_Id): New global variable
33134
33135         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
33136         defaulted to False.
33137         (Scan): Store position of start of comment. If comments are tokens, set
33138         Comment_Id and set Token to Tok_Comment when scanning a comment.
33139         (Set_Comment_As_Token): New procedure
33140
33141         * sinput-p.adb: Update Copyright notice
33142         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
33143         that no longer exists.
33144
33145 2003-12-08  Javier Miranda  <miranda@gnat.com>
33146
33147         * sem_aggr.adb: Add dependence on Exp_Tss package
33148         Correct typo in comment
33149         (Resolve_Aggregate): In case of array aggregates set the estimated
33150         type of the aggregate before calling resolve. This is needed to know
33151         the name of the corresponding IP in case of limited array aggregates.
33152         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
33153         in case of default initialized array components.
33154
33155         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
33156         types. Required to give support to limited aggregates in generic
33157         formals.
33158
33159 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
33160
33161         * sem_ch3.adb (Check_Initialization): For legality purposes, an
33162         inlined body functions like an instantiation.
33163         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
33164         until bounds are analyzed, to diagnose premature use of type.
33165
33166         * sem_util.adb (Wrong_Type): Improve error message when the type of
33167         the expression is used prematurely.
33168
33169 2003-12-08  GNAT Script  <nobody@gnat.com>
33170
33171         * Make-lang.in: Makefile automatically updated
33172
33173 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
33174
33175         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
33176         they are automatically generated by Make-lang.in and cause nothing but
33177         maintenance troubles.
33178
33179 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
33180
33181         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
33182         version of this unit).
33183
33184 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
33185
33186         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
33187         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
33188         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
33189         the body of System.Interrupt_Management common to several targets.
33190         Update copyright notice when appropriate.
33191
33192         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
33193         constant.
33194
33195         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
33196         to ensure that the kernel fills in the interrupted context structure
33197         before calling a signal handler, which is necessary to be able to
33198         unwind past it. Update the copyright notice.
33199
33200 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
33201
33202         * a-elchha.ads: New file.
33203
33204         * a-elchha.adb: New default last chance handler. Contents taken from
33205         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
33206
33207         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
33208         is moved to a-elchha.adb to provide a target-independent default last
33209         chance handler.
33210
33211         * Makefile.rtl: Add a-elchha.o
33212
33213         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
33214
33215 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
33216
33217         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
33218         declared in an instance, do not inline the call if the instance is not
33219         frozen yet, to prevent order of elaboration problems.
33220
33221         * sem_prag.adb: Add comments for previous fix.
33222
33223 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
33224
33225         * g-table.adb: Use the right variable in Set_Item.
33226         Update copyright notice.
33227
33228 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
33229
33230         * Makefile.in: Remove unused rules.
33231
33232 2003-12-05  Vincent Celier  <celier@gnat.com>
33233
33234         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
33235         -nostdlib. Not needed here after all.
33236
33237 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
33238
33239         PR ada/11724
33240         * adaint.h, adaint.c, g-os_lib.ads:
33241         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
33242         on some platforms (including FreeBSD), it is a 64 bit value.
33243         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
33244
33245 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
33246
33247         * gnatvsn.ads (Library_Version): Now contain only the relevant
33248         version info.
33249         (Verbose_Library_Version): New constant.
33250
33251         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
33252         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
33253         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
33254
33255         * gnatlbr.adb: Clean up: replace Library_Version by
33256         Verbose_Library_Version.
33257
33258         * make.adb, lib-writ.adb, exp_attr.adb:
33259         Clean up: replace Library_Version by Verbose_Library_Version.
33260
33261         * 5lintman.adb: Removed.
33262
33263         * Makefile.in:
33264         Update and simplify computation of LIBRARY_VERSION.
33265         Fix computation of GSMATCH_VERSION.
33266         5lintman.adb is no longer used: replaced by 7sintman.adb.
33267
33268 2003-12-03  Robert Dewar  <dewar@gnat.com>
33269
33270         * exp_ch5.adb:
33271         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
33272         name. Modified to consider small non-bit-packed arrays as troublesome
33273         and in need of component-by-component assigment expansion.
33274
33275 2003-12-03  Vincent Celier  <celier@gnat.com>
33276
33277         * lang-specs.h: Process nostdlib as nostdinc
33278
33279         * back_end.adb: Update Copyright notice
33280         (Scan_Compiler_Arguments): Process -nostdlib directly.
33281
33282 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
33283
33284         * Makefile.in:
33285         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
33286         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
33287         included in HIE_NONE_TARGET_PAIRS.
33288
33289 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
33290
33291         * sem_attr.adb:
33292         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
33293         is legal in an instance, because legality is cheched in the template.
33294
33295         * sem_prag.adb:
33296         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
33297         appplied to an unchecked conversion of a formal parameter.
33298
33299         * sem_warn.adb:
33300         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
33301         variables.
33302
33303 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
33304
33305         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
33306         routines. The second one is new functionality to deal with backtracing
33307         through signal handlers.
33308         (unwind): Split into the two separate subroutines above.
33309         Update the documentation, and deal properly with sizeof (REG) different
33310         from sizeof (void*).
33311
33312 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
33313
33314         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
33315         so that the debugger can reliably access the value of the parameter,
33316         and therefore is able to display the exception name when an exception
33317         breakpoint is reached.
33318
33319 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
33320
33321         * fmap.adb: Fix typo in warning message.
33322
33323         * g-socket.ads, g-socket.adb: Make Free a visible instance of
33324         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
33325
33326 2003-12-01  Vincent Celier  <celier@gnat.com>
33327
33328         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
33329         ther is no Afile.
33330         (Build_Library): Get the switches only if Default_Switches is declared
33331         in package Binder.
33332
33333 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
33334
33335         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
33336         actuals that are indexed components, reanalyze actual to ensure that
33337         packed array references are properly expanded.
33338
33339         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
33340         attempted assignment to a discriminant.
33341
33342 2003-12-01  Robert Dewar  <dewar@gnat.com>
33343
33344         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
33345         reformatting.
33346
33347         * switch-c.adb: Minor reformatting of comments
33348
33349 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33350
33351         * Makefile.in: Clean ups.
33352
33353 2003-12-01  GNAT Script  <nobody@gnat.com>
33354
33355         * Make-lang.in: Makefile automatically updated
33356
33357 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
33358
33359         * 5wsystem.ads: Disable zero cost exception, not ready yet.
33360
33361 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
33362
33363         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
33364         to force serialization.
33365
33366 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
33367
33368         * g-socket.ads, g-socket.adb:
33369         Clarify documentation of function Stream. Introduce a Free procedure
33370         to release the returned Stream once it becomes unused.
33371
33372         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
33373
33374 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
33375
33376         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
33377         since NT 4 cannot handle timeout values that are too large,
33378         e.g. DWORD'Last - 1.
33379
33380 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
33381
33382         * exp_ch4.adb:
33383         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
33384         in procedure calls and whose expansion must be deferred.
33385
33386         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
33387         is in exp_ch4.
33388
33389         * sem_ch3.adb:
33390         (Build_Derived_Array_Type): Create operator for unconstrained type
33391         if ancestor is unconstrained.
33392
33393 2003-11-26  Vincent Celier  <celier@gnat.com>
33394
33395         * make.adb (Project_Object_Directory): New global variable
33396         (Change_To_Object_Directory): New procedure
33397         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
33398         of Change_Dir directly. Do not change working directory to object
33399         directory of main project after each compilation.
33400         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
33401         directly.
33402         Change to object directory of main project before binding step.
33403         (Initialize): Initialize Project_Object_Directory to No_Project
33404
33405         * mlib-prj.adb:
33406         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
33407         binding a Stand-Alone Library.
33408
33409         * output.adb: Update Copyright notice
33410         (Write_Char): Output buffer when full
33411
33412 2003-11-26  Robert Dewar  <dewar@gnat.com>
33413
33414         * sem_ch13.adb: (Check_Size): Reset size if size is too small
33415
33416         * sem_ch13.ads:
33417         (Check_Size): Fix documentation to include bit-packed array case
33418
33419         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
33420
33421         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
33422
33423         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
33424
33425 2003-11-24  Arnaud Charlet  <charlet@act-europe.fr>
33426
33427         PR ada/13142
33428         * utils.c (init_gigi_decls): Change name of built-in setjmp to
33429         __builtin_setjmp, since this is apparently needed by recent
33430         non Ada changes.
33431
33432 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
33433
33434         * adadecode.c: Only include ctype.h if not IN_GCC.
33435         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
33436
33437 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
33438
33439         * Makefile.in:
33440         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
33441         signals and interrupts.
33442
33443         * 5zintman.ads: New File.
33444
33445         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
33446         add exception signals to the set of unmasked signals.
33447
33448         * 5ztaprop.adb:
33449         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
33450         between signals and interrupts.
33451         Add to Unblocked_Signal_Mask the set of signals that are in
33452         Keep_Unmasked.
33453
33454         * 7sinmaop.adb:
33455         Adding a check to see whether the Interrupt_ID we want to unmask is in
33456         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
33457         reason is that the index type of the Keep_Unmasked array is not always
33458         Interrupt_ID; it may be a subtype of Interrupt_ID.
33459
33460 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
33461
33462         * exp_util.adb:
33463         (Remove_Side_Effects): Condition constantness of object created for a
33464          an unchecked type conversion on the constantness of the expression
33465          to ensure the correct value for 'Constrained when passing components
33466          of view-converted class-wide objects.
33467
33468 2003-11-24  Robert Dewar  <dewar@gnat.com>
33469
33470         * par-load.adb (Load): Improve handling of misspelled and missing units
33471         Removes several cases of compilation abandoned messages
33472
33473         * lib.adb: (Remove_Unit): New procedure
33474
33475         * lib.ads: (Remove_Unit): New procedure
33476
33477         * lib-load.adb: Minor reformatting
33478
33479 2003-11-24  Vincent Celier  <celier@gnat.com>
33480
33481         * make.adb:
33482         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
33483         (Marking_Label): Label to mark processed source files. Incremented for
33484         each executable.
33485         (Gnatmake): Increase Marking_Labet for each executable
33486         (Is_Marked): Compare against marking label
33487         (Mark): Mark with marking label
33488
33489 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
33490
33491         * s-thread.ads:
33492         Move the declaration of the TSD for System.Threads to System.Soft_Links.
33493         Add some comments.
33494
33495         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
33496         (rts-cert): build a single relocatable object for the run-time lib.
33497         Fix perms.
33498
33499 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
33500
33501         * Make-lang.in:
33502         Use gnatls rather than gcc to obtain the location of GNAT RTL for
33503         crosstools build.
33504
33505 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
33506
33507         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
33508         can not use it as before (that is, as a variable) when dumping it into
33509         the tree file. Add a local variable to store the result of this
33510         function and to be used as the string to be written into the tree.
33511
33512         * scn.adb (Initialize_Scanner): Add comments explaining the recent
33513         changes.
33514
33515         * sinput.adb (Source_First, Source_Last): In case of
33516         Internal_Source_File, replace returning attributes of
33517         Internal_Source_Ptr (which is wrong) with returning attributes of
33518         Internal_Source.
33519
33520 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
33521
33522         * sem_ch3.adb:
33523         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
33524         used for implicit concatenation operators.
33525         Code cleanup.
33526
33527         * sem_elab.adb:
33528         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
33529         task bodies that are in the scope of a Suppress pragma.
33530         (Check_A Call): Use the flag to prevent spurious elaboration checks.
33531
33532         * sinfo.ads, sinfo.adb:
33533         New flag No_Elaboration_Check on function/procedure calls, to properly
33534         suppress checks on calls in task bodies that are within a local suppress
33535         pragma.
33536
33537         * exp_ch4.adb:
33538         (Expand_Concatenate_Other): Use the proper integer type for the
33539         expression for the upper bound, to avoid universal_integer computations
33540         when possible.
33541
33542 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
33543
33544         * .cvsignore: Delete.
33545
33546 2003-11-21  Andreas Schwab  <schwab@suse.de>
33547
33548         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
33549
33550 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
33551
33552         * 5wsystem.ads: Enable zero cost exception.
33553
33554 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
33555
33556         * 5ztiitho.adb: Remove an unreferenced variable.
33557
33558 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
33559
33560         * adaint.c: For FreeBSD, use mkstemp.
33561
33562 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
33563
33564         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
33565
33566 2003-11-21  Robert Dewar  <dewar@gnat.com>
33567
33568         * bld.adb: Remove useless USE of gnatvsn
33569
33570         * gnatchop.adb: Minor reformatting
33571         Clean up version handling to be more consistent
33572
33573         * gnatxref.adb: Minor reformatting
33574
33575         * gprcmd.adb: Minor reformatting
33576         Fix output of copyright to be more consistent with other tools
33577
33578 2003-11-21  Vincent Celier  <celier@gnat.com>
33579
33580         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
33581
33582 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
33583
33584         * atree.adb (Initialize): Add initializations for global variables
33585         used in New_Copy_Tree.
33586
33587         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
33588         Internal_Source_File as the actual).
33589         Put the set of statements creating Any_Character before the set of
33590         statements creating Any_Array to have Any_Character fully initialized
33591         when it is used in creating Any_Array.
33592
33593         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
33594         not call Scan in case if the actual is Internal_Source_File
33595         Add 2003 to copyright note.
33596
33597         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
33598         processing Internal_Source_File.
33599
33600         * types.ads: Add the constant Internal_Source_File representing the
33601         source buffer for artificial source-code-like strings created within
33602         the compiler (the definition of Source_File_Index is changed).
33603
33604 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
33605
33606         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
33607         56system.ads: New file, FreeBSD version.
33608
33609 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
33610
33611         * Make-lang.in (ada.extraclean): Delete.
33612
33613 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
33614
33615         * gnatmem.adb: Clean up verbose output.
33616
33617         * gprcmd.adb: Change copyright to FSF.
33618
33619 2003-11-19  Vincent Celier  <celier@gnat.com>
33620
33621         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
33622         and Version (ignored).
33623
33624         * symbols.ads: (Policy): New type
33625         (Initialize): New parameter Reference, Symbol_Policy and
33626         Library_Version.
33627         Remove parameter Force.
33628         Minor reformatting.
33629
33630         * snames.ads, snames.adbadb: New standard names
33631         Library_Reference_Symbol_File and Library_Symbol_Policy
33632
33633         * mlib-prj.adb:
33634         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
33635         project.
33636
33637         * mlib-tgt.adb:
33638         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
33639
33640         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
33641
33642         * prj.adb: (Project_Empty): New component Symbol_Data
33643
33644         * prj.ads: (Policy, Symbol_Record): New types
33645         (Project_Data): New component Symbol_Data
33646
33647         * prj-attr.adb:
33648         New attributes Library_Symbol_File, Library_Symbol_Policy and
33649         Library_Reference_Symbol_File.
33650
33651         * prj-nmsc.adb:
33652         (Ada_Check): When project is a Stand-Alone library project, process
33653         attribute Library_Symbol_File, Library_Symbol_Policy and
33654         Library_Reference_Symbol_File.
33655
33656         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
33657         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
33658         5sml-tgt.adb (Build_Dynamic_Library): New parameter
33659         Symbol_Data (ignored).
33660
33661         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
33662         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
33663         functions Option_File_Name and Version_String. Set new options of
33664         gnatsym related to symbol file, symbol policy and reference symbol
33665         file.
33666
33667         * 5vsymbol.adb:
33668         Extensive modifications to take into account the reference symbol file,
33669         the symbol policy, the library version and to put in the symbol file the
33670         minor and major IDs.
33671
33672         * bld.adb (Process_Declarative_Items): Put second argument of
33673         gprcmd to_absolute between single quotes, to avoid problems with
33674         Windows.
33675
33676         * bld-io.adb: Update Copyright notice.
33677         (Flush): Remove last character of a line, if it is a back slash, to
33678         avoid make problems.
33679
33680         * gnatsym.adb:
33681         Implement new scheme with reference symbol file and symbol policy.
33682
33683         * g-os_lib.ads: (Is_Directory): Clarify comment
33684
33685 2003-11-19  Robert Dewar  <dewar@gnat.com>
33686
33687         * atree.adb: Move New_Copy_Tree global variables to head of package
33688
33689         * errout.adb: Minor reformatting
33690
33691 2003-11-19  Javier Miranda  <miranda@gnat.com>
33692
33693         * sem_ch4.adb: (Diagnose_Call): Improve error message.
33694         Add reference to Ada0Y (AI-50217)
33695
33696         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
33697         sem_util.adb: Add reference to AI-50217
33698
33699         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
33700
33701         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
33702
33703         * sem_aggr.adb: Complete documentation of AI-287 changes
33704
33705         * par-ch4.adb: Document previous changes.
33706
33707         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
33708         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
33709         Ada0Y (AI-50217)
33710
33711         * exp_aggr.adb: Add references to AI-287 in previous changes
33712
33713 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
33714
33715         * exp_ch6.adb:
33716         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
33717         in the rewriting is the result of an inlined call.
33718
33719         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
33720         parameter is a type conversion, use original node to construct the
33721         post-call assignment, because expression may have been rewritten, e.g.
33722         if it is a packed array.
33723
33724         * sem_attr.adb:
33725         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
33726         body, just as it is in an instance.
33727         Categorization routines
33728
33729         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
33730         Instantiate_Object): Set proper sloc reference for message on missing
33731         actual.
33732
33733 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
33734
33735         * Makefile.in: Add FreeBSD libgnat pairs.
33736
33737         * usage.adb: Fix typo in usage message.
33738
33739 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
33740
33741         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
33742         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
33743         pragma Thread_Body.
33744         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
33745
33746         * s-thread.adb: This file is now a dummy implementation of
33747         System.Thread.
33748
33749 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
33750
33751         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
33752
33753 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
33754
33755         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33756         instanciation references in the parent type description.
33757
33758 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33759
33760         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
33761
33762         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
33763         TYPE_PRECISION directly from esize.
33764
33765 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
33766
33767         * cstreams.c:
33768         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
33769
33770         * init.c: Initialization routines for FreeBSD
33771
33772         * link.c: Link info for FreeBSD
33773
33774         * sysdep.c: Add the case of FreeBSD
33775
33776 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
33777
33778         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
33779         already called in System.Threads.
33780
33781         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
33782         environment task, as it has been moved to System.Threads.Initialization.
33783
33784 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
33785
33786         * adaint.c (__gnatlib_install_locks): Only reference
33787         __gnat_install_locks on VMS, since other platforms can avoid using
33788         --enable-threads=gnat
33789
33790 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
33791
33792         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
33793
33794         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
33795         TYPE_PACKED_ARRAY_TYPE_P.
33796         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
33797
33798         Part of PR ada/12806
33799         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
33800         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
33801
33802 2003-11-17  Vincent Celier  <celier@gnat.com>
33803
33804         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
33805         to False.
33806         Do not set exit status to Failure when Warning is True.
33807         (Gnatchop): Make errors "no compilation units found" and
33808         "no source files written" warnings only.
33809
33810         * make.adb (Gnatmake): When using a project file, set
33811         Look_In_Primary_Dir to False.
33812         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
33813         and Local_Configuration_Pragmas in the project where they are declared
33814         not an extending project which might have inherited them.
33815
33816         * osint.adb (Locate_File): If Name is already an absolute path, do not
33817         look for a directory.
33818
33819         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
33820         -gnats (Check_Syntax) is used, issue only a warning, not an error.
33821
33822         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
33823         in objects of type Variable_Value.
33824
33825         * prj.ads: (Variable_Value): New component Project
33826
33827         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
33828         is in a project extended by Project.
33829
33830         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
33831         Project of Variable_Values to this new parameter value.
33832         (Expression): Set component Project of Variable_Values.
33833         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
33834         Set the component Project in array elements.
33835
33836 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
33837
33838         * errout.adb: (Initialize): Add initialization for error nodes.
33839
33840         * sem_ch12.adb (Initialize): Add missing initializations for
33841         Exchanged_Views and Hidden_Entities.
33842
33843 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
33844
33845         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
33846         already instantiated tree for use in subsequent inlining.
33847         (Analyze_Associations, Instantiate_Formal_Subprogram,
33848         Instantiate_Object): improve error message for mismatch in
33849         instantiations.
33850
33851         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
33852         instantiations of subprograms declared in instances.
33853
33854 2003-11-17  Javier Miranda  <miranda@gnat.com>
33855
33856         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
33857         executed only under the Extensions_Allowed flag.
33858
33859 2003-11-17  Robert Dewar  <dewar@gnat.com>
33860
33861         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
33862         zeroes suppressed.
33863         (Address_Image): Fix bug of returning 0x instead of 0x0
33864         Minor reformatting (function specs).
33865
33866         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
33867         (missed case of 33-63)
33868
33869         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
33870
33871         * s-thread.adb: Add comments for pragma Restriction
33872
33873         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
33874         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
33875
33876 2003-11-17  Ed Falis  <falis@gnat.com>
33877
33878         * s-thread.adb: Added No_Tasking restriction for this implementation.
33879
33880 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
33881
33882         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
33883         instanciation references in the parent type description.
33884
33885 2003-11-17  GNAT Script  <nobody@gnat.com>
33886
33887         * Make-lang.in: Makefile automatically updated
33888
33889 2003-11-16  Jason Merrill  <jason@redhat.com>
33890
33891         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
33892         and TAGS files that include them for each front end.
33893
33894 2003-11-14  Andreas Jaeger  <aj@suse.de>
33895
33896         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
33897         is the canonical version.
33898         * misc.c (gnat_handle_option): Likewise.
33899
33900         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
33901
33902         * 5nsystem.ads: New file for x86_64-linux-gnu.
33903
33904 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
33905
33906         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
33907
33908         * comperr.adb: Fix logic in previous change.
33909
33910 2003-11-13  Vincent Celier  <celier@gnat.com>
33911
33912         * 5bml-tgt.adb (Build_Dynamic_Library): Use
33913         Osint.Include_Dir_Default_Prefix instead of
33914         Sdefault.Include_Dir_Default_Name.
33915
33916         * gnatlbr.adb: Update Copyright notice
33917         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
33918         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
33919         instead of Sdefault.Object_Dir_Default_Name
33920
33921         * gnatlink.adb:
33922         (Process_Binder_File): Never suppress the option following -Xlinker
33923
33924         * mdll-utl.adb:
33925         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
33926         Sdefault.Object_Dir_Default_Name.
33927
33928         * osint.ads, osint.adb:
33929         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
33930         Minor reformatting.
33931
33932         * vms_conv.ads: Minor reformating
33933         Remove GNAT STANDARD and GNAT PSTA
33934
33935         * vms_conv.adb:
33936         Allow GNAT MAKE to have several files on the command line.
33937         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
33938         Sdefault.Object_Dir_Default_Name.
33939         Minor Reformating
33940         Remove data for GNAT STANDARD
33941
33942         * vms_data.ads:
33943         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
33944         Remove data for GNAT STANDARD
33945         Remove options and documentation for -gnatwb/-gnatwB: these warning
33946         options no longer exist.
33947
33948 2003-11-13  Ed Falis  <falis@gnat.com>
33949
33950         * 5zthrini.adb: (Init_RTS): Made visible
33951
33952         * 5zthrini.adb:
33953         (Register): Removed unnecessary call to taskVarGet that checked whether
33954          an ATSD was already set as a task var for the argument thread.
33955
33956         * s-thread.adb:
33957         Updated comment to reflect that this is a VxWorks version
33958         Added context clause for System.Threads.Initialization
33959         Added call to System.Threads.Initialization.Init_RTS
33960
33961 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
33962
33963         * 5zthrini.adb:
33964         (Init_RTS): New procedure, for the initialization of the run-time lib.
33965
33966         * s-thread.adb:
33967         Remove dependancy on System.Init, so that this file can be used in the
33968         AE653 sequential run-time lib.
33969
33970 2003-11-13  Robert Dewar  <dewar@gnat.com>
33971
33972         * bindgen.adb: Minor reformatting
33973
33974 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
33975
33976         * checks.adb:
33977         (Apply_Discriminant_Check): Do no apply check if target type is derived
33978         from source type with no applicable constraint.
33979
33980         * lib-writ.adb:
33981         (Ensure_System_Dependency): Do not apply the style checks that may have
33982         been specified for the main unit.
33983
33984         * sem_ch8.adb:
33985         (Find_Selected_Component): Further improvement in error message, with
33986         RM reference.
33987
33988         * sem_res.adb:
33989         (Resolve): Handle properly the case of an illegal overloaded protected
33990         procedure.
33991
33992 2003-11-13  Javier Miranda  <miranda@gnat.com>
33993
33994         * exp_aggr.adb:
33995         (Has_Default_Init_Comps): New function to check the presence of
33996         default initialization in an aggregate.
33997         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
33998         extension aggregate of a limited record. In addition, a new formal
33999         was added to do not initialize the record controller (if any) during
34000         this recursive expansion of ancestors.
34001         (Init_Controller): Add support for limited record components.
34002         (Expand_Record_Aggregate): In case of default initialized components
34003         convert the aggregate into a set of assignments.
34004
34005         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
34006         describing the new syntax.
34007         Nothing else needed to be done because this subprogram delegates part of
34008         its work to P_Precord_Or_Array_Component_Association.
34009         (P_Record_Or_Array_Component_Association): Give support to the new
34010         syntax for default initialization of components.
34011
34012         * sem_aggr.adb:
34013         (Resolve_Aggregate): Relax the strictness of the frontend in case of
34014         limited aggregates.
34015         (Resolve_Record_Aggregate): Give support to default initialized
34016         components.
34017         (Get_Value): In case of default initialized components, duplicate
34018         the corresponding default expression (from the record type
34019         declaration). In case of default initialization in the *others*
34020         choice, do not check that all components have the same type.
34021         (Resolve_Extension_Aggregate): Give support to limited extension
34022         aggregates.
34023
34024         * sem_ch3.adb:
34025         (Check_Initialization): Relax the strictness of the front-end in case
34026         of aggregate and extension aggregates. This test is now done in
34027         Get_Value in a per-component manner.
34028
34029         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
34030         expression corresponds to a limited aggregate. This test is now done
34031         in Get_Value.
34032
34033         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
34034         Box_Present flag.
34035
34036         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
34037         present in an N_Component_Association node
34038
34039 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
34040
34041         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
34042         type-conformant entry only if they are homographs.
34043
34044 2003-11-13  GNAT Script  <nobody@gnat.com>
34045
34046         * Make-lang.in: Makefile automatically updated
34047
34048 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34049
34050         * adadecode.c: Use <> form of include for ctype.h.
34051         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
34052
34053 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34054
34055         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
34056         Works around PR middle-end/6552.
34057
34058 2003-11-10  Ed Falis  <falis@gnat.com>
34059
34060         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
34061
34062         * 5zinit.adb: (Install_Handler): Moved back to spec
34063         (Install_Signal_Handlers): Deleted
34064
34065         * 5zthrini.adb: Added context clause for System.Storage_Elements
34066         (Register): Only handles creation of taskVar; initialization moved to
34067         Thread_Body_Enter.
34068         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
34069         Added declaration of environment task secondary stack and
34070         initialization.
34071
34072         * s-thread.adb: Implement bodies for thread body processing
34073
34074         * s-thread.ads:
34075         Added comment identifying supported targets for pragma Thread_Body.
34076
34077 2003-11-10  Pascal Obry  <obry@gnat.com>
34078
34079         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
34080         GNAT_MAX_PATH_LEN.
34081
34082         * s-fileio.adb:
34083         (Open): Properly check for string length before copying into the buffer.
34084         Raises Name_Error if buffer is too small. Note that this was a potential
34085         buffer overflow.
34086
34087 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
34088
34089         * bindgen.adb, comperr.adb: Code clean ups.
34090         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
34091
34092 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
34093
34094         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
34095
34096 2003-11-10  Vincent Celier  <celier@gnat.com>
34097
34098         * gprcmd.adb:
34099         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
34100         installation.
34101
34102         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
34103
34104         * prj.adb: (Project_Empty): Add new boolean component Virtual
34105
34106         * prj.ads: (Virtual_Prefix): New constant string
34107         (Project_Data): New boolean component Virtual
34108
34109         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
34110         a library project is extended by a virtual extending project.
34111
34112         * prj-part.adb:
34113         Modifications throughout to implement extending-all project, including:
34114         (Virtual_Hash, Processed_Hash): New hash tables
34115         (Create_Virtual_Extending_Project): New procedure
34116         (Look_For_Virtual_Projects_For): New procedure
34117
34118         * prj-proc.adb:
34119         (Process): After checking the projects, if main project is an
34120         extending-all project, set the object directory of all virtual extending
34121         project to the object directory of the main project.
34122         Adjust error message when a virtual extending project has the same
34123         object directory as an project being extended.
34124         (Recursive_Process): If name starts with the virtual prefix, set Virtual
34125         to True in the project data.
34126
34127         * prj-tree.adb:
34128         (Default_Project_Node): Add new boolean component Extending_All
34129         (Is_Extending_All): New function
34130         (Set_Is_Extending_All): New procedure
34131
34132         * prj-tree.ads: (Is_Extending_All): New function
34133         (Set_Is_Extending_All): New procedure
34134         (Project_Node_Record): New boolean component Extending_All
34135
34136         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
34137
34138         * vms_data.ads:
34139         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
34140
34141         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
34142         "gprcmd prefix" to define it.
34143
34144 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
34145
34146         * einfo.ads: Fix a typo and remove an extraneous word in comments.
34147
34148         * lib-load.adb:
34149         (Create_Dummy_Package_Unit): Set the scope of the entity for the
34150         created dummy package to Standard_Standard, not to itself, to
34151         defend other parts of the front-end against encoutering a cycle in
34152         the scope chain.
34153
34154         * sem_ch10.adb:
34155         (Analyze_With_Clause): When setting the entities for the successive
34156         N_Expanded_Names that constitute the name of a child unit, do not
34157         attempt to go further than Standard_Standard in the chain of scopes.
34158         This case arises from the placeholder units created by
34159         Create_Dummy_Package_Unit in the case of a with_clause for a
34160         nonexistent child unit.
34161
34162 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
34163
34164         * exp_ch6.adb:
34165         (Expand_Thread_Body): Place subprogram on scope stack, so that new
34166         declarations are given the proper scope.
34167
34168         * sem_ch13.adb:
34169         (Check_Expr_Constants): Reject an expression that contains a constant
34170         created during expansion, and that appears after the object to which
34171         the address clause applies.
34172
34173         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
34174         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
34175         that uses 'Range of a function call with controlled components, so
34176         that the function result can be finalized before starting the loop.
34177
34178         * sem_ch8.adb:
34179         (Find_Selected_Component): Improve error message when prefix is
34180         an implicit dereference of an incomplete type.
34181
34182 2003-11-10  Robert Dewar  <dewar@gnat.com>
34183
34184         * opt.ads: New Print_Standard flag for -gnatS switch
34185
34186         * sem_ch13.adb: Remove some additional checks for unaligned arrays
34187
34188         * cstand.adb (Create_Standard): Print out package standard if -gnatS
34189         switch set
34190
34191         * debug.adb: Update doc for -gnatds to discuss relationship with new
34192         -gnatS flag
34193
34194         * sinfo.adb: Add new field Entity_Or_Associated_Node
34195
34196         * sinfo.ads: Add new field Entity_Or_Associated_Node
34197         Update documentation for Associated_Node and Entity fields to clarify
34198         relationship and usage.
34199
34200         * sprint.adb:
34201         (Write_Id): Properly process Associated_Node field in generic template
34202
34203         * switch-c.adb:
34204         Recognize new -gnatS switch for printing package Standard
34205         This replaces gnatpsta
34206
34207         * usage.adb:
34208         Add line for  new -gnatS switch for printing package Standard
34209         This replaces gnatpsta
34210
34211 2003-11-10  Andreas Jaeger  <aj@suse.de>
34212
34213         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
34214         integer.
34215
34216 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34217
34218         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
34219         by gnat1.
34220
34221 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34222
34223         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
34224         no longer needed.
34225
34226         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
34227
34228         * sysdep.c: Add handling of cygwin.
34229
34230 2003-11-10  GNAT Script  <nobody@gnat.com>
34231
34232         * Make-lang.in: Makefile automatically updated
34233
34234 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
34235
34236         PR 12950
34237         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
34238         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
34239         Replace GNAT_ROOT by GCC_ROOT.
34240
34241         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
34242
34243 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
34244
34245         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
34246         and update for changed meaning of GET_MODE_BITSIZE.
34247
34248 2003-11-04  Doug Rupp  <rupp@gnat.com>
34249
34250         * sysdep.c: Problem discovered during IA64 VMS port.
34251         [VMS] #include <unixio.h> to get proper prototypes.
34252
34253         * adaint.c:
34254         Issues discovered/problems fixed during IA64 VMS port.
34255         [VMS] #define _POSIX_EXIT for proper semantics.
34256         [VMS] #include <unixio.h> for proper prototypes.
34257         [VMS] (fork): #define IA64 version.
34258         (__gnat_os_exit): Remove unnecessary VMS specific code.
34259
34260 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34261
34262         Part of PR ada/12806
34263         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
34264         tree, not integer.
34265
34266         * decl.c:
34267         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
34268         not integer.
34269
34270         * targtyps.c, decl.c, misc.c,
34271         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
34272         routines to work around change in FP sizing semantics in GCC.
34273
34274         * utils.c:
34275         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
34276
34277         * gigi.h: (enumerate_modes): New function.
34278
34279         * Make-lang.in: (ada/misc.o): Add real.h.
34280
34281         * misc.c: (enumerate_modes): New function.
34282
34283 2003-11-04  Robert Dewar  <dewar@gnat.com>
34284
34285         * 3vtrasym.adb: Minor reformatting
34286         Use terminology encoded/decoded name, rather than C++ specific notion
34287         of mangling (this is the terminology used throughout GNAT).
34288
34289         * einfo.h: Regenerated
34290
34291         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
34292
34293         * exp_ch6.adb:
34294         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
34295
34296         * par-prag.adb: Add dummy entry for Thread_Body pragma
34297
34298         * rtsfind.ads:
34299         Add entries for System.Threads entities for thread body processing
34300
34301         * sem_attr.adb:
34302         (Analyze_Pragma, Access attributes): Check these are not applied to a
34303         thread body, since this is not permitted
34304
34305         * sem_prag.adb: Add processing for Thread_Body pragma.
34306         Minor comment fix.
34307
34308         * sem_res.adb:
34309         (Resolve_Call): Check for incorrect attempt to call a thread body
34310          procedure with a direct call.
34311
34312         * snames.ads, snames.adb: Add entry for Thread_Body pragma
34313         Add names associated with thread body expansion
34314
34315         * snames.h: Add entry for Thread_Body pragma
34316
34317         * s-thread.adb: Add entries for thread body processing
34318         These are dummy bodies so far
34319
34320         * s-thread.ads: Add documentation on thread body handling.
34321         Add entries for thread body processing.
34322
34323 2003-11-04  Javier Miranda  <miranda@gnat.com>
34324
34325         * sem_ch10.adb:
34326         (Build_Limited_Views): Return after posting an error in case of limited
34327         with_clause on subprograms, generics, instances or generic renamings
34328         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
34329         on subprograms, generics, instances or generic renamings
34330
34331 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
34332
34333         * raise.c (setup_to_install): Correct mistake in last revision; two
34334         arguments out of order.
34335
34336         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
34337         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
34338         notice, missed in previous change.
34339         Remove trailing blanks and other style errors introduced in previous
34340         change.
34341
34342 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
34343
34344         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
34345         rid of the wrapper for a LJM type, ensuring we don't do that if the
34346         field is addressable.  This avoids potential low level type view
34347         mismatches later on, for instance in a by-reference argument passing
34348         process.
34349
34350 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34351
34352         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
34353         aligned at byte boundary.
34354
34355 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
34356
34357         * decl.c (components_to_record): Do not delete the empty variants from
34358         the end of the union type.
34359
34360 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
34361
34362         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
34363         operation for a derived type, an explicit declaration may use a local
34364         subtype of Boolean.
34365
34366 2003-11-04  Vincent Celier  <celier@gnat.com>
34367
34368         * make.adb (Gnatmake): Allow main sources on the command line with a
34369         library project when it is only for compilation (no binding or
34370         linking).
34371
34372 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34373
34374         * Makefile.in: Remove many duplicate variables.
34375
34376 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
34377
34378         * Make-lang.in (dvi): Move targets to $(docobjdir).
34379         (gnat_ug_vms.dvi): Simplify rule and adjust target.
34380         (gnat_ug_wnt.dvi): Likewise.
34381         (gnat_ug_unx.dvi): Likewise.
34382         (gnat_ug_vxw.dvi): Likewise.
34383         (gnat_rm.dvi): Likewise.
34384         (gnat-style.dvi): Likewise.
34385
34386 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34387
34388         * gigi.h: Missed commit from update for C90.
34389
34390 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
34391
34392         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
34393
34394 2003-10-31  Andreas Schwab  <schwab@suse.de>
34395
34396         * raise.c (get_action_description_for): Fix typo in last change.
34397
34398 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
34399
34400         PR ada/12761
34401         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
34402         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
34403
34404 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
34405
34406         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
34407         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
34408         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
34409         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
34410         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
34411
34412 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
34413
34414         * 3vtrasym.adb:
34415         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
34416         numbers when symbol name is too long.
34417
34418 2003-10-30  Ed Falis  <falis@gnat.com>
34419
34420         * g-signal.ads, g-signal.adb: New files
34421
34422         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
34423
34424         * Makefile.rtl: Introduce GNAT.Signals
34425
34426 2003-10-30  Robert Dewar  <dewar@gnat.com>
34427
34428         * freeze.adb: Minor reformatting
34429
34430         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
34431
34432         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
34433         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
34434         New handling of Id_Check parameter to improve recognition of keywords
34435         used as identifiers.
34436         Update copyright notice to include 2003
34437
34438 2003-10-29  Robert Dewar  <dewar@gnat.com>
34439
34440         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
34441         sem_ch10.adb: Minor reformatting
34442
34443         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
34444         (Expand_Assign_Record): Test right hand side for bit unaligned as well
34445
34446 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
34447
34448         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
34449         Support for TBK$SYMBOLIZE-based symbolic traceback.
34450
34451 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
34452
34453         * exp_disp.adb:
34454         Revert previous change, that did not work well when pragma No_Run_Time
34455         was used in conjunction with a run-time other than ZFP.
34456
34457 2003-10-29  Vincent Celier  <celier@gnat.com>
34458
34459         * make.adb:
34460         (Gnatmake): When there are no Ada mains in attribute Main, disable the
34461          bind and link steps only is switch -z is not used.
34462
34463 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
34464
34465         * Makefile.generic: Remove duplicated setting of CC.
34466
34467         * Makefile.prolog: Set CC to gcc by default, to override make's
34468         default (cc).
34469
34470         * einfo.h: Regenerated.
34471
34472 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
34473
34474         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
34475         current body, after compiling subunit.
34476
34477         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
34478         when in deleted code, because gigi needs properly ordered freeze
34479         actions to annotate types.
34480
34481         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
34482         prevent the premature freezing of record type that contains
34483         subcomponents with a private type that does not yet have a completion.
34484
34485 2003-10-29  Javier Miranda  <miranda@gnat.com>
34486
34487         * sem_ch12.adb:
34488         (Analyze_Package_Instantiation): Check that instances can not be used in
34489         limited with_clauses.
34490
34491         * sem_ch8.adb:
34492         (Analyze_Package_Renaming): Check that limited withed packages cannot
34493         be renamed. Improve text on error messages related to limited
34494         with_clauses.
34495
34496         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
34497
34498         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
34499         Update copyright notice.
34500
34501         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
34502         (Install_Limited_Context_Clauses): New subprogram that isolates all the
34503         checks required for limited context_clauses and installs the limited
34504         view.
34505         (Install_Limited_Withed_Unit): Complete its documentation.
34506         (Analyze_Context): Check that limited with_clauses are only allowed in
34507         package specs.
34508         (Install_Context): Call Install_Limited_Context_Clauses after the
34509         parents have been installed.
34510         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
34511         package as 'From_With_Type'; this mark indicates that the limited view
34512         is installed. Used to check bad usages of limited with_clauses.
34513         (Build_Limited_Views): Do not add shadow entities to the scope's list
34514         of entities. Do not add real entities to the Non_Limited_Views chain.
34515         Improve error notification.
34516         (Remove_Context_Clauses): Remove context clauses in two phases:
34517         limited views first and regular views later (to maintain the
34518         stack model).
34519         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
34520         its visible entities.
34521
34522 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
34523
34524         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
34525         with any type that Is_Fixed_Point_Type.
34526
34527         * sinfo.ads: Fix documentation for Associated_Node attribute.
34528
34529 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
34530
34531         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
34532         both '-gnatc' and '-gnatt' are specified.
34533
34534         * atree.adb (Initialize): Add initialization for Node_Count (set to
34535         zero).
34536
34537 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34538
34539         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
34540         do not consider as Pure.
34541
34542         Part of implementation of function-at-a-time:
34543
34544         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
34545         (tree_transform): Add new argument to build_component_ref.
34546         (tree_transform, case N_Assignment_Statement): Make and return an
34547         EXPR_STMT.
34548         (tree_transform): If result IS_STMT, set flags and return it.
34549         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34550
34551         * utils2.c (build_simple_component_ref, build_component_ref): Add new
34552         arg, NO_FOLD_P.
34553         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
34554         (build_allocator): Likewise.
34555
34556         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
34557         Add new arg to build_component_ref.
34558         (maybe_unconstrained_array, unchecked_convert): Likewise.
34559
34560         * ada-tree.def (EXPR_STMT): New code.
34561
34562         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
34563
34564         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
34565         build_component_ref calls.
34566
34567         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
34568
34569         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
34570         (build_component_ref): Add new argument, NO_FOLD_P.
34571
34572 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
34573
34574         * Makefile.generic: Add missing substitution on object_deps handling.
34575
34576         PR ada/5909
34577         * Make-lang.in (check-ada): Enable ACATS test suite.
34578
34579 2003-10-27  Robert Dewar  <dewar@gnat.com>
34580
34581         * exp_ch3.adb:
34582         (Freeze_Array_Type): We do not need an initialization routine for types
34583         derived from String or Wide_String. They should be treated the same
34584         as String and Wide_String themselves. This caused problems with the
34585         use of Initialize_Scalars.
34586
34587         * exp_ch5.adb:
34588         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
34589         composites. This allows use of component clauses that are not byte
34590         aligned.
34591
34592         * sem_prag.adb:
34593         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
34594         is an attempt to pack an array of atomic objects.
34595
34596         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
34597
34598 2003-10-27  Pascal Obry  <obry@gnat.com>
34599
34600         * g-dirope.adb:
34601         (Basename): Check for drive letters in a pathname only on DOS based OS.
34602
34603 2003-10-27  Vincent Celier  <celier@gnat.com>
34604
34605         * make.adb:
34606         (Gnatmake): When unable to change dir to the object dir, display the
34607         content of the parent dir of the obj dir, to try to understand why this
34608         happens.
34609
34610 2003-10-27  GNAT Script  <nobody@gnat.com>
34611
34612         * Make-lang.in: Makefile automatically updated
34613
34614 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
34615
34616         * sem_ch12.adb:
34617         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
34618         should not be done in Save/Restore_Scope_Stack, because it is performed
34619         locally.
34620
34621         * sem_ch8.adb:
34622         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34623         whether use clauses should be removed/restored.
34624
34625         * sem_ch8.ads:
34626         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
34627         whether use clauses should be removed/restored.
34628
34629 2003-10-26  Andreas Jaeger  <aj@suse.de>
34630
34631         * Makefile.in: Remove duplicated lines.
34632
34633 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34634
34635         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
34636         minimize the differences with ACT tree.
34637
34638         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
34639         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
34640         Gnatvsn.Gnat_Static_Version_String to reduce differences between
34641         ACT and FSF trees.
34642
34643 2003-10-24  Pascal Obry  <obry@gnat.com>
34644
34645         PR ada/12014
34646         * adadecode.c (ostrcpy): New function.
34647         (__gnat_decode): Use ostrcpy of strcpy.
34648         (has_prefix): Set first parameter a const.
34649         (has_suffix): Set first parameter a const.
34650         Update copyright notice. Fix source name in header.
34651         Removes a trailing space.
34652
34653 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
34654
34655         * exp_disp.adb:
34656         Remove the test against being in No_Run_Time_Mode before generating a
34657         call to Register_Tag. It is redundant with the test against the
34658         availability of the function Register_Tag.
34659
34660 2003-10-24  Vincent Celier  <celier@gnat.com>
34661
34662         * g-catiio.adb: (Month_Name): Correct spelling of February
34663
34664         * make.adb: (Mains): New package
34665         (Initialize): Call Mains.Delete
34666         (Gnatmake): Check that each main on the command line is a source of a
34667         project file and, if there are several mains, each of them is a source
34668         of the same project file.
34669         (Gnatmake): When a foreign language is specified in attribute Languages,
34670         no main is specified on the command line and attribute Mains is not
34671         empty, only build the Ada main. If there is no Ada main, just compile
34672         the Ada sources and their closure.
34673         (Gnatmake): If a main is specified on the command line with directory
34674         information, check that the source exists and, if it does, that the path
34675         is the actual path of a source of a project.
34676
34677         * prj-env.adb:
34678         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
34679         Full_Path is True, return the full path instead of the simple file name.
34680         (Project_Of): New function
34681
34682         * prj-env.ads:
34683         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
34684         defaulted to False.
34685         (Project_Of): New function
34686
34687 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34688
34689         * Makefile.generic:
34690         Ensure objects of main project are always checked and rebuilt if needed.
34691         Set CC to gcc by default.
34692         Prepare new handling of link by creating a global archive (not activated
34693         yet).
34694
34695         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34696         stringt.h: Update copyright notice. Remove trailing blanks.
34697         Fix source name in header.
34698
34699 2003-10-24  Robert Dewar  <dewar@gnat.com>
34700
34701         * sem_ch12.adb: Minor reformatting
34702
34703         * sem_ch3.adb:
34704         Minor reformatting (including new function return style throughout)
34705
34706         * sem_ch3.ads:
34707         Minor reformatting (including new function return style throughout)
34708
34709 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
34710
34711         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
34712         stringt.h: Update copyright notice. Remove trailing blanks.
34713         Fix source name in header.
34714
34715 2003-10-24  GNAT Script  <nobody@gnat.com>
34716
34717         * Make-lang.in: Makefile automatically updated
34718
34719 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
34720
34721         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
34722         stringt.h: Convert to ISO C90 declarations and definitions.
34723
34724 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
34725
34726         PR ada/11978
34727         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
34728         External_Tag attribute definition clauses.
34729
34730 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
34731
34732         PR ada/7613
34733         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
34734         child unit, generate a fully qualified name to avoid spurious errors
34735         when the context contains renamings of different child units with
34736         the same simple name.
34737
34738         * exp_dbug.ads: Add documentation on name qualification for renamings
34739         of child units.
34740
34741 2003-10-23  Robert Dewar  <dewar@gnat.com>
34742
34743         * g-regpat.ads, g-regpat.adb: Minor reformatting
34744
34745 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
34746
34747         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
34748
34749 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
34750
34751         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
34752         Machine call.
34753
34754         * urealp.h: (Machine): Update to proper definition.
34755
34756 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
34757
34758         * init.c, adaint.c: Minor reformatting.
34759
34760 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
34761
34762         * adaint.c (w32_epoch_offset): Define static const at file level.
34763         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
34764         rather than t_create, t_access in call to GetFileTime. Use union
34765         to convert between FILETIME and  unsigned long long.
34766         (__gnat_file_time_name): Test for invalid file handle.
34767         (__gnat_set_filetime_name): Support win32 targets using
34768         w32api SetFileTime.
34769
34770 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
34771
34772         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
34773
34774         * ctrl_c.c (__gnat_int_handler): Remove declaration.
34775
34776         * decl.c (creat_concat_name):  Const-ify prefix.
34777
34778         * adaint.c: Include ctype.h if __MINGW32__.
34779         (__gnat_readlink): Mark arguments as possibly unused.
34780         (__gnat_symlink): Likewise.
34781         (__gnat_is_symbolic_link): Likewise.
34782         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
34783         declaration
34784         (__gnat_file_time_name): Don't declare struct stat statbuf when
34785         not needed.
34786         (__gnat_is_absolute_path): Add parenthesis around condition of
34787         'if' statement to avoid warning.
34788         (__gnat_plist_init): Specify void as parameter.
34789         (plist_enter): Likewise.
34790         (plist_leave): Likewise.
34791         (remove_handle): Make static. Initialize prev.
34792
34793 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34794
34795         PR ada/10110
34796         * Makefile.in: Disable build of gnatpsta.
34797         * cstreams.c (__gnat_full_name): Minor improvements and clean up
34798         of previous change.
34799
34800 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
34801
34802         * tracebak.c (MAX): Avoid redefinition warning.
34803
34804         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
34805         Change msg to const char *.
34806         (__gnat_install_handler): Remove ss, unused.
34807         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
34808         to const char *.
34809         * cstreams.c (__gnat_full_name): Declare p only when used.
34810         (__gnat_full_name) [sgi] Return buffer.
34811
34812 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
34813
34814         * mingw32.h: New file.
34815         * gnat_wrapper.adb: New file.
34816
34817 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
34818
34819         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
34820         string match a pre compiled regular expression (the corresponding
34821         version of the function working on a raw regular expression)
34822         Fix typos in various comments
34823         Update copyright notice in spec
34824
34825 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
34826
34827         * exp_ch3.adb:
34828         (Component_Needs_Simple_Initialization): Return False when the type is a
34829         packed bit array. Revise spec comments to document this case.
34830
34831         * exp_prag.adb:
34832         (Expand_Pragma_Import): Set any expression on the imported object to
34833         empty to avoid initializing imported objects (in particular this
34834         covers the case of zero-initialization of bit arrays).
34835         Update copyright notice.
34836
34837 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
34838
34839         * sem_ch12.adb:
34840         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
34841         a subunit is missing.
34842         (Instantiate_Subprogram_Body): If body of function is missing, set type
34843         of return expression explicitly in dummy body, to prevent cascaded
34844         errors when a subunit is missing.
34845         Fixes PR 5677.
34846
34847         * sem_ch3.adb:
34848         (Access_Subprogram_Declaration): Verify that return type is valid.
34849         Fixes PR 8693.
34850
34851         * sem_elab.adb:
34852         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
34853         generic.
34854         Fixes PR 12318.
34855
34856         * sem_util.adb:
34857         (Corresponding_Discriminant): If the scope of the discriminant is a
34858         private type without discriminant, use its full view.
34859         Fixes PR 8247.
34860
34861 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
34862
34863         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
34864         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
34865         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
34866         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
34867         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
34868         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
34869         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
34870         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
34871         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
34872         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
34873         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
34874         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
34875         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
34876         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
34877         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
34878         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
34879         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
34880         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
34881         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
34882         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
34883         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
34884         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
34885         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
34886         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
34887         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
34888         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
34889         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
34890         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
34891         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
34892         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
34893         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
34894         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
34895         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
34896         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
34897         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
34898         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
34899         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
34900         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
34901         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
34902         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
34903         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
34904         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
34905         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
34906         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
34907         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
34908         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
34909         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
34910         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
34911         vms_conv.ads, vms_conv.adb, vms_data.ads,
34912         vxaddr2line.adb: Files added. Merge with ACT tree.
34913
34914         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
34915         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
34916         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
34917         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
34918         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
34919         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
34920         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
34921         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
34922         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
34923         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
34924
34925         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
34926         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
34927         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
34928         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
34929         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
34930         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
34931         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
34932         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
34933         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
34934         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
34935         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
34936         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
34937         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
34938         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
34939         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
34940         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
34941         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
34942         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
34943         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
34944         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
34945         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
34946         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
34947         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
34948         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
34949         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
34950         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
34951         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
34952         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
34953         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
34954         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
34955         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
34956         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
34957         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
34958         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
34959         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
34960         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
34961         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
34962         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
34963         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
34964         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
34965         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
34966         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
34967         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
34968         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
34969         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
34970         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
34971         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
34972         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
34973         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
34974         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
34975         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
34976         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
34977         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
34978         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
34979         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
34980         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
34981         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
34982         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
34983         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
34984         checks.adb, checks.ads, cio.c, comperr.adb,
34985         comperr.ads, csets.adb, cstand.adb, cstreams.c,
34986         debug_a.adb, debug_a.ads, debug.adb, decl.c,
34987         einfo.adb, einfo.ads, errout.adb, errout.ads,
34988         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
34989         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
34990         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
34991         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
34992         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
34993         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
34994         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
34995         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
34996         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
34997         fe.h, fmap.adb, fmap.ads, fname.adb,
34998         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
34999         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
35000         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
35001         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35002         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35003         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35004         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
35005         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
35006         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
35007         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
35008         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
35009         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
35010         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
35011         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
35012         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
35013         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
35014         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
35015         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
35016         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
35017         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
35018         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
35019         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
35020         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
35021         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
35022         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
35023         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
35024         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
35025         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
35026         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
35027         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
35028         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
35029         layout.adb, lib.adb, lib.ads, lib-list.adb,
35030         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
35031         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35032         link.c, live.adb, make.adb, make.ads,
35033         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
35034         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
35035         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
35036         misc.c, mkdir.c, mlib.adb, mlib.ads,
35037         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
35038         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
35039         namet.adb, namet.ads, namet.h, nlists.ads,
35040         nlists.h, nmake.adt, opt.adb, opt.ads,
35041         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
35042         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
35043         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35044         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
35045         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
35046         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
35047         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
35048         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
35049         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
35050         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
35051         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
35052         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
35053         prj-util.adb, prj-util.ads, raise.c, raise.h,
35054         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
35055         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
35056         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
35057         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
35058         scans.ads, scn.adb, scn.ads, s-crc32.adb,
35059         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
35060         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
35061         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
35062         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
35063         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
35064         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35065         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35066         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
35067         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
35068         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
35069         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
35070         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
35071         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
35072         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
35073         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35074         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
35075         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
35076         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
35077         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
35078         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
35079         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
35080         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
35081         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
35082         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
35083         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
35084         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
35085         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
35086         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
35087         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
35088         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
35089         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
35090         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
35091         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
35092         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
35093         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
35094         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
35095         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
35096         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
35097         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
35098         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
35099         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
35100         stringt.adb, stringt.ads, stringt.h, style.ads,
35101         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
35102         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
35103         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
35104         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
35105         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
35106         table.adb, table.ads, targparm.adb, targparm.ads,
35107         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
35108         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
35109         ttypes.ads, types.ads, types.h, uintp.adb,
35110         uintp.ads, uintp.h, uname.adb, urealp.adb,
35111         urealp.ads, urealp.h, usage.adb, utils2.c,
35112         utils.c, validsw.adb, validsw.ads, widechar.adb,
35113         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
35114         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
35115         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
35116         gnatvsn.ads: Merge with ACT tree.
35117
35118         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
35119
35120 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
35121
35122         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
35123         (gnat_ug_vmx.info): Likewise.
35124         (gnat_ug_vxw.info): Likewise.
35125         (gnat_ug_wnt.info): Likewise.
35126         (gnat_rm.info): Likewise.
35127         (gnat-style.info): Likewise.
35128
35129         * Make-lang.in (ada.install-info): Remove target.
35130         (info): New target.
35131         (install-info): Likewise.
35132         (gnat_ug_unx.info): Simplify rule.
35133         (gnat_ug_vmx.info): Likewise.
35134         (gnat_ug_vxw.info): Likewise.
35135         (gnat_ug_wnt.info): Likewise.
35136         (gnat_rm.info): Likewise.
35137         (gnat-style.info): Likewise.
35138
35139 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35140
35141         * Make-lang.in: Replace uses of $(target_alias) with
35142         $(target_noncanonical).
35143         * ada/Makefile.in: Remove unused mention of $(target_alias).
35144
35145 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
35146
35147         * Make-lang.in (ada.info): Replace with ...
35148         (info): ... this.
35149         (ada.dvi): Replace with ...
35150         (dvi): ... this.
35151
35152 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
35153
35154         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
35155         initialize dconstp5 and dconstmp5.
35156
35157 2003-09-28  Richard Henderson  <rth@redhat.com>
35158
35159         * trans.c (tree_transform): Update call to expand_asm_operands.
35160
35161 2003-09-21  Richard Henderson  <rth@redhat.com>
35162
35163         * trans.c, utils.c: Revert.
35164
35165 2003-09-21  Richard Henderson  <rth@redhat.com>
35166
35167         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
35168         change to const.
35169
35170 2003-09-04  Michael Matz  <matz@suse.de>
35171
35172         * misc.c: Include "target.h".
35173         * Make-lang.in (misc.o): Add dependency on target.h.
35174
35175 2003-09-03  DJ Delorie  <dj@redhat.com>
35176
35177         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
35178         hook.
35179
35180 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
35181
35182         * Makefile.in: Update substitutions to match changes to
35183         configure.  Use include directives instead of @-insertions
35184         to read in host and target fragments.  Add a rule to
35185         regenerate ada/Makefile.
35186
35187 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
35188
35189         * lang-options.h: Remove.
35190         * lang.opt: Add help text.
35191
35192 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
35193
35194         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
35195         calls.
35196
35197 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
35198
35199         * misc.c (gnat_handle_option): Don't handle filenames.
35200
35201 2003-07-04  H.J. Lu  <hongjiu.lu@intel.com>
35202
35203         * Make-lang.in: Replace PWD with PWD_COMMAND.
35204         * Makefile.adalib: Likewise.
35205         * Makefile.in: Likewise.
35206
35207 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
35208
35209         * misc.c (gnat_argv): Revert last change.
35210         (gnat_handle_option, gnat_init_options): Copy arguments.
35211
35212 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
35213
35214         * misc.c (gnat_argv): Make const.
35215
35216 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35217
35218         * misc.c (save_argc, save_argv): Keep non-static!
35219
35220 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
35221
35222         * misc.c (save_argc, save_argv): Make static.
35223         (gnat_init_options): New prototype.
35224         (gnat_init_options): Update.
35225
35226 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
35227
35228         * gnat_ug.texi: Remove unlikely characters from @vars.
35229         * gnat_ug_vms.texi: Regenerate.
35230
35231 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
35232
35233         * misc.c (record_code_position): Adjust emit_note call.
35234
35235 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
35236
35237         * misc.c (gnat_handle_option): Don't check for missing arguments.
35238
35239 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
35240
35241         * utils.c (end_subprog_body): Adjust expand_function_end call.
35242
35243 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
35244
35245         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
35246         Bind_Main_Program.
35247
35248 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
35249
35250         * lang.opt: Declare Ada.
35251         * misc.c (gnat_init_options): Update.
35252
35253 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
35254
35255         * utils.c (begin_subprog_body): Adjust init_function_start call.
35256
35257 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35258
35259         * Make-lang.in: Update to use options.c and options.h.
35260         * misc.c: Include options.h not aoptions.h.
35261         (gnat_handle_option): Abort on unrecognized switch.
35262         (gnat_init_options): Request Ada switches.
35263
35264 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
35265
35266         * lang.opt: Add -Wall.
35267         * misc.c (gnat_handle_option): Handle it.
35268
35269 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
35270
35271         * misc.c (gnat_handle_option): Fix warnings.
35272
35273 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
35274
35275         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
35276
35277 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
35278
35279         * Make-lang.in: Update to handle command-line options.
35280         * lang.opt: New file.
35281         * misc.c: Include aoptions.h.
35282         (cl_options_count, cl_options): Remove.
35283         (gnat_handle_option): New.
35284         (gnat_decode_option): Remove.
35285         (LANG_HOOKS_DECODE_OPTION): Remove.
35286         (LANG_HOOKS_HANDLE_OPTION): Override.
35287
35288 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
35289
35290         * init.c, misc.c, trans.c, utils.c: Remove dead code.
35291
35292 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
35293
35294         * Makefile.in: Replace "host_canonical" with "host" for autoconf
35295         substitution.
35296
35297 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
35298
35299         * Make-lang.in: Update.
35300         * misc.c: Include opts.h. Define cl_options_count and cl_options.
35301
35302 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
35303
35304         * misc.c (gnat_init_options): Update.
35305
35306 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35307
35308         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
35309         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
35310         __attribute__ ((__unused__)).
35311
35312 2003-06-05  Jan Hubicka  <jh@suse.cz>
35313
35314         * Make-lang.in:  Add support for stageprofile and stagefeedback
35315
35316 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
35317
35318         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
35319         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
35320
35321 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
35322
35323         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
35324         Remove non-VMS directive.
35325         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
35326         alternatives.
35327         (Examples of gnatls Usage): Remove VMS alternative.
35328
35329 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
35330
35331         PR ada/9953
35332         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
35333         and turn ZCX_By_Default back to False since the underlying support
35334         is not quite there yet.
35335
35336 2003-06-01  Andreas Jaeger  <aj@suse.de>
35337
35338         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
35339         and ROUND_TYPE_SIZE_UNIT.
35340
35341 2003-05-22   Geert Bosch  <bosch@gnat.com>
35342
35343         * gnat_rm.texi : Remove reference to Ada Core Technologies.
35344
35345 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
35346
35347         * trans.c (tree_transform): Use location_t and input_location
35348         directly.
35349         (build_unit_elab): Likewise.
35350         * utils.c (create_label_decl): Likewise.
35351
35352 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
35353
35354         * trans.c (tree_transform, build_unit_elab,
35355         set_lineno): Rename lineno to input_line.
35356         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
35357         end_subprog_body): Likewise.
35358         * utils2.c (build_call_raise): Likewise.
35359
35360 2003-05-01  Laurent Guerby  <guerby@acm.org>
35361
35362         PR ada/10546
35363         * 5iosinte.ads: Increase pthread_cond_t size to match recent
35364         LinuxThread and NPTL version, merge from ACT.
35365
35366 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
35367
35368         * utils.c (convert): No need to clear TREE_CST_RTL.
35369
35370 2003-04-23   Geert Bosch  <bosch@gnat.com>
35371
35372         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
35373         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
35374         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
35375         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
35376         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
35377         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
35378         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
35379         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
35380         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
35381         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
35382         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
35383         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
35384         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
35385         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
35386         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
35387         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
35388         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
35389         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
35390         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
35391         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
35392         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
35393         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
35394         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
35395         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
35396         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
35397         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
35398         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
35399         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
35400         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
35401         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
35402         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
35403         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
35404         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
35405         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
35406         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
35407         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
35408         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
35409         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
35410         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
35411         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
35412         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
35413         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
35414         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
35415         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
35416         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
35417         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
35418         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
35419         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
35420         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
35421         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
35422         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
35423         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
35424         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
35425         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
35426         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
35427         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
35428         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
35429         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
35430         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
35431         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
35432         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
35433         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
35434         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
35435         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
35436         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
35437         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
35438         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
35439         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
35440         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
35441         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
35442         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
35443         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
35444         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
35445         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
35446         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
35447         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
35448         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
35449         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
35450         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
35451         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
35452         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
35453         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
35454         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
35455         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
35456         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
35457         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
35458         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
35459         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
35460         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
35461         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
35462         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
35463         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
35464         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
35465         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
35466         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
35467         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
35468         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
35469         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
35470         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
35471         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
35472         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
35473         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
35474         ali.adb, ali.ads, alloc.ads, argv.c,
35475         atree.adb, atree.ads, atree.h, aux-io.c,
35476         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
35477         binde.adb, binde.ads, binderr.adb, binderr.ads,
35478         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
35479         butil.adb, butil.ads, cal.c, calendar.ads,
35480         casing.adb, casing.ads, ceinfo.adb, checks.adb,
35481         checks.ads, cio.c, comperr.adb, comperr.ads,
35482         config-lang.in, csets.adb, csets.ads, csinfo.adb,
35483         cstand.adb, cstand.ads, cuintp.c, debug.adb,
35484         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
35485         dec-io.ads, dec.ads, deftarg.c, directio.ads,
35486         einfo.adb, einfo.ads, elists.adb, elists.ads,
35487         elists.h, errno.c, errout.adb, errout.ads,
35488         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
35489         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
35490         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
35491         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
35492         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
35493         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
35494         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
35495         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
35496         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
35497         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
35498         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
35499         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
35500         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
35501         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
35502         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
35503         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
35504         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
35505         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
35506         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
35507         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
35508         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
35509         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
35510         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
35511         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
35512         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
35513         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
35514         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
35515         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
35516         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
35517         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
35518         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
35519         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
35520         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
35521         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
35522         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
35523         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
35524         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
35525         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
35526         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
35527         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
35528         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
35529         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
35530         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
35531         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
35532         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
35533         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
35534         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
35535         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
35536         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
35537         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
35538         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
35539         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
35540         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
35541         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
35542         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
35543         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
35544         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
35545         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
35546         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
35547         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
35548         lib.adb, lib.ads, live.adb, live.ads,
35549         machcode.ads, make.adb, make.ads, makeusg.adb,
35550         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
35551         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
35552         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
35553         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
35554         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
35555         mlib.ads, namet.adb, namet.ads, nlists.adb,
35556         nlists.ads, opt.adb, opt.ads, osint-b.adb,
35557         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
35558         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
35559         osint.ads, output.adb, output.ads, par-ch10.adb,
35560         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
35561         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
35562         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
35563         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
35564         par-tchk.adb, par-util.adb, par.adb, par.ads,
35565         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
35566         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
35567         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
35568         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
35569         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
35570         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
35571         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
35572         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
35573         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
35574         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
35575         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
35576         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
35577         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
35578         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
35579         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
35580         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
35581         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
35582         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
35583         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
35584         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
35585         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
35586         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
35587         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
35588         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
35589         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
35590         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
35591         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
35592         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
35593         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
35594         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
35595         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
35596         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
35597         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
35598         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
35599         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
35600         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
35601         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
35602         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
35603         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
35604         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
35605         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
35606         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
35607         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
35608         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
35609         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
35610         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
35611         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
35612         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
35613         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
35614         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
35615         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
35616         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
35617         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
35618         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
35619         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
35620         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
35621         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
35622         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
35623         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
35624         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
35625         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
35626         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
35627         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
35628         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
35629         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
35630         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
35631         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
35632         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
35633         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
35634         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
35635         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
35636         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
35637         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
35638         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
35639         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
35640         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
35641         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
35642         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
35643         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
35644         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
35645         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
35646         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
35647         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
35648         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
35649         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
35650         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
35651         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
35652         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
35653         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
35654         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
35655         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
35656         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
35657         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
35658         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
35659         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
35660         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
35661         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
35662         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
35663         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
35664         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
35665         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
35666         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
35667         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
35668         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
35669         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
35670         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
35671         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
35672         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
35673         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
35674         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
35675         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
35676         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
35677         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
35678         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
35679         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
35680         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
35681         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
35682         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
35683         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
35684         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
35685         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
35686         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
35687         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
35688         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
35689         snames.ads, sprint.adb, sprint.ads, stand.adb,
35690         stand.ads, stringt.adb, stringt.ads, style.adb,
35691         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
35692         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
35693         switch-m.ads, switch.adb, switch.ads, system.ads,
35694         table.adb, table.ads, targparm.adb, targparm.ads,
35695         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
35696         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
35697         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
35698         ttypef.ads, ttypes.ads, types.adb, types.ads,
35699         uintp.adb, uintp.ads, uname.adb, uname.ads,
35700         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
35701         usage.adb, usage.ads, validsw.adb, validsw.ads,
35702         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
35703         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
35704         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
35705         formatting and other trivial changes from ACT.
35706
35707 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
35708
35709         * gigi.h, utils2.c (build_constructor):
35710         Rename gnat_build_constructor. Use build_constructor.
35711         * decl.c (gnat_to_gnu_entity)
35712         * trans.c (tree_transform, pos_to_constructor, extract_values)
35713         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
35714         (unchecked_convert)
35715         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
35716         (fill_vms_descriptor):
35717         Update to match.
35718
35719 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
35720
35721         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
35722         * misc.c (gnat_tree_size): New function.
35723         (LANG_HOOKS_TREE_SIZE): Override.
35724
35725 2003-04-03  Jason Merrill  <jason@redhat.com>
35726
35727         * misc.c (gnat_adjust_rli): #if 0.
35728
35729 2003-03-31   Geert Bosch  <bosch@gnat.com>
35730
35731         PR ada/10020
35732         * link.c : Fix misspelled "const" keyword
35733
35734 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
35735
35736         PR c++/7086
35737         * utils2.c: Adjust calls to put_var_into_stack.
35738
35739 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
35740
35741         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
35742
35743 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
35744
35745         * misc.c (gnat_init): Update for new prototype.
35746
35747 2003-03-05  Olivier Hainque  <hainque@gnat.com>
35748
35749         ada/9961
35750         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
35751         warning, and fix return type for the IN_RTS && !SJLJ case.
35752
35753 2003-03-04  Tom Tromey  <tromey@redhat.com>
35754
35755         * Make-lang.in (ada.tags): New target.
35756
35757 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
35758
35759         ada/9911
35760         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
35761         wrapper, which name remains constant whatever underlying GCC
35762         scheme.
35763
35764         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
35765         the stable interface needed for a-except.
35766
35767 2003-03-02  Andreas Jaeger  <aj@suse.de>
35768
35769         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35770         gnat_ug_wnt.texi: Regenerate.
35771
35772 2003-03-02  Laurent Guerby  <guerby@acm.org>
35773
35774         * Makefile.in (install-gnatlib): Match previous change there
35775         so it works.
35776
35777 2003-02-28  Andreas Schwab  <schwab@suse.de>
35778
35779         * Make-lang.in (install-gnatlib): Change to ada directory before
35780         running make instead of using ada/Makefile directly.
35781
35782 2003-02-18  Ben Elliston  <bje@redhat.com>
35783
35784         Part of PR ada/9406
35785         * gnat_ug.texi (Binder output file): Grammar fix.
35786
35787 2003-02-18  Ben Elliston  <bje@redhat.com>
35788
35789         PR other/7350
35790         * 5qtaprop.adb (Sleep): Fix typo in comment.
35791
35792 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
35793
35794         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
35795         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35796         gnat_ug_wnt.texi: Regenerate.
35797
35798 2003-02-03  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35799
35800         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
35801         be created if necessary.
35802         (ada.install-common): Let $(DESTDIR)$(bindir) be created
35803         if necessary.  Remove erroneous and redundant gnatchop
35804         installation commands.  Test for gnatdll before attempting
35805         to install it.
35806         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
35807         and gnatdll from all plausible locations.
35808
35809 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
35810
35811         * utils2.c (build_unary_op): Don't check flag_volatile.
35812         * gnat_ug.texi: Remove -fvolatile from example.
35813         * gnat_ug_vxw.texi: Likewise.
35814
35815 2003-01-29  Laurent Guerby  <guerby@acm.org>
35816
35817         PR ada/8344
35818         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
35819         * Makefile.in: match previous change.
35820         * Make-lang.in: match previous change.
35821
35822 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
35823
35824         * 5rosinte.ads: Add SIGXCPU.
35825         * 5rtpopsp.adb: New file.
35826         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
35827         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
35828         specific file 5rtpopsp.adb.
35829         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
35830         is likely needed for all newlib targets.
35831         * init.c: Add RTEMS specific version of __gnat_initialize().
35832
35833 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35834
35835         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
35836
35837 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
35838
35839         * init.c (__gnat_error_handler): Make msg const.
35840
35841         * gmem.c (convert_addresses): Move declaration ...
35842         * adaint.h: ... here.
35843         * adaint.c (convert_addresses): Adapt addrs type to match
35844         prototype.
35845
35846         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
35847
35848 2003-01-24  Andreas Schwab  <schwab@suse.de>
35849
35850         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
35851         size_t to avoid warning.
35852
35853 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
35854
35855         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
35856
35857 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
35858
35859         * gnat_rm.texi: Remove RCS version number.
35860
35861         * ada-tree.h (union lang_tree_node): Add chain_next option.
35862
35863 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
35864
35865         * Make-lang.in (ada.install-info, ada.install-common,
35866         ada.uninstall): Prepend $(DESTDIR) to the destination
35867         directory in all (un)installation commands.
35868         * Makefile.in (install-gnatlib, install-rts): Ditto.
35869
35870 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
35871
35872         * gnat_rm.texi, gnat_ug.texi: Use @copying.
35873         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35874         gnat_ug_wnt.texi: Regenerate.
35875
35876 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
35877
35878         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
35879         only.
35880         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
35881         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
35882         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
35883         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
35884         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
35885         $(srcdir)/doc/include/gcc-common.texi.
35886
35887 2002-12-15   Geert Bosch  <bosch@gnat.com>
35888
35889         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
35890
35891 2002-12-14   Geert Bosch  <bosch@gnat.com>
35892
35893         PR ada/5690
35894         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
35895         case of a body created for a Renaming_As_Body, on which
35896         conformance checks are not performed.
35897
35898 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
35899
35900         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
35901         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
35902         not already included.
35903         * Make-lang.in: Update dependencies.
35904
35905 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
35906         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
35907         solution to buffer overflow bug on GNU/Linux.
35908
35909 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
35910
35911         PR ada/5856
35912         PR ada/6919
35913         * bindgen.adb: Remove all references to Public_Version.
35914         * comperr.adb: Remove all references to Public_Version and
35915         GNATPRO_Version; correct bug reporting instructions.
35916         * comperr.ads: Change to match bug box.
35917         * gnatvsn.ads: Remove all references to Public version and
35918         GNATPRO version.
35919
35920 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
35921
35922         PR ada/6919
35923         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
35924         GNU/Linux.
35925
35926         PR ada/6558
35927         * config-lang.in: Remove diff_excludes.
35928
35929 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
35930
35931         PR ada/8358
35932         * trans.c (gnu_pending_elaboration_lists): New GC root.
35933         (build_unit_elab): Use..
35934
35935 2002-10-30   Geert Bosch  <bosch@gnat.com>
35936
35937         PR ada/6558
35938         * misc.c : Include optabs.h
35939
35940         * Make-lang.in (misc.o): Add dependency on optabs.h
35941
35942 2002-10-29   Geert Bosch  <bosch@gnat.com>
35943
35944         PR ada/6558
35945         * Make-lang.in (gnatbind): Depend on CONFIG_H
35946
35947 2002-10-29  Geert bosch  <bosch@gnat.com>
35948
35949         PR ada/6558
35950         * misc.c: Unrevert misc.c (1.13)
35951
35952 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
35953
35954         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
35955         maintainership comments.
35956
35957 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
35958
35959         PR ada/5904
35960         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
35961         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
35962         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
35963         7staprop.adb: Correct statements in comments about
35964         maintainership of GNAT.
35965
35966         PR ada/5904
35967         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
35968         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
35969         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
35970         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
35971         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
35972         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
35973         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
35974         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
35975         comments about maintainership of GNAT.
35976
35977         PR ada/6919 (forward port of patch for PR ada/5904)
35978         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
35979         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
35980         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
35981         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
35982         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
35983         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
35984         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
35985         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
35986         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
35987         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
35988         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
35989         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
35990         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
35991         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
35992         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
35993         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
35994         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
35995         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
35996         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
35997         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
35998         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
35999         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
36000         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
36001         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
36002         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
36003         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
36004         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
36005         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
36006         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
36007         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
36008         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
36009         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
36010         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
36011         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
36012         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
36013         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
36014         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
36015         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
36016         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
36017         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
36018         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
36019         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
36020         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
36021         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
36022         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
36023         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
36024         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
36025         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
36026         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
36027         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
36028         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
36029         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
36030         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
36031         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
36032         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
36033         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
36034         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
36035         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
36036         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
36037         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
36038         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
36039         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
36040         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
36041         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
36042         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
36043         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
36044         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
36045         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
36046         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
36047         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
36048         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
36049         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
36050         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
36051         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
36052         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
36053         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
36054         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
36055         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
36056         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
36057         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
36058         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
36059         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
36060         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
36061         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
36062         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
36063         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
36064         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
36065         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
36066         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
36067         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
36068         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
36069         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
36070         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
36071         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
36072         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
36073         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
36074         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
36075         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
36076         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
36077         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
36078         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
36079         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
36080         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
36081         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
36082         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
36083         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
36084         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
36085         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
36086         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
36087         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
36088         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
36089         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
36090         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
36091         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
36092         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
36093         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
36094         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
36095         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
36096         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
36097         par-endh.adb par-labl.adb par-load.adb par-prag.adb
36098         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
36099         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
36100         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
36101         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
36102         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
36103         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
36104         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
36105         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
36106         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
36107         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
36108         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
36109         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
36110         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
36111         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
36112         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
36113         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
36114         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
36115         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
36116         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
36117         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
36118         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
36119         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
36120         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
36121         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
36122         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
36123         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
36124         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
36125         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
36126         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
36127         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
36128         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
36129         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
36130         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
36131         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
36132         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
36133         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
36134         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
36135         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
36136         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
36137         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
36138         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
36139         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
36140         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
36141         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
36142         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
36143         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
36144         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
36145         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
36146         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
36147         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
36148         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
36149         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
36150         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
36151         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
36152         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
36153         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
36154         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
36155         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
36156         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
36157         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
36158         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
36159         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
36160         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
36161         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
36162         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
36163         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
36164         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
36165         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
36166         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
36167         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
36168         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
36169         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
36170         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
36171         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
36172         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
36173         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
36174         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
36175         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
36176         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
36177         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
36178         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
36179         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
36180         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
36181         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
36182         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
36183         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
36184         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
36185         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
36186         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
36187         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
36188         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
36189         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
36190         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
36191         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
36192         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
36193         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
36194         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
36195         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
36196         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
36197         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
36198         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
36199         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
36200         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
36201         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
36202         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
36203         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
36204         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
36205         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
36206         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
36207         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
36208         stringt.ads stringt.h style.adb style.ads stylesw.adb
36209         stylesw.ads switch.adb switch.ads sysdep.c system.ads
36210         table.adb table.ads targparm.adb targparm.ads targtyps.c
36211         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
36212         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
36213         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
36214         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
36215         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
36216         usage.ads utils.c utils2.c validsw.adb validsw.ads
36217         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
36218         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
36219         xtreeprs.adb: Correct statements in comments about maintainership
36220         of GNAT.
36221
36222 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
36223
36224         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
36225         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
36226         * gnatvsn.ads: Gnat_Version_String is now a function.
36227         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
36228         copy the C version_string into a String and return it.
36229         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
36230         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
36231         Remove pragma Ident (Gnat_Version_String).  If this was the
36232         sole use of package Gnatvsn, remove the with statement too.
36233         * gnat1drv.adb: Tweak -gnatv output.
36234
36235 2002-09-17  Richard Henderson  <rth@redhat.com>
36236
36237         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
36238         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
36239         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
36240         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
36241         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
36242         and real_2expN instead of a loop.
36243         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
36244         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
36245
36246 2002-08-25  Andre Leis  <a.leis@gmx.net>
36247             David Billinghurst  <David.Billinghurst@riotinto.com>
36248
36249         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
36250
36251 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36252
36253         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
36254         Remove $(CONFIG_H) dependency.
36255
36256 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
36257
36258         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
36259
36260 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36261
36262         * adadecode.c (ada_demangle): Use xstrdup in lieu of
36263         xmalloc/strcpy.
36264         * misc.c (gnat_decode_option): Likewise.
36265
36266 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
36267
36268         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
36269         function approach did not work well because of a side effect (the
36270         function call could reallocate the table which was being indexed
36271         using its result). Fixes ada/4851. [RESURRECTED]
36272
36273 2002-07-01  Roger Sayle  <roger@eyesopen.com>
36274
36275         * ada/utils.c (builtin_function): Accept an additional parameter.
36276
36277 2002-06-28  Andreas Jaeger  <aj@suse.de>
36278
36279         PR ada/7144
36280         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
36281         <adi@thur.de>.
36282
36283 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36284
36285         * Makefile.in (SHELL): Set to @SHELL@.
36286
36287 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36288
36289         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
36290         array size calculation.
36291
36292 2002-06-04  Andreas Jaeger  <aj@suse.de>
36293
36294         * Make-lang.in (gnatbind): Readd rule that has been lost in last
36295         patch.
36296
36297 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
36298
36299         Merge from pch-branch:
36300
36301         * config-lang.in (gtfiles): Add ada-tree.h.
36302         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
36303         (SET_TYPE_MODULUS): New.
36304         (SET_TYPE_INDEX): New.
36305         (SET_TYPE_DIGITS_VALUE): New.
36306         (SET_TYPE_RM_SIZE): New.
36307         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
36308         (SET_TYPE_ADA_SIZE): New.
36309         (SET_TYPE_ACTUAL_BOUNDS): New.
36310         (SET_DECL_CONST_CORRESPONDING_VAR): New.
36311         (SET_DECL_ORIGINAL_FIELD): New.
36312         (TREE_LOOP_ID): Correct typo.
36313         * decl.c: Use new macros.
36314         * utils.c: Include debug.h, use new macros.
36315         * utils2.c: Use new macros.
36316
36317         * ada-tree.h: Update all macros for new tree description.
36318         (struct tree_loop_id): New.
36319         (union lang_tree_node): New.
36320         (struct lang_decl): New.
36321         (struct lang_type): New.
36322         * misc.c (gnat_mark_tree): Delete.
36323         (LANG_HOOKS_MARK_TREE): Delete.
36324         * trans.c (tree_transform): No longer any need to cast
36325         for TREE_LOOP_ID.
36326
36327         * utils.c (struct language_function): New dummy structure.
36328
36329         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
36330         (misc.o): Likewise.
36331         (utils.o): Likewise; also gtype-ada.h.
36332         * Make-lang.in (gnat1): Add dependency on s-gtype.
36333         (gnatbind): Add dependency on $(CONFIG_H).
36334         * utils.c: Correct last #include.
36335         (stuct e_stack): Remove unnecessary 'static'.
36336         (mark_e_stack): Remove unused prototype.
36337
36338         * scn-nlit.adb: Remove whitespace after version number to
36339         keep lines under 80 chars.
36340         * snames.adb: Likewise.
36341         * treepr.ads: Likewise.
36342
36343         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
36344         (misc.o): Likewise.
36345         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
36346         * config-lang.in (gtfiles): New.
36347         * decl.c: Use gengtype for roots.
36348         * gigi.h: Use gengtype for roots.
36349         * trans.c: Use gengtype for roots.
36350         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
36351
36352 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
36353
36354         * misc.c (gnat_init): Adjust setting of internal_error_function.
36355
36356 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
36357
36358         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
36359         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
36360         gnat_ug_wnt.texi: Regenerate.
36361
36362 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
36363
36364         * 5ntaprop.adb (with System.OS_Primitives): Remove.
36365
36366         * cstreams.c (max_path_len): Move from here ...
36367         * adaint.c (__gnat_max_path_len): ... to here.
36368         * adaint.c (__gnat_max_path_len): Declare.
36369         * g-dirope.adb (Max_Path): Adjust.
36370         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
36371         * i-cstrea.ads (max_path_len): Adjust.
36372         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
36373         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
36374
36375         * Makefile.in, Make-lang.in: Documentation is now built in
36376         Make-lang.in.  Store Info and generated Texinfo files in the
36377         source directory.
36378         * gnat_ug.texi: Remove CVS keywords, correct version number.
36379         Set file name correctly.
36380
36381         * gnat_ug_*.texi: Add.
36382         * .cvsignore: Ignore generated Texinfo files.
36383
36384 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
36385
36386         * ada.h: Add MI guard macro.
36387         (SUBTYPE): Define constants with an anonymous enum, not static
36388         const variables.
36389         (IN): Cast constants to appropriate type before use.
36390
36391 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
36392
36393         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
36394         (experimental)".
36395
36396 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36397
36398         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
36399         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
36400         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
36401         (ALL_ADA_CFLAGS): Likewise.
36402         (ADA_INCLUDES): Likewise.
36403         Adapt for new working dir.
36404         (GNATBIND): Use Makefile.in version.
36405         (.SUFFIXES): Copy from Makefile.in.
36406         (ada-warn): Define.
36407         (.adb.o, .ads.o): Copy from Makefile.in.
36408         Added $(OUTPUT_OPTION).
36409         (GNAT1_C_OBJS): Moved from Makefile.in.
36410         Prefix with ada subdir.
36411         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
36412         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
36413         Adapt for new working dir.
36414         (EXTRA_GNATBIND_OBJS): Likewise.
36415         (ADA_BACKEND): Moved from Makefile.in.
36416         Renamed to avoid conflict with global BACKEND.
36417         Use that one.
36418         (TARGET_ADA_SRCS): Moved from Makefile.in.
36419         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
36420         Use ADA_BACKEND.
36421         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
36422         (ada_extra_files): Moved from Makefile.in.
36423         Prefix with ada subdir.
36424         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
36425         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
36426         (ada/nmake.ads): Likewise.
36427         (update-sources): Moved from Makefile.in.
36428         Prefix with ada subdir.
36429         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
36430         (ADA_TREE_H): Likewise.
36431         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
36432         (ada/memtrack.o): Likewise.
36433         (ada/adadecode.o): Likewise.
36434         Update dependencies.
36435         (ada/adaint.o): New.
36436         (ada/argv.o): Moved from Makefile.in.
36437         Prefix with ada subdir.
36438         Update dependencies.
36439         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
36440         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
36441         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
36442         Prefix with ada subdir.
36443         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
36444         (GNAT DEPENDENCIES): Regenerate.
36445         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
36446         toplevel Makefile.in.
36447         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
36448         (TARGET_ADA_SRCS): Removed.
36449         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
36450         (GNATBIND_OBJS): Likewise.
36451         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
36452         (BACKEND): Removed.
36453         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
36454         (TREE_H): Likewise.
36455         (ada_extra_files): Likewise.
36456         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
36457         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
36458         (update-sources): Likewise.
36459         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
36460         (ADA_TREE_H): Likewise.
36461         (adadecoce.o): Likewise.
36462         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
36463         (GNAT DEPENDENCIES): Likewise.
36464
36465 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36466
36467         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
36468         * Makefile.in: Likewise.
36469
36470 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
36471
36472         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
36473         Restore $(CONFIG_H) and prefix.o dependencies.
36474         (ada.stage[1-4]): Depend on stage?-start.
36475
36476         * Makefile.in (b_gnatb.c): Depend on interfac.o.
36477
36478 2002-05-02  Jim Wilson  <wilson@redhat.com>
36479
36480         * utils.c (finish_record_type): Change record_size to record_type.
36481
36482 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
36483
36484         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
36485         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
36486         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
36487
36488 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36489
36490         * misc.c (gnat_parse_file): Update.
36491
36492 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36493
36494         * misc.c (gnat_init): Don't set lang_attribute_common.
36495
36496 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
36497
36498         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
36499
36500 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
36501
36502         * gnat_ug.texi: New file.
36503
36504         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
36505         instead of gfdl.texi
36506
36507         * xgnatug.adb, ug_words: New files.
36508
36509         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
36510         gnat_rm and gnat-style manuals.
36511
36512 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
36513
36514         * gigi.h (incomplete_type_error): Remove.
36515         * utils.c (incomplete_type_error): Remove.
36516
36517 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
36518
36519         * trans.c (tree_transform): Add has_scope argument to
36520         expand_start_stmt_expr.
36521
36522 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36523
36524         * gigi.h (truthvalue_conversion): Rename.
36525         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
36526         * trans.c (tree_transform): Update.
36527         * utils2.c (truthvalue_conversion): Rename, update.
36528         (build_binary_op, build_unary_op): Update.
36529
36530 2002-04-04  Laurent Guerby  <guerby@acm.org>
36531
36532         * make.adb: Implement -margs, remove restriction about file name placement.
36533         * makeusg.adb: Documentation update.
36534         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
36535         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
36536
36537 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
36538
36539         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
36540         (builtin_function): Similarly.
36541
36542 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36543
36544         * decl.c (gnat_to_gnu_entity): Update.
36545         * gigi.h (mark_addressable): Rename.
36546         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
36547         * trans.c (tree_transform): Update.
36548         * utils.c (create_var_decl): Update.
36549         * util2.c (build_binary_op, build_unary_op,
36550         fill_vms_descriptor): Update.
36551         (mark_addressable): Rename, update.
36552
36553 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
36554
36555         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
36556         Rename.
36557         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
36558         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
36559         * trans.c (tree_transform, convert_with_check): Update.
36560         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
36561         Rename.
36562
36563 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
36564
36565         * gigi.h (finish_incomplete_decl): Rename.
36566         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
36567         * utils.c (gnat_init_decl_processing): Don't set hook.
36568         (finish_incomplete_decl): Rename.
36569
36570 2002-03-29  Andreas Schwab  <schwab@suse.de>
36571
36572         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
36573         directory.
36574
36575 2001-03-28  Robert Dewar  <dewar@gnat.com>
36576
36577         * checks.ads:
36578         (Remove_Checks): New procedure
36579
36580         * checks.adb:
36581         (Remove_Checks): New procedure
36582
36583         * exp_util.adb:
36584         Use new Duplicate_Subexpr functions
36585         (Duplicate_Subexpr_No_Checks): New procedure
36586         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36587         (Duplicate_Subexpr): Restore original form (checks duplicated)
36588         (Duplicate_Subexpr): Call Remove_Checks
36589
36590         * exp_util.ads:
36591         (Duplicate_Subexpr_No_Checks): New procedure
36592         (Duplicate_Subexpr_No_Checks_Orig): New procedure
36593         Add 2002 to copyright notice
36594
36595         * sem_util.adb: Use new Duplicate_Subexpr functions
36596
36597         * sem_eval.adb:
36598         (Eval_Indexed_Component): This is the place to call
36599         Constant_Array_Ref and to replace the value. We simply merge
36600         the code of this function in here, since it is now no longer
36601         used elsewhere. This fixes the problem of the back end not
36602         realizing we were clever enough to see that this was
36603         constant.
36604         (Expr_Val): Remove call to Constant_Array_Ref
36605         (Expr_Rep_Val): Remove call to Constant_Array_Ref
36606         Minor reformatting
36607         (Constant_Array_Ref): Deal with string literals (patch
36608         suggested by Zack Weinberg on the gcc list)
36609
36610 2001-03-28  Ed Schonberg  <schonber@gnat.com>
36611
36612         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
36613         Duplicate_Subexpr_Move_Checks.
36614
36615         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
36616         Duplicate_Subexpr_Move_Checks.
36617
36618         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
36619         value of array exists before retrieving it (it may a private
36620         protected component in a function).
36621
36622 2002-03-28   Geert Bosch  <bosch@gnat.com>
36623
36624         * prj-pp.adb : New file.
36625
36626         * prj-pp.ads : New file.
36627
36628 2002-03-28  Andreas Jaeger  <aj@suse.de>
36629
36630         * Makefile.in (stamp-sdefault): Fix path for Makefile.
36631
36632 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36633
36634         * misc.c (gnat_expand_expr): Move prototype.
36635
36636 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36637
36638         * misc.c (insert_default_attributes): Remove.
36639
36640 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36641
36642         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
36643         (gnat_init): Don't set hook.
36644         (gnat_expand_expr): Fix prototype.
36645
36646 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
36647
36648         * misc.c (ggc_p): Remove.
36649
36650 2002-03-27  Geert Bosch  <bosch@gnat.com>
36651
36652         * prj-makr.ads, prj-makr.adb : New files.
36653
36654 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
36655
36656         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
36657         (lang_mark_tree): Make static, rename.
36658
36659 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
36660
36661         * misc.c (maybe_build_cleanup): Remove.
36662
36663 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
36664
36665         * gigi.h (yyparse): Remove.
36666
36667 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
36668
36669         From Ben Brosgol  <brosgol@gnat.com>
36670         * gnat_rm.texi: Sync with ACT version.
36671
36672 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
36673
36674         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
36675         (gnat_init): Remove old hook.
36676
36677 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
36678
36679         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
36680         (yyparse): Rename gnat_parse_file.
36681
36682 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
36683
36684         Delete all lines containing "$Revision:".
36685         * xeinfo.adb: Don't look for revision numbers.
36686         * xnmake.adb: Likewise.
36687         * xsinfo.adb: Likewise.
36688         * xsnames.adb: Likewise.
36689         * xtreeprs.adb: Likewise.
36690
36691 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36692
36693         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
36694         gnat_tree_code_name): Delete.
36695         (tree_code_type, tree_code_length, tree_code_name): Define.
36696         (gnat_init): Don't try to copy into the various tree_code
36697         arrays.
36698
36699 2002-03-11  Richard Henderson  <rth@redhat.com>
36700
36701         * Makefile.in (.NOTPARALLEL): Add fake tag.
36702
36703 2002-03-07  Geert Bosch  <bosch@gnat.com>
36704
36705         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
36706         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
36707         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
36708         switch-m.adb, switch-m.ads : New files.
36709
36710 2002-03-07  Geert Bosch  <bosch@gnat.com>
36711
36712         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
36713         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
36714         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
36715         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
36716         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
36717         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
36718         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
36719         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
36720         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
36721         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
36722         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
36723         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
36724         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
36725         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
36726         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
36727         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
36728         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
36729         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
36730         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
36731         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
36732         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
36733         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
36734         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
36735         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
36736         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
36737         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
36738         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
36739         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
36740         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
36741         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
36742         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
36743         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
36744         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
36745         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
36746         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36747         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
36748         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
36749         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
36750         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
36751         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
36752         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
36753         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
36754         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
36755         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
36756         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
36757         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
36758         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
36759         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
36760         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
36761         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
36762         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
36763         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
36764         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
36765         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
36766         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
36767         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
36768         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
36769         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
36770         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
36771         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
36772         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
36773         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
36774         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
36775         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
36776         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
36777         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
36778         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
36779         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
36780         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
36781         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
36782         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
36783         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
36784         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
36785         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
36786         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
36787         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
36788         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
36789         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
36790         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
36791         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
36792         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
36793         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
36794         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
36795         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
36796         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
36797         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
36798         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
36799         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
36800         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
36801         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
36802         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
36803         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
36804         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
36805         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
36806         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
36807         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
36808         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
36809
36810         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
36811         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
36812         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
36813         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
36814
36815         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
36816         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
36817
36818         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
36819         to mdll-fil.ad[bs] and mdll-util.ad[bs]
36820
36821         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
36822         from mdllfile.ad[bs] and mdlltool.ad[bs]
36823
36824 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36825
36826         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
36827         lieu of explicit sizeof/sizeof.
36828
36829 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
36830
36831         * misc.c (copy_lang_decl): Remove.
36832
36833 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
36834
36835         * misc.c: Delete traditional-mode-related code copied from the
36836         C front end but not used, or used only to permit the compiler
36837         to link.
36838
36839 2002-02-07  Richard Henderson  <rth@redhat.com>
36840
36841         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
36842         * adaint.h (__gnat_to_gm_time): Update prototype.
36843
36844 2002-01-30  Richard Henderson  <rth@redhat.com>
36845
36846         * trans.c (tree_transform) [N_Loop_Statement]: Use
36847         expand_exit_loop_top_cond.
36848
36849 2001-12-23  Richard Henderson  <rth@redhat.com>
36850
36851         * utils.c (end_subprog_body): Push GC context around
36852         rest_of_compilation for nested functions.
36853
36854 2001-12-23  Richard Henderson  <rth@redhat.com>
36855
36856         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
36857
36858 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
36859
36860         * gnat-style.texi (Declarations and Types): Remove ancient style
36861         rule which was mandated by code generation issues.
36862
36863         * gnat-style.texi (header): Add @dircategory, @direntry.
36864         (title page): Remove date.
36865         (general) Add @./@: where approriate, and two spaces after the
36866         full stop at the end of a sentence.  Use @samp markup when
36867         referring concrete lexical entities (keywords, attribute names
36868         etc.), and @syntax for ARM grammar elements. Use @r for English
36869         text in comments.  Use @emph for emphasis.  Change "if-statements"
36870         etc. to "if statements" (without @samp). Break long lines.  Make
36871         casing of section names consistent.
36872         (Identifiers): Use @samp markup for variable names.
36873         (Comments): Use @samp markup for comment characters. Line-end
36874         comments may follow any Ada code, not just statements.  Fix
36875         misspelling of "Integer" as "integer".
36876         (Loop statements): Do not use variable name "I", use "J".
36877         (Subprogram Declarations): Document alignment.
36878         (Subprogram Bodies, Block statements): Document empty line before
36879         "begin".
36880
36881 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
36882
36883         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
36884         function approach did not work well because of a side effect (the
36885         function call could reallocate the table which was being indexed
36886         using its result). Fixes ada/4851.
36887
36888 2001-12-19  Robert Dewar  <dewar@gnat.com>
36889
36890         * bindgen.adb: Minor reformatting
36891
36892         * cstand.adb: Minor reformatting
36893
36894         * fmap.adb: Minor reformatting
36895         Change name from Add for Add_To_File_Map (Add is much too generic)
36896         Change Path_Name_Of to Mapped_Path_Name
36897         Change File_Name_Of to Mapped_File_Name
36898         Fix copyright dates in header
36899
36900         * fmap.ads:
36901         Change name from Add for Add_To_File_Map (Add is much too generic)
36902         Change Path_Name_Of to Mapped_Path_Name
36903         Change File_Name_Of to Mapped_File_Name
36904         Fix copyright dates in header
36905
36906         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
36907         Add use clause for Fmap.
36908
36909         * make.adb: Minor reformatting
36910
36911         * osint.adb: Minor reformatting.  Change of names in Fmap.
36912         Add use clause for Fmap.
36913
36914         * prj-env.adb: Minor reformatting
36915
36916         * prj-env.ads: Minor reformatting
36917
36918         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
36919         error found (there were odd exceptions to this general rule in
36920         -gnatec/-gnatem processing)
36921
36922 2001-12-19  Olivier Hainque  <hainque@gnat.com>
36923
36924         * raise.c (__gnat_eh_personality): Exception handling personality
36925         routine for Ada.  Still in rough state, inspired from the C++ version
36926         and still containing a bunch of debugging artifacts.
36927         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
36928         inspired from the C++ library.
36929
36930         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
36931         exception handling integration.
36932
36933 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
36934
36935         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
36936         (HIE_SOURCES): Add s-secsta.ad{s,b}.
36937         (HIE_OBJS): Add s-fat*.o
36938         (RAVEN_SOURCES): Remove files that are no longer required. Add
36939         interrupt handling files.
36940         (RAVEN_MOD): Removed, no longer needed.
36941
36942 2001-12-19  Robert Dewar  <dewar@gnat.com>
36943
36944         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
36945         Add 2001 to copyright date
36946
36947         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
36948         need to force universal inlining for these cases.
36949
36950 2001-12-19  Arnaud Charlet  <charlet@gnat.com>
36951
36952         * s-taprob.adb: Minor clean ups so that this unit can be used in
36953         Ravenscar HI.
36954
36955         * exp_ch7.adb: Allow use of secondary stack in HI mode.
36956         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
36957
36958 2001-12-19  Vincent Celier  <celier@gnat.com>
36959
36960         * prj-tree.ads (Project_Node_Record): Add comments for components
36961         Pkg_Id and Case_Insensitive.
36962
36963 2001-12-19  Pascal Obry  <obry@gnat.com>
36964
36965         * g-socket.adb: Minor reformatting. Found while reading code.
36966
36967 2001-12-19  Robert Dewar  <dewar@gnat.com>
36968
36969         * prj-tree.ads: Minor reformatting
36970
36971 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
36972
36973         * config-lang.in (diff_excludes): Remove.
36974
36975 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36976
36977         * sem_res.adb (Resolve_Selected_Component): do not generate a
36978         discriminant check if the selected component is a component of
36979         the argument of an initialization procedure.
36980
36981         * trans.c (tree_transform, case of arithmetic operators): If result
36982         type is private, the gnu_type is the base type of the full view,
36983         given that the full view itself may be a subtype.
36984
36985 2001-12-17  Robert Dewar  <dewar@gnat.com>
36986
36987         * sem_res.adb: Minor reformatting
36988
36989         * trans.c (tree_transform, case N_Real_Literal): Add missing third
36990         parameter in call to Machine (unknown horrible effects from this
36991         omission).
36992
36993         * urealp.h: Add definition of Round_Even for call to Machine
36994         Add third parameter for Machine
36995
36996 2001-12-17  Ed Schonberg  <schonber@gnat.com>
36997
36998         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
36999         predefined units in No_Run_Time mode.
37000
37001 2001-12-17  Richard Kenner  <kenner@gnat.com>
37002
37003         * misc.c (insn-codes.h): Now include.
37004
37005 2001-12-17  Olivier Hainque  <hainque@gnat.com>
37006
37007         * a-except.adb: Preparation work for future integration of the GCC 3
37008         exception handling mechanism
37009         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
37010         to factorize previous code sequences and make them externally callable,
37011         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
37012         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
37013         Use the new notification routines.
37014
37015 2001-12-17  Emmanuel Briot  <briot@gnat.com>
37016
37017         * prj-tree.ads (First_Choice_Of): Document the when others case
37018
37019 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37020
37021         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
37022         HI-E mode, in order to support Ravenscar profile properly.
37023
37024         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
37025         mode on 32 bits targets.
37026
37027 2001-12-17  Vincent Celier  <celier@gnat.com>
37028
37029         * fmap.adb: Initial version.
37030
37031         * fmap.ads: Initial version.
37032
37033         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
37034         If search is successfully done, add to mapping.
37035
37036         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
37037
37038         * make.adb:
37039         (Gnatmake): Add new local variable Mapping_File_Name.
37040          Create mapping file when using project file(s).
37041          Delete mapping file before exiting.
37042
37043         * opt.ads (Mapping_File_Name): New variable
37044
37045         * osint.adb (Find_File): Use path name found in mapping, if any.
37046
37047         * prj-env.adb (Create_Mapping_File): New procedure
37048
37049         * prj-env.ads (Create_Mapping_File): New procedure.
37050
37051         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
37052         (Mapping_File)
37053
37054         * usage.adb: Add entry for new switch -gnatem.
37055
37056         * Makefile.in: Add dependencies for fmap.o.
37057
37058 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37059
37060         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
37061         is a package instantiation rewritten as a package body.
37062         (Install_Withed_Unit): Undo previous change, now redundant.
37063
37064 2001-12-17  Gary Dismuke  <dismukes@gnat.com>
37065
37066         * layout.adb:
37067         (Compute_Length): Move conversion to Unsigned to callers.
37068         (Get_Max_Size): Convert Len expression to Unsigned after calls to
37069         Compute_Length and Determine_Range.
37070         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
37071         Compute_Length and Determine_Range.
37072         Above changes fix problem with length computation for supernull arrays
37073         where Max (Len, 0) wasn't getting applied due to the Unsigned
37074         conversion used by Compute_Length.
37075
37076 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37077
37078         * rtsfind.ads:
37079         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
37080          System.Secondary_Stack.
37081         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
37082          in HI-E mode.
37083         Remove unused entity RE_Exception_Data.
37084
37085         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
37086
37087         * rident.ads (No_Secondary_Stack): New restriction.
37088
37089 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
37090
37091         * gnat_rm.texi: Fix minor typos. Found while reading the section
37092         regarding "Bit_Order Clauses" that was sent to a customer.
37093         Very interesting documentation!
37094
37095 2001-12-17  Robert Dewar  <dewar@gnat.com>
37096
37097         * sem_case.adb (Choice_Image): Avoid creating improper character
37098         literal names by using the routine Set_Character_Literal_Name. This
37099         fixes bombs in certain error message cases.
37100
37101 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37102
37103         * a-reatim.adb: Minor reformatting.
37104
37105 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37106
37107         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
37108         case where the formal is an extension of another formal in the current
37109         unit or in a parent generic unit.
37110
37111 2001-12-17  Arnaud Charlet  <charlet@gnat.com>
37112
37113         * s-tposen.adb: Update comments.  Minor reformatting.
37114         Minor code clean up.
37115
37116         * s-tarest.adb: Update comments.  Minor code reorganization.
37117
37118 2001-12-17  Gary Dismukes  <dismukes@gnat.com>
37119
37120         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
37121         when Java_VM.
37122
37123 2001-12-17  Robert Dewa  <dewar@gnat.com>
37124
37125         * exp_attr.adb: Minor reformatting
37126
37127 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37128
37129         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
37130         derivations nested within a child unit: verify that the parent
37131         type is declared in an outer scope.
37132
37133 2001-12-17  Robert Dewar  <dewar@gnat.com>
37134
37135         * sem_ch12.adb: Minor reformatting
37136
37137 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37138
37139         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
37140         warning if current unit is a predefined one, from which bodies may
37141         have been deleted.
37142
37143 2001-12-17  Robert Dewar  <dewar@gnat.com>
37144
37145         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
37146         Fix header format. Add 2001 to copyright date.
37147
37148         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
37149         which caused CE during compilation if checks were enabled.
37150
37151 2001-12-17  Vincent Celier  <celier@gnat.com>
37152
37153         * make.adb:
37154         (Switches_Of): New function
37155         (Test_If_Relative_Path): New procedure
37156         (Add_Switches): Use new function Switches_Of
37157         (Collect_Arguments_And_Compile): Use new function Switches_Of.
37158         When using a project file, test if there are any relative
37159         search path. Fail if there are any.
37160         (Gnatmake): Only add switches for the primary directory when not using
37161         a project file. When using a project file, change directory to the
37162         object directory of the main project file. When using a project file,
37163         test if there are any relative search path. Fail if there are any.
37164         When using a project file, fail if specified executable is relative
37165         path with directory information, and prepend executable, if not
37166         specified as an absolute path, with the exec directory.  Make sure
37167         that only one -o switch is transmitted to the linker.
37168
37169         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
37170
37171         * prj-nmsc.adb:
37172         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
37173         when using a non standard naming scheme.
37174         (Check_Ada_Naming_Scheme): Make sure that error messages
37175         do not raise exceptions.
37176         (Is_Illegal_Append): Return True if there is no dot in the suffix.
37177         (Language_Independent_Check): Check the exec directory.
37178
37179         * prj.adb (Project_Empty): Add new component Exec_Directory
37180
37181         * prj.ads:
37182         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
37183         (Project_Data): Add component Exec_Directory
37184
37185         * snames.adb: Updated to match snames.ads revision 1.215
37186
37187         * snames.ads: Added Exec_Dir
37188
37189 2001-12-17  Robert Dewar  <dewar@gnat.com>
37190
37191         * make.adb: Minor reformatting
37192
37193         * prj-nmsc.adb: Minor reformatting
37194
37195         * snames.adb: Updated to match snames.ads
37196
37197         * snames.ads: Alphebetize entries for project file
37198
37199 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37200
37201         * trans.c (process_freeze_entity): Do nothing if the entity is a
37202         subprogram that was already elaborated.
37203
37204 2001-12-17  Richard Kenner  <kenner@gnat.com>
37205
37206         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
37207         and Esize if object is referenced via pointer.
37208
37209 2001-12-17  Ed Schonberg  <schonber@gnat.com>
37210
37211         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
37212         is discrete before analyzing choices.
37213
37214 2001-12-17  Joel Brobecker  <brobecke@gnat.com>
37215
37216         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
37217         containing the name of the Ada Main Program. This string is mainly
37218         intended for the debugger.
37219         (Gen_Output_File_C): Do the equivalent change when generating a C file.
37220
37221 2001-12-17  Robert Dewar  <dewar@gnat.com>
37222
37223         * ali.adb: Set new Dummy_Entry field in dependency entry
37224
37225         * ali.ads: Add Dummy_Entry field to source dependency table
37226
37227         * bcheck.adb (Check_Consistency): Ignore dummy D lines
37228
37229         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
37230
37231         * lib-writ.ads: Document dummy D lines for missing files.
37232
37233         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
37234
37235 2001-12-17  Robert Dewar  <dewar@gnat.com>
37236
37237         * ali.adb: Type reference does not reset current file.
37238
37239         * ali.adb: Recognize and scan renaming reference
37240
37241         * ali.ads: Add spec for storing renaming references.
37242
37243         * lib-xref.ads: Add documentation for handling of renaming references
37244
37245         * lib-xref.adb: Implement output of renaming reference.
37246
37247         * checks.adb:
37248         (Determine_Range): Document local variables
37249         (Determine_Range): Make sure Hbound is initialized. It looks as though
37250          there could be a real problem here with an uninitialized reference
37251          to Hbound, but no actual example of failure has been found.
37252
37253 2001-12-17  Laurent Pautet  <pautet@gnat.com>
37254
37255         * g-socket.ads:
37256         Fix comment of Shutdown_Socket and Close_Socket. These functions
37257         should not fail silently because if they are called twice, this
37258         probably means that there is a race condition in the user program.
37259         Anyway, this behaviour is consistent with the rest of this unit.
37260         When an error occurs, an exception is raised with the error message
37261         as exception message.
37262
37263 2001-12-17  Robert Dewar  <dewar@gnat.com>
37264
37265         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
37266         that it happens before modification of Sloc values for -gnatD.
37267
37268         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
37269         so that it happens before modification of Sloc values for -gnatD.
37270
37271         * switch.adb: Minor reformatting
37272
37273 2001-12-15  Richard Henderson  <rth@redhat.com>
37274
37275         * sem_ch7.adb: Wrap comment.
37276
37277 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37278
37279         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
37280         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
37281         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
37282         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
37283         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
37284         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
37285         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
37286         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
37287         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
37288         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
37289         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
37290         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
37291         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
37292         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
37293         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
37294         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
37295         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
37296         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
37297         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
37298         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
37299         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
37300         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
37301         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
37302         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
37303         spelling errors.
37304
37305 2001-12-14  Vincent Celier  <celier@gnat.com>
37306
37307         * osint.adb(Create_Debug_File): When an object file is specified,
37308         put the .dg file in the same directory as the object file.
37309
37310 2001-12-14  Robert Dewar  <dewar@gnat.com>
37311
37312         * osint.adb: Minor reformatting
37313
37314         * lib-xref.adb (Output_Instantiation): New procedure to generate
37315         instantiation references.
37316
37317         * lib-xref.ads: Add documentation of handling of generic references.
37318
37319         * ali.adb (Read_Instantiation_Ref): New procedure to read
37320         instantiation references
37321
37322         * ali.ads: Add spec for storing instantiation references
37323
37324         * bindusg.adb: Minor reformatting
37325
37326         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37327
37328         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37329
37330         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37331
37332         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
37333
37334         * csets.ads:
37335         Fix header format
37336         Add 2001 to copyright date
37337         Add entry for Latin-5 (Cyrillic ISO-8859-5)
37338
37339 2001-12-14  Matt Gingell  <gingell@gnat.com>
37340
37341         * adaint.c: mktemp is a macro on Lynx and can not be used as an
37342         expression.
37343
37344 2001-12-14  Richard Kenner  <kenner@gnat.com>
37345
37346         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
37347         if operand is CONSTRUCTOR.
37348
37349 2001-12-14  Ed Schonberg  <schonber@gnat.com>
37350
37351         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
37352         before emiting check on right-hand side, so that exception information
37353         is correct.
37354
37355 2001-12-14  Richard Kenner  <kenner@gnat.com>
37356
37357         * utils.c (create_var_decl): Throw away initializing expression
37358         if just annotating types and non-constant.
37359
37360 2001-12-14  Vincent Celier  <celier@gnat.com>
37361
37362         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
37363         Default_Ada_...
37364
37365         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37366         Remove functions.
37367         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
37368
37369         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
37370         Remove functions.
37371         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
37372
37373 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
37374
37375         * ChangeLog: Remove piece of diff output.
37376
37377 2001-12-14  Geert Bosch  <bosch@gnat.com>
37378
37379         * config-lang.in: Update copyright notice
37380
37381         * layout.adb: Remove commented out code.
37382
37383         * mdllfile.ads: Update copyright notice. Fix header format.
37384
37385         * sem_case.ads: Likewise.
37386
37387         * sem_ch3.adb: Minor reformatting.
37388
37389 2001-12-12  Geert Bosch  <bosch@gnat.com>
37390
37391         * freeze.ads: Update copyright date.
37392
37393         * g-comlin.ads: Minor reformatting.
37394
37395         * gnat-style.texi: Fix typo.
37396
37397 2001-12-12  Geert Bosch  <bosch@gnat.com>
37398
37399         *  einfo.h: Regenerate.
37400
37401 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37402
37403         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
37404         on known node types, rather than untyped fields. Further cleanups.
37405
37406 2001-12-12  Robert Dewar  <dewar@gnat.com>
37407
37408         * sem_ch12.adb:
37409         (Save_Entity_Descendant): Minor comment update.
37410         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
37411          of an N_Attribute_Reference node. As per note below, this does not
37412         eliminate need for Associated_Node in attribute ref nodes.
37413         (Associated_Node): Documentation explicitly mentions attribute
37414         reference nodes, since this field is used in such nodes.
37415
37416         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
37417
37418 2001-12-12  Robert Dewar  <dewar@gnat.com>
37419
37420         * s-stalib.adb: Add more comments on with statements being needed
37421
37422         * par-ch12.adb: Minor reformatting
37423
37424         * prj-dect.ads: Fix copyright header
37425
37426         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
37427         inputs fit in 32 bits, but the result still overflows.
37428
37429         * s-fatgen.ads: Minor comment improvement
37430
37431 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37432
37433         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
37434         formal derived type, look for an inherited component from the full
37435         view of the parent, if any.
37436
37437 2001-12-12  Robert Dewar  <dewar@gnat.com>
37438
37439         * checks.ads (Apply_Alignment_Check): New procedure.
37440
37441         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
37442         ensure that the alignment of objects with address clauses is
37443         appropriate, and raise PE if not.
37444
37445         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
37446         Exp_Pakd.Known_Aligned_Enough
37447
37448         * mdllfile.ads: Minor reformatting
37449
37450         * mlib-fil.ads: Minor reformatting
37451
37452 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37453
37454         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
37455         fix to any component reference if enclosing record has non-standard
37456         representation.
37457
37458 2001-12-12  Vincent Celier  <celier@gnat.com>
37459
37460         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
37461         Iteration
37462
37463 2001-12-12  Ed Schonberg  <schonber@gnat.com>
37464
37465         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
37466         sem_attr.
37467
37468 2001-12-12  Robert Dewar  <dewar@gnat.com>
37469
37470         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
37471
37472 2001-12-12  Emmanuel Briot  <briot@gnat.com>
37473
37474         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
37475         and it adds dependencies to system.io.
37476
37477 2001-12-12  Pascal Obry  <obry@gnat.com>
37478
37479         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
37480         variable name.
37481
37482 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37483
37484         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
37485         that is the parent of other generics, the instance body replaces the
37486         instance node.  Retrieve the instance of the spec, which is the one
37487         that is visible in clients and within the body.
37488
37489 2001-12-11  Vincent Celier  <celier@gnat.com>
37490
37491         * gnatmain.adb: Initial version.
37492
37493         * gnatmain.ads: Initial version.
37494
37495         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
37496
37497         * snames.adb: Updated to match snames.ads.
37498
37499         * snames.ads: Added Gnatstub.
37500
37501 2001-12-11  Vincent Celier  <celier@gnat.com>
37502
37503         * prj-attr.adb (Initialization_Data): Change name from
37504         Initialisation_Data.
37505
37506 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37507
37508         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
37509         + and * applied to backslashed expressions like \r.
37510
37511 2001-12-11  Vasiliy Fofanov  <fofanov@gnat.com>
37512
37513         * g-os_lib.ads: String_List type added, Argument_List type is now
37514         subtype of String_List.
37515
37516 2001-12-11  Robert Dewar  <dewar@gnat.com>
37517
37518         * g-os_lib.ads: Change copyright to FSF
37519         Add comments for String_List type
37520
37521 2001-12-11  Vincent Celier  <celier@gnat.com>
37522
37523         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
37524         string to the buffer).
37525
37526 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37527
37528         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
37529         sem_attr.
37530
37531         * sem_attr.adb: Simplify previous fix for Address.
37532         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
37533         to avoid anomalies where the bound of the type appears to raise
37534         constraint error.
37535
37536 2001-12-11  Robert Dewar  <dewar@gnat.com>
37537
37538         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
37539         handled.
37540
37541 2001-12-11  Ed Schonber   <schonber@gnat.com>
37542
37543         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
37544         renamed unit before checking for recursive instantiations.
37545
37546 2001-12-11  Emmanuel Briot  <briot@gnat.com>
37547
37548         * prj.ads: Add comments for some of the fields.
37549
37550 2001-12-11  Robert Dewar  <dewar@gnat.com>
37551
37552         * lib-xref.adb (Output_Refs): Don't output type references outside
37553         the main unit if they are not otherwise referenced.
37554
37555 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37556
37557         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
37558         code and diagnose additional illegal uses
37559
37560         * sem_util.adb (Is_Object_Reference): An indexed component is an
37561         object only if the prefix is.
37562
37563 2001-12-11  Vincent Celier  <celier@gnat.com>
37564
37565         * g-diopit.adb: Initial version.
37566
37567         * g-diopit.ads: Initial version.
37568
37569         * g-dirope.adb:
37570         (Expand_Path): Avoid use of Unbounded_String
37571         (Find, Wildcard_Iterator): Moved to child package Iteration
37572
37573         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
37574
37575 2001-12-11  Robert Dewar  <dewar@gnat.com>
37576
37577         * sem_attr.adb: Minor reformatting
37578
37579 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37580
37581         * sem_ch3.adb: Clarify some ???.
37582
37583 2001-12-11  Robert Dewar  <dewar@gnat.com>
37584
37585         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
37586         Exp_Pakd.Known_Aligned_Enough
37587
37588         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
37589         version is moved to Exp_Ch13.
37590
37591 2001-12-11  Robert Dewar  <dewar@gnat.com>
37592
37593         * einfo.ads: Minor reformatting
37594
37595         * exp_ch5.adb: Add comment for previous.change
37596
37597         * ali.adb: New interface for extended typeref stuff.
37598
37599         * ali.ads: New interface for typeref stuff.
37600
37601         * checks.adb (Apply_Alignment_Check): New procedure.
37602
37603         * debug.adb: Add -gnatdM for modified ALI output
37604
37605         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
37606
37607         * lib-xref.adb: Extend generation of <..> notation to cover
37608         subtype/object types. Note that this is a complete rewrite,
37609         getting rid of the very nasty quadratic algorithm previously
37610         used for derived type output.
37611
37612         * lib-xref.ads: Extend description of <..> notation to cover
37613         subtype/object types. Uses {..} for these other cases.
37614         Also use (..) for pointer types.
37615
37616         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
37617
37618         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
37619         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
37620
37621 2001-12-11  Vincent Celier  <celier@gnat.com>
37622
37623         * gnatcmd.adb:
37624         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
37625         Changed /BIND_ONLY to /ACTIONS=BIND
37626         Changed /LINK_ONLY to /ACTIONS=LINK
37627
37628 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37629
37630         * sem_ch8.adb (Find_Selected_Component): improved search for a
37631         candidate package in case of error.
37632
37633         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
37634         chain back on scope stack before reinstalling use clauses.
37635
37636         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
37637         is enabled, do not kill the code for the condition, to preserve
37638         warning.
37639
37640 2001-12-11  Robert Dewar  <dewar@gnat.com>
37641
37642         * checks.adb (Insert_Valid_Check): Apply validity check to expression
37643         of conversion, not to result of conversion.
37644
37645 2001-12-11  Ed Schonberg  <schonber@gnat.com>
37646
37647         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
37648         before freezing parent. If the declarations are mutually recursive,
37649         an access to the current record type may be frozen before the
37650         derivation is complete.
37651
37652 2001-12-05  Vincent Celier  <celier@gnat.com>
37653
37654         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
37655         -c /COMPILE_ONLY, -l /LINK_ONLY
37656
37657         * opt.ads:
37658         (Bind_Only): New Flag
37659         (Link_Only): New flag
37660
37661         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
37662         and -l (Link_Only)
37663
37664         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
37665
37666         * make.adb:
37667         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
37668         (Gnatmake): Set the step flags. Only perform a step if the
37669         corresponding step flag is True.
37670         (Scan_Make_Arg): Reset the bind and link step flags when -u
37671         or -gnatc has been specified.
37672
37673 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37674
37675         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
37676         get bounds from right operand.
37677
37678         * sem_eval.adb: Minor reformatting
37679
37680         * exp_util.adb (Make_Literal_Range): use bound of literal rather
37681         than Index'First, its lower bound may be different from 1.
37682
37683         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
37684         and C48009J
37685
37686 2001-12-05  Vincent Celier  <celier@gnat.com>
37687
37688         * prj-nmsc.adb Minor reformatting
37689
37690         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
37691         set and libraries are not supported.
37692
37693 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37694
37695         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
37696         private view explicitly, so the back-end can treat as a global
37697         when appropriate.
37698
37699 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37700
37701         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
37702          unit, always replace instance node with new body, for ASIS use.
37703
37704 2001-12-05  Vincent Celier  <celier@gnat.com>
37705
37706         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
37707         libraries are not supported and both attributes Library_Name and
37708         Library_Dir are specified.
37709
37710         * prj-proc.adb (Expression): Set location of Result to location of
37711         first term.
37712
37713         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
37714         (prj-nmsc is now importing MLib.Tgt)
37715
37716         * prj-proc.adb: Put the change indicated above that was forgotten.
37717
37718 2001-12-05  Robert Dewar  <dewar@gnat.com>
37719
37720         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
37721
37722 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37723
37724         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
37725         constraint, introduce explicit subtype declaration and derive from it.
37726
37727         * sem_ch3.adb: Minor reformatting
37728
37729 2001-12-05  Robert Dewar  <dewar@gnat.com>
37730
37731         * checks.adb (Determine_Range): Increase cache size for checks.
37732         Minor reformatting
37733
37734         * exp_ch6.adb: Minor reformatting
37735         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
37736         a parameter whose root type is System.Address, since treating such
37737         subprograms as pure in the code generator is almost surely a mistake
37738         that will lead to unexpected results.
37739
37740         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
37741         change handling of conversions.
37742
37743         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
37744
37745 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37746
37747         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
37748         aggregate with static wrong size, attach generated Raise node to
37749         declaration.
37750
37751 2001-12-05  Robert Dewar  <dewar@gnat.com>
37752
37753         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
37754         Fixes compilation abandoned bomb in B24009B.
37755
37756 2001-12-05  Ed Schonberg  <schonber@gnat.com>
37757
37758         * sem_ch12.adb:
37759         Document use of Associated_Node on Selected_Components.
37760         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
37761         to clarify use of untyped descendant fields.
37762
37763 2001-12-05  Robert Dewar  <dewar@gnat.com>
37764
37765         * prj-dect.ads: Add ??? comment
37766         Add 2001 to copyright notice (was not done in after all)
37767
37768         * prj-part.adb: Minor reformatting. Reword one awkward error message.
37769
37770         * prj.ads: Minor reformatting throughout, and add some ??? comments
37771
37772         * snames.ads: Minor reformatting
37773
37774 2001-12-05  Geert Bosch  <bosch@gnat.com>
37775
37776         * snames.adb: Autoupdate
37777
37778 2001-12-05  Vincent Celier  <celier@gnat.com>
37779
37780         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
37781
37782         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
37783
37784         * prj-env.adb: Minor comment changes (modifying -> extends).
37785
37786         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
37787
37788         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
37789         Tok_Extends.
37790
37791         * prj.adb (Initialize): Change Modifying to Extends.
37792
37793         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
37794
37795         * prj.ads: Minor comment change (Modifying -> extending).
37796
37797         * snames.ads: Change modifying to extends.
37798
37799 2001-12-05  Robert Dewar  <dewar@gnat.com>
37800
37801         * sem_warn.adb: Remove stuff for conditionals, we are not going to
37802         do this after all.
37803
37804         * sem_warn.ads: Remove stuff for conditionals, we are not going to
37805         do this after all.  Add 2001 to copyright notice
37806
37807 2001-12-04  Geert Bosch  <bosch@gnat.com>
37808
37809         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
37810
37811 2001-12-04  Robert Dewar  <dewar@gnat.com>
37812
37813         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
37814         location if we already have errors. Stops some cases of cascaded
37815         errors.
37816
37817         * errout.adb: Improve comment.
37818
37819 2001-12-04  Robert Dewar  <dewar@gnat.com>
37820
37821         * sem_ch12.adb:
37822         (Analyze_Formal_Type_Definition): Defend against Error.
37823         (Analyze_Formal_Subprogram): Defend against Error.
37824
37825         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
37826         remove following semicolon if present. Removes cascaded error.
37827
37828 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
37829
37830         * bindgen.adb:
37831         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
37832          exceptions equals 0.
37833         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
37834         Fixes PIWG E tests (which have to be run with -gnatL).
37835
37836 2001-12-04  Robert Dewar  <dewar@gnat.com>
37837
37838         * einfo.ads: Minor reformatting
37839
37840 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37841
37842         * einfo.ads: Block_Node points to the identifier of the block, not to
37843         the block node itself, to preserve the link when the block is
37844         rewritten, e.g. within an if-statement with a static condition.
37845
37846         * inline.adb (Cleanup_Scopes): recover block statement from block
37847         entity using new meaning of Block_Node.
37848
37849         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
37850         identifier of block node, rather than to node itself.
37851
37852 2001-12-04  Gary Dismukes  <dismukes@gnat.com>
37853
37854         * layout.adb:
37855         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
37856         (Discrimify): Go back to setting the Etypes of the selected component
37857         because the Vname component does not exist at this point and will
37858         fail name resolution. Also set Analyzed.
37859         Remove with and use of Sem_Res.
37860
37861 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
37862
37863         * Makefile.in: (HIE_SOURCES): add s-fat*.
37864
37865 2001-12-04  Robert Dewar  <dewar@gnat.com>
37866
37867         * sem_attr.adb:
37868         (Compile_Time_Known_Attribute): New procedure.
37869         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
37870          proper range check.
37871
37872 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37873
37874         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
37875         processing discriminants to diagnose illegal default values.
37876
37877 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37878
37879         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
37880         access discriminant within a type extension that constrains its
37881         parent discriminants.
37882
37883 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37884
37885         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
37886         is malformed, use instance of Any_Id to allow analysis to proceed.
37887
37888         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
37889         type definition is illegal.
37890         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
37891         misplaced.
37892
37893 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37894
37895         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
37896         constants.
37897
37898 2001-12-04  Robert Dewar  <dewar@gnat.com>
37899
37900         * errout.adb: Minor reformatting
37901
37902 2001-12-04  Robert Dewar  <dewar@gnat.com>
37903
37904         * exp_util.adb: Minor reformatting from last change
37905
37906         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
37907         which is a rewriting of an expression, traverse the original
37908         expression to remove warnings that may have been posted on it.
37909
37910 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37911
37912         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
37913         record that has other packed components.
37914
37915 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
37916
37917         * adaint.c: Minor cleanups.
37918
37919 2001-12-04  Douglass B. Rupp  <rupp@gnat.com>
37920
37921         * adaint.c: Do not use utime.h on vxworks.
37922
37923 2001-12-04  Arnaud Charlet  <charlet@gnat.com>
37924
37925         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
37926         more confusion than it solves.
37927
37928 2001-12-04  Geert bosch  <bosch@gnat.com>
37929
37930         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
37931
37932 2001-12-04  Geert Bosch  <bosch@gnat.com>
37933
37934         * Makefile.in (update-sources): New target.
37935         For use by gcc_release script.
37936
37937 2001-12-04  Ed Schonberg  <schonber@gnat.com>
37938
37939         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
37940         a configuration pragma, it is now legal wherever a pragma can appear.
37941
37942 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
37943
37944         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
37945         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
37946         is now @CROSS@ -DIN_GCC; update comment.
37947
37948 2001-12-04  Robert Dewar  <dewar@gnat.com>
37949
37950         * einfo.adb (Has_Pragma_Pure_Function): New flag.
37951         Fix problem that stopped ceinfo from working
37952
37953         * einfo.ads (Has_Pragma_Pure_Function): New flag.
37954
37955         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
37956
37957 2001-12-04  Douglas B. Rupp  <rupp@gnat.com>
37958
37959         * gnatchop.adb:
37960         (File_Time_Stamp): New procedure.
37961         (Preserve_Mode): New boolean.
37962         (Write_Unit): Pass time stamp.
37963         Implement -p switch (preserve time stamps).
37964
37965         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
37966
37967         * gnatchop.adb: Do usage info for -p switch
37968
37969         * adaint.h (__gnat_set_file_time_name): New function
37970
37971         * adaint.c (__gnat_set_file_time_name): Implement
37972
37973         * adaint.h: Fix typo
37974
37975 2001-12-03  Robert Dewar  <dewar@gnat.com>
37976
37977         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
37978         have Associated_Node.
37979
37980 2001-12-03  Robert Dewar  <dewar@gnat.com>
37981
37982         * prj-proc.adb: Minor reformatting
37983
37984         * make.adb: Minor reformatting
37985
37986 2001-12-03  Geert Bosch  <bosch@gnat.com>
37987
37988         * make.adb: Minor reformatting.
37989
37990 2001-12-03 Robert Dewar  <dewar@gnat.com>
37991
37992         * sem_ch12.adb: Minor reformatting
37993
37994 2001-12-03  Ed Schonberg  <schonber@gnat.com>
37995
37996         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
37997         push Standard on the stack before analyzing the instance body,
37998         in order to have a clean visibility environment.
37999
38000         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
38001
38002 2001-12-03  Ed Schonberg  <schonber@gnat.com>
38003
38004         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
38005         instantiation of a body that contains an inlined body.
38006
38007 2001-12-03  Ed Schonberg  <schonber@gnat.com>
38008
38009         * sem_ch12.adb:
38010         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
38011         to prevent freezing within formal packages.
38012         (Freeze_Subprogram_Body): If body comes from another instance that
38013         appeared before its own body, place freeze node at end of current
38014         declarative part, to prevent a back-end crash.
38015         (Inline_Instance_Body): Handle properly a package instance within
38016         a subprogram instance that is a child unit.
38017
38018 2001-12-01  Graham Stott  <grahams@redhat.com>
38019
38020         * Makefile.in (misc.o): Add missing $(srcdir) prefix
38021         and add optabs.h dependency.
38022
38023         * misc.c: Include optabs.h
38024         (gnat_tree_code_type): Make static and const.
38025         (gnat_tree_code_length): Likewise.
38026         (gnat_tree_code_name): Likewise.
38027         (update_setjmp_buf): Obtain operands mode from insn_data.
38028
38029 2001-11-29  Richard Henderson  <rth@redhat.com>
38030
38031         * init.c: Remove obsolete dwarf2 frame.h section.
38032
38033 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
38034
38035         * Make-lang.in (ada.generated-manpages): New dummy target.
38036
38037 2001-11-29  Ed Schonberg  <schonber@gnat.com>
38038
38039         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
38040         into Command, an array conversion is illegal here. Uncovered by
38041         ACATS B460005.
38042
38043 2001-11-28  Geert Bosch  <bosch@gnat.com>
38044
38045         * init.c: Minor whitespace changes.
38046
38047 2001-11-28  Doug Rupp  <rupp@gnat.com>
38048
38049         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
38050         signal stack.
38051
38052 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
38053
38054         * misc.c (gnat_expand_constant): Move declaration above
38055         definition of lang_hooks.
38056         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
38057         (gnat_init): lang_expand_constant no longer exists.
38058
38059         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
38060         always have vprintf.
38061         (gnat_init): Always call set_internal_error_function.
38062
38063 2001-11-27  Andreas Jaeger  <aj@suse.de>
38064
38065         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
38066
38067 2001-11-27  Laurent Guerby  <guerby@acm.org>
38068
38069         * Makefile.in: Regenerate Ada dependencies.
38070
38071 2001-11-26  Richard Henderson  <rth@redhat.com>
38072
38073         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
38074         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
38075         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
38076
38077 2001-11-25  Laurent Guerby  <guerby@acm.org>
38078
38079         * sysdep.c (rts_get_*): Fix style.
38080
38081 2001-11-19  Laurent Guerby  <guerby@acm.org>
38082
38083         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
38084         since it is of no apparent use and cause warnings.
38085
38086 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
38087
38088         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
38089         static too.
38090         (gnat_init): Don't return NULL.
38091         (finish_parse): Remove.
38092
38093 2001-11-17  Laurent Guerby  <guerby@acm.org>
38094
38095         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
38096         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
38097         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
38098         * lang-spec.h: Add missing struct field to silence warnings.
38099         * sysdep.c (rts_get_*): Provide K&R prototype.
38100         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
38101         * traceback.c (Unlock_Task, Lock_Task): Likewise.
38102         * tracebak.c (__gnat_backtrace): Remove unused variable.
38103         * utils.c (end_subprog_body): Move to K&R style.
38104
38105 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
38106
38107         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
38108
38109 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
38110
38111         * misc.c (gnat_init): Change prototype.  Include the
38112         functionality of the old init_parse and init_decl_processing.
38113         (gnat_init_decl_processing): New prototype.
38114         (init_parse): Remove.
38115         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
38116
38117 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
38118
38119         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
38120         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
38121         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
38122         set_yydebug): Remove.
38123
38124 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
38125
38126         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
38127         (struct lang_hooks): Constify.
38128         (language_string, lang_identify): Remove.
38129         * utils.c (init_decl_processing): Update.
38130
38131 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
38132
38133         * misc.c: Include langhooks-def.h.
38134         * Makefile.in: Update.
38135
38136 2001-10-30  Robert Dewar  <dewar@gnat.com>
38137
38138         * style.adb:
38139         (Check_Identifier): Rewrite circuit to be compatible with use of letters
38140         in the upper half of ASCII.
38141         (Check_Identifier): Minor reformatting
38142
38143 2001-10-30  Geert Bosch  <bosch@gnat.com>
38144
38145         * (Associated_Node, Set_Associated_Node): Do not check for
38146         Freeze_Entity.
38147
38148 2001-10-30  Robert Dewar  <dewar@gnat.com>
38149
38150         * a-reatim.ads: Minor reformatting
38151
38152 2001-10-30  Robert Dewar  <dewar@gnat.com>
38153
38154         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
38155         undocumented declarations.
38156
38157 2001-10-30  Pascal Obry  <obry@gnat.com>
38158
38159         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
38160         to the binder and linker.
38161         Minor style fix.
38162
38163         * mdll.ads: Fix layout.  Update copyright notice.
38164
38165         * mdll.adb: Fix layout.  Update copyright notice.
38166
38167 2001-10-30  Robert Dewar  <dewar@gnat.com>
38168
38169         * usage.adb: Minor fix to output for -gnaty.
38170
38171 2001-10-30  Ed Schonberg  <schonber@gnat.com>
38172
38173         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
38174         to accommodate all its possible values.
38175
38176         * a-reatim.adb (Split): Special-case handling of Time_Span_First
38177         and of small absolute values of T.
38178
38179 2001-10-30  Richard Kenner  <kenner@gnat.com>
38180
38181         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
38182         set_mem_attributes since not needed and wrong if RESULT if a REG;
38183         fixes ACATS failures.
38184
38185 2001-10-30  Geert Bosch  <bosch@gnat.com>
38186
38187         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
38188         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
38189
38190 2001-10-30  Robert Dewar  <dewar@gnat.com>
38191
38192         * bindusg.adb: Undocument -f switch.
38193
38194         * gnatcmd.adb: Remove /FULL_ELABORATION.
38195
38196         * opt.ads (Force_RM_Elaboration_Order): Document that this is
38197         obsolescent.
38198
38199         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
38200
38201         * gnatbind.adb: Minor update of warning msg.
38202
38203 2001-10-30  Vincent Celier  <celier@gnat.com>
38204
38205         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
38206         for project file switches (-P (/PROJECT_FILE=),
38207          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
38208         or MEDIUM or HIGH)
38209
38210 2001-10-30  Geert Bosch  <bosch@gnat.com>
38211
38212         * decl.c: Minor whitespace fixes.
38213
38214 2001-10-30  Richard Kenner  <kenner@gnat.com>
38215
38216         * utils2.c (build_allocator): Test for SIZE overflow in array case too
38217
38218 2001-10-30  Geert Bosch  <bosch@gnat.com>
38219
38220         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
38221         Found due to GCC 3.0 warning of using uninitialized value.
38222
38223         * layout.adb:
38224         (Get_Max_Size): Use variant record for tracking value/expression.
38225          Makes logic clearer and prevents warnings for uninitialized variables.
38226         (Layout_Array_Type): Use variant record for tracking value/expression.
38227          Makes logic clearer and prevents warnings for uninitialized variables.
38228
38229 2001-10-30  Robert Dewar  <dewar@gnat.com>
38230
38231         * lib.adb: Minor reformatting
38232
38233         * s-taprop.ads: Minor reformatting
38234
38235 2001-10-29  Laurent Guerby  <guerby@acm.org>
38236
38237         * init.c:
38238         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
38239         const.
38240         (_gnat_error_handler): Make MSG const.
38241
38242 2001-10-29  Richard Kenner  <kenner@gnat.com>
38243
38244         * sysdep.c: Fix localtime_r problem on LynxOS.
38245         Also remove #elif to avoid warnings.
38246
38247         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
38248         used by this.
38249
38250         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
38251
38252 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
38253
38254         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
38255         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
38256         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
38257         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
38258         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
38259         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
38260         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
38261         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
38262         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
38263         types.ads, urealp.adb: Fix spelling errors.
38264
38265 2001-10-27  Laurent Guerby  <guerby@acm.org>
38266
38267         * trans.c (gigi): Fix non determinism leading to bootstrap
38268         comparison failures for debugging information.
38269
38270 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
38271
38272         * gnat_rm.texi: Use @./@: where appropriate.
38273
38274 2001-10-26  Robert Dewar  <dewar@gnat.com>
38275
38276         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
38277
38278 2001-10-26  Richard Kenner  <kenner@gnat.com>
38279
38280         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
38281
38282 2001-10-26  Richard Kenner  <kenner@gnat.com>
38283
38284         * decl.c (validate_size): Modify message for bad size to avoid
38285         implication that compiler is modifying the size.
38286
38287 2001-10-26  Robert Dewar  <dewar@gnat.com>
38288
38289         * prj-util.adb: Minor reformatting. Fix bad header format.
38290
38291 2001-10-26  Robert Dewar  <dewar@gnat.com>
38292
38293         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
38294
38295         * sinfo.ads: Clarify use of Associated_Node (documentation only).
38296
38297         * sem_ch12.adb: Change Node4 to Associated_Node. Change
38298         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
38299         much more narrowly in places where needed. These are cleanups.
38300
38301 2001-10-26  Joel Brobecker  <brobecke@gnat.com>
38302
38303         * 5zosinte.ads (null_pthread): new constant.
38304
38305         * 5ztaprop.adb:
38306         (Initialize_TCB): Initialize thread ID to null, to be able to verify
38307          later that this field has been set.
38308         (Finalize_TCB): ditto.
38309         (Suspend_Task): Verify that the thread ID is not null before using it.
38310         (Resume_Task): ditto.
38311
38312         * s-tasdeb.adb:
38313         (Resume_All_Tasks): Lock the tasks list before using it.
38314         (Suspend_All_Tasks): ditto.
38315
38316 2001-10-26  Richard Kenner  <kenner@gnat.com>
38317
38318         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
38319         Make constant variant of designated type for Is_Access_Constant.
38320         Call update_pointer_to with main variant.
38321
38322         * trans.c (process_freeze_entity, process_type):
38323         Call update_pointer_to on main variant.
38324
38325         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
38326         If main variant, update all other variants.
38327
38328         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
38329         TREE_STATIC.
38330
38331 2001-10-26  Robert Dewar  <dewar@gnat.com>
38332
38333         * prj-util.adb: Minor reformatting
38334
38335 2001-10-26  Robert Dewar  <dewar@gnat.com>
38336
38337         * prj-util.adb: Minor reformatting
38338
38339 2001-10-26  Robert Dewar  <dewar@gnat.com>
38340
38341         * prj-attr.adb: Minor reformatting throughout
38342
38343 2001-10-26  Robert Dewar  <dewar@gnat.com>
38344
38345         * prj-attr.ads: Minor reformatting
38346         Add ??? comment (this whole spec has almost no comments)
38347
38348 2001-10-26  Vincent Celier  <celier@gnat.com>
38349
38350         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
38351         ("//") that precede the drive letter on Interix.
38352
38353 2001-10-26  Geert Bosch  <bosch@gnat.com>
38354
38355         * gnat_rm.texi: Add GNAT Reference Manual.
38356
38357 2001-10-25  Robert Dewar  <dewar@gnat.com>
38358
38359         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
38360         is Error. Similar change for other renaming cases.
38361
38362 2001-10-25  Robert Dewar  <dewar@gnat.com>
38363
38364         * s-atacco.ads: Add pragma Inline_Always for functions.
38365         Fix header format. Add copyright 2001
38366
38367 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38368
38369         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
38370         return Error rather than Empty so that analysis can proceed.
38371
38372 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38373
38374         * sem_util.adb (Enter_Name): better handling of cascaded error
38375         messages when a unit appears in its own context.
38376
38377 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38378
38379         * sem_util.adb (Defining_Entity): in case of error, attach created
38380         entity to specification, so that semantic analysis can proceed.
38381
38382 2001-10-25  Robert Dewar  <dewar@gnat.com>
38383
38384         * sem_util.adb
38385         (Defining_Entity): Deal with Error.
38386         (Process_End_Label): Deal with bad end label for.
38387
38388 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38389
38390         * sem_elab.adb (Check_A_Call): refine message when call is in an
38391         instance but callee is not declared in the generic unit.
38392
38393 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38394
38395         * sem_elab.adb (Check_A_Call): check for renaming before finding the
38396         enclosing unit, which may already be different from the calling unit.
38397
38398 2001-10-25  Geert Bosch  <bosch@gnat.com>
38399
38400         * 4gintnam.ads: fix header format.
38401
38402 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38403
38404         * sem_res.adb (Resolve_Call): if the call is actually an indexing
38405         operation on the result of a parameterless call, perform elaboration
38406         check after the node has been properly rewritten.
38407
38408         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
38409         inlined within the generic tree, the defining identifier is not a
38410         compilation_unit.
38411
38412 2001-10-25  Ed Schonberg  <schonber@gnat.com>
38413
38414         * sem_res.adb (Resolve): special-case resolution of Null in an
38415          instance or an inlined body to avoid view conflicts.
38416
38417         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
38418          compatibility by retrieving the access type of the generic copy.
38419
38420 2001-10-25  Robert Dewar  <dewar@gnat.com>
38421
38422         * sem_ch3.adb:
38423         (Analyze_Number_Declaration): Handle error expression.
38424         (Signed_Integer_Type_Declaration): Handle error bound.
38425         (Analyze_Subtype_Indication): Handle error range.
38426
38427         * sem_util.adb (Get_Index_Bounds): Check for Error.
38428
38429 2001-10-25  Robert Dewar  <dewar@gnat.com>
38430
38431         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
38432         in no run time mode.
38433
38434 2001-10-25  Pascal Obry  <obry@gnat.com>
38435
38436         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
38437         mode case for ALLOC case.
38438
38439         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
38440         all platforms. Improvement of last change.
38441
38442 2001-10-25  Robert Dewar  <dewar@gnat.com>
38443
38444         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
38445
38446 2001-10-25  Geert Bosch  <bosch@gnat.com>
38447
38448         * osint.adb (Is_Relative): Remove duplicate.
38449
38450 2001-10-25  Pascal Obry  <obry@gnat.com>
38451
38452         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
38453         pathnames in UNIX and DOS style with drive letter.
38454         (Is_Relative): new routine.
38455
38456         * osint.adb: Minor reformatting
38457
38458         * osint.adb (Is_Relative): implementation using
38459         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
38460
38461 2001-10-25  Pascal Obry  <obry@gnat.com>
38462
38463         * g-dirope.adb (Basename): correctly compute offset between the
38464         original Path and the translated one.
38465
38466         * g-dirope.adb: (Base_Name): add some comments.
38467
38468 2001-10-25  Robert Dewar  <dewar@gnat.com>
38469
38470         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
38471         in HIE mode, avoids compilation abandoned message
38472
38473         * exp_imgv.adb: Correct typo in previous change
38474
38475         * exp_imgv.adb: Correct typo in previous change (not my day!)
38476
38477 2001-10-25  Robert Dewar  <dewar@gnat.com>
38478
38479         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
38480
38481 2001-10-25  Pascal Obry  <obry@gnat.com>
38482
38483         * g-awk.ads: Move all pragma inlines next to the routine
38484          declarations. This is more uniform with other GNAT spec.
38485
38486 2001-10-22  Geert Bosch  <bosch@gnat.com>
38487
38488         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
38489
38490 2001-10-19  Geert Bosch  <bosch@gnat.com>
38491
38492         * Makefile.in (tools, gnattools): Remove gnatmem.
38493
38494 2001-10-17  Richard Henderson  <rth@redhat.com>
38495
38496         * Makefile.in (misc.o): Depend on langhooks.h.
38497         * misc.c: Include it.
38498         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
38499         (LANG_HOOKS_DECODE_OPTION): New.
38500         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
38501
38502 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
38503
38504         * trans.c (tree_transform): Adjust to recent change in
38505         expand_asm_operands to implement named asm operands.
38506
38507 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38508
38509         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
38510         renaming of discriminant for mutable record type.
38511
38512 2001-10-11  Robert Dewar  <dewar@gnat.com>
38513
38514         * validsw.adb: Properly save -gnatVn status.
38515
38516 2001-10-11  Robert Dewar  <dewar@gnat.com>
38517
38518         * usage.adb: Add lines for V switch.
38519
38520         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
38521         (/VALIDITY_CHECKING).
38522
38523 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38524
38525         * sem_type.adb (Add_One_Interp): an operator for a type declared in
38526         an extension of System is known to be visible.
38527
38528 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38529
38530         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
38531         properly. Fixes regression on ACATS C34005G.
38532
38533 2001-10-11  Robert Dewar  <dewar@gnat.com>
38534
38535         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
38536         loop in generic instance, since this is likely not very useful.
38537
38538 2001-10-11  Robert Dewar  <dewar@gnat.com>
38539
38540         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
38541         the error message for high integrity mode.
38542
38543         * rtsfind.adb (RTE): Give message if we try to find an entity that
38544         is not available in high integrity mode.
38545
38546         * rtsfind.ads:
38547         (OK_To_Use_In_HIE_Mode): New array.
38548         (RTE): May return Empty in high integrity mode.
38549
38550         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
38551         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
38552
38553         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
38554         unit if not inlined always and in no runtime mode. Fixes problem
38555         caused by new Rtsfind changes.
38556
38557         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
38558         body is deleted.
38559
38560         * rtsfind.adb (RTE): Make sure we do not try to load unit after
38561         giving message for entity not available in high integrity mode.
38562
38563 2001-10-11  Pascal Obry  <obry@gnat.com>
38564
38565         * impunit.adb: Add GNAT.CRC32.
38566
38567 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38568
38569         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
38570         properly the case where one universal operand in a non-static
38571         exponentiation of a real literal.
38572
38573 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38574
38575         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
38576         clause, return the gobal finalization list, for lack of anthing else.
38577
38578 2001-10-11  Ed Schonberg  <schonber@gnat.com>
38579
38580         * exp_ch7.adb (Make_Transient_Block): if statement is within
38581         exception handler, always use new transient scope to place Clean
38582         procedure.
38583
38584 2001-10-11  Pascal Obry  <obry@gnat.com>
38585
38586         * Makefile.in:
38587         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38588         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
38589         (GNATLS_RTL_OBJS): add g-crc32.o
38590         (GNATMAKE_RTL_OBJS): add g-crc32.o
38591
38592         * ali-util.adb:
38593         (CRC_Match): new function.
38594         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
38595         instead of the previous simple checksum algorithm.
38596         (Time_Stamp_Mismatch): use CRC_Match for comparison.
38597         (Set_Source_Table): idem.
38598
38599         * ali-util.ads:
38600         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
38601         instead of simple checksum.
38602         (CRC_Match): new function.
38603         (CRC_Error): new constant.
38604
38605         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
38606         a CRC now and not a simple checksum. A CRC uses lower-case hex
38607         letters, fixes ambiguity in parsing.
38608
38609         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
38610         is what this variable will store.
38611
38612         * bcheck.adb: Change reference to chechsum in comments by CRC.
38613         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
38614         rename All_Checksum_Match to All_CRC_Match. Change due to API
38615         renaming since now GNAT does not use a simple checksum but a
38616         CRC using GNAT.CRC32.
38617
38618         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
38619         now and not anymore a simple checksum.
38620
38621         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
38622         places.
38623
38624         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
38625
38626         * scans.adb:
38627         (Restore_Scan_State): rename Checksum to CRC.
38628         (Save_Scan_State): idem.
38629
38630         * scans.ads:
38631         With GNAT.CRC32.
38632         (Checksum): rename to CRC.
38633         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
38634
38635         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
38636         GNAT.CRC32).  Update copyright notice.
38637
38638         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
38639         GNAT.CRC32).  Update copyright notice.
38640
38641         * scn.adb:
38642         (Accumulate_Checksum): removed.
38643         (Update): new procedure. Add a wide-character into the CRC.
38644
38645         * sinput-l.adb:
38646         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
38647         (Load_File): fix initialization of S (change Source_Checksum to
38648         Source_CRC)
38649
38650         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
38651         Source_CRC in S initialization.
38652
38653         * sinput.adb (Source_Checksum): renamed to Source_CRC.
38654
38655         * sinput.ads (Source_Checksum): renamed to Source_CRC.
38656         Update comments for the CRC.
38657
38658         * types.adb (Hex): Use lowercase for the letter part.
38659
38660         * types.ads (Get_Hex_String): Returns the hexadecimal representation
38661         for a word. This is currently used only for CRC. In previous version,
38662         the checksum was using a representation with all letter being
38663         upper-case. With the new implementation (using CRC) we do not remove
38664         the 32th bit of the CRC, so we can have an upper-case starting letter
38665         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
38666         It is ambigous since the CRC was optional and could be followed by
38667         options like EB, EE. So now this routines uses lower-case letter for
38668         the hexadecimal representation. Strange enough only lower case letters
38669         where checked in Scan_ALI (even if this was not a possible case).
38670
38671         * gnatvsn.ads (Library_Version): changed to 3.15a.
38672
38673         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
38674         for the compiler.
38675
38676         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
38677         for the compiler.
38678
38679         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
38680         Add 2001 to copyright notice
38681         (Accumulate_Checksum): Modify to use System.CRC32.
38682
38683         * ali-util.ads: Redo changes of previous revision to continue to use
38684         the word Checksum. Add 2001 to copyright notice.
38685
38686         * ali.adb: Undo some of previous changes, not needed.
38687         Keep the change for lower case letters in the checksum.
38688
38689         * ali.ads: Undo previous change not needed.
38690
38691         * bcheck.adb: Undo most of previous change, not needed.
38692         But do use Checksums_Match for checksum comparison.
38693
38694         * gnatls.adb: Undo most of previous change, not needed.
38695         But do use Checksums_Match for comparing checksums.
38696
38697         * lib-load.adb: Undo previous change, not needed.
38698
38699         * lib-writ.adb: Undo previous change, not needed.
38700
38701         * lib-writ.ads: Document that checksums use lower case,
38702         not upper case letters.
38703
38704         * scans.adb: Undo previous change, not needed
38705
38706         * scans.ads: Undo previous change, not needed.
38707
38708         * scn-nlit.adb: Undo previous changes, not needed.
38709
38710         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
38711
38712         * scn.adb:
38713         (Accumulate_Checksum): Use System.CRC32.
38714         (Initialize_Checksum): New procedure.
38715         Remove other changes of previous revision.
38716
38717         * sinput-p.adb: Undo previous change, not needed.
38718
38719         * sinput.adb: Undo previous change, not needed.
38720
38721         * sinput-l.adb: Undo previous change, not needed.
38722
38723         * sinput.ads: Undo previous change, not needed.  Keep only comment
38724         on new checksum algorithm
38725
38726         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
38727         Also remove a-tags and a-stream from GNAT sources.
38728
38729         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
38730
38731         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
38732
38733 2001-10-11  Geert Bosch  <bosch@gnat.com>
38734
38735         * einfo.h: Regenerate.
38736
38737         * nmake.ads: Regenerate.
38738
38739         * nmake.adb: Regenerate.
38740
38741         * sinfo.h: Regenerate.
38742
38743         * treeprs.adb: Regenerate.
38744
38745 2001-10-10  Geert Bosch  <bosch@gnat.com>
38746
38747         * gnat-style.texi: New file describing coding guidelines for Ada.
38748
38749 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38750
38751         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
38752         is Flag174.
38753
38754 2001-10-10  Geert Bosch  <bosch@gnat.com>
38755
38756         * snames.ads: Add new names for project facility.
38757
38758         * snames.adb: Update to reflect snames.ads changes.
38759
38760         * snames.h: Update to reflect snames.ads changes.
38761
38762 2001-10-10  Vincent Celier  <celier@gnat.com>
38763
38764         * make.adb:
38765         (Add_Switches): reflect the changes for the switches attributes
38766         Default_Switches indexed by the programming language,
38767         Switches indexed by the file name.
38768         (Collect_Arguments_And_Compile): Idem.
38769         Reflect the attribute name changes.
38770
38771         * prj-attr.adb:
38772         (Initialisation_Data): Change the names of some packages and
38773         attributes.
38774         (Initialize): process case insensitive associative arrays.
38775
38776         * prj-attr.ads:
38777         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
38778
38779         * prj-dect.adb:
38780         (Parse_Attribute_Declaration): For case insensitive associative
38781          arrays, set the index string to lower case.
38782
38783         * prj-env.adb:
38784         Reflect the changes of the project attributes.
38785
38786         * prj-nmsc.adb:
38787         Replace Check_Naming_Scheme by Ada_Check and
38788         Language_Independent_Check.
38789
38790         * prj-nmsc.ads:
38791         Replaced Check_Naming_Scheme by 2 procedures:
38792         Ada_Check and Language_Independent_Check.
38793
38794         * prj-proc.adb:
38795         (Process_Declarative_Items): For case-insensitive associative
38796         arrays, set the index string to lower case.
38797         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
38798         Prj.Nmsc.Check_Naming_Scheme.
38799
38800         * prj-tree.adb:
38801         (Case_Insensitive): New function
38802         (Set_Case_Insensitive): New procedure
38803
38804         * prj-tree.ads:
38805         (Case_Insensitive): New function
38806         (Set_Case_Insensitive): New procedure
38807         (Project_Node_Record): New flag Case_Insensitive.
38808
38809         * prj-util.adb:
38810         (Value_Of): new function to get the string value of a single
38811         string variable or attribute.
38812
38813         * prj-util.ads:
38814         (Value_Of): new function to get the string value of a single
38815         string variable or attribute.
38816
38817         * prj.adb:
38818         (Ada_Default_Spec_Suffix): New function
38819         (Ada_Default_Impl_Suffix): New function
38820         Change definitions of several constants to reflect
38821         new components of record types.
38822
38823         * prj.ads:
38824         (Naming_Data): Change several components to reflect new
38825         elements of naming schemes.
38826         (Project_Data): New flags Sources_Present and
38827         Language_Independent_Checked.
38828         (Ada_Default_Spec_Suffix): New function.
38829         (Ada_Default_Impl_Suffix): New function.
38830
38831         * snames.ads:
38832         Modification of predefined names for project manager: added
38833         Implementation, Specification_Exceptions, Implementation_Exceptions,
38834         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
38835         Default_Switches, _Languages, Builder, Cross_Reference,
38836         Finder. Removed Body_Part, Specification_Append, Body_Append,
38837         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
38838         Gnatlink.
38839
38840         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
38841         Add comments.
38842
38843         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
38844         not that it is Nil_Variable_Value.
38845
38846         * prj.ads: Add ??? for uncommented declarations
38847
38848 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38849
38850         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
38851         constant, do not indicate possible modification, so that gigi can
38852         treat it as a bona fide constant.
38853
38854 2001-10-10  Robert Dewar  <dewar@gnat.com>
38855
38856         * sem_prag.adb: Add processing for pragma External.
38857
38858         * snames.ads: Add entry for pragma External.
38859
38860         * par-prag.adb: Add pragma External.
38861
38862         * snames.adb: Updated to match snames.ads.
38863
38864 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38865
38866         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
38867         a dynamic task if the allocator appears in an indexed assignment
38868         or selected component assignment.
38869
38870         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
38871         For a dynamic task in an assignment statement, use target of
38872         assignment to generate meaningful name.
38873
38874 2001-10-10  Ed Schonberg  <schonber@gnat.com>
38875
38876         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
38877         a generic package.
38878
38879         * einfo.ads: Body_Entity is also defined for generic package.
38880         Documentation change only
38881
38882         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
38883         others_choice for a discriminated component initialization,
38884         convert discriminant references into the corresponding discriminals.
38885
38886         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
38887         only if original type is private and expression has to be wrapped
38888         in a conversion.
38889
38890         * checks.adb:
38891         (Apply_Constraint_Check): Do not perform length check
38892         if expression is an aggregate with only an others_choice.
38893         (Length_N_Cond): two references to the same in_parameter
38894         (typically the discriminal in an init_proc) denote the same value.
38895         Two useful optimization uncovered by bugfixes above.
38896
38897 2001-10-10  Robert Dewar  <dewar@gnat.com>
38898
38899         * xeinfo.adb: Change int to char in translation of enumeration types.
38900         This fixes a problem in the C representation of component alignment.
38901         Add 2001 to copyright notice
38902
38903 2001-10-10  Richard Kenner  <kenner@gnat.com>
38904
38905         * decl.c: (validate_size): Do check size of object of integral type
38906         if it is a packed array type.
38907
38908 2001-10-10  Richard Kenner  <kenner@gnat.com>
38909
38910         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
38911         VAR_DECL for constant if not Is_Public but -O0.
38912
38913 2001-10-10  Richard Kenner  <kenner@gnat.com>
38914
38915         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
38916
38917 2001-10-10  Geert Bosch  <bosch@gnat.com>
38918
38919         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
38920         use '/' as switch character, allowing for absolute file names.
38921
38922 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
38923
38924         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
38925         FSF address.
38926
38927 2001-10-08  Geert Bosch  <bosch@gnat.com>
38928
38929         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
38930         Automatically build utilities when files need to be regenerated.
38931
38932 2001-10-08  Geert Bosch  <bosch@gnat.com>
38933
38934         * xsnames.adb: New utility for updating snames.ads and snames.adb
38935
38936 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
38937
38938         * Make-lang.in (ADAFLAGS): Add -W -Wall.
38939         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
38940         (gnat1): Also depend on attribs.o.
38941         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
38942         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
38943         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
38944         (ADAFLAGS): Add -W -Wall.
38945         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
38946         take out CFLAGS.
38947
38948         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
38949         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
38950         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
38951         Use $(ADAC), not $(CC), as compilation command.
38952
38953         (gnattools): Depend directly on tools to build, don't use
38954         recursive make.
38955         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
38956
38957         * einfo.h, sinfo.h: New files (autogenerated).
38958
38959 2001-10-08  Richard Henderson  <rth@redhat.com>
38960
38961         * comperr.adb (Abort_In_Progress): New.
38962         (Compiler_Abort): Use it to prevent recursion.
38963
38964 2001-10-08  Robert Dewar  <dewar@gnat.com>
38965
38966         * atree.adb: Set Error_Posted in Error node, helps error recovery.
38967
38968         * par-endh.adb (Output_End_Expected): We should also not test
38969         Error_Posted on the Error node, since now it is always set.
38970
38971         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
38972         to help error recovery. Part of general work on 9407-004.
38973
38974         * par.adb: Add ??? for misuse of error
38975
38976         * sem_res.adb:
38977         (Resolve): Defend against Error, fixes 9407-003.
38978         (Resolve_Discrete_Subtype_Indication): Defend against Error.
38979
38980         * sinfo.ads (N_Error): Now has Etype field (which will be set
38981         to Any_Type to help error recovery).
38982
38983 2001-10-08  Richard Kenner  <kenner@gnat.com>
38984
38985         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
38986         Consistently set MEM attributes from expression; fixes
38987         bootstrap failure on x86.
38988
38989 2001-10-08  Geert Bosch  <bosch@gnat.com>
38990
38991         * 5oosinte.adb: Add 2001 to copyright notice.
38992
38993 2001-10-08  Geert Bosch  <bosch@gnat.com>
38994
38995         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
38996
38997         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
38998
38999 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
39000
39001         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
39002
39003 2001-10-05  Geert Bosch  <bosch@gnat.com>
39004
39005         * adaint.h: Small formatting fix.
39006
39007 2001-10-04  Geert Bosch  <bosch@gnat.com>
39008
39009         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
39010         Arg is int, not FILE *, in dummy version of functions.
39011
39012         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
39013         Arg is int, not FILE *.
39014
39015 2001-10-04  Geert Bosch  <bosch@gnat.com>
39016
39017         * 3lsoccon.ads: Added file, missed with initial check ins.
39018
39019         * 4lintnam.ads: Fix header format.
39020         Change Linux to GNU/Linux.
39021
39022         * 5iosinte.adb: Change Linux to GNU/Linux.
39023
39024         * 5iosinte.ads: Change Linux to GNU/Linux.
39025
39026         * 5itaprop.adb: Change Linux to GNU/Linux.
39027
39028         * 5itaspri.ads: Change Linux to GNU/Linux.
39029         Update copyright notice.
39030
39031         * 5lintman.adb: Change Linux to GNU/Linux.
39032
39033         * 5lml-tgt.adb: Change Linux to GNU/Linux.
39034
39035         * 5losinte.ads: Change Linux to GNU/Linux.
39036
39037         * 5lsystem.ads: Change Linux to GNU/Linux.
39038
39039         * 5qosinte.adb: Change Linux to GNU/Linux.
39040
39041         * 5qosinte.ads: Change Linux to GNU/Linux.
39042
39043         * 5qparame.ads: Change Linux to GNU/Linux.
39044
39045         * 5qtaprop.adb: Change Linux to GNU/Linux.
39046
39047         * 5qtaspri.ads: Change Linux to GNU/Linux.
39048         Add 2001 to copyright notice.
39049
39050         * 5vintman.ads: Change Linux to GNU/Linux.
39051         Fix header format.  Add 2001 to copyright notice.
39052
39053         * g-soccon.ads: Change Linux to GNU/Linux.
39054
39055         * g-trasym.ads: Change Linux to GNU/Linux.
39056         Add 2001 to copyright notice.
39057
39058         * memtrack.adb: Change Linux to GNU/Linux.
39059
39060         * s-intman.ads: Change Linux to GNU/Linux.
39061         Add 2001 to copyright notice.  Fix header format.
39062
39063         * s-stache.adb: Change Linux to GNU/Linux.
39064
39065         * adaint.c: Change Linux to GNU/Linux.
39066
39067         * cio.c: Change Linux to GNU/Linux.
39068
39069         * cstreams.c: Change Linux to GNU/Linux.
39070
39071         * init.c: Change Linux to GNU/Linux.
39072
39073         * gmem.c: Change Linux to GNU/Linux.
39074
39075         * tracebak.c: Change Linux to GNU/Linux.
39076
39077
39078 2001-10-02  Geert Bosch  <bosch@gnat.com>
39079
39080         * misc.c (insert_default_attributes): Add dummy version.